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/8343.ff1bcbf9.async.js

3646 lines
2.1 MiB

This file contains ambiguous Unicode 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 Gc=Math.pow;var gd=(Nn,Nt,te)=>new Promise((le,Me)=>{var Ne=ke=>{try{be(te.next(ke))}catch(de){Me(de)}},Ue=ke=>{try{be(te.throw(ke))}catch(de){Me(de)}},be=ke=>ke.done?le(ke.value):Promise.resolve(ke.value).then(Ne,Ue);be((te=te.apply(Nn,Nt)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[8343],{33463:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return de}});var le=te(87462),Me=te(67294),Ne={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"},Ue=Ne,be=te(84089),ke=function(pe,Le){return Me.createElement(be.Z,(0,le.Z)({},pe,{ref:Le,icon:Ue}))},de=Me.forwardRef(ke)},28575:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return de}});var le=te(87462),Me=te(67294),Ne={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"},Ue=Ne,be=te(84089),ke=function(pe,Le){return Me.createElement(be.Z,(0,le.Z)({},pe,{ref:Le,icon:Ue}))},de=Me.forwardRef(ke)},18299:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return de}});var le=te(87462),Me=te(67294),Ne={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"},Ue=Ne,be=te(84089),ke=function(pe,Le){return Me.createElement(be.Z,(0,le.Z)({},pe,{ref:Le,icon:Ue}))},de=Me.forwardRef(ke)},84249:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return de}});var le=te(87462),Me=te(67294),Ne={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Ue=Ne,be=te(84089),ke=function(pe,Le){return Me.createElement(be.Z,(0,le.Z)({},pe,{ref:Le,icon:Ue}))},de=Me.forwardRef(ke)},81893:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return de}});var le=te(87462),Me=te(67294),Ne={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"},Ue=Ne,be=te(84089),ke=function(pe,Le){return Me.createElement(be.Z,(0,le.Z)({},pe,{ref:Le,icon:Ue}))},de=Me.forwardRef(ke)},42922:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return de}});var le=te(87462),Me=te(67294),Ne={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"},Ue=Ne,be=te(84089),ke=function(pe,Le){return Me.createElement(be.Z,(0,le.Z)({},pe,{ref:Le,icon:Ue}))},de=Me.forwardRef(ke)},90674:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return de}});var le=te(87462),Me=te(67294),Ne={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Ue=Ne,be=te(84089),ke=function(pe,Le){return Me.createElement(be.Z,(0,le.Z)({},pe,{ref:Le,icon:Ue}))},de=Me.forwardRef(ke)},25877:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return de}});var le=te(87462),Me=te(67294),Ne={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"},Ue=Ne,be=te(84089),ke=function(pe,Le){return Me.createElement(be.Z,(0,le.Z)({},pe,{ref:Le,icon:Ue}))},de=Me.forwardRef(ke)},55304:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return de}});var le=te(87462),Me=te(67294),Ne={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Ue=Ne,be=te(84089),ke=function(pe,Le){return Me.createElement(be.Z,(0,le.Z)({},pe,{ref:Le,icon:Ue}))},de=Me.forwardRef(ke)},63237:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return de}});var le=te(87462),Me=te(67294),Ne={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"},Ue=Ne,be=te(84089),ke=function(pe,Le){return Me.createElement(be.Z,(0,le.Z)({},pe,{ref:Le,icon:Ue}))},de=Me.forwardRef(ke)},99569:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return de}});var le=te(87462),Me=te(67294),Ne={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"},Ue=Ne,be=te(84089),ke=function(pe,Le){return Me.createElement(be.Z,(0,le.Z)({},pe,{ref:Le,icon:Ue}))},de=Me.forwardRef(ke)},73148:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return de}});var le=te(87462),Me=te(67294),Ne={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"},Ue=Ne,be=te(84089),ke=function(pe,Le){return Me.createElement(be.Z,(0,le.Z)({},pe,{ref:Le,icon:Ue}))},de=Me.forwardRef(ke)},56747:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return de}});var le=te(87462),Me=te(67294),Ne={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"},Ue=Ne,be=te(84089),ke=function(pe,Le){return Me.createElement(be.Z,(0,le.Z)({},pe,{ref:Le,icon:Ue}))},de=Me.forwardRef(ke)},50881:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return de}});var le=te(87462),Me=te(67294),Ne={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"},Ue=Ne,be=te(84089),ke=function(pe,Le){return Me.createElement(be.Z,(0,le.Z)({},pe,{ref:Le,icon:Ue}))},de=Me.forwardRef(ke)},22751:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return de}});var le=te(87462),Me=te(67294),Ne={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"},Ue=Ne,be=te(84089),ke=function(pe,Le){return Me.createElement(be.Z,(0,le.Z)({},pe,{ref:Le,icon:Ue}))},de=Me.forwardRef(ke)},34182:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return de}});var le=te(87462),Me=te(67294),Ne={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"},Ue=Ne,be=te(84089),ke=function(pe,Le){return Me.createElement(be.Z,(0,le.Z)({},pe,{ref:Le,icon:Ue}))},de=Me.forwardRef(ke)},38308:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return de}});var le=te(87462),Me=te(67294),Ne={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"},Ue=Ne,be=te(84089),ke=function(pe,Le){return Me.createElement(be.Z,(0,le.Z)({},pe,{ref:Le,icon:Ue}))},de=Me.forwardRef(ke)},74664:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return de}});var le=te(87462),Me=te(67294),Ne={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"},Ue=Ne,be=te(84089),ke=function(pe,Le){return Me.createElement(be.Z,(0,le.Z)({},pe,{ref:Le,icon:Ue}))},de=Me.forwardRef(ke)},17663:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return de}});var le=te(87462),Me=te(67294),Ne={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},Ue=Ne,be=te(84089),ke=function(pe,Le){return Me.createElement(be.Z,(0,le.Z)({},pe,{ref:Le,icon:Ue}))},de=Me.forwardRef(ke)},91034:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return de}});var le=te(87462),Me=te(67294),Ne={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"},Ue=Ne,be=te(84089),ke=function(pe,Le){return Me.createElement(be.Z,(0,le.Z)({},pe,{ref:Le,icon:Ue}))},de=Me.forwardRef(ke)},72395:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return de}});var le=te(87462),Me=te(67294),Ne={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"},Ue=Ne,be=te(84089),ke=function(pe,Le){return Me.createElement(be.Z,(0,le.Z)({},pe,{ref:Le,icon:Ue}))},de=Me.forwardRef(ke)},53978:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return de}});var le=te(87462),Me=te(67294),Ne={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"},Ue=Ne,be=te(84089),ke=function(pe,Le){return Me.createElement(be.Z,(0,le.Z)({},pe,{ref:Le,icon:Ue}))},de=Me.forwardRef(ke)},71749:function(){"use strict"},30483:function(){"use strict"},71736:function(Nn,Nt){"use strict";Nt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},39886:function(Nn,Nt){"use strict";Nt.Z={flex_box_center:"flex_box_center___IBr6x",flex_space_between:"flex_space_between___n2Iz0",flex_box_vertical_center:"flex_box_vertical_center___1umwO",flex_box_center_end:"flex_box_center_end___SRZYb",flex_box_column:"flex_box_column___b90Da",form:"form___V3fAH",title_icon:"title_icon____uDZy",title:"title___RxKwK",content:"content___vFT5m",pubColSty:"pubColSty___dfLkL",selectSty:"selectSty____Wuek",borderSty:"borderSty___EuFYV",delSty:"delSty___AdEeI",delBorder:"delBorder___vcTJc",copHover:"copHover___JVVXI",multiple_select:"multiple_select___ZMPhl",work_checkbox_group:"work_checkbox_group___sGLxY"}},67795:function(Nn,Nt){"use strict";Nt.Z={flex_box_center:"flex_box_center___SF0m3",flex_space_between:"flex_space_between___ChLjp",flex_box_vertical_center:"flex_box_vertical_center____l_EF",flex_box_center_end:"flex_box_center_end___YcZNu",flex_box_column:"flex_box_column___R9dNq",downloadbutton:"downloadbutton___oEXJW",configWorkContainer:"configWorkContainer___CHUrh"}},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Nn={},Nt="5.0",te={},le=null,Me=!1,Ne=!1,Ue=null,be=!1,ke=null,de=null,we=0;we<arguments.length;we++){var pe=arguments[we];if(pe!==null)switch(typeof pe){case"number":Nt=pe.toFixed(1);break;case"string":pe.match(new RegExp("^[0-9]\\.[0-9]+$"))?Nt=pe:Ue=pe;break;case"object":typeof pe.is3D!="undefined"?le=pe:te=pe;break;case"boolean":Me=pe,Ne=!0;break}}le===null&&(le={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},te.material_id!==void 0&&!Ne&&(Me=!0)),Ue!==null&&te.id===void 0&&(te.id=Ue);var Le="",nt="",Re=!1,We=null,qe=null,lt=null,Xe=!1,ye=null,vt=null,Pt=null,ot=null,ct=null;te.height!==void 0&&(te.height=Math.round(te.height)),te.width!==void 0&&(te.width=Math.round(te.width));var Se=function(xt){return parseFloat(xt)>4?parseFloat(xt):5};Nn.setHTML5Codebase=function(xt,Mt){de=xt,Rt(xt,Mt)},Nn.setJavaCodebase=Nn.setJavaCodebaseVersion=Nn.isCompiledInstalled=Nn.setPreCompiledScriptPath=Nn.setPreCompiledResourcePath=function(){},Nn.setHTML5CodebaseVersion=function(xt,Mt){var qt=parseFloat(xt);if(qt!==NaN&&qt<5){console.log("The GeoGebra HTML5 codebase version "+qt+" is deprecated. Using version latest instead.");return}ke=xt,Be(xt,Mt)},Nn.getHTML5CodebaseVersion=function(){return qe},Nn.getParameters=function(){return te},Nn.setFontsCSSURL=function(xt){ot=xt},Nn.setGiacJSURL=function(xt){},Nn.setJNLPFile=function(xt){Le=xt},Nn.setJNLPBaseDir=function(xt){},Nn.inject=function(){function xt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Mt="auto",qt=te.id,an,ln=!1,Yt=0;Yt<arguments.length;Yt++){var Cn=arguments[Yt];typeof Cn=="string"?(Cn=Cn.toLowerCase(),Cn.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Mt=Cn:qt=arguments[Yt]):typeof Cn=="boolean"?ln=Cn:Cn instanceof HTMLElement&&(an=Cn)}pr();function pr(){if(!be){setTimeout(pr,200);return}Mt=$n(Mt);var Xn=an||document.getElementById(qt);if(!Xn){console.log("possibly bug on ajax loading? ");return}if(Nn.removeExistingApplet(Xn,!1),te.width===void 0&&Xn.clientWidth&&(te.width=Xn.clientWidth),te.height===void 0&&Xn.clientHeight&&(te.height=Xn.clientHeight),!(te.width&&te.height)&&Mt==="html5"&&(delete te.width,delete te.height),We=Mt,Mt==="screenshot")dt(Xn,te);else{var ze=!1;te.hasOwnProperty("playButton")&&te.playButton||te.hasOwnProperty("clickToLoad")&&te.clickToLoad?ze=!0:te.hasOwnProperty("playButtonAutoDecide")&&te.playButtonAutoDecide&&(ze=(!ce()||xt())&&He()),ze?(We="screenshot",bt(Xn,te,ln,Mt)):wt(Xn,te,ln)}}};function ce(){try{return window.self!==window.top}catch(xt){return!0}}function He(){return te.hasOwnProperty("screenshotGenerator")&&te.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Nn.getViews=function(){return le},Nn.isJavaInstalled=function(){return!1};var je=function(xt){var Mt=function(Yt){var Cn=JSON.parse(Yt),pr=function(fe){return fe.type=="G"||fe.type=="E"},Xn=Cn.elements?Cn.elements.filter(pr)[0]:Cn;if(!Xn||!Xn.url){qt();return}te.fileName=Xn.url,it(Xn.settings||{}),le.is3D=!0;var ze="https://www.geogebra.org/images/";Nn.setPreviewImage(ye||Xn.previewUrl,ze+"GeoGebra_loading.png",ze+"applet_play.png"),xt()},qt=function(){te.onError&&te.onError(),Vn("Error: Fetching material (id "+te.material_id+") failed.",te)},an=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",ln="/materials/"+te.material_id+"?scope=basic";at("https://"+an+"/api/proxy.php?path="+encodeURIComponent(ln),Mt,qt)};function it(xt){var Mt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(qt){xt[qt]=!!xt[qt]}),Mt.forEach(function(qt){te[qt]===void 0&&xt[qt]!==void 0&&(te[qt]=xt[qt])}),te.showToolBarHelp===void 0&&(te.showToolBarHelp=te.showToolBar)}function at(xt,Mt,qt){var an=new XMLHttpRequest;an.open("GET",xt),an.onload=function(){Mt(an.responseText)},an.onerror=qt,an.send()}Nn.isHTML5Installed=function(){return!0},Nn.getLoadedAppletType=function(){return We},Nn.setPreviewImage=function(xt,Mt,qt){ye=xt,vt=Mt,Pt=qt},Nn.removeExistingApplet=function(xt,Mt){var qt;typeof xt=="string"&&(xt=document.getElementById(xt)),We=null;var an=null;for(qt=0;qt<xt.childNodes.length;qt++){var ln=xt.childNodes[qt],Yt=ln.className;Yt==="applet_screenshot"?Mt?(ln.style.display="block",We="screenshot"):ln.style.display="none":Yt!=="applet_scaler prerender"&&(xt.removeChild(ln),an=Yt&&Yt.indexOf("appletParameters")!=-1?ln.id:null,qt--)}var Cn=te.id!==void 0?te.id:an,pr=window[Cn];pr&&typeof pr.getBase64=="function"&&(pr.remove(),window[Cn]=null)},Nn.refreshHitPoints=function(){if(Se(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var xt=Nn.getAppletObject();return xt&&typeof xt.recalculateEnvironments=="function"?(xt.recalculateEnvironments(),!0):!1},Nn.startAnimation=function(){var xt=Nn.getAppletObject();return xt&&typeof xt.startAnimation=="function"?(xt.startAnimation(),!0):!1},Nn.stopAnimation=function(){var xt=Nn.getAppletObject();return xt&&typeof xt.stopAnimation=="function"?(xt.stopAnimation(),!0):!1},Nn.getAppletObject=function(){var xt=te.id!==void 0?te.id:"ggbApplet";return window[xt]},Nn.resize=function(){};var Ge=function(xt,Mt,qt){var an=document.createElement("param");an.setAttribute("name",Mt),an.setAttribute("value",qt),xt.appendChild(an)},Ae=function(xt){return xt&&xt!=="false"},wt=function(xt,Mt,qt){Se(qe)<=4.2&&(qt=!0);var an=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==qe||ggbHTML5LoadedCodebaseIsWebSimple&&!Xe)&&(an=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var ln=document.createElement("div");ln.classList.add("appletParameters","notranslate");var Yt=Mt.width,Cn=Mt.height;if(Mt.disableAutoScale=Mt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Mt.disableAutoScale,Mt.width!==void 0)if(Se(qe)<=4.4)Ae(Mt.showToolBar)&&(Mt.height-=7),Ae(Mt.showAlgebraInput)&&(Mt.height-=37),Mt.width<605&&Ae(Mt.showToolBar)&&(Mt.width=605,Yt=605);else{var pr=100;(Ae(Mt.showToolBar)||Ae(Mt.showMenuBar))&&(Mt.hasOwnProperty("customToolBar")&&(Mt.customToolbar=Mt.customToolBar),pr=Ae(Mt.showMenuBar)?245:155),Yt<pr&&(Mt.width=pr,Yt=pr)}ln.style.border="none",ln.style.display="inline-block";for(var Xn in Mt)Mt.hasOwnProperty(Xn)&&Xn!=="appletOnLoad"&&ln.setAttribute("data-param-"+Xn,Mt[Xn]);ot&&ln.setAttribute("data-param-fontscssurl",ot),Nn.resize=function(){GGBAppletUtils.responsiveResize(xt,Mt)},window.addEventListener("resize",function(vn){Nn.resize()});var ze=typeof Mt.appletOnLoad=="function"?Mt.appletOnLoad:function(){};if(!qt&&Mt.width!==void 0){Mt.hasOwnProperty("showSplash")||ln.setAttribute("data-param-showSplash","false");var fe=xt.querySelector(".applet_scaler.prerender"),ue=fe!==null;if(ue)var xe=fe.querySelector(".ggb_preview");else{var xe=Pn(Yt,Cn,Mt.borderColor,!1);fe=document.createElement("div"),fe.className="applet_scaler",fe.style.position="relative",fe.style.display="block",fe.style.width=Yt+"px",fe.style.height=Cn+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(fe,"66%"),Se(qe)>=5?(Mt.appletOnLoad=function(vn){var kt=xt.querySelector(".ggb_preview");kt&&kt.parentNode.removeChild(kt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(fe),window.GGBT_wsf_view&&$(window).trigger("resize"),ze(vn)},ue||fe.appendChild(xe)):ln.appendChild(xe),fe.appendChild(ln),ue||xt.appendChild(fe),setTimeout(function(){Nn.resize()},1)}else{var ge=document.createElement("div");ge.className="applet_scaler",ge.style.position="relative",ge.style.display="block",ge.appendChild(ln),xt.appendChild(ge),Mt.appletOnLoad=function(vn){Nn.resize(),ze(vn)}}function se(vn,kt){kt&&typeof kt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(vn,kt.appletOnLoad):renderGGBElement(vn),Vn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",kt)}function Fe(vn,kt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:vn,params:kt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Xt){se(Xt.article,Xt.params)}),html5AppletsToProcess=null)},Se(qe)<5&&(vn.className+=" geogebraweb")):se(vn,kt)}if(an){scriptLoadStarted=!0;for(var st=0;st<ln.childNodes.length;st++){var en=ln.childNodes[st].tagName;en==="TABLE"&&(ln.removeChild(ln.childNodes[st]),st--)}if(ggbHTML5LoadedScript!==null){var Sn=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Sn!=null&&Sn.parentNode.removeChild(Sn)}var dn=document.createElement("script"),zn=function(){Fe(ln,Mt)};dn.src=nt+lt,ggbHTML5LoadedCodebaseIsWebSimple=Xe,ggbHTML5LoadedCodebaseVersion=qe,ggbHTML5LoadedScript=dn.src,Vn("GeoGebra HTML5 codebase loaded: '"+nt+"'.",Mt),!de&&(!ke||ke=="5.0")?(Xe?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),zn()):nt.requirejs?__webpack_require__.e(12).then(function(){var vn=[__webpack_require__(12)];zn.apply(null,vn)}.bind(this)).catch(__webpack_require__.oe):(dn.onload=zn,xt.appendChild(dn))}else Fe(ln,Mt);Mt.height=Cn,Mt.width=Yt},dt=function(xt,Mt,qt){var an=Pn(Mt.width,Mt.height,Mt.borderColor,qt),ln=document.createElement("div");ln.style.position="relative",ln.style.display="block",ln.style.width=Mt.width+"px",ln.style.height=Mt.height+"px",ln.className="applet_screenshot applet_scaler"+(qt?" applet_screenshot_play":""),ln.appendChild(an);var Yt=GGBAppletUtils.getScale(Mt,xt,qt);qt?(xt.appendChild(Ot()),window.GGBT_wsf_view||(xt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ln,"66%"),xt.appendChild(ln),Yt!==1&&!isNaN(Yt)&&(GGBAppletUtils.scaleElement(ln,Yt),ln.style.width=Mt.width+"px",ln.style.height=Mt.height+"px",ln.parentNode.style.width=Mt.width*Yt+"px",ln.parentNode.style.height=Mt.height*Yt+"px"),Nn.resize=function(){$t(xt,an,ln,qt)},window.addEventListener("resize",function(Cn){Nn.resize()}),Nn.resize()};function $t(xt,Mt,qt,an){if(xt.contains(Mt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(xt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(xt)}var ln=GGBAppletUtils.getScale(te,xt,an);qt.parentNode!==null&&(!isNaN(ln)&&ln!==1?(GGBAppletUtils.scaleElement(qt,ln),qt.parentNode.style.width=te.width*ln+"px",qt.parentNode.style.height=te.height*ln+"px"):(GGBAppletUtils.scaleElement(qt,1),qt.parentNode.style.width=te.width+"px",qt.parentNode.style.height=te.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(xt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Nn.onExitFullscreen=function(xt,Mt){Mt.appendChild(xt)};var bt=function(xt,Mt,qt,an){dt(xt,Mt,!0);for(var ln=function(){var pr=[];for(Cn=0;Cn<xt.childNodes.length;Cn++)pr.push(xt.childNodes[Cn]);if(window.GGBT_wsf_view){var Xn=window.GGBT_wsf_view.renderFullScreen(xt,Mt.id),ze=document.getElementById("fullscreencontainer"),fe=jQuery(xt).find(".fullscreencontent");fe.length>0?(Xn.remove(),fe.attr("id","fullscreencontent").show(),jQuery(ze).append(fe),window.dispatchEvent(new Event("resize"))):wt(Xn,Mt,!1),window.GGBT_wsf_view.launchFullScreen(ze)}else We=an,wt(xt,Mt,!1);if(!window.GGBT_wsf_view)for(Cn=0;Cn<pr.length;Cn++)xt.removeChild(pr[Cn])},Yt=xt.getElementsByClassName("ggb_preview_play"),Cn=0;Cn<Yt.length;Cn++)Yt[Cn].addEventListener("click",ln,!1),Yt[Cn].addEventListener("ontouchstart",ln,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(xt),He()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ot=function(){var xt=document.createElement("div");if(xt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Mt='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',qt=document.createElement("style");qt.styleSheet?qt.styleSheet.cssText=Mt:qt.appendChild(document.createTextNode(Mt)),document.getElementsByTagName("head")[0].appendChild(qt)}return xt},Pn=function(xt,Mt,qt,an){var ln=document.createElement("div");ln.className="ggb_preview",ln.style.position="absolute",ln.style.zIndex="90",ln.style.width=xt-2+"px",ln.style.height=Mt-2+"px",ln.style.top="0px",ln.style.left="0px",ln.style.overflow="hidden",ln.style.backgroundColor="white";var Yt="lightgrey";qt!==void 0&&(qt==="none"?Yt="transparent":Yt=qt),ln.style.border="1px solid "+Yt;var Cn=document.createElement("img");if(Cn.style.position="relative",Cn.style.zIndex="1000",Cn.style.top="-1px",Cn.style.left="-1px",ye!==null&&Cn.setAttribute("src",ye),Cn.style.opacity=.7,vt!==null){var pr,Xn,ze;if(!an){pr=document.createElement("img"),pr.style.position="absolute",pr.style.zIndex="1001",pr.style.opacity=1,Cn.style.opacity=.3,Xn=360,Xn>xt/4*3&&(Xn=xt/4*3),ze=Xn/5.8,pr.setAttribute("src",vt),pr.setAttribute("width",Xn),pr.setAttribute("height",ze);var fe=(xt-Xn)/2,ue=(Mt-ze)/2;pr.style.left=fe+"px",pr.style.top=ue+"px",ln.appendChild(pr)}}return ln.appendChild(Cn),ln},$n=function(xt){return xt=xt.toLowerCase(),xt==="html5"||xt==="screenshot"?xt:"html5"},yt=["web","webSimple","web3d","tablet","tablet3d","phone"],Be=function(xt,Mt){if(qe=xt,Mt){Rt(qe,!0);return}var qt=!Me;if(qt){var an=Se(qe);!isNaN(an)&&an<4.4&&(qt=!1)}var ln,Yt;window.location.protocol.substr(0,4)==="http"?ln=window.location.protocol:ln="http:";var Cn=qe.indexOf("//");Cn>0?Yt=qe:Cn===0?Yt=ln+qe:Yt="https://www.geogebra.org/apps/5.2.814.0/";for(var pr in yt)if(qe.slice(yt[pr].length*-1)===yt[pr]||qe.slice((yt[pr].length+1)*-1)===yt[pr]+"/"){Rt(Yt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&qt&&!le.is3D&&!le.AV&&!le.SV&&!le.CV&&!le.EV2&&!le.CP&&!le.PC&&!le.DA&&!le.FI&&!le.PV&&!Ae(te.showToolBar)&&!Ae(te.showMenuBar)&&!Ae(te.showAlgebraInput)&&!Ae(te.enableRightClick)&&(!te.appName||te.appName=="classic")?Yt+="webSimple/":Yt+="web3d/",Rt(Yt,!1)},Rt=function(xt,Mt){if(xt.requirejs){nt=xt;return}xt.slice(-1)!=="/"&&(xt+="/"),nt=xt,Mt===null&&(Mt=xt.indexOf("http")===-1),Re=Mt,lt="web.nocache.js",Xe=!1;var qt=nt.split("/");qt.length>1&&(!Mt&&qt[qt.length-2]==="webSimple"?(lt="webSimple.nocache.js",Xe=!0):yt.indexOf(qt[qt.length-2])>=0&&(lt=qt[qt.length-2]+".nocache.js")),qt=xt.split("/"),qe=qt[qt.length-3],qe.substr(0,4)==="test"?qe=qe.substr(4,1)+"."+qe.substr(5,1):(qe.substr(0,3)==="war"||qe.substr(0,4)==="beta")&&(qe="5.0");var an=parseFloat(qe);an!==NaN&&an<5&&xt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+an+" is deprecated. Using version latest instead."),Be("5.0",Mt))},Vn=function(xt,Mt){window.console&&window.console.log&&(!Mt||typeof Mt.showLogging=="undefined"||Mt.showLogging&&Mt.showLogging!=="false")&&console.log(xt)};te.material_id!==void 0?je(In):In();function In(){var xt=Nt;ke!==null?xt=ke:parseFloat(xt)<5&&(xt="5.0"),Be(xt,!1),de!==null&&Rt(de,Re),be=!0}return Nn},GGBAppletUtils=function(){"use strict";function Nn(){return window.GGBT_wsf_edit!==void 0}function Nt(be,ke){ke!=1?(be.style.transformOrigin="0% 0% 0px",be.style.webkitTransformOrigin="0% 0% 0px",be.style.transform="scale("+ke+","+ke+")",be.style.webkitTransform="scale("+ke+","+ke+")",be.style.maxWidth="initial",be.querySelector(".ggb_preview")!==null&&(be.querySelector(".ggb_preview").style.maxWidth="initial"),be.querySelectorAll(".ggb_preview img")[0]!==void 0&&(be.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),be.querySelectorAll(".ggb_preview img")[1]!==void 0&&(be.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(be.style.transform="none",be.style.webkitTransform="none")}function te(be,ke,de,we,pe,Le){var nt=null;if(Le!=null&&Le!="")for(var Re=be.parentNode;Re!=null;)if((" "+Re.className+" ").indexOf(" "+Le+" ")>-1){nt=Re;break}else Re=Re.parentNode;var We=0,qe=0,lt=0,Xe=0,ye=0,vt=0,Pt=0;if(nt)We=nt.offsetWidth,qe=Math.max(we?nt.offsetWidth:0,nt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(We=Math.min(window.innerWidth,document.documentElement.clientWidth),qe=Math.min(window.innerHeight,document.documentElement.clientHeight),lt=We):(We=window.innerWidth,qe=window.innerHeight,lt=window.innerWidth),be){var ot=be.getBoundingClientRect();ot.left>0&&ot.left<=We&&(pe===void 0||!pe)&&(document.dir==="rtl"?(ye=We-ot.width-ot.left,vt=lt<=480?10:30):(vt=ot.left,ye=lt<=480?10:30),Xe=vt+ye)}if(be&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ct=be.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Xe=40,Pt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Xe=0,Pt=40)}}return be&&((de===void 0||!de)&&ke>0&&ke+Xe<We?We=ke:We-=Xe,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(de===void 0||!de)&&(qe-=Pt)),{width:We,height:qe}}function le(be,ke,de,we,pe){if(be.isScreenshoGenerator)return 1;var Le=we!==void 0&&we,nt=be.noScaleMargin!=null&&be.noScaleMargin,Re=function(ct){return ct&&ct!=="false"},We=Re(be.autoHeight),qe=te(ke,be.width,de,We,Le&&window.GGBT_wsf_view||nt,pe),lt=parseInt(qe.width),Xe=be.width,ye=be.height;if(Xe===void 0){var vt=ke.querySelector(".appletParameters");vt&&(Xe=vt.offsetWidth,ye=vt.offsetHeight)}var Pt=lt/Xe,ot=Le?1:qe.height/ye;return de!==void 0&&!de&&(Pt=Math.min(1,Pt),ot=Math.min(1,ot)),Math.min(Pt,ot)}function Me(be,ke,de){var we=1,pe,Le=!1;if(be.hasOwnProperty("allowUpscale")&&(Le=be.allowUpscale),be.hasOwnProperty("scale")&&(we=parseFloat(be.scale),(isNaN(we)||we===null||we===0)&&(we=1),we>1&&(Le=!0)),ke&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Le=!0),!(be.hasOwnProperty("disableAutoScale")&&be.disableAutoScale))pe=le(be,ke,Le,de,be.scaleContainerClass);else return we;return Le&&(!be.hasOwnProperty("scale")||we===1)?pe:Math.min(we,pe)}function Ne(be){var ke=Math.min(window.innerWidth,document.documentElement.clientWidth),de=Math.min(window.innerHeight,document.documentElement.clientHeight),we=be.getBoundingClientRect(),pe=(ke-we.width)/2,Le=(de-we.height)/2;Le<0&&(Le=0),be.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(pe<40?be.style.left="40px":be.style.left=pe+"px",be.style.top=Le+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Le<40?be.style.top="40px":be.style.top=Le+"px",be.style.left=pe+"px")}function Ue(be,ke){var de=be.querySelector(".appletParameters");if(de){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ke.id!==de.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(be)}if(de.parentElement&&/fullscreen/.test(de.parentElement.className))return;var we=Me(ke,be);Nn()&&de.setAttribute("data-param-scale",we);for(var pe=null,Le=0;Le<be.childNodes.length;Le++)if(be.childNodes[Le].className!==void 0&&be.childNodes[Le].className.match(/^applet_scaler/)){pe=be.childNodes[Le];break}if(pe!==null&&pe.querySelector(".noscale")!==null)return;var nt=ke.id!==void 0?ke.id:"ggbApplet",Re=window[nt];(Re==null||!Re.recalculateEnvironments)&&pe!==null&&!pe.className.match(/fullscreen/)&&(pe.parentNode.style.transform="",!isNaN(we)&&we!==1?(pe.parentNode.style.width=ke.width*we+"px",pe.parentNode.style.height=ke.height*we+"px",Nt(pe,we)):(Nt(pe,1),pe.parentNode.style.width=ke.width+"px",pe.parentNode.style.height=ke.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ne(be),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(de).parents(".content-added-content"))}}return{responsiveResize:Ue,isFlexibleWorksheetEditor:Nn,positionCenter:Ne,getScale:Me,scaleElement:Nt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var Nn=n.location.search;return Nn.indexOf(J)!=-1||Nn.indexOf(K)!=-1}function q(Nn,Nt){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(Nn){var Nt=s[L].bindings;s[L].bindings=function(){for(var te=Nt?Nt():{},le=Nn[webModule.__softPermutationId],Me=O;Me<le.length;Me++){var Ne=le[Me];te[Ne[O]]=Ne[P]}return te}};var t;function u(){return v(),t}function v(){if(!t){var Nn=o.createElement(Q);if(Nn.id=L,Nn.style.cssText=R+S,Nn.tabIndex=-1,o.body.appendChild(Nn),t=Nn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Nt=document.compatMode==U?V:W;t.write(Nt+X),t.close()}}}function w(Nn){function Nt(le){function Me(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ne=Me();if(Ne){le();return}function Ue(){if(!Ne){if(!Me())return;Ne=!0,le(),o.removeEventListener&&o.removeEventListener(Z,Ue,!1),be&&clearInterval(be)}}o.addEventListener&&o.addEventListener(Z,Ue,!1);var be=setInterval(function(){Ue()},$)}function te(le){var Me=u(),Ne=Me.body,Ue=Me.createElement(_);Ue.language=ab,Ue.crossOrigin=W,Ue.src=le,webModule.__errFn&&(Ue.onerror=function(){webModule.__errFn(L,new Error(bb+le))}),Ne.appendChild(Ue)}Nt(function(){te(Nn)})}webModule.__startLoadingFragment=function(Nn){return C(Nn)},webModule.__installRunAsyncCode=function(Nn){var Nt=u(),te=Nt.body,le=Nt.createElement(_);le.language=ab,le.text=Nn,te.appendChild(le),te.removeChild(le)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(Nn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Nn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Nn){var Nt=c[Nn];return Nt==null?null:Nt},r=d,webModule.__errFn=e}function B(){function Nn(be){var ke=be.lastIndexOf(rb);ke==-1&&(ke=be.length);var de=be.indexOf(sb);de==-1&&(de=be.length);var we=be.lastIndexOf(tb,Math.min(de,ke));return we>=O?be.substring(O,we+P):W}function Nt(be){if(!be.match(/^\w+:\/\//)){var ke=o.createElement(ub);ke.src=be+vb,be=Nn(ke.src)}return be}function te(){var be=__gwt_getMetaProperty(wb);return be!=null?be:W}function le(){for(var be=o.getElementsByTagName(_),ke=O;ke<be.length;++ke)if(be[ke].src.indexOf(xb)!=-1)return Nn(be[ke].src);return W}function Me(){var be=o.getElementsByTagName(yb);return be.length>O?be[be.length-P].href:W}function Ne(){var be=o.location;return be.href==be.protocol+zb+be.host+be.pathname+be.search+be.hash}var Ue=te();return Ue==W&&(Ue=le()),Ue==W&&(Ue=Me()),Ue==W&&Ne()&&(Ue=Nn(o.location.href)),Ue=Nt(Ue),Ue}function C(Nn){return Nn.match(/^\//)||Nn.match(/^[a-zA-Z]+:\/\//)?Nn:webModule.__moduleBase+Nn}function D(){var Nn=[],Nt=O,te=[],le=[];function Me(be){var ke=le[be](),de=te[be];if(ke in de)return ke;var we=[];for(var pe in de)we[de[pe]]=pe;throw r&&r(be,we,ke),null}if(__gwt_isKnownPropertyValue=function(be,ke){return ke in te[be]},webModule.__getPropMap=function(){var be={};for(var ke in te)te.hasOwnProperty(ke)&&(be[ke]=Me(ke));return be},webModule.__computePropValue=Me,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ne;try{Ne=Cb;var Ue=Ne.indexOf(Db);Ue!=-1&&(Nt=parseInt(Ne.substring(Ue+P),$),Ne=Ne.substring(O,Ue))}catch(be){}return webModule.__softPermutationId=Nt,C(Ne+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},15476:function(Nn,Nt,te){"use strict";te.d(Nt,{Ax:function(){return Ue},Ds:function(){return be},KI:function(){return de},SI:function(){return Ne},f1:function(){return Me}});var le=te(11320);function Me(we){let pe=!0;if(we.length>0){for(let Le=0;Le<we.length;Le++)if(we[Le].compile_success==0||!we[Le].compile_success){pe=!1;break}}else pe=!1;return pe}function Ne(we,pe=""){let Le=[];for(let nt=0;nt<we.length;nt++){let Re=we[nt],We=pe?`${pe}/${Re.name}`:`${Re.name}`;Le.push({title:Re.name,type:Re.type,isLeaf:Re.type!=="tree",key:We})}return Le}function Ue(we,pe,Le){for(let nt=0;nt<we.length;nt++){let Re=we[nt];if(Re.key===pe){Re.children=Le;break}Re.children&&Ue(Re.children,pe,Le)}return we}function be(we,pe,Le){let nt;return function(){let Re=this,We=arguments,qe=function(){nt=null,Le||we.apply(Re,We)},lt=Le&&!nt;clearTimeout(nt),nt=setTimeout(qe,pe),lt&&we.apply(Re,We)}}const ke=!0,de=le.Z.API_SERVER},86169:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return Pt}});var le=te(67294),Me=te(22150),Ne=te(2453),Ue=te(14446),be=te(34336),ke=te(69677),de=te(9430),we=te(71230),pe=te(15746),Le=te(27484),nt=te.n(Le),Re=te(28706),We=te(35973),qe={tips:"tips___e8J4O",homeworkType:"homeworkType___ZjN2X",antdTable:"antdTable___amDdp",modalWrapper:"modalWrapper___XPojI"},lt=te(89779),Xe=te(17998),ye=(ot,ct,Se)=>new Promise((ce,He)=>{var je=Ge=>{try{at(Se.next(Ge))}catch(Ae){He(Ae)}},it=Ge=>{try{at(Se.throw(Ge))}catch(Ae){He(Ae)}},at=Ge=>Ge.done?ce(Ge.value):Promise.resolve(Ge.value).then(je,it);at((Se=Se.apply(ot,ct)).next())});const vt=({dispatch:ot,courseEndTime:ct,classroomList:Se,successCallback:ce=()=>{},visible:He,homeworkIds:je,courseId:it,isBatch:at,shixunHomeworks:Ge})=>{const[Ae]=Me.default.useForm(),[wt,dt]=(0,le.useState)(!1),[$t,bt]=(0,le.useState)(!1),[Ot,Pn]=(0,le.useState)(!1),[$n,yt]=(0,le.useState)([]),[Be,Rt]=(0,le.useState)([]),[Vn,In]=(0,le.useState)([]),[xt,Mt]=(0,le.useState)([]),[qt,an]=(0,le.useState)([]),[ln,Yt]=(0,le.useState)([]),[Cn,pr]=(0,le.useState)([]),[Xn,ze]=(0,le.useState)([]),[fe,ue]=(0,le.useState)([]);(0,le.useEffect)(()=>{He?xe():se()},[He]);const xe=()=>ye(void 0,null,function*(){dt(!0);const Fe=yield(0,lt.oR)(je[0],{course_id:it});Pn(Fe.no_group),at?(pr(Fe.all_course_groups),ze(Fe.all_course_groups)):(Mt(Fe.late_course_groups),an(Fe.late_course_groups),yt(Fe.submit_course_groups),Rt(Fe.submit_course_groups)),dt(!1),Ae.setFieldsValue({end_time:nt()()})}),ge=()=>ye(void 0,null,function*(){const Fe=Ae.getFieldsValue(),st=nt()(Fe.end_time).format("YYYY-MM-DD HH:mm");if((at?fe.length===0:Vn.length===0&&ln.length===0)&&!Ot){Ne.ZP.warning("\u8BF7\u9009\u62E9\u9700\u8981\u64CD\u4F5C\u7684\u73ED\u7EA7");return}bt(!0);const Sn=yield(0,lt.Mc)(it,{no_group:Ot,homework_ids:je,group_ids:at?fe:Vn,end_time:st,late_group_ids:at?fe:ln});bt(!1),Sn.status===0&&(se(),Ne.ZP.success("\u64CD\u4F5C\u6210\u529F"),ce(),ot({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}))}),se=()=>{In([]),Yt([]),Rt([]),an([])};return le.createElement(Ue.default,{centered:!0,title:"\u7ACB\u5373\u622A\u6B62",className:qe.modalWrapper,width:at||Ot?520:760,open:He,confirmLoading:$t,destroyOnClose:!0,okText:"\u622A\u6B62",cancelText:"\u53D6\u6D88",onOk:()=>ge(),onCancel:()=>{se(),ot({type:"classroomList/setActionTabs",payload:{}})}},le.createElement("div",{className:qe.tips},le.createElement("div",null,"1\u3001\u622A\u6B62\u540E\u5B66\u751F\u4E0D\u80FD\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"),le.createElement("div",null,"2\u3001\u672C\u64CD\u4F5C\u53EA\u5BF9\u201C\u63D0\u4EA4\u4E2D\u201D\u3001\u201C\u8865\u4EA4\u4E2D\u201D\u7684\u4F5C\u4E1A\u6709\u6548\u3002")),le.createElement(Me.default,{form:Ae,layout:"vertical"},le.createElement(Me.default.Item,{name:"end_time",label:"\u622A\u6B62\u65F6\u95F4"},le.createElement(be.default,{style:{width:"100%"},disabledDate:Fe=>(0,Xe.Q8)(Fe,ct),disabledTime:Fe=>(0,Xe.d0)(Fe),placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:nt()((0,Re.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1}))),!Ot&&le.createElement(le.Fragment,null,at?le.createElement("div",null,le.createElement(ke.default,{placeholder:"\u641C\u7D22\u73ED\u7EA7",onChange:Fe=>{ze(Cn.filter(st=>st.name.indexOf(Fe.target.value)>-1))}}),le.createElement(de.default,{style:{marginTop:"10px",height:"300px",overflow:"auto"},className:qe.antdTable,rowSelection:{type:"checkbox",onChange:Fe=>{ue(Fe)}},rowKey:"id",pagination:!1,dataSource:Xn,loading:wt,columns:[{title:"\u73ED\u7EA7",dataIndex:"name"}]})):le.createElement(we.Z,{gutter:24},le.createElement(pe.Z,{span:14},le.createElement("div",{className:qe.homeworkType},"\u4F5C\u4E1A\u622A\u6B62"),le.createElement(ke.default,{placeholder:"\u641C\u7D22\u73ED\u7EA7",onChange:Fe=>{Rt($n.filter(st=>st.name.indexOf(Fe.target.value)>-1))}}),le.createElement("div",{className:qe.tableWrapper},le.createElement(de.default,{style:{marginTop:"10px",height:"260px",overflow:"auto"},className:qe.antdTable,rowSelection:{type:"checkbox",onChange:Fe=>{In(Fe)}},rowKey:"id",pagination:!1,dataSource:Be,loading:wt,columns:[{title:"\u73ED\u7EA7",dataIndex:"name",ellipsis:!0},{title:"\u53D1\u5E03\u65F6\u95F4",dataIndex:"publish_time"},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"end_time"}]}))),le.createElement(pe.Z,{flex:10,style:{maxWidth:"280px"}},le.createElement("div",{className:qe.homeworkType},"\u8865\u4EA4\u622A\u6B62"),le.createElement(ke.default,{placeholder:"\u641C\u7D22\u73ED\u7EA7",onChange:Fe=>{an(xt.filter(st=>st.name.indexOf(Fe.target.value)>-1))}}),le.createElement("div",{className:qe.tableWrapper},le.createElement(de.default,{style:{marginTop:"10px",height:"260px",overflow:"auto",maxWidth:"280px"},className:qe.antdTable,rowSelection:{type:"checkbox",onChange:Fe=>{Yt(Fe)}},rowKey:"id",pagination:!1,loading:wt,dataSource:qt,columns:[{title:"\u73ED\u7EA7",dataIndex:"name",ellipsis:!0,width:120},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"late_time"}]}))))))};var Pt=(0,We.connect)(({shixunHomeworks:ot,classroomList:ct})=>({shixunHomeworks:ot,classroomList:ct}))(vt)},63205:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return nt}});var le=te(67294),Me={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ne=te(94184),Ue=te.n(Ne),be=te(57953),ke=te(15979),de=te(33170),we=te(28706),pe=(Re,We,qe)=>new Promise((lt,Xe)=>{var ye=ot=>{try{Pt(qe.next(ot))}catch(ct){Xe(ct)}},vt=ot=>{try{Pt(qe.throw(ot))}catch(ct){Xe(ct)}},Pt=ot=>ot.done?lt(ot.value):Promise.resolve(ot.value).then(ye,vt);Pt((qe=qe.apply(Re,We)).next())}),nt=({data:Re,className:We,fullWidth:qe,style:lt={},onClose:Xe,onOk:ye,showFullTools:vt,noAssociationId:Pt})=>{const ot=(0,le.useRef)(null),ct=(0,le.useRef)(null),Se=(0,le.useRef)(null),ce=(0,le.useRef)(null),[He,je]=(0,le.useState)(!1),[it,at]=(0,le.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,le.useEffect)(()=>{Se.current||(Se.current=document.createElement("style"),document.head.appendChild(Se.current)),Re!=null&&Re.visible?(document.body.setAttribute("data-custom","y-hidden"),Se.current.innerHTML=" html { overflow-y: hidden; }",Re!=null&&Re.src&&Ge()):(document.body.removeAttribute("data-custom"),Se.current&&(document.head.removeChild(Se.current),Se.current=null))},[Re==null?void 0:Re.visible]);const Ge=()=>pe(void 0,null,function*(){je(!0),at("\u6B63\u5728\u52A0\u8F7D\u4E2D");const bt=yield(0,we.ZJ)(Re==null?void 0:Re.src);ot.current.src="",ot.current.src=bt,ot.current.onload=function(){$t()},je(!1),at("")}),Ae=()=>{document.body.removeAttribute("data-custom"),Se.current.innerHTML=" ",Xe()},wt=bt=>pe(void 0,null,function*(){je(!0),at("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ot=yield(0,de.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Re.title,file:bt.dataUrl}});Ot!=null&&Ot.id&&!Pt?(yield(0,de.ZP)(`/api/attachments/${Re.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ot==null?void 0:Ot.id,settings:JSON.stringify(bt.state)}})).status===0&&ye():Ot!=null&&Ot.id&&ye(Ot),document.body.removeAttribute("data-custom"),Se.current.innerHTML=" ",je(!1),at("")}),dt=()=>{const bt=document.querySelector('a[href="https://markerjs.com/"]');bt&&bt.parentNode&&(bt.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Pn=>{const $n=document.querySelector(Pn.name);$n&&$n.setAttribute("title",Pn.title)})},$t=()=>{ct.current=new ke.hP(ot.current),ct.current.targetRoot=ce.current,ct.current.addEventListener("render",wt),ct.current.addEventListener("beforeclose",Ae),vt&&(ct.current.availableMarkerTypes=ct.current.ALL_MARKER_TYPES,ct.current.uiStyleSettings.redoButtonVisible=!0,ct.current.uiStyleSettings.notesButtonVisible=!0,ct.current.uiStyleSettings.zoomButtonVisible=!0,ct.current.uiStyleSettings.zoomOutButtonVisible=!0,ct.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ct.current.uiStyleSettings,ct.current.show(),Re!=null&&Re.snapshotData&&ct.current.restoreState(Re.snapshotData),setTimeout(()=>{window.scrollTo(0,0),dt()},300)};return le.createElement(le.Fragment,null,(Re==null?void 0:Re.visible)&&le.createElement(be.Z,{spinning:He,tip:it,style:{position:"absolute"}},le.createElement("div",{ref:ce,className:Ue()(Me.imageDimensions,We,qe?Me.fullWidth:""),style:lt},le.createElement("img",{className:Me.img,ref:ot}))))}},36527:function(Nn,Nt,te){"use strict";var le=te(67294),Me=te(71230),Ne=te(15746),Ue=te(66368),be=te(71577),ke=te(35598),de=te(71736),we=te(84279),pe=te(67294);const Le=(0,le.forwardRef)(({callback:nt,showSaveButton:Re,value:We=""},qe)=>{const lt=(0,le.useRef)(),Xe=[{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 "}]}]}],ye=[{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}`}]}]}],vt=ct=>{lt.current.setValue(lt.current.getValue()+" "+ct.value+" ")},Pt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:pe.createElement(Me.Z,{className:de.Z.lists,gutter:[10,10]},Xe.map((ct,Se)=>pe.createElement(Ne.Z,{flex:"110px",className:de.Z.item},pe.createElement("div",null,pe.createElement(ke.Z,{value:`$$${ct.value}$$`}),ct.name),pe.createElement("div",{className:de.Z.children},ct.children.map((ce,He)=>pe.createElement("div",{key:He},pe.createElement("h1",null,ce.name),pe.createElement(Me.Z,{gutter:[10,10]},ce.data.map((je,it)=>pe.createElement(Ne.Z,{key:it,onClick:()=>vt(je),className:de.Z.diamond},pe.createElement(ke.Z,{value:"`$$"+je.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:pe.createElement(Me.Z,{className:de.Z.lists,gutter:[10,10]},ye.map((ct,Se)=>pe.createElement(Ne.Z,{flex:"110px",className:de.Z.item},pe.createElement("div",null,pe.createElement(ke.Z,{value:"`$$"+ct.value+"$$`"}),ct.name),pe.createElement("div",{className:de.Z.children},ct.children.map((ce,He)=>pe.createElement("div",{key:He},ce.name&&pe.createElement("h1",null,ce.name),pe.createElement(Me.Z,{gutter:[10,10]},ce.data.map((je,it)=>pe.createElement(Ne.Z,{key:it,onClick:()=>vt(je),className:de.Z.diamond},pe.createElement(ke.Z,{value:"`$$"+je.value+"$$`"}))))))))))}],ot=()=>{var ct=document.createElement("div");ct.innerHTML=lt.current.getValue();var Se=ct.innerText;return nt&&nt(Se),Se};return(0,le.useImperativeHandle)(qe,()=>({getData:ot})),pe.createElement("div",{className:de.Z.mathWrap},pe.createElement(Ue.default,{defaultActiveKey:"1",items:Pt}),pe.createElement("math-field",{locale:"zh_cn",className:de.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:lt,style:{width:800,marginTop:30,fontSize:18}},We||""),Re&&pe.createElement("div",{className:de.Z.button},pe.createElement(be.ZP,{size:"large",onClick:ot,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Nt.Z=Le},39717:function(Nn,Nt,te){"use strict";te.d(Nt,{Q:function(){return ke}});var le=te(67294),Me=te(11713),Ne=te(78045),Ue=te(31795),be=te(67294),ke=(we=>(we[we.Number=1]="Number",we[we.Percent=2]="Percent",we))(ke||{});const de=({value:we,onChange:pe,disabled:Le,hidePercentOption:nt=!1,percentType:Re="select"})=>{const We=(0,le.useMemo)(()=>nt?1:2,[nt]),[qe,lt]=(0,le.useState)(We);console.log(qe);const Xe=vt=>we.type===1?`${vt}\u5206`:`${vt}%`,ye=(0,le.useCallback)(vt=>{if(qe===1){const Pt=vt.replace("\u5206","");return isNaN(parseInt(Pt,10))?0:Pt}else return vt.replace("%","")},[qe]);return(0,le.useEffect)(()=>{lt(we.type)},[we]),be.createElement("div",{style:{display:"flex",alignItems:"center"}},Re=="select"&&be.createElement(Me.default,{size:"large",onChange:vt=>{lt(vt),pe({type:vt,inputValue:vt===1?5:20})},value:qe||We,style:{width:100},options:nt?[{label:"\u5206\u503C",value:1}]:[{label:"\u767E\u5206\u6BD4",value:2},{label:"\u5206\u503C",value:1}],disabled:Le}),Re=="radio"&&be.createElement(Ne.ZP.Group,{size:"large",onChange:vt=>{const Pt=vt.target.value;lt(Pt),pe({type:Pt,inputValue:Pt===1?5:20})},value:qe||We,disabled:Le},!nt&&be.createElement(Ne.ZP,{value:2,style:{marginRight:"50px"}},"\u767E\u5206\u6BD4\u6263\u5206"),be.createElement(Ne.ZP,{value:1},"\u56FA\u5B9A\u5206\u503C")),Re=="radio"&&be.createElement("div",{style:{marginRight:"10px",color:"#000000"}},we.type==2?"\u6263\u9664\u8865\u4EA4\u9636\u6BB5\u5F97\u5206\u7684":"\u6263\u9664\u603B\u6210\u7EE9\u7684"),be.createElement(Ue.Z,{size:"large",disabled:Le,value:we.inputValue,style:{width:"120px"},parser:ye,addonAfter:we.type===1?"\u5206":"%",max:qe===2?100:Number.MAX_SAFE_INTEGER,min:0,precision:0,onChange:vt=>{pe({type:qe,inputValue:vt})}}),Re=="radio"&&we.type==2&&be.createElement("div",{style:{marginLeft:"10px",color:"#000000"}},"\u5206\u6570"))};Nt.Z=de},96332:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return we}});var le=te(67294),Me={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"},Ne=te(14446),Ue="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",be="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",ke=(pe,Le,nt)=>new Promise((Re,We)=>{var qe=ye=>{try{Xe(nt.next(ye))}catch(vt){We(vt)}},lt=ye=>{try{Xe(nt.throw(ye))}catch(vt){We(vt)}},Xe=ye=>ye.done?Re(ye.value):Promise.resolve(ye.value).then(qe,lt);Xe((nt=nt.apply(pe,Le)).next())}),we=({type:pe,resdata:Le,onok:nt,oktext:Re,okloading:We})=>{const[qe,lt]=(0,le.useState)(!1),{can_copy_list:Xe,can_copy_num:ye,challenge_type:vt,course_data_list:Pt,no_copy_list:ot,no_copy_num:ct,no_use_list:Se,no_use_num:ce,repeat_shixun_num:He,student_count:je,total_num:it,use_num:at}=Le;let Ge=ye>0||pe==="exercise";(0,le.useEffect)(()=>{(Le==null?void 0:Le.student_count)>0&&lt(!0)},[Le]),console.log("---11",We),(0,le.useEffect)(()=>{We||lt(!1)},[We]);const Ae=()=>{if(pe==="exercise"&&vt===1)return le.createElement(le.Fragment,null,"\u8BFE\u5802\u5185\u6709",le.createElement("span",{className:Me.orangeColor},je),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",le.createElement("span",{className:Me.orangeColor},at),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",le.createElement("span",{className:Me.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(pe==="exercise"&&vt===2)return le.createElement(le.Fragment,null,"\u8BFE\u5802\u5185\u6709",le.createElement("span",{className:Me.orangeColor},je),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",le.createElement("span",{className:Me.orangeColor},at),"\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",le.createElement("span",{className:Me.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(pe==="shixun"&&vt===1)return le.createElement(le.Fragment,null,"\u8BFE\u5802\u5185\u6709",le.createElement("span",{className:Me.orangeColor},je),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",le.createElement("span",{className:Me.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(pe==="shixun"&&vt===2)return le.createElement(le.Fragment,null,"\u8BFE\u5802\u5185\u6709",le.createElement("span",{className:Me.orangeColor},je),"\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",le.createElement("span",{className:Me.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(pe==="subject"&&vt===1)return le.createElement(le.Fragment,null,"\u8BFE\u5802\u5185\u6709",le.createElement("span",{className:Me.orangeColor},je),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",le.createElement("span",{className:Me.orangeColor},at),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",le.createElement("span",{className:Me.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(pe==="subject"&&vt===2)return le.createElement(le.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",le.createElement("span",{className:Me.orangeColor},je)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",le.createElement("span",{className:Me.orangeColor},at)," \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",le.createElement("span",{className:Me.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(pe==="exercisepush")return le.createElement(le.Fragment,null,"\u8BFE\u5802\u5185\u6709",le.createElement("span",{className:Me.orangeColor},je),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",le.createElement("span",{className:Me.orangeColor},at),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",le.createElement("span",{className:Me.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(pe==="shixunpush"&&vt===1)return le.createElement(le.Fragment,null,"\u8BFE\u5802\u5185\u6709",le.createElement("span",{className:Me.orangeColor},je),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",le.createElement("span",{className:Me.orangeColor},at),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",le.createElement("span",{className:Me.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(pe==="shixunpush"&&vt===2)return le.createElement(le.Fragment,null,"\u8BFE\u5802\u5185\u6709",le.createElement("span",{className:Me.orangeColor},je),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",le.createElement("span",{className:Me.orangeColor},at),"\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",le.createElement("span",{className:Me.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},wt=()=>{if(pe==="exercise"||pe==="subject"||pe==="exercisepush"||pe==="shixunpush")return le.createElement("div",{style:{marginTop:20}},ct>0&&le.createElement("div",null,le.createElement("span",{className:Me.flex},le.createElement("img",{src:be,style:{width:14}}),le.createElement("span",{className:Me.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),le.createElement("div",{className:Me.statusbody},pe==="exercise"&&le.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",le.createElement("span",{className:Me.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"),(pe==="subject"||pe==="exercisepush")&&le.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Ge&&le.createElement("span",{className:Me.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"),pe==="shixunpush"&&le.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Ge&&le.createElement("span",{className:Me.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"),le.createElement("div",null,ot==null?void 0:ot.map((dt,$t)=>le.createElement("a",{href:`/shixuns/${dt.identifier}/challenges`,target:"_blank"},"\u300A",dt==null?void 0:dt.name,"\u300B",$t+1!==ct&&"\u3001"))))),ye>0&&le.createElement("div",{style:{marginTop:20}},le.createElement("span",{className:Me.flex},le.createElement("img",{src:Ue,style:{width:14}}),le.createElement("span",{className:Me.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),le.createElement("div",{className:Me.statusbody},pe==="exercise"&&le.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"),(pe==="subject"||pe==="exercisepush")&&le.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"),pe==="shixunpush"&&le.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"),le.createElement("div",null,Xe==null?void 0:Xe.map((dt,$t)=>le.createElement("a",{href:`/shixuns/${dt.identifier}/challenges`,target:"_blank"},"\u300A",dt==null?void 0:dt.name,"\u300B",$t+1!==ye&&"\u3001"))))));if(pe==="shixun")return le.createElement("div",{style:{marginTop:20}},ye>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 le.createElement(Ne.default,{open:qe,onCancel:()=>{lt(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!Ge&&"none"}},zIndex:1003,confirmLoading:We,okText:Ge?Re:"\u6211\u77E5\u9053\u4E86",onOk:()=>ke(void 0,null,function*(){Ge?yield nt([...Xe,...Se]):lt(!1)})},le.createElement("div",{style:{maxHeight:600,overflow:"auto"}},Ae(),wt()))}},57444:function(Nn,Nt,te){"use strict";te.d(Nt,{h:function(){return ct}});var le=te(67294),Me=te(11713),Ne=te(22150),Ue=te(71577),be=te(4631),ke=te.n(be),de=te(71749),we=te(30483),pe=Object.defineProperty,Le=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,Re=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,lt=(Se,ce,He)=>ce in Se?pe(Se,ce,{enumerable:!0,configurable:!0,writable:!0,value:He}):Se[ce]=He,Xe=(Se,ce)=>{for(var He in ce||(ce={}))We.call(ce,He)&&lt(Se,He,ce[He]);if(Re)for(var He of Re(ce))qe.call(ce,He)&&lt(Se,He,ce[He]);return Se},ye=(Se,ce)=>Le(Se,nt(ce));const vt=Me.default.Option,Pt={labelCol:{span:4},wrapperCol:{span:20}},ot={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};Nt.Z=({callback:Se,onCancel:ce})=>{const[He,je]=(0,le.useState)("python");function it(Ge){je(ot[Ge][1])}function at(Ge){Se(Ge)}return le.createElement(Ne.default,ye(Xe({},Pt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:at,style:{width:500}}),le.createElement(Ne.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},le.createElement(Me.default,{getPopupContainer:Ge=>Ge.parentNode,onChange:it},Object.keys(ot).map(Ge=>le.createElement(vt,{key:Ge,value:Ge},ot[Ge][0])))),le.createElement(Ne.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},le.createElement(ct,{mode:He})),le.createElement("div",{className:"flex-container flex-end"},le.createElement(Ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),le.createElement(Ue.ZP,{type:"ghost",onClick:ce},"\u53D6\u6D88")))};function ct({value:Se,onChange:ce,mode:He,options:je={}}){const it=(0,le.useRef)(),[at,Ge]=(0,le.useState)();return(0,le.useEffect)(()=>{if(at){let Ae=function(wt){const dt=wt.getValue();ce&&ce(dt)};return at.on("change",Ae),()=>{at.off("change",Ae)}}},[at,ce]),(0,le.useEffect)(()=>{at&&at.setOption("mode",He)},[at,He]),(0,le.useEffect)(()=>{at&&(Se!==at.getValue()||Se==="")&&setTimeout(()=>{at.setValue(Se||"")},300)},[at,Se]),(0,le.useEffect)(()=>{if(it.current&&!at){const Ae=ke().fromTextArea(it.current,Xe({mode:He,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},je));Ge(Ae)}},[it.current,at]),le.createElement("div",{className:"my-codemirror-container"},le.createElement("textarea",{ref:it}))}},91304:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return Lr}});var le=te(67294),Me=te(4631),Ne=te.n(Me),Ue=te(91033),be=te(71749),ke=te(57341),de=te(82801),we=te(88386),pe=te(49047),Le=te(80785),nt=te(35598),Re=({value:or="",className:Et,showTextOnly:_t,showLines:zt,style:wn={}})=>{const ft=(0,le.useMemo)(()=>"",[or]);return le.createElement(le.Fragment,null,le.createElement("div",{dangerouslySetInnerHTML:{__html:ft}}))},We=te(67294),qe=Object.defineProperty,lt=Object.defineProperties,Xe=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable,ot=(or,Et,_t)=>Et in or?qe(or,Et,{enumerable:!0,configurable:!0,writable:!0,value:_t}):or[Et]=_t,ct=(or,Et)=>{for(var _t in Et||(Et={}))vt.call(Et,_t)&&ot(or,_t,Et[_t]);if(ye)for(var _t of ye(Et))Pt.call(Et,_t)&&ot(or,_t,Et[_t]);return or},Se=(or,Et)=>lt(or,Xe(Et));let ce=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function He({onActionCallback:or,title:Et,icon:_t,actionName:zt,className:wn="",children:ft}){function Ht(){or(zt)}return We.createElement("a",{title:Et,className:wn,onClick:Ht},We.createElement("i",{className:`${_t}`}),ft)}var je=({watch:or,showNullButton:Et,showNullProgramButton:_t,onActionCallback:zt,fullScreen:wn,insertTemp:ft,hidetoolBar:Ht,extraUse:xn})=>{const En=[...ce,{title:`${or?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${or?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return We.createElement("ul",{className:"markdown-toolbar-container"},!Ht&&En.map((Hn,Gn)=>We.createElement("li",{key:Gn},Hn.actionName?We.createElement(He,Se(ct({},Hn),{onActionCallback:zt})):We.createElement("span",{className:"v-line"}))),Et?We.createElement("li",null,We.createElement(He,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:zt},We.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,_t?We.createElement(We.Fragment,null,We.createElement("li",null,We.createElement(He,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:zt},We.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),We.createElement("li",null,We.createElement(He,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:zt},We.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,ft&&We.createElement("li",null,We.createElement(He,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${ft}`,onActionCallback:zt},We.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),xn&&We.createElement("li",null,xn),We.createElement("li",{className:"btn-full-screen"},We.createElement(He,{icon:`${wn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:wn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:zt})))},it=te(76621),at=te(22150),Ge=te(69677),Ae=te(71577),wt=Object.defineProperty,dt=Object.defineProperties,$t=Object.getOwnPropertyDescriptors,bt=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,Pn=Object.prototype.propertyIsEnumerable,$n=(or,Et,_t)=>Et in or?wt(or,Et,{enumerable:!0,configurable:!0,writable:!0,value:_t}):or[Et]=_t,yt=(or,Et)=>{for(var _t in Et||(Et={}))Ot.call(Et,_t)&&$n(or,_t,Et[_t]);if(bt)for(var _t of bt(Et))Pn.call(Et,_t)&&$n(or,_t,Et[_t]);return or},Be=(or,Et)=>dt(or,$t(Et));const Rt={labelCol:{span:4},wrapperCol:{span:20}};var Vn=({callback:or,onCancel:Et})=>{function _t(zt){or(zt)}return le.createElement(at.default,Be(yt({},Rt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:_t,style:{width:500}}),le.createElement(at.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},le.createElement(Ge.default,null)),le.createElement(at.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},le.createElement(Ge.default,null)),le.createElement("div",{className:"flex-container flex-end"},le.createElement(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),le.createElement(Ae.ZP,{type:"ghost",onClick:Et},"\u53D6\u6D88")))},In=te(57444),xt=te(70859),Mt=te(14446),qt=te(71230),an=te(63205),ln=te(67294),Yt=({callback:or,onCancel:Et})=>{const _t=document.createElement("canvas"),zt=_t.getContext("2d");_t.width=1e3,_t.height=800,zt.fillStyle="#ffffff",zt.fillRect(0,0,_t.width,_t.height);const wn=_t.toDataURL("image/png");return ln.createElement(Mt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},ln.createElement(qt.Z,{style:{height:"100vh"}},ln.createElement(an.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:wn,visible:!0,title:String(Date.now())},onOk:ft=>{or({src:ft.url})},onClose:Et})))},Cn=te(72565),pr=te(15746),Xn=te(2453),ze={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},fe=te(67294),xe=(0,le.forwardRef)(({onCancel:or,editImgId:Et,callback:_t},zt)=>{let wn=(0,le.useRef)(),ft=(0,le.useRef)(),Ht=(0,le.useRef)(),xn=(0,le.useRef)(!1);const En=(0,le.useRef)(!1);console.log("ref:",zt);const[Hn,Gn]=(0,le.useState)(0),[br,fi]=(0,le.useState)("100vh");return(0,le.useEffect)(()=>{Gn(1);try{indexedDB.databases().then(Gr=>{Gr.forEach(Vr=>indexedDB.deleteDatabase(Vr.name))})}catch(Gr){}},[]),(0,le.useImperativeHandle)(zt,()=>({setHeight:fi})),fe.createElement("div",{ref:En,className:"body-overflow-initial"},fe.createElement(Cn.Z,{width:"100vw",height:br,footer:null,closable:!0,placement:"bottom",open:!!Hn,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ze.drawerWrap}`,onClose:()=>{window.saveDrawData(Gr=>{_t({src:`/api/attachments/${Gr}`,id:Gr})})},title:fe.createElement(qt.Z,{align:"middle"},fe.createElement(pr.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),fe.createElement(pr.Z,{onClick:()=>{fi(br==="60px"?"100vh":"60px")}},fe.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),fe.createElement(pr.Z,{onClick:()=>{window.saveDrawData(Gr=>{if(Gr===null){Xn.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}Xn.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),_t({src:`/api/attachments/${Gr}`,id:Gr,disabledClose:!0})})}},fe.createElement(Ae.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},fe.createElement("iframe",{src:`${window.ENV==="build"?"/react/build":""}/drawio/src/main/webapp/?id=${Et||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:ft})))}),ge=te(11320),se=te(78045),Fe=te(31795);const st=se.ZP.Group,en={margin:"0 8px"};var Sn=({callback:or,onCancel:Et})=>{function _t(zt){or(zt)}return le.createElement(at.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:_t},le.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},le.createElement("span",{style:en},"\u5355\u5143\u683C\u6570\uFF1A"),le.createElement("span",{style:en},"\u884C\u6570"),le.createElement(at.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},le.createElement(Fe.Z,null)),le.createElement("span",{style:en},"\u5217\u6570"),le.createElement(at.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},le.createElement(Fe.Z,null))),le.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},le.createElement("span",{style:en},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),le.createElement(at.default.Item,{name:"align"},le.createElement(st,null,le.createElement(se.ZP,{value:"default"},le.createElement("i",{className:"fa fa-align-justify"})),le.createElement(se.ZP,{value:"left"},le.createElement("i",{className:"fa fa-align-left"})),le.createElement(se.ZP,{value:"center"},le.createElement("i",{className:"fa fa-align-center"})),le.createElement(se.ZP,{value:"right"},le.createElement("i",{className:"fa fa-align-right"}))))),le.createElement("div",{className:"flex-container flex-end"},le.createElement(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),le.createElement(Ae.ZP,{type:"ghost",onClick:Et},"\u53D6\u6D88")))},dn=te(47897),zn=te(61016),vn=te.n(zn),Xt=(0,le.forwardRef)(({use3d:or,width:Et,height:_t,callback:zt,showSaveButton:wn},ft)=>{const Ht=(0,le.useRef)(),xn=(0,le.useRef)(),[En,Hn]=(0,le.useState)(!1),Gn=(0,le.useRef)({id:Ht,appName:"graphing",width:Et||1e3,height:_t||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,le.useEffect)(()=>{xn.current=new(vn())(Gn.current,!0),window.onload=function(){xn.current.inject("applet_container")}},[]);const br=()=>{var fi=window.ggbApplet.getPNGBase64(1,!0,72);return zt&&zt(fi),fi};return(0,le.useEffect)(()=>{Gn.current.appName=En?"3D":"graphing",xn.current.inject("applet_container")},[En]),(0,le.useEffect)(()=>{Hn(or)},[or]),(0,le.useImperativeHandle)(ft,()=>({getImgData:br})),le.createElement(le.Fragment,null,le.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Ht}),le.createElement(qt.Z,{align:"middle"},le.createElement(pr.Z,{flex:1},le.createElement(dn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:En,onChange:fi=>Hn(fi)})),le.createElement(pr.Z,null,le.createElement(Ae.ZP,{size:"large",onClick:br,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Jt=te(36527),jt=te(25934);const Bt="link",ir="upload-image",Ct="add-flowchart",At="draw-image",er="add-flowchart",An="code-block",fr="add-table",Rr="------------",ii={default:Rr,left:`:${Rr}`,center:`:${Rr}:`,right:`${Rr}:`};var Yr=te(99914),Jr=(or,Et,_t)=>new Promise((zt,wn)=>{var ft=En=>{try{xn(_t.next(En))}catch(Hn){wn(Hn)}},Ht=En=>{try{xn(_t.throw(En))}catch(Hn){wn(Hn)}},xn=En=>En.done?zt(En.value):Promise.resolve(En.value).then(ft,Ht);xn((_t=_t.apply(or,Et)).next())});function mi(){}let Br=0;const ki=1e4,Vi="\u2581",ha="@\u2581\u2581@",pa="@\u2581@",Ui=`
**\u6A21\u677F\u6807\u9898**
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,Ut=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function Qt(or){return/^\d+$/.test(or)?`${or}px`:or}const Bn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Cr={[Bn+"-B"]:"bold",[Bn+"-I"]:"italic"},qn={[Bt]:"\u6DFB\u52A0\u94FE\u63A5",[An]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[ir]:"\u6DFB\u52A0\u56FE\u7247",[At]:"\u6DFB\u52A0\u753B\u56FE",[Ct]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[fr]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Lr=({defaultValue:or="",onChange:Et,width:_t="100%",height:zt=400,miniToolbar:wn=!1,isFocus:ft=!1,watch:Ht,insertTemp:xn,mode:En="markdown",id:Hn="markdown-editor-id",showResizeBar:Gn=!1,noStorage:br=!1,showNullButton:fi=!1,showNullProgramButton:Gr=!1,hidetoolBar:Vr=!1,fullScreen:ai=!1,onBlur:ei,onCMBeforeChange:Vt,onFullScreen:Kt,className:nn="",disablePaste:sr=!1,disabled:Tr=!1,disabledFill:Fn=!1,placeholder:mr="",values:ur="",extraUse:zr,onAddBlank:ti})=>{const[jn,Gi]=(0,le.useState)(null),[_i,Xa]=(0,le.useState)(or),[_a,Aa]=(0,le.useState)(Ht),[ra,Oa]=(0,le.useState)(ai),[ya,Ra]=(0,le.useState)(""),[oo,Yi]=(0,le.useState)(0),[Pa,to]=(0,le.useState)(zt),[_o,wo]=(0,le.useState)(!1),ia=(0,le.useRef)((0,jt.Z)()),on=(0,le.useRef)(!1),Gt=(0,le.useRef)(),[Kn,yr]=(0,le.useState)(0),[Ir,si]=(0,le.useState)(0),Mi=(0,le.useRef)(),Ti=(0,le.useRef)(),ji=(0,le.useRef)(),Oi=(0,le.useRef)(),aa=(0,le.useRef)(),Da=(0,le.useRef)(),wi=()=>Jr(void 0,null,function*(){var Tn;const kn=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ia.current}});(Tn=kn==null?void 0:kn.attachments)!=null&&Tn.length&&(console.log("cm:",jn,Mi),kn.attachments.map(mn=>{mn.content_type.indexOf("image")>-1?jn.replaceSelection(`![,](/api/attachments/${mn.id}?type=${mn.content_type})`):mn.content_type.indexOf("video")>-1?jn.replaceSelection(`<video width="100%" controls src="${ge.Z.API_SERVER}/api/attachments/${data.id}"></video>`):mn.content_type.indexOf("pdf")>-1?jn.replaceSelection(`<a href="${ge.Z.API_SERVER}/api/attachments/${mn.id}?type=${mn.content_type}&disposition=inline" target="_blank">${mn.name}</a>`):jn.replaceSelection(`[${mn.name}](${ge.Z.API_SERVER}/api/attachments/${mn.id}?type=${mn.content_type})`)}))});(0,le.useEffect)(()=>{const Tn=window.scrollY||window.pageYOffset;Xa(ur),jn==null||jn.setValue(ur),window.scrollTo(0,Tn)},[ur]),(0,le.useEffect)(()=>{Kt==null||Kt(ra)},[ra]),(0,le.useEffect)(()=>{if(Mi.current){let Tn=function(mn,Jn){var Dr;if(sr){Jn.preventDefault();return}const cr=Jn.clipboardData;if(cr){const xr=cr.types.toString(),Er=cr.items;if(xr==="Files"||cr.types.indexOf("Files")>-1){if(Jn.preventDefault(),En=="stex")return;try{let Nr=Er[1];((Dr=Er[0])==null?void 0:Dr.kind)==="file"&&(Nr=Er[0]);const $r=Nr.getAsFile(),Qe=$r.name.split(".").pop();(0,xt.I)($r,rt=>{var Zt,It,gn;rt.id?((Zt=$r==null?void 0:$r.type)==null?void 0:Zt.indexOf("image"))>-1?kn.replaceSelection(`<img width="100%" src="/api/attachments/${rt.id}?type=${rt.content_type})" alt="" />`):((It=$r==null?void 0:$r.type)==null?void 0:It.indexOf("video"))>-1?kn.replaceSelection(`<video width="100%" controls src="/api/attachments/${rt.id}"></video>`):((gn=$r==null?void 0:$r.type)==null?void 0:gn.indexOf("pdf"))>-1?kn.replaceSelection(`<a href="/api/attachments/${rt.id}?type=${$r.type}&disposition=inline" target="_blank">${$r.name}</a>`):Ut.includes(Qe)?kn.replaceSelection(`<a href="/api/attachments/${rt.id}?type=office&disposition=inline" target="_blank">${$r.name}</a>`):kn.replaceSelection(`[${$r.name}](/api/attachments/${rt.id}?type=${rt.content_type})`):(rt==null?void 0:rt.status)===401&&(Xn.ZP.warning((rt==null?void 0:rt.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Nr){Xn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const kn=Ne().fromTextArea(Mi.current,{mode:En,lineNumbers:!wn,lineWrapping:!0,value:or,autoCloseTags:!Gr,autoCloseBrackets:!0});return kn.on("keyup",function(mn,Jn){Jn.keyCode===8&&(mn.getValue()==""?kn.setOption("placeholder",mr):kn.setOption("placeholder",null))}),kn.on("keydown",function(mn,Jn){if(Jn.keyCode===8){var Dr=Rn(mn);Dr&&Jn.preventDefault()}}),ft&&kn.focus(),kn.on("paste",Tn),kn.on("dragleave",function(mn,Jn){Ti.current.classList.remove("mouse-hover-md")}),Tr&&kn.on("beforeChange",function(mn,Jn){(Jn.origin==="paste"||Jn.origin==="+input")&&Jn.cancel()}),Gi(kn),()=>{kn.off("paste",Tn)}}},[]);const fn=(0,le.useCallback)(()=>{if(Ti.current)try{}catch(Tn){console.log(Tn,"---- to set md editor body height")}},[Pa,Ti,ra]);(0,le.useEffect)(()=>{function Tn(){let kn=new Ue.Z(mn=>{for(let Jn of mn)(Jn.target.offsetHeight>0||Jn.target.offsetWidth>0)&&(fn(),jn.setSize("100%","100%"),jn.refresh())});return kn.observe(Mi.current.parentElement),kn}if(jn){const kn=Tn();return()=>{var mn,Jn;(mn=Mi.current)!=null&&mn.parentElement&&kn.unobserve((Jn=Mi.current)==null?void 0:Jn.parentElement)}}},[jn,fn]),(0,le.useEffect)(()=>{if(jn){let Tn=[];for(const[kn,mn]of Object.entries(Cr)){let Jn={[kn]:()=>{rr(mn)}};Tn.push(Jn),jn.addKeyMap(Jn)}return Gt.current=setInterval(()=>{on.current&&wi()},4e3),()=>{clearInterval(Gt.current);for(let kn of Tn)jn.removeKeyMap(kn)}}},[jn]),(0,le.useEffect)(()=>{ai!==ra&&Oa(ai)},[ai]),(0,Yr.Z)(()=>{if(!br&&oo>0){let Tn=new Date().getTime(),kn=window.sessionStorage.getItem(Hn);Tn>=oo+ki&&(!kn||kn!==_i)&&(window.sessionStorage.setItem(Hn,_i),wo(!0))}},ki),(0,le.useEffect)(()=>{Aa(Ht)},[jn,Ht]),(0,le.useEffect)(()=>{jn&&ft&&jn.focus()},[jn,ft]),(0,le.useEffect)(()=>{if(_a&&jn){let Tn=function(mn){let Jn=mn.target;if(Oi.current){let Dr=Jn.scrollTop/Jn.scrollHeight;Oi.current.scrollTop=Oi.current.scrollHeight*Dr}};const kn=jn.getScrollerElement();return kn.addEventListener("scroll",Tn),()=>{kn.removeEventListener("scroll",Tn)}}},[jn,_a]),(0,le.useEffect)(()=>{if(jn&&Vt){let Tn=function(kn,mn){Vt(kn,mn)};return jn.on("beforeChange",Tn),()=>{jn.off("beforeChange",Tn)}}},[jn,Vt]),(0,le.useEffect)(()=>{if(jn&&ei){let Tn=function(){ei(jn.getValue())};return jn.on("blur",Tn),()=>{jn.off("blur",Tn)}}},[jn,ei]);function Rn(Tn,kn){var mn=Tn.getDoc(),Jn=mn.getCursor(),Dr=mn.getLine(Jn.line),cr=Dr.charAt(Jn.ch-1),xr=Dr.lastIndexOf("@\u2581@",Jn.ch),Er=Dr.lastIndexOf("@\u2581\u2581@",Jn.ch),Nr=xr>Er?xr:Er,$r=xr>Er?3:4;if(ha.indexOf(cr)===-1)return null;if(console.log("change1:",kn,Tn,Dr,Jn,Nr,xr,Er,cr),Nr>=0&&Jn.ch-Nr<5){var Qe=Nr+$r;return mn.replaceRange("",{line:Jn.line,ch:Nr},{line:Jn.line,ch:Qe}),{line:Jn.line,ch:Qe}}return null}(0,le.useEffect)(()=>{if(jn){let Tn=function(kn,mn){const Jn=kn.getValue();Xa(Jn),Yi(new Date().getTime()),kn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Et&&(Gr?Et(Jn,Wt(Jn)):Et(Jn))};return jn.on("change",Tn),()=>{jn.off("change",Tn)}}},[jn,Et]),(0,le.useEffect)(()=>{if(jn)if(or==null)jn.setValue(""),Xa("");else{const Tn=window.scrollY||window.pageYOffset;or!==jn.getValue()&&(jn.setValue(or),Xa(or),jn.setCursor(Tr?1:jn.lineCount(),0),window.scrollTo(0,Tn))}},[jn,or]);const rr=(0,le.useCallback)(Tn=>{const kn=jn.getCursor(),mn=jn.getSelection();let Jn=mn.split(`
`);switch(Tn){case"bold":return jn.replaceSelection("**"+mn+"**"),mn===""&&jn.setCursor(kn.line,kn.ch+2),jn.focus();case"italic":return jn.replaceSelection("*"+mn+"*"),mn===""&&jn.setCursor(kn.line,kn.ch+1),jn.focus();case"code":return jn.replaceSelection("`"+mn+"`"),mn===""&&jn.setCursor(kn.line,kn.ch+1),jn.focus();case"inline-latex":return Ra("inline-latex"),jn.focus();case"latex":return jn.replaceSelection("```latex\n"+mn+"\n```"),jn.setCursor(kn.line+1,mn.length+1),jn.focus();case"line-break":return jn.replaceSelection(`<br/>
`),jn.focus();case"list-ul":return mn===""?jn.replaceSelection("- "+mn):jn.replaceSelection(Jn.map(Dr=>Dr===""?"":`- ${Dr}`).join(`
`)),jn.focus();case"list-ol":return mn===""?jn.replaceSelection("1. "+mn):jn.replaceSelection(Jn.map((Dr,cr)=>Dr===""?"":`${cr+1}. ${Dr}`).join(`
`)),jn.focus();case"add-null-ch":ti==null||ti();return;case"add-signal":return mn===""&&jn.setCursor(kn.line,kn.ch),jn.replaceSelection(pa),jn.focus();case"add-multiple":return mn===""&&jn.setCursor(kn.line,kn.ch),jn.replaceSelection(ha),jn.focus();case"inster-template-1":return mn===""&&jn.setCursor(kn.line,kn.ch),jn.replaceSelection(Ui),jn.focus();case"eraser":return jn.setValue(""),jn.focus();case"trigger-watch":return Aa(!_a),jn.focus();case"trigger-full-screen":return Oa(!ra),jn.focus();case Bt:Ra(Bt);return;case An:Ra(An);return;case ir:Ra(ir);return;case At:Ra(At);return;case"maths-latex":Ra("maths-latex");return;case Ct:aa.current="",sessionStorage.removeItem("file_id"),Ra(Ct);return;case fr:Ra(fr);return;default:throw new Error}},[jn,_a,ra]),me=(0,le.useCallback)((Tn,kn)=>{var mn,Jn,Dr,cr,xr,Er;Ra("");const{src:Nr,alt:$r,id:Qe}=Tn||{};switch(ya){case Bt:const{title:Un,link:Yn}=Tn;return jn.replaceSelection(`[${Un}](${Yn})`),jn.focus();case An:const{language:Ar,content:gr}=Tn;return jn.replaceSelection(["```"+Ar,gr,"```"].join(`
`)),jn.focus();case"maths-latex":for(var rt=atob(Tn),Zt=new Uint8Array(rt.length),It=0;It<rt.length;It++)Zt[It]=rt.charCodeAt(It);var gn=new Blob([Zt],{type:"image/png"});(0,xt.I)(gn,Ii=>{Ii.id?jn.replaceSelection(`![,](/api/attachments/${Ii.id}?type=${Ii.content_type})`):(Ii==null?void 0:Ii.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":jn.replaceSelection("`$$"+Tn+"$$`");break;case er:if(!Qe)return;jn.focus(),jn.getValue().indexOf(Nr)===-1?jn.replaceSelection(`<center><img id="${Qe}" width="80%" src="${Nr}" class="draw-flowchart" alt="${$r||""}" /></center>`):document.getElementById(Qe).src=ge.Z.API_SERVER+Nr+"?t="+Date.now();try{setTimeout(()=>{ei(jn.getValue())},100)}catch(Ii){}break;case ir:case At:const tr=kn,Or=(Dr=(Jn=(mn=tr==null?void 0:tr.name)==null?void 0:mn.split("."))==null?void 0:Jn.pop)==null?void 0:Dr.call(Jn);return((cr=tr==null?void 0:tr.type)==null?void 0:cr.indexOf("image"))>-1||!(tr!=null&&tr.type)?tr!=null&&tr.align||tr!=null&&tr.width?jn.replaceSelection(`<p style="text-align:${tr.align||"initial"}"><img width="${tr.width?tr.width+"%":"initial"}" src="${Nr}" alt="${$r||""}" /></p>`):jn.replaceSelection(`<img width="100%" src="${Nr}" alt="${$r||""}" />`):((xr=tr==null?void 0:tr.type)==null?void 0:xr.indexOf("video"))>-1?jn.replaceSelection(`<video width="100%" controls src="${Nr}"></video>`):((Er=tr==null?void 0:tr.type)==null?void 0:Er.indexOf("pdf"))>-1?jn.replaceSelection(`<a href="${Nr}?type=${tr.type}&disposition=inline" target="_blank">${tr.name}</a>`):Ut.includes(Or)?jn.replaceSelection(`<a href="${Nr}?type=office&disposition=inline" target="_blank">${tr.name}</a>`):jn.replaceSelection(`[${tr.name}](${Nr})`),jn.focus();case fr:const{row:Kr,col:ci,align:Hr}=Tn;let yi=`
`;for(let Ii=0;Ii<Kr;Ii++){let Si=[],Ni=[];for(let gi=0;gi<ci;gi++)Ii===1&&Ni.push(ii[Hr]),Si.push(" ");Ii===1&&(yi+=`| ${Ni.join(" | ")} |
`),yi+=`| ${Si.join(ci===1?"":" | ")} |
`}return jn.replaceSelection(yi+`
`),jn.focus();default:throw new Error}},[jn,ya]),$e=(0,le.useMemo)(()=>{switch(ya){case Bt:return le.createElement(Vn,{callback:me,onCancel:Ve});case An:return le.createElement(In.Z,{callback:me,onCancel:Ve});case ir:return le.createElement(xt.Z,{callback:me,onCancel:Ve});case Ct:return le.createElement(xe,{editImgId:aa.current,callback:me,onCancel:Ve});case fr:return le.createElement(Sn,{callback:me,onCancel:Ve});case"maths-latex":return le.createElement(Xt,{showSaveButton:!0,callback:me});case"inline-latex":return le.createElement(Jt.Z,{showSaveButton:!0,callback:me});default:return null}},[ya]);function Ve(){Ra("")}(0,le.useEffect)(()=>{if(ji.current){let Tn=function(xr){Dr=!0,cr=xr.pageY},kn=function(){Dr=!1},mn=function(xr){if(Dr){let Er=xr.pageY-cr;Er<0&&(Er=0),Er>300&&(Er=300);let Nr=zt+Er+"px";to(Nr)}},Jn=ji.current,Dr=!1,cr=0;return Jn.addEventListener("mousedown",Tn),document.addEventListener("mousemove",mn),document.addEventListener("mouseup",kn),()=>{Jn.removeEventListener("mousedown",Tn),document.removeEventListener("mousemove",mn),document.removeEventListener("mouseup",kn)}}},[jn,ji]),(0,le.useEffect)(()=>{to(zt)},[zt]);const et=Qt(_t),Je=Qt(Pa),ut={width:et,height:Je},mt=(0,le.useMemo)(()=>{if(oo){let Tn=new Date(oo),kn=Tn.getHours(),mn=Tn.getMinutes(),Jn=Tn.getSeconds();return kn=kn<10?"0"+kn:kn,mn=mn<10?"0"+mn:mn,Jn=Jn<10?"0"+Jn:Jn,`${kn}:${mn}:${Jn}`}return 0},[oo]),Wt=Tn=>{const kn=[];if(Gr){let mn=-1;Tn=Tn.replace(/(@▁▁@|@▁@)/g,function(Jn,Dr,cr){kn.push({multiLine:Jn!==pa})})}return kn};function sn(){window.sessionStorage.removeItem(Hn),wo(!1),Yi(0)}function Wn(){wo(!1),Yi(0),jn.setValue(window.sessionStorage.getItem(Hn))}(0,le.useEffect)(()=>{qn[ya]&&ya!==At&&ya!==Ct&&setTimeout(()=>{const Tn=document.getElementsByClassName("markdown-popup-form")[0],kn=window.innerWidth/2-Tn.offsetWidth/2,mn=window.innerHeight/2-Tn.offsetHeight/2;yr(kn),si(mn)},0)},[ya]);const lr=Tn=>{Tn.preventDefault();const kn=Tn.clientX-Kn,mn=Tn.clientY-Ir;document.body.onmousemove=Jn=>{let Dr=Jn.clientX-kn,cr=Jn.clientY-mn;const xr=document.getElementsByClassName("markdown-popup-form")[0],Er=window.innerWidth-xr.offsetWidth,Nr=window.innerHeight-xr.offsetHeight;Dr=Math.max(0,Math.min(Dr,Er)),cr=Math.max(0,Math.min(cr,Nr)),Qn(Jn.clientX,Jn.clientY,kn,mn)&&(yr(Dr),si(cr))},document.body.onmouseup=function(){document.body.onmousemove=null}},Qn=(Tn,kn,mn,Jn)=>{const Dr=document.body.clientHeight,cr=document.body.clientWidth;return Tn<20&&mn>Tn||Tn>cr-20&&mn<Tn||kn<20&&Jn>kn||kn>Dr-20&&Jn<kn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return le.createElement(le.Fragment,null,le.createElement("div",{className:"markdown-editor-wrapper",ref:Ti},le.createElement("div",{className:`markdown-editor-container ${nn} ${_a?"on-preview":""} ${wn?"mini":""} ${ra?"full-screen":""}`,style:ut},le.createElement(je,{insertTemp:xn,watch:_a,fullScreen:ra,showNullButton:fi,showNullProgramButton:Gr,onActionCallback:rr,hidetoolBar:Vr,extraUse:zr}),le.createElement("div",{className:"markdown-editor-body"},le.createElement("div",{className:"codemirror-container"},le.createElement("textarea",{ref:Mi,placeholder:mr})),_a?le.createElement("div",{ref:Oi,className:"preview-container"},En==="stex"&&le.createElement(Re,{value:_i}),En!=="stex"&&le.createElement(nt.Z,{edit:!0,disabledFill:Fn,showProgramFill:Gr,value:_i,openEditor:Tn=>{var kn;aa.current=Tn,(kn=Da.current)==null||kn.setHeight("100vh"),setTimeout(()=>{Ra("add-flowchart")},150)}})):null))),Gn?le.createElement("a",{ref:ji,className:"editor-resize"}):null,ya===At&&le.createElement(Yt,{callback:me,onCancel:Ve}),ya===Ct&&le.createElement(xe,{ref:Da,editImgId:aa.current,callback:me,onCancel:Ve}),le.createElement(it.Z,null,qn[ya]&&ya!==At&&ya!==Ct?le.createElement(Mt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Kn,top:Ir},title:le.createElement("div",{style:{cursor:"move"},onMouseDown:lr},qn[ya]),open:!0,onCancel:Ve,footer:null,destroyOnClose:!0,width:ya===Ct?"1200px":null,height:ya===Ct?"80vh":null,className:"markdown-popup-form"},$e):null))}},70859:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return He},I:function(){return it}});var le=te(22150),Me=te(2453),Ne=te(69677),Ue=te(93421),be=te(31795),ke=te(78045),de=te(71577),we=te(15476),pe=te(67294),Le=te(52262),nt=te(67294),Re=Object.defineProperty,We=Object.defineProperties,qe=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,vt=(at,Ge,Ae)=>Ge in at?Re(at,Ge,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):at[Ge]=Ae,Pt=(at,Ge)=>{for(var Ae in Ge||(Ge={}))Xe.call(Ge,Ae)&&vt(at,Ae,Ge[Ae]);if(lt)for(var Ae of lt(Ge))ye.call(Ge,Ae)&&vt(at,Ae,Ge[Ae]);return at},ot=(at,Ge)=>We(at,qe(Ge));const{useForm:ct}=le.default,Se={width:280,marginRight:10},ce={labelCol:{span:5},wrapperCol:{span:19}};var He=({callback:at,onCancel:Ge})=>{const[Ae]=ct();let wt=(0,pe.useRef)();function dt(Ot){wt.current.width=Ae.getFieldValue("width"),wt.current.align=Ae.getFieldValue("align"),at(Ot,wt.current)}function $t(Ot,Pn){if(Ot.status===-1){Me.ZP.error(Ot.message);return}Ae.setFieldsValue({src:`/api/attachments/${Ot.id}`,type:Pn.type})}function bt(Ot){let Pn=Ot.target.files[0];wt.current=Pn,it(Pn,$t)}return nt.createElement(le.default,ot(Pt({form:Ae},ce),{className:"upload-image-panel",onFinish:dt,style:{width:470,overflow:"hidden"}}),nt.createElement(le.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},nt.createElement("div",{className:"flex-container"},nt.createElement(le.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},nt.createElement(Ne.default,{style:Se})),nt.createElement(je,{onFileChange:bt}))),nt.createElement(le.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},nt.createElement(Ne.default,{style:{width:264}})),nt.createElement(le.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},nt.createElement(Ue.Z,null,nt.createElement(le.default.Item,{name:"width",style:{margin:0}},nt.createElement(be.Z,{style:{width:264}})),nt.createElement("span",{className:"ml8"},"%"))),nt.createElement(le.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},nt.createElement(ke.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),nt.createElement("aside",null,nt.createElement(le.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},nt.createElement(de.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),nt.createElement(de.ZP,{type:"default",onClick:Ge},"\u53D6\u6D88"))))};function je({onFileChange:at}){return nt.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",nt.createElement("input",{type:"file",onChange:at}))}function it(at,Ge){if(!at)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Le.bg)())throw Me.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Ae=new FormData;Ae.append("editormd-image-file",at),Ae.append("file_param_name","editormd-image-file"),Ae.append("byxhr","true");var wt=new window.XMLHttpRequest;wt.withCredentials=!0,wt.addEventListener("load",function(dt){Ge(JSON.parse(dt.target.responseText),at)},!1),wt.addEventListener("error",function(dt){console.error(dt)},!1),wt.open("POST",`${we.KI}/api/attachments.json`),wt.send(Ae)}},76621:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return Ne}});var le=te(67294),Me=te(73935);class Ne extends le.Component{constructor(be){super(be);const ke=window.document;this.node=ke.createElement("div"),ke.body.appendChild(this.node)}render(){const{children:be}=this.props;return(0,Me.createPortal)(be,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return Me}});var le=te(67294);function Me(Ne,Ue){const be=(0,le.useRef)();(0,le.useEffect)(()=>{be.current=Ne}),(0,le.useEffect)(()=>{function ke(){be.current()}if(Ue!==null){let de=setInterval(ke,Ue);return()=>clearInterval(de)}},[Ue])}},17998:function(Nn,Nt,te){"use strict";te.d(Nt,{Q8:function(){return Be},d0:function(){return Rt},w6:function(){return yt}});var le=te(67294),Me=te(34336),Ne=te(11713),Ue=te(2453),be=te(14446),ke=te(78045),de=te(71230),we=te(15746),pe=te(83062),Le=te(84567),nt=te(71577),Re=te(27484),We=te.n(Re),qe=te(52262),lt=te(33170),Xe=te(96486),ye=te.n(Xe),vt=te(28706),Pt=te(39886),ot=te(35973),ct=te(39717),Se=te(78207),ce=te(92882),He=te(96332),je=te(93686),it=te(67294),at=Object.defineProperty,Ge=Object.defineProperties,Ae=Object.getOwnPropertyDescriptors,wt=Object.getOwnPropertySymbols,dt=Object.prototype.hasOwnProperty,$t=Object.prototype.propertyIsEnumerable,bt=(Mt,qt,an)=>qt in Mt?at(Mt,qt,{enumerable:!0,configurable:!0,writable:!0,value:an}):Mt[qt]=an,Ot=(Mt,qt)=>{for(var an in qt||(qt={}))dt.call(qt,an)&&bt(Mt,an,qt[an]);if(wt)for(var an of wt(qt))$t.call(qt,an)&&bt(Mt,an,qt[an]);return Mt},Pn=(Mt,qt)=>Ge(Mt,Ae(qt)),$n=(Mt,qt,an)=>new Promise((ln,Yt)=>{var Cn=ze=>{try{Xn(an.next(ze))}catch(fe){Yt(fe)}},pr=ze=>{try{Xn(an.throw(ze))}catch(fe){Yt(fe)}},Xn=ze=>ze.done?ln(ze.value):Promise.resolve(ze.value).then(Cn,pr);Xn((an=an.apply(Mt,qt)).next())});function yt(Mt,qt){const an=[];for(let ln=Mt;ln<qt;ln++)an.push(ln);return an}const Be=(Mt,qt,an)=>{const ln=Mt<We()().startOf("day"),Yt=Mt>We()(qt).endOf("day"),Cn=Mt<We()(an).startOf("day");return qt?an?We()()<=We()(an)?Cn||Yt:ln||Yt:Mt&&ln||Yt:an&&We()()<=We()(an)?Cn:ln},Rt=(Mt,qt)=>{const an=parseInt(We()(Mt).format("HH")),ln=parseInt(We()().format("HH")),Yt=parseInt(We()().format("mm"));if(!Mt)return{disabledHours:()=>yt(0,ln),disabledMinutes:()=>yt(0,Yt)};if(qt){const Cn=parseInt(We()(qt).format("HH")),pr=parseInt(We()(qt).format("mm"));return We()(Mt).isSame(We()(qt),"day")?{disabledHours:()=>yt(0,Cn),disabledMinutes:()=>an<=Cn?yt(0,pr):[]}:void 0}if(We()(Mt).isSame(We()(),"day"))return{disabledHours:()=>yt(0,ln),disabledMinutes:()=>We()(Mt).isSame(We()(),"hour")&&an<=ln?yt(0,Yt):[]}},{RangePicker:Vn}=Me.default,{Option:In}=Ne.default,xt=({shixunHomeworks:Mt,loading:qt,dispatch:an,classroomList:ln,user:Yt})=>{var Cn,pr,Xn,ze,fe,ue,xe,ge,se;const Fe=(0,ot.useParams)(),{workSetting:st,workList:en,shixunWorkList:Sn,headerInfo:dn,changeData:zn}=Mt,[vn,kt]=(0,le.useState)(!1),[Xt,Jt]=(0,le.useState)(!1);let[jt,Bt]=(0,le.useState)([]),[ir,Ct]=(0,le.useState)([]),[At,er]=(0,le.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,penalty_type:ct.Q.Percent,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,comment_public:!0,total_score:"",eff_score:0,action_analysis:!1,work_end_forbid_evaluate:!1});const[An,fr]=(0,le.useState)({}),[Rr,ii]=(0,le.useState)({});(0,le.useEffect)(()=>()=>{Bt([])},[]),(0,le.useEffect)(()=>{kt(!(0,qe.GJ)())},[(0,qe.GJ)()]);const Yr=()=>{an({type:"shixunHomeworks/getWorkSetting",payload:Ot({},Fe)})};(0,le.useEffect)(()=>{if(!(st!=null&&st.course_id))return;Object.keys(At).map(function(un){At[un]=st[un]}),(!At.allow_late||!At.unified_late)&&(At.late_penalty=20,At.penalty_type=ct.Q.Percent),At.unified_setting||(At.unified_late=!1,At.unified_anonymous_comment=!1,At.unified_anonymous_appeal=!1),jt=JSON.parse(JSON.stringify(st.group_settings.map(un=>Pn(Ot({},un),{group_name:[un.group_name]})).filter(un=>un.publish_time!==null))),ir=JSON.parse(JSON.stringify(st.allow_late_settings.map(un=>Pn(Ot({},un),{group_name:[un.group_name]})).filter(un=>un.late_time!==null))),er(Ot({},At));const Qt=(0,vt.QE)((jt==null?void 0:jt.length)>0?jt:[]);Bt([...Qt]),(ir==null?void 0:ir.length)<=0?Ct([{penalty_type:ct.Q.Percent,late_penalty:20}]):Ct([...ir])},[st]);const Jr=()=>$n(void 0,null,function*(){var Qt,un;if(((Qt=Yt==null?void 0:Yt.userInfo)==null?void 0:Qt.user_status)===2){(0,Se.Rd)();return}const Bn=JSON.parse(JSON.stringify(At));if(Bn.challenge_settings.filter(qn=>!qn.hide),Bn.categoryId=Fe.categoryId,(un=Bn.challenge_settings)!=null&&un.every(qn=>!qn.checked)){Ue.ZP.warning("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(console.log(jt),!At.unified_setting)jt=jt==null?void 0:jt.map(qn=>{var Lr;if(!qn.publish_time||!qn.end_time)throw Ue.ZP.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!qn.group_name)throw Ue.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return qn.group_name=typeof(qn==null?void 0:qn.group_name)=="string"?[qn==null?void 0:qn.group_name]:qn==null?void 0:qn.group_name,qn.group_id=(Lr=st.group_settings)==null?void 0:Lr.filter(or=>{var Et;return(Et=qn==null?void 0:qn.group_name)==null?void 0:Et.includes(or.group_name)}).map(or=>or.group_id||or.id).toString().split(","),qn});else if(!At.publish_time||!At.end_time)throw Ue.ZP.error("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A");if(Bn.group_settings=jt,At.allow_late)if(At.unified_late){if(At.late_penalty===null||At.late_penalty===void 0||At.late_penalty<0||At.late_penalty>100)throw Ue.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!At.late_time)throw Ue.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else ir=ir==null?void 0:ir.map(qn=>{var Lr,or;if(qn.late_penalty===null||qn.late_penalty===void 0||qn.late_penalty<0||qn.late_penalty>100)throw Ue.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!qn.late_time)throw Ue.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!qn.group_name)throw Ue.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return qn.group_name=typeof(qn==null?void 0:qn.group_name)=="string"?[qn==null?void 0:qn.group_name]:qn==null?void 0:qn.group_name,qn.group_id=(or=(Lr=qn==null?void 0:qn.group_name)==null?void 0:Lr.map(Et=>{var _t,zt;let wn=(zt=(_t=st.group_settings)==null?void 0:_t.filter(ft=>(ft==null?void 0:ft.group_name)===Et))==null?void 0:zt[0];return wn==null?void 0:wn.group_id}))==null?void 0:or.toString().split(","),qn}),Bn.allow_late_settings=ir;let Cr=yield(0,je.Tr)({homework_common_ids:[parseInt(Fe.categoryId)],course_id:Fe.coursesId,type:"homework_common"});(Cr==null?void 0:Cr.student_count)===0?mi(Bn):(ii(Bn),fr(Cr))}),mi=Qt=>{var un;if(Qt.total_score===null){Ue.ZP.warning("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(Qt!=null&&Qt.work_efficiency&&Qt.eff_score===null){Ue.ZP.warning("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}const Bn=Qt.challenge_settings.reduce((Lr,or)=>Lr+Number(or.challenge_score),0);if((Bn==null?void 0:Bn.toFixed(10))!==((un=Qt.total_score-Qt.eff_score)==null?void 0:un.toFixed(10))){Ue.ZP.warning(`\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A${Qt.total_score}\u5206`);return}const Cr={shixun_evaluation:Qt.shixun_evaluation,challenge_settings:Qt.challenge_settings};let qn=()=>{var Lr;const or=()=>$n(void 0,null,function*(){Jt(!0),(yield(0,lt.ZP)(`/api/homework_commons/${Fe.categoryId}/publish_setting.json`,{method:"post",body:Ot({},Qt)})).status===0&&(Ue.ZP.success("\u66F4\u65B0\u6210\u529F"),Yr(),an({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:Ot({},Fe)})),Jt(!1)});!(0,Xe.isEqual)(zn,Cr)&&!((Lr=dn==null?void 0:dn.homework_status)!=null&&Lr.includes("\u672A\u53D1\u5E03"))?be.default.confirm({title:"\u66F4\u65B0\u6210\u7EE9",content:"\u60A8\u6539\u52A8\u4E86\u672C\u6B21\u4F5C\u4E1A\u7684\u5173\u5361\u5F97\u5206\u8BBE\u7F6E\uFF0C\u8FD9\u53EF\u80FD\u5BFC\u81F4\u5DF2\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\u7684\u6210\u7EE9\u4EA7\u751F\u9519\u8BEF\u3002\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u6309\u94AE\u5C06\u4FDD\u5B58\u6700\u65B0\u8BBE\u7F6E\u5E76\u6309\u6700\u65B0\u8BBE\u7F6E\u66F4\u65B0\u5168\u73ED\u6210\u7EE9\u3002",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:or}):or()};st!=null&&st.high_resources_consume&&!(st!=null&&st.high_resources_consume_permission)?an({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:Fe.coursesId,type:"shixun",type_id:Fe.categoryId,name:st.homework_name,fn:()=>{qn()}}}):qn()},Br=(Qt,un,Bn="group_id")=>{var Cr;return un?un.find(qn=>qn[Bn]===Qt):(Cr=st==null?void 0:st.group_settings)==null?void 0:Cr.find(qn=>qn.group_id[0]===Qt)},ki=(st==null?void 0:st.allow_late)||(st==null?void 0:st.anonymous_comment),Vi=Qt=>{var un,Bn;const Cr=Br(Qt,st==null?void 0:st.allow_late_settings,"id"),qn=Br(Qt,st==null?void 0:st.anonymous_comment_settings),Lr=Br(Qt);return(st==null?void 0:st.allow_late)&&Cr&&We()(Cr==null?void 0:Cr.late_time)<=We()()||(st==null?void 0:st.anonymous_comment)&&qn&&(qn==null?void 0:qn.evaluation_start)!==null||((Bn=(We()(Lr==null?void 0:Lr.end_time)<=We()()&&((un=st==null?void 0:st.allow_late_settings)==null?void 0:un.filter(or=>or.group_id.includes(Qt))))[0])==null?void 0:Bn.late_time)!=null},ha=(0,le.useMemo)(()=>(st==null?void 0:st.allow_late)||(st==null?void 0:st.all_group_late),[st,dn]),pa=st==null?void 0:st.anonymous_comment,Ui=Qt=>{if(!Qt)return!1;const un=Br(Qt,st==null?void 0:st.anonymous_comment_settings);return(st==null?void 0:st.anonymous_comment)&&un&&(un==null?void 0:un.evaluation_start)!==null},Ut=(Qt,un)=>{var Bn,Cr,qn;an({type:"classroomList/setActionTabs",payload:{key:"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",data:Qt,index:un,rangePickerDisabled:vn||(We()()<=We()((Cr=Br((Bn=Qt==null?void 0:Qt.group_id)==null?void 0:Bn[0]))==null?void 0:Cr.publish_time)?!1:[!0,Vi((qn=Qt==null?void 0:Qt.group_id)==null?void 0:qn[0])]),disabledDate:st==null?void 0:st.course_end_date}})};return it.createElement("section",{className:Pt.Z.form},it.createElement("div",{className:Pt.Z.title},"\u4F5C\u4E1A\u53D1\u5E03",it.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\u4F5C\u4E1A\u4E00\u65E6\u53D1\u5E03\u540E\u4E0D\u53EF\u53D8\u66F4\u8BD5\u9898\u53D1\u5E03\u6A21\u5F0F\uFF09")),it.createElement("div",null,it.createElement("div",{style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},it.createElement(ke.ZP.Group,{disabled:vn||!((Cn=dn==null?void 0:dn.homework_status)!=null&&Cn.includes("\u672A\u53D1\u5E03"))||(0,qe.Rm)()&&!((pr=ln.AssistantObject.practice)!=null&&pr.can_publish),value:At.unified_setting,onChange:Qt=>{var un;if(!((un=dn==null?void 0:dn.homework_status)!=null&&un.includes("\u672A\u53D1\u5E03"))){Ue.ZP.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u7EDF\u4E00\u8BBE\u7F6E");return}if(At.unified_setting=!At.unified_setting,At.unified_setting||(At.unified_late=!1,Ct([{late_penalty:5}])),er(Object.assign({},At)),At.unified_setting===!1&&jt==""){Bt(jt.concat({}));return}At.unified_setting&&(Bt([]),Ct([{late_penalty:5}]))}},it.createElement(ke.ZP,{value:!0,disabled:vn||!(st!=null&&st.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u53D1\u5E03"),it.createElement(ke.ZP,{disabled:vn||!((Xn=st==null?void 0:st.group_settings)!=null&&Xn.length),value:!1},"\u5206\u73ED\u53D1\u5E03")),((ze=st==null?void 0:st.group_settings)==null?void 0:ze.length)===0&&it.createElement("div",{style:{color:"rgba(0, 0, 0, 0.25)",height:"22px"}},"\uFF08\u672C\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03\u201C\uFF09")),At.unified_setting&&it.createElement("div",{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",height:"50px",marginTop:"1px"}},it.createElement(de.Z,{align:"middle"},it.createElement(we.Z,{style:{marginLeft:"23px"}},"\u53D1\u5E03\u65F6\u95F4"),it.createElement(we.Z,{className:"ml10"},it.createElement(Me.default,{size:"large",disabled:vn||!((fe=dn==null?void 0:dn.homework_status)!=null&&fe.includes("\u672A\u53D1\u5E03")||(ue=dn==null?void 0:dn.homework_status)!=null&&ue.includes("\u672A\u5F00\u59CB"))||(0,qe.Rm)()&&!((xe=ln.AssistantObject.practice)!=null&&xe.can_publish),style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},allowClear:!1,format:"YYYY-MM-DD HH:mm",disabledDate:Qt=>Be(Qt,st==null?void 0:st.course_end_date),disabledTime:Qt=>Rt(Qt),value:At.publish_time?We()(At.publish_time):"",onChange:(Qt,un)=>{At.publish_time=un,(At.end_time==""||!At.end_time)&&At.unified_setting&&(At.end_time=We()(Qt).add(7,"days").format("YYYY-MM-DD HH:mm:ss")),er(Object.assign({},At))}}))),it.createElement(de.Z,{align:"middle",className:"pl30"},it.createElement(we.Z,null,"\u622A\u6B62\u65F6\u95F4"),it.createElement(we.Z,{className:"ml10"},it.createElement(Me.default,{size:"large",style:{width:170},allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:We()((0,vt.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:(st==null?void 0:st.allow_late)&&(st==null?void 0:st.homework_status.includes("\u5DF2\u622A\u6B62"))||vn||(st==null?void 0:st.allow_late)&&We()()>=We()(st==null?void 0:st.end_time)||(0,qe.Rm)()&&!((ge=ln.AssistantObject.practice)!=null&&ge.can_publish),disabledDate:Qt=>Be(Qt,st==null?void 0:st.course_end_date,At.publish_time),disabledTime:Qt=>Rt(Qt,At.publish_time),value:At.end_time?We()(At.end_time):"",onChange:(Qt,un)=>{At.end_time=un,er(Object.assign({},At))}})))),!At.unified_setting&&(jt==null?void 0:jt.length)>0&&it.createElement(de.Z,{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"}},jt&&jt.map(function(Qt,un){var Bn,Cr,qn,Lr,or,Et,_t;return it.createElement(we.Z,{span:24,key:un},it.createElement(de.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:un==(jt==null?void 0:jt.length)-1?"0px":"10px"}},it.createElement("div",{style:{minWidth:85,marginRight:"15px",textAlign:"right"}},"\u53D1\u5E03\u89C4\u5219",un+1),it.createElement(Ne.default,{disabled:vn||((Bn=dn==null?void 0:dn.homework_status)!=null&&Bn.includes("\u672A\u53D1\u5E03")&&Qt.id||We()()<We()(Qt==null?void 0:Qt.publish_time)?!1:!!(Qt!=null&&Qt.publish_time))||(0,qe.Rm)()&&!((Cr=ln.AssistantObject.practice)!=null&&Cr.can_publish),mode:"multiple",className:Pt.Z.multiple_select,style:{width:"250px"},value:Qt.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:zt=>{var wn;if((0,qe.Rm)()&&!((wn=ln.AssistantObject.practice)!=null&&wn.can_publish)){Ue.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}jt[un].group_name=zt,jt[un].group_id=Qt.group_id;const ft=(0,Xe.flattenDeep)(jt.map(xn=>xn.group_name)),Ht=ir.map(xn=>{let En=(xn==null?void 0:xn.group_name)||[];return Pn(Ot({},xn),{group_name:(0,Xe.remove)(En,Hn=>ft.includes(Hn))})});Ct(Ht),Bt(jt.slice())},maxTagCount:4,maxTagPlaceholder:zt=>it.createElement("div",{style:{cursor:"pointer"},onClick:()=>Ut(Qt,un)},"+",zt==null?void 0:zt.length)},st.group_settings&&st.group_settings.map(function(zt){if(!jt.map(ft=>ft.group_name).flat().includes(zt.group_name))return it.createElement(In,{value:zt.group_name,key:zt.id},zt.group_name)})),it.createElement("div",{className:"ml20"},it.createElement(Vn,{size:"large",ranges:{\u6B64\u523B:[Qt.publish_time?We()(Qt.publish_time):We()(),We()()]},allowClear:!1,disabled:vn||(We()()<=We()((Lr=Br((qn=Qt==null?void 0:Qt.group_id)==null?void 0:qn[0]))==null?void 0:Lr.publish_time)?!1:[!0,Vi((or=Qt==null?void 0:Qt.group_id)==null?void 0:or[0])]),style:{width:605},placeholder:["\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4\uFF09","\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9\uFF09"],disabledDate:zt=>Be(zt,st==null?void 0:st.course_end_date),disabledTime:zt=>Rt(zt),showTime:{showNow:!0,format:"HH:mm",defaultValue:[We()((0,vt.U6)(),"HH:mm"),We()((0,vt.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:Qt.publish_time&&[We()(Qt.publish_time),Qt.end_time?We()(Qt.end_time):void 0],onChange:(zt,wn)=>{var ft;if((0,qe.Rm)()&&!((ft=ln.AssistantObject.practice)!=null&&ft.can_publish)){Ue.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}jt[un].publish_time=wn[0],!Qt.end_time&&wn[0]?jt[un].end_time=We()(wn[0]).add(7,"days"):jt[un].end_time=wn[1],Bt([...jt])},onCalendarChange:(zt,wn,ft)=>{if(wn!=null&&wn[0]&&!wn[1]){const Ht=We()(wn[0]).add(7,"days");jt[un].publish_time=wn[0],jt[un].end_time=Ht,Bt([...jt])}}})),!vn&&it.createElement("div",{style:{display:"flex",width:"50px"}},((Et=Qt==null?void 0:Qt.group_id)==null?void 0:Et.length)>1&&it.createElement(pe.Z,{title:"\u89C4\u5219\u62C6\u5206"},it.createElement("i",{className:"iconfont icon-chaifen ml10",style:{cursor:"pointer",color:"#3061d0"},onClick:()=>Ut(Qt,un)})),jt.length<((_t=st==null?void 0:st.group_settings)==null?void 0:_t.length)&&it.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var zt;if((0,qe.Rm)()&&!((zt=ln.AssistantObject.practice)!=null&&zt.can_publish)){Ue.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Bt(jt.concat({}))}}),((Qt==null?void 0:Qt.publish_time)&&We()()<We()(Qt==null?void 0:Qt.publish_time)||!(Qt!=null&&Qt.publish_time))&&un!=0&&it.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{const zt=(0,Xe.cloneDeep)(ir);zt.forEach((wn,ft)=>{wn.group_name&&(wn.group_name=wn.group_name.filter(Ht=>{var xn;return!((xn=jt[un].group_name)!=null&&xn.includes(Ht))}))}),jt=jt.filter((wn,ft)=>un!==ft),Ct(zt),Bt(jt.slice()),setTimeout(()=>Bt(jt.slice()),10)}}))))}))),it.createElement(de.Z,null,it.createElement(we.Z,null,it.createElement("div",{className:Pt.Z.title,style:{marginTop:"30px"}},"\u8865\u4EA4\u8BBE\u7F6E",it.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\u53EF\u5BF9\u5728\u4F5C\u4E1A\u53D1\u5E03\u65F6\u95F4\u8303\u56F4\u5185\u672A\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\uFF0C\u5EF6\u957F\u65F6\u95F4\u8FDB\u884C\u8865\u4EA4\uFF09"))),it.createElement(we.Z,{span:24,style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},it.createElement(Le.default,{checked:At.allow_late,disabled:vn||ha,onChange:Qt=>{var un;if((0,qe.Rm)()&&!((un=ln.AssistantObject.practice)!=null&&un.can_late)){Ue.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Qt.target.checked&&be.default.warning({title:"\u5F00\u542F\u8865\u4EA4\u63D0\u793A",centered:!0,width:480,content:it.createElement("div",{style:{padding:10,background:"#f5f6f9"}},it.createElement("div",null,"1.\u5F00\u542F\u8865\u4EA4\u540E\u4E0D\u53EF\u5173\u95ED\uFF0C\u8865\u4EA4\u65B9\u5F0F\u63D0\u4EA4\u4FDD\u5B58\u540E\u4E0D\u53EF\u4FEE\u6539\uFF1B"),it.createElement("div",null,"2.\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u5FC5\u987B\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\uFF1B"),it.createElement("div",null,"3.\u73ED\u7EA7\u9636\u6BB5\u8FDB\u5165\u201C\u8865\u4EA4\u4E2D\u201D\u5219\u4E0D\u53EF\u53D8\u66F4\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3002"))}),At.allow_late=!At.allow_late,ir==""&&Ct([{late_penalty:5}]),er(Object.assign({},At))}},it.createElement("strong",null,"\u5F00\u542F\u8865\u4EA4")))),(At==null?void 0:At.allow_late)&&it.createElement("div",{style:{background:"#F6F7F9",padding:"10px 30px",marginTop:"1px",color:"#666666"}},it.createElement("div",{style:{display:"flex"}},it.createElement("div",{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u65B9\u5F0F"),it.createElement(ke.ZP.Group,{style:{marginLeft:"20px"},disabled:vn||(st==null?void 0:st.anonymous_comment)||(st==null?void 0:st.allow_late),value:At.unified_late,onChange:Qt=>{var un;if((0,qe.Rm)()&&!((un=ln.AssistantObject.practice)!=null&&un.can_late)){Ue.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}At.unified_late=Qt.target.value,ir==""&&!Qt.target.value&&Ct([{penalty_type:ct.Q.Percent,late_penalty:20}]),er(Ot({},At))}},(At==null?void 0:At.unified_setting)&&it.createElement(ke.ZP,{value:!0,disabled:!(st!=null&&st.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u8865\u4EA4"),((se=st==null?void 0:st.group_settings)==null?void 0:se.length)>0&&it.createElement(ke.ZP,{value:!1},"\u5206\u73ED\u8865\u4EA4"))),At!=null&&At.unified_late?it.createElement(it.Fragment,null,it.createElement(de.Z,{align:"middle",style:{marginTop:"10px"}},it.createElement(we.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u6263\u5206"),it.createElement(we.Z,{className:"ml20"},it.createElement(ct.Z,{disabled:vn||pa,value:{type:At.penalty_type,inputValue:At.late_penalty},onChange:Qt=>{var un;if((0,qe.Rm)()&&!((un=ln.AssistantObject.practice)!=null&&un.can_late)){Ue.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}er(Pn(Ot({},At),{late_penalty:Qt.inputValue,penalty_type:Qt.type}))}})),it.createElement(we.Z,{flex:"1",className:"ml5"},it.createElement("span",{className:"c-grey-c ml10"},At.penalty_type===ct.Q.Number?"(\u8865\u4EA4\u65F6\u6309\u7167\u5B66\u751F\u603B\u6210\u7EE9\u6263\u5206)":"(\u5B66\u751F\u6700\u7EC8\u5F97\u5206=\u8865\u4EA4\u524D\u5F97\u5206+\u8865\u4EA4\u9636\u6BB5\u589E\u52A0\u7684\u5206\u503C*\uFF08100%-\u767E\u5206\u6BD4%\uFF09)"))),it.createElement(de.Z,{align:"middle",style:{marginTop:"15px"}},it.createElement(we.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),it.createElement(we.Z,{className:"ml20"},it.createElement(Me.default,{size:"large",allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:We()((0,vt.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:vn||pa,value:At.late_time?We()(At.late_time):"",disabledDate:Qt=>Be(Qt,st==null?void 0:st.course_end_date),onChange:(Qt,un)=>{var Bn;if((0,qe.Rm)()&&!((Bn=ln.AssistantObject.practice)!=null&&Bn.can_late)){Ue.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}At.late_time=un,er(Object.assign({},At))}})))):ir.map(function(Qt,un){var Bn;return it.createElement(we.Z,{span:24,key:un},it.createElement(de.Z,{style:{display:"flex",alignItems:"center",marginTop:"10px"}},it.createElement("div",{style:{width:"85px",marginLeft:"27px",textAlign:"right"}},"\u8865\u4EA4\u89C4\u5219",un+1),it.createElement(Ne.default,{disabled:vn||!((Bn=dn==null?void 0:dn.homework_status)!=null&&Bn.includes("\u672A\u53D1\u5E03"))&&Qt.id||(st==null?void 0:st.anonymous_comment),mode:"multiple",className:Pt.Z.multiple_select,style:{width:"212px",marginLeft:"18px"},value:typeof Qt.group_name=="string"?[Qt.group_name]:Qt.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:Cr=>{var qn;if((0,qe.Rm)()&&!((qn=ln.AssistantObject.practice)!=null&&qn.can_late)){Ue.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ir[un].group_name=Cr,ir[un].group_id=Qt.group_id,Ct(ir.slice())}},st.group_settings&&st.group_settings.map(function(Cr){const qn=ir.map(or=>or.group_name).flat(),Lr=jt.map(or=>or.group_name).flat();if(At!=null&&At.unified_setting){if(!qn.includes(Cr.group_name))return it.createElement(In,{value:Cr.group_name,key:Cr.id},Cr.group_name)}else if(Lr.includes(Cr.group_name)&&!qn.includes(Cr.group_name))return it.createElement(In,{value:Cr.group_name,key:Cr.id},Cr.group_name)})),it.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u6263\u5206"),it.createElement(ct.Z,{disabled:vn||Ui(Qt.id),value:{type:Qt.penalty_type,inputValue:Qt.late_penalty},onChange:Cr=>{var qn;if((0,qe.Rm)()&&!((qn=ln.AssistantObject.practice)!=null&&qn.can_late)){Ue.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ir[un].late_penalty=Cr.inputValue,ir[un].penalty_type=Cr.type,Ct([...ir])}}),it.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),it.createElement(Me.default,{size:"large",disabled:vn||Ui(Qt.id),style:{width:225},showTime:{format:"HH:mm",defaultValue:We()((0,vt.U6)(),"HH:mm")},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",disabledDate:Cr=>Be(Cr,st==null?void 0:st.course_end_date),format:"YYYY-MM-DD HH:mm",value:Qt!=null&&Qt.late_time?We()(Qt.late_time):void 0,onChange:(Cr,qn)=>{var Lr;if((0,qe.Rm)()&&!((Lr=ln.AssistantObject.practice)!=null&&Lr.can_late)){Ue.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ir[un].late_time=qn,Ct([...ir])}}),!vn&&it.createElement("div",{style:{display:"flex",width:"50px"}},it.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var Cr;if((0,qe.Rm)()&&!((Cr=ln.AssistantObject.practice)!=null&&Cr.can_late)){Ue.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Ct(ir.concat({penalty_type:ct.Q.Percent,late_penalty:20}))}}),un>0&&!Qt.id&&it.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{var Cr;if((0,qe.Rm)()&&!((Cr=ln.AssistantObject.practice)!=null&&Cr.can_late)){Ue.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ir=ir.filter((qn,Lr)=>un!==Lr),Ct(ir.slice()),setTimeout(()=>Ct(ir.slice()),10)}}))))})),!vn&&it.createElement(it.Fragment,null,it.createElement(nt.ZP,{type:"primary",size:"large",loading:Xt,style:{width:"138px",marginTop:"30px"},onClick:()=>Jr()},"\u4FDD\u5B58")),it.createElement(ce.Z,{onConfirm:(Qt,un)=>{jt.splice(Qt,0,...un),jt.splice(Qt+un.length,1);const Bn=(0,vt.QE)([...jt]);Bt([...Bn])}}),it.createElement(He.Z,{resdata:An,type:"shixun",okloading:Xt,oktext:(An==null?void 0:An.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:Qt=>$n(void 0,null,function*(){Jt(!0);let un=yield(0,lt.ZP)(`/api/courses/${Fe.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"homework_common",ids:[parseInt(Fe.categoryId)]}});Jt(!1),(un==null?void 0:un.status)===0&&mi(Rr)})}))};Nt.ZP=(0,ot.connect)(({shixunHomeworks:Mt,classroomList:qt,loading:an,user:ln})=>({shixunHomeworks:Mt,classroomList:qt,loading:an.effects,user:ln}))(xt)},6151:function(Nn,Nt,te){"use strict";var le=te(67294),Me=te(59810),Ne=te(22150),Ue=te(14446),be=te(2453),ke=te(9430),de=te(35973),we=te(11320),pe=te(67795),Le=te(33170),nt=te(27484),Re=te.n(nt),We=te(28706),qe=te(67294),lt=Object.defineProperty,Xe=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,Pt=(He,je,it)=>je in He?lt(He,je,{enumerable:!0,configurable:!0,writable:!0,value:it}):He[je]=it,ot=(He,je)=>{for(var it in je||(je={}))ye.call(je,it)&&Pt(He,it,je[it]);if(Xe)for(var it of Xe(je))vt.call(je,it)&&Pt(He,it,je[it]);return He},ct=(He,je,it)=>new Promise((at,Ge)=>{var Ae=$t=>{try{dt(it.next($t))}catch(bt){Ge(bt)}},wt=$t=>{try{dt(it.throw($t))}catch(bt){Ge(bt)}},dt=$t=>$t.done?at($t.value):Promise.resolve($t.value).then(Ae,wt);dt((it=it.apply(He,je)).next())});const{Dragger:Se}=Me.default,ce=({classroomList:He,dispatch:je,onOk:it})=>{const at=(0,de.useParams)(),[Ge]=Ne.default.useForm(),[Ae,wt]=(0,le.useState)(),[dt,$t]=(0,le.useState)(!1),bt={height:100,onRemove:()=>{wt("")},accept:".xls,.xlsx",multiple:!1,maxCount:1,beforeUpload:Ot=>ct(void 0,null,function*(){return wt(Ot),!1})};return(0,le.useEffect)(()=>{Ge.setFieldsValue({publish_time:Re()(Re()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:Re()(Re()(new Date((0,We.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})},[]),qe.createElement(Ue.default,{centered:!0,title:"\u8865\u5145\u6210\u7EE9",open:He.actionTabs.key==="\u8865\u5145\u6210\u7EE9",okText:"\u786E\u5B9A",width:750,destroyOnClose:!0,cancelText:"\u53D6\u6D88",okButtonProps:{loading:dt},onOk:()=>ct(void 0,null,function*(){Ge.submit()}),onCancel:()=>{Ge.resetFields(),je({type:"classroomList/setActionTabs",payload:{}})}},qe.createElement(Ne.default,{form:Ge,onFinish:Ot=>ct(void 0,null,function*(){var Pn,$n,yt;if(!(Ae!=null&&Ae.size)){be.ZP.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6");return}$t(!0);let Be=new FormData;Be.append("type",He.actionTabs.type),Be.append("file",Ae);let Rt;window.location.href.indexOf("exercise")>-1?Rt=`/api/exercises/${He.actionTabs.id}/supplement_score.json`:Rt=`/api/homework_commons/${He.actionTabs.id}/supplement_score.json`;let Vn=yield(0,Le.ZP)(Rt,{method:"post",body:Be},!0);$t(!1),(Vn==null?void 0:Vn.status)===0&&(it(),Ge.resetFields(),je({type:"classroomList/setActionTabs",payload:{}}),(($n=(Pn=Vn==null?void 0:Vn.data)==null?void 0:Pn.fail)==null?void 0:$n.length)>0&&Ue.default.confirm({title:"\u5BFC\u5165\u5931\u8D25",closable:!0,icon:null,width:610,content:qe.createElement(ke.default,{pagination:!1,dataSource:(yt=Vn==null?void 0:Vn.data)==null?void 0:yt.fail,scroll:{y:400},columns:[{title:"\u59D3\u540D",align:"left",dataIndex:"name"},{title:"\u5B66\u53F7/\u624B\u673A\u53F7/\u90AE\u7BB1",align:"left",dataIndex:"student_id"},{title:"\u5BFC\u5165\u5931\u8D25\u539F\u56E0",align:"left",dataIndex:"message"}]}),okText:"\u4E0B\u8F7D\u5BFC\u5165\u5931\u8D25\u6587\u4EF6",cancelText:"\u53D6\u6D88",onOk:()=>{(0,We.FH)("",we.Z.API_SERVER+`/api/courses/get_external_score_fail_data.xlsx?type=${He.actionTabs.type}`)}}))})},qe.createElement(Ne.default.Item,{label:"\u4F5C\u4E1A\u540D\u79F0",labelCol:{span:3},name:"name"},He.actionTabs.name),qe.createElement(Ne.default.Item,{style:{marginBottom:0},label:qe.createElement("div",null,qe.createElement("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"}},"*"),qe.createElement("span",null,"\u5BFC\u5165\u6587\u4EF6")),labelCol:{span:3},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0"}]},qe.createElement("div",null,qe.createElement("a",{download:"\u6A21\u7248.xlsx",className:pe.Z.downloadbutton,href:we.Z.API_SERVER+`/api/courses/down_external_score_template.json?type=${He.actionTabs.type}`},"\u4E0B\u8F7D\u6A21\u7248\u8868\u683C"),qe.createElement("span",{style:{marginLeft:10,color:"#999999"}},"\uFF08\u6839\u636E\u63D0\u793A\u4FE1\u606F\u5B8C\u5584\u8868\u683C\u5185\u5BB9\uFF09")),qe.createElement(Ne.default.Item,{style:{marginBottom:0}},qe.createElement(Se,ot({},bt),qe.createElement("a",{className:pe.Z.downloadbutton,style:{width:96}},"\u9009\u62E9\u6587\u4EF6"),qe.createElement("br",null),qe.createElement("span",{style:{color:"#999999"}},"\u4E0B\u8F7D\u6A21\u677F\u5E76\u5B8C\u5584\u4FE1\u606F\u540E\uFF0C\u53EF\u5C06\u6587\u4EF6\u62D6\u66F3\u81F3\u6B64\u5904\u4E0A\u4F20\u3002\u652F\u6301\u683C\u5F0F\uFF1A.xls\u3001.xlsx"))))))};Nt.Z=(0,de.connect)(({classroomList:He})=>({classroomList:He}))(ce)},12317:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return Le}});var le=te(67294),Me=te(69677),Ne=te(84567),Ue=te(71230),be={leftdiv:"leftdiv___aBzsX",listClass:"listClass___bxIEW",spantitle:"spantitle___v_Vc4",rightdiv:"rightdiv___xWu4M"},ke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC",de=te(26194),we=(nt,Re,We)=>new Promise((qe,lt)=>{var Xe=Pt=>{try{vt(We.next(Pt))}catch(ot){lt(ot)}},ye=Pt=>{try{vt(We.throw(Pt))}catch(ot){lt(ot)}},vt=Pt=>Pt.done?qe(Pt.value):Promise.resolve(Pt.value).then(Xe,ye);vt((We=We.apply(nt,Re)).next())}),Le=({data:nt,value:Re=[],handleChangePage:We,setSelectedRowKeys:qe,selectedRowKeys:lt,onChange:Xe=()=>{}})=>{const[ye,vt]=(0,le.useState)([]),[Pt,ot]=(0,le.useState)([]),[ct,Se]=(0,le.useState)([]);let[ce,He]=(0,le.useState)(1),[je,it]=(0,le.useState)();return(0,le.useEffect)(()=>{vt(nt),ot([]),Se([])},[nt]),(0,le.useEffect)(()=>{qe&&(ot(lt),Se(lt))},[lt]),le.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},le.createElement("div",{className:be.leftdiv},le.createElement(Me.default.Search,{size:"middle",onChange:at=>we(void 0,null,function*(){vt(nt.filter(Ge=>{var Ae;return(Ae=Ge==null?void 0:Ge.name)==null?void 0:Ae.includes(at.target.value)}))}),placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),ye.length===0&&le.createElement(de.Z,{styles:{margin:"70px auto"},customText:"\u6682\u65E0\u5206\u73ED"}),le.createElement("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"}},le.createElement(Ne.default.Group,{value:Pt.map(at=>`${at.id}`),onChange:at=>{qe(ye.filter(Ge=>at.includes(`${Ge.id}`)))},style:{marginTop:"10px",flexDirection:"column"}},ye.map((at,Ge)=>le.createElement(Ue.Z,{key:at.id,style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200}},le.createElement(Ne.default,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:at.is_published,value:`${at.id}`},le.createElement("div",{className:be.listClass},le.createElement("span",{className:be.spantitle,style:{width:at.is_published?"108px":"170px"}},at.name),at.is_published&&le.createElement("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"}},"\u5DF2\u53D1\u5E03")))))))),le.createElement("div",{className:be.rightdiv},le.createElement(Me.default.Search,{onChange:at=>{Se(Pt.filter(Ge=>Ge.name.includes(at.target.value)))},size:"middle",placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),ct.length===0&&le.createElement(de.Z,{styles:{margin:"70px auto"},customText:"\u6682\u672A\u9009\u62E9\u5206\u73ED"}),ct.length>0&&le.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},le.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},ct.map((at,Ge)=>le.createElement(Ue.Z,{justify:"space-between",style:{marginTop:"10px"},key:at.id},le.createElement("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"}},at.name),le.createElement("img",{src:ke,style:{cursor:"pointer",height:"16px",marginRight:17},onClick:()=>{qe(Pt.filter(Ae=>`${Ae.id}`!=`${at.id}`))}})))))))}},92882:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return Xe}});var le=te(67294),Me=te(35973),Ne=te(34336),Ue=te(14446),be=te(69677),ke=te(71230),de=te(15746),we={title_tooltip:"title_tooltip___LLdrn",multiple_select:"multiple_select___kDXUm",modal_con:"modal_con___ERnkW"},pe=te(27484),Le=te.n(pe),nt=te(28706),Re=te(26194),We=te(67294);const{RangePicker:qe}=Ne.default,lt=({dispatch:ye,classroomList:vt,onConfirm:Pt})=>{const[ot,ct]=(0,le.useState)([]),[Se,ce]=(0,le.useState)([]),[He,je]=(0,le.useState)("");(0,le.useEffect)(()=>{var Ge;if(vt.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206"){let Ae=vt.actionTabs.data;console.log("data",Ae);let wt=(Ge=Ae==null?void 0:Ae.group_name)==null?void 0:Ge.map((dt,$t)=>{var bt;return{group_id:Ae==null?void 0:Ae.group_id[$t],group_name:Ae==null?void 0:Ae.group_name[$t],is_admin:Ae==null?void 0:Ae.is_admin,end_time:Ae==null?void 0:Ae.end_time,publish_time:Array.isArray(Ae==null?void 0:Ae.publish_time)?(bt=Ae==null?void 0:Ae.publish_time)==null?void 0:bt[0]:Ae==null?void 0:Ae.publish_time}});wt&&(ct([...wt]),ce([...wt]))}},[vt.actionTabs]);const it=()=>{ye({type:"classroomList/setActionTabs",payload:{}}),je("")},at=Ge=>{if(Ge){const Ae=Se==null?void 0:Se.filter(wt=>{var dt,$t;return($t=(dt=wt==null?void 0:wt.group_name)==null?void 0:dt.toLowerCase())==null?void 0:$t.includes(Ge==null?void 0:Ge.toLowerCase())});ct(Ae)}else ct(Se)};return We.createElement(Ue.default,{width:980,title:We.createElement("div",{style:{fontWeight:"bold",display:"flex"}},We.createElement("div",null,"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",We.createElement("span",{className:we.title_tooltip},"\uFF08\u5F53\u5206\u73ED\u53D1\u5E03\u65F6\u95F4\u548C\u622A\u6B62\u65F6\u95F4\u4E0D\u76F8\u540C\u65F6\u5019\uFF0C\u73ED\u7EA7\u81EA\u52A8\u62C6\u5206\u51FA\u53BB\u65B0\u8D77\u89C4\u5219\uFF09")),We.createElement(be.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",style:{width:220,marginLeft:"60px"},value:He,onChange:Ge=>{je(Ge.target.value.trim()),at(Ge.target.value.trim())}})),centered:!0,maskClosable:!1,open:vt.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",onCancel:()=>it(),onOk:()=>{var Ge;Pt((Ge=vt.actionTabs)==null?void 0:Ge.index,Se),it()}},We.createElement("div",{className:we.modal_con},We.createElement(ke.Z,{style:{display:"flex",color:"#666666",padding:"5px",marginTop:"1px"}},(ot==null?void 0:ot.length)>0?ot.map(function(Ge,Ae){var wt,dt;return We.createElement(de.Z,{span:24,key:Ae},We.createElement(ke.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:Ae==(ot==null?void 0:ot.length)-1?"0px":"10px"}},We.createElement("div",{className:we.multiple_select,title:Ge.group_name},Ge.group_name),We.createElement("div",{className:"ml20"},We.createElement(qe,{size:"large",ranges:{\u6B64\u523B:[Ge.publish_time?Le()(Ge.publish_time):Le()(),Le()()]},allowClear:!1,disabled:(wt=vt.actionTabs)==null?void 0:wt.rangePickerDisabled,style:{width:600},placeholder:["\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4\uFF09","\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9\uFF09"],disabledDate:$t=>{var bt;return(0,nt.Q8)($t,(bt=vt.actionTabs)==null?void 0:bt.disabledDate)},disabledTime:$t=>(0,nt.d0)($t),showTime:{showNow:!0,format:"HH:mm",defaultValue:[Le()((0,nt.U6)(),"HH:mm"),Le()((0,nt.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:Ge.publish_time&&[Le()(Ge.publish_time),Ge.end_time?Le()(Ge.end_time):void 0],onChange:($t,bt)=>{ot[Ae].publish_time=bt[0],ot[Ae].end_time=bt[1],ct([...ot]),Se.forEach(Ot=>{Ot.group_id===Ge.group_id&&(Ot.publish_time=bt[0],Ot.end_time=bt[1])}),ce([...Se])}})),(dt=vt.actionTabs)!=null&&dt.rangePickerDisabled?We.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{color:"#E30000",opacity:"0.2",cursor:"not-allowed"}}):We.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{ot.splice(Ae,1),ct([...ot]),Se.forEach(($t,bt)=>{$t.group_id===Ge.group_id&&Se.splice(bt,1)}),ce([...Se])}})))}):We.createElement(Re.Z,null))))};var Xe=(0,Me.connect)(({classroomList:ye})=>({classroomList:ye}))(lt)},78207:function(Nn,Nt,te){"use strict";te.d(Nt,{rX:function(){return ot},pW:function(){return ct},gy:function(){return Se},xY:function(){return Pt},O5:function(){return vt},tJ:function(){return We},o1:function(){return qe},Rd:function(){return ye}});var le=te(35973),Me=te(14446),Ne=te(96074),Ue=te(52262),be=te(28706),ke=te(55304),de=te(25510),we="data:image/png;base64,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",pe=te.p+"static/newqrcode.a8740efb.png",Le=te(32637),nt=te(67294),Re=(ce,He,je)=>new Promise((it,at)=>{var Ge=dt=>{try{wt(je.next(dt))}catch($t){at($t)}},Ae=dt=>{try{wt(je.throw(dt))}catch($t){at($t)}},wt=dt=>dt.done?it(dt.value):Promise.resolve(dt.value).then(Ge,Ae);wt((je=je.apply(ce,He)).next())});const We=(ce,He=!1)=>!!(qe(ce)&&lt(He)),qe=ce=>(0,Ue.bg)()?!0:(ce({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),lt=(ce=!1)=>{var He;const{user:je}=(0,le.getDvaApp)()._store.getState();return(He=je.userInfo)!=null&&He.profile_completed?!0:(Me.default.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,be.xg)("/account/profile/edit"),Xe()}}),!1)},Xe=()=>{Me.default.success({title:"\u63D0\u793A",width:430,closable:!0,centered:!0,content:"\u5DF2\u5B8C\u5584\u4E2A\u4EBA\u8D44\u6599\uFF1F\u8BF7\u5237\u65B0\u9875\u9762",okText:"\u7ACB\u5373\u5237\u65B0",icon:null,onOk:()=>{location.reload()}})},ye=()=>{Me.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:nt.createElement("div",{style:{textAlign:"center"}},nt.createElement("div",{style:{color:"#191919",fontSize:14,marginBottom:15,textAlign:"left"}},"\u8001\u5E08\u60A8\u597D\uFF0C\u60A8\u7684\u8BFE\u5802\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u76F8\u5173\u529F\u80FD\u88AB\u9650\u5236\u3002 \u5982\u9700\u7EE7\u7EED\u4F7F\u7528\uFF0C\u8BF7\u5C3D\u5FEB\u5BF9\u63A5\u4EBA\u5DE5\u652F\u6301\uFF01"),nt.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:Le}),nt.createElement("div",{style:{color:"#666666",fontSize:14,marginTop:15}},"\u6DFB\u52A0\u5BA2\u670D\u4EBA\u5458\u5FAE\u4FE1\uFF0C\u83B7\u5F97\u66F4\u591A\u652F\u6301"))})},vt=()=>{var ce;const{user:He}=(0,le.getDvaApp)()._store.getState();return(ce=He.userInfo)!=null&&ce.professional_certification?!0:(Me.default.confirm({title:"\u63D0\u793A",centered:!0,content:nt.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,be.xg)("/account/certification")}}),!1)},Pt=()=>(0,Ue.V9)()?!0:(Me.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:nt.createElement("div",{className:"tc",style:{marginLeft:-38}},nt.createElement("p",null,"\u626B\u7801\u52A0\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),nt.createElement("img",{src:pe,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),ot=(ce,He)=>ce?!0:(Me.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:nt.createElement("div",null,nt.createElement("p",null,He||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),nt.createElement("div",{style:{marginLeft:"110px"}},nt.createElement("img",{src:we,width:200}),nt.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,be.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),ct=ce=>{Me.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:nt.createElement("div",null,nt.createElement("div",null,nt.createElement("p",{style:{color:"#191919",fontWeight:400,fontSize:14}},"\u201C\u4FDD\u5B58\u5B9E\u9A8C\u4E34\u65F6\u6570\u636E\u201D\u529F\u80FD\u4E3A\u4ED8\u8D39\u529F\u80FD\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425\u8FDB\u884C\u5F00\u901A\u3002"),nt.createElement(Ne.Z,null),nt.createElement("p",{style:{color:"#666666",fontSize:12}}," ",nt.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"1")," \u56E0\u5E73\u53F0\u7684\u5B9E\u9A8C\u6570\u636E\u50A8\u5B58\u5BB9\u91CF\u548C\u6210\u672C\u6D88\u8017\u8F83\u5927\uFF0C\u5B9E\u8DF5\u9879\u76EE\u9ED8\u8BA4\u4FDD\u5B58\u5B9E\u9A8C\u73AF\u5883\u4E2D\u4E34\u65F6\u6570\u636E ",nt.createElement("a",null,ce),"\u5929\u3002"),nt.createElement("p",{style:{color:"#666666",fontSize:12}}," ",nt.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"2"),"\u82E5\u60A8\u9700\u8981\u4E2A\u6027\u5316\u7684\u6570\u636E\u4FDD\u5B58\u5468\u671F\u670D\u52A1\uFF0C\u6211\u4EEC\u53EF\u4EE5\u63D0\u4F9B\u76F8\u5173\u6280\u672F\u652F\u6301\uFF0C\u5E76\u6839\u636E\u60A8\u7684\u9700\u6C42\u6536\u53D6\u5B9A\u5236\u8D39\u7528\u3002")),nt.createElement("div",{style:{textAlign:"center",marginTop:30}},nt.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:de,alt:"\u4E8C\u7EF4\u7801",width:160})))})},Se=(ce,He="")=>{const{shixunsDetail:{detail:je}}=(0,le.getDvaApp)()._store.getState();if((je==null?void 0:je.public)===2||(je==null?void 0:je.public)===1||(je==null?void 0:je.shixun_status)===3){let it="";return(je==null?void 0:je.public)===2&&(it="\u5DF2\u516C\u5F00"),(je==null?void 0:je.public)===1&&(it="\u5F85\u5BA1\u6838"),(je==null?void 0:je.shixun_status)===3&&(it="\u5DF2\u5173\u95ED"),Me.default.info({centered:!0,icon:nt.createElement(ke.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:nt.createElement("div",{className:"tc",style:{marginLeft:-38}},nt.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},nt.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",it,"\uFF0C",He,"\u3002"),nt.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),nt.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:de,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(je==null?void 0:je.shixun_status)===2?(Me.default.confirm({centered:!0,icon:nt.createElement(ke.Z,null),title:"\u63D0\u793A",content:nt.createElement("div",null,nt.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",He,"\u3002"),nt.createElement("br",null),nt.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>{Me.default.confirm({width:440,centered:!0,icon:nt.createElement(ke.Z,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>Re(void 0,null,function*(){(yield ce({type:"shixunsDetail/cancelRelease",payload:{id:je==null?void 0:je.identifier}})).status!==401&&(ce({type:"shixunsDetail/getShixunsDetail",payload:{id:je==null?void 0:je.identifier}}),ce({type:"practiceSetting/getCommonData",payload:{id:je==null?void 0:je.identifier}}))})})}}),!0):!1}},38780:function(Nn,Nt){"use strict";function te(){const le=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Me=1;Me<arguments.length;Me++){const Ne=Me<0||arguments.length<=Me?void 0:arguments[Me];Ne&&Object.keys(Ne).forEach(Ue=>{const be=Ne[Ue];be!==void 0&&(le[Ue]=be)})}return le}Nt.Z=te},66367:function(Nn,Nt,te){"use strict";te.d(Nt,{F:function(){return le},Z:function(){return Me}});function le(Ne){return Ne!=null&&Ne===Ne.window}function Me(Ne,Ue){var be,ke;if(typeof window=="undefined")return 0;const de=Ue?"scrollTop":"scrollLeft";let we=0;return le(Ne)?we=Ne[Ue?"pageYOffset":"pageXOffset"]:Ne instanceof Document?we=Ne.documentElement[de]:(Ne instanceof HTMLElement||Ne)&&(we=Ne[de]),Ne&&!le(Ne)&&typeof we!="number"&&(we=(ke=((be=Ne.ownerDocument)!==null&&be!==void 0?be:Ne).documentElement)===null||ke===void 0?void 0:ke[de]),we}},57838:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return Me}});var le=te(67294);function Me(){const[,Ne]=le.useReducer(Ue=>Ue+1,0);return Ne}},58375:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return Ue}});var le=te(96523);function Me(be,ke,de,we){const pe=de-ke;return be/=we/2,be<1?pe/2*be*be*be+ke:pe/2*((be-=2)*be*be+2)+ke}var Ne=te(66367);function Ue(be){let ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:de=()=>window,callback:we,duration:pe=450}=ke,Le=de(),nt=(0,Ne.Z)(Le,!0),Re=Date.now(),We=()=>{const lt=Date.now()-Re,Xe=Me(lt>pe?pe:lt,nt,be,pe);(0,Ne.F)(Le)?Le.scrollTo(window.pageXOffset,Xe):Le instanceof Document||Le.constructor.name==="HTMLDocument"?Le.documentElement.scrollTop=Xe:Le.scrollTop=Xe,lt<pe?(0,le.Z)(We):typeof we=="function"&&we()};(0,le.Z)(We)}},9708:function(Nn,Nt,te){"use strict";te.d(Nt,{F:function(){return be},Z:function(){return Ue}});var le=te(94184),Me=te.n(le);const Ne=null;function Ue(ke,de,we){return Me()({[`${ke}-status-success`]:de==="success",[`${ke}-status-warning`]:de==="warning",[`${ke}-status-error`]:de==="error",[`${ke}-status-validating`]:de==="validating",[`${ke}-has-feedback`]:we})}const be=(ke,de)=>de||ke},84567:function(Nn,Nt,te){"use strict";te.d(Nt,{default:function(){return He}});var le=te(94184),Me=te.n(le),Ne=te(95860),Ue=te(67294),be=te(53124),ke=te(98866),de=te(65223),pe=Ue.createContext(null),Le=te(63185),nt=te(45353),Re=te(92429),We=function(je,it){var at={};for(var Ge in je)Object.prototype.hasOwnProperty.call(je,Ge)&&it.indexOf(Ge)<0&&(at[Ge]=je[Ge]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Ge=Object.getOwnPropertySymbols(je);Ae<Ge.length;Ae++)it.indexOf(Ge[Ae])<0&&Object.prototype.propertyIsEnumerable.call(je,Ge[Ae])&&(at[Ge[Ae]]=je[Ge[Ae]]);return at};const qe=(je,it)=>{var at;const{prefixCls:Ge,className:Ae,rootClassName:wt,children:dt,indeterminate:$t=!1,style:bt,onMouseEnter:Ot,onMouseLeave:Pn,skipGroup:$n=!1,disabled:yt}=je,Be=We(je,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Rt,direction:Vn,checkbox:In}=Ue.useContext(be.E_),xt=Ue.useContext(pe),{isFormItemInput:Mt}=Ue.useContext(de.aM),qt=Ue.useContext(ke.Z),an=(at=(xt==null?void 0:xt.disabled)||yt)!==null&&at!==void 0?at:qt,ln=Ue.useRef(Be.value);Ue.useEffect(()=>{xt==null||xt.registerValue(Be.value)},[]),Ue.useEffect(()=>{if(!$n)return Be.value!==ln.current&&(xt==null||xt.cancelValue(ln.current),xt==null||xt.registerValue(Be.value),ln.current=Be.value),()=>xt==null?void 0:xt.cancelValue(Be.value)},[Be.value]);const Yt=Rt("checkbox",Ge),[Cn,pr]=(0,Le.ZP)(Yt),Xn=Object.assign({},Be);xt&&!$n&&(Xn.onChange=function(){Be.onChange&&Be.onChange.apply(Be,arguments),xt.toggleOption&&xt.toggleOption({label:dt,value:Be.value})},Xn.name=xt.name,Xn.checked=xt.value.includes(Be.value));const ze=Me()(`${Yt}-wrapper`,{[`${Yt}-rtl`]:Vn==="rtl",[`${Yt}-wrapper-checked`]:Xn.checked,[`${Yt}-wrapper-disabled`]:an,[`${Yt}-wrapper-in-form-item`]:Mt},In==null?void 0:In.className,Ae,wt,pr),fe=Me()({[`${Yt}-indeterminate`]:$t},Re.A,pr),ue=$t?"mixed":void 0;return Cn(Ue.createElement(nt.Z,{component:"Checkbox",disabled:an},Ue.createElement("label",{className:ze,style:Object.assign(Object.assign({},In==null?void 0:In.style),bt),onMouseEnter:Ot,onMouseLeave:Pn},Ue.createElement(Ne.Z,Object.assign({"aria-checked":ue},Xn,{prefixCls:Yt,className:fe,disabled:an,ref:it})),dt!==void 0&&Ue.createElement("span",null,dt))))};var Xe=Ue.forwardRef(qe),ye=te(74902),vt=te(10366),Pt=function(je,it){var at={};for(var Ge in je)Object.prototype.hasOwnProperty.call(je,Ge)&&it.indexOf(Ge)<0&&(at[Ge]=je[Ge]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Ge=Object.getOwnPropertySymbols(je);Ae<Ge.length;Ae++)it.indexOf(Ge[Ae])<0&&Object.prototype.propertyIsEnumerable.call(je,Ge[Ae])&&(at[Ge[Ae]]=je[Ge[Ae]]);return at};const ot=(je,it)=>{const{defaultValue:at,children:Ge,options:Ae=[],prefixCls:wt,className:dt,rootClassName:$t,style:bt,onChange:Ot}=je,Pn=Pt(je,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:$n,direction:yt}=Ue.useContext(be.E_),[Be,Rt]=Ue.useState(Pn.value||at||[]),[Vn,In]=Ue.useState([]);Ue.useEffect(()=>{"value"in Pn&&Rt(Pn.value||[])},[Pn.value]);const xt=Ue.useMemo(()=>Ae.map(xe=>typeof xe=="string"||typeof xe=="number"?{label:xe,value:xe}:xe),[Ae]),Mt=xe=>{In(ge=>ge.filter(se=>se!==xe))},qt=xe=>{In(ge=>[].concat((0,ye.Z)(ge),[xe]))},an=xe=>{const ge=Be.indexOf(xe.value),se=(0,ye.Z)(Be);ge===-1?se.push(xe.value):se.splice(ge,1),"value"in Pn||Rt(se),Ot==null||Ot(se.filter(Fe=>Vn.includes(Fe)).sort((Fe,st)=>{const en=xt.findIndex(dn=>dn.value===Fe),Sn=xt.findIndex(dn=>dn.value===st);return en-Sn}))},ln=$n("checkbox",wt),Yt=`${ln}-group`,[Cn,pr]=(0,Le.ZP)(ln),Xn=(0,vt.Z)(Pn,["value","disabled"]),ze=Ae.length?xt.map(xe=>Ue.createElement(Xe,{prefixCls:ln,key:xe.value.toString(),disabled:"disabled"in xe?xe.disabled:Pn.disabled,value:xe.value,checked:Be.includes(xe.value),onChange:xe.onChange,className:`${Yt}-item`,style:xe.style,title:xe.title},xe.label)):Ge,fe={toggleOption:an,value:Be,disabled:Pn.disabled,name:Pn.name,registerValue:qt,cancelValue:Mt},ue=Me()(Yt,{[`${Yt}-rtl`]:yt==="rtl"},dt,$t,pr);return Cn(Ue.createElement("div",Object.assign({className:ue,style:bt},Xn,{ref:it}),Ue.createElement(pe.Provider,{value:fe},ze)))},ct=Ue.forwardRef(ot);var Se=Ue.memo(ct);const ce=Xe;ce.Group=Se,ce.__ANT_CHECKBOX=!0;var He=ce},63185:function(Nn,Nt,te){"use strict";te.d(Nt,{C2:function(){return be}});var le=te(14747),Me=te(45503),Ne=te(67968);const Ue=ke=>{const{checkboxCls:de}=ke,we=`${de}-wrapper`;return[{[`${de}-group`]:Object.assign(Object.assign({},(0,le.Wf)(ke)),{display:"inline-flex",flexWrap:"wrap",columnGap:ke.marginXS,[`> ${ke.antCls}-row`]:{flex:1}}),[we]:Object.assign(Object.assign({},(0,le.Wf)(ke)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${we}`]:{marginInlineStart:0},[`&${we}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[de]:Object.assign(Object.assign({},(0,le.Wf)(ke)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:ke.borderRadiusSM,alignSelf:"center",[`${de}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${de}-inner`]:Object.assign({},(0,le.oN)(ke))},[`${de}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:ke.checkboxSize,height:ke.checkboxSize,direction:"ltr",backgroundColor:ke.colorBgContainer,border:`${ke.lineWidth}px ${ke.lineType} ${ke.colorBorder}`,borderRadius:ke.borderRadiusSM,borderCollapse:"separate",transition:`all ${ke.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:ke.checkboxSize/14*5,height:ke.checkboxSize/14*8,border:`${ke.lineWidthBold}px solid ${ke.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${ke.motionDurationFast} ${ke.motionEaseInBack}, opacity ${ke.motionDurationFast}`}},"& + span":{paddingInlineStart:ke.paddingXS,paddingInlineEnd:ke.paddingXS}})},{[`
${we}:not(${we}-disabled),
${de}:not(${de}-disabled)
`]:{[`&:hover ${de}-inner`]:{borderColor:ke.colorPrimary}},[`${we}:not(${we}-disabled)`]:{[`&:hover ${de}-checked:not(${de}-disabled) ${de}-inner`]:{backgroundColor:ke.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${de}-checked:not(${de}-disabled):after`]:{borderColor:ke.colorPrimaryHover}}},{[`${de}-checked`]:{[`${de}-inner`]:{backgroundColor:ke.colorPrimary,borderColor:ke.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${ke.motionDurationMid} ${ke.motionEaseOutBack} ${ke.motionDurationFast}`}}},[`
${we}-checked:not(${we}-disabled),
${de}-checked:not(${de}-disabled)
`]:{[`&:hover ${de}-inner`]:{backgroundColor:ke.colorPrimaryHover,borderColor:"transparent"}}},{[de]:{"&-indeterminate":{[`${de}-inner`]:{backgroundColor:ke.colorBgContainer,borderColor:ke.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:ke.fontSizeLG/2,height:ke.fontSizeLG/2,backgroundColor:ke.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${we}-disabled`]:{cursor:"not-allowed"},[`${de}-disabled`]:{[`&, ${de}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${de}-inner`]:{background:ke.colorBgContainerDisabled,borderColor:ke.colorBorder,"&:after":{borderColor:ke.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:ke.colorTextDisabled},[`&${de}-indeterminate ${de}-inner::after`]:{background:ke.colorTextDisabled}}}]};function be(ke,de){const we=(0,Me.TS)(de,{checkboxCls:`.${ke}`,checkboxSize:de.controlInteractiveSize});return[Ue(we)]}Nt.ZP=(0,Ne.Z)("Checkbox",(ke,de)=>{let{prefixCls:we}=de;return[be(we,ke)]})},88258:function(Nn,Nt,te){"use strict";var le=te(67294),Me=te(53124),Ne=te(32983);const Ue=be=>{const{componentName:ke}=be,{getPrefixCls:de}=(0,le.useContext)(Me.E_),we=de("empty");switch(ke){case"Table":case"List":return le.createElement(Ne.Z,{image:Ne.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return le.createElement(Ne.Z,{image:Ne.Z.PRESENTED_IMAGE_SIMPLE,className:`${we}-small`});default:return le.createElement(Ne.Z,null)}};Nt.Z=Ue},34336:function(Nn,Nt,te){"use strict";te.d(Nt,{default:function(){return To}});var le=te(97909),Me=te.n(le),Ne=te(68291),Ue=te(33088),be=te.n(Ue),ke=te(26850),de=te.n(ke),we=te(23082),pe=te.n(we),Le=te(99873),nt=te.n(Le),Re=te(86625),We=te.n(Re),qe=te(40618),lt=te.n(qe);Me().extend(lt()),Me().extend(We()),Me().extend(be()),Me().extend(de()),Me().extend(pe()),Me().extend(nt()),Me().extend(function(Ce,Oe){var _e=Oe.prototype,Dt=_e.format;_e.format=function(Ln){var yn=(Ln||"").replace("Wo","wo");return Dt.bind(this)(yn)}});var Xe={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},ye=function(Oe){var _e=Xe[Oe];return _e||Oe.split("_")[0]},vt=function(){(0,Ne.ET)(!1,"Not match any format. Please help to fire a issue about this.")},Pt={getNow:function(){return Me()()},getFixedDate:function(Oe){return Me()(Oe,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(Oe){return Oe.endOf("month")},getWeekDay:function(Oe){var _e=Oe.locale("en");return _e.weekday()+_e.localeData().firstDayOfWeek()},getYear:function(Oe){return Oe.year()},getMonth:function(Oe){return Oe.month()},getDate:function(Oe){return Oe.date()},getHour:function(Oe){return Oe.hour()},getMinute:function(Oe){return Oe.minute()},getSecond:function(Oe){return Oe.second()},addYear:function(Oe,_e){return Oe.add(_e,"year")},addMonth:function(Oe,_e){return Oe.add(_e,"month")},addDate:function(Oe,_e){return Oe.add(_e,"day")},setYear:function(Oe,_e){return Oe.year(_e)},setMonth:function(Oe,_e){return Oe.month(_e)},setDate:function(Oe,_e){return Oe.date(_e)},setHour:function(Oe,_e){return Oe.hour(_e)},setMinute:function(Oe,_e){return Oe.minute(_e)},setSecond:function(Oe,_e){return Oe.second(_e)},isAfter:function(Oe,_e){return Oe.isAfter(_e)},isValidate:function(Oe){return Oe.isValid()},locale:{getWeekFirstDay:function(Oe){return Me()().locale(ye(Oe)).localeData().firstDayOfWeek()},getWeekFirstDate:function(Oe,_e){return _e.locale(ye(Oe)).weekday(0)},getWeek:function(Oe,_e){return _e.locale(ye(Oe)).week()},getShortWeekDays:function(Oe){return Me()().locale(ye(Oe)).localeData().weekdaysMin()},getShortMonths:function(Oe){return Me()().locale(ye(Oe)).localeData().monthsShort()},format:function(Oe,_e,Dt){return _e.locale(ye(Oe)).format(Dt)},parse:function(Oe,_e,Dt){for(var Lt=ye(Oe),Ln=0;Ln<Dt.length;Ln+=1){var yn=Dt[Ln],vr=_e;if(yn.includes("wo")||yn.includes("Wo")){for(var _n=vr.split("-")[0],Mn=vr.split("-")[1],kr=Me()(_n,"YYYY").startOf("year").locale(Lt),Zn=0;Zn<=52;Zn+=1){var nr=kr.add(Zn,"week");if(nr.format("Wo")===Mn)return nr}return vt(),null}var Zr=Me()(vr,yn,!0).locale(Lt);if(Zr.isValid())return Zr}return _e&&vt(),null}}},ot=Pt,ct=te(8745),Se=te(87462),ce=te(67294),He={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},je=He,it=te(84089),at=function(Oe,_e){return ce.createElement(it.Z,(0,Se.Z)({},Oe,{ref:_e,icon:je}))},Ge=ce.forwardRef(at),Ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},wt=Ae,dt=function(Oe,_e){return ce.createElement(it.Z,(0,Se.Z)({},Oe,{ref:_e,icon:wt}))},$t=ce.forwardRef(dt),bt=te(16646),Ot={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},Pn=Ot,$n=function(Oe,_e){return ce.createElement(it.Z,(0,Se.Z)({},Oe,{ref:_e,icon:Pn}))},yt=ce.forwardRef($n),Be=te(94184),Rt=te.n(Be),Vn=te(15671),In=te(43144),xt=te(97326),Mt=te(60136),qt=te(51630),an=te(4942),ln=te(1413),Yt=te(97685),Cn=te(5663),pr=te(1337),Xn=te(92739),ze=te(7699),fe=10,ue=fe*10,xe=7;function ge(Ce,Oe){if(!Ce&&!Oe)return!0;if(!Ce||!Oe)return!1}function se(Ce,Oe,_e){var Dt=ge(Oe,_e);if(typeof Dt=="boolean")return Dt;var Lt=Math.floor(Ce.getYear(Oe)/10),Ln=Math.floor(Ce.getYear(_e)/10);return Lt===Ln}function Fe(Ce,Oe,_e){var Dt=ge(Oe,_e);return typeof Dt=="boolean"?Dt:Ce.getYear(Oe)===Ce.getYear(_e)}function st(Ce,Oe){var _e=Math.floor(Ce.getMonth(Oe)/3);return _e+1}function en(Ce,Oe,_e){var Dt=ge(Oe,_e);return typeof Dt=="boolean"?Dt:Fe(Ce,Oe,_e)&&st(Ce,Oe)===st(Ce,_e)}function Sn(Ce,Oe,_e){var Dt=ge(Oe,_e);return typeof Dt=="boolean"?Dt:Fe(Ce,Oe,_e)&&Ce.getMonth(Oe)===Ce.getMonth(_e)}function dn(Ce,Oe,_e){var Dt=ge(Oe,_e);return typeof Dt=="boolean"?Dt:Ce.getYear(Oe)===Ce.getYear(_e)&&Ce.getMonth(Oe)===Ce.getMonth(_e)&&Ce.getDate(Oe)===Ce.getDate(_e)}function zn(Ce,Oe,_e){var Dt=ge(Oe,_e);return typeof Dt=="boolean"?Dt:Ce.getHour(Oe)===Ce.getHour(_e)&&Ce.getMinute(Oe)===Ce.getMinute(_e)&&Ce.getSecond(Oe)===Ce.getSecond(_e)}function vn(Ce,Oe,_e,Dt){var Lt=ge(_e,Dt);return typeof Lt=="boolean"?Lt:Fe(Ce,_e,Dt)&&Ce.locale.getWeek(Oe,_e)===Ce.locale.getWeek(Oe,Dt)}function kt(Ce,Oe,_e){return dn(Ce,Oe,_e)&&zn(Ce,Oe,_e)}function Xt(Ce,Oe,_e,Dt){return!Oe||!_e||!Dt?!1:!dn(Ce,Oe,Dt)&&!dn(Ce,_e,Dt)&&Ce.isAfter(Dt,Oe)&&Ce.isAfter(_e,Dt)}function Jt(Ce,Oe,_e){var Dt=Oe.locale.getWeekFirstDay(Ce),Lt=Oe.setDate(_e,1),Ln=Oe.getWeekDay(Lt),yn=Oe.addDate(Lt,Dt-Ln);return Oe.getMonth(yn)===Oe.getMonth(_e)&&Oe.getDate(yn)>1&&(yn=Oe.addDate(yn,-7)),yn}function jt(Ce,Oe,_e){var Dt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(Oe){case"year":return _e.addYear(Ce,Dt*10);case"quarter":case"month":return _e.addYear(Ce,Dt);default:return _e.addMonth(Ce,Dt)}}function Bt(Ce,Oe){var _e=Oe.generateConfig,Dt=Oe.locale,Lt=Oe.format;return typeof Lt=="function"?Lt(Ce):_e.locale.format(Dt.locale,Ce,Lt)}function ir(Ce,Oe){var _e=Oe.generateConfig,Dt=Oe.locale,Lt=Oe.formatList;return!Ce||typeof Lt[0]=="function"?null:_e.locale.parse(Dt.locale,Ce,Lt)}function Ct(Ce){var Oe=Ce.cellDate,_e=Ce.mode,Dt=Ce.disabledDate,Lt=Ce.generateConfig;if(!Dt)return!1;var Ln=function(Ur,hr,Fr){for(var ni=hr;ni<=Fr;){var li=void 0;switch(Ur){case"date":{if(li=Lt.setDate(Oe,ni),!Dt(li))return!1;break}case"month":{if(li=Lt.setMonth(Oe,ni),!Ct({cellDate:li,mode:"month",generateConfig:Lt,disabledDate:Dt}))return!1;break}case"year":{if(li=Lt.setYear(Oe,ni),!Ct({cellDate:li,mode:"year",generateConfig:Lt,disabledDate:Dt}))return!1;break}}ni+=1}return!0};switch(_e){case"date":case"week":return Dt(Oe);case"month":{var yn=1,vr=Lt.getDate(Lt.getEndDate(Oe));return Ln("date",yn,vr)}case"quarter":{var _n=Math.floor(Lt.getMonth(Oe)/3)*3,Mn=_n+2;return Ln("month",_n,Mn)}case"year":return Ln("month",0,11);case"decade":{var kr=Lt.getYear(Oe),Zn=Math.floor(kr/fe)*fe,nr=Zn+fe-1;return Ln("year",Zn,nr)}}}function At(Ce,Oe){var _e=Oe.formatList,Dt=Oe.generateConfig,Lt=Oe.locale;return(0,Xn.Z)(function(){if(!Ce)return[[""],""];for(var Ln="",yn=[],vr=0;vr<_e.length;vr+=1){var _n=_e[vr],Mn=Bt(Ce,{generateConfig:Dt,locale:Lt,format:_n});yn.push(Mn),vr===0&&(Ln=Mn)}return[yn,Ln]},[Ce,_e,Lt],function(Ln,yn){return!kt(Dt,Ln[0],yn[0])||!(0,ze.Z)(Ln[1],yn[1],!0)||!(0,ze.Z)(Ln[2],yn[2],!0)})}function er(Ce,Oe){var _e=Oe.formatList,Dt=Oe.generateConfig,Lt=Oe.locale,Ln=(0,ce.useState)(null),yn=(0,Yt.Z)(Ln,2),vr=yn[0],_n=yn[1],Mn=(0,ce.useRef)(null);function kr(Fr){var ni=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(Mn.current),ni){_n(Fr);return}Mn.current=requestAnimationFrame(function(){_n(Fr)})}var Zn=At(vr,{formatList:_e,generateConfig:Dt,locale:Lt}),nr=(0,Yt.Z)(Zn,2),Zr=nr[1];function Ur(Fr){kr(Fr)}function hr(){var Fr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;kr(null,Fr)}return(0,ce.useEffect)(function(){hr(!0)},[Ce]),(0,ce.useEffect)(function(){return function(){return cancelAnimationFrame(Mn.current)}},[]),[Zr,Ur,hr]}var An=te(92389),fr=te(96523),Rr=te(74902),ii=te(48130),Yr=new Map;function Jr(Ce,Oe){var _e;function Dt(){(0,ii.Z)(Ce)?Oe():_e=(0,fr.Z)(function(){Dt()})}return Dt(),function(){fr.Z.cancel(_e)}}function mi(Ce,Oe,_e){if(Yr.get(Ce)&&cancelAnimationFrame(Yr.get(Ce)),_e<=0){Yr.set(Ce,requestAnimationFrame(function(){Ce.scrollTop=Oe}));return}var Dt=Oe-Ce.scrollTop,Lt=Dt/_e*10;Yr.set(Ce,requestAnimationFrame(function(){Ce.scrollTop+=Lt,Ce.scrollTop!==Oe&&mi(Ce,Oe,_e-10)}))}function Br(Ce,Oe){var _e=Oe.onLeftRight,Dt=Oe.onCtrlLeftRight,Lt=Oe.onUpDown,Ln=Oe.onPageUpDown,yn=Oe.onEnter,vr=Ce.which,_n=Ce.ctrlKey,Mn=Ce.metaKey;switch(vr){case An.Z.LEFT:if(_n||Mn){if(Dt)return Dt(-1),!0}else if(_e)return _e(-1),!0;break;case An.Z.RIGHT:if(_n||Mn){if(Dt)return Dt(1),!0}else if(_e)return _e(1),!0;break;case An.Z.UP:if(Lt)return Lt(-1),!0;break;case An.Z.DOWN:if(Lt)return Lt(1),!0;break;case An.Z.PAGE_UP:if(Ln)return Ln(-1),!0;break;case An.Z.PAGE_DOWN:if(Ln)return Ln(1),!0;break;case An.Z.ENTER:if(yn)return yn(),!0;break}return!1}function ki(Ce,Oe,_e,Dt){var Lt=Ce;if(!Lt)switch(Oe){case"time":Lt=Dt?"hh:mm:ss a":"HH:mm:ss";break;case"week":Lt="gggg-wo";break;case"month":Lt="YYYY-MM";break;case"quarter":Lt="YYYY-[Q]Q";break;case"year":Lt="YYYY";break;default:Lt=_e?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return Lt}function Vi(Ce,Oe,_e){var Dt=Ce==="time"?8:10,Lt=typeof Oe=="function"?Oe(_e.getNow()).length:Oe.length;return Math.max(Dt,Lt)+2}var ha=null,pa=new Set;function Ui(Ce){return!ha&&typeof window!="undefined"&&window.addEventListener&&(ha=function(_e){(0,Rr.Z)(pa).forEach(function(Dt){Dt(_e)})},window.addEventListener("mousedown",ha)),pa.add(Ce),function(){pa.delete(Ce),pa.size===0&&(window.removeEventListener("mousedown",ha),ha=null)}}function Ut(Ce){var Oe=Ce.target;if(Ce.composed&&Oe.shadowRoot){var _e;return((_e=Ce.composedPath)===null||_e===void 0?void 0:_e.call(Ce)[0])||Oe}return Oe}var Qt=function(Oe){return Oe==="month"||Oe==="date"?"year":Oe},un=function(Oe){return Oe==="date"?"month":Oe},Bn=function(Oe){return Oe==="month"||Oe==="date"?"quarter":Oe},Cr=function(Oe){return Oe==="date"?"week":Oe},qn={year:Qt,month:un,quarter:Bn,week:Cr,time:null,date:null};function Lr(Ce,Oe){return Ce.some(function(_e){return _e&&_e.contains(Oe)})}function or(Ce){var Oe=Ce.open,_e=Ce.value,Dt=Ce.isClickOutside,Lt=Ce.triggerOpen,Ln=Ce.forwardKeyDown,yn=Ce.onKeyDown,vr=Ce.blurToCancel,_n=Ce.onSubmit,Mn=Ce.onCancel,kr=Ce.onFocus,Zn=Ce.onBlur,nr=Ce.changeOnBlur,Zr=(0,ce.useState)(!1),Ur=(0,Yt.Z)(Zr,2),hr=Ur[0],Fr=Ur[1],ni=(0,ce.useState)(!1),li=(0,Yt.Z)(ni,2),xi=li[0],Fi=li[1],ta=(0,ce.useRef)(!1),Hi=(0,ce.useRef)(!1),Ci=(0,ce.useRef)(!1),qa={onMouseDown:function(){Fr(!0),Lt(!0)},onKeyDown:function(so){var Ro=function(){Ci.current=!0};if(yn(so,Ro),!Ci.current){switch(so.which){case An.Z.ENTER:{Oe?_n()!==!1&&Fr(!0):Lt(!0),so.preventDefault();return}case An.Z.TAB:{hr&&Oe&&!so.shiftKey?(Fr(!1),so.preventDefault()):!hr&&Oe&&!Ln(so)&&so.shiftKey&&(Fr(!0),so.preventDefault());return}case An.Z.ESC:{Fr(!0),Mn();return}}!Oe&&![An.Z.SHIFT].includes(so.which)?Lt(!0):hr||Ln(so)}},onFocus:function(so){Fr(!0),Fi(!0),kr&&kr(so)},onBlur:function(so){if(ta.current||!Dt(document.activeElement)){ta.current=!1;return}vr?setTimeout(function(){for(var Ro=document,io=Ro.activeElement;io&&io.shadowRoot;)io=io.shadowRoot.activeElement;Dt(io)&&Mn()},0):Oe&&(Lt(!1),Hi.current&&_n()),Fi(!1),Zn==null||Zn(so)}};return(0,ce.useEffect)(function(){Hi.current=!1},[Oe]),(0,ce.useEffect)(function(){Hi.current=!0},[_e]),(0,ce.useEffect)(function(){return Ui(function(Ha){var so=Ut(Ha),Ro=Dt(so);Oe&&(Ro?!nr&&(!xi||Ro)&&Lt(!1):(ta.current=!0,(0,fr.Z)(function(){ta.current=!1})))})}),[qa,{focused:xi,typing:hr}]}function Et(Ce,Oe){return ce.useMemo(function(){return Ce||(Oe?((0,Ne.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(Oe).map(function(_e){var Dt=(0,Yt.Z)(_e,2),Lt=Dt[0],Ln=Dt[1];return{label:Lt,value:Ln}})):[])},[Ce,Oe])}var _t=te(14075);function zt(Ce){var Oe=Ce.valueTexts,_e=Ce.onTextChange,Dt=ce.useState(""),Lt=(0,Yt.Z)(Dt,2),Ln=Lt[0],yn=Lt[1],vr=ce.useRef([]);vr.current=Oe;function _n(kr){yn(kr),_e(kr)}function Mn(){yn(vr.current[0])}return(0,_t.Z)(function(){Oe.every(function(kr){return kr!==Ln})&&Mn()},[Oe.join("||")]),[Ln,_n,Mn]}var wn=ce.createContext({}),ft=wn,Ht=te(71002);function xn(Ce){var Oe=Ce.cellRender,_e=Ce.monthCellRender,Dt=Ce.dateRender,Lt=ce.useMemo(function(){if(Oe)return Oe;if(!(!_e&&!Dt))return function(Ln,yn){var vr=Ln;return Dt&&yn.type==="date"?Dt(vr,yn.today):_e&&yn.type==="month"?_e(vr,yn.locale):yn.originNode}},[Oe,_e,Dt]);return Lt}function En(Ce,Oe){for(var _e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",Dt=String(Ce);Dt.length<Oe;)Dt="".concat(_e).concat(Ce);return Dt}var Hn=function(){for(var Oe=arguments.length,_e=new Array(Oe),Dt=0;Dt<Oe;Dt++)_e[Dt]=arguments[Dt];return _e};function Gn(Ce){return Ce==null?[]:Array.isArray(Ce)?Ce:[Ce]}function br(Ce,Oe){return Ce?Ce[Oe]:null}function fi(Ce,Oe,_e){var Dt=[br(Ce,0),br(Ce,1)];return Dt[_e]=typeof Oe=="function"?Oe(Dt[_e]):Oe,!Dt[0]&&!Dt[1]?null:Dt}function Gr(Ce){return typeof Ce=="function"?Ce():Ce}function Vr(Ce){var Oe=Ce.cellPrefixCls,_e=Ce.generateConfig,Dt=Ce.rangedValue,Lt=Ce.hoverRangedValue,Ln=Ce.isInView,yn=Ce.isSameCell,vr=Ce.offsetCell,_n=Ce.today,Mn=Ce.value;function kr(Zn){var nr,Zr=vr(Zn,-1),Ur=vr(Zn,1),hr=br(Dt,0),Fr=br(Dt,1),ni=br(Lt,0),li=br(Lt,1),xi=Xt(_e,ni,li,Zn);function Fi(so){return yn(hr,so)}function ta(so){return yn(Fr,so)}var Hi=yn(ni,Zn),Ci=yn(li,Zn),qa=(xi||Ci)&&(!Ln(Zr)||ta(Zr)),Ha=(xi||Hi)&&(!Ln(Ur)||Fi(Ur));return nr={},(0,an.Z)(nr,"".concat(Oe,"-in-view"),Ln(Zn)),(0,an.Z)(nr,"".concat(Oe,"-in-range"),Xt(_e,hr,Fr,Zn)),(0,an.Z)(nr,"".concat(Oe,"-range-start"),Fi(Zn)),(0,an.Z)(nr,"".concat(Oe,"-range-end"),ta(Zn)),(0,an.Z)(nr,"".concat(Oe,"-range-start-single"),Fi(Zn)&&!Fr),(0,an.Z)(nr,"".concat(Oe,"-range-end-single"),ta(Zn)&&!hr),(0,an.Z)(nr,"".concat(Oe,"-range-start-near-hover"),Fi(Zn)&&(yn(Zr,ni)||Xt(_e,ni,li,Zr))),(0,an.Z)(nr,"".concat(Oe,"-range-end-near-hover"),ta(Zn)&&(yn(Ur,li)||Xt(_e,ni,li,Ur))),(0,an.Z)(nr,"".concat(Oe,"-range-hover"),xi),(0,an.Z)(nr,"".concat(Oe,"-range-hover-start"),Hi),(0,an.Z)(nr,"".concat(Oe,"-range-hover-end"),Ci),(0,an.Z)(nr,"".concat(Oe,"-range-hover-edge-start"),qa),(0,an.Z)(nr,"".concat(Oe,"-range-hover-edge-end"),Ha),(0,an.Z)(nr,"".concat(Oe,"-range-hover-edge-start-near-range"),qa&&yn(Zr,Fr)),(0,an.Z)(nr,"".concat(Oe,"-range-hover-edge-end-near-range"),Ha&&yn(Ur,hr)),(0,an.Z)(nr,"".concat(Oe,"-today"),yn(_n,Zn)),(0,an.Z)(nr,"".concat(Oe,"-selected"),yn(Mn,Zn)),nr}return kr}var ai=ce.createContext({}),ei=ai;function Vt(Ce,Oe,_e,Dt,Lt){var Ln=Ce.setHour(Oe,_e);return Ln=Ce.setMinute(Ln,Dt),Ln=Ce.setSecond(Ln,Lt),Ln}function Kt(Ce,Oe,_e){if(!_e)return Oe;var Dt=Oe;return Dt=Ce.setHour(Dt,Ce.getHour(_e)),Dt=Ce.setMinute(Dt,Ce.getMinute(_e)),Dt=Ce.setSecond(Dt,Ce.getSecond(_e)),Dt}function nn(Ce,Oe,_e,Dt,Lt,Ln){var yn=Math.floor(Ce/Dt)*Dt;if(yn<Ce)return[yn,60-Lt,60-Ln];var vr=Math.floor(Oe/Lt)*Lt;if(vr<Oe)return[yn,vr,60-Ln];var _n=Math.floor(_e/Ln)*Ln;return[yn,vr,_n]}function sr(Ce,Oe){var _e=Ce.getYear(Oe),Dt=Ce.getMonth(Oe)+1,Lt=Ce.getEndDate(Ce.getFixedDate("".concat(_e,"-").concat(Dt,"-01"))),Ln=Ce.getDate(Lt),yn=Dt<10?"0".concat(Dt):"".concat(Dt);return"".concat(_e,"-").concat(yn,"-").concat(Ln)}function Tr(Ce){for(var Oe=Ce.prefixCls,_e=Ce.disabledDate,Dt=Ce.onSelect,Lt=Ce.picker,Ln=Ce.rowNum,yn=Ce.colNum,vr=Ce.prefixColumn,_n=Ce.rowClassName,Mn=Ce.baseDate,kr=Ce.getCellClassName,Zn=Ce.getCellText,nr=Ce.getCellNode,Zr=Ce.getCellDate,Ur=Ce.generateConfig,hr=Ce.titleCell,Fr=Ce.headerCells,ni=ce.useContext(ft),li=ni.onDateMouseEnter,xi=ni.onDateMouseLeave,Fi=ni.mode,ta="".concat(Oe,"-cell"),Hi=[],Ci=0;Ci<Ln;Ci+=1){for(var qa=[],Ha=void 0,so=function(){var Ta,Eo=Ci*yn+Ro,ho=Zr(Mn,Eo),no=Ct({cellDate:ho,mode:Fi,disabledDate:_e,generateConfig:Ur});Ro===0&&(Ha=ho,vr&&qa.push(vr(Ha)));var go=hr&&hr(ho),Mo=ce.createElement("div",{className:"".concat(ta,"-inner")},Zn(ho));qa.push(ce.createElement("td",{key:Ro,title:go,className:Rt()(ta,(0,ln.Z)((Ta={},(0,an.Z)(Ta,"".concat(ta,"-disabled"),no),(0,an.Z)(Ta,"".concat(ta,"-start"),Zn(ho)===1||Lt==="year"&&Number(go)%10===0),(0,an.Z)(Ta,"".concat(ta,"-end"),go===sr(Ur,ho)||Lt==="year"&&Number(go)%10===9),Ta),kr(ho))),onClick:function(){no||Dt(ho)},onMouseEnter:function(){!no&&li&&li(ho)},onMouseLeave:function(){!no&&xi&&xi(ho)}},nr?nr(ho,Mo):Mo))},Ro=0;Ro<yn;Ro+=1)so();Hi.push(ce.createElement("tr",{key:Ci,className:_n&&_n(Ha)},qa))}return ce.createElement("div",{className:"".concat(Oe,"-body")},ce.createElement("table",{className:"".concat(Oe,"-content")},Fr&&ce.createElement("thead",null,ce.createElement("tr",null,Fr)),ce.createElement("tbody",null,Hi)))}function Fn(Ce){var Oe=Ce.prefixCls,_e=Ce.generateConfig,Dt=Ce.prefixColumn,Lt=Ce.locale,Ln=Ce.rowCount,yn=Ce.viewDate,vr=Ce.value,_n=Ce.cellRender,Mn=Ce.isSameCell,kr=ce.useContext(ei),Zn=kr.rangedValue,nr=kr.hoverRangedValue,Zr=Jt(Lt.locale,_e,yn),Ur="".concat(Oe,"-cell"),hr=_e.locale.getWeekFirstDay(Lt.locale),Fr=_e.getNow(),ni=[],li=Lt.shortWeekDays||(_e.locale.getShortWeekDays?_e.locale.getShortWeekDays(Lt.locale):[]);Dt&&ni.push(ce.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var xi=0;xi<xe;xi+=1)ni.push(ce.createElement("th",{key:xi},li[(xi+hr)%xe]));var Fi=Vr({cellPrefixCls:Ur,today:Fr,value:vr,generateConfig:_e,rangedValue:Dt?null:Zn,hoverRangedValue:Dt?null:nr,isSameCell:Mn||function(Hi,Ci){return dn(_e,Hi,Ci)},isInView:function(Ci){return Sn(_e,Ci,yn)},offsetCell:function(Ci,qa){return _e.addDate(Ci,qa)}}),ta=_n?function(Hi,Ci){return _n(Hi,{originNode:Ci,today:Fr,type:"date",locale:Lt})}:void 0;return ce.createElement(Tr,(0,Se.Z)({},Ce,{rowNum:Ln,colNum:xe,baseDate:Zr,getCellNode:ta,getCellText:_e.getDate,getCellClassName:Fi,getCellDate:_e.addDate,titleCell:function(Ci){return Bt(Ci,{locale:Lt,format:"YYYY-MM-DD",generateConfig:_e})},headerCells:ni}))}var mr=Fn,ur={visibility:"hidden"};function zr(Ce){var Oe=Ce.prefixCls,_e=Ce.prevIcon,Dt=_e===void 0?"\u2039":_e,Lt=Ce.nextIcon,Ln=Lt===void 0?"\u203A":Lt,yn=Ce.superPrevIcon,vr=yn===void 0?"\xAB":yn,_n=Ce.superNextIcon,Mn=_n===void 0?"\xBB":_n,kr=Ce.onSuperPrev,Zn=Ce.onSuperNext,nr=Ce.onPrev,Zr=Ce.onNext,Ur=Ce.children,hr=ce.useContext(ft),Fr=hr.hideNextBtn,ni=hr.hidePrevBtn;return ce.createElement("div",{className:Oe},kr&&ce.createElement("button",{type:"button",onClick:kr,tabIndex:-1,className:"".concat(Oe,"-super-prev-btn"),style:ni?ur:{}},vr),nr&&ce.createElement("button",{type:"button",onClick:nr,tabIndex:-1,className:"".concat(Oe,"-prev-btn"),style:ni?ur:{}},Dt),ce.createElement("div",{className:"".concat(Oe,"-view")},Ur),Zr&&ce.createElement("button",{type:"button",onClick:Zr,tabIndex:-1,className:"".concat(Oe,"-next-btn"),style:Fr?ur:{}},Ln),Zn&&ce.createElement("button",{type:"button",onClick:Zn,tabIndex:-1,className:"".concat(Oe,"-super-next-btn"),style:Fr?ur:{}},Mn))}var ti=zr;function jn(Ce){var Oe=Ce.prefixCls,_e=Ce.generateConfig,Dt=Ce.locale,Lt=Ce.viewDate,Ln=Ce.onNextMonth,yn=Ce.onPrevMonth,vr=Ce.onNextYear,_n=Ce.onPrevYear,Mn=Ce.onYearClick,kr=Ce.onMonthClick,Zn=ce.useContext(ft),nr=Zn.hideHeader;if(nr)return null;var Zr="".concat(Oe,"-header"),Ur=Dt.shortMonths||(_e.locale.getShortMonths?_e.locale.getShortMonths(Dt.locale):[]),hr=_e.getMonth(Lt),Fr=ce.createElement("button",{type:"button",key:"year",onClick:Mn,tabIndex:-1,className:"".concat(Oe,"-year-btn")},Bt(Lt,{locale:Dt,format:Dt.yearFormat,generateConfig:_e})),ni=ce.createElement("button",{type:"button",key:"month",onClick:kr,tabIndex:-1,className:"".concat(Oe,"-month-btn")},Dt.monthFormat?Bt(Lt,{locale:Dt,format:Dt.monthFormat,generateConfig:_e}):Ur[hr]),li=Dt.monthBeforeYear?[ni,Fr]:[Fr,ni];return ce.createElement(ti,(0,Se.Z)({},Ce,{prefixCls:Zr,onSuperPrev:_n,onPrev:yn,onNext:Ln,onSuperNext:vr}),li)}var Gi=jn,_i=6;function Xa(Ce){var Oe=Ce.prefixCls,_e=Ce.panelName,Dt=_e===void 0?"date":_e,Lt=Ce.keyboardConfig,Ln=Ce.active,yn=Ce.operationRef,vr=Ce.generateConfig,_n=Ce.value,Mn=Ce.viewDate,kr=Ce.onViewDateChange,Zn=Ce.onPanelChange,nr=Ce.onSelect,Zr="".concat(Oe,"-").concat(Dt,"-panel");yn.current={onKeyDown:function(ni){return Br(ni,(0,ln.Z)({onLeftRight:function(xi){nr(vr.addDate(_n||Mn,xi),"key")},onCtrlLeftRight:function(xi){nr(vr.addYear(_n||Mn,xi),"key")},onUpDown:function(xi){nr(vr.addDate(_n||Mn,xi*xe),"key")},onPageUpDown:function(xi){nr(vr.addMonth(_n||Mn,xi),"key")}},Lt))}};var Ur=function(ni){var li=vr.addYear(Mn,ni);kr(li),Zn(null,li)},hr=function(ni){var li=vr.addMonth(Mn,ni);kr(li),Zn(null,li)};return ce.createElement("div",{className:Rt()(Zr,(0,an.Z)({},"".concat(Zr,"-active"),Ln))},ce.createElement(Gi,(0,Se.Z)({},Ce,{prefixCls:Oe,value:_n,viewDate:Mn,onPrevYear:function(){Ur(-1)},onNextYear:function(){Ur(1)},onPrevMonth:function(){hr(-1)},onNextMonth:function(){hr(1)},onMonthClick:function(){Zn("month",Mn)},onYearClick:function(){Zn("year",Mn)}})),ce.createElement(mr,(0,Se.Z)({},Ce,{onSelect:function(ni){return nr(ni,"mouse")},prefixCls:Oe,value:_n,viewDate:Mn,rowCount:_i})))}var _a=Xa;function Aa(Ce){var Oe=ce.useContext(ft),_e=Oe.hideHeader;if(_e)return null;var Dt=Ce.prefixCls,Lt=Ce.generateConfig,Ln=Ce.locale,yn=Ce.value,vr=Ce.format,_n="".concat(Dt,"-header");return ce.createElement(ti,{prefixCls:_n},yn?Bt(yn,{locale:Ln,format:vr,generateConfig:Lt}):"\xA0")}var ra=Aa;function Oa(Ce){var Oe=Ce.value,_e=Ce.generateConfig,Dt=Ce.disabledMinutes,Lt=Ce.disabledSeconds,Ln=Ce.minutes,yn=Ce.seconds,vr=Ce.use12Hours,_n=function(kr,Zn,nr,Zr){var Ur=_e.getNow(),hr=Oe||Ur,Fr=Zn<0?_e.getHour(Ur):Zn,ni=nr<0?_e.getMinute(Ur):nr,li=Zr<0?_e.getSecond(Ur):Zr,xi=Dt&&Dt(Fr);if(xi!=null&&xi.includes(ni)){var Fi=Ln.find(function(Ci){return!xi.includes(Ci.value)});if(Fi)ni=Fi.value;else return null}var ta=Lt&&Lt(Fr,ni);if(ta!=null&&ta.includes(li)){var Hi=yn.find(function(Ci){return!ta.includes(Ci.value)});if(Hi)li=Hi.value;else return null}return hr=Vt(_e,hr,!vr||!kr?Fr:Fr+12,ni,li),hr};return _n}function ya(Ce){var Oe=Ce.prefixCls,_e=Ce.units,Dt=Ce.onSelect,Lt=Ce.value,Ln=Ce.active,yn=Ce.hideDisabledOptions,vr=Ce.info,_n=Ce.type,Mn="".concat(Oe,"-cell"),kr=ce.useContext(ft),Zn=kr.open,nr=(0,ce.useRef)(null),Zr=(0,ce.useRef)(new Map),Ur=(0,ce.useRef)();return(0,ce.useLayoutEffect)(function(){var hr=Zr.current.get(Lt);hr&&Zn!==!1&&mi(nr.current,hr.offsetTop,120)},[Lt]),(0,ce.useLayoutEffect)(function(){if(Zn){var hr=Zr.current.get(Lt);hr&&(Ur.current=Jr(hr,function(){mi(nr.current,hr.offsetTop,0)}))}return function(){var Fr;(Fr=Ur.current)===null||Fr===void 0||Fr.call(Ur)}},[Zn]),ce.createElement("ul",{className:Rt()("".concat(Oe,"-column"),(0,an.Z)({},"".concat(Oe,"-column-active"),Ln)),ref:nr,style:{position:"relative"}},_e.map(function(hr){var Fr;return yn&&hr.disabled?null:ce.createElement("li",{key:hr.value,ref:function(li){Zr.current.set(hr.value,li)},className:Rt()(Mn,(Fr={},(0,an.Z)(Fr,"".concat(Mn,"-disabled"),hr.disabled),(0,an.Z)(Fr,"".concat(Mn,"-selected"),Lt===hr.value),Fr)),onClick:function(){hr.disabled||Dt(hr.value)}},vr.cellRender?vr.cellRender(hr.value,{today:vr.today,locale:vr.locale,originNode:ce.createElement("div",{className:"".concat(Mn,"-inner")},hr.label),type:"time",subType:_n}):ce.createElement("div",{className:"".concat(Mn,"-inner")},hr.label))}))}var Ra=ya;function oo(Ce,Oe){if(Ce.length!==Oe.length)return!0;for(var _e=0;_e<Ce.length;_e+=1)if(Ce[_e].disabled!==Oe[_e].disabled)return!0;return!1}function Yi(Ce,Oe,_e,Dt){for(var Lt=[],Ln=_e>=1?_e|0:1,yn=Ce;yn<=Oe;yn+=Ln)Lt.push({label:En(yn,2),value:yn,disabled:(Dt||[]).includes(yn)});return Lt}function Pa(Ce){var Oe=Ce.generateConfig,_e=Ce.prefixCls,Dt=Ce.operationRef,Lt=Ce.activeColumnIndex,Ln=Ce.value,yn=Ce.showHour,vr=Ce.showMinute,_n=Ce.showSecond,Mn=Ce.use12Hours,kr=Ce.hourStep,Zn=kr===void 0?1:kr,nr=Ce.minuteStep,Zr=nr===void 0?1:nr,Ur=Ce.secondStep,hr=Ur===void 0?1:Ur,Fr=Ce.disabledHours,ni=Ce.disabledMinutes,li=Ce.disabledSeconds,xi=Ce.disabledTime,Fi=Ce.hideDisabledOptions,ta=Ce.onSelect,Hi=Ce.cellRender,Ci=Ce.locale,qa=[],Ha="".concat(_e,"-content"),so="".concat(_e,"-time-panel"),Ro,io=Ln?Oe.getHour(Ln):-1,Ta=io,Eo=Ln?Oe.getMinute(Ln):-1,ho=Ln?Oe.getSecond(Ln):-1,no=Oe.getNow(),go=ce.useMemo(function(){if(xi){var Sa=xi(no);return[Sa.disabledHours,Sa.disabledMinutes,Sa.disabledSeconds]}return[Fr,ni,li]},[Fr,ni,li,xi,no]),Mo=(0,Yt.Z)(go,3),is=Mo[0],ls=Mo[1],Ms=Mo[2],al=Yi(0,23,Zn,is&&is()),Xs=(0,Xn.Z)(function(){return al},al,oo);Mn&&(Ro=Ta>=12,Ta%=12);var Qs=ce.useMemo(function(){if(!Mn)return[!1,!1];var Sa=[!0,!0];return Xs.forEach(function(Ko){var as=Ko.disabled,Ks=Ko.value;as||(Ks>=12?Sa[1]=!1:Sa[0]=!1)}),Sa},[Mn,Xs]),As=(0,Yt.Z)(Qs,2),ml=As[0],Bs=As[1],ao=ce.useMemo(function(){return Mn?Xs.filter(Ro?function(Sa){return Sa.value>=12}:function(Sa){return Sa.value<12}).map(function(Sa){var Ko=Sa.value%12,as=Ko===0?"12":En(Ko,2);return(0,ln.Z)((0,ln.Z)({},Sa),{},{label:as,value:Ko})}):Xs},[Mn,Ro,Xs]),eo=Yi(0,59,Zr,ls&&ls(io)),xs=Yi(0,59,hr,Ms&&Ms(io,Eo)),ks=Oa({value:Ln,generateConfig:Oe,disabledMinutes:ls,disabledSeconds:Ms,minutes:eo,seconds:xs,use12Hours:Mn});Dt.current={onUpDown:function(Ko){var as=qa[Lt];if(as)for(var Ks=as.units.findIndex(function(Ru){return Ru.value===as.value}),Hs=as.units.length,Us=1;Us<Hs;Us+=1){var zl=as.units[(Ks+Ko*Us+Hs)%Hs];if(zl.disabled!==!0){as.onSelect(zl.value);break}}}};function po(Sa,Ko,as,Ks,Hs){Sa!==!1&&qa.push({node:ce.cloneElement(Ko,{prefixCls:so,value:as,active:Lt===qa.length,onSelect:Hs,units:Ks,hideDisabledOptions:Fi}),onSelect:Hs,value:as,units:Ks})}po(yn,ce.createElement(Ra,{key:"hour",type:"hour",info:{today:no,locale:Ci,cellRender:Hi}}),Ta,ao,function(Sa){ta(ks(Ro,Sa,Eo,ho),"mouse")}),po(vr,ce.createElement(Ra,{key:"minute",type:"minute",info:{today:no,locale:Ci,cellRender:Hi}}),Eo,eo,function(Sa){ta(ks(Ro,Ta,Sa,ho),"mouse")}),po(_n,ce.createElement(Ra,{key:"second",type:"second",info:{today:no,locale:Ci,cellRender:Hi}}),ho,xs,function(Sa){ta(ks(Ro,Ta,Eo,Sa),"mouse")});var jo=-1;return typeof Ro=="boolean"&&(jo=Ro?1:0),po(Mn===!0,ce.createElement(Ra,{key:"meridiem",type:"meridiem",info:{today:no,locale:Ci,cellRender:Hi}}),jo,[{label:"AM",value:0,disabled:ml},{label:"PM",value:1,disabled:Bs}],function(Sa){ta(ks(!!Sa,Ta,Eo,ho),"mouse")}),ce.createElement("div",{className:Ha},qa.map(function(Sa){var Ko=Sa.node;return Ko}))}var to=Pa,_o=function(Oe){return Oe.filter(function(_e){return _e!==!1}).length};function wo(Ce){var Oe=Ce.generateConfig,_e=Ce.format,Dt=_e===void 0?"HH:mm:ss":_e,Lt=Ce.prefixCls,Ln=Ce.active,yn=Ce.operationRef,vr=Ce.showHour,_n=Ce.showMinute,Mn=Ce.showSecond,kr=Ce.use12Hours,Zn=kr===void 0?!1:kr,nr=Ce.onSelect,Zr=Ce.value,Ur="".concat(Lt,"-time-panel"),hr=ce.useRef(),Fr=ce.useState(-1),ni=(0,Yt.Z)(Fr,2),li=ni[0],xi=ni[1],Fi=_o([vr,_n,Mn,Zn]);return yn.current={onKeyDown:function(Hi){return Br(Hi,{onLeftRight:function(qa){xi((li+qa+Fi)%Fi)},onUpDown:function(qa){li===-1?xi(0):hr.current&&hr.current.onUpDown(qa)},onEnter:function(){nr(Zr||Oe.getNow(),"key"),xi(-1)}})},onBlur:function(){xi(-1)}},ce.createElement("div",{className:Rt()(Ur,(0,an.Z)({},"".concat(Ur,"-active"),Ln))},ce.createElement(ra,(0,Se.Z)({},Ce,{format:Dt,prefixCls:Lt})),ce.createElement(to,(0,Se.Z)({},Ce,{prefixCls:Lt,activeColumnIndex:li,operationRef:hr})))}var ia=wo,on=Hn("date","time");function Gt(Ce){var Oe=Ce.prefixCls,_e=Ce.operationRef,Dt=Ce.generateConfig,Lt=Ce.value,Ln=Ce.defaultValue,yn=Ce.disabledTime,vr=Ce.showTime,_n=Ce.onSelect,Mn=Ce.cellRender,kr="".concat(Oe,"-datetime-panel"),Zn=ce.useState(null),nr=(0,Yt.Z)(Zn,2),Zr=nr[0],Ur=nr[1],hr=ce.useRef({}),Fr=ce.useRef({}),ni=(0,Ht.Z)(vr)==="object"?(0,ln.Z)({},vr):{};function li(Hi){var Ci=on.indexOf(Zr)+Hi,qa=on[Ci]||null;return qa}var xi=function(Ci){Fr.current.onBlur&&Fr.current.onBlur(Ci),Ur(null)};_e.current={onKeyDown:function(Ci){if(Ci.which===An.Z.TAB){var qa=li(Ci.shiftKey?-1:1);return Ur(qa),qa&&Ci.preventDefault(),!0}if(Zr){var Ha=Zr==="date"?hr:Fr;return Ha.current&&Ha.current.onKeyDown&&Ha.current.onKeyDown(Ci),!0}return[An.Z.LEFT,An.Z.RIGHT,An.Z.UP,An.Z.DOWN].includes(Ci.which)?(Ur("date"),!0):!1},onBlur:xi,onClose:xi};var Fi=function(Ci,qa){var Ha=Ci;qa==="date"&&!Lt&&ni.defaultValue?(Ha=Dt.setHour(Ha,Dt.getHour(ni.defaultValue)),Ha=Dt.setMinute(Ha,Dt.getMinute(ni.defaultValue)),Ha=Dt.setSecond(Ha,Dt.getSecond(ni.defaultValue))):qa==="time"&&!Lt&&Ln&&(Ha=Dt.setYear(Ha,Dt.getYear(Ln)),Ha=Dt.setMonth(Ha,Dt.getMonth(Ln)),Ha=Dt.setDate(Ha,Dt.getDate(Ln))),_n&&_n(Ha,"mouse")},ta=yn?yn(Lt||null):{};return ce.createElement("div",{className:Rt()(kr,(0,an.Z)({},"".concat(kr,"-active"),Zr))},ce.createElement(_a,(0,Se.Z)({},Ce,{cellRender:Mn,operationRef:hr,active:Zr==="date",onSelect:function(Ci){Fi(Kt(Dt,Ci,!Lt&&(0,Ht.Z)(vr)==="object"?vr.defaultValue:null),"date")}})),ce.createElement(ia,(0,Se.Z)({},Ce,{cellRender:Mn?function(Hi,Ci){return Mn(Hi,(0,ln.Z)((0,ln.Z)({},Ci),{},{type:"time"}))}:void 0,format:void 0},ni,ta,{disabledTime:null,defaultValue:void 0,operationRef:Fr,active:Zr==="time",onSelect:function(Ci){Fi(Ci,"time")}})))}var Kn=Gt;function yr(Ce){var Oe=Ce.prefixCls,_e=Ce.generateConfig,Dt=Ce.viewDate,Lt=Ce.onPrevDecades,Ln=Ce.onNextDecades,yn=ce.useContext(ft),vr=yn.hideHeader;if(vr)return null;var _n="".concat(Oe,"-header"),Mn=_e.getYear(Dt),kr=Math.floor(Mn/ue)*ue,Zn=kr+ue-1;return ce.createElement(ti,(0,Se.Z)({},Ce,{prefixCls:_n,onSuperPrev:Lt,onSuperNext:Ln}),kr,"-",Zn)}var Ir=yr,si=3,Mi=4;function Ti(Ce){var Oe=fe-1,_e=Ce.prefixCls,Dt=Ce.viewDate,Lt=Ce.generateConfig,Ln=Ce.cellRender,yn=Ce.locale,vr="".concat(_e,"-cell"),_n=Lt.getYear(Dt),Mn=Math.floor(_n/fe)*fe,kr=Math.floor(_n/ue)*ue,Zn=kr+ue-1,nr=Lt.setYear(Dt,kr-Math.ceil((si*Mi*fe-ue)/2)),Zr=function(Fr){var ni,li=Lt.getYear(Fr),xi=li+Oe;return ni={},(0,an.Z)(ni,"".concat(vr,"-in-view"),kr<=li&&xi<=Zn),(0,an.Z)(ni,"".concat(vr,"-selected"),li===Mn),ni},Ur=Ln?function(hr,Fr){return Ln(hr,{originNode:Fr,today:Lt.getNow(),type:"decade",locale:yn})}:void 0;return ce.createElement(Tr,(0,Se.Z)({},Ce,{rowNum:Mi,colNum:si,baseDate:nr,getCellNode:Ur,getCellText:function(Fr){var ni=Lt.getYear(Fr);return"".concat(ni,"-").concat(ni+Oe)},getCellClassName:Zr,getCellDate:function(Fr,ni){return Lt.addYear(Fr,ni*fe)}}))}var ji=Ti;function Oi(Ce){var Oe=Ce.prefixCls,_e=Ce.onViewDateChange,Dt=Ce.generateConfig,Lt=Ce.viewDate,Ln=Ce.operationRef,yn=Ce.onSelect,vr=Ce.onPanelChange,_n="".concat(Oe,"-decade-panel");Ln.current={onKeyDown:function(nr){return Br(nr,{onLeftRight:function(Ur){yn(Dt.addYear(Lt,Ur*fe),"key")},onCtrlLeftRight:function(Ur){yn(Dt.addYear(Lt,Ur*ue),"key")},onUpDown:function(Ur){yn(Dt.addYear(Lt,Ur*fe*si),"key")},onEnter:function(){vr("year",Lt)}})}};var Mn=function(nr){var Zr=Dt.addYear(Lt,nr*ue);_e(Zr),vr(null,Zr)},kr=function(nr){yn(nr,"mouse"),vr("year",nr)};return ce.createElement("div",{className:_n},ce.createElement(Ir,(0,Se.Z)({},Ce,{prefixCls:Oe,onPrevDecades:function(){Mn(-1)},onNextDecades:function(){Mn(1)}})),ce.createElement(ji,(0,Se.Z)({},Ce,{prefixCls:Oe,onSelect:kr})))}var aa=Oi;function Da(Ce){var Oe=Ce.prefixCls,_e=Ce.generateConfig,Dt=Ce.locale,Lt=Ce.viewDate,Ln=Ce.onNextYear,yn=Ce.onPrevYear,vr=Ce.onYearClick,_n=ce.useContext(ft),Mn=_n.hideHeader;if(Mn)return null;var kr="".concat(Oe,"-header");return ce.createElement(ti,(0,Se.Z)({},Ce,{prefixCls:kr,onSuperPrev:yn,onSuperNext:Ln}),ce.createElement("button",{type:"button",onClick:vr,className:"".concat(Oe,"-year-btn")},Bt(Lt,{locale:Dt,format:Dt.yearFormat,generateConfig:_e})))}var wi=Da,fn=3,Rn=4;function rr(Ce){var Oe=Ce.prefixCls,_e=Ce.locale,Dt=Ce.value,Lt=Ce.viewDate,Ln=Ce.generateConfig,yn=Ce.cellRender,vr=ce.useContext(ei),_n=vr.rangedValue,Mn=vr.hoverRangedValue,kr="".concat(Oe,"-cell"),Zn=Vr({cellPrefixCls:kr,value:Dt,generateConfig:Ln,rangedValue:_n,hoverRangedValue:Mn,isSameCell:function(Fr,ni){return Sn(Ln,Fr,ni)},isInView:function(){return!0},offsetCell:function(Fr,ni){return Ln.addMonth(Fr,ni)}}),nr=_e.shortMonths||(Ln.locale.getShortMonths?Ln.locale.getShortMonths(_e.locale):[]),Zr=Ln.setMonth(Lt,0),Ur=yn?function(hr,Fr){return yn(hr,{originNode:Fr,locale:_e,today:Ln.getNow(),type:"month"})}:void 0;return ce.createElement(Tr,(0,Se.Z)({},Ce,{rowNum:Rn,colNum:fn,baseDate:Zr,getCellNode:Ur,getCellText:function(Fr){return _e.monthFormat?Bt(Fr,{locale:_e,format:_e.monthFormat,generateConfig:Ln}):nr[Ln.getMonth(Fr)]},getCellClassName:Zn,getCellDate:Ln.addMonth,titleCell:function(Fr){return Bt(Fr,{locale:_e,format:"YYYY-MM",generateConfig:Ln})}}))}var me=rr;function $e(Ce){var Oe=Ce.prefixCls,_e=Ce.operationRef,Dt=Ce.onViewDateChange,Lt=Ce.generateConfig,Ln=Ce.value,yn=Ce.viewDate,vr=Ce.onPanelChange,_n=Ce.onSelect,Mn="".concat(Oe,"-month-panel");_e.current={onKeyDown:function(nr){return Br(nr,{onLeftRight:function(Ur){_n(Lt.addMonth(Ln||yn,Ur),"key")},onCtrlLeftRight:function(Ur){_n(Lt.addYear(Ln||yn,Ur),"key")},onUpDown:function(Ur){_n(Lt.addMonth(Ln||yn,Ur*fn),"key")},onEnter:function(){vr("date",Ln||yn)}})}};var kr=function(nr){var Zr=Lt.addYear(yn,nr);Dt(Zr),vr(null,Zr)};return ce.createElement("div",{className:Mn},ce.createElement(wi,(0,Se.Z)({},Ce,{prefixCls:Oe,onPrevYear:function(){kr(-1)},onNextYear:function(){kr(1)},onYearClick:function(){vr("year",yn)}})),ce.createElement(me,(0,Se.Z)({},Ce,{prefixCls:Oe,onSelect:function(nr){_n(nr,"mouse"),vr("date",nr)}})))}var Ve=$e;function et(Ce){var Oe=Ce.prefixCls,_e=Ce.generateConfig,Dt=Ce.locale,Lt=Ce.viewDate,Ln=Ce.onNextYear,yn=Ce.onPrevYear,vr=Ce.onYearClick,_n=ce.useContext(ft),Mn=_n.hideHeader;if(Mn)return null;var kr="".concat(Oe,"-header");return ce.createElement(ti,(0,Se.Z)({},Ce,{prefixCls:kr,onSuperPrev:yn,onSuperNext:Ln}),ce.createElement("button",{type:"button",onClick:vr,className:"".concat(Oe,"-year-btn")},Bt(Lt,{locale:Dt,format:Dt.yearFormat,generateConfig:_e})))}var Je=et,ut=4,mt=1;function Wt(Ce){var Oe=Ce.prefixCls,_e=Ce.locale,Dt=Ce.value,Lt=Ce.viewDate,Ln=Ce.generateConfig,yn=Ce.cellRender,vr=ce.useContext(ei),_n=vr.rangedValue,Mn=vr.hoverRangedValue,kr="".concat(Oe,"-cell"),Zn=Vr({cellPrefixCls:kr,value:Dt,generateConfig:Ln,rangedValue:_n,hoverRangedValue:Mn,isSameCell:function(hr,Fr){return en(Ln,hr,Fr)},isInView:function(){return!0},offsetCell:function(hr,Fr){return Ln.addMonth(hr,Fr*3)}}),nr=Ln.setDate(Ln.setMonth(Lt,0),1),Zr=yn?function(Ur,hr){return yn(Ur,{originNode:hr,locale:_e,today:Ln.getNow(),type:"quarter"})}:void 0;return ce.createElement(Tr,(0,Se.Z)({},Ce,{rowNum:mt,colNum:ut,baseDate:nr,getCellNode:Zr,getCellText:function(hr){return Bt(hr,{locale:_e,format:_e.quarterFormat||"[Q]Q",generateConfig:Ln})},getCellClassName:Zn,getCellDate:function(hr,Fr){return Ln.addMonth(hr,Fr*3)},titleCell:function(hr){return Bt(hr,{locale:_e,format:"YYYY-[Q]Q",generateConfig:Ln})}}))}var sn=Wt;function Wn(Ce){var Oe=Ce.prefixCls,_e=Ce.operationRef,Dt=Ce.onViewDateChange,Lt=Ce.generateConfig,Ln=Ce.value,yn=Ce.viewDate,vr=Ce.onPanelChange,_n=Ce.onSelect,Mn="".concat(Oe,"-quarter-panel");_e.current={onKeyDown:function(nr){return Br(nr,{onLeftRight:function(Ur){_n(Lt.addMonth(Ln||yn,Ur*3),"key")},onCtrlLeftRight:function(Ur){_n(Lt.addYear(Ln||yn,Ur),"key")},onUpDown:function(Ur){_n(Lt.addYear(Ln||yn,Ur),"key")}})}};var kr=function(nr){var Zr=Lt.addYear(yn,nr);Dt(Zr),vr(null,Zr)};return ce.createElement("div",{className:Mn},ce.createElement(Je,(0,Se.Z)({},Ce,{prefixCls:Oe,onPrevYear:function(){kr(-1)},onNextYear:function(){kr(1)},onYearClick:function(){vr("year",yn)}})),ce.createElement(sn,(0,Se.Z)({},Ce,{prefixCls:Oe,onSelect:function(nr){_n(nr,"mouse")}})))}var lr=Wn;function Qn(Ce){var Oe=Ce.prefixCls,_e=Ce.generateConfig,Dt=Ce.locale,Lt=Ce.value,Ln=Ce.disabledDate,yn=Ce.onSelect,vr=ce.useContext(ei),_n=vr.rangedValue,Mn=vr.hoverRangedValue,kr=ce.useContext(ft),Zn=kr.onDateMouseEnter,nr=kr.onDateMouseLeave,Zr=(Mn==null?void 0:Mn[0])||(_n==null?void 0:_n[0]),Ur=(Mn==null?void 0:Mn[1])||(_n==null?void 0:_n[1]),hr="".concat(Oe,"-cell"),Fr=function(Fi){var ta=Ct({cellDate:Fi,mode:"week",disabledDate:Ln,generateConfig:_e});return ce.createElement("td",{key:"week",className:Rt()(hr,"".concat(hr,"-week")),onClick:function(){ta||yn(Fi,"mouse")},onMouseEnter:function(){!ta&&Zn&&Zn(Fi)},onMouseLeave:function(){!ta&&nr&&nr(Fi)}},ce.createElement("div",{className:"".concat(hr,"-inner")},_e.locale.getWeek(Dt.locale,Fi)))},ni="".concat(Oe,"-week-panel-row"),li=function(Fi){var ta,Hi=vn(_e,Dt.locale,Zr,Fi),Ci=vn(_e,Dt.locale,Ur,Fi);return Rt()(ni,(ta={},(0,an.Z)(ta,"".concat(ni,"-selected"),!_n&&vn(_e,Dt.locale,Lt,Fi)),(0,an.Z)(ta,"".concat(ni,"-range-start"),Hi),(0,an.Z)(ta,"".concat(ni,"-range-end"),Ci),(0,an.Z)(ta,"".concat(ni,"-range-hover"),!Hi&&!Ci&&Xt(_e,Zr,Ur,Fi)),ta))};return ce.createElement(_a,(0,Se.Z)({},Ce,{panelName:"week",prefixColumn:Fr,rowClassName:li,keyboardConfig:{onLeftRight:null},isSameCell:function(){return!1}}))}var Tn=Qn,kn=10;function mn(Ce){var Oe=Ce.prefixCls,_e=Ce.generateConfig,Dt=Ce.viewDate,Lt=Ce.onPrevDecade,Ln=Ce.onNextDecade,yn=Ce.onDecadeClick,vr=ce.useContext(ft),_n=vr.hideHeader;if(_n)return null;var Mn="".concat(Oe,"-header"),kr=_e.getYear(Dt),Zn=Math.floor(kr/kn)*kn,nr=Zn+kn-1;return ce.createElement(ti,(0,Se.Z)({},Ce,{prefixCls:Mn,onSuperPrev:Lt,onSuperNext:Ln}),ce.createElement("button",{type:"button",onClick:yn,className:"".concat(Oe,"-decade-btn")},Zn,"-",nr))}var Jn=mn,Dr=3,cr=4;function xr(Ce){var Oe=Ce.prefixCls,_e=Ce.value,Dt=Ce.viewDate,Lt=Ce.locale,Ln=Ce.generateConfig,yn=Ce.cellRender,vr=ce.useContext(ei),_n=vr.rangedValue,Mn=vr.hoverRangedValue,kr="".concat(Oe,"-cell"),Zn=Ln.getYear(Dt),nr=Math.floor(Zn/kn)*kn,Zr=nr+kn-1,Ur=Ln.setYear(Dt,nr-Math.ceil((Dr*cr-kn)/2)),hr=Ln.getNow(),Fr=function(Fi){var ta=Ln.getYear(Fi);return nr<=ta&&ta<=Zr},ni=Vr({cellPrefixCls:kr,value:_e,generateConfig:Ln,rangedValue:_n,hoverRangedValue:Mn,isSameCell:function(Fi,ta){return Fe(Ln,Fi,ta)},isInView:Fr,offsetCell:function(Fi,ta){return Ln.addYear(Fi,ta)}}),li=yn?function(xi,Fi){return yn(xi,{originNode:Fi,today:hr,type:"year",locale:Lt})}:void 0;return ce.createElement(Tr,(0,Se.Z)({},Ce,{rowNum:cr,colNum:Dr,baseDate:Ur,getCellNode:li,getCellText:Ln.getYear,getCellClassName:ni,getCellDate:Ln.addYear,titleCell:function(Fi){return Bt(Fi,{locale:Lt,format:"YYYY",generateConfig:Ln})}}))}var Er=xr;function Nr(Ce){var Oe=Ce.prefixCls,_e=Ce.operationRef,Dt=Ce.onViewDateChange,Lt=Ce.generateConfig,Ln=Ce.value,yn=Ce.viewDate,vr=Ce.sourceMode,_n=Ce.onSelect,Mn=Ce.onPanelChange,kr="".concat(Oe,"-year-panel");_e.current={onKeyDown:function(Zr){return Br(Zr,{onLeftRight:function(hr){_n(Lt.addYear(Ln||yn,hr),"key")},onCtrlLeftRight:function(hr){_n(Lt.addYear(Ln||yn,hr*kn),"key")},onUpDown:function(hr){_n(Lt.addYear(Ln||yn,hr*Dr),"key")},onEnter:function(){Mn(vr==="date"?"date":"month",Ln||yn)}})}};var Zn=function(Zr){var Ur=Lt.addYear(yn,Zr*10);Dt(Ur),Mn(null,Ur)};return ce.createElement("div",{className:kr},ce.createElement(Jn,(0,Se.Z)({},Ce,{prefixCls:Oe,onPrevDecade:function(){Zn(-1)},onNextDecade:function(){Zn(1)},onDecadeClick:function(){Mn("decade",yn)}})),ce.createElement(Er,(0,Se.Z)({},Ce,{prefixCls:Oe,onSelect:function(Zr){Mn(vr==="date"?"date":"month",Zr),_n(Zr,"mouse")}})))}var $r=Nr;function Qe(Ce,Oe,_e){return _e?ce.createElement("div",{className:"".concat(Ce,"-footer-extra")},_e(Oe)):null}function rt(Ce){var Oe=Ce.prefixCls,_e=Ce.components,Dt=_e===void 0?{}:_e,Lt=Ce.needConfirmButton,Ln=Ce.onNow,yn=Ce.onOk,vr=Ce.okDisabled,_n=Ce.showNow,Mn=Ce.locale,kr,Zn;if(Lt){var nr=Dt.button||"button";Ln&&_n!==!1&&(kr=ce.createElement("li",{className:"".concat(Oe,"-now")},ce.createElement("a",{className:"".concat(Oe,"-now-btn"),onClick:Ln},Mn.now))),Zn=Lt&&ce.createElement("li",{className:"".concat(Oe,"-ok")},ce.createElement(nr,{disabled:vr,onClick:yn},Mn.ok))}return!kr&&!Zn?null:ce.createElement("ul",{className:"".concat(Oe,"-ranges")},kr,Zn)}var Zt=["date","month"];function It(Ce){var Oe,_e=Ce,Dt=_e.prefixCls,Lt=Dt===void 0?"rc-picker":Dt,Ln=_e.className,yn=_e.style,vr=_e.locale,_n=_e.generateConfig,Mn=_e.value,kr=_e.defaultValue,Zn=_e.pickerValue,nr=_e.defaultPickerValue,Zr=_e.disabledDate,Ur=_e.mode,hr=_e.picker,Fr=hr===void 0?"date":hr,ni=_e.tabIndex,li=ni===void 0?0:ni,xi=_e.showNow,Fi=_e.showTime,ta=_e.showToday,Hi=_e.renderExtraFooter,Ci=_e.hideHeader,qa=_e.onSelect,Ha=_e.onChange,so=_e.onPanelChange,Ro=_e.onMouseDown,io=_e.onPickerValueChange,Ta=_e.onOk,Eo=_e.components,ho=_e.direction,no=_e.hourStep,go=no===void 0?1:no,Mo=_e.minuteStep,is=Mo===void 0?1:Mo,ls=_e.secondStep,Ms=ls===void 0?1:ls,al=_e.dateRender,Xs=_e.monthCellRender,Qs=_e.cellRender,As=Fr==="date"&&!!Fi||Fr==="time",ml=24%go===0,Bs=60%is===0,ao=60%Ms===0,eo=ce.useContext(ft),xs=eo.operationRef,ks=eo.onSelect,po=eo.hideRanges,jo=eo.defaultOpenValue,Sa=ce.useContext(ei),Ko=Sa.inRange,as=Sa.panelPosition,Ks=Sa.rangedValue,Hs=Sa.hoverRangedValue,Us=ce.useRef({}),zl=ce.useRef(!0),Ru=(0,Cn.Z)(null,{value:Mn,defaultValue:kr,postState:function(wa){return!wa&&jo&&Fr==="time"?jo:wa}}),wu=(0,Yt.Z)(Ru,2),Jl=wu[0],Uu=wu[1],dc=(0,Cn.Z)(null,{value:Zn,defaultValue:nr||Jl,postState:function(wa){var Go=_n.getNow();if(!wa)return Go;if(!Jl&&Fi){var Ls=(0,Ht.Z)(Fi)==="object"?Fi.defaultValue:kr;return Kt(_n,Array.isArray(wa)?wa[0]:wa,Ls||Go)}return Array.isArray(wa)?wa[0]:wa}}),Vu=(0,Yt.Z)(dc,2),Zl=Vu[0],Cu=Vu[1],iu=function(wa){Cu(wa),io&&io(wa)},ju=function(wa){var Go=qn[Fr];return Go?Go(wa):wa},Gu=(0,Cn.Z)(function(){return Fr==="time"?"time":ju("date")},{value:Ur}),ql=(0,Yt.Z)(Gu,2),Sl=ql[0],Wl=ql[1];ce.useEffect(function(){Wl(Fr)},[Fr]);var sl=ce.useState(function(){return Sl}),fu=(0,Yt.Z)(sl,2),vu=fu[0],yu=fu[1],El=function(wa,Go){var Ls=ju(wa||Sl);yu(Sl),Wl(Ls),so&&(Sl!==Ls||kt(_n,Zl,Zl))&&so(Go,Ls)},Do=function(wa,Go){var Ls=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(Sl===Fr||Ls)&&(Uu(wa),qa&&qa(wa),ks&&ks(wa,Go),Ha&&!kt(_n,wa,Jl)&&!(Zr!=null&&Zr(wa))&&Ha(wa))},ll=function(wa){if(Zt.includes(Sl)){var Go,Ls,Mu=Sl==="date";switch(wa===An.Z.PAGE_UP||wa===An.Z.PAGE_DOWN?Ls=Mu?_n.addMonth:_n.addYear:Ls=Mu?_n.addDate:_n.addMonth,wa){case An.Z.LEFT:case An.Z.PAGE_UP:Go=Ls(Zl,-1);break;case An.Z.RIGHT:case An.Z.PAGE_DOWN:Go=Ls(Zl,1);break;case An.Z.UP:case An.Z.DOWN:Go=Ls(Zl,Number("".concat(wa===An.Z.UP?"-":"").concat(Mu?xe:fn)));break}if(Go)return!(Zr!=null&&Zr(Go))}return!0},Ul=function(wa){if(Us.current&&Us.current.onKeyDown){var Go=!0,Ls=wa.which;if([An.Z.LEFT,An.Z.RIGHT,An.Z.UP,An.Z.DOWN,An.Z.PAGE_UP,An.Z.PAGE_DOWN,An.Z.ENTER].includes(Ls)&&(wa.preventDefault(),Ls!==An.Z.ENTER&&li===0&&(Go=ll(Ls))),Go)return Us.current.onKeyDown(wa)}return(0,Ne.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1},Js=function(wa){Us.current&&Us.current.onBlur&&Us.current.onBlur(wa)};xs&&as!=="right"&&(xs.current={onKeyDown:Ul,onClose:function(){Us.current&&Us.current.onClose&&Us.current.onClose()}}),ce.useEffect(function(){Mn&&!zl.current&&Cu(Mn)},[Mn]),ce.useEffect(function(){zl.current=!1},[]);var au,Bu=xn({cellRender:Qs,monthCellRender:Xs,dateRender:al}),Ss=(0,ln.Z)((0,ln.Z)({},Ce),{},{cellRender:Bu,operationRef:Us,prefixCls:Lt,viewDate:Zl,value:Jl,onViewDateChange:iu,sourceMode:vu,onPanelChange:El,disabledDate:Zr});switch(delete Ss.onChange,delete Ss.onSelect,Sl){case"decade":au=ce.createElement(aa,(0,Se.Z)({},Ss,{onSelect:function(wa,Go){iu(wa),Do(wa,Go)}}));break;case"year":au=ce.createElement($r,(0,Se.Z)({},Ss,{onSelect:function(wa,Go){iu(wa),Do(wa,Go)}}));break;case"month":au=ce.createElement(Ve,(0,Se.Z)({},Ss,{onSelect:function(wa,Go){iu(wa),Do(wa,Go)}}));break;case"quarter":au=ce.createElement(lr,(0,Se.Z)({},Ss,{onSelect:function(wa,Go){iu(wa),Do(wa,Go)}}));break;case"week":au=ce.createElement(Tn,(0,Se.Z)({},Ss,{onSelect:function(wa,Go){iu(wa),Do(wa,Go)}}));break;case"time":delete Ss.showTime,au=ce.createElement(ia,(0,Se.Z)({},Ss,(0,Ht.Z)(Fi)==="object"?Fi:null,{onSelect:function(wa,Go){iu(wa),Do(wa,Go)}}));break;default:Fi?au=ce.createElement(Kn,(0,Se.Z)({},Ss,{onSelect:function(wa,Go){iu(wa),Do(wa,Go)}})):au=ce.createElement(_a,(0,Se.Z)({},Ss,{onSelect:function(wa,Go){iu(wa),Do(wa,Go)}}))}var Fu,hu,ou=function(){var wa=_n.getNow(),Go=nn(_n.getHour(wa),_n.getMinute(wa),_n.getSecond(wa),ml?go:1,Bs?is:1,ao?Ms:1),Ls=Vt(_n,wa,Go[0],Go[1],Go[2]);Do(Ls,"submit")};po||(Fu=Qe(Lt,Sl,Hi),Fi&&Sl!=="date"?hu=null:hu=rt({prefixCls:Lt,components:Eo,needConfirmButton:As,okDisabled:!Jl||Zr&&Zr(Jl),locale:vr,showNow:xi,onNow:As&&ou,onOk:function(){Jl&&(Do(Jl,"submit",!0),Ta&&Ta(Jl))}}));var rc;if(ta&&Sl==="date"&&Fr==="date"&&!Fi){var _u=_n.getNow(),Eu="".concat(Lt,"-today-btn"),zu=Zr&&Zr(_u);rc=ce.createElement("a",{className:Rt()(Eu,zu&&"".concat(Eu,"-disabled")),"aria-disabled":zu,onClick:function(){zu||Do(_u,"mouse",!0)}},vr.today)}return ce.createElement(ft.Provider,{value:(0,ln.Z)((0,ln.Z)({},eo),{},{mode:Sl,hideHeader:"hideHeader"in Ce?Ci:eo.hideHeader,hidePrevBtn:Ko&&as==="right",hideNextBtn:Ko&&as==="left"})},ce.createElement("div",{tabIndex:li,className:Rt()("".concat(Lt,"-panel"),Ln,(Oe={},(0,an.Z)(Oe,"".concat(Lt,"-panel-has-range"),Ks&&Ks[0]&&Ks[1]),(0,an.Z)(Oe,"".concat(Lt,"-panel-has-range-hover"),Hs&&Hs[0]&&Hs[1]),(0,an.Z)(Oe,"".concat(Lt,"-panel-rtl"),ho==="rtl"),Oe)),style:yn,onKeyDown:Ul,onBlur:Js,onMouseDown:Ro},au,Fu||hu||rc?ce.createElement("div",{className:"".concat(Lt,"-footer")},Fu,hu,rc):null))}var gn=It,Un=te(62709),Yn={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Ar(Ce){var Oe,_e=Ce.prefixCls,Dt=Ce.popupElement,Lt=Ce.popupStyle,Ln=Ce.visible,yn=Ce.dropdownClassName,vr=Ce.dropdownAlign,_n=Ce.transitionName,Mn=Ce.getPopupContainer,kr=Ce.children,Zn=Ce.range,nr=Ce.popupPlacement,Zr=Ce.direction,Ur="".concat(_e,"-dropdown"),hr=function(){return nr!==void 0?nr:Zr==="rtl"?"bottomRight":"bottomLeft"};return ce.createElement(Un.Z,{showAction:[],hideAction:[],popupPlacement:hr(),builtinPlacements:Yn,prefixCls:Ur,popupTransitionName:_n,popup:Dt,popupAlign:vr,popupVisible:Ln,popupClassName:Rt()(yn,(Oe={},(0,an.Z)(Oe,"".concat(Ur,"-range"),Zn),(0,an.Z)(Oe,"".concat(Ur,"-rtl"),Zr==="rtl"),Oe)),popupStyle:Lt,getPopupContainer:Mn},kr)}var gr=Ar;function tr(Ce){var Oe=Ce.prefixCls,_e=Ce.presets,Dt=Ce.onClick,Lt=Ce.onHover;return _e.length?ce.createElement("div",{className:"".concat(Oe,"-presets")},ce.createElement("ul",null,_e.map(function(Ln,yn){var vr=Ln.label,_n=Ln.value;return ce.createElement("li",{key:yn,onClick:function(){return Dt==null?void 0:Dt(Gr(_n))},onMouseEnter:function(){return Lt==null?void 0:Lt(Gr(_n))},onMouseLeave:function(){return Lt==null?void 0:Lt(null)}},vr)}))):null}function Or(Ce){var Oe=Ce.picker,_e=Ce.disabledHours,Dt=Ce.disabledMinutes,Lt=Ce.disabledSeconds;Oe==="time"&&(_e||Dt||Lt)&&warning(!1,"'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.")}function Kr(Ce,Oe,_e){var Dt=(0,Ht.Z)(Oe)==="object"?Oe.clearIcon:_e;return Dt||ce.createElement("span",{className:"".concat(Ce,"-clear-btn")})}function ci(Ce){var Oe,_e=Ce,Dt=_e.prefixCls,Lt=Dt===void 0?"rc-picker":Dt,Ln=_e.id,yn=_e.name,vr=_e.tabIndex,_n=_e.style,Mn=_e.className,kr=_e.dropdownClassName,Zn=_e.dropdownAlign,nr=_e.popupStyle,Zr=_e.transitionName,Ur=_e.generateConfig,hr=_e.locale,Fr=_e.inputReadOnly,ni=_e.allowClear,li=_e.autoFocus,xi=_e.showTime,Fi=_e.picker,ta=Fi===void 0?"date":Fi,Hi=_e.format,Ci=_e.use12Hours,qa=_e.value,Ha=_e.defaultValue,so=_e.presets,Ro=_e.open,io=_e.defaultOpen,Ta=_e.defaultOpenValue,Eo=_e.suffixIcon,ho=_e.clearIcon,no=_e.disabled,go=_e.disabledDate,Mo=_e.placeholder,is=_e.getPopupContainer,ls=_e.pickerRef,Ms=_e.panelRender,al=_e.onChange,Xs=_e.onOpenChange,Qs=_e.onFocus,As=_e.onBlur,ml=_e.onMouseDown,Bs=_e.onMouseUp,ao=_e.onMouseEnter,eo=_e.onMouseLeave,xs=_e.onContextMenu,ks=_e.onClick,po=_e.onKeyDown,jo=_e.onSelect,Sa=_e.direction,Ko=_e.autoComplete,as=Ko===void 0?"off":Ko,Ks=_e.inputRender,Hs=_e.changeOnBlur,Us=ce.useRef(null),zl=ta==="date"&&!!xi||ta==="time",Ru=Et(so),wu=Gn(ki(Hi,ta,xi,Ci)),Jl=ce.useRef(null),Uu=ce.useRef(null),dc=ce.useRef(null),Vu=(0,Cn.Z)(null,{value:qa,defaultValue:Ha}),Zl=(0,Yt.Z)(Vu,2),Cu=Zl[0],iu=Zl[1],ju=ce.useState(Cu),Gu=(0,Yt.Z)(ju,2),ql=Gu[0],Sl=Gu[1],Wl=ce.useRef(null),sl=(0,Cn.Z)(!1,{value:Ro,defaultValue:io,postState:function(Sr){return no?!1:Sr},onChange:function(Sr){Xs&&Xs(Sr),!Sr&&Wl.current&&Wl.current.onClose&&Wl.current.onClose()}}),fu=(0,Yt.Z)(sl,2),vu=fu[0],yu=fu[1],El=At(ql,{formatList:wu,generateConfig:Ur,locale:hr}),Do=(0,Yt.Z)(El,2),ll=Do[0],Ul=Do[1],Js=zt({valueTexts:ll,onTextChange:function(Sr){var hi=ir(Sr,{locale:hr,formatList:wu,generateConfig:Ur});hi&&(!go||!go(hi))&&Sl(hi)}}),au=(0,Yt.Z)(Js,3),Bu=au[0],Ss=au[1],Fu=au[2],hu=function(Sr){Sl(Sr),iu(Sr),al&&!kt(Ur,Cu,Sr)&&al(Sr,Sr?Bt(Sr,{generateConfig:Ur,locale:hr,format:wu[0]}):"")},ou=function(Sr){no&&Sr||yu(Sr)},rc=function(Sr){return vu&&Wl.current&&Wl.current.onKeyDown?Wl.current.onKeyDown(Sr):((0,Ne.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},_u=function(){for(var Sr=arguments.length,hi=new Array(Sr),di=0;di<Sr;di++)hi[di]=arguments[di];ks==null||ks.apply(void 0,hi),Us.current&&(Us.current.focus(),ou(!0))},Eu=function(Sr){Hs&&hu(ql),As==null||As(Sr)},zu=or({blurToCancel:zl,open:vu,value:Bu,triggerOpen:ou,forwardKeyDown:rc,isClickOutside:function(Sr){return!Lr([Jl.current,Uu.current,dc.current],Sr)},onSubmit:function(){return!ql||go&&go(ql)?!1:(hu(ql),ou(!1),Fu(),!0)},onCancel:function(){ou(!1),Sl(Cu),Fu()},onKeyDown:function(Sr,hi){po==null||po(Sr,hi)},onFocus:Qs,onBlur:Eu,changeOnBlur:Hs}),Ao=(0,Yt.Z)(zu,2),wa=Ao[0],Go=Ao[1],Ls=Go.focused,Mu=Go.typing;ce.useEffect(function(){vu||(Sl(Cu),!ll.length||ll[0]===""?Ss(""):Ul!==Bu&&Fu())},[vu,ll]),ce.useEffect(function(){vu||Fu()},[ta]),ce.useEffect(function(){Sl(Cu)},[Cu]),ls&&(ls.current={focus:function(){var Sr;(Sr=Us.current)===null||Sr===void 0||Sr.focus()},blur:function(){var Sr;(Sr=Us.current)===null||Sr===void 0||Sr.blur()}});var fc=er(Bu,{formatList:wu,generateConfig:Ur,locale:hr}),De=(0,Yt.Z)(fc,3),Ie=De[0],tt=De[1],gt=De[2],St=(0,ln.Z)((0,ln.Z)({},Ce),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null}),Ft=ce.createElement("div",{className:"".concat(Lt,"-panel-layout")},ce.createElement(tr,{prefixCls:Lt,presets:Ru,onClick:function(Sr){hu(Sr),ou(!1)}}),ce.createElement(gn,(0,Se.Z)({},St,{generateConfig:Ur,className:Rt()((0,an.Z)({},"".concat(Lt,"-panel-focused"),!Mu)),value:ql,locale:hr,tabIndex:-1,onSelect:function(Sr){jo==null||jo(Sr),Sl(Sr)},direction:Sa,onPanelChange:function(Sr,hi){var di=Ce.onPanelChange;gt(!0),di==null||di(Sr,hi)}})));Ms&&(Ft=Ms(Ft));var hn=ce.createElement("div",{className:"".concat(Lt,"-panel-container"),ref:Jl,onMouseDown:function(Sr){Sr.preventDefault()}},Ft),On;Eo&&(On=ce.createElement("span",{className:"".concat(Lt,"-suffix"),onMouseDown:function(Sr){Sr.preventDefault()}},Eo));var Dn=Kr(Lt,ni,ho),ar=ce.createElement("span",{onMouseDown:function(Sr){Sr.preventDefault(),Sr.stopPropagation()},onMouseUp:function(Sr){Sr.preventDefault(),Sr.stopPropagation(),hu(null),ou(!1)},className:"".concat(Lt,"-clear"),role:"button"},Dn),Mr=!!ni&&Cu&&!no,cn=(0,ln.Z)((0,ln.Z)((0,ln.Z)({id:Ln,tabIndex:vr,disabled:no,readOnly:Fr||typeof wu[0]=="function"||!Mu,value:Ie||Bu,onChange:function(Sr){Ss(Sr.target.value)},autoFocus:li,placeholder:Mo,ref:Us,title:Bu},wa),{},{size:Vi(ta,wu[0],Ur),name:yn},(0,pr.Z)(Ce,{aria:!0,data:!0})),{},{autoComplete:as}),jr=Ks?Ks(cn):ce.createElement("input",cn),Xr=function(Sr,hi){(hi==="submit"||hi!=="key"&&!zl)&&(hu(Sr),ou(!1))},qr=Sa==="rtl"?"bottomRight":"bottomLeft";return ce.createElement(ft.Provider,{value:{operationRef:Wl,hideHeader:ta==="time",onSelect:Xr,open:vu,defaultOpenValue:Ta,onDateMouseEnter:tt,onDateMouseLeave:gt}},ce.createElement(gr,{visible:vu,popupElement:hn,popupStyle:nr,prefixCls:Lt,dropdownClassName:kr,dropdownAlign:Zn,getPopupContainer:is,transitionName:Zr,popupPlacement:qr,direction:Sa},ce.createElement("div",{ref:dc,className:Rt()(Lt,Mn,(Oe={},(0,an.Z)(Oe,"".concat(Lt,"-disabled"),no),(0,an.Z)(Oe,"".concat(Lt,"-focused"),Ls),(0,an.Z)(Oe,"".concat(Lt,"-rtl"),Sa==="rtl"),Oe)),style:_n,onMouseDown:ml,onMouseUp:Bs,onMouseEnter:ao,onMouseLeave:eo,onContextMenu:xs,onClick:_u},ce.createElement("div",{className:Rt()("".concat(Lt,"-input"),(0,an.Z)({},"".concat(Lt,"-input-placeholder"),!!Ie)),ref:Uu},jr,On,Mr&&ar))))}var Hr=function(Ce){(0,Mt.Z)(_e,Ce);var Oe=(0,qt.Z)(_e);function _e(){var Dt;(0,Vn.Z)(this,_e);for(var Lt=arguments.length,Ln=new Array(Lt),yn=0;yn<Lt;yn++)Ln[yn]=arguments[yn];return Dt=Oe.call.apply(Oe,[this].concat(Ln)),(0,an.Z)((0,xt.Z)(Dt),"pickerRef",ce.createRef()),(0,an.Z)((0,xt.Z)(Dt),"focus",function(){Dt.pickerRef.current&&Dt.pickerRef.current.focus()}),(0,an.Z)((0,xt.Z)(Dt),"blur",function(){Dt.pickerRef.current&&Dt.pickerRef.current.blur()}),Dt}return(0,In.Z)(_e,[{key:"render",value:function(){return ce.createElement(ci,(0,Se.Z)({},this.props,{pickerRef:this.pickerRef}))}}]),_e}(ce.Component),yi=Hr;function Ii(Ce,Oe){var _e=Ce.picker,Dt=Ce.locale,Lt=Ce.selectedValue,Ln=Ce.disabledDate,yn=Ce.disabled,vr=Ce.generateConfig,_n=br(Lt,0),Mn=br(Lt,1);function kr(hr){return vr.locale.getWeekFirstDate(Dt.locale,hr)}function Zn(hr){var Fr=vr.getYear(hr),ni=vr.getMonth(hr);return Fr*100+ni}function nr(hr){var Fr=vr.getYear(hr),ni=st(vr,hr);return Fr*10+ni}var Zr=ce.useCallback(function(hr){if(yn[0]||Ln&&Ln(hr))return!0;if(yn[1]&&Mn)return!dn(vr,hr,Mn)&&vr.isAfter(hr,Mn);if(!Oe&&Mn)switch(_e){case"quarter":return nr(hr)>nr(Mn);case"month":return Zn(hr)>Zn(Mn);case"week":return kr(hr)>kr(Mn);default:return!dn(vr,hr,Mn)&&vr.isAfter(hr,Mn)}return!1},[Ln,yn[1],Mn,Oe]),Ur=ce.useCallback(function(hr){if(yn[1]||Ln&&Ln(hr))return!0;if(yn[0]&&_n)return!dn(vr,hr,Mn)&&vr.isAfter(_n,hr);if(!Oe&&_n)switch(_e){case"quarter":return nr(hr)<nr(_n);case"month":return Zn(hr)<Zn(_n);case"week":return kr(hr)<kr(_n);default:return!dn(vr,hr,_n)&&vr.isAfter(_n,hr)}return!1},[Ln,yn[0],_n,Oe]);return[Zr,Ur]}var Si=te(60276),Ni=te(77527);function gi(Ce,Oe,_e,Dt,Lt,Ln,yn,vr,_n,Mn){var kr=ce.useState(!1),Zn=(0,Yt.Z)(kr,2),nr=Zn[0],Zr=Zn[1],Ur=(0,Si.useMergedState)(Ce||!1,{value:Oe}),hr=(0,Yt.Z)(Ur,2),Fr=hr[0],ni=hr[1],li=(0,Si.useMergedState)(Ce||!1,{value:Oe,onChange:function(go){Mn==null||Mn(go)}}),xi=(0,Yt.Z)(li,2),Fi=xi[0],ta=xi[1],Hi=(0,Si.useMergedState)(0,{value:_e}),Ci=(0,Yt.Z)(Hi,2),qa=Ci[0],Ha=Ci[1],so=ce.useState(null),Ro=(0,Yt.Z)(so,2),io=Ro[0],Ta=Ro[1];ce.useEffect(function(){Fi&&Zr(!0)},[Fi]);var Eo=function(go){return go===0?1:0},ho=(0,Ni.Z)(function(no,go,Mo){if(go===!1)ta(no);else if(no){Ha(go),ta(no);var is=Eo(go);!Fi||![yn,vr][is]?Ta(is):(Zr(!1),io!==null&&Ta(null))}else if(Mo==="confirm"||Mo==="blur"&&Dt){var ls=Fr?Eo(go):io;ls!==null&&(Zr(!1),Ha(ls)),Ta(null),ls!==null&&!_n[ls]?(0,fr.Z)(function(){var Ms,al=[Lt,Ln][ls];(Ms=al.current)===null||Ms===void 0||Ms.focus()}):ta(!1)}else ta(!1),ni(!1)});return[Fi,qa,nr,ho]}function Di(Ce,Oe,_e,Dt){var Lt=jt(Ce,_e,Dt,1);function Ln(yn){return yn(Ce,Oe)?"same":yn(Lt,Oe)?"closing":"far"}switch(_e){case"year":return Ln(function(yn,vr){return se(Dt,yn,vr)});case"quarter":case"month":return Ln(function(yn,vr){return Fe(Dt,yn,vr)});default:return Ln(function(yn,vr){return Sn(Dt,yn,vr)})}}function Ri(Ce,Oe,_e,Dt){var Lt=br(Ce,0),Ln=br(Ce,1);if(Oe===0)return Lt;if(Lt&&Ln){var yn=Di(Lt,Ln,_e,Dt);switch(yn){case"same":return Lt;case"closing":return Lt;default:return jt(Ln,_e,Dt,-1)}}return Lt}function sa(Ce){var Oe=Ce.values,_e=Ce.picker,Dt=Ce.defaultDates,Lt=Ce.generateConfig,Ln=ce.useState(function(){return[br(Dt,0),br(Dt,1)]}),yn=(0,Yt.Z)(Ln,2),vr=yn[0],_n=yn[1],Mn=ce.useState(null),kr=(0,Yt.Z)(Mn,2),Zn=kr[0],nr=kr[1],Zr=br(Oe,0),Ur=br(Oe,1);function hr(ni){return vr[ni]?vr[ni]:br(Zn,ni)||Ri(Oe,ni,_e,Lt)||Zr||Ur||Lt.getNow()}function Fr(ni,li){if(ni){var xi=fi(Zn,ni,li);_n(fi(vr,null,li)||[null,null]);var Fi=(li+1)%2;br(Oe,Fi)||(xi=fi(xi,ni,Fi)),nr(xi)}else(Zr||Ur)&&nr(null)}return[hr,Fr]}function bi(Ce,Oe){return Ce&&Ce[0]&&Ce[1]&&Oe.isAfter(Ce[0],Ce[1])?[Ce[1],Ce[0]]:Ce}function ba(Ce,Oe,_e,Dt){return!!(Ce||Dt&&Dt[Oe]||_e[(Oe+1)%2])}function Ca(Ce){var Oe,_e,Dt,Lt=Ce,Ln=Lt.prefixCls,yn=Ln===void 0?"rc-picker":Ln,vr=Lt.id,_n=Lt.style,Mn=Lt.className,kr=Lt.popupStyle,Zn=Lt.dropdownClassName,nr=Lt.transitionName,Zr=Lt.dropdownAlign,Ur=Lt.getPopupContainer,hr=Lt.generateConfig,Fr=Lt.locale,ni=Lt.placeholder,li=Lt.autoFocus,xi=Lt.disabled,Fi=Lt.format,ta=Lt.picker,Hi=ta===void 0?"date":ta,Ci=Lt.showTime,qa=Lt.use12Hours,Ha=Lt.separator,so=Ha===void 0?"~":Ha,Ro=Lt.value,io=Lt.defaultValue,Ta=Lt.defaultPickerValue,Eo=Lt.open,ho=Lt.defaultOpen,no=Lt.disabledDate,go=Lt.disabledTime,Mo=Lt.dateRender,is=Lt.monthCellRender,ls=Lt.cellRender,Ms=Lt.panelRender,al=Lt.presets,Xs=Lt.ranges,Qs=Lt.allowEmpty,As=Lt.allowClear,ml=Lt.suffixIcon,Bs=Lt.clearIcon,ao=Lt.pickerRef,eo=Lt.inputReadOnly,xs=Lt.mode,ks=Lt.renderExtraFooter,po=Lt.onChange,jo=Lt.onOpenChange,Sa=Lt.onPanelChange,Ko=Lt.onCalendarChange,as=Lt.onFocus,Ks=Lt.onBlur,Hs=Lt.onMouseDown,Us=Lt.onMouseUp,zl=Lt.onMouseEnter,Ru=Lt.onMouseLeave,wu=Lt.onClick,Jl=Lt.onOk,Uu=Lt.onKeyDown,dc=Lt.components,Vu=Lt.order,Zl=Lt.direction,Cu=Lt.activePickerIndex,iu=Lt.autoComplete,ju=iu===void 0?"off":iu,Gu=Lt.changeOnBlur,ql=Hi==="date"&&!!Ci||Hi==="time",Sl=(0,ce.useRef)(null),Wl=(0,ce.useRef)(null),sl=(0,ce.useRef)(null),fu=(0,ce.useRef)(null),vu=(0,ce.useRef)(null),yu=(0,ce.useRef)(null),El=(0,ce.useRef)(null),Do=(0,ce.useRef)(null),ll=Gn(ki(Fi,Hi,Ci,qa)),Ul=(0,ce.useRef)(null),Js=ce.useMemo(function(){return Array.isArray(xi)?xi:[xi||!1,xi||!1]},[xi]),au=(0,Cn.Z)(null,{value:Ro,defaultValue:io,postState:function(Za){return Hi==="time"&&!Vu?Za:bi(Za,hr)}}),Bu=(0,Yt.Z)(au,2),Ss=Bu[0],Fu=Bu[1],hu=sa({values:Ss,picker:Hi,defaultDates:Ta,generateConfig:hr}),ou=(0,Yt.Z)(hu,2),rc=ou[0],_u=ou[1],Eu=(0,Cn.Z)(Ss,{postState:function(Za){var xo=Za;if(Js[0]&&Js[1])return xo;for(var ms=0;ms<2;ms+=1)Js[ms]&&!xo&&!br(xo,ms)&&!br(Qs,ms)&&(xo=fi(xo,hr.getNow(),ms));return xo}}),zu=(0,Yt.Z)(Eu,2),Ao=zu[0],wa=zu[1],Go=(0,Cn.Z)([Hi,Hi],{value:xs}),Ls=(0,Yt.Z)(Go,2),Mu=Ls[0],fc=Ls[1];(0,ce.useEffect)(function(){fc([Hi,Hi])},[Hi]);var De=function(Za,xo){fc(Za),Sa&&Sa(xo,Za)},Ie=gi(ho,Eo,Cu,Gu,yu,El,br(Ao,0),br(Ao,1),Js,jo),tt=(0,Yt.Z)(Ie,4),gt=tt[0],St=tt[1],Ft=tt[2],hn=tt[3],On=gt&&St===0,Dn=gt&&St===1,ar=Ii({picker:Hi,selectedValue:Ao,locale:Fr,disabled:Js,disabledDate:no,generateConfig:hr},!gt||Ft),Mr=(0,Yt.Z)(ar,2),cn=Mr[0],jr=Mr[1],Xr=(0,ce.useState)(0),qr=(0,Yt.Z)(Xr,2),Qr=qr[0],Sr=qr[1];(0,ce.useEffect)(function(){!gt&&Sl.current&&Sr(Sl.current.offsetWidth)},[gt]);function hi(Cs){hn(!0,Cs,"open"),(0,fr.Z)(function(){var Za,xo=[yu,El][Cs];(Za=xo.current)===null||Za===void 0||Za.focus()},0)}function di(Cs,Za){var xo=Cs,ms=br(xo,0),js=br(xo,1);ms&&js&&hr.isAfter(ms,js)&&(Hi==="week"&&!vn(hr,Fr.locale,ms,js)||Hi==="quarter"&&!en(hr,ms,js)||Hi!=="week"&&Hi!=="quarter"&&Hi!=="time"&&!dn(hr,ms,js)?Za===0?(xo=[ms,null],js=null):(ms=null,xo=[null,js]):(Hi!=="time"||Vu!==!1)&&(xo=bi(xo,hr))),wa(xo);var Rl=xo&&xo[0]?Bt(xo[0],{generateConfig:hr,locale:Fr,format:ll[0]}):"",Gl=xo&&xo[1]?Bt(xo[1],{generateConfig:hr,locale:Fr,format:ll[0]}):"";if(Ko){var Ju={range:Za===0?"start":"end"};Ko(xo,[Rl,Gl],Ju)}var qu=ba(ms,0,Js,Qs),Ku=ba(js,1,Js,Qs),lc=xo===null||qu&&Ku;lc&&(Fu(xo),po&&(!kt(hr,br(Ss,0),ms)||!kt(hr,br(Ss,1),js))&&po(xo,[Rl,Gl]))}var $i=function(Za){return gt&&Ul.current&&Ul.current.onKeyDown?Ul.current.onKeyDown(Za):((0,Ne.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},va={formatList:ll,generateConfig:hr,locale:Fr},ca=At(br(Ao,0),va),ma=(0,Yt.Z)(ca,2),$a=ma[0],ko=ma[1],ea=At(br(Ao,1),va),oa=(0,Yt.Z)(ea,2),Ji=oa[0],Li=oa[1],da=function(Za,xo){var ms=ir(Za,{locale:Fr,formatList:ll,generateConfig:hr}),js=xo===0?cn:jr;ms&&!js(ms)&&(wa(fi(Ao,ms,xo)),_u(ms,xo))},ja=zt({valueTexts:$a,onTextChange:function(Za){return da(Za,0)}}),Bo=(0,Yt.Z)(ja,3),lo=Bo[0],Ua=Bo[1],Ho=Bo[2],Zo=zt({valueTexts:Ji,onTextChange:function(Za){return da(Za,1)}}),vs=(0,Yt.Z)(Zo,3),$o=vs[0],Fs=vs[1],_s=vs[2],Lo=(0,ce.useState)(null),gl=(0,Yt.Z)(Lo,2),ps=gl[0],Ps=gl[1],ws=(0,ce.useState)(null),vo=(0,Yt.Z)(ws,2),Ki=vo[0],Ia=vo[1],Ga=er(lo,{formatList:ll,generateConfig:hr,locale:Fr}),na=(0,Yt.Z)(Ga,3),ds=na[0],Zi=na[1],yo=na[2],fs=er($o,{formatList:ll,generateConfig:hr,locale:Fr}),ts=(0,Yt.Z)(fs,3),$l=ts[0],wl=ts[1],eu=ts[2],oi=function(Za){Ia(fi(Ao,Za,St)),St===0?Zi(Za):wl(Za)},ku=function(){Ia(fi(Ao,null,St)),St===0?yo():eu()},ul=ce.useState(gt),Vl=(0,Yt.Z)(ul,2),su=Vl[0],hs=Vl[1];ce.useEffect(function(){hs(gt)},[gt]);var ys=function(Za){if(Gu&&su){var xo=br(Ao,St);xo&&di(Ao,St)}return Ks==null?void 0:Ks(Za)},zs=function(Za,xo){return{blurToCancel:!Gu&&ql,forwardKeyDown:$i,onBlur:ys,isClickOutside:function(js){return!Lr([Wl.current,sl.current,fu.current,Sl.current],js)},onFocus:function(js){as&&as(js)},triggerOpen:function(js){js?hn(js,Za,"open"):hn(js,br(Ao,Za)?Za:!1,"blur")},onSubmit:function(){if(!Ao||no&&no(Ao[Za]))return!1;di(Ao,Za),xo(),hn(!1,St,"confirm")},onCancel:function(){hn(!1,Za,"cancel"),wa(Ss),xo()}}},Io={onKeyDown:function(Za,xo){Uu==null||Uu(Za,xo)},changeOnBlur:Gu},Ll=or((0,ln.Z)((0,ln.Z)({},zs(0,Ho)),{},{open:On,value:lo},Io)),Yo=(0,Yt.Z)(Ll,2),Cl=Yo[0],Pl=Yo[1],Tl=Pl.focused,lu=Pl.typing,cl=or((0,ln.Z)((0,ln.Z)({},zs(1,_s)),{},{open:Dn,value:$o},Io)),uu=(0,Yt.Z)(cl,2),dl=uu[0],Il=uu[1],Nl=Il.focused,fl=Il.typing,ol=function(Za){wu&&wu(Za),!gt&&!yu.current.contains(Za.target)&&!El.current.contains(Za.target)&&(Js[0]?Js[1]||hi(1):hi(0))},qs=function(Za){Hs&&Hs(Za),gt&&(Tl||Nl)&&!yu.current.contains(Za.target)&&!El.current.contains(Za.target)&&Za.preventDefault()},$u=Ss&&Ss[0]?Bt(Ss[0],{locale:Fr,format:"YYYYMMDDHHmmss",generateConfig:hr}):"",sc=Ss&&Ss[1]?Bt(Ss[1],{locale:Fr,format:"YYYYMMDDHHmmss",generateConfig:hr}):"";(0,ce.useEffect)(function(){gt||(wa(Ss),!$a.length||$a[0]===""?Ua(""):ko!==lo&&Ho(),!Ji.length||Ji[0]===""?Fs(""):Li!==$o&&_s())},[gt,$a,Ji]),(0,ce.useEffect)(function(){wa(Ss)},[$u,sc]);var Vs=xn({cellRender:ls,monthCellRender:is,dateRender:Mo}),jl=ce.useMemo(function(){if(Vs)return function(Cs,Za){return Vs(Cs,(0,ln.Z)((0,ln.Z)({},Za),{},{range:St?"end":"start"}))}},[St,Vs]);ao&&(ao.current={focus:function(){yu.current&&yu.current.focus()},blur:function(){yu.current&&yu.current.blur(),El.current&&El.current.blur()}});var Nc=Et(al,Xs);function Yu(){var Cs=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Za=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},xo=null;gt&&Ki&&Ki[0]&&Ki[1]&&hr.isAfter(Ki[1],Ki[0])&&(xo=Ki);var ms=Ci;if(Ci&&(0,Ht.Z)(Ci)==="object"&&Ci.defaultValue){var js=Ci.defaultValue;ms=(0,ln.Z)((0,ln.Z)({},Ci),{},{defaultValue:br(js,St)||void 0})}return ce.createElement(ei.Provider,{value:{inRange:!0,panelPosition:Cs,rangedValue:ps||Ao,hoverRangedValue:xo}},ce.createElement(gn,(0,Se.Z)({},Ce,Za,{cellRender:jl,showTime:ms,mode:Mu[St],generateConfig:hr,style:void 0,direction:Zl,disabledDate:St===0?cn:jr,disabledTime:function(Gl){return go?go(Gl,St===0?"start":"end"):!1},className:Rt()((0,an.Z)({},"".concat(yn,"-panel-focused"),St===0?!lu:!fl)),value:br(Ao,St),locale:Fr,tabIndex:-1,onPanelChange:function(Gl,Ju){St===0&&yo(!0),St===1&&eu(!0),De(fi(Mu,Ju,St),fi(Ao,Gl,St));var qu=Gl;Cs==="right"&&Mu[St]===Ju&&(qu=jt(qu,Ju,hr,-1)),_u(qu,St)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:St===0?br(Ao,1):br(Ao,0)})))}var Fo=0,Fa=0;if(St&&sl.current&&vu.current&&Wl.current&&Do.current){Fo=sl.current.offsetWidth+vu.current.offsetWidth;var Ml=Do.current.offsetLeft>Fo?Do.current.offsetLeft-Fo:Do.current.offsetLeft,Ds=Wl.current.offsetWidth,Ol=Do.current.offsetWidth;Ds&&Ol&&Fo>Ds-Ol-(Zl==="rtl"?0:Ml)&&(Fa=Fo)}var Wr=Zl==="rtl"?{right:Fo}:{left:Fo};function pu(){var Cs,Za=Qe(yn,Mu[St],ks),xo=rt({prefixCls:yn,components:dc,needConfirmButton:ql,okDisabled:!br(Ao,St)||no&&no(Ao[St]),locale:Fr,onOk:function(){var xu=br(Ao,St);xu&&(di(Ao,St),Jl==null||Jl(Ao),hn(!1,St,"confirm"))}});if(Hi!=="time"&&!Ci){var ms=rc(St),js=jt(ms,Hi,hr),Rl=Mu[St],Gl=Rl===Hi,Ju=Yu(Gl?"left":!1,{pickerValue:ms,onPickerValueChange:function(xu){_u(xu,St)}}),qu=Yu("right",{pickerValue:js,onPickerValueChange:function(xu){_u(jt(xu,Hi,hr,-1),St)}});Zl==="rtl"?Cs=ce.createElement(ce.Fragment,null,qu,Gl&&Ju):Cs=ce.createElement(ce.Fragment,null,Ju,Gl&&qu)}else Cs=Yu();var Ku=ce.createElement("div",{className:"".concat(yn,"-panel-layout")},ce.createElement(tr,{prefixCls:yn,presets:Nc,onClick:function(xu){di(xu,null),hn(!1,St,"preset")},onHover:function(xu){Ps(xu)}}),ce.createElement("div",null,ce.createElement("div",{className:"".concat(yn,"-panels")},Cs),(Za||xo)&&ce.createElement("div",{className:"".concat(yn,"-footer")},Za,xo)));return Ms&&(Ku=Ms(Ku)),ce.createElement("div",{className:"".concat(yn,"-panel-container"),style:{marginLeft:Fa},ref:Wl,onMouseDown:function(xu){xu.preventDefault()}},Ku)}var Xu=ce.createElement("div",{className:Rt()("".concat(yn,"-range-wrapper"),"".concat(yn,"-").concat(Hi,"-range-wrapper")),style:{minWidth:Qr}},ce.createElement("div",{ref:Do,className:"".concat(yn,"-range-arrow"),style:Wr}),pu()),Mc;ml&&(Mc=ce.createElement("span",{className:"".concat(yn,"-suffix"),onMouseDown:function(Za){Za.preventDefault()}},ml));var Yc=Kr(yn,As,Bs),Qu=ce.createElement("span",{onMouseDown:function(Za){Za.preventDefault(),Za.stopPropagation()},onMouseUp:function(Za){Za.preventDefault(),Za.stopPropagation();var xo=Ss;Js[0]||(xo=fi(xo,null,0)),Js[1]||(xo=fi(xo,null,1)),di(xo,null),hn(!1,St,"clear")},className:"".concat(yn,"-clear"),role:"button"},Yc),kc=As&&(br(Ss,0)&&!Js[0]||br(Ss,1)&&!Js[1]),Xc={size:Vi(Hi,ll[0],hr)},kl=0,bu=0;sl.current&&fu.current&&vu.current&&(St===0?bu=sl.current.offsetWidth:(kl=Fo,bu=fu.current.offsetWidth));var Dc=Zl==="rtl"?{right:kl}:{left:kl},Oc=function(Za,xo){var ms=fi(Ao,Za,St);if(xo==="submit"||xo!=="key"&&!ql){di(ms,St),St===0?yo():eu();var js=St===0?1:0;Js[js]?hn(!1,!1,"confirm"):hn(!1,St,"confirm")}else wa(ms)};return ce.createElement(ft.Provider,{value:{operationRef:Ul,hideHeader:Hi==="time",onDateMouseEnter:oi,onDateMouseLeave:ku,hideRanges:!0,onSelect:Oc,open:gt}},ce.createElement(gr,{visible:gt,popupElement:Xu,popupStyle:kr,prefixCls:yn,dropdownClassName:Zn,dropdownAlign:Zr,getPopupContainer:Ur,transitionName:nr,range:!0,direction:Zl},ce.createElement("div",(0,Se.Z)({ref:Sl,className:Rt()(yn,"".concat(yn,"-range"),Mn,(Oe={},(0,an.Z)(Oe,"".concat(yn,"-disabled"),Js[0]&&Js[1]),(0,an.Z)(Oe,"".concat(yn,"-focused"),St===0?Tl:Nl),(0,an.Z)(Oe,"".concat(yn,"-rtl"),Zl==="rtl"),Oe)),style:_n,onClick:ol,onMouseEnter:zl,onMouseLeave:Ru,onMouseDown:qs,onMouseUp:Us},(0,pr.Z)(Ce,{aria:!0,data:!0})),ce.createElement("div",{className:Rt()("".concat(yn,"-input"),(_e={},(0,an.Z)(_e,"".concat(yn,"-input-active"),St===0),(0,an.Z)(_e,"".concat(yn,"-input-placeholder"),!!ds),_e)),ref:sl},ce.createElement("input",(0,Se.Z)({id:vr,disabled:Js[0],readOnly:eo||typeof ll[0]=="function"||!lu,value:ds||lo,onChange:function(Za){Ua(Za.target.value)},autoFocus:li,placeholder:br(ni,0)||"",ref:yu},Cl,Xc,{autoComplete:ju}))),ce.createElement("div",{className:"".concat(yn,"-range-separator"),ref:vu},so),ce.createElement("div",{className:Rt()("".concat(yn,"-input"),(Dt={},(0,an.Z)(Dt,"".concat(yn,"-input-active"),St===1),(0,an.Z)(Dt,"".concat(yn,"-input-placeholder"),!!$l),Dt)),ref:fu},ce.createElement("input",(0,Se.Z)({disabled:Js[1],readOnly:eo||typeof ll[0]=="function"||!fl,value:$l||$o,onChange:function(Za){Fs(Za.target.value)},placeholder:br(ni,1)||"",ref:El},dl,Xc,{autoComplete:ju}))),ce.createElement("div",{className:"".concat(yn,"-active-bar"),style:(0,ln.Z)((0,ln.Z)({},Dc),{},{width:bu,position:"absolute"})}),Mc,kc&&Qu)))}var Co=function(Ce){(0,Mt.Z)(_e,Ce);var Oe=(0,qt.Z)(_e);function _e(){var Dt;(0,Vn.Z)(this,_e);for(var Lt=arguments.length,Ln=new Array(Lt),yn=0;yn<Lt;yn++)Ln[yn]=arguments[yn];return Dt=Oe.call.apply(Oe,[this].concat(Ln)),(0,an.Z)((0,xt.Z)(Dt),"pickerRef",ce.createRef()),(0,an.Z)((0,xt.Z)(Dt),"focus",function(){Dt.pickerRef.current&&Dt.pickerRef.current.focus()}),(0,an.Z)((0,xt.Z)(Dt),"blur",function(){Dt.pickerRef.current&&Dt.pickerRef.current.blur()}),Dt}return(0,In.Z)(_e,[{key:"render",value:function(){return ce.createElement(Ca,(0,Se.Z)({},this.props,{pickerRef:this.pickerRef}))}}]),_e}(ce.Component),Qa=Co,za=yi,la=te(9708),ga=te(53124),Xi=te(98866),Ba=te(98675),Qi=te(65223),Bi=te(10110),Ea=te(4173),Va=te(16516),Jo=te(84780),zo=te(47673),Oo=te(14747),Po=te(79511),co=te(80110),xa=te(67771),us=te(33297),Ka=te(45503),ua=te(67968);const Ja=(Ce,Oe,_e,Dt)=>{const{lineHeight:Lt}=Ce,Ln=Math.floor(_e*Lt)+2,yn=Math.max((Oe-Ln)/2,0),vr=Math.max(Oe-Ln-yn,0);return{padding:`${yn}px ${Dt}px ${vr}px`}},Wo=Ce=>{const{componentCls:Oe,pickerCellCls:_e,pickerCellInnerCls:Dt,cellHeight:Lt,motionDurationSlow:Ln,borderRadiusSM:yn,motionDurationMid:vr,cellHoverBg:_n,lineWidth:Mn,lineType:kr,colorPrimary:Zn,cellActiveWithRangeBg:nr,colorTextLightSolid:Zr,controlHeightSM:Ur,cellRangeBorderColor:hr,pickerCellBorderGap:Fr,cellHoverWithRangeBg:ni,cellWidth:li,colorTextDisabled:xi,cellBgDisabled:Fi}=Ce;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:Lt,transform:"translateY(-50%)",transition:`all ${Ln}`,content:'""'},[Dt]:{position:"relative",zIndex:2,display:"inline-block",minWidth:Lt,height:Lt,lineHeight:`${Lt}px`,borderRadius:yn,transition:`background ${vr}, border ${vr}`},"&-range-hover-start, &-range-hover-end":{[Dt]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:hover:not(${_e}-in-view),
&:hover:not(${_e}-selected):not(${_e}-range-start):not(${_e}-range-end):not(${_e}-range-hover-start):not(${_e}-range-hover-end)`]:{[Dt]:{background:_n}},[`&-in-view${_e}-today ${Dt}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${Mn}px ${kr} ${Zn}`,borderRadius:yn,content:'""'}},[`&-in-view${_e}-in-range`]:{position:"relative","&::before":{background:nr}},[`&-in-view${_e}-selected ${Dt},
&-in-view${_e}-range-start ${Dt},
&-in-view${_e}-range-end ${Dt}`]:{color:Zr,background:Zn},[`&-in-view${_e}-range-start:not(${_e}-range-start-single),
&-in-view${_e}-range-end:not(${_e}-range-end-single)`]:{"&::before":{background:nr}},[`&-in-view${_e}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${_e}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${_e}-range-hover-start:not(${_e}-in-range):not(${_e}-range-start):not(${_e}-range-end),
&-in-view${_e}-range-hover-end:not(${_e}-in-range):not(${_e}-range-start):not(${_e}-range-end),
&-in-view${_e}-range-hover-start${_e}-range-start-single,
&-in-view${_e}-range-hover-start${_e}-range-start${_e}-range-end${_e}-range-end-near-hover,
&-in-view${_e}-range-hover-end${_e}-range-start${_e}-range-end${_e}-range-start-near-hover,
&-in-view${_e}-range-hover-end${_e}-range-end-single,
&-in-view${_e}-range-hover:not(${_e}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:Ur,borderTop:`${Mn}px dashed ${hr}`,borderBottom:`${Mn}px dashed ${hr}`,transform:"translateY(-50%)",transition:`all ${Ln}`,content:'""'}},"&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after":{insetInlineEnd:0,insetInlineStart:Fr},[`&-in-view${_e}-in-range${_e}-range-hover::before,
&-in-view${_e}-in-range${_e}-range-hover-start::before,
&-in-view${_e}-in-range${_e}-range-hover-end::before,
&-in-view${_e}-range-start${_e}-range-hover::before,
&-in-view${_e}-range-end${_e}-range-hover::before,
&-in-view${_e}-range-start:not(${_e}-range-start-single)${_e}-range-hover-start::before,
&-in-view${_e}-range-end:not(${_e}-range-end-single)${_e}-range-hover-end::before,
${Oe}-panel
> :not(${Oe}-date-panel)
&-in-view${_e}-in-range${_e}-range-hover-start::before,
${Oe}-panel
> :not(${Oe}-date-panel)
&-in-view${_e}-in-range${_e}-range-hover-end::before`]:{background:ni},[`&-in-view${_e}-range-start:not(${_e}-range-start-single):not(${_e}-range-end) ${Dt}`]:{borderStartStartRadius:yn,borderEndStartRadius:yn,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${_e}-range-end:not(${_e}-range-end-single):not(${_e}-range-start) ${Dt}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:yn,borderEndEndRadius:yn},[`&-range-hover${_e}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${_e}-range-hover:first-child::after,
tr > &-in-view${_e}-range-hover-end:first-child::after,
&-in-view${_e}-start${_e}-range-hover-edge-start${_e}-range-hover-edge-start-near-range::after,
&-in-view${_e}-range-hover-edge-start:not(${_e}-range-hover-edge-start-near-range)::after,
&-in-view${_e}-range-hover-start::after`]:{insetInlineStart:(li-Lt)/2,borderInlineStart:`${Mn}px dashed ${hr}`,borderStartStartRadius:yn,borderEndStartRadius:yn},[`tr > &-in-view${_e}-range-hover:last-child::after,
tr > &-in-view${_e}-range-hover-start:last-child::after,
&-in-view${_e}-end${_e}-range-hover-edge-end${_e}-range-hover-edge-end-near-range::after,
&-in-view${_e}-range-hover-edge-end:not(${_e}-range-hover-edge-end-near-range)::after,
&-in-view${_e}-range-hover-end::after`]:{insetInlineEnd:(li-Lt)/2,borderInlineEnd:`${Mn}px dashed ${hr}`,borderStartEndRadius:yn,borderEndEndRadius:yn},"&-disabled":{color:xi,pointerEvents:"none",[Dt]:{background:"transparent"},"&::before":{background:Fi}},[`&-disabled${_e}-today ${Dt}::before`]:{borderColor:xi}}},fo=Ce=>{const{componentCls:Oe,pickerCellCls:_e,pickerCellInnerCls:Dt,pickerYearMonthCellWidth:Lt,pickerControlIconSize:Ln,cellWidth:yn,paddingSM:vr,paddingXS:_n,paddingXXS:Mn,colorBgContainer:kr,lineWidth:Zn,lineType:nr,borderRadiusLG:Zr,colorPrimary:Ur,colorTextHeading:hr,colorSplit:Fr,pickerControlIconBorderWidth:ni,colorIcon:li,textHeight:xi,motionDurationMid:Fi,colorIconHover:ta,fontWeightStrong:Hi,cellHeight:Ci,pickerCellPaddingVertical:qa,colorTextDisabled:Ha,colorText:so,fontSize:Ro,cellHoverWithRangeBg:io,motionDurationSlow:Ta,withoutTimeCellHeight:Eo,pickerQuarterPanelContentHeight:ho,colorLink:no,colorLinkActive:go,colorLinkHover:Mo,cellRangeBorderColor:is,borderRadiusSM:ls,colorTextLightSolid:Ms,cellHoverBg:al,timeColumnHeight:Xs,timeColumnWidth:Qs,timeCellHeight:As,controlItemBgActive:ml,marginXXS:Bs,pickerDatePanelPaddingHorizontal:ao}=Ce,eo=yn*7+ao*2,xs=(eo-_n*2)/3-Lt-vr,ks=(eo-_n*2)/4-Lt;return{[Oe]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:kr,border:`${Zn}px ${nr} ${Fr}`,borderRadius:Zr,outline:"none","&-focused":{borderColor:Ur},"&-rtl":{direction:"rtl",[`${Oe}-prev-icon,
${Oe}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${Oe}-next-icon,
${Oe}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:eo},"&-header":{display:"flex",padding:`0 ${_n}px`,color:hr,borderBottom:`${Zn}px ${nr} ${Fr}`,"> *":{flex:"none"},button:{padding:0,color:li,lineHeight:`${xi}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${Fi}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:Ro,"&:hover":{color:ta}},"&-view":{flex:"auto",fontWeight:Hi,lineHeight:`${xi}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:_n},"&:hover":{color:Ur}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:Ln,height:Ln,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:Ln,height:Ln,border:"0 solid currentcolor",borderBlockStartWidth:ni,borderBlockEndWidth:0,borderInlineStartWidth:ni,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Math.ceil(Ln/2),insetInlineStart:Math.ceil(Ln/2),display:"inline-block",width:Ln,height:Ln,border:"0 solid currentcolor",borderBlockStartWidth:ni,borderBlockEndWidth:0,borderInlineStartWidth:ni,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:Ci,fontWeight:"normal"},th:{height:Ci+qa*2,color:so,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${qa}px 0`,color:Ha,cursor:"pointer","&-in-view":{color:so}},Wo(Ce)),[`&-date-panel ${Oe}-cell-in-view${Oe}-cell-in-range${Oe}-cell-range-hover-start ${Dt},
&-date-panel ${Oe}-cell-in-view${Oe}-cell-in-range${Oe}-cell-range-hover-end ${Dt}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:io,transition:`all ${Ta}`,content:'""'}},[`&-date-panel
${Oe}-cell-in-view${Oe}-cell-in-range${Oe}-cell-range-hover-start
${Dt}::after`]:{insetInlineEnd:-(yn-Ci)/2,insetInlineStart:0},[`&-date-panel ${Oe}-cell-in-view${Oe}-cell-in-range${Oe}-cell-range-hover-end ${Dt}::after`]:{insetInlineEnd:0,insetInlineStart:-(yn-Ci)/2},[`&-range-hover${Oe}-range-start::after`]:{insetInlineEnd:"50%"},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${Oe}-content`]:{height:Eo*4},[Dt]:{padding:`0 ${_n}px`}},"&-quarter-panel":{[`${Oe}-content`]:{height:ho},[`${Oe}-cell-range-hover-start::after`]:{insetInlineStart:ks,borderInlineStart:`${Zn}px dashed ${is}`,[`${Oe}-panel-rtl &`]:{insetInlineEnd:ks,borderInlineEnd:`${Zn}px dashed ${is}`}},[`${Oe}-cell-range-hover-end::after`]:{insetInlineEnd:ks,borderInlineEnd:`${Zn}px dashed ${is}`,[`${Oe}-panel-rtl &`]:{insetInlineStart:ks,borderInlineStart:`${Zn}px dashed ${is}`}}},[`&-panel ${Oe}-footer`]:{borderTop:`${Zn}px ${nr} ${Fr}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:`${xi-2*Zn}px`,textAlign:"center","&-extra":{padding:`0 ${vr}px`,lineHeight:`${xi-2*Zn}px`,textAlign:"start","&:not(:last-child)":{borderBottom:`${Zn}px ${nr} ${Fr}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:no,"&:hover":{color:Mo},"&:active":{color:go},[`&${Oe}-today-btn-disabled`]:{color:Ha,cursor:"not-allowed"}},"&-decade-panel":{[Dt]:{padding:`0 ${_n/2}px`},[`${Oe}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${Oe}-body`]:{padding:`0 ${_n}px`},[Dt]:{width:Lt},[`${Oe}-cell-range-hover-start::after`]:{borderStartStartRadius:ls,borderEndStartRadius:ls,borderStartEndRadius:0,borderEndEndRadius:0,[`${Oe}-panel-rtl &`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:ls,borderEndEndRadius:ls}},[`${Oe}-cell-range-hover-end::after`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:ls,borderEndEndRadius:ls,[`${Oe}-panel-rtl &`]:{borderStartStartRadius:ls,borderEndStartRadius:ls,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-year-panel,\n &-month-panel":{[`${Oe}-cell-range-hover-start::after`]:{insetInlineStart:xs,borderInlineStart:`${Zn}px dashed ${is}`,[`${Oe}-panel-rtl &`]:{insetInlineEnd:xs,borderInlineEnd:`${Zn}px dashed ${is}`}},[`${Oe}-cell-range-hover-end::after`]:{insetInlineEnd:xs,borderInlineEnd:`${Zn}px dashed ${is}`,[`${Oe}-panel-rtl &`]:{insetInlineStart:xs,borderInlineStart:`${Zn}px dashed ${is}`}}},"&-week-panel":{[`${Oe}-body`]:{padding:`${_n}px ${vr}px`},[`${Oe}-cell`]:{[`&:hover ${Dt},
&-selected ${Dt},
${Dt}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${Fi}`},"&:first-child:before":{borderStartStartRadius:ls,borderEndStartRadius:ls},"&:last-child:before":{borderStartEndRadius:ls,borderEndEndRadius:ls}},"&:hover td":{"&:before":{background:al}},"&-range-start td,\n &-range-end td,\n &-selected td":{[`&${_e}`]:{"&:before":{background:Ur},[`&${Oe}-cell-week`]:{color:new Jo.C(Ms).setAlpha(.5).toHexString()},[Dt]:{color:Ms}}},"&-range-hover td:before":{background:ml}}},"&-date-panel":{[`${Oe}-body`]:{padding:`${_n}px ${ao}px`},[`${Oe}-content`]:{width:yn*7,th:{width:yn,boxSizing:"border-box",padding:0}}},"&-datetime-panel":{display:"flex",[`${Oe}-time-panel`]:{borderInlineStart:`${Zn}px ${nr} ${Fr}`},[`${Oe}-date-panel,
${Oe}-time-panel`]:{transition:`opacity ${Ta}`},"&-active":{[`${Oe}-date-panel,
${Oe}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${Oe}-content`]:{display:"flex",flex:"auto",height:Xs},"&-column":{flex:"1 0 auto",width:Qs,margin:`${Mn}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${Fi}`,overflowX:"hidden","&::after":{display:"block",height:Xs-As,content:'""'},"&:not(:first-child)":{borderInlineStart:`${Zn}px ${nr} ${Fr}`},"&-active":{background:new Jo.C(ml).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${Oe}-time-panel-cell`]:{marginInline:Bs,[`${Oe}-time-panel-cell-inner`]:{display:"block",width:Qs-2*Bs,height:As,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(Qs-As)/2,color:so,lineHeight:`${As}px`,borderRadius:ls,cursor:"pointer",transition:`background ${Fi}`,"&:hover":{background:al}},"&-selected":{[`${Oe}-time-panel-cell-inner`]:{background:ml}},"&-disabled":{[`${Oe}-time-panel-cell-inner`]:{color:Ha,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${Oe}-time-panel-column:after`]:{height:Xs-As+Mn*2}}}},bo=Ce=>{const{componentCls:Oe,colorBgContainer:_e,colorError:Dt,errorActiveShadow:Lt,colorWarning:Ln,warningActiveShadow:yn}=Ce;return{[`${Oe}:not(${Oe}-disabled)`]:{[`&${Oe}-status-error`]:{"&, &:not([disabled]):hover":{backgroundColor:_e,borderColor:Dt},[`&${Oe}-focused, &:focus`]:Object.assign({},(0,zo.M1)((0,Ka.TS)(Ce,{activeBorderColor:Dt,activeShadow:Lt}))),[`${Oe}-active-bar`]:{background:Dt}},[`&${Oe}-status-warning`]:{"&, &:not([disabled]):hover":{backgroundColor:_e,borderColor:Ln},[`&${Oe}-focused, &:focus`]:Object.assign({},(0,zo.M1)((0,Ka.TS)(Ce,{activeBorderColor:Ln,activeShadow:yn}))),[`${Oe}-active-bar`]:{background:Ln}}}}},Ma=Ce=>{const{componentCls:Oe,antCls:_e,controlHeight:Dt,fontSize:Lt,paddingInline:Ln,colorBgContainer:yn,lineWidth:vr,lineType:_n,colorBorder:Mn,borderRadius:kr,motionDurationMid:Zn,colorBgContainerDisabled:nr,colorTextDisabled:Zr,colorTextPlaceholder:Ur,controlHeightLG:hr,fontSizeLG:Fr,controlHeightSM:ni,paddingInlineSM:li,paddingXS:xi,marginXS:Fi,colorTextDescription:ta,lineWidthBold:Hi,lineHeight:Ci,colorPrimary:qa,motionDurationSlow:Ha,zIndexPopup:so,paddingXXS:Ro,paddingSM:io,textHeight:Ta,cellActiveWithRangeBg:Eo,colorPrimaryBorder:ho,sizePopupArrow:no,borderRadiusXS:go,borderRadiusOuter:Mo,colorBgElevated:is,borderRadiusLG:ls,boxShadowSecondary:Ms,borderRadiusSM:al,colorSplit:Xs,cellHoverBg:Qs,presetsWidth:As,presetsMaxWidth:ml,boxShadowPopoverArrow:Bs,colorTextQuaternary:ao}=Ce;return[{[Oe]:Object.assign(Object.assign(Object.assign({},(0,Oo.Wf)(Ce)),Ja(Ce,Dt,Lt,Ln)),{position:"relative",display:"inline-flex",alignItems:"center",background:yn,lineHeight:1,border:`${vr}px ${_n} ${Mn}`,borderRadius:kr,transition:`border ${Zn}, box-shadow ${Zn}`,"&:hover, &-focused":Object.assign({},(0,zo.pU)(Ce)),"&-focused":Object.assign({},(0,zo.M1)(Ce)),[`&${Oe}-disabled`]:{background:nr,borderColor:Mn,cursor:"not-allowed",[`${Oe}-suffix`]:{color:ao}},[`&${Oe}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${Oe}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({},(0,zo.ik)(Ce)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,borderRadius:0,"&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${Oe}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:Ur}}},"&-large":Object.assign(Object.assign({},Ja(Ce,hr,Fr,Ln)),{[`${Oe}-input > input`]:{fontSize:Fr}}),"&-small":Object.assign({},Ja(Ce,ni,Lt,li)),[`${Oe}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:xi/2,color:Zr,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:Fi}}},[`${Oe}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:Zr,lineHeight:1,background:yn,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${Zn}, color ${Zn}`,"> *":{verticalAlign:"top"},"&:hover":{color:ta}},[`${Oe}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:Fr,color:Zr,fontSize:Fr,verticalAlign:"top",cursor:"default",[`${Oe}-focused &`]:{color:ta},[`${Oe}-range-separator &`]:{[`${Oe}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${Oe}-clear`]:{insetInlineEnd:Ln},"&:hover":{[`${Oe}-clear`]:{opacity:1}},[`${Oe}-active-bar`]:{bottom:-vr,height:Hi,marginInlineStart:Ln,background:qa,opacity:0,transition:`all ${Ha} ease-out`,pointerEvents:"none"},[`&${Oe}-focused`]:{[`${Oe}-active-bar`]:{opacity:1}},[`${Oe}-range-separator`]:{alignItems:"center",padding:`0 ${xi}px`,lineHeight:1},[`&${Oe}-small`]:{[`${Oe}-clear`]:{insetInlineEnd:li},[`${Oe}-active-bar`]:{marginInlineStart:li}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,Oo.Wf)(Ce)),fo(Ce)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:so,[`&${Oe}-dropdown-hidden`]:{display:"none"},[`&${Oe}-dropdown-placement-bottomLeft`]:{[`${Oe}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${Oe}-dropdown-placement-topLeft`]:{[`${Oe}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${_e}-slide-up-enter${_e}-slide-up-enter-active${Oe}-dropdown-placement-topLeft,
&${_e}-slide-up-enter${_e}-slide-up-enter-active${Oe}-dropdown-placement-topRight,
&${_e}-slide-up-appear${_e}-slide-up-appear-active${Oe}-dropdown-placement-topLeft,
&${_e}-slide-up-appear${_e}-slide-up-appear-active${Oe}-dropdown-placement-topRight`]:{animationName:xa.Qt},[`&${_e}-slide-up-enter${_e}-slide-up-enter-active${Oe}-dropdown-placement-bottomLeft,
&${_e}-slide-up-enter${_e}-slide-up-enter-active${Oe}-dropdown-placement-bottomRight,
&${_e}-slide-up-appear${_e}-slide-up-appear-active${Oe}-dropdown-placement-bottomLeft,
&${_e}-slide-up-appear${_e}-slide-up-appear-active${Oe}-dropdown-placement-bottomRight`]:{animationName:xa.fJ},[`&${_e}-slide-up-leave${_e}-slide-up-leave-active${Oe}-dropdown-placement-topLeft,
&${_e}-slide-up-leave${_e}-slide-up-leave-active${Oe}-dropdown-placement-topRight`]:{animationName:xa.ly},[`&${_e}-slide-up-leave${_e}-slide-up-leave-active${Oe}-dropdown-placement-bottomLeft,
&${_e}-slide-up-leave${_e}-slide-up-leave-active${Oe}-dropdown-placement-bottomRight`]:{animationName:xa.Uw},[`${Oe}-panel > ${Oe}-time-panel`]:{paddingTop:Ro},[`${Oe}-ranges`]:{marginBottom:0,padding:`${Ro}px ${io}px`,overflow:"hidden",lineHeight:`${Ta-2*vr-xi/2}px`,textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${Oe}-preset > ${_e}-tag-blue`]:{color:qa,background:Eo,borderColor:ho,cursor:"pointer"},[`${Oe}-ok`]:{marginInlineStart:"auto"}},[`${Oe}-range-wrapper`]:{display:"flex",position:"relative"},[`${Oe}-range-arrow`]:Object.assign({position:"absolute",zIndex:1,display:"none",marginInlineStart:Ln*1.5,transition:`left ${Ha} ease-out`},(0,Po.r)(no,go,Mo,is,Bs)),[`${Oe}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:is,borderRadius:ls,boxShadow:Ms,transition:`margin ${Ha}`,[`${Oe}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${Oe}-presets`]:{display:"flex",flexDirection:"column",minWidth:As,maxWidth:ml,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:xi,borderInlineEnd:`${vr}px ${_n} ${Xs}`,li:Object.assign(Object.assign({},Oo.vS),{borderRadius:al,paddingInline:xi,paddingBlock:(ni-Math.round(Lt*Ci))/2,cursor:"pointer",transition:`all ${Ha}`,"+ li":{marginTop:Fi},"&:hover":{background:Qs}})}},[`${Oe}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${Oe}-panel`]:{borderWidth:`0 0 ${vr}px`},"&:last-child":{[`${Oe}-panel`]:{borderWidth:0}}},[`${Oe}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${Oe}-content,
table`]:{textAlign:"center"},"&-focused":{borderColor:Mn}}}}),"&-dropdown-range":{padding:`${no*2/3}px 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${Oe}-separator`]:{transform:"rotate(180deg)"},[`${Oe}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,xa.oN)(Ce,"slide-up"),(0,xa.oN)(Ce,"slide-down"),(0,us.Fm)(Ce,"move-up"),(0,us.Fm)(Ce,"move-down")]},Uo=Ce=>{const{componentCls:Oe,controlHeightLG:_e,paddingXXS:Dt,padding:Lt}=Ce;return{pickerCellCls:`${Oe}-cell`,pickerCellInnerCls:`${Oe}-cell-inner`,pickerYearMonthCellWidth:_e*1.5,pickerQuarterPanelContentHeight:_e*1.4,pickerCellPaddingVertical:Dt+Dt/2,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:Lt+Dt/2}},os=Ce=>({cellHoverBg:Ce.controlItemBgHover,cellActiveWithRangeBg:Ce.controlItemBgActive,cellHoverWithRangeBg:new Jo.C(Ce.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Jo.C(Ce.colorPrimary).lighten(20).toHexString(),cellBgDisabled:Ce.colorBgContainerDisabled,timeColumnWidth:Ce.controlHeightLG*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:Ce.controlHeightSM*1.5,cellHeight:Ce.controlHeightSM,textHeight:Ce.controlHeightLG,withoutTimeCellHeight:Ce.controlHeightLG*1.65});var Xo=(0,ua.Z)("DatePicker",Ce=>{const Oe=(0,Ka.TS)((0,zo.e5)(Ce),Uo(Ce));return[Ma(Oe),bo(Oe),(0,co.c)(Ce,{focusElCls:`${Ce.componentCls}-focused`})]},Ce=>Object.assign(Object.assign(Object.assign({},(0,zo.TM)(Ce)),os(Ce)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:Ce.zIndexPopupBase+50}));function ss(Ce,Oe,_e){return _e!==void 0?_e:Oe==="year"&&Ce.lang.yearPlaceholder?Ce.lang.yearPlaceholder:Oe==="quarter"&&Ce.lang.quarterPlaceholder?Ce.lang.quarterPlaceholder:Oe==="month"&&Ce.lang.monthPlaceholder?Ce.lang.monthPlaceholder:Oe==="week"&&Ce.lang.weekPlaceholder?Ce.lang.weekPlaceholder:Oe==="time"&&Ce.timePickerLocale.placeholder?Ce.timePickerLocale.placeholder:Ce.lang.placeholder}function cs(Ce,Oe,_e){return _e!==void 0?_e:Oe==="year"&&Ce.lang.yearPlaceholder?Ce.lang.rangeYearPlaceholder:Oe==="quarter"&&Ce.lang.quarterPlaceholder?Ce.lang.rangeQuarterPlaceholder:Oe==="month"&&Ce.lang.monthPlaceholder?Ce.lang.rangeMonthPlaceholder:Oe==="week"&&Ce.lang.weekPlaceholder?Ce.lang.rangeWeekPlaceholder:Oe==="time"&&Ce.timePickerLocale.placeholder?Ce.timePickerLocale.rangePlaceholder:Ce.lang.rangePlaceholder}function Os(Ce,Oe){const _e={adjustX:1,adjustY:1};switch(Oe){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:_e};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:_e};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:_e};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:_e};default:return{points:Ce==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:_e}}}function qo(Ce){return Ce?Array.isArray(Ce)?Ce:[Ce]:[]}function es(Ce){const{format:Oe,picker:_e,showHour:Dt,showMinute:Lt,showSecond:Ln,use12Hours:yn}=Ce,vr=qo(Oe)[0],_n=Object.assign({},Ce);return Oe&&Array.isArray(Oe)&&(_n.format=vr),vr&&typeof vr=="string"&&(!vr.includes("s")&&Ln===void 0&&(_n.showSecond=!1),!vr.includes("m")&&Lt===void 0&&(_n.showMinute=!1),!vr.includes("H")&&!vr.includes("h")&&!vr.includes("K")&&!vr.includes("k")&&Dt===void 0&&(_n.showHour=!1),(vr.includes("a")||vr.includes("A"))&&yn===void 0&&(_n.use12Hours=!0)),_e==="time"?_n:(typeof vr=="function"&&delete _n.format,{showTime:_n})}function Zs(Ce,Oe,_e){if(Ce===!1)return!1;const Dt={clearIcon:Oe!=null?Oe:_e};return typeof Ce=="object"?Object.assign(Object.assign({},Dt),Ce):Dt}var Ws=te(71577);function el(Ce){return ce.createElement(Ws.ZP,Object.assign({size:"small",type:"primary"},Ce))}var ns={button:el},Wa=function(Ce,Oe){var _e={};for(var Dt in Ce)Object.prototype.hasOwnProperty.call(Ce,Dt)&&Oe.indexOf(Dt)<0&&(_e[Dt]=Ce[Dt]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,Dt=Object.getOwnPropertySymbols(Ce);Lt<Dt.length;Lt++)Oe.indexOf(Dt[Lt])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Dt[Lt])&&(_e[Dt[Lt]]=Ce[Dt[Lt]]);return _e};function ro(Ce){return(0,ce.forwardRef)((_e,Dt)=>{const{prefixCls:Lt,getPopupContainer:Ln,className:yn,placement:vr,size:_n,disabled:Mn,bordered:kr=!0,placeholder:Zn,popupClassName:nr,dropdownClassName:Zr,status:Ur,clearIcon:hr,allowClear:Fr,rootClassName:ni}=_e,li=Wa(_e,["prefixCls","getPopupContainer","className","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","clearIcon","allowClear","rootClassName"]),xi=ce.useRef(null),{getPrefixCls:Fi,direction:ta,getPopupContainer:Hi}=(0,ce.useContext)(ga.E_),Ci=Fi("picker",Lt),{compactSize:qa,compactItemClassnames:Ha}=(0,Ea.ri)(Ci,ta),{format:so,showTime:Ro,picker:io}=_e,Ta=Fi(),[Eo,ho]=Xo(Ci),no=Object.assign(Object.assign({},Ro?es(Object.assign({format:so,picker:io},Ro)):{}),io==="time"?es(Object.assign(Object.assign({format:so},_e),{picker:io})):{}),go=(0,Ba.Z)(Bs=>{var ao;return(ao=_n!=null?_n:qa)!==null&&ao!==void 0?ao:Bs}),Mo=ce.useContext(Xi.Z),is=Mn!=null?Mn:Mo,ls=(0,ce.useContext)(Qi.aM),{hasFeedback:Ms,status:al,feedbackIcon:Xs}=ls,Qs=ce.createElement(ce.Fragment,null,io==="time"?ce.createElement($t,null):ce.createElement(Ge,null),Ms&&Xs);(0,ce.useImperativeHandle)(Dt,()=>({focus:()=>{var Bs;return(Bs=xi.current)===null||Bs===void 0?void 0:Bs.focus()},blur:()=>{var Bs;return(Bs=xi.current)===null||Bs===void 0?void 0:Bs.blur()}}));const[As]=(0,Bi.Z)("Calendar",Va.Z),ml=Object.assign(Object.assign({},As),_e.locale);return Eo(ce.createElement(Qa,Object.assign({separator:ce.createElement("span",{"aria-label":"to",className:`${Ci}-separator`},ce.createElement(yt,null)),disabled:is,ref:xi,dropdownAlign:Os(ta,vr),placeholder:cs(ml,io,Zn),suffixIcon:Qs,prevIcon:ce.createElement("span",{className:`${Ci}-prev-icon`}),nextIcon:ce.createElement("span",{className:`${Ci}-next-icon`}),superPrevIcon:ce.createElement("span",{className:`${Ci}-super-prev-icon`}),superNextIcon:ce.createElement("span",{className:`${Ci}-super-next-icon`}),transitionName:`${Ta}-slide-up`},li,no,{className:Rt()({[`${Ci}-${go}`]:go,[`${Ci}-borderless`]:!kr},(0,la.Z)(Ci,(0,la.F)(al,Ur),Ms),ho,Ha,yn,ni),locale:ml.lang,prefixCls:Ci,getPopupContainer:Ln||Hi,generateConfig:Ce,components:ns,direction:ta,dropdownClassName:Rt()(ho,nr||Zr,ni),allowClear:Zs(Fr,hr,ce.createElement(bt.Z,null))})))})}var Vo=function(Ce,Oe){var _e={};for(var Dt in Ce)Object.prototype.hasOwnProperty.call(Ce,Dt)&&Oe.indexOf(Dt)<0&&(_e[Dt]=Ce[Dt]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,Dt=Object.getOwnPropertySymbols(Ce);Lt<Dt.length;Lt++)Oe.indexOf(Dt[Lt])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Dt[Lt])&&(_e[Dt[Lt]]=Ce[Dt[Lt]]);return _e};function rs(Ce){function Oe(_n,Mn){const kr=Mn==="TimePicker"?"timePicker":"datePicker",Zn=(0,ce.forwardRef)((nr,Zr)=>{const{prefixCls:Ur,getPopupContainer:hr,style:Fr,className:ni,rootClassName:li,size:xi,bordered:Fi=!0,placement:ta,placeholder:Hi,popupClassName:Ci,dropdownClassName:qa,disabled:Ha,status:so,clearIcon:Ro,allowClear:io}=nr,Ta=Vo(nr,["prefixCls","getPopupContainer","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","clearIcon","allowClear"]),{getPrefixCls:Eo,direction:ho,getPopupContainer:no,[kr]:go}=(0,ce.useContext)(ga.E_),Mo=Eo("picker",Ur),{compactSize:is,compactItemClassnames:ls}=(0,Ea.ri)(Mo,ho),Ms=ce.useRef(null),{format:al,showTime:Xs}=nr,[Qs,As]=Xo(Mo);(0,ce.useImperativeHandle)(Zr,()=>({focus:()=>{var zl;return(zl=Ms.current)===null||zl===void 0?void 0:zl.focus()},blur:()=>{var zl;return(zl=Ms.current)===null||zl===void 0?void 0:zl.blur()}}));const ml={showToday:!0};let Bs={};_n&&(Bs.picker=_n);const ao=_n||nr.picker;Bs=Object.assign(Object.assign(Object.assign({},Bs),Xs?es(Object.assign({format:al,picker:ao},Xs)):{}),ao==="time"?es(Object.assign(Object.assign({format:al},nr),{picker:ao})):{});const eo=Eo(),xs=(0,Ba.Z)(zl=>{var Ru;return(Ru=xi!=null?xi:is)!==null&&Ru!==void 0?Ru:zl}),ks=ce.useContext(Xi.Z),po=Ha!=null?Ha:ks,jo=(0,ce.useContext)(Qi.aM),{hasFeedback:Sa,status:Ko,feedbackIcon:as}=jo,Ks=ce.createElement(ce.Fragment,null,ao==="time"?ce.createElement($t,null):ce.createElement(Ge,null),Sa&&as),[Hs]=(0,Bi.Z)("DatePicker",Va.Z),Us=Object.assign(Object.assign({},Hs),nr.locale);return Qs(ce.createElement(za,Object.assign({ref:Ms,placeholder:ss(Us,ao,Hi),suffixIcon:Ks,dropdownAlign:Os(ho,ta),prevIcon:ce.createElement("span",{className:`${Mo}-prev-icon`}),nextIcon:ce.createElement("span",{className:`${Mo}-next-icon`}),superPrevIcon:ce.createElement("span",{className:`${Mo}-super-prev-icon`}),superNextIcon:ce.createElement("span",{className:`${Mo}-super-next-icon`}),transitionName:`${eo}-slide-up`},ml,Ta,Bs,{locale:Us.lang,className:Rt()({[`${Mo}-${xs}`]:xs,[`${Mo}-borderless`]:!Fi},(0,la.Z)(Mo,(0,la.F)(Ko,so),Sa),As,ls,go==null?void 0:go.className,ni,li),style:Object.assign(Object.assign({},go==null?void 0:go.style),Fr),prefixCls:Mo,getPopupContainer:hr||no,generateConfig:Ce,components:ns,direction:ho,disabled:po,dropdownClassName:Rt()(As,li,Ci||qa),allowClear:Zs(io,Ro,ce.createElement(bt.Z,null))})))});return Mn&&(Zn.displayName=Mn),Zn}const _e=Oe(),Dt=Oe("week","WeekPicker"),Lt=Oe("month","MonthPicker"),Ln=Oe("year","YearPicker"),yn=Oe("time","TimePicker"),vr=Oe("quarter","QuarterPicker");return{DatePicker:_e,WeekPicker:Dt,MonthPicker:Lt,YearPicker:Ln,TimePicker:yn,QuarterPicker:vr}}const Rs=null;function tl(Ce){const{DatePicker:Oe,WeekPicker:_e,MonthPicker:Dt,YearPicker:Lt,TimePicker:Ln,QuarterPicker:yn}=rs(Ce),vr=ro(Ce),_n=Oe;return _n.WeekPicker=_e,_n.MonthPicker=Dt,_n.YearPicker=Lt,_n.RangePicker=vr,_n.TimePicker=Ln,_n.QuarterPicker=yn,_n}var il=tl;const pl=il(ot);function Al(Ce){const Oe=Os(Ce.direction,Ce.placement);return Oe.overflow.adjustY=!1,Oe.overflow.adjustX=!1,Object.assign(Object.assign({},Ce),{dropdownAlign:Oe})}const nl=(0,ct.Z)(pl,"picker",null,Al);pl._InternalPanelDoNotUseOrYouWillBeFired=nl;const Fl=(0,ct.Z)(pl.RangePicker,"picker",null,Al);pl._InternalRangePanelDoNotUseOrYouWillBeFired=Fl,pl.generatePicker=il;var To=pl},96074:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return Re}});var le=te(94184),Me=te.n(le),Ne=te(67294),Ue=te(53124),be=te(14747),ke=te(67968),de=te(45503);const we=We=>{const{componentCls:qe,sizePaddingEdgeHorizontal:lt,colorSplit:Xe,lineWidth:ye,textPaddingInline:vt,orientationMargin:Pt,verticalMarginInline:ot}=We;return{[qe]:Object.assign(Object.assign({},(0,be.Wf)(We)),{borderBlockStart:`${ye}px solid ${Xe}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:ot,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${ye}px solid ${Xe}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${We.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${qe}-with-text`]:{display:"flex",alignItems:"center",margin:`${We.dividerHorizontalWithTextGutterMargin}px 0`,color:We.colorTextHeading,fontWeight:500,fontSize:We.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${Xe}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${ye}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${qe}-with-text-left`]:{"&::before":{width:`${Pt*100}%`},"&::after":{width:`${100-Pt*100}%`}},[`&-horizontal${qe}-with-text-right`]:{"&::before":{width:`${100-Pt*100}%`},"&::after":{width:`${Pt*100}%`}},[`${qe}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:vt},"&-dashed":{background:"none",borderColor:Xe,borderStyle:"dashed",borderWidth:`${ye}px 0 0`},[`&-horizontal${qe}-with-text${qe}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${qe}-dashed`]:{borderInlineStartWidth:ye,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${qe}-with-text`]:{color:We.colorText,fontWeight:"normal",fontSize:We.fontSize},[`&-horizontal${qe}-with-text-left${qe}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${qe}-inner-text`]:{paddingInlineStart:lt}},[`&-horizontal${qe}-with-text-right${qe}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${qe}-inner-text`]:{paddingInlineEnd:lt}}})}};var pe=(0,ke.Z)("Divider",We=>{const qe=(0,de.TS)(We,{dividerHorizontalWithTextGutterMargin:We.margin,dividerHorizontalGutterMargin:We.marginLG,sizePaddingEdgeHorizontal:0});return[we(qe)]},We=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:We.marginXS})),Le=function(We,qe){var lt={};for(var Xe in We)Object.prototype.hasOwnProperty.call(We,Xe)&&qe.indexOf(Xe)<0&&(lt[Xe]=We[Xe]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,Xe=Object.getOwnPropertySymbols(We);ye<Xe.length;ye++)qe.indexOf(Xe[ye])<0&&Object.prototype.propertyIsEnumerable.call(We,Xe[ye])&&(lt[Xe[ye]]=We[Xe[ye]]);return lt},Re=We=>{const{getPrefixCls:qe,direction:lt,divider:Xe}=Ne.useContext(Ue.E_),{prefixCls:ye,type:vt="horizontal",orientation:Pt="center",orientationMargin:ot,className:ct,rootClassName:Se,children:ce,dashed:He,plain:je,style:it}=We,at=Le(We,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Ge=qe("divider",ye),[Ae,wt]=pe(Ge),dt=Pt.length>0?`-${Pt}`:Pt,$t=!!ce,bt=Pt==="left"&&ot!=null,Ot=Pt==="right"&&ot!=null,Pn=Me()(Ge,Xe==null?void 0:Xe.className,wt,`${Ge}-${vt}`,{[`${Ge}-with-text`]:$t,[`${Ge}-with-text${dt}`]:$t,[`${Ge}-dashed`]:!!He,[`${Ge}-plain`]:!!je,[`${Ge}-rtl`]:lt==="rtl",[`${Ge}-no-default-orientation-margin-left`]:bt,[`${Ge}-no-default-orientation-margin-right`]:Ot},ct,Se),$n=Ne.useMemo(()=>typeof ot=="number"?ot:/^\d+$/.test(ot)?Number(ot):ot,[ot]),yt=Object.assign(Object.assign({},bt&&{marginLeft:$n}),Ot&&{marginRight:$n});return Ae(Ne.createElement("div",Object.assign({className:Pn,style:Object.assign(Object.assign({},Xe==null?void 0:Xe.style),it)},at,{role:"separator"}),ce&&vt!=="vertical"&&Ne.createElement("span",{className:`${Ge}-inner-text`,style:yt},ce)))}},72565:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return ia}});var le=te(94184),Me=te.n(le),Ne=te(1413),Ue=te(97685),be=te(67294),ke=te(73935);function de(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var we={};function pe(on,Gt){}function Le(on,Gt){}function nt(){we={}}function Re(on,Gt,Kn){!Gt&&!we[Kn]&&(on(!1,Kn),we[Kn]=!0)}function We(on,Gt){Re(pe,on,Gt)}function qe(on,Gt){Re(Le,on,Gt)}var lt=null,Xe=te(71002),ye=te(18459);function vt(on,Gt,Kn){var yr=be.useRef({});return(!("value"in yr.current)||Kn(yr.current.condition,Gt))&&(yr.current.value=on(),yr.current.condition=Gt),yr.current.value}function Pt(on,Gt){typeof on=="function"?on(Gt):(0,Xe.Z)(on)==="object"&&on&&"current"in on&&(on.current=Gt)}function ot(){for(var on=arguments.length,Gt=new Array(on),Kn=0;Kn<on;Kn++)Gt[Kn]=arguments[Kn];var yr=Gt.filter(function(Ir){return Ir});return yr.length<=1?yr[0]:function(Ir){Gt.forEach(function(si){Pt(si,Ir)})}}function ct(){for(var on=arguments.length,Gt=new Array(on),Kn=0;Kn<on;Kn++)Gt[Kn]=arguments[Kn];return vt(function(){return ot.apply(void 0,Gt)},Gt,function(yr,Ir){return yr.length===Ir.length&&yr.every(function(si,Mi){return si===Ir[Mi]})})}function Se(on){var Gt,Kn,yr=(0,ye.isMemo)(on)?on.type.type:on.type;return!(typeof yr=="function"&&!((Gt=yr.prototype)!==null&&Gt!==void 0&&Gt.render)||typeof on=="function"&&!((Kn=on.prototype)!==null&&Kn!==void 0&&Kn.render))}var ce=be.createContext(null),He=ce,je=te(74902),it=de()?be.useLayoutEffect:be.useEffect,at=it,Ge=function(Gt,Kn){var yr=React.useRef(!0);it(function(){if(!yr.current)return Gt()},Kn),it(function(){return yr.current=!1,function(){yr.current=!0}},[])},Ae=[];function wt(on,Gt){var Kn=be.useState(function(){if(!de())return null;var Rn=document.createElement("div");return Rn}),yr=(0,Ue.Z)(Kn,1),Ir=yr[0],si=be.useRef(!1),Mi=be.useContext(He),Ti=be.useState(Ae),ji=(0,Ue.Z)(Ti,2),Oi=ji[0],aa=ji[1],Da=Mi||(si.current?void 0:function(Rn){aa(function(rr){var me=[Rn].concat((0,je.Z)(rr));return me})});function wi(){Ir.parentElement||document.body.appendChild(Ir),si.current=!0}function fn(){var Rn;(Rn=Ir.parentElement)===null||Rn===void 0||Rn.removeChild(Ir),si.current=!1}return at(function(){return on?Mi?Mi(wi):wi():fn(),fn},[on]),at(function(){Oi.length&&(Oi.forEach(function(Rn){return Rn()}),aa(Ae))},[Oi]),[Ir,Da]}function dt(on,Gt){if(!on)return!1;if(on.contains)return on.contains(Gt);for(var Kn=Gt;Kn;){if(Kn===on)return!0;Kn=Kn.parentNode}return!1}var $t="data-rc-order",bt="rc-util-key",Ot=new Map;function Pn(){var on=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Gt=on.mark;return Gt?Gt.startsWith("data-")?Gt:"data-".concat(Gt):bt}function $n(on){if(on.attachTo)return on.attachTo;var Gt=document.querySelector("head");return Gt||document.body}function yt(on){return on==="queue"?"prependQueue":on?"prepend":"append"}function Be(on){return Array.from((Ot.get(on)||on).children).filter(function(Gt){return Gt.tagName==="STYLE"})}function Rt(on){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!de())return null;var Kn=Gt.csp,yr=Gt.prepend,Ir=document.createElement("style");Ir.setAttribute($t,yt(yr)),Kn!=null&&Kn.nonce&&(Ir.nonce=Kn==null?void 0:Kn.nonce),Ir.innerHTML=on;var si=$n(Gt),Mi=si.firstChild;if(yr){if(yr==="queue"){var Ti=Be(si).filter(function(ji){return["prepend","prependQueue"].includes(ji.getAttribute($t))});if(Ti.length)return si.insertBefore(Ir,Ti[Ti.length-1].nextSibling),Ir}si.insertBefore(Ir,Mi)}else si.appendChild(Ir);return Ir}function Vn(on){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Kn=$n(Gt);return Be(Kn).find(function(yr){return yr.getAttribute(Pn(Gt))===on})}function In(on){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Kn=Vn(on,Gt);if(Kn){var yr=$n(Gt);yr.removeChild(Kn)}}function xt(on,Gt){var Kn=Ot.get(on);if(!Kn||!dt(document,Kn)){var yr=Rt("",Gt),Ir=yr.parentNode;Ot.set(on,Ir),on.removeChild(yr)}}function Mt(){Ot.clear()}function qt(on,Gt){var Kn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},yr=$n(Kn);xt(yr,Kn);var Ir=Vn(Gt,Kn);if(Ir){var si,Mi;if((si=Kn.csp)!==null&&si!==void 0&&si.nonce&&Ir.nonce!==((Mi=Kn.csp)===null||Mi===void 0?void 0:Mi.nonce)){var Ti;Ir.nonce=(Ti=Kn.csp)===null||Ti===void 0?void 0:Ti.nonce}return Ir.innerHTML!==on&&(Ir.innerHTML=on),Ir}var ji=Rt(on,Kn);return ji.setAttribute(Pn(Kn),Gt),ji}var an;function ln(on){if(typeof document=="undefined")return 0;if(on||an===void 0){var Gt=document.createElement("div");Gt.style.width="100%",Gt.style.height="200px";var Kn=document.createElement("div"),yr=Kn.style;yr.position="absolute",yr.top="0",yr.left="0",yr.pointerEvents="none",yr.visibility="hidden",yr.width="200px",yr.height="150px",yr.overflow="hidden",Kn.appendChild(Gt),document.body.appendChild(Kn);var Ir=Gt.offsetWidth;Kn.style.overflow="scroll";var si=Gt.offsetWidth;Ir===si&&(si=Kn.clientWidth),document.body.removeChild(Kn),an=Ir-si}return an}function Yt(on){var Gt=on.match(/^(.*)px$/),Kn=Number(Gt==null?void 0:Gt[1]);return Number.isNaN(Kn)?ln():Kn}function Cn(on){if(typeof document=="undefined"||!on||!(on instanceof Element))return{width:0,height:0};var Gt=getComputedStyle(on,"::-webkit-scrollbar"),Kn=Gt.width,yr=Gt.height;return{width:Yt(Kn),height:Yt(yr)}}function pr(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Xn="rc-util-locker-".concat(Date.now()),ze=0;function fe(on){var Gt=!!on,Kn=be.useState(function(){return ze+=1,"".concat(Xn,"_").concat(ze)}),yr=(0,Ue.Z)(Kn,1),Ir=yr[0];at(function(){if(Gt){var si=Cn(document.body).width,Mi=pr();qt(`
html body {
overflow-y: hidden;
`.concat(Mi?"width: calc(100% - ".concat(si,"px);"):"",`
}`),Ir)}else In(Ir);return function(){In(Ir)}},[Gt,Ir])}var ue=!1;function xe(on){return typeof on=="boolean"&&(ue=on),ue}var ge=function(Gt){return Gt===!1?!1:!de()||!Gt?null:typeof Gt=="string"?document.querySelector(Gt):typeof Gt=="function"?Gt():Gt},se=be.forwardRef(function(on,Gt){var Kn=on.open,yr=on.autoLock,Ir=on.getContainer,si=on.debug,Mi=on.autoDestroy,Ti=Mi===void 0?!0:Mi,ji=on.children,Oi=be.useState(Kn),aa=(0,Ue.Z)(Oi,2),Da=aa[0],wi=aa[1],fn=Da||Kn;be.useEffect(function(){(Ti||Kn)&&wi(Kn)},[Kn,Ti]);var Rn=be.useState(function(){return ge(Ir)}),rr=(0,Ue.Z)(Rn,2),me=rr[0],$e=rr[1];be.useEffect(function(){var Tn=ge(Ir);$e(Tn!=null?Tn:null)});var Ve=wt(fn&&!me,si),et=(0,Ue.Z)(Ve,2),Je=et[0],ut=et[1],mt=me!=null?me:Je;fe(yr&&Kn&&de()&&(mt===Je||mt===document.body));var Wt=null;if(ji&&Se(ji)&&Gt){var sn=ji;Wt=sn.ref}var Wn=ct(Wt,Gt);if(!fn||!de()||me===void 0)return null;var lr=mt===!1||xe(),Qn=ji;return Gt&&(Qn=be.cloneElement(ji,{ref:Wn})),be.createElement(He.Provider,{value:ut},lr?Qn:(0,ke.createPortal)(Qn,mt))}),Fe=se,st=Fe;function en(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Sn=en()?be.useLayoutEffect:be.useEffect,dn=function(Gt,Kn){var yr=be.useRef(!0);Sn(function(){return Gt(yr.current)},Kn),Sn(function(){return yr.current=!1,function(){yr.current=!0}},[])},zn=function(Gt,Kn){dn(function(yr){if(!yr)return Gt()},Kn)},vn=dn,kt=be.createContext(null),Xt=be.createContext({}),Jt=kt,jt=te(4942),Bt=te(87462),ir=te(62874),Ct={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Gt){var Kn=Gt.keyCode;if(Gt.altKey&&!Gt.ctrlKey||Gt.metaKey||Kn>=Ct.F1&&Kn<=Ct.F12)return!1;switch(Kn){case Ct.ALT:case Ct.CAPS_LOCK:case Ct.CONTEXT_MENU:case Ct.CTRL:case Ct.DOWN:case Ct.END:case Ct.ESC:case Ct.HOME:case Ct.INSERT:case Ct.LEFT:case Ct.MAC_FF_META:case Ct.META:case Ct.NUMLOCK:case Ct.NUM_CENTER:case Ct.PAGE_DOWN:case Ct.PAGE_UP:case Ct.PAUSE:case Ct.PRINT_SCREEN:case Ct.RIGHT:case Ct.SHIFT:case Ct.UP:case Ct.WIN_KEY:case Ct.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Gt){if(Gt>=Ct.ZERO&&Gt<=Ct.NINE||Gt>=Ct.NUM_ZERO&&Gt<=Ct.NUM_MULTIPLY||Gt>=Ct.A&&Gt<=Ct.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Gt===0)return!0;switch(Gt){case Ct.SPACE:case Ct.QUESTION_MARK:case Ct.NUM_PLUS:case Ct.NUM_MINUS:case Ct.NUM_PERIOD:case Ct.NUM_DIVISION:case Ct.SEMICOLON:case Ct.DASH:case Ct.EQUALS:case Ct.COMMA:case Ct.PERIOD:case Ct.SLASH:case Ct.APOSTROPHE:case Ct.SINGLE_QUOTE:case Ct.OPEN_SQUARE_BRACKET:case Ct.BACKSLASH:case Ct.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},At=Ct,er=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,An=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,fr="".concat(er," ").concat(An).split(/[\s\n]+/),Rr="aria-",ii="data-";function Yr(on,Gt){return on.indexOf(Gt)===0}function Jr(on){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Kn;Gt===!1?Kn={aria:!0,data:!0,attr:!0}:Gt===!0?Kn={aria:!0}:Kn=(0,Ne.Z)({},Gt);var yr={};return Object.keys(on).forEach(function(Ir){(Kn.aria&&(Ir==="role"||Yr(Ir,Rr))||Kn.data&&Yr(Ir,ii)||Kn.attr&&fr.includes(Ir))&&(yr[Ir]=on[Ir])}),yr}function mi(on){var Gt=React.useRef();Gt.current=on;var Kn=React.useCallback(function(){for(var yr,Ir=arguments.length,si=new Array(Ir),Mi=0;Mi<Ir;Mi++)si[Mi]=arguments[Mi];return(yr=Gt.current)===null||yr===void 0?void 0:yr.call.apply(yr,[Gt].concat(si))},[]);return Kn}function Br(on){var Gt=React.useRef(!1),Kn=React.useState(on),yr=_slicedToArray(Kn,2),Ir=yr[0],si=yr[1];React.useEffect(function(){return Gt.current=!1,function(){Gt.current=!0}},[]);function Mi(Ti,ji){ji&&Gt.current||si(Ti)}return[Ir,Mi]}function ki(on){return on!==void 0}function Vi(on,Gt){var Kn=Gt||{},yr=Kn.defaultValue,Ir=Kn.value,si=Kn.onChange,Mi=Kn.postState,Ti=useState(function(){return ki(Ir)?Ir:ki(yr)?typeof yr=="function"?yr():yr:typeof on=="function"?on():on}),ji=_slicedToArray(Ti,2),Oi=ji[0],aa=ji[1],Da=Ir!==void 0?Ir:Oi,wi=Mi?Mi(Da):Da,fn=useEvent(si),Rn=useState([Da]),rr=_slicedToArray(Rn,2),me=rr[0],$e=rr[1];useLayoutUpdateEffect(function(){var et=me[0];Oi!==et&&fn(Oi,et)},[me]),useLayoutUpdateEffect(function(){ki(Ir)||aa(Ir)},[Ir]);var Ve=useEvent(function(et,Je){aa(et,Je),$e([Da],Je)});return[wi,Ve]}var ha=te(33993);function pa(on,Gt,Kn){var yr=be.useRef({});return(!("value"in yr.current)||Kn(yr.current.condition,Gt))&&(yr.current.value=on(),yr.current.condition=Gt),yr.current.value}function Ui(on,Gt){typeof on=="function"?on(Gt):(0,Xe.Z)(on)==="object"&&on&&"current"in on&&(on.current=Gt)}function Ut(){for(var on=arguments.length,Gt=new Array(on),Kn=0;Kn<on;Kn++)Gt[Kn]=arguments[Kn];var yr=Gt.filter(function(Ir){return Ir});return yr.length<=1?yr[0]:function(Ir){Gt.forEach(function(si){Ui(si,Ir)})}}function Qt(){for(var on=arguments.length,Gt=new Array(on),Kn=0;Kn<on;Kn++)Gt[Kn]=arguments[Kn];return pa(function(){return Ut.apply(void 0,Gt)},Gt,function(yr,Ir){return yr.length!==Ir.length||yr.every(function(si,Mi){return si!==Ir[Mi]})})}function un(on){var Gt,Kn,yr=isMemo(on)?on.type.type:on.type;return!(typeof yr=="function"&&!((Gt=yr.prototype)!==null&&Gt!==void 0&&Gt.render)||typeof on=="function"&&!((Kn=on.prototype)!==null&&Kn!==void 0&&Kn.render))}function Bn(on){return!isValidElement(on)||isFragment(on)?!1:un(on)}function Cr(on,Gt,Kn,yr){if(!Gt.length)return Kn;var Ir=_toArray(Gt),si=Ir[0],Mi=Ir.slice(1),Ti;return!on&&typeof si=="number"?Ti=[]:Array.isArray(on)?Ti=_toConsumableArray(on):Ti=_objectSpread({},on),yr&&Kn===void 0&&Mi.length===1?delete Ti[si][Mi[0]]:Ti[si]=Cr(Ti[si],Mi,Kn,yr),Ti}function qn(on,Gt,Kn){var yr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Gt.length&&yr&&Kn===void 0&&!get(on,Gt.slice(0,-1))?on:Cr(on,Gt,Kn,yr)}function Lr(on){return _typeof(on)==="object"&&on!==null&&Object.getPrototypeOf(on)===Object.prototype}function or(on){return Array.isArray(on)?[]:{}}var Et=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function _t(){for(var on=arguments.length,Gt=new Array(on),Kn=0;Kn<on;Kn++)Gt[Kn]=arguments[Kn];var yr=or(Gt[0]);return Gt.forEach(function(Ir){function si(Mi,Ti){var ji=new Set(Ti),Oi=get(Ir,Mi),aa=Array.isArray(Oi);if(aa||Lr(Oi)){if(!ji.has(Oi)){ji.add(Oi);var Da=get(yr,Mi);aa?yr=qn(yr,Mi,[]):(!Da||_typeof(Da)!=="object")&&(yr=qn(yr,Mi,or(Oi))),Et(Oi).forEach(function(wi){si([].concat(_toConsumableArray(Mi),[wi]),ji)})}}else yr=qn(yr,Mi,Oi)}si([])}),yr}var zt={},wn=[],ft=function(Gt){wn.push(Gt)};function Ht(on,Gt){if(0)var Kn}function xn(on,Gt){if(0)var Kn}function En(){zt={}}function Hn(on,Gt,Kn){!Gt&&!zt[Kn]&&(on(!1,Kn),zt[Kn]=!0)}function Gn(on,Gt){Hn(Ht,on,Gt)}function br(on,Gt){Hn(xn,on,Gt)}Gn.preMessage=ft,Gn.resetWarned=En,Gn.noteOnce=br;var fi=Gn,Gr=function(Gt){var Kn=Gt.prefixCls,yr=Gt.className,Ir=Gt.style,si=Gt.children,Mi=Gt.containerRef,Ti=Gt.id,ji=Gt.onMouseEnter,Oi=Gt.onMouseOver,aa=Gt.onMouseLeave,Da=Gt.onClick,wi=Gt.onKeyDown,fn=Gt.onKeyUp,Rn={onMouseEnter:ji,onMouseOver:Oi,onMouseLeave:aa,onClick:Da,onKeyDown:wi,onKeyUp:fn},rr=be.useContext(Xt),me=rr.panel,$e=Qt(me,Mi);return be.createElement(be.Fragment,null,be.createElement("div",(0,Bt.Z)({id:Ti,className:Me()("".concat(Kn,"-content"),yr),style:(0,Ne.Z)({},Ir),"aria-modal":"true",role:"dialog",ref:$e},Rn),si))},Vr=Gr;function ai(on){return typeof on=="string"&&String(Number(on))===on?(fi(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(on)):on}function ei(on){warning(!("wrapperClassName"in on),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!on.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Vt={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Kt(on,Gt){var Kn,yr,Ir,si,Mi=on.prefixCls,Ti=on.open,ji=on.placement,Oi=on.inline,aa=on.push,Da=on.forceRender,wi=on.autoFocus,fn=on.keyboard,Rn=on.rootClassName,rr=on.rootStyle,me=on.zIndex,$e=on.className,Ve=on.id,et=on.style,Je=on.motion,ut=on.width,mt=on.height,Wt=on.children,sn=on.contentWrapperStyle,Wn=on.mask,lr=on.maskClosable,Qn=on.maskMotion,Tn=on.maskClassName,kn=on.maskStyle,mn=on.afterOpenChange,Jn=on.onClose,Dr=on.onMouseEnter,cr=on.onMouseOver,xr=on.onMouseLeave,Er=on.onClick,Nr=on.onKeyDown,$r=on.onKeyUp,Qe=be.useRef(),rt=be.useRef(),Zt=be.useRef();be.useImperativeHandle(Gt,function(){return Qe.current});var It=function(Di){var Ri=Di.keyCode,sa=Di.shiftKey;switch(Ri){case At.TAB:{if(Ri===At.TAB){if(!sa&&document.activeElement===Zt.current){var bi;(bi=rt.current)===null||bi===void 0||bi.focus({preventScroll:!0})}else if(sa&&document.activeElement===rt.current){var ba;(ba=Zt.current)===null||ba===void 0||ba.focus({preventScroll:!0})}}break}case At.ESC:{Jn&&fn&&(Di.stopPropagation(),Jn(Di));break}}};be.useEffect(function(){if(Ti&&wi){var gi;(gi=Qe.current)===null||gi===void 0||gi.focus({preventScroll:!0})}},[Ti]);var gn=be.useState(!1),Un=(0,Ue.Z)(gn,2),Yn=Un[0],Ar=Un[1],gr=be.useContext(Jt),tr;aa===!1?tr={distance:0}:aa===!0?tr={}:tr=aa||{};var Or=(Kn=(yr=(Ir=tr)===null||Ir===void 0?void 0:Ir.distance)!==null&&yr!==void 0?yr:gr==null?void 0:gr.pushDistance)!==null&&Kn!==void 0?Kn:180,Kr=be.useMemo(function(){return{pushDistance:Or,push:function(){Ar(!0)},pull:function(){Ar(!1)}}},[Or]);be.useEffect(function(){if(Ti){var gi;gr==null||(gi=gr.push)===null||gi===void 0||gi.call(gr)}else{var Di;gr==null||(Di=gr.pull)===null||Di===void 0||Di.call(gr)}},[Ti]),be.useEffect(function(){return function(){var gi;gr==null||(gi=gr.pull)===null||gi===void 0||gi.call(gr)}},[]);var ci=Wn&&be.createElement(ir.Z,(0,Bt.Z)({key:"mask"},Qn,{visible:Ti}),function(gi,Di){var Ri=gi.className,sa=gi.style;return be.createElement("div",{className:Me()("".concat(Mi,"-mask"),Ri,Tn),style:(0,Ne.Z)((0,Ne.Z)({},sa),kn),onClick:lr&&Ti?Jn:void 0,ref:Di})}),Hr=typeof Je=="function"?Je(ji):Je,yi={};if(Yn&&Or)switch(ji){case"top":yi.transform="translateY(".concat(Or,"px)");break;case"bottom":yi.transform="translateY(".concat(-Or,"px)");break;case"left":yi.transform="translateX(".concat(Or,"px)");break;default:yi.transform="translateX(".concat(-Or,"px)");break}ji==="left"||ji==="right"?yi.width=ai(ut):yi.height=ai(mt);var Ii={onMouseEnter:Dr,onMouseOver:cr,onMouseLeave:xr,onClick:Er,onKeyDown:Nr,onKeyUp:$r},Si=be.createElement(ir.Z,(0,Bt.Z)({key:"panel"},Hr,{visible:Ti,forceRender:Da,onVisibleChanged:function(Di){mn==null||mn(Di)},removeOnLeave:!1,leavedClassName:"".concat(Mi,"-content-wrapper-hidden")}),function(gi,Di){var Ri=gi.className,sa=gi.style;return be.createElement("div",(0,Bt.Z)({className:Me()("".concat(Mi,"-content-wrapper"),Ri),style:(0,Ne.Z)((0,Ne.Z)((0,Ne.Z)({},yi),sa),sn)},Jr(on,{data:!0})),be.createElement(Vr,(0,Bt.Z)({id:Ve,containerRef:Di,prefixCls:Mi,className:$e,style:et},Ii),Wt))}),Ni=(0,Ne.Z)({},rr);return me&&(Ni.zIndex=me),be.createElement(Jt.Provider,{value:Kr},be.createElement("div",{className:Me()(Mi,"".concat(Mi,"-").concat(ji),Rn,(si={},(0,jt.Z)(si,"".concat(Mi,"-open"),Ti),(0,jt.Z)(si,"".concat(Mi,"-inline"),Oi),si)),style:Ni,tabIndex:-1,ref:Qe,onKeyDown:It},ci,be.createElement("div",{tabIndex:0,ref:rt,style:Vt,"aria-hidden":"true","data-sentinel":"start"}),Si,be.createElement("div",{tabIndex:0,ref:Zt,style:Vt,"aria-hidden":"true","data-sentinel":"end"})))}var nn=be.forwardRef(Kt),sr=nn,Tr=function(Gt){var Kn=Gt.open,yr=Kn===void 0?!1:Kn,Ir=Gt.prefixCls,si=Ir===void 0?"rc-drawer":Ir,Mi=Gt.placement,Ti=Mi===void 0?"right":Mi,ji=Gt.autoFocus,Oi=ji===void 0?!0:ji,aa=Gt.keyboard,Da=aa===void 0?!0:aa,wi=Gt.width,fn=wi===void 0?378:wi,Rn=Gt.mask,rr=Rn===void 0?!0:Rn,me=Gt.maskClosable,$e=me===void 0?!0:me,Ve=Gt.getContainer,et=Gt.forceRender,Je=Gt.afterOpenChange,ut=Gt.destroyOnClose,mt=Gt.onMouseEnter,Wt=Gt.onMouseOver,sn=Gt.onMouseLeave,Wn=Gt.onClick,lr=Gt.onKeyDown,Qn=Gt.onKeyUp,Tn=Gt.panelRef,kn=be.useState(!1),mn=(0,Ue.Z)(kn,2),Jn=mn[0],Dr=mn[1],cr=be.useState(!1),xr=(0,Ue.Z)(cr,2),Er=xr[0],Nr=xr[1];vn(function(){Nr(!0)},[]);var $r=Er?yr:!1,Qe=be.useRef(),rt=be.useRef();vn(function(){$r&&(rt.current=document.activeElement)},[$r]);var Zt=function(Ar){var gr;if(Dr(Ar),Je==null||Je(Ar),!Ar&&rt.current&&!((gr=Qe.current)!==null&&gr!==void 0&&gr.contains(rt.current))){var tr;(tr=rt.current)===null||tr===void 0||tr.focus({preventScroll:!0})}},It=be.useMemo(function(){return{panel:Tn}},[Tn]);if(!et&&!Jn&&!$r&&ut)return null;var gn={onMouseEnter:mt,onMouseOver:Wt,onMouseLeave:sn,onClick:Wn,onKeyDown:lr,onKeyUp:Qn},Un=(0,Ne.Z)((0,Ne.Z)({},Gt),{},{open:$r,prefixCls:si,placement:Ti,autoFocus:Oi,keyboard:Da,width:fn,mask:rr,maskClosable:$e,inline:Ve===!1,afterOpenChange:Zt,ref:Qe},gn);return be.createElement(Xt.Provider,{value:It},be.createElement(st,{open:$r||et||Jn,autoDestroy:!1,getContainer:Ve,autoLock:rr&&($r||Jn)},be.createElement(sr,Un)))},Fn=Tr,mr=Fn,ur=te(33603),zr=te(53124),ti=te(65223),jn=te(69760),_i=on=>{const{prefixCls:Gt,title:Kn,footer:yr,extra:Ir,closeIcon:si,closable:Mi,onClose:Ti,headerStyle:ji,drawerStyle:Oi,bodyStyle:aa,footerStyle:Da,children:wi}=on,fn=be.useCallback(Ve=>be.createElement("button",{type:"button",onClick:Ti,"aria-label":"Close",className:`${Gt}-close`},Ve),[Ti]),[Rn,rr]=(0,jn.Z)(Mi,si,fn,void 0,!0),me=be.useMemo(()=>!Kn&&!Rn?null:be.createElement("div",{style:ji,className:Me()(`${Gt}-header`,{[`${Gt}-header-close-only`]:Rn&&!Kn&&!Ir})},be.createElement("div",{className:`${Gt}-header-title`},rr,Kn&&be.createElement("div",{className:`${Gt}-title`},Kn)),Ir&&be.createElement("div",{className:`${Gt}-extra`},Ir)),[Rn,rr,Ir,ji,Gt,Kn]),$e=be.useMemo(()=>{if(!yr)return null;const Ve=`${Gt}-footer`;return be.createElement("div",{className:Ve,style:Da},yr)},[yr,Da,Gt]);return be.createElement("div",{className:`${Gt}-wrapper-body`,style:Oi},me,be.createElement("div",{className:`${Gt}-body`,style:aa},wi),$e)},Xa=te(4173),_a=te(67968),Aa=te(45503),Oa=on=>{const{componentCls:Gt,motionDurationSlow:Kn}=on,yr={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Kn}`}}};return{[Gt]:{[`${Gt}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${Kn}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${Gt}-panel-motion`]:{"&-left":[yr,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[yr,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[yr,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[yr,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const ya=on=>{const{componentCls:Gt,zIndexPopup:Kn,colorBgMask:yr,colorBgElevated:Ir,motionDurationSlow:si,motionDurationMid:Mi,padding:Ti,paddingLG:ji,fontSizeLG:Oi,lineHeightLG:aa,lineWidth:Da,lineType:wi,colorSplit:fn,marginSM:Rn,colorIcon:rr,colorIconHover:me,colorText:$e,fontWeightStrong:Ve,footerPaddingBlock:et,footerPaddingInline:Je}=on,ut=`${Gt}-content-wrapper`;return{[Gt]:{position:"fixed",inset:0,zIndex:Kn,pointerEvents:"none","&-pure":{position:"relative",background:Ir,[`&${Gt}-left`]:{boxShadow:on.boxShadowDrawerLeft},[`&${Gt}-right`]:{boxShadow:on.boxShadowDrawerRight},[`&${Gt}-top`]:{boxShadow:on.boxShadowDrawerUp},[`&${Gt}-bottom`]:{boxShadow:on.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${Gt}-mask`]:{position:"absolute",inset:0,zIndex:Kn,background:yr,pointerEvents:"auto"},[ut]:{position:"absolute",zIndex:Kn,maxWidth:"100vw",transition:`all ${si}`,"&-hidden":{display:"none"}},[`&-left > ${ut}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:on.boxShadowDrawerLeft},[`&-right > ${ut}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:on.boxShadowDrawerRight},[`&-top > ${ut}`]:{top:0,insetInline:0,boxShadow:on.boxShadowDrawerUp},[`&-bottom > ${ut}`]:{bottom:0,insetInline:0,boxShadow:on.boxShadowDrawerDown},[`${Gt}-content`]:{width:"100%",height:"100%",overflow:"auto",background:Ir,pointerEvents:"auto"},[`${Gt}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${Gt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Ti}px ${ji}px`,fontSize:Oi,lineHeight:aa,borderBottom:`${Da}px ${wi} ${fn}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${Gt}-extra`]:{flex:"none"},[`${Gt}-close`]:{display:"inline-block",marginInlineEnd:Rn,color:rr,fontWeight:Ve,fontSize:Oi,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${Mi}`,textRendering:"auto","&:focus, &:hover":{color:me,textDecoration:"none"}},[`${Gt}-title`]:{flex:1,margin:0,color:$e,fontWeight:on.fontWeightStrong,fontSize:Oi,lineHeight:aa},[`${Gt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:ji,overflow:"auto"},[`${Gt}-footer`]:{flexShrink:0,padding:`${et}px ${Je}px`,borderTop:`${Da}px ${wi} ${fn}`},"&-rtl":{direction:"rtl"}}}};var Ra=(0,_a.Z)("Drawer",on=>{const Gt=(0,Aa.TS)(on,{});return[ya(Gt),Oa(Gt)]},on=>({zIndexPopup:on.zIndexPopupBase,footerPaddingBlock:on.paddingXS,footerPaddingInline:on.padding})),oo=te(16569),Yi=function(on,Gt){var Kn={};for(var yr in on)Object.prototype.hasOwnProperty.call(on,yr)&&Gt.indexOf(yr)<0&&(Kn[yr]=on[yr]);if(on!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ir=0,yr=Object.getOwnPropertySymbols(on);Ir<yr.length;Ir++)Gt.indexOf(yr[Ir])<0&&Object.prototype.propertyIsEnumerable.call(on,yr[Ir])&&(Kn[yr[Ir]]=on[yr[Ir]]);return Kn};const Pa=null,to={distance:180},_o=on=>{var Gt;const{rootClassName:Kn,width:yr,height:Ir,size:si="default",mask:Mi=!0,push:Ti=to,open:ji,afterOpenChange:Oi,onClose:aa,prefixCls:Da,getContainer:wi,style:fn,className:Rn,visible:rr,afterVisibleChange:me}=on,$e=Yi(on,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:Ve,getPrefixCls:et,direction:Je,drawer:ut}=be.useContext(zr.E_),mt=et("drawer",Da),[Wt,sn]=Ra(mt),Wn=wi===void 0&&Ve?()=>Ve(document.body):wi,lr=Me()({"no-mask":!Mi,[`${mt}-rtl`]:Je==="rtl"},Kn,sn),Qn=be.useMemo(()=>yr!=null?yr:si==="large"?736:378,[yr,si]),Tn=be.useMemo(()=>Ir!=null?Ir:si==="large"?736:378,[Ir,si]),kn={motionName:(0,ur.m)(mt,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},mn=Dr=>({motionName:(0,ur.m)(mt,`panel-motion-${Dr}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Jn=(0,oo.H)();return Wt(be.createElement(Xa.BR,null,be.createElement(ti.Ux,{status:!0,override:!0},be.createElement(mr,Object.assign({prefixCls:mt,onClose:aa,maskMotion:kn,motion:mn},$e,{open:ji!=null?ji:rr,mask:Mi,push:Ti,width:Qn,height:Tn,style:Object.assign(Object.assign({},ut==null?void 0:ut.style),fn),className:Me()(ut==null?void 0:ut.className,Rn),rootClassName:lr,getContainer:Wn,afterOpenChange:Oi!=null?Oi:me,panelRef:Jn}),be.createElement(_i,Object.assign({prefixCls:mt},$e,{onClose:aa}))))))},wo=on=>{const{prefixCls:Gt,style:Kn,className:yr,placement:Ir="right"}=on,si=Yi(on,["prefixCls","style","className","placement"]),{getPrefixCls:Mi}=be.useContext(zr.E_),Ti=Mi("drawer",Gt),[ji,Oi]=Ra(Ti),aa=Me()(Ti,`${Ti}-pure`,`${Ti}-${Ir}`,Oi,yr);return ji(be.createElement("div",{className:aa,style:Kn},be.createElement(_i,Object.assign({prefixCls:Ti},si))))};_o._InternalPanelDoNotUseOrYouWillBeFired=wo;var ia=_o},35874:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return ge}});var le=te(67294),Me=te(91034),Ne=te(94184),Ue=te.n(Ne),be=te(87462),ke=te(4942),de=te(97685),we=te(45987),pe=te(62709),Le=te(71002),nt=te(12060);function Re(se,Fe,st){var en=React.useRef({});return(!("value"in en.current)||st(en.current.condition,Fe))&&(en.current.value=se(),en.current.condition=Fe),en.current.value}function We(se,Fe){typeof se=="function"?se(Fe):(0,Le.Z)(se)==="object"&&se&&"current"in se&&(se.current=Fe)}function qe(){for(var se=arguments.length,Fe=new Array(se),st=0;st<se;st++)Fe[st]=arguments[st];var en=Fe.filter(function(Sn){return Sn});return en.length<=1?en[0]:function(Sn){Fe.forEach(function(dn){We(dn,Sn)})}}function lt(){for(var se=arguments.length,Fe=new Array(se),st=0;st<se;st++)Fe[st]=arguments[st];return useMemo(function(){return qe.apply(void 0,Fe)},Fe,function(en,Sn){return en.length===Sn.length&&en.every(function(dn,zn){return dn===Sn[zn]})})}function Xe(se){var Fe,st,en=(0,nt.isMemo)(se)?se.type.type:se.type;return!(typeof en=="function"&&!((Fe=en.prototype)!==null&&Fe!==void 0&&Fe.render)||typeof se=="function"&&!((st=se.prototype)!==null&&st!==void 0&&st.render))}var ye={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Fe){var st=Fe.keyCode;if(Fe.altKey&&!Fe.ctrlKey||Fe.metaKey||st>=ye.F1&&st<=ye.F12)return!1;switch(st){case ye.ALT:case ye.CAPS_LOCK:case ye.CONTEXT_MENU:case ye.CTRL:case ye.DOWN:case ye.END:case ye.ESC:case ye.HOME:case ye.INSERT:case ye.LEFT:case ye.MAC_FF_META:case ye.META:case ye.NUMLOCK:case ye.NUM_CENTER:case ye.PAGE_DOWN:case ye.PAGE_UP:case ye.PAUSE:case ye.PRINT_SCREEN:case ye.RIGHT:case ye.SHIFT:case ye.UP:case ye.WIN_KEY:case ye.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Fe){if(Fe>=ye.ZERO&&Fe<=ye.NINE||Fe>=ye.NUM_ZERO&&Fe<=ye.NUM_MULTIPLY||Fe>=ye.A&&Fe<=ye.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Fe===0)return!0;switch(Fe){case ye.SPACE:case ye.QUESTION_MARK:case ye.NUM_PLUS:case ye.NUM_MINUS:case ye.NUM_PERIOD:case ye.NUM_DIVISION:case ye.SEMICOLON:case ye.DASH:case ye.EQUALS:case ye.COMMA:case ye.PERIOD:case ye.SLASH:case ye.APOSTROPHE:case ye.SINGLE_QUOTE:case ye.OPEN_SQUARE_BRACKET:case ye.BACKSLASH:case ye.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},vt=ye,Pt=function(Fe){return+setTimeout(Fe,16)},ot=function(Fe){return clearTimeout(Fe)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Pt=function(Fe){return window.requestAnimationFrame(Fe)},ot=function(Fe){return window.cancelAnimationFrame(Fe)});var ct=0,Se=new Map;function ce(se){Se.delete(se)}var He=function(Fe){var st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ct+=1;var en=ct;function Sn(dn){if(dn===0)ce(en),Fe();else{var zn=Pt(function(){Sn(dn-1)});Se.set(en,zn)}}return Sn(st),en};He.cancel=function(se){var Fe=Se.get(se);return ce(Fe),ot(Fe)};var je=He,it=vt.ESC,at=vt.TAB;function Ge(se){var Fe=se.visible,st=se.triggerRef,en=se.onVisibleChange,Sn=se.autoFocus,dn=se.overlayRef,zn=le.useRef(!1),vn=function(){if(Fe){var jt,Bt;(jt=st.current)===null||jt===void 0||(Bt=jt.focus)===null||Bt===void 0||Bt.call(jt),en==null||en(!1)}},kt=function(){var jt;return(jt=dn.current)!==null&&jt!==void 0&&jt.focus?(dn.current.focus(),zn.current=!0,!0):!1},Xt=function(jt){switch(jt.keyCode){case it:vn();break;case at:{var Bt=!1;zn.current||(Bt=kt()),Bt?jt.preventDefault():vn();break}}};le.useEffect(function(){return Fe?(window.addEventListener("keydown",Xt),Sn&&je(kt,3),function(){window.removeEventListener("keydown",Xt),zn.current=!1}):function(){zn.current=!1}},[Fe])}var Ae=(0,le.forwardRef)(function(se,Fe){var st=se.overlay,en=se.arrow,Sn=se.prefixCls,dn=(0,le.useMemo)(function(){var vn;return typeof st=="function"?vn=st():vn=st,vn},[st]),zn=qe(Fe,dn==null?void 0:dn.ref);return le.createElement(le.Fragment,null,en&&le.createElement("div",{className:"".concat(Sn,"-arrow")}),le.cloneElement(dn,{ref:Xe(dn)?zn:void 0}))}),wt=Ae,dt={adjustX:1,adjustY:1},$t=[0,0],bt={topLeft:{points:["bl","tl"],overflow:dt,offset:[0,-4],targetOffset:$t},top:{points:["bc","tc"],overflow:dt,offset:[0,-4],targetOffset:$t},topRight:{points:["br","tr"],overflow:dt,offset:[0,-4],targetOffset:$t},bottomLeft:{points:["tl","bl"],overflow:dt,offset:[0,4],targetOffset:$t},bottom:{points:["tc","bc"],overflow:dt,offset:[0,4],targetOffset:$t},bottomRight:{points:["tr","br"],overflow:dt,offset:[0,4],targetOffset:$t}},Ot=bt,Pn=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function $n(se,Fe){var st,en=se.arrow,Sn=en===void 0?!1:en,dn=se.prefixCls,zn=dn===void 0?"rc-dropdown":dn,vn=se.transitionName,kt=se.animation,Xt=se.align,Jt=se.placement,jt=Jt===void 0?"bottomLeft":Jt,Bt=se.placements,ir=Bt===void 0?Ot:Bt,Ct=se.getPopupContainer,At=se.showAction,er=se.hideAction,An=se.overlayClassName,fr=se.overlayStyle,Rr=se.visible,ii=se.trigger,Yr=ii===void 0?["hover"]:ii,Jr=se.autoFocus,mi=se.overlay,Br=se.children,ki=se.onVisibleChange,Vi=(0,we.Z)(se,Pn),ha=le.useState(),pa=(0,de.Z)(ha,2),Ui=pa[0],Ut=pa[1],Qt="visible"in se?Rr:Ui,un=le.useRef(null),Bn=le.useRef(null),Cr=le.useRef(null);le.useImperativeHandle(Fe,function(){return un.current});var qn=function(xn){Ut(xn),ki==null||ki(xn)};Ge({visible:Qt,triggerRef:Cr,onVisibleChange:qn,autoFocus:Jr,overlayRef:Bn});var Lr=function(xn){var En=se.onOverlayClick;Ut(!1),En&&En(xn)},or=function(){return le.createElement(wt,{ref:Bn,overlay:mi,prefixCls:zn,arrow:Sn})},Et=function(){return typeof mi=="function"?or:or()},_t=function(){var xn=se.minOverlayWidthMatchTrigger,En=se.alignPoint;return"minOverlayWidthMatchTrigger"in se?xn:!En},zt=function(){var xn=se.openClassName;return xn!==void 0?xn:"".concat(zn,"-open")},wn=le.cloneElement(Br,{className:Ue()((st=Br.props)===null||st===void 0?void 0:st.className,Qt&&zt()),ref:Xe(Br)?qe(Cr,Br.ref):void 0}),ft=er;return!ft&&Yr.indexOf("contextMenu")!==-1&&(ft=["click"]),le.createElement(pe.Z,(0,be.Z)({builtinPlacements:ir},Vi,{prefixCls:zn,ref:un,popupClassName:Ue()(An,(0,ke.Z)({},"".concat(zn,"-show-arrow"),Sn)),popupStyle:fr,action:Yr,showAction:At,hideAction:ft,popupPlacement:jt,popupAlign:Xt,popupTransitionName:vn,popupAnimation:kt,popupVisible:Qt,stretch:_t()?"minWidth":"",popup:Et(),onPopupVisibleChange:qn,onPopupClick:Lr,getPopupContainer:Ct}),wn)}var yt=le.forwardRef($n),Be=yt,Rt=te(60276),Vn=te(5663),In=te(10366),xt=te(80636),Mt=te(8745),qt=te(96159),an=te(53124),ln=te(68508),Yt=te(76529),Cn=te(29691),pr=te(66748);const Xn=null,ze=se=>{const{menu:Fe,arrow:st,prefixCls:en,children:Sn,trigger:dn,disabled:zn,dropdownRender:vn,getPopupContainer:kt,overlayClassName:Xt,rootClassName:Jt,open:jt,onOpenChange:Bt,visible:ir,onVisibleChange:Ct,mouseEnterDelay:At=.15,mouseLeaveDelay:er=.1,autoAdjustOverflow:An=!0,placement:fr="",overlay:Rr,transitionName:ii}=se,{getPopupContainer:Yr,getPrefixCls:Jr,direction:mi}=le.useContext(an.E_),Br=le.useMemo(()=>{const wn=Jr();return ii!==void 0?ii:fr.includes("top")?`${wn}-slide-down`:`${wn}-slide-up`},[Jr,fr,ii]),ki=le.useMemo(()=>fr?fr.includes("Center")?fr.slice(0,fr.indexOf("Center")):fr:mi==="rtl"?"bottomRight":"bottomLeft",[fr,mi]),Vi=Jr("dropdown",en),[ha,pa]=(0,pr.Z)(Vi),[,Ui]=(0,Cn.Z)(),Ut=le.Children.only(Sn),Qt=(0,qt.Tm)(Ut,{className:Ue()(`${Vi}-trigger`,{[`${Vi}-rtl`]:mi==="rtl"},Ut.props.className),disabled:zn}),un=zn?[]:dn;let Bn;un&&un.includes("contextMenu")&&(Bn=!0);const[Cr,qn]=(0,Vn.Z)(!1,{value:jt!=null?jt:ir}),Lr=(0,Rt.useEvent)(wn=>{Bt==null||Bt(wn),Ct==null||Ct(wn),qn(wn)}),or=Ue()(Xt,Jt,pa,{[`${Vi}-rtl`]:mi==="rtl"}),Et=(0,xt.Z)({arrowPointAtCenter:typeof st=="object"&&st.pointAtCenter,autoAdjustOverflow:An,offset:Ui.marginXXS,arrowWidth:st?Ui.sizePopupArrow:0,borderRadius:Ui.borderRadius}),_t=le.useCallback(()=>{qn(!1)},[]),zt=()=>{let wn;return Fe!=null&&Fe.items?wn=le.createElement(ln.default,Object.assign({},Fe)):typeof Rr=="function"?wn=Rr():wn=Rr,vn&&(wn=vn(wn)),wn=le.Children.only(typeof wn=="string"?le.createElement("span",null,wn):wn),le.createElement(Yt.J,{prefixCls:`${Vi}-menu`,expandIcon:le.createElement("span",{className:`${Vi}-menu-submenu-arrow`},le.createElement(Me.Z,{className:`${Vi}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:_t,validator:ft=>{let{mode:Ht}=ft}},wn)};return ha(le.createElement(Be,Object.assign({alignPoint:Bn},(0,In.Z)(se,["rootClassName"]),{mouseEnterDelay:At,mouseLeaveDelay:er,visible:Cr,builtinPlacements:Et,arrow:!!st,overlayClassName:or,prefixCls:Vi,getPopupContainer:kt||Yr,transitionName:Br,trigger:un,overlay:zt,placement:ki,onVisibleChange:Lr}),Qt))};function fe(se){return Object.assign(Object.assign({},se),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ue=(0,Mt.Z)(ze,"dropdown",se=>se,fe),xe=se=>le.createElement(ue,Object.assign({},se),le.createElement("span",null));ze._InternalPanelDoNotUseOrYouWillBeFired=xe;var ge=ze},85418:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return lt}});var le=te(35874),Me=te(94184),Ne=te.n(Me),Ue=te(67294),be=te(25877),ke=te(71577),de=te(53124),we=te(93421),pe=te(4173),Le=te(66748),nt=function(Xe,ye){var vt={};for(var Pt in Xe)Object.prototype.hasOwnProperty.call(Xe,Pt)&&ye.indexOf(Pt)<0&&(vt[Pt]=Xe[Pt]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,Pt=Object.getOwnPropertySymbols(Xe);ot<Pt.length;ot++)ye.indexOf(Pt[ot])<0&&Object.prototype.propertyIsEnumerable.call(Xe,Pt[ot])&&(vt[Pt[ot]]=Xe[Pt[ot]]);return vt};const Re=Xe=>{const{getPopupContainer:ye,getPrefixCls:vt,direction:Pt}=Ue.useContext(de.E_),{prefixCls:ot,type:ct="default",danger:Se,disabled:ce,loading:He,onClick:je,htmlType:it,children:at,className:Ge,menu:Ae,arrow:wt,autoFocus:dt,overlay:$t,trigger:bt,align:Ot,open:Pn,onOpenChange:$n,placement:yt,getPopupContainer:Be,href:Rt,icon:Vn=Ue.createElement(be.Z,null),title:In,buttonsRender:xt=zn=>zn,mouseEnterDelay:Mt,mouseLeaveDelay:qt,overlayClassName:an,overlayStyle:ln,destroyPopupOnHide:Yt,dropdownRender:Cn}=Xe,pr=nt(Xe,["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"]),Xn=vt("dropdown",ot),ze=`${Xn}-button`,[fe,ue]=(0,Le.Z)(Xn),xe={menu:Ae,arrow:wt,autoFocus:dt,align:Ot,disabled:ce,trigger:ce?[]:bt,onOpenChange:$n,getPopupContainer:Be||ye,mouseEnterDelay:Mt,mouseLeaveDelay:qt,overlayClassName:an,overlayStyle:ln,destroyPopupOnHide:Yt,dropdownRender:Cn},{compactSize:ge,compactItemClassnames:se}=(0,pe.ri)(Xn,Pt),Fe=Ne()(ze,se,Ge,ue);"overlay"in Xe&&(xe.overlay=$t),"open"in Xe&&(xe.open=Pn),"placement"in Xe?xe.placement=yt:xe.placement=Pt==="rtl"?"bottomLeft":"bottomRight";const st=Ue.createElement(ke.ZP,{type:ct,danger:Se,disabled:ce,loading:He,onClick:je,htmlType:it,href:Rt,title:In},at),en=Ue.createElement(ke.ZP,{type:ct,danger:Se,icon:Vn}),[Sn,dn]=xt([st,en]);return fe(Ue.createElement(we.Z.Compact,Object.assign({className:Fe,size:ge,block:!0},pr),Sn,Ue.createElement(le.Z,Object.assign({},xe),dn)))};Re.__ANT_BUTTON=!0;var We=Re;const qe=le.Z;qe.Button=We;var lt=qe},66748:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return nt}});var le=te(14747),Me=te(67771),Ne=te(33297),Ue=te(50438),be=te(97414),ke=te(67968),de=te(45503),pe=Re=>{const{componentCls:We,menuCls:qe,colorError:lt,colorTextLightSolid:Xe}=Re,ye=`${qe}-item`;return{[`${We}, ${We}-menu-submenu`]:{[`${qe} ${ye}`]:{[`&${ye}-danger:not(${ye}-disabled)`]:{color:lt,"&:hover":{color:Xe,backgroundColor:lt}}}}}};const Le=Re=>{const{componentCls:We,menuCls:qe,zIndexPopup:lt,dropdownArrowDistance:Xe,sizePopupArrow:ye,antCls:vt,iconCls:Pt,motionDurationMid:ot,dropdownPaddingVertical:ct,fontSize:Se,dropdownEdgeChildPadding:ce,colorTextDisabled:He,fontSizeIcon:je,controlPaddingHorizontal:it,colorBgElevated:at}=Re;return[{[We]:Object.assign(Object.assign({},(0,le.Wf)(Re)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:lt,display:"block","&::before":{position:"absolute",insetBlock:-Xe+ye/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${vt}-btn`]:{[`& > ${Pt}-down, & > ${vt}-btn-icon > ${Pt}-down`]:{fontSize:je}},[`${We}-wrap`]:{position:"relative",[`${vt}-btn > ${Pt}-down`]:{fontSize:je},[`${Pt}-down::before`]:{transition:`transform ${ot}`}},[`${We}-wrap-open`]:{[`${Pt}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${vt}-slide-down-enter${vt}-slide-down-enter-active${We}-placement-bottomLeft,
&${vt}-slide-down-appear${vt}-slide-down-appear-active${We}-placement-bottomLeft,
&${vt}-slide-down-enter${vt}-slide-down-enter-active${We}-placement-bottom,
&${vt}-slide-down-appear${vt}-slide-down-appear-active${We}-placement-bottom,
&${vt}-slide-down-enter${vt}-slide-down-enter-active${We}-placement-bottomRight,
&${vt}-slide-down-appear${vt}-slide-down-appear-active${We}-placement-bottomRight`]:{animationName:Me.fJ},[`&${vt}-slide-up-enter${vt}-slide-up-enter-active${We}-placement-topLeft,
&${vt}-slide-up-appear${vt}-slide-up-appear-active${We}-placement-topLeft,
&${vt}-slide-up-enter${vt}-slide-up-enter-active${We}-placement-top,
&${vt}-slide-up-appear${vt}-slide-up-appear-active${We}-placement-top,
&${vt}-slide-up-enter${vt}-slide-up-enter-active${We}-placement-topRight,
&${vt}-slide-up-appear${vt}-slide-up-appear-active${We}-placement-topRight`]:{animationName:Me.Qt},[`&${vt}-slide-down-leave${vt}-slide-down-leave-active${We}-placement-bottomLeft,
&${vt}-slide-down-leave${vt}-slide-down-leave-active${We}-placement-bottom,
&${vt}-slide-down-leave${vt}-slide-down-leave-active${We}-placement-bottomRight`]:{animationName:Me.Uw},[`&${vt}-slide-up-leave${vt}-slide-up-leave-active${We}-placement-topLeft,
&${vt}-slide-up-leave${vt}-slide-up-leave-active${We}-placement-top,
&${vt}-slide-up-leave${vt}-slide-up-leave-active${We}-placement-topRight`]:{animationName:Me.ly}})},(0,be.ZP)(Re,{colorBg:at,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${We} ${qe}`]:{position:"relative",margin:0},[`${qe}-submenu-popup`]:{position:"absolute",zIndex:lt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${We}, ${We}-menu-submenu`]:{[qe]:Object.assign(Object.assign({padding:ce,listStyleType:"none",backgroundColor:at,backgroundClip:"padding-box",borderRadius:Re.borderRadiusLG,outline:"none",boxShadow:Re.boxShadowSecondary},(0,le.Qy)(Re)),{[`${qe}-item-group-title`]:{padding:`${ct}px ${it}px`,color:Re.colorTextDescription,transition:`all ${ot}`},[`${qe}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${qe}-item-icon`]:{minWidth:Se,marginInlineEnd:Re.marginXS,fontSize:Re.fontSizeSM},[`${qe}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${ot}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${qe}-item, ${qe}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ct}px ${it}px`,color:Re.colorText,fontWeight:"normal",fontSize:Se,lineHeight:Re.lineHeight,cursor:"pointer",transition:`all ${ot}`,borderRadius:Re.borderRadiusSM,"&:hover, &-active":{backgroundColor:Re.controlItemBgHover}},(0,le.Qy)(Re)),{"&-selected":{color:Re.colorPrimary,backgroundColor:Re.controlItemBgActive,"&:hover, &-active":{backgroundColor:Re.controlItemBgActiveHover}},"&-disabled":{color:He,cursor:"not-allowed","&:hover":{color:He,backgroundColor:at,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Re.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Re.colorSplit},[`${We}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Re.paddingXS,[`${We}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Re.colorTextDescription,fontSize:je,fontStyle:"normal"}}}),[`${qe}-item-group-list`]:{margin:`0 ${Re.marginXS}px`,padding:0,listStyle:"none"},[`${qe}-submenu-title`]:{paddingInlineEnd:it+Re.fontSizeSM},[`${qe}-submenu-vertical`]:{position:"relative"},[`${qe}-submenu${qe}-submenu-disabled ${We}-menu-submenu-title`]:{[`&, ${We}-menu-submenu-arrow-icon`]:{color:He,backgroundColor:at,cursor:"not-allowed"}},[`${qe}-submenu-selected ${We}-menu-submenu-title`]:{color:Re.colorPrimary}})}},[(0,Me.oN)(Re,"slide-up"),(0,Me.oN)(Re,"slide-down"),(0,Ne.Fm)(Re,"move-up"),(0,Ne.Fm)(Re,"move-down"),(0,Ue._y)(Re,"zoom-big")]]};var nt=(0,ke.Z)("Dropdown",(Re,We)=>{let{rootPrefixCls:qe}=We;const{marginXXS:lt,sizePopupArrow:Xe,controlHeight:ye,fontSize:vt,lineHeight:Pt,paddingXXS:ot,componentCls:ct,borderRadiusLG:Se}=Re,ce=(ye-vt*Pt)/2,{dropdownArrowOffset:He}=(0,be.fS)({contentRadius:Se}),je=(0,de.TS)(Re,{menuCls:`${ct}-menu`,rootPrefixCls:qe,dropdownArrowDistance:Xe/2+lt,dropdownArrowOffset:He,dropdownPaddingVertical:ce,dropdownEdgeChildPadding:ot});return[Le(je),pe(je)]},Re=>({zIndexPopup:Re.zIndexPopupBase+50}))},32983:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return ot}});var le=te(94184),Me=te.n(le),Ne=te(67294),Ue=te(53124),be=te(10110),ke=te(84780),de=te(29691),pe=()=>{const[,ct]=(0,de.Z)(),ce=new ke.C(ct.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return Ne.createElement("svg",{style:ce,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},Ne.createElement("g",{fill:"none",fillRule:"evenodd"},Ne.createElement("g",{transform:"translate(24 31.67)"},Ne.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),Ne.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"}),Ne.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)"}),Ne.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"}),Ne.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"})),Ne.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"}),Ne.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},Ne.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),Ne.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},nt=()=>{const[,ct]=(0,de.Z)(),{colorFill:Se,colorFillTertiary:ce,colorFillQuaternary:He,colorBgContainer:je}=ct,{borderColor:it,shadowColor:at,contentColor:Ge}=(0,Ne.useMemo)(()=>({borderColor:new ke.C(Se).onBackground(je).toHexShortString(),shadowColor:new ke.C(ce).onBackground(je).toHexShortString(),contentColor:new ke.C(He).onBackground(je).toHexShortString()}),[Se,ce,He,je]);return Ne.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Ne.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Ne.createElement("ellipse",{fill:at,cx:"32",cy:"33",rx:"32",ry:"7"}),Ne.createElement("g",{fillRule:"nonzero",stroke:it},Ne.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"}),Ne.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:Ge}))))},Re=te(67968),We=te(45503);const qe=ct=>{const{componentCls:Se,margin:ce,marginXS:He,marginXL:je,fontSize:it,lineHeight:at}=ct;return{[Se]:{marginInline:He,fontSize:it,lineHeight:at,textAlign:"center",[`${Se}-image`]:{height:ct.emptyImgHeight,marginBottom:He,opacity:ct.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Se}-description`]:{color:ct.colorText},[`${Se}-footer`]:{marginTop:ce},"&-normal":{marginBlock:je,color:ct.colorTextDisabled,[`${Se}-description`]:{color:ct.colorTextDisabled},[`${Se}-image`]:{height:ct.emptyImgHeightMD}},"&-small":{marginBlock:He,color:ct.colorTextDisabled,[`${Se}-image`]:{height:ct.emptyImgHeightSM}}}}};var lt=(0,Re.Z)("Empty",ct=>{const{componentCls:Se,controlHeightLG:ce}=ct,He=(0,We.TS)(ct,{emptyImgCls:`${Se}-img`,emptyImgHeight:ce*2.5,emptyImgHeightMD:ce,emptyImgHeightSM:ce*.875});return[qe(He)]}),Xe=function(ct,Se){var ce={};for(var He in ct)Object.prototype.hasOwnProperty.call(ct,He)&&Se.indexOf(He)<0&&(ce[He]=ct[He]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,He=Object.getOwnPropertySymbols(ct);je<He.length;je++)Se.indexOf(He[je])<0&&Object.prototype.propertyIsEnumerable.call(ct,He[je])&&(ce[He[je]]=ct[He[je]]);return ce};const ye=Ne.createElement(pe,null),vt=Ne.createElement(nt,null),Pt=ct=>{var{className:Se,rootClassName:ce,prefixCls:He,image:je=ye,description:it,children:at,imageStyle:Ge,style:Ae}=ct,wt=Xe(ct,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:dt,direction:$t,empty:bt}=Ne.useContext(Ue.E_),Ot=dt("empty",He),[Pn,$n]=lt(Ot),[yt]=(0,be.Z)("Empty"),Be=typeof it!="undefined"?it:yt==null?void 0:yt.description,Rt=typeof Be=="string"?Be:"empty";let Vn=null;return typeof je=="string"?Vn=Ne.createElement("img",{alt:Rt,src:je}):Vn=je,Pn(Ne.createElement("div",Object.assign({className:Me()($n,Ot,bt==null?void 0:bt.className,{[`${Ot}-normal`]:je===vt,[`${Ot}-rtl`]:$t==="rtl"},Se,ce),style:Object.assign(Object.assign({},bt==null?void 0:bt.style),Ae)},wt),Ne.createElement("div",{className:`${Ot}-image`,style:Ge},Vn),Be&&Ne.createElement("div",{className:`${Ot}-description`},Be),at&&Ne.createElement("div",{className:`${Ot}-footer`},at)))};Pt.PRESENTED_IMAGE_DEFAULT=ye,Pt.PRESENTED_IMAGE_SIMPLE=vt;var ot=Pt},22150:function(Nn,Nt,te){"use strict";te.d(Nt,{default:function(){return wn}});var le=te(74902),Me=te(94184),Ne=te.n(Me),Ue=te(38379),be=te(67294),ke=te(33603),de=te(65223);function we(ft){const[Ht,xn]=be.useState(ft);return be.useEffect(()=>{const En=setTimeout(()=>{xn(ft)},ft.length?0:10);return()=>{clearTimeout(En)}},[ft]),Ht}var pe=te(14747),Le=te(50438),nt=te(33507),Re=te(45503),We=te(67968),lt=ft=>{const{componentCls:Ht}=ft,xn=`${Ht}-show-help`,En=`${Ht}-show-help-item`;return{[xn]:{transition:`opacity ${ft.motionDurationSlow} ${ft.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[En]:{overflow:"hidden",transition:`height ${ft.motionDurationSlow} ${ft.motionEaseInOut},
opacity ${ft.motionDurationSlow} ${ft.motionEaseInOut},
transform ${ft.motionDurationSlow} ${ft.motionEaseInOut} !important`,[`&${En}-appear, &${En}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${En}-leave-active`]:{transform:"translateY(-5px)"}}}}};const Xe=ft=>({legend:{display:"block",width:"100%",marginBottom:ft.marginLG,padding:0,color:ft.colorTextDescription,fontSize:ft.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${ft.lineWidth}px ${ft.lineType} ${ft.colorBorder}`},label:{fontSize:ft.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${ft.controlOutlineWidth}px ${ft.controlOutline}`},output:{display:"block",paddingTop:15,color:ft.colorText,fontSize:ft.fontSize,lineHeight:ft.lineHeight}}),ye=(ft,Ht)=>{const{formItemCls:xn}=ft;return{[xn]:{[`${xn}-label > label`]:{height:Ht},[`${xn}-control-input`]:{minHeight:Ht}}}},vt=ft=>{const{componentCls:Ht}=ft;return{[ft.componentCls]:Object.assign(Object.assign(Object.assign({},(0,pe.Wf)(ft)),Xe(ft)),{[`${Ht}-text`]:{display:"inline-block",paddingInlineEnd:ft.paddingSM},"&-small":Object.assign({},ye(ft,ft.controlHeightSM)),"&-large":Object.assign({},ye(ft,ft.controlHeightLG))})}},Pt=ft=>{const{formItemCls:Ht,iconCls:xn,componentCls:En,rootPrefixCls:Hn,labelRequiredMarkColor:Gn,labelColor:br,labelFontSize:fi,labelHeight:Gr,labelColonMarginInlineStart:Vr,labelColonMarginInlineEnd:ai,itemMarginBottom:ei}=ft;return{[Ht]:Object.assign(Object.assign({},(0,pe.Wf)(ft)),{marginBottom:ei,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden.${Hn}-row`]:{display:"none"},"&-has-warning":{[`${Ht}-split`]:{color:ft.colorError}},"&-has-error":{[`${Ht}-split`]:{color:ft.colorWarning}},[`${Ht}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${ft.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Gr,color:br,fontSize:fi,[`> ${xn}`]:{fontSize:ft.fontSize,verticalAlign:"top"},[`&${Ht}-required:not(${Ht}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:ft.marginXXS,color:Gn,fontSize:ft.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${En}-hide-required-mark &`]:{display:"none"}},[`${Ht}-optional`]:{display:"inline-block",marginInlineStart:ft.marginXXS,color:ft.colorTextDescription,[`${En}-hide-required-mark &`]:{display:"none"}},[`${Ht}-tooltip`]:{color:ft.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:ft.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Vr,marginInlineEnd:ai},[`&${Ht}-no-colon::after`]:{content:'"\\a0"'}}},[`${Ht}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Hn}-col-'"]):not([class*="' ${Hn}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:ft.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Ht]:{"&-explain, &-extra":{clear:"both",color:ft.colorTextDescription,fontSize:ft.fontSize,lineHeight:ft.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:ft.controlHeightSM,transition:`color ${ft.motionDurationMid} ${ft.motionEaseOut}`},"&-explain":{"&-error":{color:ft.colorError},"&-warning":{color:ft.colorWarning}}},[`&-with-help ${Ht}-explain`]:{height:"auto",opacity:1},[`${Ht}-feedback-icon`]:{fontSize:ft.fontSize,textAlign:"center",visibility:"visible",animationName:Le.kr,animationDuration:ft.motionDurationMid,animationTimingFunction:ft.motionEaseOutBack,pointerEvents:"none","&-success":{color:ft.colorSuccess},"&-error":{color:ft.colorError},"&-warning":{color:ft.colorWarning},"&-validating":{color:ft.colorPrimary}}})}},ot=ft=>{const{componentCls:Ht,formItemCls:xn}=ft;return{[`${Ht}-horizontal`]:{[`${xn}-label`]:{flexGrow:0},[`${xn}-control`]:{flex:"1 1 0",minWidth:0},[`${xn}-label[class$='-24'], ${xn}-label[class*='-24 ']`]:{[`& + ${xn}-control`]:{minWidth:"unset"}}}}},ct=ft=>{const{componentCls:Ht,formItemCls:xn}=ft;return{[`${Ht}-inline`]:{display:"flex",flexWrap:"wrap",[xn]:{flex:"none",marginInlineEnd:ft.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${xn}-label,
> ${xn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${xn}-label`]:{flex:"none"},[`${Ht}-text`]:{display:"inline-block"},[`${xn}-has-feedback`]:{display:"inline-block"}}}}},Se=ft=>({padding:ft.verticalLabelPadding,margin:ft.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),ce=ft=>{const{componentCls:Ht,formItemCls:xn,rootPrefixCls:En}=ft;return{[`${xn} ${xn}-label`]:Se(ft),[Ht]:{[xn]:{flexWrap:"wrap",[`${xn}-label, ${xn}-control`]:{[`&:not([class*=" ${En}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},He=ft=>{const{componentCls:Ht,formItemCls:xn,rootPrefixCls:En}=ft;return{[`${Ht}-vertical`]:{[xn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${Ht}-item-control`]:{width:"100%"}}},[`${Ht}-vertical ${xn}-label,
.${En}-col-24${xn}-label,
.${En}-col-xl-24${xn}-label`]:Se(ft),[`@media (max-width: ${ft.screenXSMax}px)`]:[ce(ft),{[Ht]:{[`.${En}-col-xs-24${xn}-label`]:Se(ft)}}],[`@media (max-width: ${ft.screenSMMax}px)`]:{[Ht]:{[`.${En}-col-sm-24${xn}-label`]:Se(ft)}},[`@media (max-width: ${ft.screenMDMax}px)`]:{[Ht]:{[`.${En}-col-md-24${xn}-label`]:Se(ft)}},[`@media (max-width: ${ft.screenLGMax}px)`]:{[Ht]:{[`.${En}-col-lg-24${xn}-label`]:Se(ft)}}}},je=(ft,Ht)=>(0,Re.TS)(ft,{formItemCls:`${ft.componentCls}-item`,rootPrefixCls:Ht});var it=(0,We.Z)("Form",(ft,Ht)=>{let{rootPrefixCls:xn}=Ht;const En=je(ft,xn);return[vt(En),Pt(En),lt(En),ot(En),ct(En),He(En),(0,nt.Z)(En),Le.kr]},ft=>({labelRequiredMarkColor:ft.colorError,labelColor:ft.colorTextHeading,labelFontSize:ft.fontSize,labelHeight:ft.controlHeight,labelColonMarginInlineStart:ft.marginXXS/2,labelColonMarginInlineEnd:ft.marginXS,itemMarginBottom:ft.marginLG,verticalLabelPadding:`0 0 ${ft.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const at=[];function Ge(ft,Ht,xn){let En=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof ft=="string"?ft:`${Ht}-${En}`,error:ft,errorStatus:xn}}var wt=ft=>{let{help:Ht,helpStatus:xn,errors:En=at,warnings:Hn=at,className:Gn,fieldId:br,onVisibleChanged:fi}=ft;const{prefixCls:Gr}=be.useContext(de.Rk),Vr=`${Gr}-item-explain`,[,ai]=it(Gr),ei=(0,be.useMemo)(()=>(0,ke.Z)(Gr),[Gr]),Vt=we(En),Kt=we(Hn),nn=be.useMemo(()=>Ht!=null?[Ge(Ht,"help",xn)]:[].concat((0,le.Z)(Vt.map((Tr,Fn)=>Ge(Tr,"error","error",Fn))),(0,le.Z)(Kt.map((Tr,Fn)=>Ge(Tr,"warning","warning",Fn)))),[Ht,xn,Vt,Kt]),sr={};return br&&(sr.id=`${br}_help`),be.createElement(Ue.default,{motionDeadline:ei.motionDeadline,motionName:`${Gr}-show-help`,visible:!!nn.length,onVisibleChanged:fi},Tr=>{const{className:Fn,style:mr}=Tr;return be.createElement("div",Object.assign({},sr,{className:Ne()(Vr,Fn,Gn,ai),style:mr,role:"alert"}),be.createElement(Ue.CSSMotionList,Object.assign({keys:nn},(0,ke.Z)(Gr),{motionName:`${Gr}-show-help-item`,component:!1}),ur=>{const{key:zr,error:ti,errorStatus:jn,className:Gi,style:_i}=ur;return be.createElement("div",{key:zr,className:Ne()(Gi,{[`${Vr}-${jn}`]:jn}),style:_i},ti)}))})},dt=te(46660),$t=te(53124),bt=te(98866),Ot=te(97647),Pn=te(98675),$n=te(17423);const yt=["parentNode"],Be="form_item";function Rt(ft){return ft===void 0||ft===!1?[]:Array.isArray(ft)?ft:[ft]}function Vn(ft,Ht){if(!ft.length)return;const xn=ft.join("_");return Ht?`${Ht}_${xn}`:yt.includes(xn)?`${Be}_${xn}`:xn}function In(ft,Ht,xn,En,Hn,Gn){let br=En;return Gn!==void 0?br=Gn:xn.validating?br="validating":ft.length?br="error":Ht.length?br="warning":(xn.touched||Hn&&xn.validated)&&(br="success"),br}function xt(ft){return Rt(ft).join("_")}function Mt(ft){const[Ht]=(0,dt.useForm)(),xn=be.useRef({}),En=be.useMemo(()=>ft!=null?ft:Object.assign(Object.assign({},Ht),{__INTERNAL__:{itemRef:Hn=>Gn=>{const br=xt(Hn);Gn?xn.current[br]=Gn:delete xn.current[br]}},scrollToField:function(Hn){let Gn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const br=Rt(Hn),fi=Vn(br,En.__INTERNAL__.name),Gr=fi?document.getElementById(fi):null;Gr&&(0,$n.Z)(Gr,Object.assign({scrollMode:"if-needed",block:"nearest"},Gn))},getFieldInstance:Hn=>{const Gn=xt(Hn);return xn.current[Gn]}}),[ft,Ht]);return[En]}var qt=te(37920),an=function(ft,Ht){var xn={};for(var En in ft)Object.prototype.hasOwnProperty.call(ft,En)&&Ht.indexOf(En)<0&&(xn[En]=ft[En]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Hn=0,En=Object.getOwnPropertySymbols(ft);Hn<En.length;Hn++)Ht.indexOf(En[Hn])<0&&Object.prototype.propertyIsEnumerable.call(ft,En[Hn])&&(xn[En[Hn]]=ft[En[Hn]]);return xn};const ln=(ft,Ht)=>{const xn=be.useContext(bt.Z),{getPrefixCls:En,direction:Hn,form:Gn}=be.useContext($t.E_),{prefixCls:br,className:fi,rootClassName:Gr,size:Vr,disabled:ai=xn,form:ei,colon:Vt,labelAlign:Kt,labelWrap:nn,labelCol:sr,wrapperCol:Tr,hideRequiredMark:Fn,layout:mr="horizontal",scrollToFirstError:ur,requiredMark:zr,onFinishFailed:ti,name:jn,style:Gi,feedbackIcons:_i}=ft,Xa=an(ft,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),_a=(0,Pn.Z)(Vr),Aa=be.useContext(qt.Z),ra=(0,be.useMemo)(()=>zr!==void 0?zr:Gn&&Gn.requiredMark!==void 0?Gn.requiredMark:!Fn,[Fn,zr,Gn]),Oa=Vt!=null?Vt:Gn==null?void 0:Gn.colon,ya=En("form",br),[Ra,oo]=it(ya),Yi=Ne()(ya,`${ya}-${mr}`,{[`${ya}-hide-required-mark`]:ra===!1,[`${ya}-rtl`]:Hn==="rtl",[`${ya}-${_a}`]:_a},oo,Gn==null?void 0:Gn.className,fi,Gr),[Pa]=Mt(ei),{__INTERNAL__:to}=Pa;to.name=jn;const _o=(0,be.useMemo)(()=>({name:jn,labelAlign:Kt,labelCol:sr,labelWrap:nn,wrapperCol:Tr,vertical:mr==="vertical",colon:Oa,requiredMark:ra,itemRef:to.itemRef,form:Pa,feedbackIcons:_i}),[jn,Kt,sr,Tr,mr,Oa,ra,Pa,_i]);be.useImperativeHandle(Ht,()=>Pa);const wo=(on,Gt)=>{if(on){let Kn={block:"nearest"};typeof on=="object"&&(Kn=on),Pa.scrollToField(Gt,Kn)}},ia=on=>{if(ti==null||ti(on),on.errorFields.length){const Gt=on.errorFields[0].name;if(ur!==void 0){wo(ur,Gt);return}Gn&&Gn.scrollToFirstError!==void 0&&wo(Gn.scrollToFirstError,Gt)}};return Ra(be.createElement(bt.n,{disabled:ai},be.createElement(Ot.q,{size:_a},be.createElement(de.RV,Object.assign({},{validateMessages:Aa}),be.createElement(de.q3.Provider,{value:_o},be.createElement(dt.default,Object.assign({id:jn},Xa,{name:jn,onFinishFailed:ia,form:Pa,style:Object.assign(Object.assign({},Gn==null?void 0:Gn.style),Gi),className:Yi})))))))};var Cn=be.forwardRef(ln),pr=te(9475),Xn=te(17799),ze=te(96159),fe=te(37419);function ue(ft){if(typeof ft=="function")return ft;const Ht=(0,fe.Z)(ft);return Ht.length<=1?Ht[0]:Ht}const xe=()=>{const{status:ft,errors:Ht=[],warnings:xn=[]}=(0,be.useContext)(de.aM);return{status:ft,errors:Ht,warnings:xn}};xe.Context=de.aM;var ge=xe,se=te(96523);function Fe(ft){const[Ht,xn]=be.useState(ft),En=(0,be.useRef)(null),Hn=(0,be.useRef)([]),Gn=(0,be.useRef)(!1);be.useEffect(()=>(Gn.current=!1,()=>{Gn.current=!0,se.Z.cancel(En.current),En.current=null}),[]);function br(fi){Gn.current||(En.current===null&&(Hn.current=[],En.current=(0,se.Z)(()=>{En.current=null,xn(Gr=>{let Vr=Gr;return Hn.current.forEach(ai=>{Vr=ai(Vr)}),Vr})})),Hn.current.push(fi))}return[Ht,br]}function st(){const{itemRef:ft}=be.useContext(de.q3),Ht=be.useRef({});function xn(En,Hn){const Gn=Hn&&typeof Hn=="object"&&Hn.ref,br=En.join("_");return(Ht.current.name!==br||Ht.current.originRef!==Gn)&&(Ht.current.name=br,Ht.current.originRef=Gn,Ht.current.ref=(0,Xn.sQ)(ft(En),Gn)),Ht.current.ref}return xn}var en=te(48130),Sn=te(14075),dn=te(10366),zn=te(92820),vn=te(21584);const kt=ft=>{const{formItemCls:Ht}=ft;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Ht}-control`]:{display:"flex"}}}};var Xt=(0,We.b)(["Form","item-item"],(ft,Ht)=>{let{rootPrefixCls:xn}=Ht;const En=je(ft,xn);return[kt(En)]}),jt=ft=>{const{prefixCls:Ht,status:xn,wrapperCol:En,children:Hn,errors:Gn,warnings:br,_internalItemRender:fi,extra:Gr,help:Vr,fieldId:ai,marginBottom:ei,onErrorVisibleChanged:Vt}=ft,Kt=`${Ht}-item`,nn=be.useContext(de.q3),sr=En||nn.wrapperCol||{},Tr=Ne()(`${Kt}-control`,sr.className),Fn=be.useMemo(()=>Object.assign({},nn),[nn]);delete Fn.labelCol,delete Fn.wrapperCol;const mr=be.createElement("div",{className:`${Kt}-control-input`},be.createElement("div",{className:`${Kt}-control-input-content`},Hn)),ur=be.useMemo(()=>({prefixCls:Ht,status:xn}),[Ht,xn]),zr=ei!==null||Gn.length||br.length?be.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},be.createElement(de.Rk.Provider,{value:ur},be.createElement(wt,{fieldId:ai,errors:Gn,warnings:br,help:Vr,helpStatus:xn,className:`${Kt}-explain-connected`,onVisibleChanged:Vt})),!!ei&&be.createElement("div",{style:{width:0,height:ei}})):null,ti={};ai&&(ti.id=`${ai}_extra`);const jn=Gr?be.createElement("div",Object.assign({},ti,{className:`${Kt}-extra`}),Gr):null,Gi=fi&&fi.mark==="pro_table_render"&&fi.render?fi.render(ft,{input:mr,errorList:zr,extra:jn}):be.createElement(be.Fragment,null,mr,zr,jn);return be.createElement(de.q3.Provider,{value:Fn},be.createElement(vn.Z,Object.assign({},sr,{className:Tr}),Gi),be.createElement(Xt,{prefixCls:Ht}))},Bt=te(17663),ir=te(24457),Ct=te(10110),At=te(83062),er=function(ft,Ht){var xn={};for(var En in ft)Object.prototype.hasOwnProperty.call(ft,En)&&Ht.indexOf(En)<0&&(xn[En]=ft[En]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Hn=0,En=Object.getOwnPropertySymbols(ft);Hn<En.length;Hn++)Ht.indexOf(En[Hn])<0&&Object.prototype.propertyIsEnumerable.call(ft,En[Hn])&&(xn[En[Hn]]=ft[En[Hn]]);return xn};function An(ft){return ft?typeof ft=="object"&&!be.isValidElement(ft)?ft:{title:ft}:null}var Rr=ft=>{let{prefixCls:Ht,label:xn,htmlFor:En,labelCol:Hn,labelAlign:Gn,colon:br,required:fi,requiredMark:Gr,tooltip:Vr}=ft;var ai;const[ei]=(0,Ct.Z)("Form"),{vertical:Vt,labelAlign:Kt,labelCol:nn,labelWrap:sr,colon:Tr}=be.useContext(de.q3);if(!xn)return null;const Fn=Hn||nn||{},mr=Gn||Kt,ur=`${Ht}-item-label`,zr=Ne()(ur,mr==="left"&&`${ur}-left`,Fn.className,{[`${ur}-wrap`]:!!sr});let ti=xn;const jn=br===!0||Tr!==!1&&br!==!1;jn&&!Vt&&typeof xn=="string"&&xn.trim()!==""&&(ti=xn.replace(/[:|]\s*$/,""));const _i=An(Vr);if(_i){const{icon:ra=be.createElement(Bt.Z,null)}=_i,Oa=er(_i,["icon"]),ya=be.createElement(At.Z,Object.assign({},Oa),be.cloneElement(ra,{className:`${Ht}-item-tooltip`,title:""}));ti=be.createElement(be.Fragment,null,ti,ya)}const Xa=Gr==="optional",_a=typeof Gr=="function";_a?ti=Gr(ti,{required:!!fi}):Xa&&!fi&&(ti=be.createElement(be.Fragment,null,ti,be.createElement("span",{className:`${Ht}-item-optional`,title:""},(ei==null?void 0:ei.optional)||((ai=ir.Z.Form)===null||ai===void 0?void 0:ai.optional))));const Aa=Ne()({[`${Ht}-item-required`]:fi,[`${Ht}-item-required-mark-optional`]:Xa||_a,[`${Ht}-item-no-colon`]:!jn});return be.createElement(vn.Z,Object.assign({},Fn,{className:zr}),be.createElement("label",{htmlFor:En,className:Aa,title:typeof xn=="string"?xn:""},ti))},ii=te(87725),Yr=te(16646),Jr=te(87995),mi=te(3407);const Br={success:ii.Z,warning:Jr.Z,error:Yr.Z,validating:mi.Z};function ki(ft){let{children:Ht,errors:xn,warnings:En,hasFeedback:Hn,validateStatus:Gn,prefixCls:br,meta:fi,noStyle:Gr}=ft;const Vr=`${br}-item`,{feedbackIcons:ai}=be.useContext(de.q3),ei=In(xn,En,fi,null,!!Hn,Gn),{isFormItemInput:Vt,status:Kt}=be.useContext(de.aM),nn=be.useMemo(()=>{var sr;let Tr;if(Hn){const ur=Hn!==!0&&Hn.icons||ai,zr=ei&&((sr=ur==null?void 0:ur({status:ei,errors:xn,warnings:En}))===null||sr===void 0?void 0:sr[ei]),ti=ei&&Br[ei];Tr=zr!==!1&&ti?be.createElement("span",{className:Ne()(`${Vr}-feedback-icon`,`${Vr}-feedback-icon-${ei}`)},zr||be.createElement(ti,null)):null}let Fn=!0,mr=ei||"";return Gr&&(Fn=Vt,mr=(ei!=null?ei:Kt)||""),{status:mr,errors:xn,warnings:En,hasFeedback:!!Hn,feedbackIcon:Tr,isFormItemInput:Fn}},[ei,Hn,Gr,Vt,Kt]);return be.createElement(de.aM.Provider,{value:nn},Ht)}var Vi=function(ft,Ht){var xn={};for(var En in ft)Object.prototype.hasOwnProperty.call(ft,En)&&Ht.indexOf(En)<0&&(xn[En]=ft[En]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Hn=0,En=Object.getOwnPropertySymbols(ft);Hn<En.length;Hn++)Ht.indexOf(En[Hn])<0&&Object.prototype.propertyIsEnumerable.call(ft,En[Hn])&&(xn[En[Hn]]=ft[En[Hn]]);return xn};function ha(ft){const{prefixCls:Ht,className:xn,rootClassName:En,style:Hn,help:Gn,errors:br,warnings:fi,validateStatus:Gr,meta:Vr,hasFeedback:ai,hidden:ei,children:Vt,fieldId:Kt,required:nn,isRequired:sr,onSubItemMetaChange:Tr}=ft,Fn=Vi(ft,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),mr=`${Ht}-item`,{requiredMark:ur}=be.useContext(de.q3),zr=be.useRef(null),ti=we(br),jn=we(fi),Gi=Gn!=null,_i=!!(Gi||br.length||fi.length),Xa=!!zr.current&&(0,en.Z)(zr.current),[_a,Aa]=be.useState(null);(0,Sn.Z)(()=>{if(_i&&zr.current){const oo=getComputedStyle(zr.current);Aa(parseInt(oo.marginBottom,10))}},[_i,Xa]);const ra=oo=>{oo||Aa(null)},ya=function(){let oo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Yi=oo?ti:Vr.errors,Pa=oo?jn:Vr.warnings;return In(Yi,Pa,Vr,"",!!ai,Gr)}(),Ra=Ne()(mr,xn,En,{[`${mr}-with-help`]:Gi||ti.length||jn.length,[`${mr}-has-feedback`]:ya&&ai,[`${mr}-has-success`]:ya==="success",[`${mr}-has-warning`]:ya==="warning",[`${mr}-has-error`]:ya==="error",[`${mr}-is-validating`]:ya==="validating",[`${mr}-hidden`]:ei});return be.createElement("div",{className:Ra,style:Hn,ref:zr},be.createElement(zn.Z,Object.assign({className:`${mr}-row`},(0,dn.Z)(Fn,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),be.createElement(Rr,Object.assign({htmlFor:Kt},ft,{requiredMark:ur,required:nn!=null?nn:sr,prefixCls:Ht})),be.createElement(jt,Object.assign({},ft,Vr,{errors:ti,warnings:jn,prefixCls:Ht,status:ya,help:Gn,marginBottom:_a,onErrorVisibleChanged:ra}),be.createElement(de.qI.Provider,{value:Tr},be.createElement(ki,{prefixCls:Ht,meta:Vr,errors:Vr.errors,warnings:Vr.warnings,hasFeedback:ai,validateStatus:ya},Vt)))),!!_a&&be.createElement("div",{className:`${mr}-margin-offset`,style:{marginBottom:-_a}}))}const pa="__SPLIT__",Ui=null,Ut=be.memo(ft=>{let{children:Ht}=ft;return Ht},(ft,Ht)=>ft.value===Ht.value&&ft.update===Ht.update&&ft.childProps.length===Ht.childProps.length&&ft.childProps.every((xn,En)=>xn===Ht.childProps[En]));function Qt(ft){return ft!=null}function un(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Bn(ft){const{name:Ht,noStyle:xn,className:En,dependencies:Hn,prefixCls:Gn,shouldUpdate:br,rules:fi,children:Gr,required:Vr,label:ai,messageVariables:ei,trigger:Vt="onChange",validateTrigger:Kt,hidden:nn,help:sr}=ft,{getPrefixCls:Tr}=be.useContext($t.E_),{name:Fn}=be.useContext(de.q3),mr=ue(Gr),ur=typeof mr=="function",zr=be.useContext(de.qI),{validateTrigger:ti}=be.useContext(dt.FieldContext),jn=Kt!==void 0?Kt:ti,Gi=Qt(Ht),_i=Tr("form",Gn),[Xa,_a]=it(_i),Aa=be.useContext(dt.ListContext),ra=be.useRef(),[Oa,ya]=Fe({}),[Ra,oo]=(0,pr.Z)(()=>un()),Yi=Gt=>{const Kn=Aa==null?void 0:Aa.getKey(Gt.name);if(oo(Gt.destroy?un():Gt,!0),xn&&sr!==!1&&zr){let yr=Gt.name;if(Gt.destroy)yr=ra.current||yr;else if(Kn!==void 0){const[Ir,si]=Kn;yr=[Ir].concat((0,le.Z)(si)),ra.current=yr}zr(Gt,yr)}},Pa=(Gt,Kn)=>{ya(yr=>{const Ir=Object.assign({},yr),Mi=[].concat((0,le.Z)(Gt.name.slice(0,-1)),(0,le.Z)(Kn)).join(pa);return Gt.destroy?delete Ir[Mi]:Ir[Mi]=Gt,Ir})},[to,_o]=be.useMemo(()=>{const Gt=(0,le.Z)(Ra.errors),Kn=(0,le.Z)(Ra.warnings);return Object.values(Oa).forEach(yr=>{Gt.push.apply(Gt,(0,le.Z)(yr.errors||[])),Kn.push.apply(Kn,(0,le.Z)(yr.warnings||[]))}),[Gt,Kn]},[Oa,Ra.errors,Ra.warnings]),wo=st();function ia(Gt,Kn,yr){return xn&&!nn?be.createElement(ki,{prefixCls:_i,hasFeedback:ft.hasFeedback,validateStatus:ft.validateStatus,meta:Ra,errors:to,warnings:_o,noStyle:!0},Gt):be.createElement(ha,Object.assign({key:"row"},ft,{className:Ne()(En,_a),prefixCls:_i,fieldId:Kn,isRequired:yr,errors:to,warnings:_o,meta:Ra,onSubItemMetaChange:Pa}),Gt)}if(!Gi&&!ur&&!Hn)return Xa(ia(mr));let on={};return typeof ai=="string"?on.label=ai:Ht&&(on.label=String(Ht)),ei&&(on=Object.assign(Object.assign({},on),ei)),Xa(be.createElement(dt.Field,Object.assign({},ft,{messageVariables:on,trigger:Vt,validateTrigger:jn,onMetaChange:Yi}),(Gt,Kn,yr)=>{const Ir=Rt(Ht).length&&Kn?Kn.name:[],si=Vn(Ir,Fn),Mi=Vr!==void 0?Vr:!!(fi&&fi.some(Oi=>{if(Oi&&typeof Oi=="object"&&Oi.required&&!Oi.warningOnly)return!0;if(typeof Oi=="function"){const aa=Oi(yr);return aa&&aa.required&&!aa.warningOnly}return!1})),Ti=Object.assign({},Gt);let ji=null;if(Array.isArray(mr)&&Gi)ji=mr;else if(!(ur&&(!(br||Hn)||Gi))){if(!(Hn&&!ur&&!Gi))if((0,ze.l$)(mr)){const Oi=Object.assign(Object.assign({},mr.props),Ti);if(Oi.id||(Oi.id=si),sr||to.length>0||_o.length>0||ft.extra){const wi=[];(sr||to.length>0)&&wi.push(`${si}_help`),ft.extra&&wi.push(`${si}_extra`),Oi["aria-describedby"]=wi.join(" ")}to.length>0&&(Oi["aria-invalid"]="true"),Mi&&(Oi["aria-required"]="true"),(0,Xn.Yr)(mr)&&(Oi.ref=wo(Ir,mr)),new Set([].concat((0,le.Z)(Rt(Vt)),(0,le.Z)(Rt(jn)))).forEach(wi=>{Oi[wi]=function(){for(var fn,Rn,rr,me,$e,Ve=arguments.length,et=new Array(Ve),Je=0;Je<Ve;Je++)et[Je]=arguments[Je];(rr=Ti[wi])===null||rr===void 0||(fn=rr).call.apply(fn,[Ti].concat(et)),($e=(me=mr.props)[wi])===null||$e===void 0||(Rn=$e).call.apply(Rn,[me].concat(et))}});const Da=[Oi["aria-required"],Oi["aria-invalid"],Oi["aria-describedby"]];ji=be.createElement(Ut,{value:Ti[ft.valuePropName||"value"],update:mr,childProps:Da},(0,ze.Tm)(mr,Oi))}else ur&&(br||Hn)&&!Gi?ji=mr(yr):ji=mr}return ia(ji,si,Mi)}))}const Cr=Bn;Cr.useStatus=ge;var qn=Cr,Lr=function(ft,Ht){var xn={};for(var En in ft)Object.prototype.hasOwnProperty.call(ft,En)&&Ht.indexOf(En)<0&&(xn[En]=ft[En]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Hn=0,En=Object.getOwnPropertySymbols(ft);Hn<En.length;Hn++)Ht.indexOf(En[Hn])<0&&Object.prototype.propertyIsEnumerable.call(ft,En[Hn])&&(xn[En[Hn]]=ft[En[Hn]]);return xn},Et=ft=>{var{prefixCls:Ht,children:xn}=ft,En=Lr(ft,["prefixCls","children"]);const{getPrefixCls:Hn}=be.useContext($t.E_),Gn=Hn("form",Ht),br=be.useMemo(()=>({prefixCls:Gn,status:"error"}),[Gn]);return be.createElement(dt.List,Object.assign({},En),(fi,Gr,Vr)=>be.createElement(de.Rk.Provider,{value:br},xn(fi.map(ai=>Object.assign(Object.assign({},ai),{fieldKey:ai.key})),Gr,{errors:Vr.errors,warnings:Vr.warnings})))};function _t(){const{form:ft}=(0,be.useContext)(de.q3);return ft}const zt=Cn;zt.Item=qn,zt.List=Et,zt.ErrorList=wt,zt.useForm=Mt,zt.useFormInstance=_t,zt.useWatch=dt.useWatch,zt.Provider=de.RV,zt.create=()=>{};var wn=zt},25378:function(Nn,Nt,te){"use strict";var le=te(67294),Me=te(14075),Ne=te(57838),Ue=te(74443);function be(){let ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const de=(0,le.useRef)({}),we=(0,Ne.Z)(),pe=(0,Ue.ZP)();return(0,Me.Z)(()=>{const Le=pe.subscribe(nt=>{de.current=nt,ke&&we()});return()=>pe.unsubscribe(Le)},[]),de.current}Nt.Z=be},31795:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return or}});var le=te(42922),Me=te(53978),Ne=te(94184),Ue=te.n(Ne),be=te(87462),ke=te(4942),de=te(71002),we=te(97685),pe=te(45987),Le=te(15671),nt=te(43144);function Re(){return typeof BigInt=="function"}function We(Et){return!Et&&Et!==0&&!Number.isNaN(Et)||!String(Et).trim()}function qe(Et){var _t=Et.trim(),zt=_t.startsWith("-");zt&&(_t=_t.slice(1)),_t=_t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),_t.startsWith(".")&&(_t="0".concat(_t));var wn=_t||"0",ft=wn.split("."),Ht=ft[0]||"0",xn=ft[1]||"0";Ht==="0"&&xn==="0"&&(zt=!1);var En=zt?"-":"";return{negative:zt,negativeStr:En,trimStr:wn,integerStr:Ht,decimalStr:xn,fullStr:"".concat(En).concat(wn)}}function lt(Et){var _t=String(Et);return!Number.isNaN(Number(_t))&&_t.includes("e")}function Xe(Et){var _t=String(Et);if(lt(Et)){var zt=Number(_t.slice(_t.indexOf("e-")+2)),wn=_t.match(/\.(\d+)/);return wn!=null&&wn[1]&&(zt+=wn[1].length),zt}return _t.includes(".")&&vt(_t)?_t.length-_t.indexOf(".")-1:0}function ye(Et){var _t=String(Et);if(lt(Et)){if(Et>Number.MAX_SAFE_INTEGER)return String(Re()?BigInt(Et).toString():Number.MAX_SAFE_INTEGER);if(Et<Number.MIN_SAFE_INTEGER)return String(Re()?BigInt(Et).toString():Number.MIN_SAFE_INTEGER);_t=Et.toFixed(Xe(_t))}return qe(_t).fullStr}function vt(Et){return typeof Et=="number"?!Number.isNaN(Et):Et?/^\s*-?\d+(\.\d+)?\s*$/.test(Et)||/^\s*-?\d+\.\s*$/.test(Et)||/^\s*-?\.\d+\s*$/.test(Et):!1}var Pt=function(){function Et(_t){if((0,Le.Z)(this,Et),(0,ke.Z)(this,"origin",""),(0,ke.Z)(this,"negative",void 0),(0,ke.Z)(this,"integer",void 0),(0,ke.Z)(this,"decimal",void 0),(0,ke.Z)(this,"decimalLen",void 0),(0,ke.Z)(this,"empty",void 0),(0,ke.Z)(this,"nan",void 0),We(_t)){this.empty=!0;return}if(this.origin=String(_t),_t==="-"||Number.isNaN(_t)){this.nan=!0;return}var zt=_t;if(lt(zt)&&(zt=Number(zt)),zt=typeof zt=="string"?zt:ye(zt),vt(zt)){var wn=qe(zt);this.negative=wn.negative;var ft=wn.trimStr.split(".");this.integer=BigInt(ft[0]);var Ht=ft[1]||"0";this.decimal=BigInt(Ht),this.decimalLen=Ht.length}else this.nan=!0}return(0,nt.Z)(Et,[{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(zt){var wn="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(zt,"0"));return BigInt(wn)}},{key:"negate",value:function(){var zt=new Et(this.toString());return zt.negative=!zt.negative,zt}},{key:"cal",value:function(zt,wn,ft){var Ht=Math.max(this.getDecimalStr().length,zt.getDecimalStr().length),xn=this.alignDecimal(Ht),En=zt.alignDecimal(Ht),Hn=wn(xn,En).toString(),Gn=ft(Ht),br=qe(Hn),fi=br.negativeStr,Gr=br.trimStr,Vr="".concat(fi).concat(Gr.padStart(Gn+1,"0"));return new Et("".concat(Vr.slice(0,-Gn),".").concat(Vr.slice(-Gn)))}},{key:"add",value:function(zt){if(this.isInvalidate())return new Et(zt);var wn=new Et(zt);return wn.isInvalidate()?this:this.cal(wn,function(ft,Ht){return ft+Ht},function(ft){return ft})}},{key:"multi",value:function(zt){var wn=new Et(zt);return this.isInvalidate()||wn.isInvalidate()?new Et(NaN):this.cal(wn,function(ft,Ht){return ft*Ht},function(ft){return ft*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(zt){return this.toString()===(zt==null?void 0:zt.toString())}},{key:"lessEquals",value:function(zt){return this.add(zt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return zt?this.isInvalidate()?"":qe("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Et}(),ot=function(){function Et(_t){if((0,Le.Z)(this,Et),(0,ke.Z)(this,"origin",""),(0,ke.Z)(this,"number",void 0),(0,ke.Z)(this,"empty",void 0),We(_t)){this.empty=!0;return}this.origin=String(_t),this.number=Number(_t)}return(0,nt.Z)(Et,[{key:"negate",value:function(){return new Et(-this.toNumber())}},{key:"add",value:function(zt){if(this.isInvalidate())return new Et(zt);var wn=Number(zt);if(Number.isNaN(wn))return this;var ft=this.number+wn;if(ft>Number.MAX_SAFE_INTEGER)return new Et(Number.MAX_SAFE_INTEGER);if(ft<Number.MIN_SAFE_INTEGER)return new Et(Number.MIN_SAFE_INTEGER);var Ht=Math.max(Xe(this.number),Xe(wn));return new Et(ft.toFixed(Ht))}},{key:"multi",value:function(zt){var wn=Number(zt);if(this.isInvalidate()||Number.isNaN(wn))return new Et(NaN);var ft=this.number*wn;if(ft>Number.MAX_SAFE_INTEGER)return new Et(Number.MAX_SAFE_INTEGER);if(ft<Number.MIN_SAFE_INTEGER)return new Et(Number.MIN_SAFE_INTEGER);var Ht=Math.max(Xe(this.number),Xe(wn));return new Et(ft.toFixed(Ht))}},{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(zt){return this.toNumber()===(zt==null?void 0:zt.toNumber())}},{key:"lessEquals",value:function(zt){return this.add(zt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return zt?this.isInvalidate()?"":ye(this.number):this.origin}}]),Et}();function ct(Et){return Re()?new Pt(Et):new ot(Et)}function Se(Et,_t,zt){var wn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Et==="")return"";var ft=qe(Et),Ht=ft.negativeStr,xn=ft.integerStr,En=ft.decimalStr,Hn="".concat(_t).concat(En),Gn="".concat(Ht).concat(xn);if(zt>=0){var br=Number(En[zt]);if(br>=5&&!wn){var fi=ct(Et).add("".concat(Ht,"0.").concat("0".repeat(zt)).concat(10-br));return Se(fi.toString(),_t,zt,wn)}return zt===0?Gn:"".concat(Gn).concat(_t).concat(En.padEnd(zt,"0").slice(0,zt))}return Hn===".0"?Gn:"".concat(Gn).concat(Hn)}var ce=ct,He=te(67656),je=te(67294);function it(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var at=it()?je.useLayoutEffect:je.useEffect,Ge=function(_t,zt){var wn=je.useRef(!0);at(function(){return _t(wn.current)},zt),at(function(){return wn.current=!1,function(){wn.current=!0}},[])},Ae=function(_t,zt){Ge(function(wn){if(!wn)return _t()},zt)},wt=Ge,dt=te(27183);function $t(Et,_t,zt){var wn=React.useRef({});return(!("value"in wn.current)||zt(wn.current.condition,_t))&&(wn.current.value=Et(),wn.current.condition=_t),wn.current.value}function bt(Et,_t){typeof Et=="function"?Et(_t):(0,de.Z)(Et)==="object"&&Et&&"current"in Et&&(Et.current=_t)}function Ot(){for(var Et=arguments.length,_t=new Array(Et),zt=0;zt<Et;zt++)_t[zt]=arguments[zt];var wn=_t.filter(function(ft){return ft});return wn.length<=1?wn[0]:function(ft){_t.forEach(function(Ht){bt(Ht,ft)})}}function Pn(){for(var Et=arguments.length,_t=new Array(Et),zt=0;zt<Et;zt++)_t[zt]=arguments[zt];return useMemo(function(){return Ot.apply(void 0,_t)},_t,function(wn,ft){return wn.length!==ft.length||wn.every(function(Ht,xn){return Ht!==ft[xn]})})}function $n(Et){var _t,zt,wn=isMemo(Et)?Et.type.type:Et.type;return!(typeof wn=="function"&&!((_t=wn.prototype)!==null&&_t!==void 0&&_t.render)||typeof Et=="function"&&!((zt=Et.prototype)!==null&&zt!==void 0&&zt.render))}function yt(Et){return!isValidElement(Et)||isFragment(Et)?!1:$n(Et)}var Be={},Rt=[],Vn=function(_t){Rt.push(_t)};function In(Et,_t){if(0)var zt}function xt(Et,_t){if(0)var zt}function Mt(){Be={}}function qt(Et,_t,zt){!_t&&!Be[zt]&&(Et(!1,zt),Be[zt]=!0)}function an(Et,_t){qt(In,Et,_t)}function ln(Et,_t){qt(xt,Et,_t)}an.preMessage=Vn,an.resetWarned=Mt,an.noteOnce=ln;var Yt=an;function Cn(Et,_t){var zt=(0,je.useRef)(null);function wn(){try{var Ht=Et.selectionStart,xn=Et.selectionEnd,En=Et.value,Hn=En.substring(0,Ht),Gn=En.substring(xn);zt.current={start:Ht,end:xn,value:En,beforeTxt:Hn,afterTxt:Gn}}catch(br){}}function ft(){if(Et&&zt.current&&_t)try{var Ht=Et.value,xn=zt.current,En=xn.beforeTxt,Hn=xn.afterTxt,Gn=xn.start,br=Ht.length;if(Ht.endsWith(Hn))br=Ht.length-zt.current.afterTxt.length;else if(Ht.startsWith(En))br=En.length;else{var fi=En[Gn-1],Gr=Ht.indexOf(fi,Gn-1);Gr!==-1&&(br=Gr+1)}Et.setSelectionRange(br,br)}catch(Vr){Yt(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Vr.message))}}return[wn,ft]}var pr=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Et=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(Et)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(Et==null?void 0:Et.substr(0,4))},Xn=function(){var _t=(0,je.useState)(!1),zt=(0,we.Z)(_t,2),wn=zt[0],ft=zt[1];return wt(function(){ft(pr())},[]),wn},ze=Xn,fe=function(_t){return+setTimeout(_t,16)},ue=function(_t){return clearTimeout(_t)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(fe=function(_t){return window.requestAnimationFrame(_t)},ue=function(_t){return window.cancelAnimationFrame(_t)});var xe=0,ge=new Map;function se(Et){ge.delete(Et)}var Fe=function(_t){var zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;xe+=1;var wn=xe;function ft(Ht){if(Ht===0)se(wn),_t();else{var xn=fe(function(){ft(Ht-1)});ge.set(wn,xn)}}return ft(zt),wn};Fe.cancel=function(Et){var _t=ge.get(Et);return se(_t),ue(_t)};var st=Fe,en=200,Sn=600;function dn(Et){var _t=Et.prefixCls,zt=Et.upNode,wn=Et.downNode,ft=Et.upDisabled,Ht=Et.downDisabled,xn=Et.onStep,En=je.useRef(),Hn=je.useRef([]),Gn=je.useRef();Gn.current=xn;var br=function(){clearTimeout(En.current)},fi=function(sr,Tr){sr.preventDefault(),br(),Gn.current(Tr);function Fn(){Gn.current(Tr),En.current=setTimeout(Fn,en)}En.current=setTimeout(Fn,Sn)};je.useEffect(function(){return function(){br(),Hn.current.forEach(function(nn){return st.cancel(nn)})}},[]);var Gr=ze();if(Gr)return null;var Vr="".concat(_t,"-handler"),ai=Ue()(Vr,"".concat(Vr,"-up"),(0,ke.Z)({},"".concat(Vr,"-up-disabled"),ft)),ei=Ue()(Vr,"".concat(Vr,"-down"),(0,ke.Z)({},"".concat(Vr,"-down-disabled"),Ht)),Vt=function(){return Hn.current.push(st(br))},Kt={unselectable:"on",role:"button",onMouseUp:Vt,onMouseLeave:Vt};return je.createElement("div",{className:"".concat(Vr,"-wrap")},je.createElement("span",(0,be.Z)({},Kt,{onMouseDown:function(sr){fi(sr,!0)},"aria-label":"Increase Value","aria-disabled":ft,className:ai}),zt||je.createElement("span",{unselectable:"on",className:"".concat(_t,"-handler-up-inner")})),je.createElement("span",(0,be.Z)({},Kt,{onMouseDown:function(sr){fi(sr,!1)},"aria-label":"Decrease Value","aria-disabled":Ht,className:ei}),wn||je.createElement("span",{unselectable:"on",className:"".concat(_t,"-handler-down-inner")})))}function zn(Et){var _t=typeof Et=="number"?ye(Et):qe(Et).fullStr,zt=_t.includes(".");return zt?qe(_t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Et+"0"}var vn=te(87887),kt=function(){var Et=(0,je.useRef)(0),_t=function(){st.cancel(Et.current)};return(0,je.useEffect)(function(){return _t},[]),function(zt){_t(),Et.current=st(function(){zt()})}},Xt=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],Jt=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],jt=function(_t,zt){return _t||zt.isEmpty()?zt.toString():zt.toNumber()},Bt=function(_t){var zt=ce(_t);return zt.isInvalidate()?null:zt},ir=je.forwardRef(function(Et,_t){var zt,wn=Et.prefixCls,ft=wn===void 0?"rc-input-number":wn,Ht=Et.className,xn=Et.style,En=Et.min,Hn=Et.max,Gn=Et.step,br=Gn===void 0?1:Gn,fi=Et.defaultValue,Gr=Et.value,Vr=Et.disabled,ai=Et.readOnly,ei=Et.upHandler,Vt=Et.downHandler,Kt=Et.keyboard,nn=Et.controls,sr=nn===void 0?!0:nn,Tr=Et.classNames,Fn=Et.stringMode,mr=Et.parser,ur=Et.formatter,zr=Et.precision,ti=Et.decimalSeparator,jn=Et.onChange,Gi=Et.onInput,_i=Et.onPressEnter,Xa=Et.onStep,_a=(0,pe.Z)(Et,Xt),Aa="".concat(ft,"-input"),ra=je.useRef(null),Oa=je.useState(!1),ya=(0,we.Z)(Oa,2),Ra=ya[0],oo=ya[1],Yi=je.useRef(!1),Pa=je.useRef(!1),to=je.useRef(!1),_o=je.useState(function(){return ce(Gr!=null?Gr:fi)}),wo=(0,we.Z)(_o,2),ia=wo[0],on=wo[1];function Gt(cr){Gr===void 0&&on(cr)}var Kn=je.useCallback(function(cr,xr){if(!xr)return zr>=0?zr:Math.max(Xe(cr),Xe(br))},[zr,br]),yr=je.useCallback(function(cr){var xr=String(cr);if(mr)return mr(xr);var Er=xr;return ti&&(Er=Er.replace(ti,".")),Er.replace(/[^\w.-]+/g,"")},[mr,ti]),Ir=je.useRef(""),si=je.useCallback(function(cr,xr){if(ur)return ur(cr,{userTyping:xr,input:String(Ir.current)});var Er=typeof cr=="number"?ye(cr):cr;if(!xr){var Nr=Kn(Er,xr);if(vt(Er)&&(ti||Nr>=0)){var $r=ti||".";Er=Se(Er,$r,Nr)}}return Er},[ur,Kn,ti]),Mi=je.useState(function(){var cr=fi!=null?fi:Gr;return ia.isInvalidate()&&["string","number"].includes((0,de.Z)(cr))?Number.isNaN(cr)?"":cr:si(ia.toString(),!1)}),Ti=(0,we.Z)(Mi,2),ji=Ti[0],Oi=Ti[1];Ir.current=ji;function aa(cr,xr){Oi(si(cr.isInvalidate()?cr.toString(!1):cr.toString(!xr),xr))}var Da=je.useMemo(function(){return Bt(Hn)},[Hn,zr]),wi=je.useMemo(function(){return Bt(En)},[En,zr]),fn=je.useMemo(function(){return!Da||!ia||ia.isInvalidate()?!1:Da.lessEquals(ia)},[Da,ia]),Rn=je.useMemo(function(){return!wi||!ia||ia.isInvalidate()?!1:ia.lessEquals(wi)},[wi,ia]),rr=Cn(ra.current,Ra),me=(0,we.Z)(rr,2),$e=me[0],Ve=me[1],et=function(xr){return Da&&!xr.lessEquals(Da)?Da:wi&&!wi.lessEquals(xr)?wi:null},Je=function(xr){return!et(xr)},ut=function(xr,Er){var Nr=xr,$r=Je(Nr)||Nr.isEmpty();if(!Nr.isEmpty()&&!Er&&(Nr=et(Nr)||Nr,$r=!0),!ai&&!Vr&&$r){var Qe=Nr.toString(),rt=Kn(Qe,Er);return rt>=0&&(Nr=ce(Se(Qe,".",rt)),Je(Nr)||(Nr=ce(Se(Qe,".",rt,!0)))),Nr.equals(ia)||(Gt(Nr),jn==null||jn(Nr.isEmpty()?null:jt(Fn,Nr)),Gr===void 0&&aa(Nr,Er)),Nr}return ia},mt=kt(),Wt=function cr(xr){if($e(),Ir.current=xr,Oi(xr),!Pa.current){var Er=yr(xr),Nr=ce(Er);Nr.isNaN()||ut(Nr,!0)}Gi==null||Gi(xr),mt(function(){var $r=xr;mr||($r=xr.replace(/。/g,".")),$r!==xr&&cr($r)})},sn=function(){Pa.current=!0},Wn=function(){Pa.current=!1,Wt(ra.current.value)},lr=function(xr){Wt(xr.target.value)},Qn=function(xr){var Er;if(!(xr&&fn||!xr&&Rn)){Yi.current=!1;var Nr=ce(to.current?zn(br):br);xr||(Nr=Nr.negate());var $r=(ia||ce(0)).add(Nr.toString()),Qe=ut($r,!1);Xa==null||Xa(jt(Fn,Qe),{offset:to.current?zn(br):br,type:xr?"up":"down"}),(Er=ra.current)===null||Er===void 0||Er.focus()}},Tn=function(xr){var Er=ce(yr(ji)),Nr=Er;Er.isNaN()?Nr=ut(ia,xr):Nr=ut(Er,xr),Gr!==void 0?aa(ia,!1):Nr.isNaN()||aa(Nr,!1)},kn=function(){Yi.current=!0},mn=function(xr){var Er=xr.key,Nr=xr.shiftKey;Yi.current=!0,to.current=Nr,Er==="Enter"&&(Pa.current||(Yi.current=!1),Tn(!1),_i==null||_i(xr)),Kt!==!1&&!Pa.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Er)&&(Qn(Er==="Up"||Er==="ArrowUp"),xr.preventDefault())},Jn=function(){Yi.current=!1,to.current=!1},Dr=function(){Tn(!1),oo(!1),Yi.current=!1};return Ae(function(){ia.isInvalidate()||aa(ia,!1)},[zr]),Ae(function(){var cr=ce(Gr);on(cr);var xr=ce(yr(ji));(!cr.equals(xr)||!Yi.current||ur)&&aa(cr,Yi.current)},[Gr]),Ae(function(){ur&&Ve()},[ji]),je.createElement("div",{className:Ue()(ft,Tr==null?void 0:Tr.input,Ht,(zt={},(0,ke.Z)(zt,"".concat(ft,"-focused"),Ra),(0,ke.Z)(zt,"".concat(ft,"-disabled"),Vr),(0,ke.Z)(zt,"".concat(ft,"-readonly"),ai),(0,ke.Z)(zt,"".concat(ft,"-not-a-number"),ia.isNaN()),(0,ke.Z)(zt,"".concat(ft,"-out-of-range"),!ia.isInvalidate()&&!Je(ia)),zt)),style:xn,onFocus:function(){oo(!0)},onBlur:Dr,onKeyDown:mn,onKeyUp:Jn,onCompositionStart:sn,onCompositionEnd:Wn,onBeforeInput:kn},sr&&je.createElement(dn,{prefixCls:ft,upNode:ei,downNode:Vt,upDisabled:fn,downDisabled:Rn,onStep:Qn}),je.createElement("div",{className:"".concat(Aa,"-wrap")},je.createElement("input",(0,be.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":En,"aria-valuemax":Hn,"aria-valuenow":ia.isInvalidate()?null:ia.toString(),step:br},_a,{ref:Ot(ra,_t),className:Aa,value:ji,onChange:lr,disabled:Vr,readOnly:ai}))))}),Ct=je.forwardRef(function(Et,_t){var zt=Et.disabled,wn=Et.style,ft=Et.prefixCls,Ht=Et.value,xn=Et.prefix,En=Et.suffix,Hn=Et.addonBefore,Gn=Et.addonAfter,br=Et.classes,fi=Et.className,Gr=Et.classNames,Vr=(0,pe.Z)(Et,Jt),ai=je.useRef(null),ei=function(Kt){ai.current&&(0,vn.nH)(ai.current,Kt)};return je.createElement(He.BaseInput,{inputElement:je.createElement(ir,(0,be.Z)({prefixCls:ft,disabled:zt,classNames:Gr,ref:Ot(ai,_t)},Vr)),className:fi,triggerFocus:ei,prefixCls:ft,value:Ht,disabled:zt,style:wn,prefix:xn,suffix:En,addonAfter:Gn,addonBefore:Hn,classes:br,classNames:Gr,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});Ct.displayName="InputNumber";var At=Ct,er=At,An=te(9708),fr=te(53124),Rr=te(46735),ii=te(98866),Yr=te(98675),Jr=te(65223),mi=te(4173),Br=te(47673),ki=te(14747),Vi=te(80110),ha=te(67968),pa=te(45503);const Ui=(Et,_t)=>{let{componentCls:zt,borderRadiusSM:wn,borderRadiusLG:ft}=Et;const Ht=_t==="lg"?ft:wn;return{[`&-${_t}`]:{[`${zt}-handler-wrap`]:{borderStartEndRadius:Ht,borderEndEndRadius:Ht},[`${zt}-handler-up`]:{borderStartEndRadius:Ht},[`${zt}-handler-down`]:{borderEndEndRadius:Ht}}}},Ut=Et=>{const{componentCls:_t,lineWidth:zt,lineType:wn,colorBorder:ft,borderRadius:Ht,fontSizeLG:xn,controlHeightLG:En,controlHeightSM:Hn,colorError:Gn,paddingInlineSM:br,colorTextDescription:fi,motionDurationMid:Gr,handleHoverColor:Vr,paddingInline:ai,paddingBlock:ei,handleBg:Vt,handleActiveBg:Kt,colorTextDisabled:nn,borderRadiusSM:sr,borderRadiusLG:Tr,controlWidth:Fn,handleVisible:mr,handleBorderColor:ur}=Et;return[{[_t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ki.Wf)(Et)),(0,Br.ik)(Et)),(0,Br.bi)(Et,_t)),{display:"inline-block",width:Fn,margin:0,padding:0,border:`${zt}px ${wn} ${ft}`,borderRadius:Ht,"&-rtl":{direction:"rtl",[`${_t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:xn,borderRadius:Tr,[`input${_t}-input`]:{height:En-2*zt}},"&-sm":{padding:0,borderRadius:sr,[`input${_t}-input`]:{height:Hn-2*zt,padding:`0 ${br}px`}},"&:hover":Object.assign({},(0,Br.pU)(Et)),"&-focused":Object.assign({},(0,Br.M1)(Et)),"&-out-of-range":{[`${_t}-input-wrap`]:{input:{color:Gn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,ki.Wf)(Et)),(0,Br.s7)(Et)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${_t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${_t}-group-addon`]:{borderRadius:Tr,fontSize:Et.fontSizeLG}},"&-sm":{[`${_t}-group-addon`]:{borderRadius:sr}},[`${_t}-wrapper-disabled > ${_t}-group-addon`]:Object.assign({},(0,Br.Xy)(Et))}}),[`&-disabled ${_t}-input`]:{cursor:"not-allowed"},[_t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,ki.Wf)(Et)),{width:"100%",padding:`${ei}px ${ai}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Ht,outline:0,transition:`all ${Gr} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Br.nz)(Et.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[_t]:Object.assign(Object.assign(Object.assign({[`&:hover ${_t}-handler-wrap, &-focused ${_t}-handler-wrap`]:{opacity:1},[`${_t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Et.handleWidth,height:"100%",background:Vt,borderStartStartRadius:0,borderStartEndRadius:Ht,borderEndEndRadius:Ht,borderEndStartRadius:0,opacity:mr===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${Gr} linear ${Gr}`,[`${_t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
${_t}-handler-up-inner,
${_t}-handler-down-inner
`]:{marginInlineEnd:0,fontSize:Et.handleFontSize}}},[`${_t}-handler`]:{height:"50%",overflow:"hidden",color:fi,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${zt}px ${wn} ${ur}`,transition:`all ${Gr} linear`,"&:active":{background:Kt},"&:hover":{height:"60%",[`
${_t}-handler-up-inner,
${_t}-handler-down-inner
`]:{color:Vr}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,ki.Ro)()),{color:fi,transition:`all ${Gr} linear`,userSelect:"none"})},[`${_t}-handler-up`]:{borderStartEndRadius:Ht},[`${_t}-handler-down`]:{borderBlockStart:`${zt}px ${wn} ${ur}`,borderEndEndRadius:Ht}},Ui(Et,"lg")),Ui(Et,"sm")),{"&-disabled, &-readonly":{[`${_t}-handler-wrap`]:{display:"none"},[`${_t}-input`]:{color:"inherit"}},[`
${_t}-handler-up-disabled,
${_t}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${_t}-handler-up-disabled:hover &-handler-up-inner,
${_t}-handler-down-disabled:hover &-handler-down-inner
`]:{color:nn}})},{[`${_t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${_t}-handler-down`]:{borderBlockStartWidth:0}}}]},Qt=Et=>{const{componentCls:_t,paddingBlock:zt,paddingInline:wn,inputAffixPadding:ft,controlWidth:Ht,borderRadiusLG:xn,borderRadiusSM:En}=Et;return{[`${_t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,Br.ik)(Et)),(0,Br.bi)(Et,`${_t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:Ht,padding:0,paddingInlineStart:wn,"&-lg":{borderRadius:xn},"&-sm":{borderRadius:En},[`&:not(${_t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,Br.pU)(Et)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${_t}-disabled`]:{background:"transparent"},[`> div${_t}`]:{width:"100%",border:"none",outline:"none",[`&${_t}-focused`]:{boxShadow:"none !important"}},[`input${_t}-input`]:{padding:`${zt}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${_t}-handler-wrap`]:{zIndex:2},[_t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:ft},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:wn,marginInlineStart:ft}}})}};var un=(0,ha.Z)("InputNumber",Et=>{const _t=(0,pa.TS)(Et,(0,Br.e5)(Et));return[Ut(_t),Qt(_t),(0,Vi.c)(_t)]},Et=>Object.assign(Object.assign({},(0,Br.TM)(Et)),{controlWidth:90,handleWidth:Et.controlHeightSM-Et.lineWidth*2,handleFontSize:Et.fontSize/2,handleVisible:"auto",handleActiveBg:Et.colorFillAlter,handleBg:Et.colorBgContainer,handleHoverColor:Et.colorPrimary,handleBorderColor:Et.colorBorder})),Bn=function(Et,_t){var zt={};for(var wn in Et)Object.prototype.hasOwnProperty.call(Et,wn)&&_t.indexOf(wn)<0&&(zt[wn]=Et[wn]);if(Et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,wn=Object.getOwnPropertySymbols(Et);ft<wn.length;ft++)_t.indexOf(wn[ft])<0&&Object.prototype.propertyIsEnumerable.call(Et,wn[ft])&&(zt[wn[ft]]=Et[wn[ft]]);return zt};const Cr=je.forwardRef((Et,_t)=>{const{getPrefixCls:zt,direction:wn}=je.useContext(fr.E_),ft=je.useRef(null);je.useImperativeHandle(_t,()=>ft.current);const{className:Ht,rootClassName:xn,size:En,disabled:Hn,prefixCls:Gn,addonBefore:br,addonAfter:fi,prefix:Gr,bordered:Vr=!0,readOnly:ai,status:ei,controls:Vt}=Et,Kt=Bn(Et,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),nn=zt("input-number",Gn),[sr,Tr]=un(nn),{compactSize:Fn,compactItemClassnames:mr}=(0,mi.ri)(nn,wn);let ur=je.createElement(Me.Z,{className:`${nn}-handler-up-inner`}),zr=je.createElement(le.Z,{className:`${nn}-handler-down-inner`});const ti=typeof Vt=="boolean"?Vt:void 0;typeof Vt=="object"&&(ur=typeof Vt.upIcon=="undefined"?ur:je.createElement("span",{className:`${nn}-handler-up-inner`},Vt.upIcon),zr=typeof Vt.downIcon=="undefined"?zr:je.createElement("span",{className:`${nn}-handler-down-inner`},Vt.downIcon));const{hasFeedback:jn,status:Gi,isFormItemInput:_i,feedbackIcon:Xa}=je.useContext(Jr.aM),_a=(0,An.F)(Gi,ei),Aa=(0,Yr.Z)(Yi=>{var Pa;return(Pa=En!=null?En:Fn)!==null&&Pa!==void 0?Pa:Yi}),ra=je.useContext(ii.Z),Oa=Hn!=null?Hn:ra,ya=Ue()({[`${nn}-lg`]:Aa==="large",[`${nn}-sm`]:Aa==="small",[`${nn}-rtl`]:wn==="rtl",[`${nn}-borderless`]:!Vr,[`${nn}-in-form-item`]:_i},(0,An.Z)(nn,_a),mr,Tr),Ra=`${nn}-group`,oo=je.createElement(er,Object.assign({ref:ft,disabled:Oa,className:Ue()(Ht,xn),upHandler:ur,downHandler:zr,prefixCls:nn,readOnly:ai,controls:ti,prefix:Gr,suffix:jn&&Xa,addonAfter:fi&&je.createElement(mi.BR,null,je.createElement(Jr.Ux,{override:!0,status:!0},fi)),addonBefore:br&&je.createElement(mi.BR,null,je.createElement(Jr.Ux,{override:!0,status:!0},br)),classNames:{input:ya},classes:{affixWrapper:Ue()((0,An.Z)(`${nn}-affix-wrapper`,_a,jn),{[`${nn}-affix-wrapper-sm`]:Aa==="small",[`${nn}-affix-wrapper-lg`]:Aa==="large",[`${nn}-affix-wrapper-rtl`]:wn==="rtl",[`${nn}-affix-wrapper-borderless`]:!Vr},Tr),wrapper:Ue()({[`${Ra}-rtl`]:wn==="rtl",[`${nn}-wrapper-disabled`]:Oa},Tr),group:Ue()({[`${nn}-group-wrapper-sm`]:Aa==="small",[`${nn}-group-wrapper-lg`]:Aa==="large",[`${nn}-group-wrapper-rtl`]:wn==="rtl"},(0,An.Z)(`${nn}-group-wrapper`,_a,jn),Tr)}},Kt));return sr(oo)}),qn=Cr,Lr=Et=>je.createElement(Rr.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},je.createElement(Cr,Object.assign({},Et)));qn._InternalPanelDoNotUseOrYouWillBeFired=Lr;var or=qn},82586:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return Pt},n:function(){return ye}});var le=te(16646),Me=te(94184),Ne=te.n(Me),Ue=te(67656),be=te(17799),ke=te(67294),de=te(9708),we=te(53124),pe=te(98866),Le=te(98675),nt=te(65223),Re=te(4173),We=te(72922),qe=te(47673);function lt(ot){return!!(ot.prefix||ot.suffix||ot.allowClear)}var Xe=function(ot,ct){var Se={};for(var ce in ot)Object.prototype.hasOwnProperty.call(ot,ce)&&ct.indexOf(ce)<0&&(Se[ce]=ot[ce]);if(ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,ce=Object.getOwnPropertySymbols(ot);He<ce.length;He++)ct.indexOf(ce[He])<0&&Object.prototype.propertyIsEnumerable.call(ot,ce[He])&&(Se[ce[He]]=ot[ce[He]]);return Se};function ye(ot,ct){if(!ot)return;ot.focus(ct);const{cursor:Se}=ct||{};if(Se){const ce=ot.value.length;switch(Se){case"start":ot.setSelectionRange(0,0);break;case"end":ot.setSelectionRange(ce,ce);break;default:ot.setSelectionRange(0,ce);break}}}var Pt=(0,ke.forwardRef)((ot,ct)=>{var Se;const{prefixCls:ce,bordered:He=!0,status:je,size:it,disabled:at,onBlur:Ge,onFocus:Ae,suffix:wt,allowClear:dt,addonAfter:$t,addonBefore:bt,className:Ot,style:Pn,styles:$n,rootClassName:yt,onChange:Be,classNames:Rt}=ot,Vn=Xe(ot,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:In,direction:xt,input:Mt}=ke.useContext(we.E_),qt=In("input",ce),an=(0,ke.useRef)(null),[ln,Yt]=(0,qe.ZP)(qt),{compactSize:Cn,compactItemClassnames:pr}=(0,Re.ri)(qt,xt),Xn=(0,Le.Z)(Xt=>{var Jt;return(Jt=it!=null?it:Cn)!==null&&Jt!==void 0?Jt:Xt}),ze=ke.useContext(pe.Z),fe=at!=null?at:ze,{status:ue,hasFeedback:xe,feedbackIcon:ge}=(0,ke.useContext)(nt.aM),se=(0,de.F)(ue,je),Fe=lt(ot)||!!xe,st=(0,ke.useRef)(Fe);(0,ke.useEffect)(()=>{var Xt;Fe&&st.current,st.current=Fe},[Fe]);const en=(0,We.Z)(an,!0),Sn=Xt=>{en(),Ge==null||Ge(Xt)},dn=Xt=>{en(),Ae==null||Ae(Xt)},zn=Xt=>{en(),Be==null||Be(Xt)},vn=(xe||wt)&&ke.createElement(ke.Fragment,null,wt,xe&&ge);let kt;return typeof dt=="object"&&(dt!=null&&dt.clearIcon)?kt=dt:dt&&(kt={clearIcon:ke.createElement(le.Z,null)}),ln(ke.createElement(Ue.default,Object.assign({ref:(0,be.sQ)(ct,an),prefixCls:qt,autoComplete:Mt==null?void 0:Mt.autoComplete},Vn,{disabled:fe,onBlur:Sn,onFocus:dn,style:Object.assign(Object.assign({},Mt==null?void 0:Mt.style),Pn),styles:Object.assign(Object.assign({},Mt==null?void 0:Mt.styles),$n),suffix:vn,allowClear:kt,className:Ne()(Ot,yt,pr,Mt==null?void 0:Mt.className),onChange:zn,addonAfter:$t&&ke.createElement(Re.BR,null,ke.createElement(nt.Ux,{override:!0,status:!0},$t)),addonBefore:bt&&ke.createElement(Re.BR,null,ke.createElement(nt.Ux,{override:!0,status:!0},bt)),classNames:Object.assign(Object.assign(Object.assign({},Rt),Mt==null?void 0:Mt.classNames),{input:Ne()({[`${qt}-sm`]:Xn==="small",[`${qt}-lg`]:Xn==="large",[`${qt}-rtl`]:xt==="rtl",[`${qt}-borderless`]:!He},!Fe&&(0,de.Z)(qt,se),Rt==null?void 0:Rt.input,(Se=Mt==null?void 0:Mt.classNames)===null||Se===void 0?void 0:Se.input,Yt)}),classes:{affixWrapper:Ne()({[`${qt}-affix-wrapper-sm`]:Xn==="small",[`${qt}-affix-wrapper-lg`]:Xn==="large",[`${qt}-affix-wrapper-rtl`]:xt==="rtl",[`${qt}-affix-wrapper-borderless`]:!He},(0,de.Z)(`${qt}-affix-wrapper`,se,xe),Yt),wrapper:Ne()({[`${qt}-group-rtl`]:xt==="rtl"},Yt),group:Ne()({[`${qt}-group-wrapper-sm`]:Xn==="small",[`${qt}-group-wrapper-lg`]:Xn==="large",[`${qt}-group-wrapper-rtl`]:xt==="rtl",[`${qt}-group-wrapper-disabled`]:fe},(0,de.Z)(`${qt}-group-wrapper`,se,xe),Yt)}})))})},96330:function(Nn,Nt,te){"use strict";var le=te(16646),Me=te(94184),Ne=te.n(Me),Ue=te(64701),be=te(67294),ke=te(9708),de=te(53124),we=te(98866),pe=te(98675),Le=te(65223),nt=te(82586),Re=te(47673),We=function(lt,Xe){var ye={};for(var vt in lt)Object.prototype.hasOwnProperty.call(lt,vt)&&Xe.indexOf(vt)<0&&(ye[vt]=lt[vt]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,vt=Object.getOwnPropertySymbols(lt);Pt<vt.length;Pt++)Xe.indexOf(vt[Pt])<0&&Object.prototype.propertyIsEnumerable.call(lt,vt[Pt])&&(ye[vt[Pt]]=lt[vt[Pt]]);return ye};const qe=(0,be.forwardRef)((lt,Xe)=>{const{prefixCls:ye,bordered:vt=!0,size:Pt,disabled:ot,status:ct,allowClear:Se,showCount:ce,classNames:He,rootClassName:je,className:it}=lt,at=We(lt,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Ge,direction:Ae}=be.useContext(de.E_),wt=(0,pe.Z)(Pt),dt=be.useContext(we.Z),$t=ot!=null?ot:dt,{status:bt,hasFeedback:Ot,feedbackIcon:Pn}=be.useContext(Le.aM),$n=(0,ke.F)(bt,ct),yt=be.useRef(null);be.useImperativeHandle(Xe,()=>{var xt;return{resizableTextArea:(xt=yt.current)===null||xt===void 0?void 0:xt.resizableTextArea,focus:Mt=>{var qt,an;(0,nt.n)((an=(qt=yt.current)===null||qt===void 0?void 0:qt.resizableTextArea)===null||an===void 0?void 0:an.textArea,Mt)},blur:()=>{var Mt;return(Mt=yt.current)===null||Mt===void 0?void 0:Mt.blur()}}});const Be=Ge("input",ye);let Rt;typeof Se=="object"&&(Se!=null&&Se.clearIcon)?Rt=Se:Se&&(Rt={clearIcon:be.createElement(le.Z,null)});const[Vn,In]=(0,Re.ZP)(Be);return Vn(be.createElement(Ue.default,Object.assign({},at,{disabled:$t,allowClear:Rt,className:Ne()(it,je),classes:{affixWrapper:Ne()(`${Be}-textarea-affix-wrapper`,{[`${Be}-affix-wrapper-rtl`]:Ae==="rtl",[`${Be}-affix-wrapper-borderless`]:!vt,[`${Be}-affix-wrapper-sm`]:wt==="small",[`${Be}-affix-wrapper-lg`]:wt==="large",[`${Be}-textarea-show-count`]:ce},(0,ke.Z)(`${Be}-affix-wrapper`,$n),In)},classNames:Object.assign(Object.assign({},He),{textarea:Ne()({[`${Be}-borderless`]:!vt,[`${Be}-sm`]:wt==="small",[`${Be}-lg`]:wt==="large"},(0,ke.Z)(Be,$n),In,He==null?void 0:He.textarea)}),prefixCls:Be,suffix:Ot&&be.createElement("span",{className:`${Be}-textarea-suffix`},Pn),showCount:ce,ref:yt})))});Nt.Z=qe},72922:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return Me}});var le=te(67294);function Me(Ne,Ue){const be=(0,le.useRef)([]),ke=()=>{be.current.push(setTimeout(()=>{var de,we,pe,Le;!((de=Ne.current)===null||de===void 0)&&de.input&&((we=Ne.current)===null||we===void 0?void 0:we.input.getAttribute("type"))==="password"&&(!((pe=Ne.current)===null||pe===void 0)&&pe.input.hasAttribute("value"))&&((Le=Ne.current)===null||Le===void 0||Le.input.removeAttribute("value"))}))};return(0,le.useEffect)(()=>(Ue&&ke(),()=>be.current.forEach(de=>{de&&clearTimeout(de)})),[]),ke}},69677:function(Nn,Nt,te){"use strict";te.d(Nt,{default:function(){return wt}});var le=te(94184),Me=te.n(le),Ne=te(67294),Ue=te(53124),be=te(65223),ke=te(47673),we=dt=>{const{getPrefixCls:$t,direction:bt}=(0,Ne.useContext)(Ue.E_),{prefixCls:Ot,className:Pn}=dt,$n=$t("input-group",Ot),yt=$t("input"),[Be,Rt]=(0,ke.ZP)(yt),Vn=Me()($n,{[`${$n}-lg`]:dt.size==="large",[`${$n}-sm`]:dt.size==="small",[`${$n}-compact`]:dt.compact,[`${$n}-rtl`]:bt==="rtl"},Rt,Pn),In=(0,Ne.useContext)(be.aM),xt=(0,Ne.useMemo)(()=>Object.assign(Object.assign({},In),{isFormItemInput:!1}),[In]);return Be(Ne.createElement("span",{className:Vn,style:dt.style,onMouseEnter:dt.onMouseEnter,onMouseLeave:dt.onMouseLeave,onFocus:dt.onFocus,onBlur:dt.onBlur},Ne.createElement(be.aM.Provider,{value:xt},dt.children)))},pe=te(82586),Le=te(63237),nt=te(99569),Re=te(10366),We=te(17799),qe=te(72922),lt=function(dt,$t){var bt={};for(var Ot in dt)Object.prototype.hasOwnProperty.call(dt,Ot)&&$t.indexOf(Ot)<0&&(bt[Ot]=dt[Ot]);if(dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pn=0,Ot=Object.getOwnPropertySymbols(dt);Pn<Ot.length;Pn++)$t.indexOf(Ot[Pn])<0&&Object.prototype.propertyIsEnumerable.call(dt,Ot[Pn])&&(bt[Ot[Pn]]=dt[Ot[Pn]]);return bt};const Xe=dt=>dt?Ne.createElement(nt.Z,null):Ne.createElement(Le.Z,null),ye={click:"onClick",hover:"onMouseOver"};var Pt=Ne.forwardRef((dt,$t)=>{const{visibilityToggle:bt=!0}=dt,Ot=typeof bt=="object"&&bt.visible!==void 0,[Pn,$n]=(0,Ne.useState)(()=>Ot?bt.visible:!1),yt=(0,Ne.useRef)(null);Ne.useEffect(()=>{Ot&&$n(bt.visible)},[Ot,bt]);const Be=(0,qe.Z)(yt),Rt=()=>{const{disabled:fe}=dt;fe||(Pn&&Be(),$n(ue=>{var xe;const ge=!ue;return typeof bt=="object"&&((xe=bt.onVisibleChange)===null||xe===void 0||xe.call(bt,ge)),ge}))},Vn=fe=>{const{action:ue="click",iconRender:xe=Xe}=dt,ge=ye[ue]||"",se=xe(Pn),Fe={[ge]:Rt,className:`${fe}-icon`,key:"passwordIcon",onMouseDown:st=>{st.preventDefault()},onMouseUp:st=>{st.preventDefault()}};return Ne.cloneElement(Ne.isValidElement(se)?se:Ne.createElement("span",null,se),Fe)},{className:In,prefixCls:xt,inputPrefixCls:Mt,size:qt}=dt,an=lt(dt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:ln}=Ne.useContext(Ue.E_),Yt=ln("input",Mt),Cn=ln("input-password",xt),pr=bt&&Vn(Cn),Xn=Me()(Cn,In,{[`${Cn}-${qt}`]:!!qt}),ze=Object.assign(Object.assign({},(0,Re.Z)(an,["suffix","iconRender","visibilityToggle"])),{type:Pn?"text":"password",className:Xn,prefixCls:Yt,suffix:pr});return qt&&(ze.size=qt),Ne.createElement(pe.Z,Object.assign({ref:(0,We.sQ)($t,yt)},ze))}),ot=te(72395),ct=te(96159),Se=te(71577),ce=te(98675),He=te(4173),je=function(dt,$t){var bt={};for(var Ot in dt)Object.prototype.hasOwnProperty.call(dt,Ot)&&$t.indexOf(Ot)<0&&(bt[Ot]=dt[Ot]);if(dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pn=0,Ot=Object.getOwnPropertySymbols(dt);Pn<Ot.length;Pn++)$t.indexOf(Ot[Pn])<0&&Object.prototype.propertyIsEnumerable.call(dt,Ot[Pn])&&(bt[Ot[Pn]]=dt[Ot[Pn]]);return bt},at=Ne.forwardRef((dt,$t)=>{const{prefixCls:bt,inputPrefixCls:Ot,className:Pn,size:$n,suffix:yt,enterButton:Be=!1,addonAfter:Rt,loading:Vn,disabled:In,onSearch:xt,onChange:Mt,onCompositionStart:qt,onCompositionEnd:an}=dt,ln=je(dt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Yt,direction:Cn}=Ne.useContext(Ue.E_),pr=Ne.useRef(!1),Xn=Yt("input-search",bt),ze=Yt("input",Ot),{compactSize:fe}=(0,He.ri)(Xn,Cn),ue=(0,ce.Z)(jt=>{var Bt;return(Bt=$n!=null?$n:fe)!==null&&Bt!==void 0?Bt:jt}),xe=Ne.useRef(null),ge=jt=>{jt&&jt.target&&jt.type==="click"&&xt&&xt(jt.target.value,jt,{source:"clear"}),Mt&&Mt(jt)},se=jt=>{var Bt;document.activeElement===((Bt=xe.current)===null||Bt===void 0?void 0:Bt.input)&&jt.preventDefault()},Fe=jt=>{var Bt,ir;xt&&xt((ir=(Bt=xe.current)===null||Bt===void 0?void 0:Bt.input)===null||ir===void 0?void 0:ir.value,jt,{source:"input"})},st=jt=>{pr.current||Vn||Fe(jt)},en=typeof Be=="boolean"?Ne.createElement(ot.Z,null):null,Sn=`${Xn}-button`;let dn;const zn=Be||{},vn=zn.type&&zn.type.__ANT_BUTTON===!0;vn||zn.type==="button"?dn=(0,ct.Tm)(zn,Object.assign({onMouseDown:se,onClick:jt=>{var Bt,ir;(ir=(Bt=zn==null?void 0:zn.props)===null||Bt===void 0?void 0:Bt.onClick)===null||ir===void 0||ir.call(Bt,jt),Fe(jt)},key:"enterButton"},vn?{className:Sn,size:ue}:{})):dn=Ne.createElement(Se.ZP,{className:Sn,type:Be?"primary":void 0,size:ue,disabled:In,key:"enterButton",onMouseDown:se,onClick:Fe,loading:Vn,icon:en},Be),Rt&&(dn=[dn,(0,ct.Tm)(Rt,{key:"addonAfter"})]);const kt=Me()(Xn,{[`${Xn}-rtl`]:Cn==="rtl",[`${Xn}-${ue}`]:!!ue,[`${Xn}-with-button`]:!!Be},Pn),Xt=jt=>{pr.current=!0,qt==null||qt(jt)},Jt=jt=>{pr.current=!1,an==null||an(jt)};return Ne.createElement(pe.Z,Object.assign({ref:(0,We.sQ)(xe,$t),onPressEnter:st},ln,{size:ue,onCompositionStart:Xt,onCompositionEnd:Jt,prefixCls:ze,addonAfter:dn,suffix:yt,onChange:ge,className:kt,disabled:In}))}),Ge=te(96330);const Ae=pe.Z;Ae.Group=we,Ae.Search=at,Ae.TextArea=Ge.Z,Ae.Password=Pt;var wt=Ae},47673:function(Nn,Nt,te){"use strict";te.d(Nt,{M1:function(){return de},TM:function(){return ct},Xy:function(){return we},bi:function(){return nt},e5:function(){return ot},ik:function(){return Re},nz:function(){return be},pU:function(){return ke},s7:function(){return We},x0:function(){return Le}});var le=te(14747),Me=te(80110),Ne=te(45503),Ue=te(67968);const be=Se=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:Se,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),ke=Se=>({borderColor:Se.hoverBorderColor}),de=Se=>({borderColor:Se.activeBorderColor,boxShadow:Se.activeShadow,outline:0}),we=Se=>({color:Se.colorTextDisabled,backgroundColor:Se.colorBgContainerDisabled,borderColor:Se.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},ke((0,Ne.TS)(Se,{hoverBorderColor:Se.colorBorder})))}),pe=Se=>{const{paddingBlockLG:ce,fontSizeLG:He,lineHeightLG:je,borderRadiusLG:it,paddingInlineLG:at}=Se;return{padding:`${ce}px ${at}px`,fontSize:He,lineHeight:je,borderRadius:it}},Le=Se=>({padding:`${Se.paddingBlockSM}px ${Se.paddingInlineSM}px`,borderRadius:Se.borderRadiusSM}),nt=(Se,ce)=>{const{componentCls:He,colorError:je,colorWarning:it,errorActiveShadow:at,warningActiveShadow:Ge,colorErrorBorderHover:Ae,colorWarningBorderHover:wt}=Se;return{[`&-status-error:not(${ce}-disabled):not(${ce}-borderless)${ce}`]:{borderColor:je,"&:hover":{borderColor:Ae},"&:focus, &-focused":Object.assign({},de((0,Ne.TS)(Se,{activeBorderColor:je,activeShadow:at}))),[`${He}-prefix, ${He}-suffix`]:{color:je}},[`&-status-warning:not(${ce}-disabled):not(${ce}-borderless)${ce}`]:{borderColor:it,"&:hover":{borderColor:wt},"&:focus, &-focused":Object.assign({},de((0,Ne.TS)(Se,{activeBorderColor:it,activeShadow:Ge}))),[`${He}-prefix, ${He}-suffix`]:{color:it}}}},Re=Se=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Se.paddingBlock}px ${Se.paddingInline}px`,color:Se.colorText,fontSize:Se.fontSize,lineHeight:Se.lineHeight,backgroundColor:Se.colorBgContainer,backgroundImage:"none",borderWidth:Se.lineWidth,borderStyle:Se.lineType,borderColor:Se.colorBorder,borderRadius:Se.borderRadius,transition:`all ${Se.motionDurationMid}`},be(Se.colorTextPlaceholder)),{"&:hover":Object.assign({},ke(Se)),"&:focus, &-focused":Object.assign({},de(Se)),"&-disabled, &[disabled]":Object.assign({},we(Se)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:Se.controlHeight,lineHeight:Se.lineHeight,verticalAlign:"bottom",transition:`all ${Se.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},pe(Se)),"&-sm":Object.assign({},Le(Se)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),We=Se=>{const{componentCls:ce,antCls:He}=Se;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:Se.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${ce}, &-lg > ${ce}-group-addon`]:Object.assign({},pe(Se)),[`&-sm ${ce}, &-sm > ${ce}-group-addon`]:Object.assign({},Le(Se)),[`&-lg ${He}-select-single ${He}-select-selector`]:{height:Se.controlHeightLG},[`&-sm ${He}-select-single ${He}-select-selector`]:{height:Se.controlHeightSM},[`> ${ce}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${ce}-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 ${Se.paddingInline}px`,color:Se.colorText,fontWeight:"normal",fontSize:Se.fontSize,textAlign:"center",backgroundColor:Se.colorFillAlter,border:`${Se.lineWidth}px ${Se.lineType} ${Se.colorBorder}`,borderRadius:Se.borderRadius,transition:`all ${Se.motionDurationSlow}`,lineHeight:1,[`${He}-select`]:{margin:`-${Se.paddingBlock+1}px -${Se.paddingInline}px`,[`&${He}-select-single:not(${He}-select-customize-input)`]:{[`${He}-select-selector`]:{backgroundColor:"inherit",border:`${Se.lineWidth}px ${Se.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${He}-select-selector`]:{color:Se.colorPrimary}}},[`${He}-cascader-picker`]:{margin:`-9px -${Se.paddingInline}px`,backgroundColor:"transparent",[`${He}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${ce}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${ce}-search-with-button &`]:{zIndex:0}}},[`> ${ce}:first-child, ${ce}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${He}-select ${He}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${ce}-affix-wrapper`]:{[`&:not(:first-child) ${ce}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${ce}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${ce}:last-child, ${ce}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${He}-select ${He}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${ce}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${ce}-search &`]:{borderStartStartRadius:Se.borderRadius,borderEndStartRadius:Se.borderRadius}},[`&:not(:first-child), ${ce}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${ce}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,le.dF)()),{[`${ce}-group-addon, ${ce}-group-wrap, > ${ce}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:Se.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
& > ${ce}-affix-wrapper,
& > ${ce}-number-affix-wrapper,
& > ${He}-picker-range
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-Se.lineWidth,borderInlineEndWidth:Se.lineWidth},[`${ce}`]:{float:"none"},[`& > ${He}-select > ${He}-select-selector,
& > ${He}-select-auto-complete ${ce},
& > ${He}-cascader-picker ${ce},
& > ${ce}-group-wrapper ${ce}`]:{borderInlineEndWidth:Se.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${He}-select-focused`]:{zIndex:1},[`& > ${He}-select > ${He}-select-arrow`]:{zIndex:1},[`& > *:first-child,
& > ${He}-select:first-child > ${He}-select-selector,
& > ${He}-select-auto-complete:first-child ${ce},
& > ${He}-cascader-picker:first-child ${ce}`]:{borderStartStartRadius:Se.borderRadius,borderEndStartRadius:Se.borderRadius},[`& > *:last-child,
& > ${He}-select:last-child > ${He}-select-selector,
& > ${He}-cascader-picker:last-child ${ce},
& > ${He}-cascader-picker-focused:last-child ${ce}`]:{borderInlineEndWidth:Se.lineWidth,borderStartEndRadius:Se.borderRadius,borderEndEndRadius:Se.borderRadius},[`& > ${He}-select-auto-complete ${ce}`]:{verticalAlign:"top"},[`${ce}-group-wrapper + ${ce}-group-wrapper`]:{marginInlineStart:-Se.lineWidth,[`${ce}-affix-wrapper`]:{borderRadius:0}},[`${ce}-group-wrapper:not(:last-child)`]:{[`&${ce}-search > ${ce}-group`]:{[`& > ${ce}-group-addon > ${ce}-search-button`]:{borderRadius:0},[`& > ${ce}`]:{borderStartStartRadius:Se.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Se.borderRadius}}}})}},qe=Se=>{const{componentCls:ce,controlHeightSM:He,lineWidth:je}=Se,at=(He-je*2-16)/2;return{[ce]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,le.Wf)(Se)),Re(Se)),nt(Se,ce)),{'&[type="color"]':{height:Se.controlHeight,[`&${ce}-lg`]:{height:Se.controlHeightLG},[`&${ce}-sm`]:{height:He,paddingTop:at,paddingBottom:at}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},lt=Se=>{const{componentCls:ce}=Se;return{[`${ce}-clear-icon`]:{margin:0,color:Se.colorTextQuaternary,fontSize:Se.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${Se.motionDurationSlow}`,"&:hover":{color:Se.colorTextTertiary},"&:active":{color:Se.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Se.inputAffixPadding}px`}}}},Xe=Se=>{const{componentCls:ce,inputAffixPadding:He,colorTextDescription:je,motionDurationSlow:it,colorIcon:at,colorIconHover:Ge,iconCls:Ae}=Se;return{[`${ce}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Re(Se)),{display:"inline-flex",[`&:not(${ce}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},ke(Se)),{zIndex:1,[`${ce}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${ce}[disabled]`]:{background:"transparent"}},[`> input${ce}`]:{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"'},[`${ce}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:Se.paddingXS}},"&-show-count-suffix":{color:je},"&-show-count-has-suffix":{marginInlineEnd:Se.paddingXXS},"&-prefix":{marginInlineEnd:He},"&-suffix":{marginInlineStart:He}}}),lt(Se)),{[`${Ae}${ce}-password-icon`]:{color:at,cursor:"pointer",transition:`all ${it}`,"&:hover":{color:Ge}}}),nt(Se,`${ce}-affix-wrapper`))}},ye=Se=>{const{componentCls:ce,colorError:He,colorWarning:je,borderRadiusLG:it,borderRadiusSM:at}=Se;return{[`${ce}-group`]:Object.assign(Object.assign(Object.assign({},(0,le.Wf)(Se)),We(Se)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${ce}-group-addon`]:{borderRadius:it,fontSize:Se.fontSizeLG}},"&-sm":{[`${ce}-group-addon`]:{borderRadius:at}},"&-status-error":{[`${ce}-group-addon`]:{color:He,borderColor:He}},"&-status-warning":{[`${ce}-group-addon`]:{color:je,borderColor:je}},"&-disabled":{[`${ce}-group-addon`]:Object.assign({},we(Se))},[`&:not(${ce}-compact-first-item):not(${ce}-compact-last-item)${ce}-compact-item`]:{[`${ce}, ${ce}-group-addon`]:{borderRadius:0}},[`&:not(${ce}-compact-last-item)${ce}-compact-first-item`]:{[`${ce}, ${ce}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${ce}-compact-first-item)${ce}-compact-last-item`]:{[`${ce}, ${ce}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},vt=Se=>{const{componentCls:ce,antCls:He}=Se,je=`${ce}-search`;return{[je]:{[`${ce}`]:{"&:hover, &:focus":{borderColor:Se.colorPrimaryHover,[`+ ${ce}-group-addon ${je}-button:not(${He}-btn-primary)`]:{borderInlineStartColor:Se.colorPrimaryHover}}},[`${ce}-affix-wrapper`]:{borderRadius:0},[`${ce}-lg`]:{lineHeight:Se.lineHeightLG-2e-4},[`> ${ce}-group`]:{[`> ${ce}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${je}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:Se.borderRadius,borderEndEndRadius:Se.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${je}-button:not(${He}-btn-primary)`]:{color:Se.colorTextDescription,"&:hover":{color:Se.colorPrimaryHover},"&:active":{color:Se.colorPrimaryActive},[`&${He}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${je}-button`]:{height:Se.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${je}-button`]:{height:Se.controlHeightLG},[`&-small ${je}-button`]:{height:Se.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${ce}-compact-item`]:{[`&:not(${ce}-compact-last-item)`]:{[`${ce}-group-addon`]:{[`${ce}-search-button`]:{marginInlineEnd:-Se.lineWidth,borderRadius:0}}},[`&:not(${ce}-compact-first-item)`]:{[`${ce},${ce}-affix-wrapper`]:{borderRadius:0}},[`> ${ce}-group-addon ${ce}-search-button,
> ${ce},
${ce}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${ce}-affix-wrapper-focused`]:{zIndex:2}}}}},Pt=Se=>{const{componentCls:ce,paddingLG:He}=Se,je=`${ce}-textarea`;return{[je]:{position:"relative","&-show-count":{[`> ${ce}`]:{height:"100%"},[`${ce}-data-count`]:{position:"absolute",bottom:-Se.fontSize*Se.lineHeight,insetInlineEnd:0,color:Se.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${ce}`]:{paddingInlineEnd:He}},[`&-affix-wrapper${je}-has-feedback`]:{[`${ce}`]:{paddingInlineEnd:He}},[`&-affix-wrapper${ce}-affix-wrapper`]:{padding:0,[`> textarea${ce}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${ce}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${ce}-clear-icon`]:{position:"absolute",insetInlineEnd:Se.paddingXS,insetBlockStart:Se.paddingXS},[`${je}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Se.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function ot(Se){return(0,Ne.TS)(Se,{inputAffixPadding:Se.paddingXXS})}const ct=Se=>{const{controlHeight:ce,fontSize:He,lineHeight:je,lineWidth:it,controlHeightSM:at,controlHeightLG:Ge,fontSizeLG:Ae,lineHeightLG:wt,paddingSM:dt,controlPaddingHorizontalSM:$t,controlPaddingHorizontal:bt,colorFillAlter:Ot,colorPrimaryHover:Pn,controlOutlineWidth:$n,controlOutline:yt,colorErrorOutline:Be,colorWarningOutline:Rt}=Se;return{paddingBlock:Math.max(Math.round((ce-He*je)/2*10)/10-it,3),paddingBlockSM:Math.max(Math.round((at-He*je)/2*10)/10-it,0),paddingBlockLG:Math.ceil((Ge-Ae*wt)/2*10)/10-it,paddingInline:dt-it,paddingInlineSM:$t-it,paddingInlineLG:bt-it,addonBg:Ot,activeBorderColor:Pn,hoverBorderColor:Pn,activeShadow:`0 0 0 ${$n}px ${yt}`,errorActiveShadow:`0 0 0 ${$n}px ${Be}`,warningActiveShadow:`0 0 0 ${$n}px ${Rt}`}};Nt.ZP=(0,Ue.Z)("Input",Se=>{const ce=(0,Ne.TS)(Se,ot(Se));return[qe(ce),Pt(ce),Xe(ce),ye(ce),vt(ce),(0,Me.c)(ce)]},ct)},71322:function(Nn,Nt,te){"use strict";te.d(Nt,{D:function(){return Pt},Z:function(){return Se}});var le=te(87462),Me=te(67294),Ne={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"},Ue=Ne,be=te(84089),ke=function(He,je){return Me.createElement(be.Z,(0,le.Z)({},He,{ref:je,icon:Ue}))},de=Me.forwardRef(ke),we=te(22751),pe=te(91034),Le=te(94184),nt=te.n(Le),Re=te(10366),qe=ce=>!isNaN(parseFloat(ce))&&isFinite(ce),lt=te(53124),Xe=te(84321),ye=function(ce,He){var je={};for(var it in ce)Object.prototype.hasOwnProperty.call(ce,it)&&He.indexOf(it)<0&&(je[it]=ce[it]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,it=Object.getOwnPropertySymbols(ce);at<it.length;at++)He.indexOf(it[at])<0&&Object.prototype.propertyIsEnumerable.call(ce,it[at])&&(je[it[at]]=ce[it[at]]);return je};const vt={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Pt=Me.createContext({}),ot=(()=>{let ce=0;return function(){let He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ce+=1,`${He}${ce}`}})();var Se=Me.forwardRef((ce,He)=>{const{prefixCls:je,className:it,trigger:at,children:Ge,defaultCollapsed:Ae=!1,theme:wt="dark",style:dt={},collapsible:$t=!1,reverseArrow:bt=!1,width:Ot=200,collapsedWidth:Pn=80,zeroWidthTriggerStyle:$n,breakpoint:yt,onCollapse:Be,onBreakpoint:Rt}=ce,Vn=ye(ce,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:In}=(0,Me.useContext)(Xe.Gs),[xt,Mt]=(0,Me.useState)("collapsed"in ce?ce.collapsed:Ae),[qt,an]=(0,Me.useState)(!1);(0,Me.useEffect)(()=>{"collapsed"in ce&&Mt(ce.collapsed)},[ce.collapsed]);const ln=(fe,ue)=>{"collapsed"in ce||Mt(fe),Be==null||Be(fe,ue)},Yt=(0,Me.useRef)();Yt.current=fe=>{an(fe.matches),Rt==null||Rt(fe.matches),xt!==fe.matches&&ln(fe.matches,"responsive")},(0,Me.useEffect)(()=>{function fe(xe){return Yt.current(xe)}let ue;if(typeof window!="undefined"){const{matchMedia:xe}=window;if(xe&&yt&&yt in vt){ue=xe(`(max-width: ${vt[yt]})`);try{ue.addEventListener("change",fe)}catch(ge){ue.addListener(fe)}fe(ue)}}return()=>{try{ue==null||ue.removeEventListener("change",fe)}catch(xe){ue==null||ue.removeListener(fe)}}},[yt]),(0,Me.useEffect)(()=>{const fe=ot("ant-sider-");return In.addSider(fe),()=>In.removeSider(fe)},[]);const Cn=()=>{ln(!xt,"clickTrigger")},{getPrefixCls:pr}=(0,Me.useContext)(lt.E_),Xn=()=>{const fe=pr("layout-sider",je),ue=(0,Re.Z)(Vn,["collapsed"]),xe=xt?Pn:Ot,ge=qe(xe)?`${xe}px`:String(xe),se=parseFloat(String(Pn||0))===0?Me.createElement("span",{onClick:Cn,className:nt()(`${fe}-zero-width-trigger`,`${fe}-zero-width-trigger-${bt?"right":"left"}`),style:$n},at||Me.createElement(de,null)):null,en={expanded:bt?Me.createElement(pe.Z,null):Me.createElement(we.Z,null),collapsed:bt?Me.createElement(we.Z,null):Me.createElement(pe.Z,null)}[xt?"collapsed":"expanded"],Sn=at!==null?se||Me.createElement("div",{className:`${fe}-trigger`,onClick:Cn,style:{width:ge}},at||en):null,dn=Object.assign(Object.assign({},dt),{flex:`0 0 ${ge}`,maxWidth:ge,minWidth:ge,width:ge}),zn=nt()(fe,`${fe}-${wt}`,{[`${fe}-collapsed`]:!!xt,[`${fe}-has-trigger`]:$t&&at!==null&&!se,[`${fe}-below`]:!!qt,[`${fe}-zero-width`]:parseFloat(ge)===0},it);return Me.createElement("aside",Object.assign({className:zn},ue,{style:dn,ref:He}),Me.createElement("div",{className:`${fe}-children`},Ge),$t||qt&&se?Sn:null)},ze=Me.useMemo(()=>({siderCollapsed:xt}),[xt]);return Me.createElement(Pt.Provider,{value:ze},Xn())})},84321:function(Nn,Nt,te){"use strict";te.d(Nt,{VY:function(){return ot},$_:function(){return Pt},h4:function(){return vt},Gs:function(){return We},ZP:function(){return ct}});var le=te(74902),Me=te(94184),Ne=te.n(Me),Ue=te(10366),be=te(67294),ke=te(53124),de=te(67968),pe=Se=>{const{componentCls:ce,bodyBg:He,lightSiderBg:je,lightTriggerBg:it,lightTriggerColor:at}=Se;return{[`${ce}-sider-light`]:{background:je,[`${ce}-sider-trigger`]:{color:at,background:it},[`${ce}-sider-zero-width-trigger`]:{color:at,background:it,border:`1px solid ${He}`,borderInlineStart:0}}}};const Le=Se=>{const{antCls:ce,componentCls:He,colorText:je,triggerColor:it,footerBg:at,triggerBg:Ge,headerHeight:Ae,headerPadding:wt,headerColor:dt,footerPadding:$t,triggerHeight:bt,zeroTriggerHeight:Ot,zeroTriggerWidth:Pn,motionDurationMid:$n,motionDurationSlow:yt,fontSize:Be,borderRadius:Rt,bodyBg:Vn,headerBg:In,siderBg:xt}=Se;return{[He]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Vn,"&, *":{boxSizing:"border-box"},[`&${He}-has-sider`]:{flexDirection:"row",[`> ${He}, > ${He}-content`]:{width:0}},[`${He}-header, &${He}-footer`]:{flex:"0 0 auto"},[`${He}-sider`]:{position:"relative",minWidth:0,background:xt,transition:`all ${$n}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${ce}-menu${ce}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:bt},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:bt,color:it,lineHeight:`${bt}px`,textAlign:"center",background:Ge,cursor:"pointer",transition:`all ${$n}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ae,insetInlineEnd:-Pn,zIndex:1,width:Pn,height:Ot,color:it,fontSize:Se.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:xt,borderStartStartRadius:0,borderStartEndRadius:Rt,borderEndEndRadius:Rt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${yt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${yt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Pn,borderStartStartRadius:Rt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Rt}}}}},pe(Se)),{"&-rtl":{direction:"rtl"}}),[`${He}-header`]:{height:Ae,padding:wt,color:dt,lineHeight:`${Ae}px`,background:In,[`${ce}-menu`]:{lineHeight:"inherit"}},[`${He}-footer`]:{padding:$t,color:je,fontSize:Be,background:at},[`${He}-content`]:{flex:"auto",minHeight:0}}};var nt=(0,de.Z)("Layout",Se=>[Le(Se)],Se=>{const{colorBgLayout:ce,controlHeight:He,controlHeightLG:je,colorText:it,controlHeightSM:at,marginXXS:Ge,colorTextLightSolid:Ae,colorBgContainer:wt}=Se,dt=je*1.25;return{colorBgHeader:"#001529",colorBgBody:ce,colorBgTrigger:"#002140",bodyBg:ce,headerBg:"#001529",headerHeight:He*2,headerPadding:`0 ${dt}px`,headerColor:it,footerPadding:`${at}px ${dt}px`,footerBg:ce,siderBg:"#001529",triggerHeight:je+Ge*2,triggerBg:"#002140",triggerColor:Ae,zeroTriggerWidth:je,zeroTriggerHeight:je,lightSiderBg:wt,lightTriggerBg:wt,lightTriggerColor:it}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Re=function(Se,ce){var He={};for(var je in Se)Object.prototype.hasOwnProperty.call(Se,je)&&ce.indexOf(je)<0&&(He[je]=Se[je]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,je=Object.getOwnPropertySymbols(Se);it<je.length;it++)ce.indexOf(je[it])<0&&Object.prototype.propertyIsEnumerable.call(Se,je[it])&&(He[je[it]]=Se[je[it]]);return He};const We=be.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function qe(Se){let{suffixCls:ce,tagName:He,displayName:je}=Se;return it=>be.forwardRef((Ge,Ae)=>be.createElement(it,Object.assign({ref:Ae,suffixCls:ce,tagName:He},Ge)))}const lt=be.forwardRef((Se,ce)=>{const{prefixCls:He,suffixCls:je,className:it,tagName:at}=Se,Ge=Re(Se,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ae}=be.useContext(ke.E_),wt=Ae("layout",He),[dt,$t]=nt(wt),bt=je?`${wt}-${je}`:wt;return dt(be.createElement(at,Object.assign({className:Ne()(He||bt,it,$t),ref:ce},Ge)))}),Xe=be.forwardRef((Se,ce)=>{const{direction:He}=be.useContext(ke.E_),[je,it]=be.useState([]),{prefixCls:at,className:Ge,rootClassName:Ae,children:wt,hasSider:dt,tagName:$t,style:bt}=Se,Ot=Re(Se,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Pn=(0,Ue.Z)(Ot,["suffixCls"]),{getPrefixCls:$n,layout:yt}=be.useContext(ke.E_),Be=$n("layout",at),[Rt,Vn]=nt(Be),In=Ne()(Be,{[`${Be}-has-sider`]:typeof dt=="boolean"?dt:je.length>0,[`${Be}-rtl`]:He==="rtl"},yt==null?void 0:yt.className,Ge,Ae,Vn),xt=be.useMemo(()=>({siderHook:{addSider:Mt=>{it(qt=>[].concat((0,le.Z)(qt),[Mt]))},removeSider:Mt=>{it(qt=>qt.filter(an=>an!==Mt))}}}),[]);return Rt(be.createElement(We.Provider,{value:xt},be.createElement($t,Object.assign({ref:ce,className:In,style:Object.assign(Object.assign({},yt==null?void 0:yt.style),bt)},Pn),wt)))}),ye=qe({tagName:"div",displayName:"Layout"})(Xe),vt=qe({suffixCls:"header",tagName:"header",displayName:"Header"})(lt),Pt=qe({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(lt),ot=qe({suffixCls:"content",tagName:"main",displayName:"Content"})(lt);var ct=ye},76529:function(Nn,Nt,te){"use strict";te.d(Nt,{J:function(){return ke}});var le=te(67294),Me=te(4173),Ne=te(60276),Ue=function(de,we){var pe={};for(var Le in de)Object.prototype.hasOwnProperty.call(de,Le)&&we.indexOf(Le)<0&&(pe[Le]=de[Le]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Le=Object.getOwnPropertySymbols(de);nt<Le.length;nt++)we.indexOf(Le[nt])<0&&Object.prototype.propertyIsEnumerable.call(de,Le[nt])&&(pe[Le[nt]]=de[Le[nt]]);return pe};const be=le.createContext(null),ke=le.forwardRef((de,we)=>{const{children:pe}=de,Le=Ue(de,["children"]),nt=le.useContext(be),Re=le.useMemo(()=>Object.assign(Object.assign({},nt),Le),[nt,Le.prefixCls,Le.mode,Le.selectable]);return le.createElement(be.Provider,{value:Re},le.createElement(Me.BR,null,(0,Ne.supportNodeRef)(pe)?le.cloneElement(pe,{ref:we}):pe))});Nt.Z=be},68508:function(Nn,Nt,te){"use strict";te.d(Nt,{default:function(){return fe}});var le=te(78595),Me=te(67294),Ne=te(71322),Ue=te(94184),be=te.n(Ue),ke=te(53124),de=function(ue,xe){var ge={};for(var se in ue)Object.prototype.hasOwnProperty.call(ue,se)&&xe.indexOf(se)<0&&(ge[se]=ue[se]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,se=Object.getOwnPropertySymbols(ue);Fe<se.length;Fe++)xe.indexOf(se[Fe])<0&&Object.prototype.propertyIsEnumerable.call(ue,se[Fe])&&(ge[se[Fe]]=ue[se[Fe]]);return ge},pe=ue=>{const{prefixCls:xe,className:ge,dashed:se}=ue,Fe=de(ue,["prefixCls","className","dashed"]),{getPrefixCls:st}=Me.useContext(ke.E_),en=st("menu",xe),Sn=be()({[`${en}-item-divider-dashed`]:!!se},ge);return Me.createElement(le.iz,Object.assign({className:Sn},Fe))},Le=te(37419),nt=te(10366),Re=te(83062),We=te(96159),lt=(0,Me.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ye=ue=>{var xe;const{className:ge,children:se,icon:Fe,title:st,danger:en}=ue,{prefixCls:Sn,firstLevel:dn,direction:zn,disableMenuItemTitleTooltip:vn,inlineCollapsed:kt}=Me.useContext(lt),Xt=At=>{const er=Me.createElement("span",{className:`${Sn}-title-content`},se);return(!Fe||(0,We.l$)(se)&&se.type==="span")&&se&&At&&dn&&typeof se=="string"?Me.createElement("div",{className:`${Sn}-inline-collapsed-noicon`},se.charAt(0)):er},{siderCollapsed:Jt}=Me.useContext(Ne.D);let jt=st;typeof st=="undefined"?jt=dn?se:"":st===!1&&(jt="");const Bt={title:jt};!Jt&&!kt&&(Bt.title=null,Bt.open=!1);const ir=(0,Le.Z)(se).length;let Ct=Me.createElement(le.ck,Object.assign({},(0,nt.Z)(ue,["title","icon","danger"]),{className:be()({[`${Sn}-item-danger`]:en,[`${Sn}-item-only-child`]:(Fe?ir+1:ir)===1},ge),title:typeof st=="string"?st:void 0}),(0,We.Tm)(Fe,{className:be()((0,We.l$)(Fe)?(xe=Fe.props)===null||xe===void 0?void 0:xe.className:"",`${Sn}-item-icon`)}),Xt(kt));return vn||(Ct=Me.createElement(Re.Z,Object.assign({},Bt,{placement:zn==="rtl"?"left":"right",overlayClassName:`${Sn}-inline-collapsed-tooltip`}),Ct)),Ct},Pt=ue=>{var xe;const{popupClassName:ge,icon:se,title:Fe,theme:st}=ue,en=Me.useContext(lt),{prefixCls:Sn,inlineCollapsed:dn,theme:zn}=en,vn=(0,le.Xl)();let kt;if(!se)kt=dn&&!vn.length&&Fe&&typeof Fe=="string"?Me.createElement("div",{className:`${Sn}-inline-collapsed-noicon`},Fe.charAt(0)):Me.createElement("span",{className:`${Sn}-title-content`},Fe);else{const Jt=(0,We.l$)(Fe)&&Fe.type==="span";kt=Me.createElement(Me.Fragment,null,(0,We.Tm)(se,{className:be()((0,We.l$)(se)?(xe=se.props)===null||xe===void 0?void 0:xe.className:"",`${Sn}-item-icon`)}),Jt?Fe:Me.createElement("span",{className:`${Sn}-title-content`},Fe))}const Xt=Me.useMemo(()=>Object.assign(Object.assign({},en),{firstLevel:!1}),[en]);return Me.createElement(lt.Provider,{value:Xt},Me.createElement(le.Wd,Object.assign({},(0,nt.Z)(ue,["icon"]),{title:kt,popupClassName:be()(Sn,ge,`${Sn}-${st||zn}`)})))},ot=te(25877),ct=te(60276),Se=te(33603),ce=te(76529),He=function(ue,xe){var ge={};for(var se in ue)Object.prototype.hasOwnProperty.call(ue,se)&&xe.indexOf(se)<0&&(ge[se]=ue[se]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,se=Object.getOwnPropertySymbols(ue);Fe<se.length;Fe++)xe.indexOf(se[Fe])<0&&Object.prototype.propertyIsEnumerable.call(ue,se[Fe])&&(ge[se[Fe]]=ue[se[Fe]]);return ge};function je(ue){return(ue||[]).map((xe,ge)=>{if(xe&&typeof xe=="object"){const se=xe,{label:Fe,children:st,key:en,type:Sn}=se,dn=He(se,["label","children","key","type"]),zn=en!=null?en:`tmp-${ge}`;return st||Sn==="group"?Sn==="group"?Me.createElement(le.BW,Object.assign({key:zn},dn,{title:Fe}),je(st)):Me.createElement(Pt,Object.assign({key:zn},dn,{title:Fe}),je(st)):Sn==="divider"?Me.createElement(pe,Object.assign({key:zn},dn)):Me.createElement(ye,Object.assign({key:zn},dn),Fe)}return null}).filter(xe=>xe)}function it(ue){return Me.useMemo(()=>ue&&je(ue),[ue])}var at=te(84780),Ge=te(14747),Ae=te(33507),wt=te(67771),dt=te(50438),$t=te(67968),bt=te(45503),Pn=ue=>{const{componentCls:xe,motionDurationSlow:ge,horizontalLineHeight:se,colorSplit:Fe,lineWidth:st,lineType:en,itemPaddingInline:Sn}=ue;return{[`${xe}-horizontal`]:{lineHeight:se,border:0,borderBottom:`${st}px ${en} ${Fe}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${xe}-item, ${xe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Sn},[`> ${xe}-item:hover,
> ${xe}-item-active,
> ${xe}-submenu ${xe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${xe}-item, ${xe}-submenu-title`]:{transition:[`border-color ${ge}`,`background ${ge}`].join(",")},[`${xe}-submenu-arrow`]:{display:"none"}}}},yt=ue=>{let{componentCls:xe,menuArrowOffset:ge}=ue;return{[`${xe}-rtl`]:{direction:"rtl"},[`${xe}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${xe}-rtl${xe}-vertical,
${xe}-submenu-rtl ${xe}-vertical`]:{[`${xe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${ge})`},"&::after":{transform:`rotate(45deg) translateY(${ge})`}}}}};const Be=ue=>Object.assign({},(0,Ge.oN)(ue));var Vn=(ue,xe)=>{const{componentCls:ge,itemColor:se,itemSelectedColor:Fe,groupTitleColor:st,itemBg:en,subMenuItemBg:Sn,itemSelectedBg:dn,activeBarHeight:zn,activeBarWidth:vn,activeBarBorderWidth:kt,motionDurationSlow:Xt,motionEaseInOut:Jt,motionEaseOut:jt,itemPaddingInline:Bt,motionDurationMid:ir,itemHoverColor:Ct,lineType:At,colorSplit:er,itemDisabledColor:An,dangerItemColor:fr,dangerItemHoverColor:Rr,dangerItemSelectedColor:ii,dangerItemActiveBg:Yr,dangerItemSelectedBg:Jr,itemHoverBg:mi,itemActiveBg:Br,menuSubMenuBg:ki,horizontalItemSelectedColor:Vi,horizontalItemSelectedBg:ha,horizontalItemBorderRadius:pa,horizontalItemHoverBg:Ui,popupBg:Ut}=ue;return{[`${ge}-${xe}, ${ge}-${xe} > ${ge}`]:{color:se,background:en,[`&${ge}-root:focus-visible`]:Object.assign({},Be(ue)),[`${ge}-item-group-title`]:{color:st},[`${ge}-submenu-selected`]:{[`> ${ge}-submenu-title`]:{color:Fe}},[`${ge}-item-disabled, ${ge}-submenu-disabled`]:{color:`${An} !important`},[`${ge}-item:not(${ge}-item-selected):not(${ge}-submenu-selected)`]:{[`&:hover, > ${ge}-submenu-title:hover`]:{color:Ct}},[`&:not(${ge}-horizontal)`]:{[`${ge}-item:not(${ge}-item-selected)`]:{"&:hover":{backgroundColor:mi},"&:active":{backgroundColor:Br}},[`${ge}-submenu-title`]:{"&:hover":{backgroundColor:mi},"&:active":{backgroundColor:Br}}},[`${ge}-item-danger`]:{color:fr,[`&${ge}-item:hover`]:{[`&:not(${ge}-item-selected):not(${ge}-submenu-selected)`]:{color:Rr}},[`&${ge}-item:active`]:{background:Yr}},[`${ge}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ge}-item-selected`]:{color:Fe,[`&${ge}-item-danger`]:{color:ii},"a, a:hover":{color:"inherit"}},[`& ${ge}-item-selected`]:{backgroundColor:dn,[`&${ge}-item-danger`]:{backgroundColor:Jr}},[`${ge}-item, ${ge}-submenu-title`]:{[`&:not(${ge}-item-disabled):focus-visible`]:Object.assign({},Be(ue))},[`&${ge}-submenu > ${ge}`]:{backgroundColor:ki},[`&${ge}-popup > ${ge}`]:{backgroundColor:Ut},[`&${ge}-horizontal`]:Object.assign(Object.assign({},xe==="dark"?{borderBottom:0}:{}),{[`> ${ge}-item, > ${ge}-submenu`]:{top:kt,marginTop:-kt,marginBottom:0,borderRadius:pa,"&::after":{position:"absolute",insetInline:Bt,bottom:0,borderBottom:`${zn}px solid transparent`,transition:`border-color ${Xt} ${Jt}`,content:'""'},"&:hover, &-active, &-open":{background:Ui,"&::after":{borderBottomWidth:zn,borderBottomColor:Vi}},"&-selected":{color:Vi,backgroundColor:ha,"&:hover":{backgroundColor:ha},"&::after":{borderBottomWidth:zn,borderBottomColor:Vi}}}}),[`&${ge}-root`]:{[`&${ge}-inline, &${ge}-vertical`]:{borderInlineEnd:`${kt}px ${At} ${er}`}},[`&${ge}-inline`]:{[`${ge}-sub${ge}-inline`]:{background:Sn},[`${ge}-item, ${ge}-submenu-title`]:kt&&vn?{width:`calc(100% + ${kt}px)`}:{},[`${ge}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${vn}px solid ${Fe}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${ir} ${jt}`,`opacity ${ir} ${jt}`].join(","),content:'""'},[`&${ge}-item-danger`]:{"&::after":{borderInlineEndColor:ii}}},[`${ge}-selected, ${ge}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${ir} ${Jt}`,`opacity ${ir} ${Jt}`].join(",")}}}}}};const In=ue=>{const{componentCls:xe,itemHeight:ge,itemMarginInline:se,padding:Fe,menuArrowSize:st,marginXS:en,itemMarginBlock:Sn}=ue,dn=Fe+st+en;return{[`${xe}-item`]:{position:"relative",overflow:"hidden"},[`${xe}-item, ${xe}-submenu-title`]:{height:ge,lineHeight:`${ge}px`,paddingInline:Fe,overflow:"hidden",textOverflow:"ellipsis",marginInline:se,marginBlock:Sn,width:`calc(100% - ${se*2}px)`},[`> ${xe}-item,
> ${xe}-submenu > ${xe}-submenu-title`]:{height:ge,lineHeight:`${ge}px`},[`${xe}-item-group-list ${xe}-submenu-title,
${xe}-submenu-title`]:{paddingInlineEnd:dn}}};var Mt=ue=>{const{componentCls:xe,iconCls:ge,itemHeight:se,colorTextLightSolid:Fe,dropdownWidth:st,controlHeightLG:en,motionDurationMid:Sn,motionEaseOut:dn,paddingXL:zn,itemMarginInline:vn,fontSizeLG:kt,motionDurationSlow:Xt,paddingXS:Jt,boxShadowSecondary:jt,collapsedWidth:Bt,collapsedIconSize:ir}=ue,Ct={height:se,lineHeight:`${se}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[xe]:{"&-inline, &-vertical":Object.assign({[`&${xe}-root`]:{boxShadow:"none"}},In(ue))},[`${xe}-submenu-popup`]:{[`${xe}-vertical`]:Object.assign(Object.assign({},In(ue)),{boxShadow:jt})}},{[`${xe}-submenu-popup ${xe}-vertical${xe}-sub`]:{minWidth:st,maxHeight:`calc(100vh - ${en*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${xe}-inline`]:{width:"100%",[`&${xe}-root`]:{[`${xe}-item, ${xe}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Xt}`,`background ${Xt}`,`padding ${Sn} ${dn}`].join(","),[`> ${xe}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${xe}-sub${xe}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${xe}-submenu > ${xe}-submenu-title`]:Ct,[`& ${xe}-item-group-title`]:{paddingInlineStart:zn}},[`${xe}-item`]:Ct}},{[`${xe}-inline-collapsed`]:{width:Bt,[`&${xe}-root`]:{[`${xe}-item, ${xe}-submenu ${xe}-submenu-title`]:{[`> ${xe}-inline-collapsed-noicon`]:{fontSize:kt,textAlign:"center"}}},[`> ${xe}-item,
> ${xe}-item-group > ${xe}-item-group-list > ${xe}-item,
> ${xe}-item-group > ${xe}-item-group-list > ${xe}-submenu > ${xe}-submenu-title,
> ${xe}-submenu > ${xe}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${kt/2}px - ${vn}px)`,textOverflow:"clip",[`
${xe}-submenu-arrow,
${xe}-submenu-expand-icon
`]:{opacity:0},[`${xe}-item-icon, ${ge}`]:{margin:0,fontSize:ir,lineHeight:`${se}px`,"+ span":{display:"inline-block",opacity:0}}},[`${xe}-item-icon, ${ge}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${xe}-item-icon, ${ge}`]:{display:"none"},"a, a:hover":{color:Fe}},[`${xe}-item-group-title`]:Object.assign(Object.assign({},Ge.vS),{paddingInline:Jt})}}]};const qt=ue=>{const{componentCls:xe,motionDurationSlow:ge,motionDurationMid:se,motionEaseInOut:Fe,motionEaseOut:st,iconCls:en,iconSize:Sn,iconMarginInlineEnd:dn}=ue;return{[`${xe}-item, ${xe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${ge}`,`background ${ge}`,`padding ${ge} ${Fe}`].join(","),[`${xe}-item-icon, ${en}`]:{minWidth:Sn,fontSize:Sn,transition:[`font-size ${se} ${st}`,`margin ${ge} ${Fe}`,`color ${ge}`].join(","),"+ span":{marginInlineStart:dn,opacity:1,transition:[`opacity ${ge} ${Fe}`,`margin ${ge}`,`color ${ge}`].join(",")}},[`${xe}-item-icon`]:Object.assign({},(0,Ge.Ro)()),[`&${xe}-item-only-child`]:{[`> ${en}, > ${xe}-item-icon`]:{marginInlineEnd:0}}},[`${xe}-item-disabled, ${xe}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${xe}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},an=ue=>{const{componentCls:xe,motionDurationSlow:ge,motionEaseInOut:se,borderRadius:Fe,menuArrowSize:st,menuArrowOffset:en}=ue;return{[`${xe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ue.margin,width:st,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ge} ${se}, opacity ${ge}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:st*.6,height:st*.15,backgroundColor:"currentcolor",borderRadius:Fe,transition:[`background ${ge} ${se}`,`transform ${ge} ${se}`,`top ${ge} ${se}`,`color ${ge} ${se}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${en})`},"&::after":{transform:`rotate(-45deg) translateY(${en})`}}}}},ln=ue=>{const{antCls:xe,componentCls:ge,fontSize:se,motionDurationSlow:Fe,motionDurationMid:st,motionEaseInOut:en,paddingXS:Sn,padding:dn,colorSplit:zn,lineWidth:vn,zIndexPopup:kt,borderRadiusLG:Xt,subMenuItemBorderRadius:Jt,menuArrowSize:jt,menuArrowOffset:Bt,lineType:ir,menuPanelMaskInset:Ct,groupTitleLineHeight:At,groupTitleFontSize:er}=ue;return[{"":{[`${ge}`]:Object.assign(Object.assign({},(0,Ge.dF)()),{"&-hidden":{display:"none"}})},[`${ge}-submenu-hidden`]:{display:"none"}},{[ge]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ge.Wf)(ue)),(0,Ge.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:se,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Fe} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${ge}-item`]:{flex:"none"}},[`${ge}-item, ${ge}-submenu, ${ge}-submenu-title`]:{borderRadius:ue.itemBorderRadius},[`${ge}-item-group-title`]:{padding:`${Sn}px ${dn}px`,fontSize:er,lineHeight:At,transition:`all ${Fe}`},[`&-horizontal ${ge}-submenu`]:{transition:[`border-color ${Fe} ${en}`,`background ${Fe} ${en}`].join(",")},[`${ge}-submenu, ${ge}-submenu-inline`]:{transition:[`border-color ${Fe} ${en}`,`background ${Fe} ${en}`,`padding ${st} ${en}`].join(",")},[`${ge}-submenu ${ge}-sub`]:{cursor:"initial",transition:[`background ${Fe} ${en}`,`padding ${Fe} ${en}`].join(",")},[`${ge}-title-content`]:{transition:`color ${Fe}`},[`${ge}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${ge}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:zn,borderStyle:ir,borderWidth:0,borderTopWidth:vn,marginBlock:vn,padding:0,"&-dashed":{borderStyle:"dashed"}}}),qt(ue)),{[`${ge}-item-group`]:{[`${ge}-item-group-list`]:{margin:0,padding:0,[`${ge}-item, ${ge}-submenu-title`]:{paddingInline:`${se*2}px ${dn}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:kt,borderRadius:Xt,boxShadow:"none",transformOrigin:"0 0",[`&${ge}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Ct}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Ct},"\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:ue.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ue.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ue.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ue.paddingXS},[`> ${ge}`]:Object.assign(Object.assign(Object.assign({borderRadius:Xt},qt(ue)),an(ue)),{[`${ge}-item, ${ge}-submenu > ${ge}-submenu-title`]:{borderRadius:Jt},[`${ge}-submenu-title::after`]:{transition:`transform ${Fe} ${en}`}})}}),an(ue)),{[`&-inline-collapsed ${ge}-submenu-arrow,
&-inline ${ge}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Bt})`},"&::after":{transform:`rotate(45deg) translateX(-${Bt})`}},[`${ge}-submenu-open${ge}-submenu-inline > ${ge}-submenu-title > ${ge}-submenu-arrow`]:{transform:`translateY(-${jt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Bt})`},"&::before":{transform:`rotate(45deg) translateX(${Bt})`}}})},{[`${xe}-layout-header`]:{[ge]:{lineHeight:"inherit"}}}]};var Yt=(ue,xe)=>(0,$t.Z)("Menu",se=>{if(xe===!1)return[];const{colorBgElevated:Fe,colorPrimary:st,colorTextLightSolid:en,controlHeightLG:Sn,fontSize:dn,darkItemColor:zn,darkDangerItemColor:vn,darkItemBg:kt,darkSubMenuItemBg:Xt,darkItemSelectedColor:Jt,darkItemSelectedBg:jt,darkDangerItemSelectedBg:Bt,darkItemHoverBg:ir,darkGroupTitleColor:Ct,darkItemHoverColor:At,darkItemDisabledColor:er,darkDangerItemHoverColor:An,darkDangerItemSelectedColor:fr,darkDangerItemActiveBg:Rr}=se,ii=dn/7*5,Yr=(0,bt.TS)(se,{menuArrowSize:ii,menuHorizontalHeight:Sn*1.15,menuArrowOffset:`${ii*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Fe}),Jr=(0,bt.TS)(Yr,{itemColor:zn,itemHoverColor:At,groupTitleColor:Ct,itemSelectedColor:Jt,itemBg:kt,popupBg:kt,subMenuItemBg:Xt,itemActiveBg:"transparent",itemSelectedBg:jt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:ir,itemDisabledColor:er,dangerItemColor:vn,dangerItemHoverColor:An,dangerItemSelectedColor:fr,dangerItemActiveBg:Rr,dangerItemSelectedBg:Bt,menuSubMenuBg:Xt,horizontalItemSelectedColor:en,horizontalItemSelectedBg:st});return[ln(Yr),Pn(Yr),Mt(Yr),Vn(Yr,"light"),Vn(Jr,"dark"),yt(Yr),(0,Ae.Z)(Yr),(0,wt.oN)(Yr,"slide-up"),(0,wt.oN)(Yr,"slide-down"),(0,dt._y)(Yr,"zoom-big")]},se=>{const{colorPrimary:Fe,colorError:st,colorTextDisabled:en,colorErrorBg:Sn,colorText:dn,colorTextDescription:zn,colorBgContainer:vn,colorFillAlter:kt,colorFillContent:Xt,lineWidth:Jt,lineWidthBold:jt,controlItemBgActive:Bt,colorBgTextHover:ir,controlHeightLG:Ct,lineHeight:At,colorBgElevated:er,marginXXS:An,padding:fr,fontSize:Rr,controlHeightSM:ii,fontSizeLG:Yr,colorTextLightSolid:Jr,colorErrorHover:mi}=se,Br=new at.C(Jr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:se.zIndexPopupBase+50,radiusItem:se.borderRadiusLG,itemBorderRadius:se.borderRadiusLG,radiusSubMenuItem:se.borderRadiusSM,subMenuItemBorderRadius:se.borderRadiusSM,colorItemText:dn,itemColor:dn,colorItemTextHover:dn,itemHoverColor:dn,colorItemTextHoverHorizontal:Fe,horizontalItemHoverColor:Fe,colorGroupTitle:zn,groupTitleColor:zn,colorItemTextSelected:Fe,itemSelectedColor:Fe,colorItemTextSelectedHorizontal:Fe,horizontalItemSelectedColor:Fe,colorItemBg:vn,itemBg:vn,colorItemBgHover:ir,itemHoverBg:ir,colorItemBgActive:Xt,itemActiveBg:Bt,colorSubItemBg:kt,subMenuItemBg:kt,colorItemBgSelected:Bt,itemSelectedBg:Bt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:jt,activeBarHeight:jt,colorActiveBarBorderSize:Jt,activeBarBorderWidth:Jt,colorItemTextDisabled:en,itemDisabledColor:en,colorDangerItemText:st,dangerItemColor:st,colorDangerItemTextHover:st,dangerItemHoverColor:st,colorDangerItemTextSelected:st,dangerItemSelectedColor:st,colorDangerItemBgActive:Sn,dangerItemActiveBg:Sn,colorDangerItemBgSelected:Sn,dangerItemSelectedBg:Sn,itemMarginInline:se.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Ct,groupTitleLineHeight:At,collapsedWidth:Ct*2,popupBg:er,itemMarginBlock:An,itemPaddingInline:fr,horizontalLineHeight:`${Ct*1.15}px`,iconSize:Rr,iconMarginInlineEnd:ii-Rr,collapsedIconSize:Yr,groupTitleFontSize:Rr,darkItemDisabledColor:new at.C(Jr).setAlpha(.25).toRgbString(),darkItemColor:Br,darkDangerItemColor:st,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Jr,darkItemSelectedBg:Fe,darkDangerItemSelectedBg:st,darkItemHoverBg:"transparent",darkGroupTitleColor:Br,darkItemHoverColor:Jr,darkDangerItemHoverColor:mi,darkDangerItemSelectedColor:Jr,darkDangerItemActiveBg:st}},{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"]]})(ue),Cn=function(ue,xe){var ge={};for(var se in ue)Object.prototype.hasOwnProperty.call(ue,se)&&xe.indexOf(se)<0&&(ge[se]=ue[se]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,se=Object.getOwnPropertySymbols(ue);Fe<se.length;Fe++)xe.indexOf(se[Fe])<0&&Object.prototype.propertyIsEnumerable.call(ue,se[Fe])&&(ge[se[Fe]]=ue[se[Fe]]);return ge},Xn=(0,Me.forwardRef)((ue,xe)=>{var ge,se;const Fe=Me.useContext(ce.Z),st=Fe||{},{getPrefixCls:en,getPopupContainer:Sn,direction:dn,menu:zn}=Me.useContext(ke.E_),vn=en(),{prefixCls:kt,className:Xt,style:Jt,theme:jt="light",expandIcon:Bt,_internalDisableMenuItemTitleTooltip:ir,inlineCollapsed:Ct,siderCollapsed:At,items:er,children:An,rootClassName:fr,mode:Rr,selectable:ii,onClick:Yr,overflowedIndicatorPopupClassName:Jr}=ue,mi=Cn(ue,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Br=(0,nt.Z)(mi,["collapsedWidth"]),ki=it(er)||An;(ge=st.validator)===null||ge===void 0||ge.call(st,{mode:Rr});const Vi=(0,ct.useEvent)(function(){var or;Yr==null||Yr.apply(void 0,arguments),(or=st.onClick)===null||or===void 0||or.call(st)}),ha=st.mode||Rr,pa=ii!=null?ii:st.selectable,Ui=Me.useMemo(()=>At!==void 0?At:Ct,[Ct,At]),Ut={horizontal:{motionName:`${vn}-slide-up`},inline:(0,Se.Z)(vn),other:{motionName:`${vn}-zoom-big`}},Qt=en("menu",kt||st.prefixCls),[un,Bn]=Yt(Qt,!Fe),Cr=be()(`${Qt}-${jt}`,zn==null?void 0:zn.className,Xt);let qn;if(typeof Bt=="function")qn=Bt;else if(Bt===null||Bt===!1)qn=null;else if(st.expandIcon===null||st.expandIcon===!1)qn=null;else{const or=Bt!=null?Bt:st.expandIcon;qn=(0,We.Tm)(or,{className:be()(`${Qt}-submenu-expand-icon`,(0,We.l$)(or)?(se=or.props)===null||se===void 0?void 0:se.className:"")})}const Lr=Me.useMemo(()=>({prefixCls:Qt,inlineCollapsed:Ui||!1,direction:dn,firstLevel:!0,theme:jt,mode:ha,disableMenuItemTitleTooltip:ir}),[Qt,Ui,dn,ir,jt]);return un(Me.createElement(ce.Z.Provider,{value:null},Me.createElement(lt.Provider,{value:Lr},Me.createElement(le.ZP,Object.assign({getPopupContainer:Sn,overflowedIndicator:Me.createElement(ot.Z,null),overflowedIndicatorPopupClassName:be()(Qt,`${Qt}-${jt}`,Jr),mode:ha,selectable:pa,onClick:Vi},Br,{inlineCollapsed:Ui,style:Object.assign(Object.assign({},zn==null?void 0:zn.style),Jt),className:Cr,prefixCls:Qt,direction:dn,defaultMotions:Ut,expandIcon:qn,ref:xe,rootClassName:be()(fr,Bn)}),ki))))});const ze=(0,Me.forwardRef)((ue,xe)=>{const ge=(0,Me.useRef)(null),se=Me.useContext(Ne.D);return(0,Me.useImperativeHandle)(xe,()=>({menu:ge.current,focus:Fe=>{var st;(st=ge.current)===null||st===void 0||st.focus(Fe)}})),Me.createElement(Xn,Object.assign({ref:ge},ue,se))});ze.Item=ye,ze.SubMenu=Pt,ze.Divider=pe,ze.ItemGroup=le.BW;var fe=ze},28452:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return vn}});var le=te(87462),Me=te(67294),Ne={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"},Ue=Ne,be=te(84089),ke=function(Xt,Jt){return Me.createElement(be.Z,(0,le.Z)({},Xt,{ref:Jt,icon:Ue}))},de=Me.forwardRef(ke),we=te(81893),pe=te(22751),Le=te(91034),nt=te(94184),Re=te.n(nt),We=te(4942),qe=te(1413),lt=te(15671),Xe=te(43144),ye=te(60136),vt=te(51630),Pt=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,ot=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,ct="".concat(Pt," ").concat(ot).split(/[\s\n]+/),Se="aria-",ce="data-";function He(kt,Xt){return kt.indexOf(Xt)===0}function je(kt){var Xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Jt;Xt===!1?Jt={aria:!0,data:!0,attr:!0}:Xt===!0?Jt={aria:!0}:Jt=(0,qe.Z)({},Xt);var jt={};return Object.keys(kt).forEach(function(Bt){(Jt.aria&&(Bt==="role"||He(Bt,Se))||Jt.data&&He(Bt,ce)||Jt.attr&&ct.includes(Bt))&&(jt[Bt]=kt[Bt])}),jt}var it={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},at=it,Ge=te(81626),Ae=function(kt){(0,ye.Z)(Jt,kt);var Xt=(0,vt.Z)(Jt);function Jt(){var jt;(0,lt.Z)(this,Jt);for(var Bt=arguments.length,ir=new Array(Bt),Ct=0;Ct<Bt;Ct++)ir[Ct]=arguments[Ct];return jt=Xt.call.apply(Xt,[this].concat(ir)),jt.state={goInputText:""},jt.getValidValue=function(){var At=jt.state.goInputText;return!At||Number.isNaN(At)?void 0:Number(At)},jt.buildOptionText=function(At){return"".concat(At," ").concat(jt.props.locale.items_per_page)},jt.changeSize=function(At){jt.props.changeSize(Number(At))},jt.handleChange=function(At){jt.setState({goInputText:At.target.value})},jt.handleBlur=function(At){var er=jt.props,An=er.goButton,fr=er.quickGo,Rr=er.rootPrefixCls,ii=jt.state.goInputText;An||ii===""||(jt.setState({goInputText:""}),!(At.relatedTarget&&(At.relatedTarget.className.indexOf("".concat(Rr,"-item-link"))>=0||At.relatedTarget.className.indexOf("".concat(Rr,"-item"))>=0))&&fr(jt.getValidValue()))},jt.go=function(At){var er=jt.state.goInputText;er!==""&&(At.keyCode===at.ENTER||At.type==="click")&&(jt.setState({goInputText:""}),jt.props.quickGo(jt.getValidValue()))},jt}return(0,Xe.Z)(Jt,[{key:"getPageSizeOptions",value:function(){var Bt=this.props,ir=Bt.pageSize,Ct=Bt.pageSizeOptions;return Ct.some(function(At){return At.toString()===ir.toString()})?Ct:Ct.concat([ir.toString()]).sort(function(At,er){var An=Number.isNaN(Number(At))?0:Number(At),fr=Number.isNaN(Number(er))?0:Number(er);return An-fr})}},{key:"render",value:function(){var Bt=this,ir=this.props,Ct=ir.pageSize,At=ir.locale,er=ir.rootPrefixCls,An=ir.changeSize,fr=ir.quickGo,Rr=ir.goButton,ii=ir.selectComponentClass,Yr=ir.buildOptionText,Jr=ir.selectPrefixCls,mi=ir.disabled,Br=this.state.goInputText,ki="".concat(er,"-options"),Vi=ii,ha=null,pa=null,Ui=null;if(!An&&!fr)return null;var Ut=this.getPageSizeOptions();if(An&&Vi){var Qt=Ut.map(function(un,Bn){return Me.createElement(Vi.Option,{key:Bn,value:un.toString()},(Yr||Bt.buildOptionText)(un))});ha=Me.createElement(Vi,{disabled:mi,prefixCls:Jr,showSearch:!1,className:"".concat(ki,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Ct||Ut[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Bn){return Bn.parentNode},"aria-label":At.page_size,defaultOpen:!1},Qt)}return fr&&(Rr&&(Ui=typeof Rr=="boolean"?Me.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:mi,className:"".concat(ki,"-quick-jumper-button")},At.jump_to_confirm):Me.createElement("span",{onClick:this.go,onKeyUp:this.go},Rr)),pa=Me.createElement("div",{className:"".concat(ki,"-quick-jumper")},At.jump_to,Me.createElement("input",{disabled:mi,type:"text",value:Br,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":At.page}),At.page,Ui)),Me.createElement("li",{className:"".concat(ki)},ha,pa)}}]),Jt}(Me.Component);Ae.defaultProps={pageSizeOptions:["10","20","50","100"]};var wt=Ae,dt=function(Xt){var Jt,jt=Xt.rootPrefixCls,Bt=Xt.page,ir=Xt.active,Ct=Xt.className,At=Xt.showTitle,er=Xt.onClick,An=Xt.onKeyPress,fr=Xt.itemRender,Rr="".concat(jt,"-item"),ii=Re()(Rr,"".concat(Rr,"-").concat(Bt),(Jt={},(0,We.Z)(Jt,"".concat(Rr,"-active"),ir),(0,We.Z)(Jt,"".concat(Rr,"-disabled"),!Bt),(0,We.Z)(Jt,Xt.className,Ct),Jt)),Yr=function(){er(Bt)},Jr=function(ki){An(ki,er,Bt)},mi=fr(Bt,"page",Me.createElement("a",{rel:"nofollow"},Bt));return mi?Me.createElement("li",{title:At?Bt.toString():null,className:ii,onClick:Yr,onKeyPress:Jr,tabIndex:0},mi):null},$t=dt;function bt(){}function Ot(kt){var Xt=Number(kt);return typeof Xt=="number"&&!Number.isNaN(Xt)&&isFinite(Xt)&&Math.floor(Xt)===Xt}var Pn=function(Xt,Jt,jt){return jt};function $n(kt,Xt,Jt){var jt=typeof kt=="undefined"?Xt.pageSize:kt;return Math.floor((Jt.total-1)/jt)+1}var yt=function(kt){(0,ye.Z)(Jt,kt);var Xt=(0,vt.Z)(Jt);function Jt(jt){var Bt;(0,lt.Z)(this,Jt),Bt=Xt.call(this,jt),Bt.paginationNode=Me.createRef(),Bt.getJumpPrevPage=function(){return Math.max(1,Bt.state.current-(Bt.props.showLessItems?3:5))},Bt.getJumpNextPage=function(){return Math.min($n(void 0,Bt.state,Bt.props),Bt.state.current+(Bt.props.showLessItems?3:5))},Bt.getItemIcon=function(An,fr){var Rr=Bt.props.prefixCls,ii=An||Me.createElement("button",{type:"button","aria-label":fr,className:"".concat(Rr,"-item-link")});return typeof An=="function"&&(ii=Me.createElement(An,(0,qe.Z)({},Bt.props))),ii},Bt.isValid=function(An){var fr=Bt.props.total;return Ot(An)&&An!==Bt.state.current&&Ot(fr)&&fr>0},Bt.shouldDisplayQuickJumper=function(){var An=Bt.props,fr=An.showQuickJumper,Rr=An.total,ii=Bt.state.pageSize;return Rr<=ii?!1:fr},Bt.handleKeyDown=function(An){(An.keyCode===at.ARROW_UP||An.keyCode===at.ARROW_DOWN)&&An.preventDefault()},Bt.handleKeyUp=function(An){var fr=Bt.getValidValue(An),Rr=Bt.state.currentInputValue;fr!==Rr&&Bt.setState({currentInputValue:fr}),An.keyCode===at.ENTER?Bt.handleChange(fr):An.keyCode===at.ARROW_UP?Bt.handleChange(fr-1):An.keyCode===at.ARROW_DOWN&&Bt.handleChange(fr+1)},Bt.handleBlur=function(An){var fr=Bt.getValidValue(An);Bt.handleChange(fr)},Bt.changePageSize=function(An){var fr=Bt.state.current,Rr=$n(An,Bt.state,Bt.props);fr=fr>Rr?Rr:fr,Rr===0&&(fr=Bt.state.current),typeof An=="number"&&("pageSize"in Bt.props||Bt.setState({pageSize:An}),"current"in Bt.props||Bt.setState({current:fr,currentInputValue:fr})),Bt.props.onShowSizeChange(fr,An),"onChange"in Bt.props&&Bt.props.onChange&&Bt.props.onChange(fr,An)},Bt.handleChange=function(An){var fr=Bt.props,Rr=fr.disabled,ii=fr.onChange,Yr=Bt.state,Jr=Yr.pageSize,mi=Yr.current,Br=Yr.currentInputValue;if(Bt.isValid(An)&&!Rr){var ki=$n(void 0,Bt.state,Bt.props),Vi=An;return An>ki?Vi=ki:An<1&&(Vi=1),"current"in Bt.props||Bt.setState({current:Vi}),Vi!==Br&&Bt.setState({currentInputValue:Vi}),ii(Vi,Jr),Vi}return mi},Bt.prev=function(){Bt.hasPrev()&&Bt.handleChange(Bt.state.current-1)},Bt.next=function(){Bt.hasNext()&&Bt.handleChange(Bt.state.current+1)},Bt.jumpPrev=function(){Bt.handleChange(Bt.getJumpPrevPage())},Bt.jumpNext=function(){Bt.handleChange(Bt.getJumpNextPage())},Bt.hasPrev=function(){return Bt.state.current>1},Bt.hasNext=function(){return Bt.state.current<$n(void 0,Bt.state,Bt.props)},Bt.runIfEnter=function(An,fr){if(An.key==="Enter"||An.charCode===13){for(var Rr=arguments.length,ii=new Array(Rr>2?Rr-2:0),Yr=2;Yr<Rr;Yr++)ii[Yr-2]=arguments[Yr];fr.apply(void 0,ii)}},Bt.runIfEnterPrev=function(An){Bt.runIfEnter(An,Bt.prev)},Bt.runIfEnterNext=function(An){Bt.runIfEnter(An,Bt.next)},Bt.runIfEnterJumpPrev=function(An){Bt.runIfEnter(An,Bt.jumpPrev)},Bt.runIfEnterJumpNext=function(An){Bt.runIfEnter(An,Bt.jumpNext)},Bt.handleGoTO=function(An){(An.keyCode===at.ENTER||An.type==="click")&&Bt.handleChange(Bt.state.currentInputValue)},Bt.renderPrev=function(An){var fr=Bt.props,Rr=fr.prevIcon,ii=fr.itemRender,Yr=ii(An,"prev",Bt.getItemIcon(Rr,"prev page")),Jr=!Bt.hasPrev();return(0,Me.isValidElement)(Yr)?(0,Me.cloneElement)(Yr,{disabled:Jr}):Yr},Bt.renderNext=function(An){var fr=Bt.props,Rr=fr.nextIcon,ii=fr.itemRender,Yr=ii(An,"next",Bt.getItemIcon(Rr,"next page")),Jr=!Bt.hasNext();return(0,Me.isValidElement)(Yr)?(0,Me.cloneElement)(Yr,{disabled:Jr}):Yr};var ir=jt.onChange!==bt,Ct="current"in jt;Ct&&!ir&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var At=jt.defaultCurrent;"current"in jt&&(At=jt.current);var er=jt.defaultPageSize;return"pageSize"in jt&&(er=jt.pageSize),At=Math.min(At,$n(er,void 0,jt)),Bt.state={current:At,currentInputValue:At,pageSize:er},Bt}return(0,Xe.Z)(Jt,[{key:"componentDidUpdate",value:function(Bt,ir){var Ct=this.props.prefixCls;if(ir.current!==this.state.current&&this.paginationNode.current){var At=this.paginationNode.current.querySelector(".".concat(Ct,"-item-").concat(ir.current));if(At&&document.activeElement===At){var er;At==null||(er=At.blur)===null||er===void 0||er.call(At)}}}},{key:"getValidValue",value:function(Bt){var ir=Bt.target.value,Ct=$n(void 0,this.state,this.props),At=this.state.currentInputValue,er;return ir===""?er=ir:Number.isNaN(Number(ir))?er=At:ir>=Ct?er=Ct:er=Number(ir),er}},{key:"getShowSizeChanger",value:function(){var Bt=this.props,ir=Bt.showSizeChanger,Ct=Bt.total,At=Bt.totalBoundaryShowSizeChanger;return typeof ir!="undefined"?ir:Ct>At}},{key:"render",value:function(){var Bt=this.props,ir=Bt.prefixCls,Ct=Bt.className,At=Bt.style,er=Bt.disabled,An=Bt.hideOnSinglePage,fr=Bt.total,Rr=Bt.locale,ii=Bt.showQuickJumper,Yr=Bt.showLessItems,Jr=Bt.showTitle,mi=Bt.showTotal,Br=Bt.simple,ki=Bt.itemRender,Vi=Bt.showPrevNextJumpers,ha=Bt.jumpPrevIcon,pa=Bt.jumpNextIcon,Ui=Bt.selectComponentClass,Ut=Bt.selectPrefixCls,Qt=Bt.pageSizeOptions,un=this.state,Bn=un.current,Cr=un.pageSize,qn=un.currentInputValue;if(An===!0&&fr<=Cr)return null;var Lr=$n(void 0,this.state,this.props),or=[],Et=null,_t=null,zt=null,wn=null,ft=null,Ht=ii&&ii.goButton,xn=Yr?1:2,En=Bn-1>0?Bn-1:0,Hn=Bn+1<Lr?Bn+1:Lr,Gn=je(this.props,{aria:!0,data:!0}),br=mi&&Me.createElement("li",{className:"".concat(ir,"-total-text")},mi(fr,[fr===0?0:(Bn-1)*Cr+1,Bn*Cr>fr?fr:Bn*Cr]));if(Br){Ht&&(typeof Ht=="boolean"?ft=Me.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Rr.jump_to_confirm):ft=Me.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Ht),ft=Me.createElement("li",{title:Jr?"".concat(Rr.jump_to).concat(Bn,"/").concat(Lr):null,className:"".concat(ir,"-simple-pager")},ft));var fi=this.renderPrev(En);return Me.createElement("ul",(0,le.Z)({className:Re()(ir,"".concat(ir,"-simple"),(0,We.Z)({},"".concat(ir,"-disabled"),er),Ct),style:At,ref:this.paginationNode},Gn),br,fi?Me.createElement("li",{title:Jr?Rr.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Re()("".concat(ir,"-prev"),(0,We.Z)({},"".concat(ir,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},fi):null,Me.createElement("li",{title:Jr?"".concat(Bn,"/").concat(Lr):null,className:"".concat(ir,"-simple-pager")},Me.createElement("input",{type:"text",value:qn,disabled:er,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),Me.createElement("span",{className:"".concat(ir,"-slash")},"/"),Lr),Me.createElement("li",{title:Jr?Rr.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Re()("".concat(ir,"-next"),(0,We.Z)({},"".concat(ir,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Hn)),ft)}if(Lr<=3+xn*2){var Gr={locale:Rr,rootPrefixCls:ir,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Jr,itemRender:ki};Lr||or.push(Me.createElement($t,(0,le.Z)({},Gr,{key:"noPager",page:1,className:"".concat(ir,"-item-disabled")})));for(var Vr=1;Vr<=Lr;Vr+=1){var ai=Bn===Vr;or.push(Me.createElement($t,(0,le.Z)({},Gr,{key:Vr,page:Vr,active:ai})))}}else{var ei=Yr?Rr.prev_3:Rr.prev_5,Vt=Yr?Rr.next_3:Rr.next_5,Kt=ki(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(ha,"prev page")),nn=ki(this.getJumpNextPage(),"jump-next",this.getItemIcon(pa,"next page"));Vi&&(Et=Kt?Me.createElement("li",{title:Jr?ei:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Re()("".concat(ir,"-jump-prev"),(0,We.Z)({},"".concat(ir,"-jump-prev-custom-icon"),!!ha))},Kt):null,_t=nn?Me.createElement("li",{title:Jr?Vt:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Re()("".concat(ir,"-jump-next"),(0,We.Z)({},"".concat(ir,"-jump-next-custom-icon"),!!pa))},nn):null),wn=Me.createElement($t,{locale:Rr,last:!0,rootPrefixCls:ir,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Lr,page:Lr,active:!1,showTitle:Jr,itemRender:ki}),zt=Me.createElement($t,{locale:Rr,rootPrefixCls:ir,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Jr,itemRender:ki});var sr=Math.max(1,Bn-xn),Tr=Math.min(Bn+xn,Lr);Bn-1<=xn&&(Tr=1+xn*2),Lr-Bn<=xn&&(sr=Lr-xn*2);for(var Fn=sr;Fn<=Tr;Fn+=1){var mr=Bn===Fn;or.push(Me.createElement($t,{locale:Rr,rootPrefixCls:ir,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Fn,page:Fn,active:mr,showTitle:Jr,itemRender:ki}))}Bn-1>=xn*2&&Bn!==3&&(or[0]=(0,Me.cloneElement)(or[0],{className:"".concat(ir,"-item-after-jump-prev")}),or.unshift(Et)),Lr-Bn>=xn*2&&Bn!==Lr-2&&(or[or.length-1]=(0,Me.cloneElement)(or[or.length-1],{className:"".concat(ir,"-item-before-jump-next")}),or.push(_t)),sr!==1&&or.unshift(zt),Tr!==Lr&&or.push(wn)}var ur=!this.hasPrev()||!Lr,zr=!this.hasNext()||!Lr,ti=this.renderPrev(En),jn=this.renderNext(Hn);return Me.createElement("ul",(0,le.Z)({className:Re()(ir,Ct,(0,We.Z)({},"".concat(ir,"-disabled"),er)),style:At,ref:this.paginationNode},Gn),br,ti?Me.createElement("li",{title:Jr?Rr.prev_page:null,onClick:this.prev,tabIndex:ur?null:0,onKeyPress:this.runIfEnterPrev,className:Re()("".concat(ir,"-prev"),(0,We.Z)({},"".concat(ir,"-disabled"),ur)),"aria-disabled":ur},ti):null,or,jn?Me.createElement("li",{title:Jr?Rr.next_page:null,onClick:this.next,tabIndex:zr?null:0,onKeyPress:this.runIfEnterNext,className:Re()("".concat(ir,"-next"),(0,We.Z)({},"".concat(ir,"-disabled"),zr)),"aria-disabled":zr},jn):null,Me.createElement(wt,{disabled:er,locale:Rr,rootPrefixCls:ir,selectComponentClass:Ui,selectPrefixCls:Ut,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Bn,pageSize:Cr,pageSizeOptions:Qt,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ht}))}}],[{key:"getDerivedStateFromProps",value:function(Bt,ir){var Ct={};if("current"in Bt&&(Ct.current=Bt.current,Bt.current!==ir.current&&(Ct.currentInputValue=Ct.current)),"pageSize"in Bt&&Bt.pageSize!==ir.pageSize){var At=ir.current,er=$n(Bt.pageSize,ir,Bt);At=At>er?er:At,"current"in Bt||(Ct.current=At,Ct.currentInputValue=At),Ct.pageSize=Bt.pageSize}return Ct}}]),Jt}(Me.Component);yt.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:bt,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:bt,locale:Ge.Z,style:{},itemRender:Pn,totalBoundaryShowSizeChanger:50};var Be=yt,Rt=te(62906),Vn=te(53124),In=te(98675),xt=te(25378),Mt=te(10110),qt=te(11713);const an=kt=>Me.createElement(qt.default,Object.assign({},kt,{showSearch:!0,size:"small"})),ln=kt=>Me.createElement(qt.default,Object.assign({},kt,{showSearch:!0,size:"middle"}));an.Option=qt.default.Option,ln.Option=qt.default.Option;var Yt=te(47673),Cn=te(14747),pr=te(67968),Xn=te(45503);const ze=kt=>{const{componentCls:Xt}=kt;return{[`${Xt}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Xt}-item-link`]:{color:kt.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Xt}-item-link`]:{color:kt.colorTextDisabled,cursor:"not-allowed"}}},[`&${Xt}-disabled`]:{cursor:"not-allowed",[`${Xt}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:kt.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:kt.colorBorder,backgroundColor:kt.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:kt.itemActiveBgDisabled},a:{color:kt.itemActiveColorDisabled}}},[`${Xt}-item-link`]:{color:kt.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Xt}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Xt}-simple-pager`]:{color:kt.colorTextDisabled},[`${Xt}-jump-prev, ${Xt}-jump-next`]:{[`${Xt}-item-link-icon`]:{opacity:0},[`${Xt}-item-ellipsis`]:{opacity:1}}},[`&${Xt}-simple`]:{[`${Xt}-prev, ${Xt}-next`]:{[`&${Xt}-disabled ${Xt}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},fe=kt=>{const{componentCls:Xt}=kt;return{[`&${Xt}-mini ${Xt}-total-text, &${Xt}-mini ${Xt}-simple-pager`]:{height:kt.itemSizeSM,lineHeight:`${kt.itemSizeSM}px`},[`&${Xt}-mini ${Xt}-item`]:{minWidth:kt.itemSizeSM,height:kt.itemSizeSM,margin:0,lineHeight:`${kt.itemSizeSM-2}px`},[`&${Xt}-mini:not(${Xt}-disabled) ${Xt}-item:not(${Xt}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:kt.colorBgTextHover},"&:active":{backgroundColor:kt.colorBgTextActive}},[`&${Xt}-mini ${Xt}-prev, &${Xt}-mini ${Xt}-next`]:{minWidth:kt.itemSizeSM,height:kt.itemSizeSM,margin:0,lineHeight:`${kt.itemSizeSM}px`},[`&${Xt}-mini:not(${Xt}-disabled)`]:{[`${Xt}-prev, ${Xt}-next`]:{[`&:hover ${Xt}-item-link`]:{backgroundColor:kt.colorBgTextHover},[`&:active ${Xt}-item-link`]:{backgroundColor:kt.colorBgTextActive},[`&${Xt}-disabled:hover ${Xt}-item-link`]:{backgroundColor:"transparent"}}},[`
&${Xt}-mini ${Xt}-prev ${Xt}-item-link,
&${Xt}-mini ${Xt}-next ${Xt}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:kt.itemSizeSM,lineHeight:`${kt.itemSizeSM}px`}},[`&${Xt}-mini ${Xt}-jump-prev, &${Xt}-mini ${Xt}-jump-next`]:{height:kt.itemSizeSM,marginInlineEnd:0,lineHeight:`${kt.itemSizeSM}px`},[`&${Xt}-mini ${Xt}-options`]:{marginInlineStart:kt.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:kt.miniOptionsSizeChangerTop},"&-quick-jumper":{height:kt.itemSizeSM,lineHeight:`${kt.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Yt.x0)(kt)),{width:kt.paginationMiniQuickJumperInputWidth,height:kt.controlHeightSM})}}}},ue=kt=>{const{componentCls:Xt}=kt;return{[`
&${Xt}-simple ${Xt}-prev,
&${Xt}-simple ${Xt}-next
`]:{height:kt.itemSizeSM,lineHeight:`${kt.itemSizeSM}px`,verticalAlign:"top",[`${Xt}-item-link`]:{height:kt.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:kt.colorBgTextHover},"&:active":{backgroundColor:kt.colorBgTextActive},"&::after":{height:kt.itemSizeSM,lineHeight:`${kt.itemSizeSM}px`}}},[`&${Xt}-simple ${Xt}-simple-pager`]:{display:"inline-block",height:kt.itemSizeSM,marginInlineEnd:kt.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:kt.marginXS,padding:`0 ${kt.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:kt.itemInputBg,border:`${kt.lineWidth}px ${kt.lineType} ${kt.colorBorder}`,borderRadius:kt.borderRadius,outline:"none",transition:`border-color ${kt.motionDurationMid}`,color:"inherit","&:hover":{borderColor:kt.colorPrimary},"&:focus":{borderColor:kt.colorPrimaryHover,boxShadow:`${kt.inputOutlineOffset}px 0 ${kt.controlOutlineWidth}px ${kt.controlOutline}`},"&[disabled]":{color:kt.colorTextDisabled,backgroundColor:kt.colorBgContainerDisabled,borderColor:kt.colorBorder,cursor:"not-allowed"}}}}},xe=kt=>{const{componentCls:Xt}=kt;return{[`${Xt}-jump-prev, ${Xt}-jump-next`]:{outline:0,[`${Xt}-item-container`]:{position:"relative",[`${Xt}-item-link-icon`]:{color:kt.colorPrimary,fontSize:kt.fontSizeSM,opacity:0,transition:`all ${kt.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Xt}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:kt.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:kt.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:kt.paginationEllipsisTextIndent,opacity:1,transition:`all ${kt.motionDurationMid}`}},"&:hover":{[`${Xt}-item-link-icon`]:{opacity:1},[`${Xt}-item-ellipsis`]:{opacity:0}}},[`
${Xt}-prev,
${Xt}-jump-prev,
${Xt}-jump-next
`]:{marginInlineEnd:kt.marginXS},[`
${Xt}-prev,
${Xt}-next,
${Xt}-jump-prev,
${Xt}-jump-next
`]:{display:"inline-block",minWidth:kt.itemSize,height:kt.itemSize,color:kt.colorText,fontFamily:kt.fontFamily,lineHeight:`${kt.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:kt.borderRadius,cursor:"pointer",transition:`all ${kt.motionDurationMid}`},[`${Xt}-prev, ${Xt}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:kt.colorText,cursor:"pointer",userSelect:"none"},[`${Xt}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:kt.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${kt.lineWidth}px ${kt.lineType} transparent`,borderRadius:kt.borderRadius,outline:"none",transition:`all ${kt.motionDurationMid}`},[`&:hover ${Xt}-item-link`]:{backgroundColor:kt.colorBgTextHover},[`&:active ${Xt}-item-link`]:{backgroundColor:kt.colorBgTextActive},[`&${Xt}-disabled:hover`]:{[`${Xt}-item-link`]:{backgroundColor:"transparent"}}},[`${Xt}-slash`]:{marginInlineEnd:kt.paginationSlashMarginInlineEnd,marginInlineStart:kt.paginationSlashMarginInlineStart},[`${Xt}-options`]:{display:"inline-block",marginInlineStart:kt.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:kt.controlHeight,marginInlineStart:kt.marginXS,lineHeight:`${kt.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Yt.ik)(kt)),{width:kt.controlHeightLG*1.25,height:kt.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:kt.marginXS,marginInlineEnd:kt.marginXS})}}}},ge=kt=>{const{componentCls:Xt}=kt;return{[`${Xt}-item`]:{display:"inline-block",minWidth:kt.itemSize,height:kt.itemSize,marginInlineEnd:kt.marginXS,fontFamily:kt.fontFamily,lineHeight:`${kt.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${kt.lineWidth}px ${kt.lineType} transparent`,borderRadius:kt.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${kt.paginationItemPaddingInline}px`,color:kt.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Xt}-item-active)`]:{"&:hover":{transition:`all ${kt.motionDurationMid}`,backgroundColor:kt.colorBgTextHover},"&:active":{backgroundColor:kt.colorBgTextActive}},"&-active":{fontWeight:kt.fontWeightStrong,backgroundColor:kt.itemActiveBg,borderColor:kt.colorPrimary,a:{color:kt.colorPrimary},"&:hover":{borderColor:kt.colorPrimaryHover},"&:hover a":{color:kt.colorPrimaryHover}}}}},se=kt=>{const{componentCls:Xt}=kt;return{[Xt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Cn.Wf)(kt)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Xt}-total-text`]:{display:"inline-block",height:kt.itemSize,marginInlineEnd:kt.marginXS,lineHeight:`${kt.itemSize-2}px`,verticalAlign:"middle"}}),ge(kt)),xe(kt)),ue(kt)),fe(kt)),ze(kt)),{[`@media only screen and (max-width: ${kt.screenLG}px)`]:{[`${Xt}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${kt.screenSM}px)`]:{[`${Xt}-options`]:{display:"none"}}}),[`&${kt.componentCls}-rtl`]:{direction:"rtl"}}},Fe=kt=>{const{componentCls:Xt}=kt;return{[`${Xt}${Xt}-disabled:not(${Xt}-mini)`]:{"&, &:hover":{[`${Xt}-item-link`]:{borderColor:kt.colorBorder}},"&:focus-visible":{[`${Xt}-item-link`]:{borderColor:kt.colorBorder}},[`${Xt}-item, ${Xt}-item-link`]:{backgroundColor:kt.colorBgContainerDisabled,borderColor:kt.colorBorder,[`&:hover:not(${Xt}-item-active)`]:{backgroundColor:kt.colorBgContainerDisabled,borderColor:kt.colorBorder,a:{color:kt.colorTextDisabled}},[`&${Xt}-item-active`]:{backgroundColor:kt.itemActiveBgDisabled}},[`${Xt}-prev, ${Xt}-next`]:{"&:hover button":{backgroundColor:kt.colorBgContainerDisabled,borderColor:kt.colorBorder,color:kt.colorTextDisabled},[`${Xt}-item-link`]:{backgroundColor:kt.colorBgContainerDisabled,borderColor:kt.colorBorder}}},[`${Xt}:not(${Xt}-mini)`]:{[`${Xt}-prev, ${Xt}-next`]:{"&:hover button":{borderColor:kt.colorPrimaryHover,backgroundColor:kt.itemBg},[`${Xt}-item-link`]:{backgroundColor:kt.itemLinkBg,borderColor:kt.colorBorder},[`&:hover ${Xt}-item-link`]:{borderColor:kt.colorPrimary,backgroundColor:kt.itemBg,color:kt.colorPrimary},[`&${Xt}-disabled`]:{[`${Xt}-item-link`]:{borderColor:kt.colorBorder,color:kt.colorTextDisabled}}},[`${Xt}-item`]:{backgroundColor:kt.itemBg,border:`${kt.lineWidth}px ${kt.lineType} ${kt.colorBorder}`,[`&:hover:not(${Xt}-item-active)`]:{borderColor:kt.colorPrimary,backgroundColor:kt.itemBg,a:{color:kt.colorPrimary}},"&-active":{borderColor:kt.colorPrimary}}}}},st=kt=>{const{componentCls:Xt}=kt;return{[`${Xt}:not(${Xt}-disabled)`]:{[`${Xt}-item`]:Object.assign({},(0,Cn.Qy)(kt)),[`${Xt}-jump-prev, ${Xt}-jump-next`]:{"&:focus-visible":Object.assign({[`${Xt}-item-link-icon`]:{opacity:1},[`${Xt}-item-ellipsis`]:{opacity:0}},(0,Cn.oN)(kt))},[`${Xt}-prev, ${Xt}-next`]:{[`&:focus-visible ${Xt}-item-link`]:Object.assign({},(0,Cn.oN)(kt))}}}};var en=(0,pr.Z)("Pagination",kt=>{const Xt=(0,Xn.TS)(kt,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:kt.marginXXS/2,paginationMiniQuickJumperInputWidth:kt.controlHeightLG*1.1,paginationItemPaddingInline:kt.marginXXS*1.5,paginationEllipsisLetterSpacing:kt.marginXXS/2,paginationSlashMarginInlineStart:kt.marginXXS,paginationSlashMarginInlineEnd:kt.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Yt.e5)(kt),(0,Yt.TM)(kt));return[se(Xt),st(Xt),kt.wireframe&&Fe(Xt)]},kt=>({itemBg:kt.colorBgContainer,itemSize:kt.controlHeight,itemSizeSM:kt.controlHeightSM,itemActiveBg:kt.colorBgContainer,itemLinkBg:kt.colorBgContainer,itemActiveColorDisabled:kt.colorTextDisabled,itemActiveBgDisabled:kt.controlItemBgActiveDisabled,itemInputBg:kt.colorBgContainer,miniOptionsSizeChangerTop:0})),Sn=function(kt,Xt){var Jt={};for(var jt in kt)Object.prototype.hasOwnProperty.call(kt,jt)&&Xt.indexOf(jt)<0&&(Jt[jt]=kt[jt]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,jt=Object.getOwnPropertySymbols(kt);Bt<jt.length;Bt++)Xt.indexOf(jt[Bt])<0&&Object.prototype.propertyIsEnumerable.call(kt,jt[Bt])&&(Jt[jt[Bt]]=kt[jt[Bt]]);return Jt},zn=kt=>{const{prefixCls:Xt,selectPrefixCls:Jt,className:jt,rootClassName:Bt,style:ir,size:Ct,locale:At,selectComponentClass:er,responsive:An,showSizeChanger:fr}=kt,Rr=Sn(kt,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:ii}=(0,xt.Z)(An),{getPrefixCls:Yr,direction:Jr,pagination:mi={}}=Me.useContext(Vn.E_),Br=Yr("pagination",Xt),[ki,Vi]=en(Br),ha=fr!=null?fr:mi.showSizeChanger,pa=Me.useMemo(()=>{const Lr=Me.createElement("span",{className:`${Br}-item-ellipsis`},"\u2022\u2022\u2022"),or=Me.createElement("button",{className:`${Br}-item-link`,type:"button",tabIndex:-1},Jr==="rtl"?Me.createElement(Le.Z,null):Me.createElement(pe.Z,null)),Et=Me.createElement("button",{className:`${Br}-item-link`,type:"button",tabIndex:-1},Jr==="rtl"?Me.createElement(pe.Z,null):Me.createElement(Le.Z,null)),_t=Me.createElement("a",{className:`${Br}-item-link`},Me.createElement("div",{className:`${Br}-item-container`},Jr==="rtl"?Me.createElement(we.Z,{className:`${Br}-item-link-icon`}):Me.createElement(de,{className:`${Br}-item-link-icon`}),Lr)),zt=Me.createElement("a",{className:`${Br}-item-link`},Me.createElement("div",{className:`${Br}-item-container`},Jr==="rtl"?Me.createElement(de,{className:`${Br}-item-link-icon`}):Me.createElement(we.Z,{className:`${Br}-item-link-icon`}),Lr));return{prevIcon:or,nextIcon:Et,jumpPrevIcon:_t,jumpNextIcon:zt}},[Jr,Br]),[Ui]=(0,Mt.Z)("Pagination",Rt.Z),Ut=Object.assign(Object.assign({},Ui),At),Qt=(0,In.Z)(Ct),un=Qt==="small"||!!(ii&&!Qt&&An),Bn=Yr("select",Jt),Cr=Re()({[`${Br}-mini`]:un,[`${Br}-rtl`]:Jr==="rtl"},mi==null?void 0:mi.className,jt,Bt,Vi),qn=Object.assign(Object.assign({},mi==null?void 0:mi.style),ir);return ki(Me.createElement(Be,Object.assign({},pa,Rr,{style:qn,prefixCls:Br,selectPrefixCls:Bn,className:Cr,selectComponentClass:er||(un?an:ln),locale:Ut,showSizeChanger:ha})))},vn=zn},38703:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return ir}});var le=te(67294),Me=te(87725),Ne=te(18299),Ue=te(16646),be=te(73475),ke=te(94184),de=te.n(ke),we=te(10366),pe=te(53124),Le=te(87462),nt=te(1413),Re=te(45987),We={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},qe=function(){var At=(0,le.useRef)([]),er=(0,le.useRef)(null);return(0,le.useEffect)(function(){var An=Date.now(),fr=!1;At.current.forEach(function(Rr){if(Rr){fr=!0;var ii=Rr.style;ii.transitionDuration=".3s, .3s, .3s, .06s",er.current&&An-er.current<100&&(ii.transitionDuration="0s, 0s")}}),fr&&(er.current=Date.now())}),At.current},lt=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Xe=function(At){var er=(0,nt.Z)((0,nt.Z)({},We),At),An=er.className,fr=er.percent,Rr=er.prefixCls,ii=er.strokeColor,Yr=er.strokeLinecap,Jr=er.strokeWidth,mi=er.style,Br=er.trailColor,ki=er.trailWidth,Vi=er.transition,ha=(0,Re.Z)(er,lt);delete ha.gapPosition;var pa=Array.isArray(fr)?fr:[fr],Ui=Array.isArray(ii)?ii:[ii],Ut=qe(),Qt=Jr/2,un=100-Jr/2,Bn="M ".concat(Yr==="round"?Qt:0,",").concat(Qt,`
L `).concat(Yr==="round"?un:100,",").concat(Qt),Cr="0 0 100 ".concat(Jr),qn=0;return le.createElement("svg",(0,Le.Z)({className:de()("".concat(Rr,"-line"),An),viewBox:Cr,preserveAspectRatio:"none",style:mi},ha),le.createElement("path",{className:"".concat(Rr,"-line-trail"),d:Bn,strokeLinecap:Yr,stroke:Br,strokeWidth:ki||Jr,fillOpacity:"0"}),pa.map(function(Lr,or){var Et=1;switch(Yr){case"round":Et=1-Jr/100;break;case"square":Et=1-Jr/2/100;break;default:Et=1;break}var _t={strokeDasharray:"".concat(Lr*Et,"px, 100px"),strokeDashoffset:"-".concat(qn,"px"),transition:Vi||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},zt=Ui[or]||Ui[Ui.length-1];return qn+=Lr,le.createElement("path",{key:or,className:"".concat(Rr,"-line-path"),d:Bn,strokeLinecap:Yr,stroke:zt,strokeWidth:Jr,fillOpacity:"0",ref:function(ft){Ut[or]=ft},style:_t})}))},ye=Xe,vt=te(71002),Pt=te(97685),ot=te(98924),ct=0,Se=(0,ot.Z)();function ce(){var Ct;return Se?(Ct=ct,ct+=1):Ct="TEST_OR_SSR",Ct}var He=function(Ct){var At=le.useState(),er=(0,Pt.Z)(At,2),An=er[0],fr=er[1];return le.useEffect(function(){fr("rc_progress_".concat(ce()))},[]),Ct||An},je=function(At){var er=At.bg,An=At.children;return le.createElement("div",{style:{width:"100%",height:"100%",background:er}},An)};function it(Ct,At){return Object.keys(Ct).map(function(er){var An=parseFloat(er),fr="".concat(Math.floor(An*At),"%");return"".concat(Ct[er]," ").concat(fr)})}var at=le.forwardRef(function(Ct,At){var er=Ct.prefixCls,An=Ct.color,fr=Ct.gradientId,Rr=Ct.radius,ii=Ct.style,Yr=Ct.ptg,Jr=Ct.strokeLinecap,mi=Ct.strokeWidth,Br=Ct.size,ki=Ct.gapDegree,Vi=An&&(0,vt.Z)(An)==="object",ha=Vi?"#FFF":void 0,pa=Br/2,Ui=le.createElement("circle",{className:"".concat(er,"-circle-path"),r:Rr,cx:pa,cy:pa,stroke:ha,strokeLinecap:Jr,strokeWidth:mi,opacity:Yr===0?0:1,style:ii,ref:At});if(!Vi)return Ui;var Ut="".concat(fr,"-conic"),Qt=ki?"".concat(180+ki/2,"deg"):"0deg",un=it(An,(360-ki)/360),Bn=it(An,1),Cr="conic-gradient(from ".concat(Qt,", ").concat(un.join(", "),")"),qn="linear-gradient(to ".concat(ki?"bottom":"top",", ").concat(Bn.join(", "),")");return le.createElement(le.Fragment,null,le.createElement("mask",{id:Ut},Ui),le.createElement("foreignObject",{x:0,y:0,width:Br,height:Br,mask:"url(#".concat(Ut,")")},le.createElement(je,{bg:qn},le.createElement(je,{bg:Cr}))))}),Ge=at,Ae=100,wt=function(At,er,An,fr,Rr,ii,Yr,Jr,mi,Br){var ki=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Vi=An/100*360*((360-ii)/360),ha=ii===0?0:{bottom:0,top:180,left:90,right:-90}[Yr],pa=(100-fr)/100*er;mi==="round"&&fr!==100&&(pa+=Br/2,pa>=er&&(pa=er-.01));var Ui=Ae/2;return{stroke:typeof Jr=="string"?Jr:void 0,strokeDasharray:"".concat(er,"px ").concat(At),strokeDashoffset:pa+ki,transform:"rotate(".concat(Rr+Vi+ha,"deg)"),transformOrigin:"".concat(Ui,"px ").concat(Ui,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},dt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function $t(Ct){var At=Ct!=null?Ct:[];return Array.isArray(At)?At:[At]}var bt=function(At){var er=(0,nt.Z)((0,nt.Z)({},We),At),An=er.id,fr=er.prefixCls,Rr=er.steps,ii=er.strokeWidth,Yr=er.trailWidth,Jr=er.gapDegree,mi=Jr===void 0?0:Jr,Br=er.gapPosition,ki=er.trailColor,Vi=er.strokeLinecap,ha=er.style,pa=er.className,Ui=er.strokeColor,Ut=er.percent,Qt=(0,Re.Z)(er,dt),un=Ae/2,Bn=He(An),Cr="".concat(Bn,"-gradient"),qn=un-ii/2,Lr=Math.PI*2*qn,or=mi>0?90+mi/2:-90,Et=Lr*((360-mi)/360),_t=(0,vt.Z)(Rr)==="object"?Rr:{count:Rr,space:2},zt=_t.count,wn=_t.space,ft=$t(Ut),Ht=$t(Ui),xn=Ht.find(function(Vr){return Vr&&(0,vt.Z)(Vr)==="object"}),En=xn&&(0,vt.Z)(xn)==="object",Hn=En?"butt":Vi,Gn=wt(Lr,Et,0,100,or,mi,Br,ki,Hn,ii),br=qe(),fi=function(){var ai=0;return ft.map(function(ei,Vt){var Kt=Ht[Vt]||Ht[Ht.length-1],nn=wt(Lr,Et,ai,ei,or,mi,Br,Kt,Hn,ii);return ai+=ei,le.createElement(Ge,{key:Vt,color:Kt,ptg:ei,radius:qn,prefixCls:fr,gradientId:Cr,style:nn,strokeLinecap:Hn,strokeWidth:ii,gapDegree:mi,ref:function(Tr){br[Vt]=Tr},size:Ae})}).reverse()},Gr=function(){var ai=Math.round(zt*(ft[0]/100)),ei=100/zt,Vt=0;return new Array(zt).fill(null).map(function(Kt,nn){var sr=nn<=ai-1?Ht[0]:ki,Tr=sr&&(0,vt.Z)(sr)==="object"?"url(#".concat(Cr,")"):void 0,Fn=wt(Lr,Et,Vt,ei,or,mi,Br,sr,"butt",ii,wn);return Vt+=(Et-Fn.strokeDashoffset+wn)*100/Et,le.createElement("circle",{key:nn,className:"".concat(fr,"-circle-path"),r:qn,cx:un,cy:un,stroke:Tr,strokeWidth:ii,opacity:1,style:Fn,ref:function(ur){br[nn]=ur}})})};return le.createElement("svg",(0,Le.Z)({className:de()("".concat(fr,"-circle"),pa),viewBox:"0 0 ".concat(Ae," ").concat(Ae),style:ha,id:An,role:"presentation"},Qt),!zt&&le.createElement("circle",{className:"".concat(fr,"-circle-trail"),r:qn,cx:un,cy:un,stroke:ki,strokeLinecap:Hn,strokeWidth:Yr||ii,style:Gn}),zt?Gr():fi())},Ot=bt,Pn={Line:ye,Circle:Ot},$n=te(83062),yt=te(16397);function Be(Ct){return!Ct||Ct<0?0:Ct>100?100:Ct}function Rt(Ct){let{success:At,successPercent:er}=Ct,An=er;return At&&"progress"in At&&(An=At.progress),At&&"percent"in At&&(An=At.percent),An}const Vn=Ct=>{let{percent:At,success:er,successPercent:An}=Ct;const fr=Be(Rt({success:er,successPercent:An}));return[fr,Be(Be(At)-fr)]},In=Ct=>{let{success:At={},strokeColor:er}=Ct;const{strokeColor:An}=At;return[An||yt.presetPrimaryColors.green,er||null]},xt=(Ct,At,er)=>{var An,fr,Rr,ii;let Yr=-1,Jr=-1;if(At==="step"){const mi=er.steps,Br=er.strokeWidth;typeof Ct=="string"||typeof Ct=="undefined"?(Yr=Ct==="small"?2:14,Jr=Br!=null?Br:8):typeof Ct=="number"?[Yr,Jr]=[Ct,Ct]:[Yr=14,Jr=8]=Ct,Yr*=mi}else if(At==="line"){const mi=er==null?void 0:er.strokeWidth;typeof Ct=="string"||typeof Ct=="undefined"?Jr=mi||(Ct==="small"?6:8):typeof Ct=="number"?[Yr,Jr]=[Ct,Ct]:[Yr=-1,Jr=8]=Ct}else(At==="circle"||At==="dashboard")&&(typeof Ct=="string"||typeof Ct=="undefined"?[Yr,Jr]=Ct==="small"?[60,60]:[120,120]:typeof Ct=="number"?[Yr,Jr]=[Ct,Ct]:(Yr=(fr=(An=Ct[0])!==null&&An!==void 0?An:Ct[1])!==null&&fr!==void 0?fr:120,Jr=(ii=(Rr=Ct[0])!==null&&Rr!==void 0?Rr:Ct[1])!==null&&ii!==void 0?ii:120));return[Yr,Jr]},Mt=3,qt=Ct=>Mt/Ct*100;var ln=Ct=>{const{prefixCls:At,trailColor:er=null,strokeLinecap:An="round",gapPosition:fr,gapDegree:Rr,width:ii=120,type:Yr,children:Jr,success:mi,size:Br=ii}=Ct,[ki,Vi]=xt(Br,"circle");let{strokeWidth:ha}=Ct;ha===void 0&&(ha=Math.max(qt(ki),6));const pa={width:ki,height:Vi,fontSize:ki*.15+6},Ui=le.useMemo(()=>{if(Rr||Rr===0)return Rr;if(Yr==="dashboard")return 75},[Rr,Yr]),Ut=fr||Yr==="dashboard"&&"bottom"||void 0,Qt=Object.prototype.toString.call(Ct.strokeColor)==="[object Object]",un=In({success:mi,strokeColor:Ct.strokeColor}),Bn=de()(`${At}-inner`,{[`${At}-circle-gradient`]:Qt}),Cr=le.createElement(Ot,{percent:Vn(Ct),strokeWidth:ha,trailWidth:ha,strokeColor:un,strokeLinecap:An,trailColor:er,prefixCls:At,gapDegree:Ui,gapPosition:Ut});return le.createElement("div",{className:Bn,style:pa},ki<=20?le.createElement($n.Z,{title:Jr},le.createElement("span",null,Cr)):le.createElement(le.Fragment,null,Cr,Jr))},Yt=function(Ct,At){var er={};for(var An in Ct)Object.prototype.hasOwnProperty.call(Ct,An)&&At.indexOf(An)<0&&(er[An]=Ct[An]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fr=0,An=Object.getOwnPropertySymbols(Ct);fr<An.length;fr++)At.indexOf(An[fr])<0&&Object.prototype.propertyIsEnumerable.call(Ct,An[fr])&&(er[An[fr]]=Ct[An[fr]]);return er};const Cn=Ct=>{let At=[];return Object.keys(Ct).forEach(er=>{const An=parseFloat(er.replace(/%/g,""));isNaN(An)||At.push({key:An,value:Ct[er]})}),At=At.sort((er,An)=>er.key-An.key),At.map(er=>{let{key:An,value:fr}=er;return`${fr} ${An}%`}).join(", ")},pr=(Ct,At)=>{const{from:er=yt.presetPrimaryColors.blue,to:An=yt.presetPrimaryColors.blue,direction:fr=At==="rtl"?"to left":"to right"}=Ct,Rr=Yt(Ct,["from","to","direction"]);if(Object.keys(Rr).length!==0){const ii=Cn(Rr);return{backgroundImage:`linear-gradient(${fr}, ${ii})`}}return{backgroundImage:`linear-gradient(${fr}, ${er}, ${An})`}};var ze=Ct=>{const{prefixCls:At,direction:er,percent:An,size:fr,strokeWidth:Rr,strokeColor:ii,strokeLinecap:Yr="round",children:Jr,trailColor:mi=null,success:Br}=Ct,ki=ii&&typeof ii!="string"?pr(ii,er):{backgroundColor:ii},Vi=Yr==="square"||Yr==="butt"?0:void 0,ha={backgroundColor:mi||void 0,borderRadius:Vi},pa=fr!=null?fr:[-1,Rr||(fr==="small"?6:8)],[Ui,Ut]=xt(pa,"line",{strokeWidth:Rr}),Qt=Object.assign({width:`${Be(An)}%`,height:Ut,borderRadius:Vi},ki),un=Rt(Ct),Bn={width:`${Be(un)}%`,height:Ut,borderRadius:Vi,backgroundColor:Br==null?void 0:Br.strokeColor},Cr={width:Ui<0?"100%":Ui,height:Ut};return le.createElement(le.Fragment,null,le.createElement("div",{className:`${At}-outer`,style:Cr},le.createElement("div",{className:`${At}-inner`,style:ha},le.createElement("div",{className:`${At}-bg`,style:Qt}),un!==void 0?le.createElement("div",{className:`${At}-success-bg`,style:Bn}):null)),Jr)},ue=Ct=>{const{size:At,steps:er,percent:An=0,strokeWidth:fr=8,strokeColor:Rr,trailColor:ii=null,prefixCls:Yr,children:Jr}=Ct,mi=Math.round(er*(An/100)),Br=At==="small"?2:14,ki=At!=null?At:[Br,fr],[Vi,ha]=xt(ki,"step",{steps:er,strokeWidth:fr}),pa=Vi/er,Ui=new Array(er);for(let Ut=0;Ut<er;Ut++){const Qt=Array.isArray(Rr)?Rr[Ut]:Rr;Ui[Ut]=le.createElement("div",{key:Ut,className:de()(`${Yr}-steps-item`,{[`${Yr}-steps-item-active`]:Ut<=mi-1}),style:{backgroundColor:Ut<=mi-1?Qt:ii,width:pa,height:ha}})}return le.createElement("div",{className:`${Yr}-steps-outer`},Ui,Jr)},xe=te(34367),ge=te(14747),se=te(67968),Fe=te(45503);const st=Ct=>{const At=Ct?"100%":"-100%";return new xe.Keyframes(`antProgress${Ct?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${At}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${At}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},en=Ct=>{const{componentCls:At,iconCls:er}=Ct;return{[At]:Object.assign(Object.assign({},(0,ge.Wf)(Ct)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Ct.fontSize,marginInlineEnd:Ct.marginXS,marginBottom:Ct.marginXS},[`${At}-outer`]:{display:"inline-block",width:"100%"},[`&${At}-show-info`]:{[`${At}-outer`]:{marginInlineEnd:`calc(-2em - ${Ct.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Ct.paddingXS}px)`}},[`${At}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Ct.remainingColor,borderRadius:Ct.lineBorderRadius},[`${At}-inner:not(${At}-circle-gradient)`]:{[`${At}-circle-path`]:{stroke:Ct.defaultColor}},[`${At}-success-bg, ${At}-bg`]:{position:"relative",backgroundColor:Ct.defaultColor,borderRadius:Ct.lineBorderRadius,transition:`all ${Ct.motionDurationSlow} ${Ct.motionEaseInOutCirc}`},[`${At}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Ct.colorSuccess},[`${At}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Ct.marginXS,color:Ct.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[er]:{fontSize:Ct.fontSize}},[`&${At}-status-active`]:{[`${At}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Ct.colorBgContainer,borderRadius:Ct.lineBorderRadius,opacity:0,animationName:st(),animationDuration:Ct.progressActiveMotionDuration,animationTimingFunction:Ct.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${At}-rtl${At}-status-active`]:{[`${At}-bg::before`]:{animationName:st(!0)}},[`&${At}-status-exception`]:{[`${At}-bg`]:{backgroundColor:Ct.colorError},[`${At}-text`]:{color:Ct.colorError}},[`&${At}-status-exception ${At}-inner:not(${At}-circle-gradient)`]:{[`${At}-circle-path`]:{stroke:Ct.colorError}},[`&${At}-status-success`]:{[`${At}-bg`]:{backgroundColor:Ct.colorSuccess},[`${At}-text`]:{color:Ct.colorSuccess}},[`&${At}-status-success ${At}-inner:not(${At}-circle-gradient)`]:{[`${At}-circle-path`]:{stroke:Ct.colorSuccess}}})}},Sn=Ct=>{const{componentCls:At,iconCls:er}=Ct;return{[At]:{[`${At}-circle-trail`]:{stroke:Ct.remainingColor},[`&${At}-circle ${At}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${At}-circle ${At}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Ct.circleTextColor,fontSize:Ct.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[er]:{fontSize:`${Ct.fontSize/Ct.fontSizeSM}em`}},[`${At}-circle&-status-exception`]:{[`${At}-text`]:{color:Ct.colorError}},[`${At}-circle&-status-success`]:{[`${At}-text`]:{color:Ct.colorSuccess}}},[`${At}-inline-circle`]:{lineHeight:1,[`${At}-inner`]:{verticalAlign:"bottom"}}}},dn=Ct=>{const{componentCls:At}=Ct;return{[At]:{[`${At}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Ct.progressStepMinWidth,marginInlineEnd:Ct.progressStepMarginInlineEnd,backgroundColor:Ct.remainingColor,transition:`all ${Ct.motionDurationSlow}`,"&-active":{backgroundColor:Ct.defaultColor}}}}}},zn=Ct=>{const{componentCls:At,iconCls:er}=Ct;return{[At]:{[`${At}-small&-line, ${At}-small&-line ${At}-text ${er}`]:{fontSize:Ct.fontSizeSM}}}};var vn=(0,se.Z)("Progress",Ct=>{const At=Ct.marginXXS/2,er=(0,Fe.TS)(Ct,{progressStepMarginInlineEnd:At,progressStepMinWidth:At,progressActiveMotionDuration:"2.4s"});return[en(er),Sn(er),dn(er),zn(er)]},Ct=>({circleTextColor:Ct.colorText,defaultColor:Ct.colorInfo,remainingColor:Ct.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),kt=function(Ct,At){var er={};for(var An in Ct)Object.prototype.hasOwnProperty.call(Ct,An)&&At.indexOf(An)<0&&(er[An]=Ct[An]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fr=0,An=Object.getOwnPropertySymbols(Ct);fr<An.length;fr++)At.indexOf(An[fr])<0&&Object.prototype.propertyIsEnumerable.call(Ct,An[fr])&&(er[An[fr]]=Ct[An[fr]]);return er};const Xt=null,Jt=["normal","exception","active","success"];var Bt=le.forwardRef((Ct,At)=>{const{prefixCls:er,className:An,rootClassName:fr,steps:Rr,strokeColor:ii,percent:Yr=0,size:Jr="default",showInfo:mi=!0,type:Br="line",status:ki,format:Vi,style:ha}=Ct,pa=kt(Ct,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Ui=le.useMemo(()=>{var ft,Ht;const xn=Rt(Ct);return parseInt(xn!==void 0?(ft=xn!=null?xn:0)===null||ft===void 0?void 0:ft.toString():(Ht=Yr!=null?Yr:0)===null||Ht===void 0?void 0:Ht.toString(),10)},[Yr,Ct.success,Ct.successPercent]),Ut=le.useMemo(()=>!Jt.includes(ki)&&Ui>=100?"success":ki||"normal",[ki,Ui]),{getPrefixCls:Qt,direction:un,progress:Bn}=le.useContext(pe.E_),Cr=Qt("progress",er),[qn,Lr]=vn(Cr),or=le.useMemo(()=>{if(!mi)return null;const ft=Rt(Ct);let Ht;const xn=Vi||(Hn=>`${Hn}%`),En=Br==="line";return Vi||Ut!=="exception"&&Ut!=="success"?Ht=xn(Be(Yr),Be(ft)):Ut==="exception"?Ht=En?le.createElement(Ue.Z,null):le.createElement(be.Z,null):Ut==="success"&&(Ht=En?le.createElement(Me.Z,null):le.createElement(Ne.Z,null)),le.createElement("span",{className:`${Cr}-text`,title:typeof Ht=="string"?Ht:void 0},Ht)},[mi,Yr,Ui,Ut,Br,Cr,Vi]),Et=Array.isArray(ii)?ii[0]:ii,_t=typeof ii=="string"||Array.isArray(ii)?ii:void 0;let zt;Br==="line"?zt=Rr?le.createElement(ue,Object.assign({},Ct,{strokeColor:_t,prefixCls:Cr,steps:Rr}),or):le.createElement(ze,Object.assign({},Ct,{strokeColor:Et,prefixCls:Cr,direction:un}),or):(Br==="circle"||Br==="dashboard")&&(zt=le.createElement(ln,Object.assign({},Ct,{strokeColor:Et,prefixCls:Cr,progressStatus:Ut}),or));const wn=de()(Cr,`${Cr}-status-${Ut}`,`${Cr}-${Br==="dashboard"&&"circle"||Rr&&"steps"||Br}`,{[`${Cr}-inline-circle`]:Br==="circle"&&xt(Jr,"circle")[0]<=20,[`${Cr}-show-info`]:mi,[`${Cr}-${Jr}`]:typeof Jr=="string",[`${Cr}-rtl`]:un==="rtl"},Bn==null?void 0:Bn.className,An,fr,Lr);return qn(le.createElement("div",Object.assign({ref:At,style:Object.assign(Object.assign({},Bn==null?void 0:Bn.style),ha),className:wn,role:"progressbar","aria-valuenow":Ui},(0,we.Z)(pa,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),zt))}),ir=Bt},78045:function(Nn,Nt,te){"use strict";te.d(Nt,{ZP:function(){return yt}});var le=te(94184),Me=te.n(le),Ne=te(5663),Ue=te(1337),be=te(67294),ke=te(53124),de=te(98675);const we=be.createContext(null),pe=we.Provider;var Le=we;const nt=be.createContext(null),Re=nt.Provider;var We=te(95860),qe=te(17799),lt=te(98866),Xe=te(65223),ye=te(14747),vt=te(67968),Pt=te(45503);const ot=Be=>{const{componentCls:Rt,antCls:Vn}=Be,In=`${Rt}-group`;return{[In]:Object.assign(Object.assign({},(0,ye.Wf)(Be)),{display:"inline-block",fontSize:0,[`&${In}-rtl`]:{direction:"rtl"},[`${Vn}-badge ${Vn}-badge-count`]:{zIndex:1},[`> ${Vn}-badge:not(:first-child) > ${Vn}-button-wrapper`]:{borderInlineStart:"none"}})}},ct=Be=>{const{componentCls:Rt,wrapperMarginInlineEnd:Vn,colorPrimary:In,radioSize:xt,motionDurationSlow:Mt,motionDurationMid:qt,motionEaseInOutCirc:an,colorBgContainer:ln,colorBorder:Yt,lineWidth:Cn,dotSize:pr,colorBgContainerDisabled:Xn,colorTextDisabled:ze,paddingXS:fe,dotColorDisabled:ue,lineType:xe,radioDotDisabledSize:ge,wireframe:se,colorWhite:Fe}=Be,st=`${Rt}-inner`;return{[`${Rt}-wrapper`]:Object.assign(Object.assign({},(0,ye.Wf)(Be)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:Vn,cursor:"pointer",[`&${Rt}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:Be.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${Rt}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Cn}px ${xe} ${In}`,borderRadius:"50%",visibility:"hidden",content:'""'},[Rt]:Object.assign(Object.assign({},(0,ye.Wf)(Be)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${Rt}-wrapper:hover &,
&:hover ${st}`]:{borderColor:In},[`${Rt}-input:focus-visible + ${st}`]:Object.assign({},(0,ye.oN)(Be)),[`${Rt}:hover::after, ${Rt}-wrapper:hover &::after`]:{visibility:"visible"},[`${Rt}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:xt,height:xt,marginBlockStart:xt/-2,marginInlineStart:xt/-2,backgroundColor:se?In:Fe,borderBlockStart:0,borderInlineStart:0,borderRadius:xt,transform:"scale(0)",opacity:0,transition:`all ${Mt} ${an}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:xt,height:xt,backgroundColor:ln,borderColor:Yt,borderStyle:"solid",borderWidth:Cn,borderRadius:"50%",transition:`all ${qt}`},[`${Rt}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${Rt}-checked`]:{[st]:{borderColor:In,backgroundColor:se?ln:In,"&::after":{transform:`scale(${pr/xt})`,opacity:1,transition:`all ${Mt} ${an}`}}},[`${Rt}-disabled`]:{cursor:"not-allowed",[st]:{backgroundColor:Xn,borderColor:Yt,cursor:"not-allowed","&::after":{backgroundColor:ue}},[`${Rt}-input`]:{cursor:"not-allowed"},[`${Rt}-disabled + span`]:{color:ze,cursor:"not-allowed"},[`&${Rt}-checked`]:{[st]:{"&::after":{transform:`scale(${ge/xt})`}}}},[`span${Rt} + *`]:{paddingInlineStart:fe,paddingInlineEnd:fe}})}},Se=Be=>{const{buttonColor:Rt,controlHeight:Vn,componentCls:In,lineWidth:xt,lineType:Mt,colorBorder:qt,motionDurationSlow:an,motionDurationMid:ln,buttonPaddingInline:Yt,fontSize:Cn,buttonBg:pr,fontSizeLG:Xn,controlHeightLG:ze,controlHeightSM:fe,paddingXS:ue,borderRadius:xe,borderRadiusSM:ge,borderRadiusLG:se,buttonCheckedBg:Fe,buttonSolidCheckedColor:st,colorTextDisabled:en,colorBgContainerDisabled:Sn,buttonCheckedBgDisabled:dn,buttonCheckedColorDisabled:zn,colorPrimary:vn,colorPrimaryHover:kt,colorPrimaryActive:Xt,buttonSolidCheckedBg:Jt,buttonSolidCheckedHoverBg:jt,buttonSolidCheckedActiveBg:Bt}=Be;return{[`${In}-button-wrapper`]:{position:"relative",display:"inline-block",height:Vn,margin:0,paddingInline:Yt,paddingBlock:0,color:Rt,fontSize:Cn,lineHeight:`${Vn-xt*2}px`,background:pr,border:`${xt}px ${Mt} ${qt}`,borderBlockStartWidth:xt+.02,borderInlineStartWidth:0,borderInlineEndWidth:xt,cursor:"pointer",transition:[`color ${ln}`,`background ${ln}`,`box-shadow ${ln}`].join(","),a:{color:Rt},[`> ${In}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-xt,insetInlineStart:-xt,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:xt,paddingInline:0,backgroundColor:qt,transition:`background-color ${an}`,content:'""'}},"&:first-child":{borderInlineStart:`${xt}px ${Mt} ${qt}`,borderStartStartRadius:xe,borderEndStartRadius:xe},"&:last-child":{borderStartEndRadius:xe,borderEndEndRadius:xe},"&:first-child:last-child":{borderRadius:xe},[`${In}-group-large &`]:{height:ze,fontSize:Xn,lineHeight:`${ze-xt*2}px`,"&:first-child":{borderStartStartRadius:se,borderEndStartRadius:se},"&:last-child":{borderStartEndRadius:se,borderEndEndRadius:se}},[`${In}-group-small &`]:{height:fe,paddingInline:ue-xt,paddingBlock:0,lineHeight:`${fe-xt*2}px`,"&:first-child":{borderStartStartRadius:ge,borderEndStartRadius:ge},"&:last-child":{borderStartEndRadius:ge,borderEndEndRadius:ge}},"&:hover":{position:"relative",color:vn},"&:has(:focus-visible)":Object.assign({},(0,ye.oN)(Be)),[`${In}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${In}-button-wrapper-disabled)`]:{zIndex:1,color:vn,background:Fe,borderColor:vn,"&::before":{backgroundColor:vn},"&:first-child":{borderColor:vn},"&:hover":{color:kt,borderColor:kt,"&::before":{backgroundColor:kt}},"&:active":{color:Xt,borderColor:Xt,"&::before":{backgroundColor:Xt}}},[`${In}-group-solid &-checked:not(${In}-button-wrapper-disabled)`]:{color:st,background:Jt,borderColor:Jt,"&:hover":{color:st,background:jt,borderColor:jt},"&:active":{color:st,background:Bt,borderColor:Bt}},"&-disabled":{color:en,backgroundColor:Sn,borderColor:qt,cursor:"not-allowed","&:first-child, &:hover":{color:en,backgroundColor:Sn,borderColor:qt}},[`&-disabled${In}-button-wrapper-checked`]:{color:zn,backgroundColor:dn,borderColor:qt,boxShadow:"none"}}}},ce=Be=>Be-4*2;var He=(0,vt.Z)("Radio",Be=>{const{controlOutline:Rt,controlOutlineWidth:Vn,radioSize:In}=Be,xt=`0 0 0 ${Vn}px ${Rt}`,Mt=xt,qt=ce(In),an=(0,Pt.TS)(Be,{radioDotDisabledSize:qt,radioFocusShadow:xt,radioButtonFocusShadow:Mt});return[ot(an),ct(an),Se(an)]},Be=>{const{wireframe:Rt,padding:Vn,marginXS:In,lineWidth:xt,fontSizeLG:Mt,colorText:qt,colorBgContainer:an,colorTextDisabled:ln,controlItemBgActiveDisabled:Yt,colorTextLightSolid:Cn,colorPrimary:pr,colorPrimaryHover:Xn,colorPrimaryActive:ze}=Be,fe=4,ue=Mt,xe=Rt?ce(ue):ue-(fe+xt)*2;return{radioSize:ue,dotSize:xe,dotColorDisabled:ln,buttonSolidCheckedColor:Cn,buttonSolidCheckedBg:pr,buttonSolidCheckedHoverBg:Xn,buttonSolidCheckedActiveBg:ze,buttonBg:an,buttonCheckedBg:an,buttonColor:qt,buttonCheckedBgDisabled:Yt,buttonCheckedColorDisabled:ln,buttonPaddingInline:Vn-xt,wrapperMarginInlineEnd:In}}),je=te(45353),it=te(92429),at=function(Be,Rt){var Vn={};for(var In in Be)Object.prototype.hasOwnProperty.call(Be,In)&&Rt.indexOf(In)<0&&(Vn[In]=Be[In]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xt=0,In=Object.getOwnPropertySymbols(Be);xt<In.length;xt++)Rt.indexOf(In[xt])<0&&Object.prototype.propertyIsEnumerable.call(Be,In[xt])&&(Vn[In[xt]]=Be[In[xt]]);return Vn};const Ge=(Be,Rt)=>{var Vn,In;const xt=be.useContext(Le),Mt=be.useContext(nt),{getPrefixCls:qt,direction:an,radio:ln}=be.useContext(ke.E_),Yt=be.useRef(null),Cn=(0,qe.sQ)(Rt,Yt),{isFormItemInput:pr}=be.useContext(Xe.aM),Xn=Xt=>{var Jt,jt;(Jt=Be.onChange)===null||Jt===void 0||Jt.call(Be,Xt),(jt=xt==null?void 0:xt.onChange)===null||jt===void 0||jt.call(xt,Xt)},{prefixCls:ze,className:fe,rootClassName:ue,children:xe,style:ge}=Be,se=at(Be,["prefixCls","className","rootClassName","children","style"]),Fe=qt("radio",ze),st=((xt==null?void 0:xt.optionType)||Mt)==="button",en=st?`${Fe}-button`:Fe,[Sn,dn]=He(Fe),zn=Object.assign({},se),vn=be.useContext(lt.Z);xt&&(zn.name=xt.name,zn.onChange=Xn,zn.checked=Be.value===xt.value,zn.disabled=(Vn=zn.disabled)!==null&&Vn!==void 0?Vn:xt.disabled),zn.disabled=(In=zn.disabled)!==null&&In!==void 0?In:vn;const kt=Me()(`${en}-wrapper`,{[`${en}-wrapper-checked`]:zn.checked,[`${en}-wrapper-disabled`]:zn.disabled,[`${en}-wrapper-rtl`]:an==="rtl",[`${en}-wrapper-in-form-item`]:pr},ln==null?void 0:ln.className,fe,ue,dn);return Sn(be.createElement(je.Z,{component:"Radio",disabled:zn.disabled},be.createElement("label",{className:kt,style:Object.assign(Object.assign({},ln==null?void 0:ln.style),ge),onMouseEnter:Be.onMouseEnter,onMouseLeave:Be.onMouseLeave},be.createElement(We.Z,Object.assign({},zn,{className:Me()(zn.className,!st&&it.A),type:"radio",prefixCls:en,ref:Cn})),xe!==void 0?be.createElement("span",null,xe):null)))};var wt=be.forwardRef(Ge);const dt=be.forwardRef((Be,Rt)=>{const{getPrefixCls:Vn,direction:In}=be.useContext(ke.E_),[xt,Mt]=(0,Ne.Z)(Be.defaultValue,{value:Be.value}),qt=Jt=>{const jt=xt,Bt=Jt.target.value;"value"in Be||Mt(Bt);const{onChange:ir}=Be;ir&&Bt!==jt&&ir(Jt)},{prefixCls:an,className:ln,rootClassName:Yt,options:Cn,buttonStyle:pr="outline",disabled:Xn,children:ze,size:fe,style:ue,id:xe,onMouseEnter:ge,onMouseLeave:se,onFocus:Fe,onBlur:st}=Be,en=Vn("radio",an),Sn=`${en}-group`,[dn,zn]=He(en);let vn=ze;Cn&&Cn.length>0&&(vn=Cn.map(Jt=>typeof Jt=="string"||typeof Jt=="number"?be.createElement(wt,{key:Jt.toString(),prefixCls:en,disabled:Xn,value:Jt,checked:xt===Jt},Jt):be.createElement(wt,{key:`radio-group-value-options-${Jt.value}`,prefixCls:en,disabled:Jt.disabled||Xn,value:Jt.value,checked:xt===Jt.value,title:Jt.title,style:Jt.style},Jt.label)));const kt=(0,de.Z)(fe),Xt=Me()(Sn,`${Sn}-${pr}`,{[`${Sn}-${kt}`]:kt,[`${Sn}-rtl`]:In==="rtl"},ln,Yt,zn);return dn(be.createElement("div",Object.assign({},(0,Ue.Z)(Be,{aria:!0,data:!0}),{className:Xt,style:ue,onMouseEnter:ge,onMouseLeave:se,onFocus:Fe,onBlur:st,id:xe,ref:Rt}),be.createElement(pe,{value:{onChange:qt,value:xt,disabled:Be.disabled,name:Be.name,optionType:Be.optionType}},vn)))});var $t=be.memo(dt),bt=function(Be,Rt){var Vn={};for(var In in Be)Object.prototype.hasOwnProperty.call(Be,In)&&Rt.indexOf(In)<0&&(Vn[In]=Be[In]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xt=0,In=Object.getOwnPropertySymbols(Be);xt<In.length;xt++)Rt.indexOf(In[xt])<0&&Object.prototype.propertyIsEnumerable.call(Be,In[xt])&&(Vn[In[xt]]=Be[In[xt]]);return Vn};const Ot=(Be,Rt)=>{const{getPrefixCls:Vn}=be.useContext(ke.E_),{prefixCls:In}=Be,xt=bt(Be,["prefixCls"]),Mt=Vn("radio",In);return be.createElement(Re,{value:"button"},be.createElement(wt,Object.assign({prefixCls:Mt},xt,{type:"radio",ref:Rt})))};var Pn=be.forwardRef(Ot);const $n=wt;$n.Button=Pn,$n.Group=$t,$n.__ANT_RADIO=!0;var yt=$n},11713:function(Nn,Nt,te){"use strict";te.d(Nt,{default:function(){return $r}});var le=te(94184),Me=te.n(le),Ne=te(87462),Ue=te(74902),be=te(4942),ke=te(1413),de=te(97685),we=te(45987),pe=te(71002),Le=te(67294);function nt(Qe){var rt=Le.useRef();rt.current=Qe;var Zt=Le.useCallback(function(){for(var It,gn=arguments.length,Un=new Array(gn),Yn=0;Yn<gn;Yn++)Un[Yn]=arguments[Yn];return(It=rt.current)===null||It===void 0?void 0:It.call.apply(It,[rt].concat(Un))},[]);return Zt}function Re(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var We=Re()?Le.useLayoutEffect:Le.useEffect,qe=We,lt=function(rt,Zt){var It=Le.useRef(!0);We(function(){if(!It.current)return rt()},Zt),We(function(){return It.current=!1,function(){It.current=!0}},[])};function Xe(Qe){var rt=Le.useRef(!1),Zt=Le.useState(Qe),It=(0,de.Z)(Zt,2),gn=It[0],Un=It[1];Le.useEffect(function(){return rt.current=!1,function(){rt.current=!0}},[]);function Yn(Ar,gr){gr&&rt.current||Un(Ar)}return[gn,Yn]}function ye(Qe){return Qe!==void 0}function vt(Qe,rt){var Zt=rt||{},It=Zt.defaultValue,gn=Zt.value,Un=Zt.onChange,Yn=Zt.postState,Ar=Xe(function(){return ye(gn)?gn:ye(It)?typeof It=="function"?It():It:typeof Qe=="function"?Qe():Qe}),gr=(0,de.Z)(Ar,2),tr=gr[0],Or=gr[1],Kr=gn!==void 0?gn:tr,ci=Yn?Yn(Kr):Kr,Hr=nt(Un),yi=Xe([Kr]),Ii=(0,de.Z)(yi,2),Si=Ii[0],Ni=Ii[1];lt(function(){var Di=Si[0];tr!==Di&&Hr(tr,Di)},[Si]),lt(function(){ye(gn)||Or(gn)},[gn]);var gi=nt(function(Di,Ri){Or(Di,Ri),Ni([Kr],Ri)});return[ci,gi]}var Pt={};function ot(Qe,rt){}function ct(Qe,rt){}function Se(){Pt={}}function ce(Qe,rt,Zt){!rt&&!Pt[Zt]&&(Qe(!1,Zt),Pt[Zt]=!0)}function He(Qe,rt){ce(ot,Qe,rt)}function je(Qe,rt){ce(ct,Qe,rt)}var it=He,at=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Qe=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(Qe)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(Qe==null?void 0:Qe.substr(0,4))},Ge={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(rt){var Zt=rt.keyCode;if(rt.altKey&&!rt.ctrlKey||rt.metaKey||Zt>=Ge.F1&&Zt<=Ge.F12)return!1;switch(Zt){case Ge.ALT:case Ge.CAPS_LOCK:case Ge.CONTEXT_MENU:case Ge.CTRL:case Ge.DOWN:case Ge.END:case Ge.ESC:case Ge.HOME:case Ge.INSERT:case Ge.LEFT:case Ge.MAC_FF_META:case Ge.META:case Ge.NUMLOCK:case Ge.NUM_CENTER:case Ge.PAGE_DOWN:case Ge.PAGE_UP:case Ge.PAUSE:case Ge.PRINT_SCREEN:case Ge.RIGHT:case Ge.SHIFT:case Ge.UP:case Ge.WIN_KEY:case Ge.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(rt){if(rt>=Ge.ZERO&&rt<=Ge.NINE||rt>=Ge.NUM_ZERO&&rt<=Ge.NUM_MULTIPLY||rt>=Ge.A&&rt<=Ge.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&rt===0)return!0;switch(rt){case Ge.SPACE:case Ge.QUESTION_MARK:case Ge.NUM_PLUS:case Ge.NUM_MINUS:case Ge.NUM_PERIOD:case Ge.NUM_DIVISION:case Ge.SEMICOLON:case Ge.DASH:case Ge.EQUALS:case Ge.COMMA:case Ge.PERIOD:case Ge.SLASH:case Ge.APOSTROPHE:case Ge.SINGLE_QUOTE:case Ge.OPEN_SQUARE_BRACKET:case Ge.BACKSLASH:case Ge.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Ae=Ge,wt=te(47655);function dt(Qe,rt,Zt){var It=Le.useRef({});return(!("value"in It.current)||Zt(It.current.condition,rt))&&(It.current.value=Qe(),It.current.condition=rt),It.current.value}function $t(Qe,rt){typeof Qe=="function"?Qe(rt):(0,pe.Z)(Qe)==="object"&&Qe&&"current"in Qe&&(Qe.current=rt)}function bt(){for(var Qe=arguments.length,rt=new Array(Qe),Zt=0;Zt<Qe;Zt++)rt[Zt]=arguments[Zt];var It=rt.filter(function(gn){return gn});return It.length<=1?It[0]:function(gn){rt.forEach(function(Un){$t(Un,gn)})}}function Ot(){for(var Qe=arguments.length,rt=new Array(Qe),Zt=0;Zt<Qe;Zt++)rt[Zt]=arguments[Zt];return dt(function(){return bt.apply(void 0,rt)},rt,function(It,gn){return It.length===gn.length&&It.every(function(Un,Yn){return Un===gn[Yn]})})}function Pn(Qe){var rt,Zt,It=isMemo(Qe)?Qe.type.type:Qe.type;return!(typeof It=="function"&&!((rt=It.prototype)!==null&&rt!==void 0&&rt.render)||typeof Qe=="function"&&!((Zt=Qe.prototype)!==null&&Zt!==void 0&&Zt.render))}var $n=function(rt){var Zt=rt.className,It=rt.customizeIcon,gn=rt.customizeIconProps,Un=rt.onMouseDown,Yn=rt.onClick,Ar=rt.children,gr;return typeof It=="function"?gr=It(gn):gr=It,Le.createElement("span",{className:Zt,onMouseDown:function(Or){Or.preventDefault(),Un&&Un(Or)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Yn,"aria-hidden":!0},gr!==void 0?gr:Le.createElement("span",{className:Me()(Zt.split(/\s+/).map(function(tr){return"".concat(tr,"-icon")}))},Ar))},yt=$n;function Be(Qe,rt,Zt,It,gn){var Un=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Yn=arguments.length>6?arguments[6]:void 0,Ar=arguments.length>7?arguments[7]:void 0,gr=Le.useMemo(function(){if((0,pe.Z)(It)==="object")return It.clearIcon;if(gn)return gn},[It,gn]),tr=Le.useMemo(function(){return!!(!Un&&It&&(Zt.length||Yn)&&!(Ar==="combobox"&&Yn===""))},[It,Un,Zt.length,Yn,Ar]);return{allowClear:tr,clearIcon:Le.createElement(yt,{className:"".concat(Qe,"-clear"),onMouseDown:rt,customizeIcon:gr},"\xD7")}}var Rt=Le.createContext(null);function Vn(){return Le.useContext(Rt)}function In(){var Qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,rt=Le.useState(!1),Zt=(0,de.Z)(rt,2),It=Zt[0],gn=Zt[1],Un=Le.useRef(null),Yn=function(){window.clearTimeout(Un.current)};Le.useEffect(function(){return Yn},[]);var Ar=function(tr,Or){Yn(),Un.current=window.setTimeout(function(){gn(tr),Or&&Or()},Qe)};return[It,Ar,Yn]}function xt(){var Qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,rt=Le.useRef(null),Zt=Le.useRef(null);Le.useEffect(function(){return function(){window.clearTimeout(Zt.current)}},[]);function It(gn){(gn||rt.current===null)&&(rt.current=gn),window.clearTimeout(Zt.current),Zt.current=window.setTimeout(function(){rt.current=null},Qe)}return[function(){return rt.current},It]}function Mt(Qe,rt,Zt,It){var gn=Le.useRef(null);gn.current={open:rt,triggerOpen:Zt,customizedTrigger:It},Le.useEffect(function(){function Un(Yn){var Ar;if(!((Ar=gn.current)!==null&&Ar!==void 0&&Ar.customizedTrigger)){var gr=Yn.target;gr.shadowRoot&&Yn.composed&&(gr=Yn.composedPath()[0]||gr),gn.current.open&&Qe().filter(function(tr){return tr}).every(function(tr){return!tr.contains(gr)&&tr!==gr})&&gn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Un),function(){return window.removeEventListener("mousedown",Un)}},[])}var qt=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,an=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,ln="".concat(qt," ").concat(an).split(/[\s\n]+/),Yt="aria-",Cn="data-";function pr(Qe,rt){return Qe.indexOf(rt)===0}function Xn(Qe){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Zt;rt===!1?Zt={aria:!0,data:!0,attr:!0}:rt===!0?Zt={aria:!0}:Zt=(0,ke.Z)({},rt);var It={};return Object.keys(Qe).forEach(function(gn){(Zt.aria&&(gn==="role"||pr(gn,Yt))||Zt.data&&pr(gn,Cn)||Zt.attr&&ln.includes(gn))&&(It[gn]=Qe[gn])}),It}var ze=te(48555),fe=te(14075),ue=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],xe=void 0;function ge(Qe,rt){var Zt=Qe.prefixCls,It=Qe.invalidate,gn=Qe.item,Un=Qe.renderItem,Yn=Qe.responsive,Ar=Qe.responsiveDisabled,gr=Qe.registerSize,tr=Qe.itemKey,Or=Qe.className,Kr=Qe.style,ci=Qe.children,Hr=Qe.display,yi=Qe.order,Ii=Qe.component,Si=Ii===void 0?"div":Ii,Ni=(0,we.Z)(Qe,ue),gi=Yn&&!Hr;function Di(Ca){gr(tr,Ca)}Le.useEffect(function(){return function(){Di(null)}},[]);var Ri=Un&&gn!==xe?Un(gn):ci,sa;It||(sa={opacity:gi?0:1,height:gi?0:xe,overflowY:gi?"hidden":xe,order:Yn?yi:xe,pointerEvents:gi?"none":xe,position:gi?"absolute":xe});var bi={};gi&&(bi["aria-hidden"]=!0);var ba=Le.createElement(Si,(0,Ne.Z)({className:Me()(!It&&Zt,Or),style:(0,ke.Z)((0,ke.Z)({},sa),Kr)},bi,Ni,{ref:rt}),Ri);return Yn&&(ba=Le.createElement(ze.Z,{onResize:function(Co){var Qa=Co.offsetWidth;Di(Qa)},disabled:Ar},ba)),ba}var se=Le.forwardRef(ge);se.displayName="Item";var Fe=se,st=te(77527),en=te(73935),Sn=te(96523);function dn(Qe){if(typeof MessageChannel=="undefined")(0,Sn.Z)(Qe);else{var rt=new MessageChannel;rt.port1.onmessage=function(){return Qe()},rt.port2.postMessage(void 0)}}function zn(){var Qe=Le.useRef(null),rt=function(It){Qe.current||(Qe.current=[],dn(function(){(0,en.unstable_batchedUpdates)(function(){Qe.current.forEach(function(gn){gn()}),Qe.current=null})})),Qe.current.push(It)};return rt}function vn(Qe,rt){var Zt=Le.useState(rt),It=(0,de.Z)(Zt,2),gn=It[0],Un=It[1],Yn=(0,st.Z)(function(Ar){Qe(function(){Un(Ar)})});return[gn,Yn]}var kt=Le.createContext(null),Xt=["component"],Jt=["className"],jt=["className"],Bt=function(rt,Zt){var It=Le.useContext(kt);if(!It){var gn=rt.component,Un=gn===void 0?"div":gn,Yn=(0,we.Z)(rt,Xt);return Le.createElement(Un,(0,Ne.Z)({},Yn,{ref:Zt}))}var Ar=It.className,gr=(0,we.Z)(It,Jt),tr=rt.className,Or=(0,we.Z)(rt,jt);return Le.createElement(kt.Provider,{value:null},Le.createElement(Fe,(0,Ne.Z)({ref:Zt,className:Me()(Ar,tr)},gr,Or)))},ir=Le.forwardRef(Bt);ir.displayName="RawItem";var Ct=ir,At=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],er="responsive",An="invalidate";function fr(Qe){return"+ ".concat(Qe.length," ...")}function Rr(Qe,rt){var Zt=Qe.prefixCls,It=Zt===void 0?"rc-overflow":Zt,gn=Qe.data,Un=gn===void 0?[]:gn,Yn=Qe.renderItem,Ar=Qe.renderRawItem,gr=Qe.itemKey,tr=Qe.itemWidth,Or=tr===void 0?10:tr,Kr=Qe.ssr,ci=Qe.style,Hr=Qe.className,yi=Qe.maxCount,Ii=Qe.renderRest,Si=Qe.renderRawRest,Ni=Qe.suffix,gi=Qe.component,Di=gi===void 0?"div":gi,Ri=Qe.itemComponent,sa=Qe.onVisibleChange,bi=(0,we.Z)(Qe,At),ba=Kr==="full",Ca=zn(),Co=vn(Ca,null),Qa=(0,de.Z)(Co,2),za=Qa[0],la=Qa[1],ga=za||0,Xi=vn(Ca,new Map),Ba=(0,de.Z)(Xi,2),Qi=Ba[0],Bi=Ba[1],Ea=vn(Ca,0),Va=(0,de.Z)(Ea,2),Jo=Va[0],zo=Va[1],Oo=vn(Ca,0),Po=(0,de.Z)(Oo,2),co=Po[0],xa=Po[1],us=vn(Ca,0),Ka=(0,de.Z)(us,2),ua=Ka[0],Ja=Ka[1],Wo=(0,Le.useState)(null),fo=(0,de.Z)(Wo,2),bo=fo[0],Ma=fo[1],Uo=(0,Le.useState)(null),os=(0,de.Z)(Uo,2),Xo=os[0],ss=os[1],cs=Le.useMemo(function(){return Xo===null&&ba?Number.MAX_SAFE_INTEGER:Xo||0},[Xo,za]),Os=(0,Le.useState)(!1),qo=(0,de.Z)(Os,2),es=qo[0],Zs=qo[1],Ws="".concat(It,"-item"),el=Math.max(Jo,co),bs=yi===er,ns=Un.length&&bs,Wa=yi===An,ro=ns||typeof yi=="number"&&Un.length>yi,Vo=(0,Le.useMemo)(function(){var _n=Un;return ns?za===null&&ba?_n=Un:_n=Un.slice(0,Math.min(Un.length,ga/Or)):typeof yi=="number"&&(_n=Un.slice(0,yi)),_n},[Un,Or,za,yi,ns]),rs=(0,Le.useMemo)(function(){return ns?Un.slice(cs+1):Un.slice(Vo.length)},[Un,Vo,ns,cs]),Rs=(0,Le.useCallback)(function(_n,Mn){var kr;return typeof gr=="function"?gr(_n):(kr=gr&&(_n==null?void 0:_n[gr]))!==null&&kr!==void 0?kr:Mn},[gr]),tl=(0,Le.useCallback)(Yn||function(_n){return _n},[Yn]);function il(_n,Mn,kr){Xo===_n&&(Mn===void 0||Mn===bo)||(ss(_n),kr||(Zs(_n<Un.length-1),sa==null||sa(_n)),Mn!==void 0&&Ma(Mn))}function pl(_n,Mn){la(Mn.clientWidth)}function Al(_n,Mn){Bi(function(kr){var Zn=new Map(kr);return Mn===null?Zn.delete(_n):Zn.set(_n,Mn),Zn})}function nl(_n,Mn){xa(Mn),zo(co)}function Fl(_n,Mn){Ja(Mn)}function To(_n){return Qi.get(Rs(Vo[_n],_n))}(0,fe.Z)(function(){if(ga&&typeof el=="number"&&Vo){var _n=ua,Mn=Vo.length,kr=Mn-1;if(!Mn){il(0,null);return}for(var Zn=0;Zn<Mn;Zn+=1){var nr=To(Zn);if(ba&&(nr=nr||0),nr===void 0){il(Zn-1,void 0,!0);break}if(_n+=nr,kr===0&&_n<=ga||Zn===kr-1&&_n+To(kr)<=ga){il(kr,null);break}else if(_n+el>ga){il(Zn-1,_n-nr-ua+co);break}}Ni&&To(0)+ua>ga&&Ma(null)}},[ga,Qi,co,ua,Rs,Vo]);var Ce=es&&!!rs.length,Oe={};bo!==null&&ns&&(Oe={position:"absolute",left:bo,top:0});var _e={prefixCls:Ws,responsive:ns,component:Ri,invalidate:Wa},Dt=Ar?function(_n,Mn){var kr=Rs(_n,Mn);return Le.createElement(kt.Provider,{key:kr,value:(0,ke.Z)((0,ke.Z)({},_e),{},{order:Mn,item:_n,itemKey:kr,registerSize:Al,display:Mn<=cs})},Ar(_n,Mn))}:function(_n,Mn){var kr=Rs(_n,Mn);return Le.createElement(Fe,(0,Ne.Z)({},_e,{order:Mn,key:kr,item:_n,renderItem:tl,itemKey:kr,registerSize:Al,display:Mn<=cs}))},Lt,Ln={order:Ce?cs:Number.MAX_SAFE_INTEGER,className:"".concat(Ws,"-rest"),registerSize:nl,display:Ce};if(Si)Si&&(Lt=Le.createElement(kt.Provider,{value:(0,ke.Z)((0,ke.Z)({},_e),Ln)},Si(rs)));else{var yn=Ii||fr;Lt=Le.createElement(Fe,(0,Ne.Z)({},_e,Ln),typeof yn=="function"?yn(rs):yn)}var vr=Le.createElement(Di,(0,Ne.Z)({className:Me()(!Wa&&It,Hr),style:ci,ref:rt},bi),Vo.map(Dt),ro?Lt:null,Ni&&Le.createElement(Fe,(0,Ne.Z)({},_e,{responsive:bs,responsiveDisabled:!ns,order:cs,className:"".concat(Ws,"-suffix"),registerSize:Fl,display:!0,style:Oe}),Ni));return bs&&(vr=Le.createElement(ze.Z,{onResize:pl,disabled:!ns},vr)),vr}var ii=Le.forwardRef(Rr);ii.displayName="Overflow",ii.Item=Ct,ii.RESPONSIVE=er,ii.INVALIDATE=An;var Yr=ii,Jr=Yr,mi=function(rt,Zt){var It,gn,Un=rt.prefixCls,Yn=rt.id,Ar=rt.inputElement,gr=rt.disabled,tr=rt.tabIndex,Or=rt.autoFocus,Kr=rt.autoComplete,ci=rt.editable,Hr=rt.activeDescendantId,yi=rt.value,Ii=rt.maxLength,Si=rt.onKeyDown,Ni=rt.onMouseDown,gi=rt.onChange,Di=rt.onPaste,Ri=rt.onCompositionStart,sa=rt.onCompositionEnd,bi=rt.open,ba=rt.attrs,Ca=Ar||Le.createElement("input",null),Co=Ca,Qa=Co.ref,za=Co.props,la=za.onKeyDown,ga=za.onChange,Xi=za.onMouseDown,Ba=za.onCompositionStart,Qi=za.onCompositionEnd,Bi=za.style;return"maxLength"in Ca.props,Ca=Le.cloneElement(Ca,(0,ke.Z)((0,ke.Z)((0,ke.Z)({type:"search"},za),{},{id:Yn,ref:bt(Zt,Qa),disabled:gr,tabIndex:tr,autoComplete:Kr||"off",autoFocus:Or,className:Me()("".concat(Un,"-selection-search-input"),(It=Ca)===null||It===void 0||(gn=It.props)===null||gn===void 0?void 0:gn.className),role:"combobox","aria-label":"Search","aria-expanded":bi||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Yn,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Yn,"_list"),"aria-activedescendant":bi?Hr:void 0},ba),{},{value:ci?yi:"",maxLength:Ii,readOnly:!ci,unselectable:ci?null:"on",style:(0,ke.Z)((0,ke.Z)({},Bi),{},{opacity:ci?null:0}),onKeyDown:function(Va){Si(Va),la&&la(Va)},onMouseDown:function(Va){Ni(Va),Xi&&Xi(Va)},onChange:function(Va){gi(Va),ga&&ga(Va)},onCompositionStart:function(Va){Ri(Va),Ba&&Ba(Va)},onCompositionEnd:function(Va){sa(Va),Qi&&Qi(Va)},onPaste:Di})),Ca},Br=Le.forwardRef(mi);Br.displayName="Input";var ki=Br;function Vi(Qe){return Array.isArray(Qe)?Qe:Qe!==void 0?[Qe]:[]}var ha=typeof window!="undefined"&&window.document&&window.document.documentElement,pa=ha;function Ui(Qe){return Qe!=null}function Ut(Qe){return!Qe&&Qe!==0}function Qt(Qe){return["string","number"].includes((0,pe.Z)(Qe))}function un(Qe){var rt=void 0;return Qe&&(Qt(Qe.title)?rt=Qe.title.toString():Qt(Qe.label)&&(rt=Qe.label.toString())),rt}function Bn(Qe,rt){pa?Le.useLayoutEffect(Qe,rt):Le.useEffect(Qe,rt)}function Cr(Qe){var rt;return(rt=Qe.key)!==null&&rt!==void 0?rt:Qe.value}var qn=function(rt){rt.preventDefault(),rt.stopPropagation()},Lr=function(rt){var Zt=rt.id,It=rt.prefixCls,gn=rt.values,Un=rt.open,Yn=rt.searchValue,Ar=rt.autoClearSearchValue,gr=rt.inputRef,tr=rt.placeholder,Or=rt.disabled,Kr=rt.mode,ci=rt.showSearch,Hr=rt.autoFocus,yi=rt.autoComplete,Ii=rt.activeDescendantId,Si=rt.tabIndex,Ni=rt.removeIcon,gi=rt.maxTagCount,Di=rt.maxTagTextLength,Ri=rt.maxTagPlaceholder,sa=Ri===void 0?function(Ma){return"+ ".concat(Ma.length," ...")}:Ri,bi=rt.tagRender,ba=rt.onToggleOpen,Ca=rt.onRemove,Co=rt.onInputChange,Qa=rt.onInputPaste,za=rt.onInputKeyDown,la=rt.onInputMouseDown,ga=rt.onInputCompositionStart,Xi=rt.onInputCompositionEnd,Ba=Le.useRef(null),Qi=(0,Le.useState)(0),Bi=(0,de.Z)(Qi,2),Ea=Bi[0],Va=Bi[1],Jo=(0,Le.useState)(!1),zo=(0,de.Z)(Jo,2),Oo=zo[0],Po=zo[1],co="".concat(It,"-selection"),xa=Un||Kr==="multiple"&&Ar===!1||Kr==="tags"?Yn:"",us=Kr==="tags"||Kr==="multiple"&&Ar===!1||ci&&(Un||Oo);Bn(function(){Va(Ba.current.scrollWidth)},[xa]);function Ka(Ma,Uo,os,Xo,ss){return Le.createElement("span",{className:Me()("".concat(co,"-item"),(0,be.Z)({},"".concat(co,"-item-disabled"),os)),title:un(Ma)},Le.createElement("span",{className:"".concat(co,"-item-content")},Uo),Xo&&Le.createElement(yt,{className:"".concat(co,"-item-remove"),onMouseDown:qn,onClick:ss,customizeIcon:Ni},"\xD7"))}function ua(Ma,Uo,os,Xo,ss){var cs=function(qo){qn(qo),ba(!Un)};return Le.createElement("span",{onMouseDown:cs},bi({label:Uo,value:Ma,disabled:os,closable:Xo,onClose:ss}))}function Ja(Ma){var Uo=Ma.disabled,os=Ma.label,Xo=Ma.value,ss=!Or&&!Uo,cs=os;if(typeof Di=="number"&&(typeof os=="string"||typeof os=="number")){var Os=String(cs);Os.length>Di&&(cs="".concat(Os.slice(0,Di),"..."))}var qo=function(Zs){Zs&&Zs.stopPropagation(),Ca(Ma)};return typeof bi=="function"?ua(Xo,cs,Uo,ss,qo):Ka(Ma,cs,Uo,ss,qo)}function Wo(Ma){var Uo=typeof sa=="function"?sa(Ma):sa;return Ka({title:Uo},Uo,!1)}var fo=Le.createElement("div",{className:"".concat(co,"-search"),style:{width:Ea},onFocus:function(){Po(!0)},onBlur:function(){Po(!1)}},Le.createElement(ki,{ref:gr,open:Un,prefixCls:It,id:Zt,inputElement:null,disabled:Or,autoFocus:Hr,autoComplete:yi,editable:us,activeDescendantId:Ii,value:xa,onKeyDown:za,onMouseDown:la,onChange:Co,onPaste:Qa,onCompositionStart:ga,onCompositionEnd:Xi,tabIndex:Si,attrs:Xn(rt,!0)}),Le.createElement("span",{ref:Ba,className:"".concat(co,"-search-mirror"),"aria-hidden":!0},xa,"\xA0")),bo=Le.createElement(Jr,{prefixCls:"".concat(co,"-overflow"),data:gn,renderItem:Ja,renderRest:Wo,suffix:fo,itemKey:Cr,maxCount:gi});return Le.createElement(Le.Fragment,null,bo,!gn.length&&!xa&&Le.createElement("span",{className:"".concat(co,"-placeholder")},tr))},or=Lr,Et=function(rt){var Zt=rt.inputElement,It=rt.prefixCls,gn=rt.id,Un=rt.inputRef,Yn=rt.disabled,Ar=rt.autoFocus,gr=rt.autoComplete,tr=rt.activeDescendantId,Or=rt.mode,Kr=rt.open,ci=rt.values,Hr=rt.placeholder,yi=rt.tabIndex,Ii=rt.showSearch,Si=rt.searchValue,Ni=rt.activeValue,gi=rt.maxLength,Di=rt.onInputKeyDown,Ri=rt.onInputMouseDown,sa=rt.onInputChange,bi=rt.onInputPaste,ba=rt.onInputCompositionStart,Ca=rt.onInputCompositionEnd,Co=rt.title,Qa=Le.useState(!1),za=(0,de.Z)(Qa,2),la=za[0],ga=za[1],Xi=Or==="combobox",Ba=Xi||Ii,Qi=ci[0],Bi=Si||"";Xi&&Ni&&!la&&(Bi=Ni),Le.useEffect(function(){Xi&&ga(!1)},[Xi,Ni]);var Ea=Or!=="combobox"&&!Kr&&!Ii?!1:!!Bi,Va=Co===void 0?un(Qi):Co,Jo=function(){if(Qi)return null;var Oo=Ea?{visibility:"hidden"}:void 0;return Le.createElement("span",{className:"".concat(It,"-selection-placeholder"),style:Oo},Hr)};return Le.createElement(Le.Fragment,null,Le.createElement("span",{className:"".concat(It,"-selection-search")},Le.createElement(ki,{ref:Un,prefixCls:It,id:gn,open:Kr,inputElement:Zt,disabled:Yn,autoFocus:Ar,autoComplete:gr,editable:Ba,activeDescendantId:tr,value:Bi,onKeyDown:Di,onMouseDown:Ri,onChange:function(Oo){ga(!0),sa(Oo)},onPaste:bi,onCompositionStart:ba,onCompositionEnd:Ca,tabIndex:yi,attrs:Xn(rt,!0),maxLength:Xi?gi:void 0})),!Xi&&Qi?Le.createElement("span",{className:"".concat(It,"-selection-item"),title:Va,style:Ea?{visibility:"hidden"}:void 0},Qi.label):null,Jo())},_t=Et;function zt(Qe){return![Ae.ESC,Ae.SHIFT,Ae.BACKSPACE,Ae.TAB,Ae.WIN_KEY,Ae.ALT,Ae.META,Ae.WIN_KEY_RIGHT,Ae.CTRL,Ae.SEMICOLON,Ae.EQUALS,Ae.CAPS_LOCK,Ae.CONTEXT_MENU,Ae.F1,Ae.F2,Ae.F3,Ae.F4,Ae.F5,Ae.F6,Ae.F7,Ae.F8,Ae.F9,Ae.F10,Ae.F11,Ae.F12].includes(Qe)}var wn=function(rt,Zt){var It=(0,Le.useRef)(null),gn=(0,Le.useRef)(!1),Un=rt.prefixCls,Yn=rt.open,Ar=rt.mode,gr=rt.showSearch,tr=rt.tokenWithEnter,Or=rt.autoClearSearchValue,Kr=rt.onSearch,ci=rt.onSearchSubmit,Hr=rt.onToggleOpen,yi=rt.onInputKeyDown,Ii=rt.domRef;Le.useImperativeHandle(Zt,function(){return{focus:function(){It.current.focus()},blur:function(){It.current.blur()}}});var Si=xt(0),Ni=(0,de.Z)(Si,2),gi=Ni[0],Di=Ni[1],Ri=function(Bi){var Ea=Bi.which;(Ea===Ae.UP||Ea===Ae.DOWN)&&Bi.preventDefault(),yi&&yi(Bi),Ea===Ae.ENTER&&Ar==="tags"&&!gn.current&&!Yn&&(ci==null||ci(Bi.target.value)),zt(Ea)&&Hr(!0)},sa=function(){Di(!0)},bi=(0,Le.useRef)(null),ba=function(Bi){Kr(Bi,!0,gn.current)!==!1&&Hr(!0)},Ca=function(){gn.current=!0},Co=function(Bi){gn.current=!1,Ar!=="combobox"&&ba(Bi.target.value)},Qa=function(Bi){var Ea=Bi.target.value;if(tr&&bi.current&&/[\r\n]/.test(bi.current)){var Va=bi.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Ea=Ea.replace(Va,bi.current)}bi.current=null,ba(Ea)},za=function(Bi){var Ea=Bi.clipboardData,Va=Ea.getData("text");bi.current=Va},la=function(Bi){var Ea=Bi.target;if(Ea!==It.current){var Va=document.body.style.msTouchAction!==void 0;Va?setTimeout(function(){It.current.focus()}):It.current.focus()}},ga=function(Bi){var Ea=gi();Bi.target!==It.current&&!Ea&&Ar!=="combobox"&&Bi.preventDefault(),(Ar!=="combobox"&&(!gr||!Ea)||!Yn)&&(Yn&&Or!==!1&&Kr("",!0,!1),Hr())},Xi={inputRef:It,onInputKeyDown:Ri,onInputMouseDown:sa,onInputChange:Qa,onInputPaste:za,onInputCompositionStart:Ca,onInputCompositionEnd:Co},Ba=Ar==="multiple"||Ar==="tags"?Le.createElement(or,(0,Ne.Z)({},rt,Xi)):Le.createElement(_t,(0,Ne.Z)({},rt,Xi));return Le.createElement("div",{ref:Ii,className:"".concat(Un,"-selector"),onClick:la,onMouseDown:ga},Ba)},ft=Le.forwardRef(wn);ft.displayName="Selector";var Ht=ft,xn=te(62709),En=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Hn=function(rt){var Zt=rt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Zt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Zt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Zt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Zt,adjustY:1},htmlRegion:"scroll"}}},Gn=function(rt,Zt){var It=rt.prefixCls,gn=rt.disabled,Un=rt.visible,Yn=rt.children,Ar=rt.popupElement,gr=rt.animation,tr=rt.transitionName,Or=rt.dropdownStyle,Kr=rt.dropdownClassName,ci=rt.direction,Hr=ci===void 0?"ltr":ci,yi=rt.placement,Ii=rt.builtinPlacements,Si=rt.dropdownMatchSelectWidth,Ni=rt.dropdownRender,gi=rt.dropdownAlign,Di=rt.getPopupContainer,Ri=rt.empty,sa=rt.getTriggerDOMNode,bi=rt.onPopupVisibleChange,ba=rt.onPopupMouseEnter,Ca=(0,we.Z)(rt,En),Co="".concat(It,"-dropdown"),Qa=Ar;Ni&&(Qa=Ni(Ar));var za=Le.useMemo(function(){return Ii||Hn(Si)},[Ii,Si]),la=gr?"".concat(Co,"-").concat(gr):tr,ga=typeof Si=="number",Xi=Le.useMemo(function(){return ga?null:Si===!1?"minWidth":"width"},[Si,ga]),Ba=Or;ga&&(Ba=(0,ke.Z)((0,ke.Z)({},Ba),{},{width:Si}));var Qi=Le.useRef(null);return Le.useImperativeHandle(Zt,function(){return{getPopupElement:function(){return Qi.current}}}),Le.createElement(xn.Z,(0,Ne.Z)({},Ca,{showAction:bi?["click"]:[],hideAction:bi?["click"]:[],popupPlacement:yi||(Hr==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:za,prefixCls:Co,popupTransitionName:la,popup:Le.createElement("div",{ref:Qi,onMouseEnter:ba},Qa),stretch:Xi,popupAlign:gi,popupVisible:Un,getPopupContainer:Di,popupClassName:Me()(Kr,(0,be.Z)({},"".concat(Co,"-empty"),Ri)),popupStyle:Ba,getTriggerDOMNode:sa,onPopupVisibleChange:bi}),Yn)},br=Le.forwardRef(Gn);br.displayName="SelectTrigger";var fi=br,Gr=te(84506);function Vr(Qe,rt){var Zt=Qe.key,It;return"value"in Qe&&(It=Qe.value),Zt!=null?Zt:It!==void 0?It:"rc-index-key-".concat(rt)}function ai(Qe,rt){var Zt=Qe||{},It=Zt.label,gn=Zt.value,Un=Zt.options,Yn=Zt.groupLabel,Ar=It||(rt?"children":"label");return{label:Ar,value:gn||"value",options:Un||"options",groupLabel:Yn||Ar}}function ei(Qe){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Zt=rt.fieldNames,It=rt.childrenAsData,gn=[],Un=ai(Zt,!1),Yn=Un.label,Ar=Un.value,gr=Un.options,tr=Un.groupLabel;function Or(Kr,ci){Kr.forEach(function(Hr){if(ci||!(gr in Hr)){var yi=Hr[Ar];gn.push({key:Vr(Hr,gn.length),groupOption:ci,data:Hr,label:Hr[Yn],value:yi})}else{var Ii=Hr[tr];Ii===void 0&&It&&(Ii=Hr.label),gn.push({key:Vr(Hr,gn.length),group:!0,data:Hr,label:Ii}),Or(Hr[gr],!0)}})}return Or(Qe,!1),gn}function Vt(Qe){var rt=(0,ke.Z)({},Qe);return"props"in rt||Object.defineProperty(rt,"props",{get:function(){return it(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),rt}}),rt}function Kt(Qe,rt){if(!rt||!rt.length)return null;var Zt=!1;function It(Un,Yn){var Ar=(0,Gr.Z)(Yn),gr=Ar[0],tr=Ar.slice(1);if(!gr)return[Un];var Or=Un.split(gr);return Zt=Zt||Or.length>1,Or.reduce(function(Kr,ci){return[].concat((0,Ue.Z)(Kr),(0,Ue.Z)(It(ci,tr)))},[]).filter(function(Kr){return Kr})}var gn=It(Qe,rt);return Zt?gn:null}var nn=["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"],sr=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Tr(Qe){return Qe==="tags"||Qe==="multiple"}var Fn=Le.forwardRef(function(Qe,rt){var Zt,It,gn=Qe.id,Un=Qe.prefixCls,Yn=Qe.className,Ar=Qe.showSearch,gr=Qe.tagRender,tr=Qe.direction,Or=Qe.omitDomProps,Kr=Qe.displayValues,ci=Qe.onDisplayValuesChange,Hr=Qe.emptyOptions,yi=Qe.notFoundContent,Ii=yi===void 0?"Not Found":yi,Si=Qe.onClear,Ni=Qe.mode,gi=Qe.disabled,Di=Qe.loading,Ri=Qe.getInputElement,sa=Qe.getRawInputElement,bi=Qe.open,ba=Qe.defaultOpen,Ca=Qe.onDropdownVisibleChange,Co=Qe.activeValue,Qa=Qe.onActiveValueChange,za=Qe.activeDescendantId,la=Qe.searchValue,ga=Qe.autoClearSearchValue,Xi=Qe.onSearch,Ba=Qe.onSearchSplit,Qi=Qe.tokenSeparators,Bi=Qe.allowClear,Ea=Qe.suffixIcon,Va=Qe.clearIcon,Jo=Qe.OptionList,zo=Qe.animation,Oo=Qe.transitionName,Po=Qe.dropdownStyle,co=Qe.dropdownClassName,xa=Qe.dropdownMatchSelectWidth,us=Qe.dropdownRender,Ka=Qe.dropdownAlign,ua=Qe.placement,Ja=Qe.builtinPlacements,Wo=Qe.getPopupContainer,fo=Qe.showAction,bo=fo===void 0?[]:fo,Ma=Qe.onFocus,Uo=Qe.onBlur,os=Qe.onKeyUp,Xo=Qe.onKeyDown,ss=Qe.onMouseDown,cs=(0,we.Z)(Qe,nn),Os=Tr(Ni),qo=(Ar!==void 0?Ar:Os)||Ni==="combobox",es=(0,ke.Z)({},cs);sr.forEach(function(ao){delete es[ao]}),Or==null||Or.forEach(function(ao){delete es[ao]});var Zs=Le.useState(!1),Ws=(0,de.Z)(Zs,2),el=Ws[0],bs=Ws[1];Le.useEffect(function(){bs(at())},[]);var ns=Le.useRef(null),Wa=Le.useRef(null),ro=Le.useRef(null),Vo=Le.useRef(null),rs=Le.useRef(null),Rs=In(),tl=(0,de.Z)(Rs,3),il=tl[0],pl=tl[1],Al=tl[2];Le.useImperativeHandle(rt,function(){var ao,eo;return{focus:(ao=Vo.current)===null||ao===void 0?void 0:ao.focus,blur:(eo=Vo.current)===null||eo===void 0?void 0:eo.blur,scrollTo:function(ks){var po;return(po=rs.current)===null||po===void 0?void 0:po.scrollTo(ks)}}});var nl=Le.useMemo(function(){var ao;if(Ni!=="combobox")return la;var eo=(ao=Kr[0])===null||ao===void 0?void 0:ao.value;return typeof eo=="string"||typeof eo=="number"?String(eo):""},[la,Ni,Kr]),Fl=Ni==="combobox"&&typeof Ri=="function"&&Ri()||null,To=typeof sa=="function"&&sa(),Ce=Ot(Wa,To==null||(Zt=To.props)===null||Zt===void 0?void 0:Zt.ref),Oe=Le.useState(!1),_e=(0,de.Z)(Oe,2),Dt=_e[0],Lt=_e[1];qe(function(){Lt(!0)},[]);var Ln=vt(!1,{defaultValue:ba,value:bi}),yn=(0,de.Z)(Ln,2),vr=yn[0],_n=yn[1],Mn=Dt?vr:!1,kr=!Ii&&Hr;(gi||kr&&Mn&&Ni==="combobox")&&(Mn=!1);var Zn=kr?!1:Mn,nr=Le.useCallback(function(ao){var eo=ao!==void 0?ao:!Mn;gi||(_n(eo),Mn!==eo&&(Ca==null||Ca(eo)))},[gi,Mn,_n,Ca]),Zr=Le.useMemo(function(){return(Qi||[]).some(function(ao){return[`
`,`\r
`].includes(ao)})},[Qi]),Ur=function(eo,xs,ks){var po=!0,jo=eo;Qa==null||Qa(null);var Sa=ks?null:Kt(eo,Qi);return Ni!=="combobox"&&Sa&&(jo="",Ba==null||Ba(Sa),nr(!1),po=!1),Xi&&nl!==jo&&Xi(jo,{source:xs?"typing":"effect"}),po},hr=function(eo){!eo||!eo.trim()||Xi(eo,{source:"submit"})};Le.useEffect(function(){!Mn&&!Os&&Ni!=="combobox"&&Ur("",!1,!1)},[Mn]),Le.useEffect(function(){vr&&gi&&_n(!1),gi&&pl(!1)},[gi]);var Fr=xt(),ni=(0,de.Z)(Fr,2),li=ni[0],xi=ni[1],Fi=function(eo){var xs=li(),ks=eo.which;if(ks===Ae.ENTER&&(Ni!=="combobox"&&eo.preventDefault(),Mn||nr(!0)),xi(!!nl),ks===Ae.BACKSPACE&&!xs&&Os&&!nl&&Kr.length){for(var po=(0,Ue.Z)(Kr),jo=null,Sa=po.length-1;Sa>=0;Sa-=1){var Ko=po[Sa];if(!Ko.disabled){po.splice(Sa,1),jo=Ko;break}}jo&&ci(po,{type:"remove",values:[jo]})}for(var as=arguments.length,Ks=new Array(as>1?as-1:0),Hs=1;Hs<as;Hs++)Ks[Hs-1]=arguments[Hs];if(Mn&&rs.current){var Us;(Us=rs.current).onKeyDown.apply(Us,[eo].concat(Ks))}Xo==null||Xo.apply(void 0,[eo].concat(Ks))},ta=function(eo){for(var xs=arguments.length,ks=new Array(xs>1?xs-1:0),po=1;po<xs;po++)ks[po-1]=arguments[po];if(Mn&&rs.current){var jo;(jo=rs.current).onKeyUp.apply(jo,[eo].concat(ks))}os==null||os.apply(void 0,[eo].concat(ks))},Hi=function(eo){var xs=Kr.filter(function(ks){return ks!==eo});ci(xs,{type:"remove",values:[eo]})},Ci=Le.useRef(!1),qa=function(){pl(!0),gi||(Ma&&!Ci.current&&Ma.apply(void 0,arguments),bo.includes("focus")&&nr(!0)),Ci.current=!0},Ha=function(){pl(!1,function(){Ci.current=!1,nr(!1)}),!gi&&(nl&&(Ni==="tags"?Xi(nl,{source:"submit"}):Ni==="multiple"&&Xi("",{source:"blur"})),Uo&&Uo.apply(void 0,arguments))},so=[];Le.useEffect(function(){return function(){so.forEach(function(ao){return clearTimeout(ao)}),so.splice(0,so.length)}},[]);var Ro=function(eo){var xs,ks=eo.target,po=(xs=ro.current)===null||xs===void 0?void 0:xs.getPopupElement();if(po&&po.contains(ks)){var jo=setTimeout(function(){var Ks=so.indexOf(jo);if(Ks!==-1&&so.splice(Ks,1),Al(),!el&&!po.contains(document.activeElement)){var Hs;(Hs=Vo.current)===null||Hs===void 0||Hs.focus()}});so.push(jo)}for(var Sa=arguments.length,Ko=new Array(Sa>1?Sa-1:0),as=1;as<Sa;as++)Ko[as-1]=arguments[as];ss==null||ss.apply(void 0,[eo].concat(Ko))},io=Le.useState({}),Ta=(0,de.Z)(io,2),Eo=Ta[1];function ho(){Eo({})}var no;To&&(no=function(eo){nr(eo)}),Mt(function(){var ao;return[ns.current,(ao=ro.current)===null||ao===void 0?void 0:ao.getPopupElement()]},Zn,nr,!!To);var go=Le.useMemo(function(){return(0,ke.Z)((0,ke.Z)({},Qe),{},{notFoundContent:Ii,open:Mn,triggerOpen:Zn,id:gn,showSearch:qo,multiple:Os,toggleOpen:nr})},[Qe,Ii,Zn,Mn,gn,qo,Os,nr]),Mo=!!Ea||Di,is;Mo&&(is=Le.createElement(yt,{className:Me()("".concat(Un,"-arrow"),(0,be.Z)({},"".concat(Un,"-arrow-loading"),Di)),customizeIcon:Ea,customizeIconProps:{loading:Di,searchValue:nl,open:Mn,focused:il,showSearch:qo}}));var ls=function(){var eo;Si==null||Si(),(eo=Vo.current)===null||eo===void 0||eo.focus(),ci([],{type:"clear",values:Kr}),Ur("",!1,!1)},Ms=Be(Un,ls,Kr,Bi,Va,gi,nl,Ni),al=Ms.allowClear,Xs=Ms.clearIcon,Qs=Le.createElement(Jo,{ref:rs}),As=Me()(Un,Yn,(It={},(0,be.Z)(It,"".concat(Un,"-focused"),il),(0,be.Z)(It,"".concat(Un,"-multiple"),Os),(0,be.Z)(It,"".concat(Un,"-single"),!Os),(0,be.Z)(It,"".concat(Un,"-allow-clear"),Bi),(0,be.Z)(It,"".concat(Un,"-show-arrow"),Mo),(0,be.Z)(It,"".concat(Un,"-disabled"),gi),(0,be.Z)(It,"".concat(Un,"-loading"),Di),(0,be.Z)(It,"".concat(Un,"-open"),Mn),(0,be.Z)(It,"".concat(Un,"-customize-input"),Fl),(0,be.Z)(It,"".concat(Un,"-show-search"),qo),It)),ml=Le.createElement(fi,{ref:ro,disabled:gi,prefixCls:Un,visible:Zn,popupElement:Qs,animation:zo,transitionName:Oo,dropdownStyle:Po,dropdownClassName:co,direction:tr,dropdownMatchSelectWidth:xa,dropdownRender:us,dropdownAlign:Ka,placement:ua,builtinPlacements:Ja,getPopupContainer:Wo,empty:Hr,getTriggerDOMNode:function(){return Wa.current},onPopupVisibleChange:no,onPopupMouseEnter:ho},To?Le.cloneElement(To,{ref:Ce}):Le.createElement(Ht,(0,Ne.Z)({},Qe,{domRef:Wa,prefixCls:Un,inputElement:Fl,ref:Vo,id:gn,showSearch:qo,autoClearSearchValue:ga,mode:Ni,activeDescendantId:za,tagRender:gr,values:Kr,open:Mn,onToggleOpen:nr,activeValue:Co,searchValue:nl,onSearch:Ur,onSearchSubmit:hr,onRemove:Hi,tokenWithEnter:Zr}))),Bs;return To?Bs=ml:Bs=Le.createElement("div",(0,Ne.Z)({className:As},es,{ref:ns,onMouseDown:Ro,onKeyDown:Fi,onKeyUp:ta,onFocus:qa,onBlur:Ha}),il&&!Mn&&Le.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Kr.map(function(ao){var eo=ao.label,xs=ao.value;return["number","string"].includes((0,pe.Z)(eo))?eo:xs}).join(", "))),ml,is,al&&Xs),Le.createElement(Rt.Provider,{value:go},Bs)}),mr=Fn,ur=function(Qe,rt){var Zt=Le.useRef({values:new Map,options:new Map}),It=Le.useMemo(function(){var Un=Zt.current,Yn=Un.values,Ar=Un.options,gr=Qe.map(function(Kr){if(Kr.label===void 0){var ci;return(0,ke.Z)((0,ke.Z)({},Kr),{},{label:(ci=Yn.get(Kr.value))===null||ci===void 0?void 0:ci.label})}return Kr}),tr=new Map,Or=new Map;return gr.forEach(function(Kr){tr.set(Kr.value,Kr),Or.set(Kr.value,rt.get(Kr.value)||Ar.get(Kr.value))}),Zt.current.values=tr,Zt.current.options=Or,gr},[Qe,rt]),gn=Le.useCallback(function(Un){return rt.get(Un)||Zt.current.options.get(Un)},[rt]);return[It,gn]};function zr(Qe,rt){return Vi(Qe).join("").toUpperCase().includes(rt)}var ti=function(Qe,rt,Zt,It,gn){return Le.useMemo(function(){if(!Zt||It===!1)return Qe;var Un=rt.options,Yn=rt.label,Ar=rt.value,gr=[],tr=typeof It=="function",Or=Zt.toUpperCase(),Kr=tr?It:function(Hr,yi){return gn?zr(yi[gn],Or):yi[Un]?zr(yi[Yn!=="children"?Yn:"label"],Or):zr(yi[Ar],Or)},ci=tr?function(Hr){return Vt(Hr)}:function(Hr){return Hr};return Qe.forEach(function(Hr){if(Hr[Un]){var yi=Kr(Zt,ci(Hr));if(yi)gr.push(Hr);else{var Ii=Hr[Un].filter(function(Si){return Kr(Zt,ci(Si))});Ii.length&&gr.push((0,ke.Z)((0,ke.Z)({},Hr),{},(0,be.Z)({},Un,Ii)))}return}Kr(Zt,ci(Hr))&&gr.push(Hr)}),gr},[Qe,It,gn,Zt,rt])},jn=0,Gi=Re();function _i(){var Qe;return Gi?(Qe=jn,jn+=1):Qe="TEST_OR_SSR",Qe}function Xa(Qe){var rt=Le.useState(),Zt=(0,de.Z)(rt,2),It=Zt[0],gn=Zt[1];return Le.useEffect(function(){gn("rc_select_".concat(_i()))},[]),Qe||It}function _a(Qe){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Zt=[];return Le.Children.forEach(Qe,function(It){It==null&&!rt.keepEmpty||(Array.isArray(It)?Zt=Zt.concat(_a(It)):(0,wt.isFragment)(It)&&It.props?Zt=Zt.concat(_a(It.props.children,rt)):Zt.push(It))}),Zt}var Aa=["children","value"],ra=["children"];function Oa(Qe){var rt=Qe,Zt=rt.key,It=rt.props,gn=It.children,Un=It.value,Yn=(0,we.Z)(It,Aa);return(0,ke.Z)({key:Zt,value:Un!==void 0?Un:Zt,children:gn},Yn)}function ya(Qe){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return _a(Qe).map(function(Zt,It){if(!Le.isValidElement(Zt)||!Zt.type)return null;var gn=Zt,Un=gn.type.isSelectOptGroup,Yn=gn.key,Ar=gn.props,gr=Ar.children,tr=(0,we.Z)(Ar,ra);return rt||!Un?Oa(Zt):(0,ke.Z)((0,ke.Z)({key:"__RC_SELECT_GRP__".concat(Yn===null?It:Yn,"__"),label:Yn},tr),{},{options:ya(gr)})}).filter(function(Zt){return Zt})}function Ra(Qe,rt,Zt,It,gn){return Le.useMemo(function(){var Un=Qe,Yn=!Qe;Yn&&(Un=ya(rt));var Ar=new Map,gr=new Map,tr=function(ci,Hr,yi){yi&&typeof yi=="string"&&ci.set(Hr[yi],Hr)};function Or(Kr){for(var ci=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Hr=0;Hr<Kr.length;Hr+=1){var yi=Kr[Hr];!yi[Zt.options]||ci?(Ar.set(yi[Zt.value],yi),tr(gr,yi,Zt.label),tr(gr,yi,It),tr(gr,yi,gn)):Or(yi[Zt.options],!0)}}return Or(Un),{options:Un,valueOptions:Ar,labelOptions:gr}},[Qe,rt,Zt,It,gn])}function oo(Qe){var rt=Le.useRef();rt.current=Qe;var Zt=Le.useCallback(function(){return rt.current.apply(rt,arguments)},[]);return Zt}var Yi=function(){return null};Yi.isSelectOptGroup=!0;var Pa=Yi,to=function(){return null};to.isSelectOption=!0;var _o=to;function wo(Qe,rt){var Zt=(0,ke.Z)({},Qe);return Array.isArray(rt)&&rt.forEach(function(It){delete Zt[It]}),Zt}var ia=te(73299),on=Le.createContext(null),Gt=on;function Kn(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var yr=["disabled","title","children","style","className"];function Ir(Qe){return typeof Qe=="string"||typeof Qe=="number"}var si=function(rt,Zt){var It=Vn(),gn=It.prefixCls,Un=It.id,Yn=It.open,Ar=It.multiple,gr=It.mode,tr=It.searchValue,Or=It.toggleOpen,Kr=It.notFoundContent,ci=It.onPopupScroll,Hr=Le.useContext(Gt),yi=Hr.flattenOptions,Ii=Hr.onActiveValue,Si=Hr.defaultActiveFirstOption,Ni=Hr.onSelect,gi=Hr.menuItemSelectedIcon,Di=Hr.rawValues,Ri=Hr.fieldNames,sa=Hr.virtual,bi=Hr.direction,ba=Hr.listHeight,Ca=Hr.listItemHeight,Co="".concat(gn,"-item"),Qa=dt(function(){return yi},[Yn,yi],function(Ka,ua){return ua[0]&&Ka[1]!==ua[1]}),za=Le.useRef(null),la=function(ua){ua.preventDefault()},ga=function(ua){za.current&&za.current.scrollTo(typeof ua=="number"?{index:ua}:ua)},Xi=function(ua){for(var Ja=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Wo=Qa.length,fo=0;fo<Wo;fo+=1){var bo=(ua+fo*Ja+Wo)%Wo,Ma=Qa[bo],Uo=Ma.group,os=Ma.data;if(!Uo&&!os.disabled)return bo}return-1},Ba=Le.useState(function(){return Xi(0)}),Qi=(0,de.Z)(Ba,2),Bi=Qi[0],Ea=Qi[1],Va=function(ua){var Ja=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Ea(ua);var Wo={source:Ja?"keyboard":"mouse"},fo=Qa[ua];if(!fo){Ii(null,-1,Wo);return}Ii(fo.value,ua,Wo)};(0,Le.useEffect)(function(){Va(Si!==!1?Xi(0):-1)},[Qa.length,tr]);var Jo=Le.useCallback(function(Ka){return Di.has(Ka)&&gr!=="combobox"},[gr,(0,Ue.Z)(Di).toString(),Di.size]);(0,Le.useEffect)(function(){var Ka=setTimeout(function(){if(!Ar&&Yn&&Di.size===1){var Ja=Array.from(Di)[0],Wo=Qa.findIndex(function(fo){var bo=fo.data;return bo.value===Ja});Wo!==-1&&(Va(Wo),ga(Wo))}});if(Yn){var ua;(ua=za.current)===null||ua===void 0||ua.scrollTo(void 0)}return function(){return clearTimeout(Ka)}},[Yn,tr,yi.length]);var zo=function(ua){ua!==void 0&&Ni(ua,{selected:!Di.has(ua)}),Ar||Or(!1)};if(Le.useImperativeHandle(Zt,function(){return{onKeyDown:function(ua){var Ja=ua.which,Wo=ua.ctrlKey;switch(Ja){case Ae.N:case Ae.P:case Ae.UP:case Ae.DOWN:{var fo=0;if(Ja===Ae.UP?fo=-1:Ja===Ae.DOWN?fo=1:Kn()&&Wo&&(Ja===Ae.N?fo=1:Ja===Ae.P&&(fo=-1)),fo!==0){var bo=Xi(Bi+fo,fo);ga(bo),Va(bo,!0)}break}case Ae.ENTER:{var Ma=Qa[Bi];Ma&&!Ma.data.disabled?zo(Ma.value):zo(void 0),Yn&&ua.preventDefault();break}case Ae.ESC:Or(!1),Yn&&ua.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ua){ga(ua)}}}),Qa.length===0)return Le.createElement("div",{role:"listbox",id:"".concat(Un,"_list"),className:"".concat(Co,"-empty"),onMouseDown:la},Kr);var Oo=Object.keys(Ri).map(function(Ka){return Ri[Ka]}),Po=function(ua){return ua.label};function co(Ka,ua){var Ja=Ka.group;return{role:Ja?"presentation":"option",id:"".concat(Un,"_list_").concat(ua)}}var xa=function(ua){var Ja=Qa[ua];if(!Ja)return null;var Wo=Ja.data||{},fo=Wo.value,bo=Ja.group,Ma=Xn(Wo,!0),Uo=Po(Ja);return Ja?Le.createElement("div",(0,Ne.Z)({"aria-label":typeof Uo=="string"&&!bo?Uo:null},Ma,{key:ua},co(Ja,ua),{"aria-selected":Jo(fo)}),fo):null},us={role:"listbox",id:"".concat(Un,"_list")};return Le.createElement(Le.Fragment,null,sa&&Le.createElement("div",(0,Ne.Z)({},us,{style:{height:0,width:0,overflow:"hidden"}}),xa(Bi-1),xa(Bi),xa(Bi+1)),Le.createElement(ia.Z,{itemKey:"key",ref:za,data:Qa,height:ba,itemHeight:Ca,fullHeight:!1,onMouseDown:la,onScroll:ci,virtual:sa,direction:bi,innerProps:sa?null:us},function(Ka,ua){var Ja,Wo=Ka.group,fo=Ka.groupOption,bo=Ka.data,Ma=Ka.label,Uo=Ka.value,os=bo.key;if(Wo){var Xo,ss=(Xo=bo.title)!==null&&Xo!==void 0?Xo:Ir(Ma)?Ma.toString():void 0;return Le.createElement("div",{className:Me()(Co,"".concat(Co,"-group")),title:ss},Ma!==void 0?Ma:os)}var cs=bo.disabled,Os=bo.title,qo=bo.children,es=bo.style,Zs=bo.className,Ws=(0,we.Z)(bo,yr),el=wo(Ws,Oo),bs=Jo(Uo),ns="".concat(Co,"-option"),Wa=Me()(Co,ns,Zs,(Ja={},(0,be.Z)(Ja,"".concat(ns,"-grouped"),fo),(0,be.Z)(Ja,"".concat(ns,"-active"),Bi===ua&&!cs),(0,be.Z)(Ja,"".concat(ns,"-disabled"),cs),(0,be.Z)(Ja,"".concat(ns,"-selected"),bs),Ja)),ro=Po(Ka),Vo=!gi||typeof gi=="function"||bs,rs=typeof ro=="number"?ro:ro||Uo,Rs=Ir(rs)?rs.toString():void 0;return Os!==void 0&&(Rs=Os),Le.createElement("div",(0,Ne.Z)({},Xn(el),sa?{}:co(Ka,ua),{"aria-selected":bs,className:Wa,title:Rs,onMouseMove:function(){Bi===ua||cs||Va(ua)},onClick:function(){cs||zo(Uo)},style:es}),Le.createElement("div",{className:"".concat(ns,"-content")},rs),Le.isValidElement(gi)||bs,Vo&&Le.createElement(yt,{className:"".concat(Co,"-option-state"),customizeIcon:gi,customizeIconProps:{isSelected:bs}},bs?"\u2713":null))}))},Mi=Le.forwardRef(si);Mi.displayName="OptionList";var Ti=Mi;function ji(Qe){var rt=Qe.mode,Zt=Qe.options,It=Qe.children,gn=Qe.backfill,Un=Qe.allowClear,Yn=Qe.placeholder,Ar=Qe.getInputElement,gr=Qe.showSearch,tr=Qe.onSearch,Or=Qe.defaultOpen,Kr=Qe.autoFocus,ci=Qe.labelInValue,Hr=Qe.value,yi=Qe.inputValue,Ii=Qe.optionLabelProp,Si=isMultiple(rt),Ni=gr!==void 0?gr:Si||rt==="combobox",gi=Zt||convertChildrenToData(It);if(warning(rt!=="tags"||gi.every(function(bi){return!bi.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),rt==="tags"||rt==="combobox"){var Di=gi.some(function(bi){return bi.options?bi.options.some(function(ba){return typeof("value"in ba?ba.value:ba.key)=="number"}):typeof("value"in bi?bi.value:bi.key)=="number"});warning(!Di,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(rt!=="combobox"||!Ii,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(rt==="combobox"||!gn,"`backfill` only works with `combobox` mode."),warning(rt==="combobox"||!Ar,"`getInputElement` only work with `combobox` mode."),noteOnce(rt!=="combobox"||!Ar||!Un||!Yn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),tr&&!Ni&&rt!=="combobox"&&rt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Or||Kr,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Hr!=null){var Ri=toArray(Hr);warning(!ci||Ri.every(function(bi){return _typeof(bi)==="object"&&("key"in bi||"value"in bi)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Si||Array.isArray(Hr),"`value` should be array when `mode` is `multiple` or `tags`")}if(It){var sa=null;toNodeArray(It).some(function(bi){if(!React.isValidElement(bi)||!bi.type)return!1;var ba=bi,Ca=ba.type;if(Ca.isSelectOption)return!1;if(Ca.isSelectOptGroup){var Co=toNodeArray(bi.props.children).every(function(Qa){return!React.isValidElement(Qa)||!bi.type||Qa.type.isSelectOption?!0:(sa=Qa.type,!1)});return!Co}return sa=Ca,!0}),sa&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(sa.displayName||sa.name||sa,"`.")),warning(yi===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Oi(Qe,rt){if(Qe){var Zt=function It(gn){for(var Un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Yn=0;Yn<gn.length;Yn++){var Ar=gn[Yn];if(Ar[rt==null?void 0:rt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Un&&Array.isArray(Ar[rt==null?void 0:rt.options])&&It(Ar[rt==null?void 0:rt.options],!0))break}};Zt(Qe)}}var aa=null,Da=["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"],wi=["inputValue"];function fn(Qe){return!Qe||(0,pe.Z)(Qe)!=="object"}var Rn=Le.forwardRef(function(Qe,rt){var Zt=Qe.id,It=Qe.mode,gn=Qe.prefixCls,Un=gn===void 0?"rc-select":gn,Yn=Qe.backfill,Ar=Qe.fieldNames,gr=Qe.inputValue,tr=Qe.searchValue,Or=Qe.onSearch,Kr=Qe.autoClearSearchValue,ci=Kr===void 0?!0:Kr,Hr=Qe.onSelect,yi=Qe.onDeselect,Ii=Qe.dropdownMatchSelectWidth,Si=Ii===void 0?!0:Ii,Ni=Qe.filterOption,gi=Qe.filterSort,Di=Qe.optionFilterProp,Ri=Qe.optionLabelProp,sa=Qe.options,bi=Qe.children,ba=Qe.defaultActiveFirstOption,Ca=Qe.menuItemSelectedIcon,Co=Qe.virtual,Qa=Qe.direction,za=Qe.listHeight,la=za===void 0?200:za,ga=Qe.listItemHeight,Xi=ga===void 0?20:ga,Ba=Qe.value,Qi=Qe.defaultValue,Bi=Qe.labelInValue,Ea=Qe.onChange,Va=(0,we.Z)(Qe,Da),Jo=Xa(Zt),zo=Tr(It),Oo=!!(!sa&&bi),Po=Le.useMemo(function(){return Ni===void 0&&It==="combobox"?!1:Ni},[Ni,It]),co=Le.useMemo(function(){return ai(Ar,Oo)},[JSON.stringify(Ar),Oo]),xa=vt("",{value:tr!==void 0?tr:gr,postState:function(kr){return kr||""}}),us=(0,de.Z)(xa,2),Ka=us[0],ua=us[1],Ja=Ra(sa,bi,co,Di,Ri),Wo=Ja.valueOptions,fo=Ja.labelOptions,bo=Ja.options,Ma=Le.useCallback(function(Mn){var kr=Vi(Mn);return kr.map(function(Zn){var nr,Zr,Ur,hr,Fr;if(fn(Zn))nr=Zn;else{var ni;Ur=Zn.key,Zr=Zn.label,nr=(ni=Zn.value)!==null&&ni!==void 0?ni:Ur}var li=Wo.get(nr);if(li){var xi;if(Zr===void 0&&(Zr=li==null?void 0:li[Ri||co.label]),Ur===void 0&&(Ur=(xi=li==null?void 0:li.key)!==null&&xi!==void 0?xi:nr),hr=li==null?void 0:li.disabled,Fr=li==null?void 0:li.title,0)var Fi}return{label:Zr,value:nr,key:Ur,disabled:hr,title:Fr}})},[co,Ri,Wo]),Uo=vt(Qi,{value:Ba}),os=(0,de.Z)(Uo,2),Xo=os[0],ss=os[1],cs=Le.useMemo(function(){var Mn,kr=Ma(Xo);return It==="combobox"&&Ut((Mn=kr[0])===null||Mn===void 0?void 0:Mn.value)?[]:kr},[Xo,Ma,It]),Os=ur(cs,Wo),qo=(0,de.Z)(Os,2),es=qo[0],Zs=qo[1],Ws=Le.useMemo(function(){if(!It&&es.length===1){var Mn=es[0];if(Mn.value===null&&(Mn.label===null||Mn.label===void 0))return[]}return es.map(function(kr){var Zn;return(0,ke.Z)((0,ke.Z)({},kr),{},{label:(Zn=kr.label)!==null&&Zn!==void 0?Zn:kr.value})})},[It,es]),el=Le.useMemo(function(){return new Set(es.map(function(Mn){return Mn.value}))},[es]);Le.useEffect(function(){if(It==="combobox"){var Mn,kr=(Mn=es[0])===null||Mn===void 0?void 0:Mn.value;ua(Ui(kr)?String(kr):"")}},[es]);var bs=oo(function(Mn,kr){var Zn,nr=kr!=null?kr:Mn;return Zn={},(0,be.Z)(Zn,co.value,Mn),(0,be.Z)(Zn,co.label,nr),Zn}),ns=Le.useMemo(function(){if(It!=="tags")return bo;var Mn=(0,Ue.Z)(bo),kr=function(nr){return Wo.has(nr)};return(0,Ue.Z)(es).sort(function(Zn,nr){return Zn.value<nr.value?-1:1}).forEach(function(Zn){var nr=Zn.value;kr(nr)||Mn.push(bs(nr,Zn.label))}),Mn},[bs,bo,Wo,es,It]),Wa=ti(ns,co,Ka,Po,Di),ro=Le.useMemo(function(){return It!=="tags"||!Ka||Wa.some(function(Mn){return Mn[Di||"value"]===Ka})||Wa.some(function(Mn){return Mn[co.value]===Ka})?Wa:[bs(Ka)].concat((0,Ue.Z)(Wa))},[bs,Di,It,Wa,Ka,co]),Vo=Le.useMemo(function(){return gi?(0,Ue.Z)(ro).sort(function(Mn,kr){return gi(Mn,kr)}):ro},[ro,gi]),rs=Le.useMemo(function(){return ei(Vo,{fieldNames:co,childrenAsData:Oo})},[Vo,co,Oo]),Rs=function(kr){var Zn=Ma(kr);if(ss(Zn),Ea&&(Zn.length!==es.length||Zn.some(function(Ur,hr){var Fr;return((Fr=es[hr])===null||Fr===void 0?void 0:Fr.value)!==(Ur==null?void 0:Ur.value)}))){var nr=Bi?Zn:Zn.map(function(Ur){return Ur.value}),Zr=Zn.map(function(Ur){return Vt(Zs(Ur.value))});Ea(zo?nr:nr[0],zo?Zr:Zr[0])}},tl=Le.useState(null),il=(0,de.Z)(tl,2),pl=il[0],Al=il[1],nl=Le.useState(0),Fl=(0,de.Z)(nl,2),To=Fl[0],Ce=Fl[1],Oe=ba!==void 0?ba:It!=="combobox",_e=Le.useCallback(function(Mn,kr){var Zn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},nr=Zn.source,Zr=nr===void 0?"keyboard":nr;Ce(kr),Yn&&It==="combobox"&&Mn!==null&&Zr==="keyboard"&&Al(String(Mn))},[Yn,It]),Dt=function(kr,Zn,nr){var Zr=function(){var Ci,qa=Zs(kr);return[Bi?{label:qa==null?void 0:qa[co.label],value:kr,key:(Ci=qa==null?void 0:qa.key)!==null&&Ci!==void 0?Ci:kr}:kr,Vt(qa)]};if(Zn&&Hr){var Ur=Zr(),hr=(0,de.Z)(Ur,2),Fr=hr[0],ni=hr[1];Hr(Fr,ni)}else if(!Zn&&yi&&nr!=="clear"){var li=Zr(),xi=(0,de.Z)(li,2),Fi=xi[0],ta=xi[1];yi(Fi,ta)}},Lt=oo(function(Mn,kr){var Zn,nr=zo?kr.selected:!0;nr?Zn=zo?[].concat((0,Ue.Z)(es),[Mn]):[Mn]:Zn=es.filter(function(Zr){return Zr.value!==Mn}),Rs(Zn),Dt(Mn,nr),It==="combobox"?Al(""):(!Tr||ci)&&(ua(""),Al(""))}),Ln=function(kr,Zn){Rs(kr);var nr=Zn.type,Zr=Zn.values;(nr==="remove"||nr==="clear")&&Zr.forEach(function(Ur){Dt(Ur.value,!1,nr)})},yn=function(kr,Zn){if(ua(kr),Al(null),Zn.source==="submit"){var nr=(kr||"").trim();if(nr){var Zr=Array.from(new Set([].concat((0,Ue.Z)(el),[nr])));Rs(Zr),Dt(nr,!0),ua("")}return}Zn.source!=="blur"&&(It==="combobox"&&Rs(kr),Or==null||Or(kr))},vr=function(kr){var Zn=kr;It!=="tags"&&(Zn=kr.map(function(Zr){var Ur=fo.get(Zr);return Ur==null?void 0:Ur.value}).filter(function(Zr){return Zr!==void 0}));var nr=Array.from(new Set([].concat((0,Ue.Z)(el),(0,Ue.Z)(Zn))));Rs(nr),nr.forEach(function(Zr){Dt(Zr,!0)})},_n=Le.useMemo(function(){var Mn=Co!==!1&&Si!==!1;return(0,ke.Z)((0,ke.Z)({},Ja),{},{flattenOptions:rs,onActiveValue:_e,defaultActiveFirstOption:Oe,onSelect:Lt,menuItemSelectedIcon:Ca,rawValues:el,fieldNames:co,virtual:Mn,direction:Qa,listHeight:la,listItemHeight:Xi,childrenAsData:Oo})},[Ja,rs,_e,Oe,Lt,Ca,el,co,Co,Si,la,Xi,Oo]);return Le.createElement(Gt.Provider,{value:_n},Le.createElement(mr,(0,Ne.Z)({},Va,{id:Jo,prefixCls:Un,ref:rt,omitDomProps:wi,mode:It,displayValues:Ws,onDisplayValuesChange:Ln,direction:Qa,searchValue:Ka,onSearch:yn,autoClearSearchValue:ci,onSearchSplit:vr,dropdownMatchSelectWidth:Si,OptionList:Ti,emptyOptions:!rs.length,activeValue:pl,activeDescendantId:"".concat(Jo,"_list_").concat(To)})))}),rr=Rn;rr.Option=_o,rr.OptGroup=Pa;var me=rr,$e=me,Ve=te(10366),et=te(8745),Je=te(33603),ut=te(9708),mt=te(53124),Wt=te(98866),sn=te(88258),Wn=te(98675),lr=te(65223),Qn=te(4173),Tn=te(87244),kn=te(13458),mn=te(78642),Jn=te(46163),Dr=function(Qe,rt){var Zt={};for(var It in Qe)Object.prototype.hasOwnProperty.call(Qe,It)&&rt.indexOf(It)<0&&(Zt[It]=Qe[It]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gn=0,It=Object.getOwnPropertySymbols(Qe);gn<It.length;gn++)rt.indexOf(It[gn])<0&&Object.prototype.propertyIsEnumerable.call(Qe,It[gn])&&(Zt[It[gn]]=Qe[It[gn]]);return Zt};const cr="SECRET_COMBOBOX_MODE_DO_NOT_USE",xr=(Qe,rt)=>{var Zt,{prefixCls:It,bordered:gn=!0,className:Un,rootClassName:Yn,getPopupContainer:Ar,popupClassName:gr,dropdownClassName:tr,listHeight:Or=256,placement:Kr,listItemHeight:ci=24,size:Hr,disabled:yi,notFoundContent:Ii,status:Si,builtinPlacements:Ni,dropdownMatchSelectWidth:gi,popupMatchSelectWidth:Di,direction:Ri,style:sa,allowClear:bi}=Qe,ba=Dr(Qe,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:Ca,getPrefixCls:Co,renderEmpty:Qa,direction:za,virtual:la,popupMatchSelectWidth:ga,popupOverflow:Xi,select:Ba}=Le.useContext(mt.E_),Qi=Co("select",It),Bi=Co(),Ea=Ri!=null?Ri:za,{compactSize:Va,compactItemClassnames:Jo}=(0,Qn.ri)(Qi,Ea),[zo,Oo]=(0,Tn.Z)(Qi),Po=Le.useMemo(()=>{const{mode:ns}=ba;if(ns!=="combobox")return ns===cr?"combobox":ns},[ba.mode]),co=Po==="multiple"||Po==="tags",xa=(0,mn.Z)(ba.suffixIcon,ba.showArrow),us=(Zt=Di!=null?Di:gi)!==null&&Zt!==void 0?Zt:ga,{status:Ka,hasFeedback:ua,isFormItemInput:Ja,feedbackIcon:Wo}=Le.useContext(lr.aM),fo=(0,ut.F)(Ka,Si);let bo;Ii!==void 0?bo=Ii:Po==="combobox"?bo=null:bo=(Qa==null?void 0:Qa("Select"))||Le.createElement(sn.Z,{componentName:"Select"});const{suffixIcon:Ma,itemIcon:Uo,removeIcon:os,clearIcon:Xo}=(0,Jn.Z)(Object.assign(Object.assign({},ba),{multiple:co,hasFeedback:ua,feedbackIcon:Wo,showSuffixIcon:xa,prefixCls:Qi,showArrow:ba.showArrow,componentName:"Select"})),ss=bi===!0?{clearIcon:Xo}:bi,cs=(0,Ve.Z)(ba,["suffixIcon","itemIcon"]),Os=Me()(gr||tr,{[`${Qi}-dropdown-${Ea}`]:Ea==="rtl"},Yn,Oo),qo=(0,Wn.Z)(ns=>{var Wa;return(Wa=Hr!=null?Hr:Va)!==null&&Wa!==void 0?Wa:ns}),es=Le.useContext(Wt.Z),Zs=yi!=null?yi:es,Ws=Me()({[`${Qi}-lg`]:qo==="large",[`${Qi}-sm`]:qo==="small",[`${Qi}-rtl`]:Ea==="rtl",[`${Qi}-borderless`]:!gn,[`${Qi}-in-form-item`]:Ja},(0,ut.Z)(Qi,fo,ua),Jo,Ba==null?void 0:Ba.className,Un,Yn,Oo),el=Le.useMemo(()=>Kr!==void 0?Kr:Ea==="rtl"?"bottomRight":"bottomLeft",[Kr,Ea]),bs=(0,kn.Z)(Ni,Xi);return zo(Le.createElement($e,Object.assign({ref:rt,virtual:la,showSearch:Ba==null?void 0:Ba.showSearch},cs,{style:Object.assign(Object.assign({},Ba==null?void 0:Ba.style),sa),dropdownMatchSelectWidth:us,builtinPlacements:bs,transitionName:(0,Je.m)(Bi,"slide-up",ba.transitionName),listHeight:Or,listItemHeight:ci,mode:Po,prefixCls:Qi,placement:el,direction:Ea,suffixIcon:Ma,menuItemSelectedIcon:Uo,removeIcon:os,allowClear:ss,notFoundContent:bo,className:Ws,getPopupContainer:Ar||Ca,dropdownClassName:Os,disabled:Zs})))},Er=Le.forwardRef(xr),Nr=(0,et.Z)(Er);Er.SECRET_COMBOBOX_MODE_DO_NOT_USE=cr,Er.Option=_o,Er.OptGroup=Pa,Er._InternalPanelDoNotUseOrYouWillBeFired=Nr;var $r=Er},87244:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return Se}});var le=te(14747),Me=te(80110),Ne=te(45503),Ue=te(67968),be=te(67771),ke=te(33297);const de=ce=>{const{optionHeight:He,optionFontSize:je,optionLineHeight:it,optionPadding:at}=ce;return{position:"relative",display:"block",minHeight:He,padding:at,color:ce.colorText,fontWeight:"normal",fontSize:je,lineHeight:it,boxSizing:"border-box"}};var pe=ce=>{const{antCls:He,componentCls:je}=ce,it=`${je}-item`,at=`&${He}-slide-up-enter${He}-slide-up-enter-active`,Ge=`&${He}-slide-up-appear${He}-slide-up-appear-active`,Ae=`&${He}-slide-up-leave${He}-slide-up-leave-active`,wt=`${je}-dropdown-placement-`;return[{[`${je}-dropdown`]:Object.assign(Object.assign({},(0,le.Wf)(ce)),{position:"absolute",top:-9999,zIndex:ce.zIndexPopup,boxSizing:"border-box",padding:ce.paddingXXS,overflow:"hidden",fontSize:ce.fontSize,fontVariant:"initial",backgroundColor:ce.colorBgElevated,borderRadius:ce.borderRadiusLG,outline:"none",boxShadow:ce.boxShadowSecondary,[`
${at}${wt}bottomLeft,
${Ge}${wt}bottomLeft
`]:{animationName:be.fJ},[`
${at}${wt}topLeft,
${Ge}${wt}topLeft,
${at}${wt}topRight,
${Ge}${wt}topRight
`]:{animationName:be.Qt},[`${Ae}${wt}bottomLeft`]:{animationName:be.Uw},[`
${Ae}${wt}topLeft,
${Ae}${wt}topRight
`]:{animationName:be.ly},"&-hidden":{display:"none"},[`${it}`]:Object.assign(Object.assign({},de(ce)),{cursor:"pointer",transition:`background ${ce.motionDurationSlow} ease`,borderRadius:ce.borderRadiusSM,"&-group":{color:ce.colorTextDescription,fontSize:ce.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},le.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${it}-option-disabled)`]:{backgroundColor:ce.optionActiveBg},[`&-selected:not(${it}-option-disabled)`]:{color:ce.optionSelectedColor,fontWeight:ce.optionSelectedFontWeight,backgroundColor:ce.optionSelectedBg,[`${it}-option-state`]:{color:ce.colorPrimary}},"&-disabled":{[`&${it}-option-selected`]:{backgroundColor:ce.colorBgContainerDisabled},color:ce.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:ce.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,be.oN)(ce,"slide-up"),(0,be.oN)(ce,"slide-down"),(0,ke.Fm)(ce,"move-up"),(0,ke.Fm)(ce,"move-down")]};const Le=2,nt=ce=>{let{controlHeightSM:He,controlHeight:je,lineWidth:it}=ce;const at=(je-He)/2-it,Ge=Math.ceil(at/2);return[at,Ge]};function Re(ce,He){const{componentCls:je,iconCls:it}=ce,at=`${je}-selection-overflow`,Ge=ce.multipleSelectItemHeight,[Ae]=nt(ce),wt=He?`${je}-${He}`:"";return{[`${je}-multiple${wt}`]:{fontSize:ce.fontSize,[at]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${je}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${Ae-Le}px ${Le*2}px`,borderRadius:ce.borderRadius,[`${je}-show-search&`]:{cursor:"text"},[`${je}-disabled&`]:{background:ce.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Le}px 0`,lineHeight:`${Ge}px`,visibility:"hidden",content:'"\\a0"'}},[`
&${je}-show-arrow ${je}-selector,
&${je}-allow-clear ${je}-selector
`]:{paddingInlineEnd:ce.fontSizeIcon+ce.controlPaddingHorizontal},[`${je}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Ge,marginTop:Le,marginBottom:Le,lineHeight:`${Ge-ce.lineWidth*2}px`,background:ce.multipleItemBg,border:`${ce.lineWidth}px ${ce.lineType} ${ce.multipleItemBorderColor}`,borderRadius:ce.borderRadiusSM,cursor:"default",transition:`font-size ${ce.motionDurationSlow}, line-height ${ce.motionDurationSlow}, height ${ce.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Le*2,paddingInlineStart:ce.paddingXS,paddingInlineEnd:ce.paddingXS/2,[`${je}-disabled&`]:{color:ce.multipleItemColorDisabled,borderColor:ce.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:ce.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,le.Ro)()),{display:"inline-flex",alignItems:"center",color:ce.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${it}`]:{verticalAlign:"-0.2em"},"&:hover":{color:ce.colorIconHover}})},[`${at}-item + ${at}-item`]:{[`${je}-selection-search`]:{marginInlineStart:0}},[`${je}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:ce.inputPaddingHorizontalBase-Ae,"\n &-input,\n &-mirror\n ":{height:Ge,fontFamily:ce.fontFamily,lineHeight:`${Ge}px`,transition:`all ${ce.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${je}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:ce.inputPaddingHorizontalBase,insetInlineEnd:ce.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${ce.motionDurationSlow}`}}}}var qe=ce=>{const{componentCls:He}=ce,je=(0,Ne.TS)(ce,{controlHeight:ce.controlHeightSM,multipleSelectItemHeight:ce.controlHeightXS,borderRadius:ce.borderRadiusSM,borderRadiusSM:ce.borderRadiusXS}),it=(0,Ne.TS)(ce,{fontSize:ce.fontSizeLG,controlHeight:ce.controlHeightLG,multipleSelectItemHeight:ce.multipleItemHeightLG,borderRadius:ce.borderRadiusLG,borderRadiusSM:ce.borderRadius}),[,at]=nt(ce);return[Re(ce),Re(je,"sm"),{[`${He}-multiple${He}-sm`]:{[`${He}-selection-placeholder`]:{insetInline:ce.controlPaddingHorizontalSM-ce.lineWidth},[`${He}-selection-search`]:{marginInlineStart:at}}},Re(it,"lg")]};function lt(ce,He){const{componentCls:je,inputPaddingHorizontalBase:it,borderRadius:at}=ce,Ge=ce.controlHeight-ce.lineWidth*2,Ae=Math.ceil(ce.fontSize*1.25),wt=He?`${je}-${He}`:"";return{[`${je}-single${wt}`]:{fontSize:ce.fontSize,[`${je}-selector`]:Object.assign(Object.assign({},(0,le.Wf)(ce)),{display:"flex",borderRadius:at,[`${je}-selection-search`]:{position:"absolute",top:0,insetInlineStart:it,insetInlineEnd:it,bottom:0,"&-input":{width:"100%"}},[`
${je}-selection-item,
${je}-selection-placeholder
`]:{padding:0,lineHeight:`${Ge}px`,transition:`all ${ce.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Ge}px`}},[`${je}-selection-item`]:{position:"relative",userSelect:"none"},[`${je}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${je}-selection-item:after`,`${je}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${je}-show-arrow ${je}-selection-item,
&${je}-show-arrow ${je}-selection-placeholder
`]:{paddingInlineEnd:Ae},[`&${je}-open ${je}-selection-item`]:{color:ce.colorTextPlaceholder},[`&:not(${je}-customize-input)`]:{[`${je}-selector`]:{width:"100%",height:ce.controlHeight,padding:`0 ${it}px`,[`${je}-selection-search-input`]:{height:Ge},"&:after":{lineHeight:`${Ge}px`}}},[`&${je}-customize-input`]:{[`${je}-selector`]:{"&:after":{display:"none"},[`${je}-selection-search`]:{position:"static",width:"100%"},[`${je}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${it}px`,"&:after":{display:"none"}}}}}}}function Xe(ce){const{componentCls:He}=ce,je=ce.controlPaddingHorizontalSM-ce.lineWidth;return[lt(ce),lt((0,Ne.TS)(ce,{controlHeight:ce.controlHeightSM,borderRadius:ce.borderRadiusSM}),"sm"),{[`${He}-single${He}-sm`]:{[`&:not(${He}-customize-input)`]:{[`${He}-selection-search`]:{insetInlineStart:je,insetInlineEnd:je},[`${He}-selector`]:{padding:`0 ${je}px`},[`&${He}-show-arrow ${He}-selection-search`]:{insetInlineEnd:je+ce.fontSize*1.5},[`
&${He}-show-arrow ${He}-selection-item,
&${He}-show-arrow ${He}-selection-placeholder
`]:{paddingInlineEnd:ce.fontSize*1.5}}}},lt((0,Ne.TS)(ce,{controlHeight:ce.singleItemHeightLG,fontSize:ce.fontSizeLG,borderRadius:ce.borderRadiusLG}),"lg")]}const ye=ce=>{const{componentCls:He,selectorBg:je}=ce;return{position:"relative",backgroundColor:je,border:`${ce.lineWidth}px ${ce.lineType} ${ce.colorBorder}`,transition:`all ${ce.motionDurationMid} ${ce.motionEaseInOut}`,input:{cursor:"pointer"},[`${He}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${He}-disabled&`]:{color:ce.colorTextDisabled,background:ce.colorBgContainerDisabled,cursor:"not-allowed",[`${He}-multiple&`]:{background:ce.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},vt=function(ce,He){let je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:it,borderHoverColor:at,outlineColor:Ge,antCls:Ae}=He,wt=je?{[`${it}-selector`]:{borderColor:at}}:{};return{[ce]:{[`&:not(${it}-disabled):not(${it}-customize-input):not(${Ae}-pagination-size-changer)`]:Object.assign(Object.assign({},wt),{[`${it}-focused& ${it}-selector`]:{borderColor:at,boxShadow:`0 0 0 ${He.controlOutlineWidth}px ${Ge}`,outline:0},[`&:hover ${it}-selector`]:{borderColor:at}})}}},Pt=ce=>{const{componentCls:He}=ce;return{[`${He}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},ot=ce=>{const{componentCls:He,inputPaddingHorizontalBase:je,iconCls:it}=ce;return{[He]:Object.assign(Object.assign({},(0,le.Wf)(ce)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${He}-customize-input) ${He}-selector`]:Object.assign(Object.assign({},ye(ce)),Pt(ce)),[`${He}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},le.vS),[`${He}-selection-placeholder`]:Object.assign(Object.assign({},le.vS),{flex:1,color:ce.colorTextPlaceholder,pointerEvents:"none"}),[`${He}-arrow`]:Object.assign(Object.assign({},(0,le.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:je,height:ce.fontSizeIcon,marginTop:-ce.fontSizeIcon/2,color:ce.colorTextQuaternary,fontSize:ce.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[it]:{verticalAlign:"top",transition:`transform ${ce.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${He}-suffix)`]:{pointerEvents:"auto"}},[`${He}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${He}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:je,zIndex:1,display:"inline-block",width:ce.fontSizeIcon,height:ce.fontSizeIcon,marginTop:-ce.fontSizeIcon/2,color:ce.colorTextQuaternary,fontSize:ce.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:ce.clearBg,cursor:"pointer",opacity:0,transition:`color ${ce.motionDurationMid} ease, opacity ${ce.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:ce.colorTextTertiary}},"&:hover":{[`${He}-clear`]:{opacity:1}}}),[`${He}-has-feedback`]:{[`${He}-clear`]:{insetInlineEnd:je+ce.fontSize+ce.paddingXS}}}},ct=ce=>{const{componentCls:He}=ce;return[{[He]:{[`&-borderless ${He}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${He}-in-form-item`]:{width:"100%"}}},ot(ce),Xe(ce),qe(ce),pe(ce),{[`${He}-rtl`]:{direction:"rtl"}},vt(He,(0,Ne.TS)(ce,{borderHoverColor:ce.colorPrimaryHover,outlineColor:ce.controlOutline})),vt(`${He}-status-error`,(0,Ne.TS)(ce,{borderHoverColor:ce.colorErrorHover,outlineColor:ce.colorErrorOutline}),!0),vt(`${He}-status-warning`,(0,Ne.TS)(ce,{borderHoverColor:ce.colorWarningHover,outlineColor:ce.colorWarningOutline}),!0),(0,Me.c)(ce,{borderElCls:`${He}-selector`,focusElCls:`${He}-focused`})]};var Se=(0,Ue.Z)("Select",(ce,He)=>{let{rootPrefixCls:je}=He;const it=(0,Ne.TS)(ce,{rootPrefixCls:je,inputPaddingHorizontalBase:ce.paddingSM-1,multipleSelectItemHeight:ce.multipleItemHeight});return[ct(it)]},ce=>{const{fontSize:He,lineHeight:je,controlHeight:it,controlPaddingHorizontal:at,zIndexPopupBase:Ge,colorText:Ae,fontWeightStrong:wt,controlItemBgActive:dt,controlItemBgHover:$t,colorBgContainer:bt,colorFillSecondary:Ot,controlHeightLG:Pn,controlHeightSM:$n,colorBgContainerDisabled:yt,colorTextDisabled:Be}=ce;return{zIndexPopup:Ge+50,optionSelectedColor:Ae,optionSelectedFontWeight:wt,optionSelectedBg:dt,optionActiveBg:$t,optionPadding:`${(it-He*je)/2}px ${at}px`,optionFontSize:He,optionLineHeight:je,optionHeight:it,selectorBg:bt,clearBg:bt,singleItemHeightLG:Pn,multipleItemBg:Ot,multipleItemBorderColor:"transparent",multipleItemHeight:$n,multipleItemHeightLG:it,multipleSelectorBgDisabled:yt,multipleItemColorDisabled:Be,multipleItemBorderColorDisabled:"transparent"}})},13458:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return Me}});const le=Ne=>{const be={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Ne==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},be),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},be),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},be),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},be),{points:["br","tr"],offset:[0,-4]})}};function Me(Ne,Ue){return Ne||le(Ue)}},78642:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return le}});function le(Me,Ne){return Ne!==void 0?Ne:Me!==null}},46163:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return we}});var le=te(18299),Me=te(16646),Ne=te(73475),Ue=te(42922),be=te(3407),ke=te(72395),de=te(67294);function we(pe){let{suffixIcon:Le,clearIcon:nt,menuItemSelectedIcon:Re,removeIcon:We,loading:qe,multiple:lt,hasFeedback:Xe,prefixCls:ye,showSuffixIcon:vt,feedbackIcon:Pt,showArrow:ot,componentName:ct}=pe;const Se=nt!=null?nt:de.createElement(Me.Z,null),ce=at=>Le===null&&!Xe&&!ot?null:de.createElement(de.Fragment,null,vt!==!1&&at,Xe&&Pt);let He=null;if(Le!==void 0)He=ce(Le);else if(qe)He=ce(de.createElement(be.Z,{spin:!0}));else{const at=`${ye}-suffix`;He=Ge=>{let{open:Ae,showSearch:wt}=Ge;return ce(Ae&&wt?de.createElement(ke.Z,{className:at}):de.createElement(Ue.Z,{className:at}))}}let je=null;Re!==void 0?je=Re:lt?je=de.createElement(le.Z,null):je=null;let it=null;return We!==void 0?it=We:it=de.createElement(Ne.Z,null),{clearIcon:Se,suffixIcon:He,itemIcon:je,removeIcon:it}}},33507:function(Nn,Nt){"use strict";const te=le=>({[le.componentCls]:{[`${le.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${le.motionDurationMid} ${le.motionEaseInOut},
opacity ${le.motionDurationMid} ${le.motionEaseInOut} !important`}},[`${le.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${le.motionDurationMid} ${le.motionEaseInOut},
opacity ${le.motionDurationMid} ${le.motionEaseInOut} !important`}}});Nt.Z=te},33297:function(Nn,Nt,te){"use strict";te.d(Nt,{Fm:function(){return Re}});var le=te(34367),Me=te(93590);const Ne=new le.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ue=new le.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),be=new le.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ke=new le.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),de=new le.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),we=new le.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),pe=new le.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Le=new le.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),nt={"move-up":{inKeyframes:pe,outKeyframes:Le},"move-down":{inKeyframes:Ne,outKeyframes:Ue},"move-left":{inKeyframes:be,outKeyframes:ke},"move-right":{inKeyframes:de,outKeyframes:we}},Re=(We,qe)=>{const{antCls:lt}=We,Xe=`${lt}-${qe}`,{inKeyframes:ye,outKeyframes:vt}=nt[qe];return[(0,Me.R)(Xe,ye,vt,We.motionDurationMid),{[`
${Xe}-enter,
${Xe}-appear
`]:{opacity:0,animationTimingFunction:We.motionEaseOutCirc},[`${Xe}-leave`]:{animationTimingFunction:We.motionEaseInOutCirc}}]}},67771:function(Nn,Nt,te){"use strict";te.d(Nt,{Qt:function(){return be},Uw:function(){return Ue},fJ:function(){return Ne},ly:function(){return ke},oN:function(){return Re}});var le=te(34367),Me=te(93590);const Ne=new le.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Ue=new le.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),be=new le.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),ke=new le.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),de=new le.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),we=new le.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),pe=new le.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Le=new le.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),nt={"slide-up":{inKeyframes:Ne,outKeyframes:Ue},"slide-down":{inKeyframes:be,outKeyframes:ke},"slide-left":{inKeyframes:de,outKeyframes:we},"slide-right":{inKeyframes:pe,outKeyframes:Le}},Re=(We,qe)=>{const{antCls:lt}=We,Xe=`${lt}-${qe}`,{inKeyframes:ye,outKeyframes:vt}=nt[qe];return[(0,Me.R)(Xe,ye,vt,We.motionDurationMid),{[`
${Xe}-enter,
${Xe}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:We.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${Xe}-leave`]:{animationTimingFunction:We.motionEaseInQuint}}]}},49867:function(Nn,Nt,te){"use strict";te.d(Nt,{N:function(){return le}});const le=Me=>({color:Me.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${Me.motionDurationSlow}`,"&:focus, &:hover":{color:Me.colorLinkHover},"&:active":{color:Me.colorLinkActive}})},47897:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return xe}});var le=te(3407),Me=te(94184),Ne=te.n(Me);function Ue(){return Ue=Object.assign?Object.assign.bind():function(ge){for(var se=1;se<arguments.length;se++){var Fe=arguments[se];for(var st in Fe)Object.prototype.hasOwnProperty.call(Fe,st)&&(ge[st]=Fe[st])}return ge},Ue.apply(this,arguments)}function be(ge){"@babel/helpers - typeof";return be=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(se){return typeof se}:function(se){return se&&typeof Symbol=="function"&&se.constructor===Symbol&&se!==Symbol.prototype?"symbol":typeof se},be(ge)}function ke(ge,se){if(be(ge)!=="object"||ge===null)return ge;var Fe=ge[Symbol.toPrimitive];if(Fe!==void 0){var st=Fe.call(ge,se||"default");if(be(st)!=="object")return st;throw new TypeError("@@toPrimitive must return a primitive value.")}return(se==="string"?String:Number)(ge)}function de(ge){var se=ke(ge,"string");return be(se)==="symbol"?se:String(se)}function we(ge,se,Fe){return se=de(se),se in ge?Object.defineProperty(ge,se,{value:Fe,enumerable:!0,configurable:!0,writable:!0}):ge[se]=Fe,ge}function pe(ge){if(Array.isArray(ge))return ge}function Le(ge,se){var Fe=ge==null?null:typeof Symbol!="undefined"&&ge[Symbol.iterator]||ge["@@iterator"];if(Fe!=null){var st,en,Sn,dn,zn=[],vn=!0,kt=!1;try{if(Sn=(Fe=Fe.call(ge)).next,se===0){if(Object(Fe)!==Fe)return;vn=!1}else for(;!(vn=(st=Sn.call(Fe)).done)&&(zn.push(st.value),zn.length!==se);vn=!0);}catch(Xt){kt=!0,en=Xt}finally{try{if(!vn&&Fe.return!=null&&(dn=Fe.return(),Object(dn)!==dn))return}finally{if(kt)throw en}}return zn}}function nt(ge,se){(se==null||se>ge.length)&&(se=ge.length);for(var Fe=0,st=new Array(se);Fe<se;Fe++)st[Fe]=ge[Fe];return st}function Re(ge,se){if(ge){if(typeof ge=="string")return nt(ge,se);var Fe=Object.prototype.toString.call(ge).slice(8,-1);if(Fe==="Object"&&ge.constructor&&(Fe=ge.constructor.name),Fe==="Map"||Fe==="Set")return Array.from(ge);if(Fe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Fe))return nt(ge,se)}}function We(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qe(ge,se){return pe(ge)||Le(ge,se)||Re(ge,se)||We()}function lt(ge,se){if(ge==null)return{};var Fe={},st=Object.keys(ge),en,Sn;for(Sn=0;Sn<st.length;Sn++)en=st[Sn],!(se.indexOf(en)>=0)&&(Fe[en]=ge[en]);return Fe}function Xe(ge,se){if(ge==null)return{};var Fe=lt(ge,se),st,en;if(Object.getOwnPropertySymbols){var Sn=Object.getOwnPropertySymbols(ge);for(en=0;en<Sn.length;en++)st=Sn[en],!(se.indexOf(st)>=0)&&Object.prototype.propertyIsEnumerable.call(ge,st)&&(Fe[st]=ge[st])}return Fe}var ye=te(67294);function vt(ge){if(Array.isArray(ge))return ge}function Pt(ge,se){var Fe=ge==null?null:typeof Symbol!="undefined"&&ge[Symbol.iterator]||ge["@@iterator"];if(Fe!=null){var st,en,Sn,dn,zn=[],vn=!0,kt=!1;try{if(Sn=(Fe=Fe.call(ge)).next,se===0){if(Object(Fe)!==Fe)return;vn=!1}else for(;!(vn=(st=Sn.call(Fe)).done)&&(zn.push(st.value),zn.length!==se);vn=!0);}catch(Xt){kt=!0,en=Xt}finally{try{if(!vn&&Fe.return!=null&&(dn=Fe.return(),Object(dn)!==dn))return}finally{if(kt)throw en}}return zn}}function ot(ge,se){(se==null||se>ge.length)&&(se=ge.length);for(var Fe=0,st=new Array(se);Fe<se;Fe++)st[Fe]=ge[Fe];return st}function ct(ge,se){if(ge){if(typeof ge=="string")return ot(ge,se);var Fe=Object.prototype.toString.call(ge).slice(8,-1);if(Fe==="Object"&&ge.constructor&&(Fe=ge.constructor.name),Fe==="Map"||Fe==="Set")return Array.from(ge);if(Fe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Fe))return ot(ge,se)}}function Se(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ce(ge,se){return vt(ge)||Pt(ge,se)||ct(ge,se)||Se()}function He(ge){var se=ye.useRef();se.current=ge;var Fe=ye.useCallback(function(){for(var st,en=arguments.length,Sn=new Array(en),dn=0;dn<en;dn++)Sn[dn]=arguments[dn];return(st=se.current)===null||st===void 0?void 0:st.call.apply(st,[se].concat(Sn))},[]);return Fe}function je(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var it=je()?ye.useLayoutEffect:ye.useEffect,at=function(se,Fe){var st=ye.useRef(!0);it(function(){return se(st.current)},Fe),it(function(){return st.current=!1,function(){st.current=!0}},[])},Ge=function(se,Fe){at(function(st){if(!st)return se()},Fe)},Ae=null;function wt(ge){var se=ye.useRef(!1),Fe=ye.useState(ge),st=ce(Fe,2),en=st[0],Sn=st[1];ye.useEffect(function(){return se.current=!1,function(){se.current=!0}},[]);function dn(zn,vn){vn&&se.current||Sn(zn)}return[en,dn]}function dt(ge){return ge!==void 0}function $t(ge,se){var Fe=se||{},st=Fe.defaultValue,en=Fe.value,Sn=Fe.onChange,dn=Fe.postState,zn=wt(function(){return dt(en)?en:dt(st)?typeof st=="function"?st():st:typeof ge=="function"?ge():ge}),vn=ce(zn,2),kt=vn[0],Xt=vn[1],Jt=en!==void 0?en:kt,jt=dn?dn(Jt):Jt,Bt=He(Sn),ir=wt([Jt]),Ct=ce(ir,2),At=Ct[0],er=Ct[1];Ge(function(){var fr=At[0];kt!==fr&&Bt(kt,fr)},[At]),Ge(function(){dt(en)||Xt(en)},[en]);var An=He(function(fr,Rr){Xt(fr,Rr),er([Jt],Rr)});return[jt,An]}var bt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(se){var Fe=se.keyCode;if(se.altKey&&!se.ctrlKey||se.metaKey||Fe>=bt.F1&&Fe<=bt.F12)return!1;switch(Fe){case bt.ALT:case bt.CAPS_LOCK:case bt.CONTEXT_MENU:case bt.CTRL:case bt.DOWN:case bt.END:case bt.ESC:case bt.HOME:case bt.INSERT:case bt.LEFT:case bt.MAC_FF_META:case bt.META:case bt.NUMLOCK:case bt.NUM_CENTER:case bt.PAGE_DOWN:case bt.PAGE_UP:case bt.PAUSE:case bt.PRINT_SCREEN:case bt.RIGHT:case bt.SHIFT:case bt.UP:case bt.WIN_KEY:case bt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(se){if(se>=bt.ZERO&&se<=bt.NINE||se>=bt.NUM_ZERO&&se<=bt.NUM_MULTIPLY||se>=bt.A&&se<=bt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&se===0)return!0;switch(se){case bt.SPACE:case bt.QUESTION_MARK:case bt.NUM_PLUS:case bt.NUM_MINUS:case bt.NUM_PERIOD:case bt.NUM_DIVISION:case bt.SEMICOLON:case bt.DASH:case bt.EQUALS:case bt.COMMA:case bt.PERIOD:case bt.SLASH:case bt.APOSTROPHE:case bt.SINGLE_QUOTE:case bt.OPEN_SQUARE_BRACKET:case bt.BACKSLASH:case bt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Ot=bt,Pn=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],$n=ye.forwardRef(function(ge,se){var Fe,st=ge.prefixCls,en=st===void 0?"rc-switch":st,Sn=ge.className,dn=ge.checked,zn=ge.defaultChecked,vn=ge.disabled,kt=ge.loadingIcon,Xt=ge.checkedChildren,Jt=ge.unCheckedChildren,jt=ge.onClick,Bt=ge.onChange,ir=ge.onKeyDown,Ct=Xe(ge,Pn),At=$t(!1,{value:dn,defaultValue:zn}),er=qe(At,2),An=er[0],fr=er[1];function Rr(mi,Br){var ki=An;return vn||(ki=mi,fr(ki),Bt==null||Bt(ki,Br)),ki}function ii(mi){mi.which===Ot.LEFT?Rr(!1,mi):mi.which===Ot.RIGHT&&Rr(!0,mi),ir==null||ir(mi)}function Yr(mi){var Br=Rr(!An,mi);jt==null||jt(Br,mi)}var Jr=Ne()(en,Sn,(Fe={},we(Fe,"".concat(en,"-checked"),An),we(Fe,"".concat(en,"-disabled"),vn),Fe));return ye.createElement("button",Ue({},Ct,{type:"button",role:"switch","aria-checked":An,disabled:vn,className:Jr,ref:se,onKeyDown:ii,onClick:Yr}),kt,ye.createElement("span",{className:"".concat(en,"-inner")},ye.createElement("span",{className:"".concat(en,"-inner-checked")},Xt),ye.createElement("span",{className:"".concat(en,"-inner-unchecked")},Jt)))});$n.displayName="Switch";var yt=$n,Be=te(45353),Rt=te(53124),Vn=te(98866),In=te(98675),xt=te(84780),Mt=te(14747),qt=te(67968),an=te(45503);const ln=ge=>{const{componentCls:se,trackHeightSM:Fe,trackPadding:st,trackMinWidthSM:en,innerMinMarginSM:Sn,innerMaxMarginSM:dn,handleSizeSM:zn}=ge,vn=`${se}-inner`;return{[se]:{[`&${se}-small`]:{minWidth:en,height:Fe,lineHeight:`${Fe}px`,[`${se}-inner`]:{paddingInlineStart:dn,paddingInlineEnd:Sn,[`${vn}-checked`]:{marginInlineStart:`calc(-100% + ${zn+st*2}px - ${dn*2}px)`,marginInlineEnd:`calc(100% - ${zn+st*2}px + ${dn*2}px)`},[`${vn}-unchecked`]:{marginTop:-Fe,marginInlineStart:0,marginInlineEnd:0}},[`${se}-handle`]:{width:zn,height:zn},[`${se}-loading-icon`]:{top:(zn-ge.switchLoadingIconSize)/2,fontSize:ge.switchLoadingIconSize},[`&${se}-checked`]:{[`${se}-inner`]:{paddingInlineStart:Sn,paddingInlineEnd:dn,[`${vn}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${vn}-unchecked`]:{marginInlineStart:`calc(100% - ${zn+st*2}px + ${dn*2}px)`,marginInlineEnd:`calc(-100% + ${zn+st*2}px - ${dn*2}px)`}},[`${se}-handle`]:{insetInlineStart:`calc(100% - ${zn+st}px)`}},[`&:not(${se}-disabled):active`]:{[`&:not(${se}-checked) ${vn}`]:{[`${vn}-unchecked`]:{marginInlineStart:ge.marginXXS/2,marginInlineEnd:-ge.marginXXS/2}},[`&${se}-checked ${vn}`]:{[`${vn}-checked`]:{marginInlineStart:-ge.marginXXS/2,marginInlineEnd:ge.marginXXS/2}}}}}}},Yt=ge=>{const{componentCls:se,handleSize:Fe}=ge;return{[se]:{[`${se}-loading-icon${ge.iconCls}`]:{position:"relative",top:(Fe-ge.fontSize)/2,color:ge.switchLoadingIconColor,verticalAlign:"top"},[`&${se}-checked ${se}-loading-icon`]:{color:ge.switchColor}}}},Cn=ge=>{const{componentCls:se,motion:Fe,trackPadding:st,handleBg:en,handleShadow:Sn,handleSize:dn}=ge,zn=`${se}-handle`;return{[se]:{[zn]:{position:"absolute",top:st,insetInlineStart:st,width:dn,height:dn,transition:`all ${ge.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:en,borderRadius:dn/2,boxShadow:Sn,transition:`all ${ge.switchDuration} ease-in-out`,content:'""'}},[`&${se}-checked ${zn}`]:{insetInlineStart:`calc(100% - ${dn+st}px)`},[`&:not(${se}-disabled):active`]:Fe?{[`${zn}::before`]:{insetInlineEnd:ge.switchHandleActiveInset,insetInlineStart:0},[`&${se}-checked ${zn}::before`]:{insetInlineEnd:0,insetInlineStart:ge.switchHandleActiveInset}}:{}}}},pr=ge=>{const{componentCls:se,trackHeight:Fe,trackPadding:st,innerMinMargin:en,innerMaxMargin:Sn,handleSize:dn}=ge,zn=`${se}-inner`;return{[se]:{[zn]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Sn,paddingInlineEnd:en,transition:`padding-inline-start ${ge.switchDuration} ease-in-out, padding-inline-end ${ge.switchDuration} ease-in-out`,[`${zn}-checked, ${zn}-unchecked`]:{display:"block",color:ge.colorTextLightSolid,fontSize:ge.fontSizeSM,transition:`margin-inline-start ${ge.switchDuration} ease-in-out, margin-inline-end ${ge.switchDuration} ease-in-out`,pointerEvents:"none"},[`${zn}-checked`]:{marginInlineStart:`calc(-100% + ${dn+st*2}px - ${Sn*2}px)`,marginInlineEnd:`calc(100% - ${dn+st*2}px + ${Sn*2}px)`},[`${zn}-unchecked`]:{marginTop:-Fe,marginInlineStart:0,marginInlineEnd:0}},[`&${se}-checked ${zn}`]:{paddingInlineStart:en,paddingInlineEnd:Sn,[`${zn}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${zn}-unchecked`]:{marginInlineStart:`calc(100% - ${dn+st*2}px + ${Sn*2}px)`,marginInlineEnd:`calc(-100% + ${dn+st*2}px - ${Sn*2}px)`}},[`&:not(${se}-disabled):active`]:{[`&:not(${se}-checked) ${zn}`]:{[`${zn}-unchecked`]:{marginInlineStart:st*2,marginInlineEnd:-st*2}},[`&${se}-checked ${zn}`]:{[`${zn}-checked`]:{marginInlineStart:-st*2,marginInlineEnd:st*2}}}}}},Xn=ge=>{const{componentCls:se,trackHeight:Fe,trackMinWidth:st}=ge;return{[se]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Mt.Wf)(ge)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:st,height:Fe,lineHeight:`${Fe}px`,verticalAlign:"middle",background:ge.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${ge.motionDurationMid}`,userSelect:"none",[`&:hover:not(${se}-disabled)`]:{background:ge.colorTextTertiary}}),(0,Mt.Qy)(ge)),{[`&${se}-checked`]:{background:ge.switchColor,[`&:hover:not(${se}-disabled)`]:{background:ge.colorPrimaryHover}},[`&${se}-loading, &${se}-disabled`]:{cursor:"not-allowed",opacity:ge.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${se}-rtl`]:{direction:"rtl"}})}};var ze=(0,qt.Z)("Switch",ge=>{const se=(0,an.TS)(ge,{switchDuration:ge.motionDurationMid,switchColor:ge.colorPrimary,switchDisabledOpacity:ge.opacityLoading,switchLoadingIconSize:ge.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${ge.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Xn(se),pr(se),Cn(se),Yt(se),ln(se)]},ge=>{const{fontSize:se,lineHeight:Fe,controlHeight:st,colorWhite:en}=ge,Sn=se*Fe,dn=st/2,zn=2,vn=Sn-zn*2,kt=dn-zn*2;return{trackHeight:Sn,trackHeightSM:dn,trackMinWidth:vn*2+zn*4,trackMinWidthSM:kt*2+zn*2,trackPadding:zn,handleBg:en,handleSize:vn,handleSizeSM:kt,handleShadow:`0 2px 4px 0 ${new xt.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:vn/2,innerMaxMargin:vn+zn+zn*2,innerMinMarginSM:kt/2,innerMaxMarginSM:kt+zn+zn*2}}),fe=function(ge,se){var Fe={};for(var st in ge)Object.prototype.hasOwnProperty.call(ge,st)&&se.indexOf(st)<0&&(Fe[st]=ge[st]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var en=0,st=Object.getOwnPropertySymbols(ge);en<st.length;en++)se.indexOf(st[en])<0&&Object.prototype.propertyIsEnumerable.call(ge,st[en])&&(Fe[st[en]]=ge[st[en]]);return Fe};const ue=ye.forwardRef((ge,se)=>{const{prefixCls:Fe,size:st,disabled:en,loading:Sn,className:dn,rootClassName:zn,style:vn}=ge,kt=fe(ge,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Xt,direction:Jt,switch:jt}=ye.useContext(Rt.E_),Bt=ye.useContext(Vn.Z),ir=(en!=null?en:Bt)||Sn,Ct=Xt("switch",Fe),At=ye.createElement("div",{className:`${Ct}-handle`},Sn&&ye.createElement(le.Z,{className:`${Ct}-loading-icon`})),[er,An]=ze(Ct),fr=(0,In.Z)(st),Rr=Ne()(jt==null?void 0:jt.className,{[`${Ct}-small`]:fr==="small",[`${Ct}-loading`]:Sn,[`${Ct}-rtl`]:Jt==="rtl"},dn,zn,An),ii=Object.assign(Object.assign({},jt==null?void 0:jt.style),vn);return er(ye.createElement(Be.Z,{component:"Switch"},ye.createElement(yt,Object.assign({},kt,{prefixCls:Ct,className:Rr,style:ii,disabled:ir,ref:se,loadingIcon:At}))))});ue.__ANT_SWITCH=!0;var xe=ue},9430:function(Nn,Nt,te){"use strict";te.d(Nt,{default:function(){return fc}});var le={},Me="rc-table-internal-hook",Ne=te(97685),Ue=te(66680),be=te(8410),ke=te(91881),de=te(67294),we=te(73935);function pe(De){var Ie=de.createContext(void 0),tt=function(St){var Ft=St.value,hn=St.children,On=de.useRef(Ft);On.current=Ft;var Dn=de.useState(function(){return{getValue:function(){return On.current},listeners:new Set}}),ar=(0,Ne.Z)(Dn,1),Mr=ar[0];return(0,be.Z)(function(){(0,we.unstable_batchedUpdates)(function(){Mr.listeners.forEach(function(cn){cn(Ft)})})},[Ft]),de.createElement(Ie.Provider,{value:Mr},hn)};return{Context:Ie,Provider:tt,defaultValue:De}}function Le(De,Ie){var tt=(0,Ue.Z)(typeof Ie=="function"?Ie:function(cn){if(Ie===void 0)return cn;if(!Array.isArray(Ie))return cn[Ie];var jr={};return Ie.forEach(function(Xr){jr[Xr]=cn[Xr]}),jr}),gt=de.useContext(De==null?void 0:De.Context),St=gt||{},Ft=St.listeners,hn=St.getValue,On=de.useRef();On.current=tt(gt?hn():De==null?void 0:De.defaultValue);var Dn=de.useState({}),ar=(0,Ne.Z)(Dn,2),Mr=ar[1];return(0,be.Z)(function(){if(!gt)return;function cn(jr){var Xr=tt(jr);(0,ke.Z)(On.current,Xr,!0)||Mr({})}return Ft.add(cn),function(){Ft.delete(cn)}},[gt]),On.current}var nt=te(87462),Re=te(42550);function We(){var De=de.createContext(null);function Ie(){return de.useContext(De)}function tt(St,Ft){var hn=(0,Re.Yr)(St),On=function(ar,Mr){var cn=hn?{ref:Mr}:{},jr=de.useRef(0),Xr=de.useRef(ar),qr=Ie();return qr!==null?de.createElement(St,(0,nt.Z)({},ar,cn)):((!Ft||Ft(Xr.current,ar))&&(jr.current+=1),Xr.current=ar,de.createElement(De.Provider,{value:jr.current},de.createElement(St,(0,nt.Z)({},ar,cn))))};return hn?de.forwardRef(On):On}function gt(St,Ft){var hn=(0,Re.Yr)(St),On=function(ar,Mr){var cn=hn?{ref:Mr}:{};return Ie(),de.createElement(St,(0,nt.Z)({},ar,cn))};return hn?de.memo(de.forwardRef(On),Ft):de.memo(On,Ft)}return{makeImmutable:tt,responseImmutable:gt,useImmutableMark:Ie}}var qe=We(),lt=qe.makeImmutable,Xe=qe.responseImmutable,ye=qe.useImmutableMark,vt=We(),Pt=vt.makeImmutable,ot=vt.responseImmutable,ct=vt.useImmutableMark,Se=pe(),ce=Se;function He(De,Ie){var tt=de.useRef(0);tt.current+=1;var gt=de.useRef(De),St=[];Object.keys(De||{}).map(function(hn){var On;(De==null?void 0:De[hn])!==((On=gt.current)===null||On===void 0?void 0:On[hn])&&St.push(hn)}),gt.current=De;var Ft=de.useRef([]);return St.length&&(Ft.current=St),de.useDebugValue(tt.current),de.useDebugValue(Ft.current.join(", ")),Ie&&console.log("".concat(Ie,":"),tt.current,Ft.current),tt.current}var je=null,it=de.memo(function(){var De=He();return de.createElement("h1",null,"Render Times: ",De)});it.displayName="RenderBlock";var at=te(71002),Ge=te(1413),Ae=te(4942),wt=te(94184),dt=te.n(wt);function $t(De,Ie,tt){var gt=de.useRef({});return(!("value"in gt.current)||tt(gt.current.condition,Ie))&&(gt.current.value=De(),gt.current.condition=Ie),gt.current.value}var bt={},Ot=[],Pn=function(Ie){Ot.push(Ie)};function $n(De,Ie){if(0)var tt}function yt(De,Ie){if(0)var tt}function Be(){bt={}}function Rt(De,Ie,tt){!Ie&&!bt[tt]&&(De(!1,tt),bt[tt]=!0)}function Vn(De,Ie){Rt($n,De,Ie)}function In(De,Ie){Rt(yt,De,Ie)}Vn.preMessage=Pn,Vn.resetWarned=Be,Vn.noteOnce=In;var xt=Vn;function Mt(De,Ie){var tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,gt=new Set;function St(Ft,hn){var On=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Dn=gt.has(Ft);if(xt(!Dn,"Warning: There may be circular references"),Dn)return!1;if(Ft===hn)return!0;if(tt&&On>1)return!1;gt.add(Ft);var ar=On+1;if(Array.isArray(Ft)){if(!Array.isArray(hn)||Ft.length!==hn.length)return!1;for(var Mr=0;Mr<Ft.length;Mr++)if(!St(Ft[Mr],hn[Mr],ar))return!1;return!0}if(Ft&&hn&&(0,at.Z)(Ft)==="object"&&(0,at.Z)(hn)==="object"){var cn=Object.keys(Ft);return cn.length!==Object.keys(hn).length?!1:cn.every(function(jr){return St(Ft[jr],hn[jr],ar)})}return!1}return St(De,Ie)}var qt=Mt;function an(De,Ie){for(var tt=De,gt=0;gt<Ie.length;gt+=1){if(tt==null)return;tt=tt[Ie[gt]]}return tt}var ln=de.createContext({renderWithProps:!1}),Yt=ln,Cn="RC_TABLE_KEY";function pr(De){return De==null?[]:Array.isArray(De)?De:[De]}function Xn(De){var Ie=[],tt={};return De.forEach(function(gt){for(var St=gt||{},Ft=St.key,hn=St.dataIndex,On=Ft||pr(hn).join("-")||Cn;tt[On];)On="".concat(On,"_next");tt[On]=!0,Ie.push(On)}),Ie}function ze(De){return De!=null}function fe(De){return De&&(0,at.Z)(De)==="object"&&!Array.isArray(De)&&!de.isValidElement(De)}function ue(De,Ie,tt,gt,St,Ft){var hn=de.useContext(Yt),On=ct(),Dn=$t(function(){if(ze(gt))return[gt];var ar=Ie==null||Ie===""?[]:Array.isArray(Ie)?Ie:[Ie],Mr=an(De,ar),cn=Mr,jr=void 0;if(St){var Xr=St(Mr,De,tt);fe(Xr)?(cn=Xr.children,jr=Xr.props,hn.renderWithProps=!0):cn=Xr}return[cn,jr]},[On,De,gt,Ie,St,tt],function(ar,Mr){if(Ft){var cn=(0,Ne.Z)(ar,2),jr=cn[1],Xr=(0,Ne.Z)(Mr,2),qr=Xr[1];return Ft(qr,jr)}return hn.renderWithProps?!0:!qt(ar,Mr,!0)});return Dn}function xe(De,Ie,tt,gt){var St=De+Ie-1;return De<=gt&&St>=tt}function ge(De,Ie){return Le(ce,function(tt){var gt=xe(De,Ie||1,tt.hoverStartRow,tt.hoverEndRow);return[gt,tt.onHover]})}var se=function(Ie){var tt=Ie.ellipsis,gt=Ie.rowType,St=Ie.children,Ft,hn=tt===!0?{showTitle:!0}:tt;return hn&&(hn.showTitle||gt==="header")&&(typeof St=="string"||typeof St=="number"?Ft=St.toString():de.isValidElement(St)&&typeof St.props.children=="string"&&(Ft=St.props.children)),Ft};function Fe(De){var Ie,tt,gt,St,Ft,hn,On,Dn,ar=De.component,Mr=De.children,cn=De.ellipsis,jr=De.scope,Xr=De.prefixCls,qr=De.className,Qr=De.align,Sr=De.record,hi=De.render,di=De.dataIndex,$i=De.renderIndex,va=De.shouldCellUpdate,ca=De.index,ma=De.rowType,$a=De.colSpan,ko=De.rowSpan,ea=De.fixLeft,oa=De.fixRight,Ji=De.firstFixLeft,Li=De.lastFixLeft,da=De.firstFixRight,ja=De.lastFixRight,Bo=De.appendNode,lo=De.additionalProps,Ua=lo===void 0?{}:lo,Ho=De.isSticky,Zo="".concat(Xr,"-cell"),vs=Le(ce,["supportSticky","allColumnsFixedLeft"]),$o=vs.supportSticky,Fs=vs.allColumnsFixedLeft,_s=ue(Sr,di,$i,Mr,hi,va),Lo=(0,Ne.Z)(_s,2),gl=Lo[0],ps=Lo[1],Ps={},ws=typeof ea=="number"&&$o,vo=typeof oa=="number"&&$o;ws&&(Ps.position="sticky",Ps.left=ea),vo&&(Ps.position="sticky",Ps.right=oa);var Ki=(Ie=(tt=(gt=ps==null?void 0:ps.colSpan)!==null&&gt!==void 0?gt:Ua.colSpan)!==null&&tt!==void 0?tt:$a)!==null&&Ie!==void 0?Ie:1,Ia=(St=(Ft=(hn=ps==null?void 0:ps.rowSpan)!==null&&hn!==void 0?hn:Ua.rowSpan)!==null&&Ft!==void 0?Ft:ko)!==null&&St!==void 0?St:1,Ga=ge(ca,Ia),na=(0,Ne.Z)(Ga,2),ds=na[0],Zi=na[1],yo=function(ul){var Vl;Sr&&Zi(ca,ca+Ia-1),Ua==null||(Vl=Ua.onMouseEnter)===null||Vl===void 0||Vl.call(Ua,ul)},fs=function(ul){var Vl;Sr&&Zi(-1,-1),Ua==null||(Vl=Ua.onMouseLeave)===null||Vl===void 0||Vl.call(Ua,ul)};if(Ki===0||Ia===0)return null;var ts=(On=Ua.title)!==null&&On!==void 0?On:se({rowType:ma,ellipsis:cn,children:gl}),$l=dt()(Zo,qr,(Dn={},(0,Ae.Z)(Dn,"".concat(Zo,"-fix-left"),ws&&$o),(0,Ae.Z)(Dn,"".concat(Zo,"-fix-left-first"),Ji&&$o),(0,Ae.Z)(Dn,"".concat(Zo,"-fix-left-last"),Li&&$o),(0,Ae.Z)(Dn,"".concat(Zo,"-fix-left-all"),Li&&Fs&&$o),(0,Ae.Z)(Dn,"".concat(Zo,"-fix-right"),vo&&$o),(0,Ae.Z)(Dn,"".concat(Zo,"-fix-right-first"),da&&$o),(0,Ae.Z)(Dn,"".concat(Zo,"-fix-right-last"),ja&&$o),(0,Ae.Z)(Dn,"".concat(Zo,"-ellipsis"),cn),(0,Ae.Z)(Dn,"".concat(Zo,"-with-append"),Bo),(0,Ae.Z)(Dn,"".concat(Zo,"-fix-sticky"),(ws||vo)&&Ho&&$o),(0,Ae.Z)(Dn,"".concat(Zo,"-row-hover"),!ps&&ds),Dn),Ua.className,ps==null?void 0:ps.className),wl={};Qr&&(wl.textAlign=Qr);var eu=(0,Ge.Z)((0,Ge.Z)((0,Ge.Z)((0,Ge.Z)({},Ps),Ua.style),wl),ps==null?void 0:ps.style),oi=gl;return(0,at.Z)(oi)==="object"&&!Array.isArray(oi)&&!de.isValidElement(oi)&&(oi=null),cn&&(Li||da)&&(oi=de.createElement("span",{className:"".concat(Zo,"-content")},oi)),de.createElement(ar,(0,nt.Z)({},ps,Ua,{className:$l,style:eu,title:ts,scope:jr,onMouseEnter:yo,onMouseLeave:fs,colSpan:Ki!==1?Ki:null,rowSpan:Ia!==1?Ia:null}),Bo,oi)}var st=de.memo(Fe);function en(De,Ie,tt,gt,St,Ft){var hn=tt[De]||{},On=tt[Ie]||{},Dn,ar;hn.fixed==="left"?Dn=gt.left[St==="rtl"?Ie:De]:On.fixed==="right"&&(ar=gt.right[St==="rtl"?De:Ie]);var Mr=!1,cn=!1,jr=!1,Xr=!1,qr=tt[Ie+1],Qr=tt[De-1],Sr=!(Ft!=null&&Ft.children);if(St==="rtl"){if(Dn!==void 0){var hi=Qr&&Qr.fixed==="left";Xr=!hi&&Sr}else if(ar!==void 0){var di=qr&&qr.fixed==="right";jr=!di&&Sr}}else if(Dn!==void 0){var $i=qr&&qr.fixed==="left";Mr=!$i&&Sr}else if(ar!==void 0){var va=Qr&&Qr.fixed==="right";cn=!va&&Sr}return{fixLeft:Dn,fixRight:ar,lastFixLeft:Mr,firstFixRight:cn,lastFixRight:jr,firstFixLeft:Xr,isSticky:gt.isSticky}}var Sn=de.createContext({}),dn=Sn;function zn(De){var Ie=De.className,tt=De.index,gt=De.children,St=De.colSpan,Ft=St===void 0?1:St,hn=De.rowSpan,On=De.align,Dn=Le(ce,["prefixCls","direction"]),ar=Dn.prefixCls,Mr=Dn.direction,cn=de.useContext(dn),jr=cn.scrollColumnIndex,Xr=cn.stickyOffsets,qr=cn.flattenColumns,Qr=cn.columns,Sr=tt+Ft-1,hi=Sr+1===jr?Ft+1:Ft,di=en(tt,tt+hi-1,qr,Xr,Mr,Qr==null?void 0:Qr[tt]);return de.createElement(st,(0,nt.Z)({className:Ie,index:tt,component:"td",prefixCls:ar,record:null,dataIndex:null,align:On,colSpan:hi,rowSpan:hn,render:function(){return gt}},di))}var vn=te(45987),kt=["children"];function Xt(De){var Ie=De.children,tt=(0,vn.Z)(De,kt);return de.createElement("tr",tt,Ie)}function Jt(De){var Ie=De.children;return Ie}Jt.Row=Xt,Jt.Cell=zn;var jt=Jt;function Bt(De){var Ie=De.children,tt=De.stickyOffsets,gt=De.flattenColumns,St=De.columns,Ft=Le(ce,"prefixCls"),hn=gt.length-1,On=gt[hn],Dn=de.useMemo(function(){return{stickyOffsets:tt,flattenColumns:gt,scrollColumnIndex:On!=null&&On.scrollbar?hn:null,columns:St}},[On,gt,hn,tt,St]);return de.createElement(dn.Provider,{value:Dn},de.createElement("tfoot",{className:"".concat(Ft,"-summary")},Ie))}var ir=ot(Bt),Ct=jt;function At(De){var Ie=de.useRef();Ie.current=De;var tt=de.useCallback(function(){for(var gt,St=arguments.length,Ft=new Array(St),hn=0;hn<St;hn++)Ft[hn]=arguments[hn];return(gt=Ie.current)===null||gt===void 0?void 0:gt.call.apply(gt,[Ie].concat(Ft))},[]);return tt}function er(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var An=er()?de.useLayoutEffect:de.useEffect,fr=function(Ie,tt){var gt=React.useRef(!0);An(function(){return Ie(gt.current)},tt),An(function(){return gt.current=!1,function(){gt.current=!0}},[])},Rr=function(Ie,tt){fr(function(gt){if(!gt)return Ie()},tt)},ii=null;function Yr(De){var Ie=React.useRef(!1),tt=React.useState(De),gt=_slicedToArray(tt,2),St=gt[0],Ft=gt[1];React.useEffect(function(){return Ie.current=!1,function(){Ie.current=!0}},[]);function hn(On,Dn){Dn&&Ie.current||Ft(On)}return[St,hn]}function Jr(De){return De!==void 0}function mi(De,Ie){var tt=Ie||{},gt=tt.defaultValue,St=tt.value,Ft=tt.onChange,hn=tt.postState,On=useState(function(){return Jr(St)?St:Jr(gt)?typeof gt=="function"?gt():gt:typeof De=="function"?De():De}),Dn=_slicedToArray(On,2),ar=Dn[0],Mr=Dn[1],cn=St!==void 0?St:ar,jr=hn?hn(cn):cn,Xr=useEvent(Ft),qr=useState([cn]),Qr=_slicedToArray(qr,2),Sr=Qr[0],hi=Qr[1];useLayoutUpdateEffect(function(){var $i=Sr[0];ar!==$i&&Xr(ar,$i)},[Sr]),useLayoutUpdateEffect(function(){Jr(St)||Mr(St)},[St]);var di=useEvent(function($i,va){Mr($i,va),hi([cn],va)});return[jr,di]}var Br=te(35110);function ki(De,Ie){typeof De=="function"?De(Ie):(0,at.Z)(De)==="object"&&De&&"current"in De&&(De.current=Ie)}function Vi(){for(var De=arguments.length,Ie=new Array(De),tt=0;tt<De;tt++)Ie[tt]=arguments[tt];var gt=Ie.filter(function(St){return St});return gt.length<=1?gt[0]:function(St){Ie.forEach(function(Ft){ki(Ft,St)})}}function ha(){for(var De=arguments.length,Ie=new Array(De),tt=0;tt<De;tt++)Ie[tt]=arguments[tt];return useMemo(function(){return Vi.apply(void 0,Ie)},Ie,function(gt,St){return gt.length!==St.length||gt.every(function(Ft,hn){return Ft!==St[hn]})})}function pa(De){var Ie,tt,gt=isMemo(De)?De.type.type:De.type;return!(typeof gt=="function"&&!((Ie=gt.prototype)!==null&&Ie!==void 0&&Ie.render)||typeof De=="function"&&!((tt=De.prototype)!==null&&tt!==void 0&&tt.render))}function Ui(De){return!isValidElement(De)||isFragment(De)?!1:pa(De)}function Ut(De,Ie,tt,gt){if(!Ie.length)return tt;var St=_toArray(Ie),Ft=St[0],hn=St.slice(1),On;return!De&&typeof Ft=="number"?On=[]:Array.isArray(De)?On=_toConsumableArray(De):On=_objectSpread({},De),gt&&tt===void 0&&hn.length===1?delete On[Ft][hn[0]]:On[Ft]=Ut(On[Ft],hn,tt,gt),On}function Qt(De,Ie,tt){var gt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Ie.length&&gt&&tt===void 0&&!get(De,Ie.slice(0,-1))?De:Ut(De,Ie,tt,gt)}function un(De){return _typeof(De)==="object"&&De!==null&&Object.getPrototypeOf(De)===Object.prototype}function Bn(De){return Array.isArray(De)?[]:{}}var Cr=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function qn(){for(var De=arguments.length,Ie=new Array(De),tt=0;tt<De;tt++)Ie[tt]=arguments[tt];var gt=Bn(Ie[0]);return Ie.forEach(function(St){function Ft(hn,On){var Dn=new Set(On),ar=get(St,hn),Mr=Array.isArray(ar);if(Mr||un(ar)){if(!Dn.has(ar)){Dn.add(ar);var cn=get(gt,hn);Mr?gt=Qt(gt,hn,[]):(!cn||_typeof(cn)!=="object")&&(gt=Qt(gt,hn,Bn(ar))),Cr(ar).forEach(function(jr){Ft([].concat(_toConsumableArray(hn),[jr]),Dn)})}}else gt=Qt(gt,hn,ar)}Ft([])}),gt}var Lr=te(48555),or=function(De){if(!De)return!1;if(De instanceof Element){if(De.offsetParent)return!0;if(De.getBBox){var Ie=De.getBBox(),tt=Ie.width,gt=Ie.height;if(tt||gt)return!0}if(De.getBoundingClientRect){var St=De.getBoundingClientRect(),Ft=St.width,hn=St.height;if(Ft||hn)return!0}}return!1},Et=function(Ie){if(er()&&window.document.documentElement){var tt=Array.isArray(Ie)?Ie:[Ie],gt=window.document.documentElement;return tt.some(function(St){return St in gt.style})}return!1},_t=function(Ie,tt){if(!Et(Ie))return!1;var gt=document.createElement("div"),St=gt.style[Ie];return gt.style[Ie]=tt,gt.style[Ie]!==St};function zt(De,Ie){return!Array.isArray(De)&&Ie!==void 0?_t(De,Ie):Et(De)}var wn;function ft(De){if(typeof document=="undefined")return 0;if(De||wn===void 0){var Ie=document.createElement("div");Ie.style.width="100%",Ie.style.height="200px";var tt=document.createElement("div"),gt=tt.style;gt.position="absolute",gt.top="0",gt.left="0",gt.pointerEvents="none",gt.visibility="hidden",gt.width="200px",gt.height="150px",gt.overflow="hidden",tt.appendChild(Ie),document.body.appendChild(tt);var St=Ie.offsetWidth;tt.style.overflow="scroll";var Ft=Ie.offsetWidth;St===Ft&&(Ft=tt.clientWidth),document.body.removeChild(tt),wn=St-Ft}return wn}function Ht(De){var Ie=De.match(/^(.*)px$/),tt=Number(Ie==null?void 0:Ie[1]);return Number.isNaN(tt)?ft():tt}function xn(De){if(typeof document=="undefined"||!De||!(De instanceof Element))return{width:0,height:0};var Ie=getComputedStyle(De,"::-webkit-scrollbar"),tt=Ie.width,gt=Ie.height;return{width:Ht(tt),height:Ht(gt)}}var En=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,Hn=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Gn="".concat(En," ").concat(Hn).split(/[\s\n]+/),br="aria-",fi="data-";function Gr(De,Ie){return De.indexOf(Ie)===0}function Vr(De){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,tt;Ie===!1?tt={aria:!0,data:!0,attr:!0}:Ie===!0?tt={aria:!0}:tt=(0,Ge.Z)({},Ie);var gt={};return Object.keys(De).forEach(function(St){(tt.aria&&(St==="role"||Gr(St,br))||tt.data&&Gr(St,fi)||tt.attr&&Gn.includes(St))&&(gt[St]=De[St])}),gt}function ai(De,Ie,tt,gt,St,Ft,hn){De.push({record:Ie,indent:tt,index:hn});var On=Ft(Ie),Dn=St==null?void 0:St.has(On);if(Ie&&Array.isArray(Ie[gt])&&Dn)for(var ar=0;ar<Ie[gt].length;ar+=1)ai(De,Ie[gt][ar],tt+1,gt,St,Ft,ar)}function ei(De,Ie,tt,gt){var St=de.useMemo(function(){if(tt!=null&&tt.size){for(var Ft=[],hn=0;hn<(De==null?void 0:De.length);hn+=1){var On=De[hn];ai(Ft,On,0,Ie,tt,gt,hn)}return Ft}return De==null?void 0:De.map(function(Dn,ar){return{record:Dn,indent:0,index:ar}})},[De,Ie,tt,gt]);return St}function Vt(De){var Ie=De.prefixCls,tt=De.children,gt=De.component,St=De.cellComponent,Ft=De.className,hn=De.expanded,On=De.colSpan,Dn=De.isEmpty,ar=Le(ce,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Mr=ar.scrollbarSize,cn=ar.fixHeader,jr=ar.fixColumn,Xr=ar.componentWidth,qr=ar.horizonScroll,Qr=tt;return(Dn?qr&&Xr:jr)&&(Qr=de.createElement("div",{style:{width:Xr-(cn?Mr:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Ie,"-expanded-row-fixed")},Qr)),de.createElement(gt,{className:Ft,style:{display:hn?null:"none"}},de.createElement(st,{component:St,prefixCls:Ie,colSpan:On},Qr))}var Kt=Vt;function nn(De,Ie,tt,gt){var St=Le(ce,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Ft=St.flattenColumns,hn=St.expandableType,On=St.expandedKeys,Dn=St.childrenColumnName,ar=St.onTriggerExpand,Mr=St.rowExpandable,cn=St.onRow,jr=St.expandRowByClick,Xr=St.rowClassName,qr=hn==="nest",Qr=hn==="row"&&(!Mr||Mr(De)),Sr=Qr||qr,hi=On&&On.has(Ie),di=Dn&&De&&De[Dn],$i=At(ar),va=cn==null?void 0:cn(De,tt),ca=va==null?void 0:va.onClick,ma=function(oa){jr&&Sr&&ar(De,oa);for(var Ji=arguments.length,Li=new Array(Ji>1?Ji-1:0),da=1;da<Ji;da++)Li[da-1]=arguments[da];ca==null||ca.apply(void 0,[oa].concat(Li))},$a;typeof Xr=="string"?$a=Xr:typeof Xr=="function"&&($a=Xr(De,tt,gt));var ko=Xn(Ft);return(0,Ge.Z)((0,Ge.Z)({},St),{},{columnsKey:ko,nestExpandable:qr,expanded:hi,hasNestChildren:di,record:De,onTriggerExpand:$i,rowSupportExpand:Qr,expandable:Sr,rowProps:(0,Ge.Z)((0,Ge.Z)({},va),{},{className:dt()($a,va==null?void 0:va.className),onClick:ma})})}function sr(De,Ie,tt,gt,St){var Ft=De.record,hn=De.prefixCls,On=De.columnsKey,Dn=De.fixedInfoList,ar=De.expandIconColumnIndex,Mr=De.nestExpandable,cn=De.indentSize,jr=De.expandIcon,Xr=De.expanded,qr=De.hasNestChildren,Qr=De.onTriggerExpand,Sr=On[tt],hi=Dn[tt],di;tt===(ar||0)&&Mr&&(di=de.createElement(de.Fragment,null,de.createElement("span",{style:{paddingLeft:"".concat(cn*gt,"px")},className:"".concat(hn,"-row-indent indent-level-").concat(gt)}),jr({prefixCls:hn,expanded:Xr,expandable:qr,record:Ft,onExpand:Qr})));var $i;return Ie.onCell&&($i=Ie.onCell(Ft,St)),{key:Sr,fixedInfo:hi,appendCellNode:di,additionalCellProps:$i||{}}}function Tr(De){var Ie=De.className,tt=De.style,gt=De.record,St=De.index,Ft=De.renderIndex,hn=De.rowKey,On=De.indent,Dn=On===void 0?0:On,ar=De.rowComponent,Mr=De.cellComponent,cn=De.scopeCellComponent,jr=nn(gt,hn,St,Dn),Xr=jr.prefixCls,qr=jr.flattenColumns,Qr=jr.expandedRowClassName,Sr=jr.expandedRowRender,hi=jr.rowProps,di=jr.expanded,$i=jr.rowSupportExpand,va=de.useState(!1),ca=(0,Ne.Z)(va,2),ma=ca[0],$a=ca[1];de.useEffect(function(){di&&$a(!0)},[di]);var ko=de.createElement(ar,(0,nt.Z)({},hi,{"data-row-key":hn,className:dt()(Ie,"".concat(Xr,"-row"),"".concat(Xr,"-row-level-").concat(Dn),hi==null?void 0:hi.className),style:(0,Ge.Z)((0,Ge.Z)({},tt),hi==null?void 0:hi.style)}),qr.map(function(Li,da){var ja=Li.render,Bo=Li.dataIndex,lo=Li.className,Ua=sr(jr,Li,da,Dn,St),Ho=Ua.key,Zo=Ua.fixedInfo,vs=Ua.appendCellNode,$o=Ua.additionalCellProps;return de.createElement(st,(0,nt.Z)({className:lo,ellipsis:Li.ellipsis,align:Li.align,scope:Li.rowScope,component:Li.rowScope?cn:Mr,prefixCls:Xr,key:Ho,record:gt,index:St,renderIndex:Ft,dataIndex:Bo,render:ja,shouldCellUpdate:Li.shouldCellUpdate},Zo,{appendNode:vs,additionalProps:$o}))})),ea;if($i&&(ma||di)){var oa=Sr(gt,St,Dn+1,di),Ji=Qr&&Qr(gt,St,Dn);ea=de.createElement(Kt,{expanded:di,className:dt()("".concat(Xr,"-expanded-row"),"".concat(Xr,"-expanded-row-level-").concat(Dn+1),Ji),prefixCls:Xr,component:ar,cellComponent:Mr,colSpan:qr.length,isEmpty:!1},oa)}return de.createElement(de.Fragment,null,ko,ea)}Tr.displayName="BodyRow";var Fn=ot(Tr);function mr(De){var Ie=De.columnKey,tt=De.onColumnResize,gt=de.useRef();return de.useEffect(function(){gt.current&&tt(Ie,gt.current.offsetWidth)},[]),de.createElement(Lr.Z,{data:Ie},de.createElement("td",{ref:gt,style:{padding:0,border:0,height:0}},de.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function ur(De){var Ie=De.prefixCls,tt=De.columnsKey,gt=De.onColumnResize;return de.createElement("tr",{"aria-hidden":"true",className:"".concat(Ie,"-measure-row"),style:{height:0,fontSize:0}},de.createElement(Lr.Z.Collection,{onBatchResize:function(Ft){Ft.forEach(function(hn){var On=hn.data,Dn=hn.size;gt(On,Dn.offsetWidth)})}},tt.map(function(St){return de.createElement(mr,{key:St,columnKey:St,onColumnResize:gt})})))}function zr(De){var Ie=De.data,tt=De.measureColumnWidth,gt=Le(ce,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),St=gt.prefixCls,Ft=gt.getComponent,hn=gt.onColumnResize,On=gt.flattenColumns,Dn=gt.getRowKey,ar=gt.expandedKeys,Mr=gt.childrenColumnName,cn=gt.emptyNode,jr=ei(Ie,Mr,ar,Dn),Xr=de.useRef({renderWithProps:!1}),qr=Ft(["body","wrapper"],"tbody"),Qr=Ft(["body","row"],"tr"),Sr=Ft(["body","cell"],"td"),hi=Ft(["body","cell"],"th"),di;Ie.length?di=jr.map(function(va,ca){var ma=va.record,$a=va.indent,ko=va.index,ea=Dn(ma,ca);return de.createElement(Fn,{key:ea,rowKey:ea,record:ma,index:ca,renderIndex:ko,rowComponent:Qr,cellComponent:Sr,scopeCellComponent:hi,getRowKey:Dn,indent:$a})}):di=de.createElement(Kt,{expanded:!0,className:"".concat(St,"-placeholder"),prefixCls:St,component:Qr,cellComponent:Sr,colSpan:On.length,isEmpty:!0},cn);var $i=Xn(On);return de.createElement(Yt.Provider,{value:Xr.current},de.createElement(qr,{className:"".concat(St,"-tbody")},tt&&de.createElement(ur,{prefixCls:St,columnsKey:$i,onColumnResize:hn}),di))}zr.displayName="Body";var ti=ot(zr),jn=["expandable"],Gi="RC_TABLE_INTERNAL_COL_DEFINE";function _i(De){var Ie=De.expandable,tt=(0,vn.Z)(De,jn),gt;return"expandable"in De?gt=(0,Ge.Z)((0,Ge.Z)({},tt),Ie):gt=tt,gt.showExpandColumn===!1&&(gt.expandIconColumnIndex=-1),gt}var Xa=["columnType"];function _a(De){for(var Ie=De.colWidths,tt=De.columns,gt=De.columCount,St=[],Ft=gt||tt.length,hn=!1,On=Ft-1;On>=0;On-=1){var Dn=Ie[On],ar=tt&&tt[On],Mr=ar&&ar[Gi];if(Dn||Mr||hn){var cn=Mr||{},jr=cn.columnType,Xr=(0,vn.Z)(cn,Xa);St.unshift(de.createElement("col",(0,nt.Z)({key:On,style:{width:Dn}},Xr))),hn=!0}}return de.createElement("colgroup",null,St)}var Aa=_a,ra=te(74902),Oa=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function ya(De,Ie){return(0,de.useMemo)(function(){for(var tt=[],gt=0;gt<Ie;gt+=1){var St=De[gt];if(St!==void 0)tt[gt]=St;else return null}return tt},[De.join("_"),Ie])}var Ra=de.forwardRef(function(De,Ie){var tt=De.className,gt=De.noData,St=De.columns,Ft=De.flattenColumns,hn=De.colWidths,On=De.columCount,Dn=De.stickyOffsets,ar=De.direction,Mr=De.fixHeader,cn=De.stickyTopOffset,jr=De.stickyBottomOffset,Xr=De.stickyClassName,qr=De.onScroll,Qr=De.maxContentScroll,Sr=De.children,hi=(0,vn.Z)(De,Oa),di=Le(ce,["prefixCls","scrollbarSize","isSticky"]),$i=di.prefixCls,va=di.scrollbarSize,ca=di.isSticky,ma=ca&&!Mr?0:va,$a=de.useRef(null),ko=de.useCallback(function(lo){ki(Ie,lo),ki($a,lo)},[]);de.useEffect(function(){var lo;function Ua(Ho){var Zo=Ho,vs=Zo.currentTarget,$o=Zo.deltaX;$o&&(qr({currentTarget:vs,scrollLeft:vs.scrollLeft+$o}),Ho.preventDefault())}return(lo=$a.current)===null||lo===void 0||lo.addEventListener("wheel",Ua),function(){var Ho;(Ho=$a.current)===null||Ho===void 0||Ho.removeEventListener("wheel",Ua)}},[]);var ea=de.useMemo(function(){return Ft.every(function(lo){return lo.width})},[Ft]),oa=Ft[Ft.length-1],Ji={fixed:oa?oa.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat($i,"-cell-scrollbar")}}},Li=(0,de.useMemo)(function(){return ma?[].concat((0,ra.Z)(St),[Ji]):St},[ma,St]),da=(0,de.useMemo)(function(){return ma?[].concat((0,ra.Z)(Ft),[Ji]):Ft},[ma,Ft]),ja=(0,de.useMemo)(function(){var lo=Dn.right,Ua=Dn.left;return(0,Ge.Z)((0,Ge.Z)({},Dn),{},{left:ar==="rtl"?[].concat((0,ra.Z)(Ua.map(function(Ho){return Ho+ma})),[0]):Ua,right:ar==="rtl"?lo:[].concat((0,ra.Z)(lo.map(function(Ho){return Ho+ma})),[0]),isSticky:ca})},[ma,Dn,ca]),Bo=ya(hn,On);return de.createElement("div",{style:(0,Ge.Z)({overflow:"hidden"},ca?{top:cn,bottom:jr}:{}),ref:ko,className:dt()(tt,(0,Ae.Z)({},Xr,!!Xr))},de.createElement("table",{style:{tableLayout:"fixed",visibility:gt||Bo?null:"hidden"}},(!gt||!Qr||ea)&&de.createElement(Aa,{colWidths:Bo?[].concat((0,ra.Z)(Bo),[ma]):[],columCount:On+1,columns:da}),Sr((0,Ge.Z)((0,Ge.Z)({},hi),{},{stickyOffsets:ja,columns:Li,flattenColumns:da}))))});Ra.displayName="FixedHolder";var oo=de.memo(Ra);function Yi(De){var Ie=De.cells,tt=De.stickyOffsets,gt=De.flattenColumns,St=De.rowComponent,Ft=De.cellComponent,hn=De.tdCellComponent,On=De.onHeaderRow,Dn=De.index,ar=Le(ce,["prefixCls","direction"]),Mr=ar.prefixCls,cn=ar.direction,jr;On&&(jr=On(Ie.map(function(qr){return qr.column}),Dn));var Xr=Xn(Ie.map(function(qr){return qr.column}));return de.createElement(St,jr,Ie.map(function(qr,Qr){var Sr=qr.column,hi=en(qr.colStart,qr.colEnd,gt,tt,cn,Sr),di;return Sr&&Sr.onHeaderCell&&(di=qr.column.onHeaderCell(Sr)),de.createElement(st,(0,nt.Z)({},qr,{scope:Sr.title?qr.colSpan>1?"colgroup":"col":null,ellipsis:Sr.ellipsis,align:Sr.align,component:Sr.title?Ft:hn,prefixCls:Mr,key:Xr[Qr]},hi,{additionalProps:di,rowType:"header"}))}))}Yi.displayName="HeaderRow";var Pa=Yi;function to(De){var Ie=[];function tt(hn,On){var Dn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ie[Dn]=Ie[Dn]||[];var ar=On,Mr=hn.filter(Boolean).map(function(cn){var jr={key:cn.key,className:cn.className||"",children:cn.title,column:cn,colStart:ar},Xr=1,qr=cn.children;return qr&&qr.length>0&&(Xr=tt(qr,ar,Dn+1).reduce(function(Qr,Sr){return Qr+Sr},0),jr.hasSubColumns=!0),"colSpan"in cn&&(Xr=cn.colSpan),"rowSpan"in cn&&(jr.rowSpan=cn.rowSpan),jr.colSpan=Xr,jr.colEnd=jr.colStart+Xr-1,Ie[Dn].push(jr),ar+=Xr,Xr});return Mr}tt(De,0);for(var gt=Ie.length,St=function(On){Ie[On].forEach(function(Dn){!("rowSpan"in Dn)&&!Dn.hasSubColumns&&(Dn.rowSpan=gt-On)})},Ft=0;Ft<gt;Ft+=1)St(Ft);return Ie}function _o(De){var Ie=De.stickyOffsets,tt=De.columns,gt=De.flattenColumns,St=De.onHeaderRow,Ft=Le(ce,["prefixCls","getComponent"]),hn=Ft.prefixCls,On=Ft.getComponent,Dn=de.useMemo(function(){return to(tt)},[tt]),ar=On(["header","wrapper"],"thead"),Mr=On(["header","row"],"tr"),cn=On(["header","cell"],"th"),jr=On(["header","cell"],"td");return de.createElement(ar,{className:"".concat(hn,"-thead")},Dn.map(function(Xr,qr){var Qr=de.createElement(Pa,{key:qr,flattenColumns:gt,cells:Xr,stickyOffsets:Ie,rowComponent:Mr,cellComponent:cn,tdCellComponent:jr,onHeaderRow:St,index:qr});return Qr}))}var wo=ot(_o);function ia(De){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},tt=[];return de.Children.forEach(De,function(gt){gt==null&&!Ie.keepEmpty||(Array.isArray(gt)?tt=tt.concat(ia(gt)):(0,Br.isFragment)(gt)&&gt.props?tt=tt.concat(ia(gt.props.children,Ie)):tt.push(gt))}),tt}function on(De){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Ie=="number"?Ie:Ie.endsWith("%")?De*parseFloat(Ie)/100:null}function Gt(De,Ie){return de.useMemo(function(){if(Ie&&Ie>0){var tt=0,gt=0;De.forEach(function(ar){var Mr=on(Ie,ar.width);Mr?tt+=Mr:gt+=1});var St=Ie-tt,Ft=gt,hn=St/gt,On=0,Dn=De.map(function(ar){var Mr=(0,Ge.Z)({},ar),cn=on(Ie,Mr.width);if(cn)Mr.width=cn;else{var jr=Math.floor(hn);Mr.width=Ft===1?St:jr,St-=jr,Ft-=1}return On+=Mr.width,Mr});return[Dn,On]}return[De,Ie]},[De,Ie])}var Kn=["children"],yr=["fixed"];function Ir(De){return ia(De).filter(function(Ie){return de.isValidElement(Ie)}).map(function(Ie){var tt=Ie.key,gt=Ie.props,St=gt.children,Ft=(0,vn.Z)(gt,Kn),hn=(0,Ge.Z)({key:tt},Ft);return St&&(hn.children=Ir(St)),hn})}function si(De){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return De.filter(function(tt){return tt&&(0,at.Z)(tt)==="object"}).reduce(function(tt,gt,St){var Ft=gt.fixed,hn=Ft===!0?"left":Ft,On="".concat(Ie,"-").concat(St),Dn=gt.children;return Dn&&Dn.length>0?[].concat((0,ra.Z)(tt),(0,ra.Z)(si(Dn,On).map(function(ar){return(0,Ge.Z)({fixed:hn},ar)}))):[].concat((0,ra.Z)(tt),[(0,Ge.Z)((0,Ge.Z)({key:On},gt),{},{fixed:hn})])},[])}function Mi(De){for(var Ie=!0,tt=0;tt<De.length;tt+=1){var gt=De[tt];if(Ie&&gt.fixed!=="left")Ie=!1;else if(!Ie&&gt.fixed==="left"){warning(!1,"Index ".concat(tt-1," of `columns` missing `fixed='left'` prop."));break}}for(var St=!0,Ft=De.length-1;Ft>=0;Ft-=1){var hn=De[Ft];if(St&&hn.fixed!=="right")St=!1;else if(!St&&hn.fixed==="right"){warning(!1,"Index ".concat(Ft+1," of `columns` missing `fixed='right'` prop."));break}}}function Ti(De){return De.map(function(Ie){var tt=Ie.fixed,gt=(0,vn.Z)(Ie,yr),St=tt;return tt==="left"?St="right":tt==="right"&&(St="left"),(0,Ge.Z)({fixed:St},gt)})}function ji(De,Ie){var tt=De.prefixCls,gt=De.columns,St=De.children,Ft=De.expandable,hn=De.expandedKeys,On=De.columnTitle,Dn=De.getRowKey,ar=De.onTriggerExpand,Mr=De.expandIcon,cn=De.rowExpandable,jr=De.expandIconColumnIndex,Xr=De.direction,qr=De.expandRowByClick,Qr=De.columnWidth,Sr=De.fixed,hi=De.scrollWidth,di=de.useMemo(function(){return gt||Ir(St)},[gt,St]),$i=de.useMemo(function(){if(Ft){var oa,Ji=di.slice();if(!Ji.includes(le)){var Li=jr||0;Li>=0&&Ji.splice(Li,0,le)}var da=Ji.indexOf(le);Ji=Ji.filter(function(Ua,Ho){return Ua!==le||Ho===da});var ja=di[da],Bo;(Sr==="left"||Sr)&&!jr?Bo="left":(Sr==="right"||Sr)&&jr===di.length?Bo="right":Bo=ja?ja.fixed:null;var lo=(oa={},(0,Ae.Z)(oa,Gi,{className:"".concat(tt,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Ae.Z)(oa,"title",On),(0,Ae.Z)(oa,"fixed",Bo),(0,Ae.Z)(oa,"className","".concat(tt,"-row-expand-icon-cell")),(0,Ae.Z)(oa,"width",Qr),(0,Ae.Z)(oa,"render",function(Ho,Zo,vs){var $o=Dn(Zo,vs),Fs=hn.has($o),_s=cn?cn(Zo):!0,Lo=Mr({prefixCls:tt,expanded:Fs,expandable:_s,record:Zo,onExpand:ar});return qr?de.createElement("span",{onClick:function(ps){return ps.stopPropagation()}},Lo):Lo}),oa);return Ji.map(function(Ua){return Ua===le?lo:Ua})}return di.filter(function(Ua){return Ua!==le})},[Ft,di,Dn,hn,Mr,Xr]),va=de.useMemo(function(){var oa=$i;return Ie&&(oa=Ie(oa)),oa.length||(oa=[{render:function(){return null}}]),oa},[Ie,$i,Xr]),ca=de.useMemo(function(){return Xr==="rtl"?Ti(si(va)):si(va)},[va,Xr,hi]),ma=Gt(ca,hi),$a=(0,Ne.Z)(ma,2),ko=$a[0],ea=$a[1];return[va,ko,ea]}var Oi=ji;function aa(De){var Ie,tt=De.prefixCls,gt=De.record,St=De.onExpand,Ft=De.expanded,hn=De.expandable,On="".concat(tt,"-row-expand-icon");if(!hn)return de.createElement("span",{className:dt()(On,"".concat(tt,"-row-spaced"))});var Dn=function(Mr){St(gt,Mr),Mr.stopPropagation()};return de.createElement("span",{className:dt()(On,(Ie={},(0,Ae.Z)(Ie,"".concat(tt,"-row-expanded"),Ft),(0,Ae.Z)(Ie,"".concat(tt,"-row-collapsed"),!Ft),Ie)),onClick:Dn})}function Da(De,Ie,tt){var gt=[];function St(Ft){(Ft||[]).forEach(function(hn,On){gt.push(Ie(hn,On)),St(hn[tt])})}return St(De),gt}function wi(De,Ie,tt){var gt=_i(De),St=gt.expandIcon,Ft=gt.expandedRowKeys,hn=gt.defaultExpandedRowKeys,On=gt.defaultExpandAllRows,Dn=gt.expandedRowRender,ar=gt.onExpand,Mr=gt.onExpandedRowsChange,cn=gt.childrenColumnName,jr=St||aa,Xr=cn||"children",qr=de.useMemo(function(){return Dn?"row":De.expandable&&De.internalHooks===Me&&De.expandable.__PARENT_RENDER_ICON__||Ie.some(function(ca){return ca&&(0,at.Z)(ca)==="object"&&ca[Xr]})?"nest":!1},[!!Dn,Ie]),Qr=de.useState(function(){return hn||(On?Da(Ie,tt,Xr):[])}),Sr=(0,Ne.Z)(Qr,2),hi=Sr[0],di=Sr[1],$i=de.useMemo(function(){return new Set(Ft||hi||[])},[Ft,hi]),va=de.useCallback(function(ca){var ma=tt(ca,Ie.indexOf(ca)),$a,ko=$i.has(ma);ko?($i.delete(ma),$a=(0,ra.Z)($i)):$a=[].concat((0,ra.Z)($i),[ma]),di($a),ar&&ar(!ko,ca),Mr&&Mr($a)},[tt,$i,Ie,ar,Mr]);return[gt,qr,$i,jr,Xr,va]}function fn(De,Ie,tt,gt){var St=De.map(function(Ft,hn){return en(hn,hn,De,Ie,tt,gt==null?void 0:gt[hn])});return $t(function(){return St},[St],function(Ft,hn){return!qt(Ft,hn)})}function Rn(De){var Ie=(0,de.useRef)(De),tt=(0,de.useState)({}),gt=(0,Ne.Z)(tt,2),St=gt[1],Ft=(0,de.useRef)(null),hn=(0,de.useRef)([]);function On(Dn){hn.current.push(Dn);var ar=Promise.resolve();Ft.current=ar,ar.then(function(){if(Ft.current===ar){var Mr=hn.current,cn=Ie.current;hn.current=[],Mr.forEach(function(jr){Ie.current=jr(Ie.current)}),Ft.current=null,cn!==Ie.current&&St({})}})}return(0,de.useEffect)(function(){return function(){Ft.current=null}},[]),[Ie.current,On]}function rr(De){var Ie=(0,de.useRef)(De||null),tt=(0,de.useRef)();function gt(){window.clearTimeout(tt.current)}function St(hn){Ie.current=hn,gt(),tt.current=window.setTimeout(function(){Ie.current=null,tt.current=void 0},100)}function Ft(){return Ie.current}return(0,de.useEffect)(function(){return gt},[]),[St,Ft]}function me(){var De=de.useState(-1),Ie=(0,Ne.Z)(De,2),tt=Ie[0],gt=Ie[1],St=de.useState(-1),Ft=(0,Ne.Z)(St,2),hn=Ft[0],On=Ft[1],Dn=de.useCallback(function(ar,Mr){gt(ar),On(Mr)},[]);return[tt,hn,Dn]}var $e=er()?window:null;function Ve(De,Ie){var tt=(0,at.Z)(De)==="object"?De:{},gt=tt.offsetHeader,St=gt===void 0?0:gt,Ft=tt.offsetSummary,hn=Ft===void 0?0:Ft,On=tt.offsetScroll,Dn=On===void 0?0:On,ar=tt.getContainer,Mr=ar===void 0?function(){return $e}:ar,cn=Mr()||$e;return de.useMemo(function(){var jr=!!De;return{isSticky:jr,stickyClassName:jr?"".concat(Ie,"-sticky-holder"):"",offsetHeader:St,offsetSummary:hn,offsetScroll:Dn,container:cn}},[Dn,St,hn,Ie,cn])}function et(De,Ie,tt){var gt=(0,de.useMemo)(function(){for(var St=[],Ft=[],hn=0,On=0,Dn=0;Dn<Ie;Dn+=1)if(tt==="rtl"){Ft[Dn]=On,On+=De[Dn]||0;var ar=Ie-Dn-1;St[ar]=hn,hn+=De[ar]||0}else{St[Dn]=hn,hn+=De[Dn]||0;var Mr=Ie-Dn-1;Ft[Mr]=On,On+=De[Mr]||0}return{left:St,right:Ft}},[De,Ie,tt]);return gt}var Je=et;function ut(De){var Ie=De.className,tt=De.children;return de.createElement("div",{className:Ie},tt)}var mt=ut;function Wt(De,Ie,tt,gt){var St=we.unstable_batchedUpdates?function(hn){we.unstable_batchedUpdates(tt,hn)}:tt;return De!=null&&De.addEventListener&&De.addEventListener(Ie,St,gt),{remove:function(){De!=null&&De.removeEventListener&&De.removeEventListener(Ie,St,gt)}}}var sn=/margin|padding|width|height|max|min|offset/,Wn={left:!0,top:!0},lr={cssFloat:1,styleFloat:1,float:1};function Qn(De){return De.nodeType===1?De.ownerDocument.defaultView.getComputedStyle(De,null):{}}function Tn(De,Ie,tt){if(Ie=Ie.toLowerCase(),tt==="auto"){if(Ie==="height")return De.offsetHeight;if(Ie==="width")return De.offsetWidth}return Ie in Wn||(Wn[Ie]=sn.test(Ie)),Wn[Ie]?parseFloat(tt)||0:tt}function kn(De,Ie){var tt=arguments.length,gt=Qn(De);return Ie=lr[Ie]?"cssFloat"in De.style?"cssFloat":"styleFloat":Ie,tt===1?gt:Tn(De,Ie,gt[Ie]||De.style[Ie])}function mn(De,Ie,tt){var gt=arguments.length;if(Ie=lr[Ie]?"cssFloat"in De.style?"cssFloat":"styleFloat":Ie,gt===3)return typeof tt=="number"&&sn.test(Ie)&&(tt="".concat(tt,"px")),De.style[Ie]=tt,tt;for(var St in Ie)Ie.hasOwnProperty(St)&&mn(De,St,Ie[St]);return Qn(De)}function Jn(De){return De===document.body?document.documentElement.clientWidth:De.offsetWidth}function Dr(De){return De===document.body?window.innerHeight||document.documentElement.clientHeight:De.offsetHeight}function cr(){var De=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),Ie=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:De,height:Ie}}function xr(){var De=document.documentElement.clientWidth,Ie=window.innerHeight||document.documentElement.clientHeight;return{width:De,height:Ie}}function Er(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Nr(De){var Ie=De.getBoundingClientRect(),tt=document.documentElement;return{left:Ie.left+(window.pageXOffset||tt.scrollLeft)-(tt.clientLeft||document.body.clientLeft||0),top:Ie.top+(window.pageYOffset||tt.scrollTop)-(tt.clientTop||document.body.clientTop||0)}}var $r=function(Ie,tt){var gt,St,Ft=Ie.scrollBodyRef,hn=Ie.onScroll,On=Ie.offsetScroll,Dn=Ie.container,ar=Le(ce,"prefixCls"),Mr=((gt=Ft.current)===null||gt===void 0?void 0:gt.scrollWidth)||0,cn=((St=Ft.current)===null||St===void 0?void 0:St.clientWidth)||0,jr=Mr&&cn*(cn/Mr),Xr=de.useRef(),qr=Rn({scrollLeft:0,isHiddenScrollBar:!1}),Qr=(0,Ne.Z)(qr,2),Sr=Qr[0],hi=Qr[1],di=de.useRef({delta:0,x:0}),$i=de.useState(!1),va=(0,Ne.Z)($i,2),ca=va[0],ma=va[1],$a=function(){ma(!1)},ko=function(da){da.persist(),di.current.delta=da.pageX-Sr.scrollLeft,di.current.x=0,ma(!0),da.preventDefault()},ea=function(da){var ja,Bo=da||((ja=window)===null||ja===void 0?void 0:ja.event),lo=Bo.buttons;if(!ca||lo===0){ca&&ma(!1);return}var Ua=di.current.x+da.pageX-di.current.x-di.current.delta;Ua<=0&&(Ua=0),Ua+jr>=cn&&(Ua=cn-jr),hn({scrollLeft:Ua/cn*(Mr+2)}),di.current.x=da.pageX},oa=function(){if(Ft.current){var da=Nr(Ft.current).top,ja=da+Ft.current.offsetHeight,Bo=Dn===window?document.documentElement.scrollTop+window.innerHeight:Nr(Dn).top+Dn.clientHeight;ja-ft()<=Bo||da>=Bo-On?hi(function(lo){return(0,Ge.Z)((0,Ge.Z)({},lo),{},{isHiddenScrollBar:!0})}):hi(function(lo){return(0,Ge.Z)((0,Ge.Z)({},lo),{},{isHiddenScrollBar:!1})})}},Ji=function(da){hi(function(ja){return(0,Ge.Z)((0,Ge.Z)({},ja),{},{scrollLeft:da/Mr*cn||0})})};return de.useImperativeHandle(tt,function(){return{setScrollLeft:Ji}}),de.useEffect(function(){var Li=Wt(document.body,"mouseup",$a,!1),da=Wt(document.body,"mousemove",ea,!1);return oa(),function(){Li.remove(),da.remove()}},[jr,ca]),de.useEffect(function(){var Li=Wt(Dn,"scroll",oa,!1),da=Wt(window,"resize",oa,!1);return function(){Li.remove(),da.remove()}},[Dn]),de.useEffect(function(){Sr.isHiddenScrollBar||hi(function(Li){var da=Ft.current;return da?(0,Ge.Z)((0,Ge.Z)({},Li),{},{scrollLeft:da.scrollLeft/da.scrollWidth*da.clientWidth}):Li})},[Sr.isHiddenScrollBar]),Mr<=cn||!jr||Sr.isHiddenScrollBar?null:de.createElement("div",{style:{height:ft(),width:cn,bottom:On},className:"".concat(ar,"-sticky-scroll")},de.createElement("div",{onMouseDown:ko,ref:Xr,className:dt()("".concat(ar,"-sticky-scroll-bar"),(0,Ae.Z)({},"".concat(ar,"-sticky-scroll-bar-active"),ca)),style:{width:"".concat(jr,"px"),transform:"translate3d(".concat(Sr.scrollLeft,"px, 0, 0)")}}))},Qe=de.forwardRef($r);function rt(De){return null}var Zt=rt;function It(De){return null}var gn=It,Un="rc-table",Yn=[],Ar={};function gr(){return"No Data"}function tr(De){var Ie,tt=(0,Ge.Z)({rowKey:"key",prefixCls:Un,emptyText:gr},De),gt=tt.prefixCls,St=tt.className,Ft=tt.rowClassName,hn=tt.style,On=tt.data,Dn=tt.rowKey,ar=tt.scroll,Mr=tt.tableLayout,cn=tt.direction,jr=tt.title,Xr=tt.footer,qr=tt.summary,Qr=tt.caption,Sr=tt.id,hi=tt.showHeader,di=tt.components,$i=tt.emptyText,va=tt.onRow,ca=tt.onHeaderRow,ma=tt.internalHooks,$a=tt.transformColumns,ko=tt.internalRefs,ea=tt.tailor,oa=tt.sticky,Ji=On||Yn,Li=!!Ji.length,da=ma===Me,ja=de.useCallback(function(Ts,rl){return an(di,Ts)||rl},[di]),Bo=de.useMemo(function(){return typeof Dn=="function"?Dn:function(Ts){var rl=Ts&&Ts[Dn];return rl}},[Dn]),lo=ja(["body"]),Ua=me(),Ho=(0,Ne.Z)(Ua,3),Zo=Ho[0],vs=Ho[1],$o=Ho[2],Fs=wi(tt,Ji,Bo),_s=(0,Ne.Z)(Fs,6),Lo=_s[0],gl=_s[1],ps=_s[2],Ps=_s[3],ws=_s[4],vo=_s[5],Ki=ar==null?void 0:ar.x,Ia=de.useState(0),Ga=(0,Ne.Z)(Ia,2),na=Ga[0],ds=Ga[1],Zi=Oi((0,Ge.Z)((0,Ge.Z)((0,Ge.Z)({},tt),Lo),{},{expandable:!!Lo.expandedRowRender,columnTitle:Lo.columnTitle,expandedKeys:ps,getRowKey:Bo,onTriggerExpand:vo,expandIcon:Ps,expandIconColumnIndex:Lo.expandIconColumnIndex,direction:cn,scrollWidth:da&&ea&&typeof Ki=="number"?Ki:null}),da?$a:null),yo=(0,Ne.Z)(Zi,3),fs=yo[0],ts=yo[1],$l=yo[2],wl=$l!=null?$l:Ki,eu=de.useMemo(function(){return{columns:fs,flattenColumns:ts}},[fs,ts]),oi=de.useRef(),ku=de.useRef(),ul=de.useRef(),Vl=de.useRef(),su=de.useRef(),hs=de.useState(!1),ys=(0,Ne.Z)(hs,2),zs=ys[0],Io=ys[1],Ll=de.useState(!1),Yo=(0,Ne.Z)(Ll,2),Cl=Yo[0],Pl=Yo[1],Tl=Rn(new Map),lu=(0,Ne.Z)(Tl,2),cl=lu[0],uu=lu[1],dl=Xn(ts),Il=dl.map(function(Ts){return cl.get(Ts)}),Nl=de.useMemo(function(){return Il},[Il.join("_")]),fl=Je(Nl,ts.length,cn),ol=ar&&ze(ar.y),qs=ar&&ze(wl)||!!Lo.fixed,$u=qs&&ts.some(function(Ts){var rl=Ts.fixed;return rl}),sc=de.useRef(),Vs=Ve(oa,gt),jl=Vs.isSticky,Nc=Vs.offsetHeader,Yu=Vs.offsetSummary,Fo=Vs.offsetScroll,Fa=Vs.stickyClassName,Ml=Vs.container,Ds=de.useMemo(function(){return qr==null?void 0:qr(Ji)},[qr,Ji]),Ol=(ol||jl)&&de.isValidElement(Ds)&&Ds.type===jt&&Ds.props.fixed,Wr,pu,Xu;ol&&(pu={overflowY:"scroll",maxHeight:ar.y}),qs&&(Wr={overflowX:"auto"},ol||(pu={overflowY:"hidden"}),Xu={width:wl===!0?"auto":wl,minWidth:"100%"});var Mc=de.useCallback(function(Ts,rl){or(oi.current)&&uu(function(Iu){if(Iu.get(Ts)!==rl){var pc=new Map(Iu);return pc.set(Ts,rl),pc}return Iu})},[]),Yc=rr(null),Qu=(0,Ne.Z)(Yc,2),kc=Qu[0],Xc=Qu[1];function kl(Ts,rl){rl&&(typeof rl=="function"?rl(Ts):rl.scrollLeft!==Ts&&(rl.scrollLeft=Ts,rl.scrollLeft!==Ts&&setTimeout(function(){rl.scrollLeft=Ts},0)))}var bu=At(function(Ts){var rl=Ts.currentTarget,Iu=Ts.scrollLeft,pc=cn==="rtl",Is=typeof Iu=="number"?Iu:rl.scrollLeft,yd=rl||Ar;if(!Xc()||Xc()===yd){var bd;kc(yd),kl(Is,ku.current),kl(Is,ul.current),kl(Is,su.current),kl(Is,(bd=sc.current)===null||bd===void 0?void 0:bd.setScrollLeft)}var bc=rl||ku.current;if(bc){var xd=bc.scrollWidth,Rc=bc.clientWidth;if(xd===Rc){Io(!1),Pl(!1);return}pc?(Io(-Is<xd-Rc),Pl(-Is>0)):(Io(Is>0),Pl(Is<xd-Rc))}}),Dc=function(){qs&&ul.current?bu({currentTarget:ul.current}):(Io(!1),Pl(!1))},Oc=function(rl){var Iu=rl.width;Iu!==na&&(Dc(),ds(oi.current?oi.current.offsetWidth:Iu))},Cs=de.useRef(!1);de.useEffect(function(){Cs.current&&Dc()},[qs,On,fs.length]),de.useEffect(function(){Cs.current=!0},[]);var Za=de.useState(0),xo=(0,Ne.Z)(Za,2),ms=xo[0],js=xo[1],Rl=de.useState(!0),Gl=(0,Ne.Z)(Rl,2),Ju=Gl[0],qu=Gl[1];de.useEffect(function(){(!ea||!da)&&(ul.current instanceof Element?js(xn(ul.current).width):js(xn(Vl.current).width)),qu(zt("position","sticky"))},[]),de.useEffect(function(){da&&ko&&(ko.body.current=ul.current)});var Ku=de.useCallback(function(Ts){return de.createElement(de.Fragment,null,de.createElement(wo,Ts),Ol==="top"&&de.createElement(ir,Ts,Ds))},[Ol,Ds]),lc=de.useCallback(function(Ts){return de.createElement(ir,Ts,Ds)},[Ds]),xu=ja(["table"],"table"),od=de.useMemo(function(){return Mr||($u?wl==="max-content"?"auto":"fixed":ol||jl||ts.some(function(Ts){var rl=Ts.ellipsis;return rl})?"fixed":"auto")},[ol,$u,ts,Mr,jl]),vd,sd={colWidths:Nl,columCount:ts.length,stickyOffsets:fl,onHeaderRow:ca,fixHeader:ol,scroll:ar},No=de.useMemo(function(){return Li?null:typeof $i=="function"?$i():$i},[Li,$i]),Rd=de.createElement(ti,{data:Ji,measureColumnWidth:ol||qs||jl}),ld=de.createElement(Aa,{colWidths:ts.map(function(Ts){var rl=Ts.width;return rl}),columns:ts}),ec=Qr!=null?de.createElement("caption",{className:"".concat(gt,"-caption")},Qr):void 0,ic=Vr(tt,{data:!0}),hc=Vr(tt,{aria:!0});if(ol||jl){var Qc;typeof lo=="function"?(Qc=lo(Ji,{scrollbarSize:ms,ref:ul,onScroll:bu}),sd.colWidths=ts.map(function(Ts,rl){var Iu=Ts.width,pc=rl===ts.length-1?Iu-ms:Iu;return typeof pc=="number"&&!Number.isNaN(pc)?pc:0})):Qc=de.createElement("div",{style:(0,Ge.Z)((0,Ge.Z)({},Wr),pu),onScroll:bu,ref:ul,className:dt()("".concat(gt,"-body"))},de.createElement(xu,(0,nt.Z)({style:(0,Ge.Z)((0,Ge.Z)({},Xu),{},{tableLayout:od})},hc),ec,ld,Rd,!Ol&&Ds&&de.createElement(ir,{stickyOffsets:fl,flattenColumns:ts,columns:fs},Ds)));var ud=(0,Ge.Z)((0,Ge.Z)((0,Ge.Z)({noData:!Ji.length,maxContentScroll:qs&&wl==="max-content"},sd),eu),{},{direction:cn,stickyClassName:Fa,onScroll:bu});vd=de.createElement(de.Fragment,null,hi!==!1&&de.createElement(oo,(0,nt.Z)({},ud,{stickyTopOffset:Nc,className:"".concat(gt,"-header"),ref:ku}),Ku),Qc,Ol&&Ol!=="top"&&de.createElement(oo,(0,nt.Z)({},ud,{stickyBottomOffset:Yu,className:"".concat(gt,"-summary"),ref:su}),lc),jl&&de.createElement(Qe,{ref:sc,offsetScroll:Fo,scrollBodyRef:ul,onScroll:bu,container:Ml}))}else vd=de.createElement("div",{style:(0,Ge.Z)((0,Ge.Z)({},Wr),pu),className:dt()("".concat(gt,"-content")),onScroll:bu,ref:ul},de.createElement(xu,(0,nt.Z)({style:(0,Ge.Z)((0,Ge.Z)({},Xu),{},{tableLayout:od})},hc),ec,ld,hi!==!1&&de.createElement(wo,(0,nt.Z)({},sd,eu)),Rd,Ds&&de.createElement(ir,{stickyOffsets:fl,flattenColumns:ts,columns:fs},Ds)));var Jc=de.createElement("div",(0,nt.Z)({className:dt()(gt,St,(Ie={},(0,Ae.Z)(Ie,"".concat(gt,"-rtl"),cn==="rtl"),(0,Ae.Z)(Ie,"".concat(gt,"-ping-left"),zs),(0,Ae.Z)(Ie,"".concat(gt,"-ping-right"),Cl),(0,Ae.Z)(Ie,"".concat(gt,"-layout-fixed"),Mr==="fixed"),(0,Ae.Z)(Ie,"".concat(gt,"-fixed-header"),ol),(0,Ae.Z)(Ie,"".concat(gt,"-fixed-column"),$u),(0,Ae.Z)(Ie,"".concat(gt,"-scroll-horizontal"),qs),(0,Ae.Z)(Ie,"".concat(gt,"-has-fix-left"),ts[0]&&ts[0].fixed),(0,Ae.Z)(Ie,"".concat(gt,"-has-fix-right"),ts[ts.length-1]&&ts[ts.length-1].fixed==="right"),Ie)),style:hn,id:Sr,ref:oi},ic),jr&&de.createElement(mt,{className:"".concat(gt,"-title")},jr(Ji)),de.createElement("div",{ref:Vl,className:"".concat(gt,"-container")},vd),Xr&&de.createElement(mt,{className:"".concat(gt,"-footer")},Xr(Ji)));qs&&(Jc=de.createElement(Lr.Z,{onResize:Oc},Jc));var Ac=fn(ts,fl,cn,fs),Bd=de.useMemo(function(){return{scrollX:wl,prefixCls:gt,getComponent:ja,scrollbarSize:ms,direction:cn,fixedInfoList:Ac,isSticky:jl,supportSticky:Ju,componentWidth:na,fixHeader:ol,fixColumn:$u,horizonScroll:qs,tableLayout:od,rowClassName:Ft,expandedRowClassName:Lo.expandedRowClassName,expandIcon:Ps,expandableType:gl,expandRowByClick:Lo.expandRowByClick,expandedRowRender:Lo.expandedRowRender,onTriggerExpand:vo,expandIconColumnIndex:Lo.expandIconColumnIndex,indentSize:Lo.indentSize,allColumnsFixedLeft:ts.every(function(Ts){return Ts.fixed==="left"}),emptyNode:No,columns:fs,flattenColumns:ts,onColumnResize:Mc,hoverStartRow:Zo,hoverEndRow:vs,onHover:$o,rowExpandable:Lo.rowExpandable,onRow:va,getRowKey:Bo,expandedKeys:ps,childrenColumnName:ws}},[wl,gt,ja,ms,cn,Ac,jl,Ju,na,ol,$u,qs,od,Ft,Lo.expandedRowClassName,Ps,gl,Lo.expandRowByClick,Lo.expandedRowRender,vo,Lo.expandIconColumnIndex,Lo.indentSize,No,fs,ts,Mc,Zo,vs,$o,Lo.rowExpandable,va,Bo,ps,ws]);return de.createElement(ce.Provider,{value:Bd},Jc)}function Or(De){return Pt(tr,De)}var Kr=Or();Kr.EXPAND_COLUMN=le,Kr.INTERNAL_HOOKS=Me,Kr.Column=Zt,Kr.ColumnGroup=gn,Kr.Summary=Ct;var ci=Kr,Hr=te(73299),yi=pe(null),Ii=pe(null);function Si(De,Ie,tt){var gt=Ie||1;return tt[De+gt]-(tt[De]||0)}function Ni(De){var Ie=De.rowInfo,tt=De.column,gt=De.colIndex,St=De.indent,Ft=De.index,hn=De.renderIndex,On=De.record,Dn=De.style,ar=De.className,Mr=De.inverse,cn=De.getHeight,jr=tt.render,Xr=tt.dataIndex,qr=tt.className,Qr=tt.width,Sr=Le(Ii,["columnsOffset"]),hi=Sr.columnsOffset,di=sr(Ie,tt,gt,St,Ft),$i=di.key,va=di.fixedInfo,ca=di.appendCellNode,ma=di.additionalCellProps,$a=ma.style,ko=ma.colSpan,ea=ko===void 0?1:ko,oa=ma.rowSpan,Ji=oa===void 0?1:oa,Li=gt-1,da=Si(Li,ea,hi),ja=ea>1?Qr-da:0,Bo=(0,Ge.Z)((0,Ge.Z)((0,Ge.Z)({},$a),Dn),{},{flex:"0 0 ".concat(da,"px"),width:"".concat(da,"px"),marginRight:ja,pointerEvents:"auto"}),lo=de.useMemo(function(){return Mr?Ji<=1:ea===0||Ji===0||Ji>1},[Ji,ea,Mr]);lo?Bo.visibility="hidden":Mr&&(Bo.height=cn==null?void 0:cn(Ji));var Ua=lo?function(){return null}:jr,Ho={};return(Ji===0||ea===0)&&(Ho.rowSpan=1,Ho.colSpan=1),de.createElement(st,(0,nt.Z)({className:dt()(qr,ar),ellipsis:tt.ellipsis,align:tt.align,scope:tt.rowScope,component:"div",prefixCls:Ie.prefixCls,key:$i,record:On,index:Ft,renderIndex:hn,dataIndex:Xr,render:Ua,shouldCellUpdate:tt.shouldCellUpdate},va,{appendNode:ca,additionalProps:(0,Ge.Z)((0,Ge.Z)({},ma),{},{style:Bo},Ho)}))}var gi=Ni,Di=["data","index","className","rowKey","style","extra","getHeight"],Ri=de.forwardRef(function(De,Ie){var tt=De.data,gt=De.index,St=De.className,Ft=De.rowKey,hn=De.style,On=De.extra,Dn=De.getHeight,ar=(0,vn.Z)(De,Di),Mr=tt.record,cn=tt.indent,jr=tt.index,Xr=Le(ce,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),qr=Xr.scrollX,Qr=Xr.flattenColumns,Sr=Xr.prefixCls,hi=Xr.fixColumn,di=Xr.componentWidth,$i=nn(Mr,Ft,gt,cn),va=$i.rowSupportExpand,ca=$i.expanded,ma=$i.rowProps,$a=$i.expandedRowRender,ko=$i.expandedRowClassName,ea;if(va&&ca){var oa=$a(Mr,gt,cn+1,ca),Ji=ko==null?void 0:ko(Mr,gt,cn),Li={};hi&&(Li={style:(0,Ae.Z)({},"--virtual-width","".concat(di,"px"))});var da="".concat(Sr,"-expanded-row-cell");ea=de.createElement("div",{className:dt()("".concat(Sr,"-expanded-row"),"".concat(Sr,"-expanded-row-level-").concat(cn+1),Ji)},de.createElement(st,{component:"div",prefixCls:Sr,className:dt()(da,(0,Ae.Z)({},"".concat(da,"-fixed"),hi)),additionalProps:Li},oa))}var ja=(0,Ge.Z)((0,Ge.Z)({},hn),{},{width:qr});On&&(ja.position="absolute",ja.pointerEvents="none");var Bo=de.createElement("div",(0,nt.Z)({},ma,ar,{ref:va?null:Ie,className:dt()(St,"".concat(Sr,"-row"),ma==null?void 0:ma.className,(0,Ae.Z)({},"".concat(Sr,"-row-extra"),On)),style:(0,Ge.Z)((0,Ge.Z)({},ja),ma==null?void 0:ma.style)}),Qr.map(function(lo,Ua){return de.createElement(gi,{key:Ua,rowInfo:$i,column:lo,colIndex:Ua,indent:cn,index:gt,renderIndex:jr,record:Mr,inverse:On,getHeight:Dn})}));return va?de.createElement("div",{ref:Ie},Bo,ea):Bo}),sa=ot(Ri),bi=sa,ba=de.forwardRef(function(De,Ie){var tt=De.data,gt=De.onScroll,St=Le(ce,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Ft=St.flattenColumns,hn=St.onColumnResize,On=St.getRowKey,Dn=St.expandedKeys,ar=St.prefixCls,Mr=St.childrenColumnName,cn=St.emptyNode,jr=St.scrollX,Xr=Le(yi),qr=Xr.scrollY,Qr=Xr.listItemHeight,Sr=de.useRef(),hi=ei(tt,Mr,Dn,On),di=de.useMemo(function(){var ea=0;return Ft.map(function(oa){var Ji=oa.width,Li=oa.key;return ea+=Ji,[Li,Ji,ea]})},[Ft]),$i=de.useMemo(function(){return di.map(function(ea){return ea[2]})},[di]);de.useEffect(function(){di.forEach(function(ea){var oa=(0,Ne.Z)(ea,2),Ji=oa[0],Li=oa[1];hn(Ji,Li)})},[di]),de.useImperativeHandle(Ie,function(){var ea={};return Object.defineProperty(ea,"scrollLeft",{get:function(){var Ji;return((Ji=Sr.current)===null||Ji===void 0?void 0:Ji.getScrollInfo().x)||0},set:function(Ji){var Li;(Li=Sr.current)===null||Li===void 0||Li.scrollTo({left:Ji})}}),ea});var va=function(oa,Ji){var Li,da=(Li=hi[Ji])===null||Li===void 0?void 0:Li.record,ja=oa.onCell;if(ja){var Bo,lo=ja(da,Ji);return(Bo=lo==null?void 0:lo.rowSpan)!==null&&Bo!==void 0?Bo:1}return 1},ca=function(oa){var Ji=oa.start,Li=oa.end,da=oa.getSize,ja=oa.offsetY;if(Li<0)return null;for(var Bo=Ft.filter(function(Ki){return va(Ki,Ji)===0}),lo=Ji,Ua=function(Ia){if(Bo=Bo.filter(function(Ga){return va(Ga,Ia)===0}),!Bo.length)return lo=Ia,"break"},Ho=Ji;Ho>=0;Ho-=1){var Zo=Ua(Ho);if(Zo==="break")break}for(var vs=Ft.filter(function(Ki){return va(Ki,Li)!==1}),$o=Li,Fs=function(Ia){if(vs=vs.filter(function(Ga){return va(Ga,Ia)!==1}),!vs.length)return $o=Math.max(Ia-1,Li),"break"},_s=Li;_s<hi.length;_s+=1){var Lo=Fs(_s);if(Lo==="break")break}for(var gl=[],ps=function(Ia){var Ga=hi[Ia];if(!Ga)return"continue";Ft.some(function(na){return va(na,Ia)>1})&&gl.push(Ia)},Ps=lo;Ps<=$o;Ps+=1)var ws=ps(Ps);var vo=gl.map(function(Ki){var Ia=hi[Ki],Ga=On(Ia.record,Ki),na=function(yo){var fs=Ki+yo-1,ts=On(hi[fs].record,fs),$l=da(Ga,ts);return $l.bottom-$l.top},ds=da(Ga);return de.createElement(bi,{key:Ki,data:Ia,rowKey:Ga,index:Ki,style:{top:-ja+ds.top},extra:!0,getHeight:na})});return vo},ma=de.useMemo(function(){return{columnsOffset:$i}},[$i]),$a="".concat(ar,"-tbody"),ko;return hi.length?ko=de.createElement(Hr.Z,{fullHeight:!1,ref:Sr,className:dt()($a,"".concat($a,"-virtual")),height:qr,itemHeight:Qr||24,data:hi,itemKey:function(oa){return On(oa.record)},scrollWidth:jr,onVirtualScroll:function(oa){var Ji=oa.x;gt({scrollLeft:Ji})},extraRender:ca},function(ea,oa,Ji){var Li=On(ea.record,oa);return de.createElement(bi,(0,nt.Z)({data:ea,rowKey:Li,index:oa},Ji))}):ko=de.createElement("div",{className:dt()("".concat(ar,"-placeholder"))},de.createElement(st,{component:"div",prefixCls:ar},cn)),de.createElement(Ii.Provider,{value:ma},ko)}),Ca=ot(ba),Co=Ca,Qa=function(Ie,tt){var gt=tt.ref,St=tt.onScroll;return de.createElement(Co,{ref:gt,data:Ie,onScroll:St})},za=100;function la(De){var Ie=De.columns,tt=De.scroll,gt=De.prefixCls,St=gt===void 0?Un:gt,Ft=De.className,hn=De.listItemHeight,On=tt||{},Dn=On.x,ar=On.y;typeof Dn!="number"&&(Dn=((Ie||[]).length+1)*za),typeof ar!="number"&&(ar=500);var Mr=de.useMemo(function(){return{scrollY:ar,listItemHeight:hn}},[ar,hn]);return de.createElement(yi.Provider,{value:Mr},de.createElement(ci,(0,nt.Z)({},De,{className:dt()(Ft,"".concat(St,"-virtual")),scroll:(0,Ge.Z)((0,Ge.Z)({},tt),{},{x:Dn}),components:{body:Qa},columns:Ie,internalHooks:Me,tailor:!0})))}function ga(De){return Pt(la,De)}var Xi=ga(),Ba=null;function Qi(De){return null}var Bi=Qi;function Ea(De){return null}var Va=Ea,Jo=te(10366),zo=te(58375),Oo=te(53124),Po=te(88258),co=te(98675),xa=te(25378),us=te(24457),Ka=te(28452),ua=te(57953),Ja=te(29691);function Wo(De){return function(tt){let{prefixCls:gt,onExpand:St,record:Ft,expanded:hn,expandable:On}=tt;const Dn=`${gt}-row-expand-icon`;return de.createElement("button",{type:"button",onClick:ar=>{St(Ft,ar),ar.stopPropagation()},className:dt()(Dn,{[`${Dn}-spaced`]:!On,[`${Dn}-expanded`]:On&&hn,[`${Dn}-collapsed`]:On&&!hn}),"aria-label":hn?De.collapse:De.expand,"aria-expanded":hn})}}var fo=Wo;function bo(De,Ie){return"key"in De&&De.key!==void 0&&De.key!==null?De.key:De.dataIndex?Array.isArray(De.dataIndex)?De.dataIndex.join("."):De.dataIndex:Ie}function Ma(De,Ie){return Ie?`${Ie}-${De}`:`${De}`}function Uo(De,Ie){return typeof De=="function"?De(Ie):De}function os(De,Ie){const tt=Uo(De,Ie);return Object.prototype.toString.call(tt)==="[object Object]"?"":tt}var Xo={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"},ss=Xo,cs=te(84089),Os=function(Ie,tt){return de.createElement(cs.Z,(0,nt.Z)({},Ie,{ref:tt,icon:ss}))},qo=de.forwardRef(Os),es=te(7699),Zs=te(57838);function Ws(De){const Ie=de.useRef(De),tt=(0,Zs.Z)();return[()=>Ie.current,gt=>{Ie.current=gt,tt()}]}var el=te(71577),bs=te(84567),ns=te(85418),Wa=te(32983),ro=te(68508),Vo=te(76529),rs=te(78045),Rs=te(79870),tl=te(72395),il=te(69677);function pl(De){let{value:Ie,onChange:tt,filterSearch:gt,tablePrefixCls:St,locale:Ft}=De;return gt?de.createElement("div",{className:`${St}-filter-dropdown-search`},de.createElement(il.default,{prefix:de.createElement(tl.Z,null),placeholder:Ft.filterSearchPlaceholder,onChange:tt,value:Ie,htmlSize:1,className:`${St}-filter-dropdown-search-input`})):null}var Al=pl,nl=te(92389);const Fl=De=>{const{keyCode:Ie}=De;Ie===nl.Z.ENTER&&De.stopPropagation()};var Ce=de.forwardRef((De,Ie)=>de.createElement("div",{className:De.className,onClick:tt=>tt.stopPropagation(),onKeyDown:Fl,ref:Ie},De.children));function Oe(De){let Ie=[];return(De||[]).forEach(tt=>{let{value:gt,children:St}=tt;Ie.push(gt),St&&(Ie=[].concat((0,ra.Z)(Ie),(0,ra.Z)(Oe(St))))}),Ie}function _e(De){return De.some(Ie=>{let{children:tt}=Ie;return tt})}function Dt(De,Ie){return typeof Ie=="string"||typeof Ie=="number"?Ie==null?void 0:Ie.toString().toLowerCase().includes(De.trim().toLowerCase()):!1}function Lt(De){let{filters:Ie,prefixCls:tt,filteredKeys:gt,filterMultiple:St,searchValue:Ft,filterSearch:hn}=De;return Ie.map((On,Dn)=>{const ar=String(On.value);if(On.children)return{key:ar||Dn,label:On.text,popupClassName:`${tt}-dropdown-submenu`,children:Lt({filters:On.children,prefixCls:tt,filteredKeys:gt,filterMultiple:St,searchValue:Ft,filterSearch:hn})};const Mr=St?bs.default:rs.ZP,cn={key:On.value!==void 0?ar:Dn,label:de.createElement(de.Fragment,null,de.createElement(Mr,{checked:gt.includes(ar)}),de.createElement("span",null,On.text))};return Ft.trim()?typeof hn=="function"?hn(Ft,On)?cn:null:Dt(Ft,On.text)?cn:null:cn})}function Ln(De){var Ie,tt;const{tablePrefixCls:gt,prefixCls:St,column:Ft,dropdownPrefixCls:hn,columnKey:On,filterMultiple:Dn,filterMode:ar="menu",filterSearch:Mr=!1,filterState:cn,triggerFilter:jr,locale:Xr,children:qr,getPopupContainer:Qr}=De,{filterDropdownOpen:Sr,onFilterDropdownOpenChange:hi,filterResetToDefaultFilteredValue:di,defaultFilteredValue:$i,filterDropdownVisible:va,onFilterDropdownVisibleChange:ca}=Ft,[ma,$a]=de.useState(!1),ko=!!(cn&&(!((Ie=cn.filteredKeys)===null||Ie===void 0)&&Ie.length||cn.forceFiltered)),ea=Zi=>{$a(Zi),hi==null||hi(Zi),ca==null||ca(Zi)},oa=(tt=Sr!=null?Sr:va)!==null&&tt!==void 0?tt:ma,Ji=cn==null?void 0:cn.filteredKeys,[Li,da]=Ws(Ji||[]),ja=Zi=>{let{selectedKeys:yo}=Zi;da(yo)},Bo=(Zi,yo)=>{let{node:fs,checked:ts}=yo;ja(Dn?{selectedKeys:Zi}:{selectedKeys:ts&&fs.key?[fs.key]:[]})};de.useEffect(()=>{ma&&ja({selectedKeys:Ji||[]})},[Ji]);const[lo,Ua]=de.useState([]),Ho=Zi=>{Ua(Zi)},[Zo,vs]=de.useState(""),$o=Zi=>{const{value:yo}=Zi.target;vs(yo)};de.useEffect(()=>{ma||vs("")},[ma]);const Fs=Zi=>{const yo=Zi&&Zi.length?Zi:null;if(yo===null&&(!cn||!cn.filteredKeys)||(0,es.Z)(yo,cn==null?void 0:cn.filteredKeys,!0))return null;jr({column:Ft,key:On,filteredKeys:yo})},_s=()=>{ea(!1),Fs(Li())},Lo=function(){let{confirm:Zi,closeDropdown:yo}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Zi&&Fs([]),yo&&ea(!1),vs(""),da(di?($i||[]).map(fs=>String(fs)):[])},gl=function(){let{closeDropdown:Zi}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Zi&&ea(!1),Fs(Li())},ps=Zi=>{Zi&&Ji!==void 0&&da(Ji||[]),ea(Zi),!Zi&&!Ft.filterDropdown&&_s()},Ps=dt()({[`${hn}-menu-without-submenu`]:!_e(Ft.filters||[])}),ws=Zi=>{if(Zi.target.checked){const yo=Oe(Ft==null?void 0:Ft.filters).map(fs=>String(fs));da(yo)}else da([])},vo=Zi=>{let{filters:yo}=Zi;return(yo||[]).map((fs,ts)=>{const $l=String(fs.value),wl={title:fs.text,key:fs.value!==void 0?$l:ts};return fs.children&&(wl.children=vo({filters:fs.children})),wl})},Ki=Zi=>{var yo;return Object.assign(Object.assign({},Zi),{text:Zi.title,value:Zi.key,children:((yo=Zi.children)===null||yo===void 0?void 0:yo.map(fs=>Ki(fs)))||[]})};let Ia;if(typeof Ft.filterDropdown=="function")Ia=Ft.filterDropdown({prefixCls:`${hn}-custom`,setSelectedKeys:Zi=>ja({selectedKeys:Zi}),selectedKeys:Li(),confirm:gl,clearFilters:Lo,filters:Ft.filters,visible:oa,close:()=>{ea(!1)}});else if(Ft.filterDropdown)Ia=Ft.filterDropdown;else{const Zi=Li()||[],yo=()=>(Ft.filters||[]).length===0?de.createElement(Wa.Z,{image:Wa.Z.PRESENTED_IMAGE_SIMPLE,description:Xr.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):ar==="tree"?de.createElement(de.Fragment,null,de.createElement(Al,{filterSearch:Mr,value:Zo,onChange:$o,tablePrefixCls:gt,locale:Xr}),de.createElement("div",{className:`${gt}-filter-dropdown-tree`},Dn?de.createElement(bs.default,{checked:Zi.length===Oe(Ft.filters).length,indeterminate:Zi.length>0&&Zi.length<Oe(Ft.filters).length,className:`${gt}-filter-dropdown-checkall`,onChange:ws},Xr.filterCheckall):null,de.createElement(Rs.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Dn,checkStrictly:!Dn,className:`${hn}-menu`,onCheck:Bo,checkedKeys:Zi,selectedKeys:Zi,showIcon:!1,treeData:vo({filters:Ft.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Zo.trim()?ts=>typeof Mr=="function"?Mr(Zo,Ki(ts)):Dt(Zo,ts.title):void 0}))):de.createElement(de.Fragment,null,de.createElement(Al,{filterSearch:Mr,value:Zo,onChange:$o,tablePrefixCls:gt,locale:Xr}),de.createElement(ro.default,{selectable:!0,multiple:Dn,prefixCls:`${hn}-menu`,className:Ps,onSelect:ja,onDeselect:ja,selectedKeys:Zi,getPopupContainer:Qr,openKeys:lo,onOpenChange:Ho,items:Lt({filters:Ft.filters||[],filterSearch:Mr,prefixCls:St,filteredKeys:Li(),filterMultiple:Dn,searchValue:Zo})})),fs=()=>di?(0,es.Z)(($i||[]).map(ts=>String(ts)),Zi,!0):Zi.length===0;Ia=de.createElement(de.Fragment,null,yo(),de.createElement("div",{className:`${St}-dropdown-btns`},de.createElement(el.ZP,{type:"link",size:"small",disabled:fs(),onClick:()=>Lo()},Xr.filterReset),de.createElement(el.ZP,{type:"primary",size:"small",onClick:_s},Xr.filterConfirm)))}Ft.filterDropdown&&(Ia=de.createElement(Vo.J,{selectable:void 0},Ia));const Ga=()=>de.createElement(Ce,{className:`${St}-dropdown`},Ia);let na;typeof Ft.filterIcon=="function"?na=Ft.filterIcon(ko):Ft.filterIcon?na=Ft.filterIcon:na=de.createElement(qo,null);const{direction:ds}=de.useContext(Oo.E_);return de.createElement("div",{className:`${St}-column`},de.createElement("span",{className:`${gt}-column-title`},qr),de.createElement(ns.Z,{dropdownRender:Ga,trigger:["click"],open:oa,onOpenChange:ps,getPopupContainer:Qr,placement:ds==="rtl"?"bottomLeft":"bottomRight"},de.createElement("span",{role:"button",tabIndex:-1,className:dt()(`${St}-trigger`,{active:ko}),onClick:Zi=>{Zi.stopPropagation()}},na)))}var yn=Ln;function vr(De,Ie,tt){let gt=[];return(De||[]).forEach((St,Ft)=>{var hn;const On=Ma(Ft,tt);if(St.filters||"filterDropdown"in St||"onFilter"in St)if("filteredValue"in St){let Dn=St.filteredValue;"filterDropdown"in St||(Dn=(hn=Dn==null?void 0:Dn.map(String))!==null&&hn!==void 0?hn:Dn),gt.push({column:St,key:bo(St,On),filteredKeys:Dn,forceFiltered:St.filtered})}else gt.push({column:St,key:bo(St,On),filteredKeys:Ie&&St.defaultFilteredValue?St.defaultFilteredValue:void 0,forceFiltered:St.filtered});"children"in St&&(gt=[].concat((0,ra.Z)(gt),(0,ra.Z)(vr(St.children,Ie,On))))}),gt}function _n(De,Ie,tt,gt,St,Ft,hn,On){return tt.map((Dn,ar)=>{const Mr=Ma(ar,On),{filterMultiple:cn=!0,filterMode:jr,filterSearch:Xr}=Dn;let qr=Dn;if(qr.filters||qr.filterDropdown){const Qr=bo(qr,Mr),Sr=gt.find(hi=>{let{key:di}=hi;return Qr===di});qr=Object.assign(Object.assign({},qr),{title:hi=>de.createElement(yn,{tablePrefixCls:De,prefixCls:`${De}-filter`,dropdownPrefixCls:Ie,column:qr,columnKey:Qr,filterState:Sr,filterMultiple:cn,filterMode:jr,filterSearch:Xr,triggerFilter:Ft,locale:St,getPopupContainer:hn},Uo(Dn.title,hi))})}return"children"in qr&&(qr=Object.assign(Object.assign({},qr),{children:_n(De,Ie,qr.children,gt,St,Ft,hn,Mr)})),qr})}function Mn(De){const Ie={};return De.forEach(tt=>{let{key:gt,filteredKeys:St,column:Ft}=tt;const{filters:hn,filterDropdown:On}=Ft;if(On)Ie[gt]=St||null;else if(Array.isArray(St)){const Dn=Oe(hn);Ie[gt]=Dn.filter(ar=>St.includes(String(ar)))}else Ie[gt]=null}),Ie}function kr(De,Ie){return Ie.reduce((tt,gt)=>{const{column:{onFilter:St,filters:Ft},filteredKeys:hn}=gt;return St&&hn&&hn.length?tt.filter(On=>hn.some(Dn=>{const ar=Oe(Ft),Mr=ar.findIndex(jr=>String(jr)===String(Dn)),cn=Mr!==-1?ar[Mr]:Dn;return St(cn,On)})):tt},De)}const Zn=De=>De.flatMap(Ie=>"children"in Ie?[Ie].concat((0,ra.Z)(Zn(Ie.children||[]))):[Ie]);function nr(De){let{prefixCls:Ie,dropdownPrefixCls:tt,mergedColumns:gt,onFilterChange:St,getPopupContainer:Ft,locale:hn}=De;const On=de.useMemo(()=>Zn(gt||[]),[gt]),[Dn,ar]=de.useState(()=>vr(On,!0)),Mr=de.useMemo(()=>{const qr=vr(On,!1);if(qr.length===0)return qr;let Qr=!0,Sr=!0;if(qr.forEach(hi=>{let{filteredKeys:di}=hi;di!==void 0?Qr=!1:Sr=!1}),Qr){const hi=(On||[]).map((di,$i)=>bo(di,Ma($i)));return Dn.filter(di=>{let{key:$i}=di;return hi.includes($i)}).map(di=>{const $i=On[hi.findIndex(va=>va===di.key)];return Object.assign(Object.assign({},di),{column:Object.assign(Object.assign({},di.column),$i),forceFiltered:$i.filtered})})}return qr},[On,Dn]),cn=de.useMemo(()=>Mn(Mr),[Mr]),jr=qr=>{const Qr=Mr.filter(Sr=>{let{key:hi}=Sr;return hi!==qr.key});Qr.push(qr),ar(Qr),St(Mn(Qr),Qr)};return[qr=>_n(Ie,tt,qr,Mr,hn,jr,Ft),Mr,cn]}var Zr=nr;function Ur(De,Ie,tt){const gt=de.useRef({});function St(Ft){if(!gt.current||gt.current.data!==De||gt.current.childrenColumnName!==Ie||gt.current.getRowKey!==tt){let On=function(Dn){Dn.forEach((ar,Mr)=>{const cn=tt(ar,Mr);hn.set(cn,ar),ar&&typeof ar=="object"&&Ie in ar&&On(ar[Ie]||[])})};const hn=new Map;On(De),gt.current={data:De,childrenColumnName:Ie,kvMap:hn,getRowKey:tt}}return gt.current.kvMap.get(Ft)}return[St]}var hr=te(38780),Fr=function(De,Ie){var tt={};for(var gt in De)Object.prototype.hasOwnProperty.call(De,gt)&&Ie.indexOf(gt)<0&&(tt[gt]=De[gt]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,gt=Object.getOwnPropertySymbols(De);St<gt.length;St++)Ie.indexOf(gt[St])<0&&Object.prototype.propertyIsEnumerable.call(De,gt[St])&&(tt[gt[St]]=De[gt[St]]);return tt};const ni=10;function li(De,Ie){const tt={current:De.current,pageSize:De.pageSize};return Object.keys(Ie&&typeof Ie=="object"?Ie:{}).forEach(St=>{const Ft=De[St];typeof Ft!="function"&&(tt[St]=Ft)}),tt}function xi(De,Ie,tt){const gt=tt&&typeof tt=="object"?tt:{},{total:St=0}=gt,Ft=Fr(gt,["total"]),[hn,On]=(0,de.useState)(()=>({current:"defaultCurrent"in Ft?Ft.defaultCurrent:1,pageSize:"defaultPageSize"in Ft?Ft.defaultPageSize:ni})),Dn=(0,hr.Z)(hn,Ft,{total:St>0?St:De}),ar=Math.ceil((St||De)/Dn.pageSize);Dn.current>ar&&(Dn.current=ar||1);const Mr=(jr,Xr)=>{On({current:jr!=null?jr:1,pageSize:Xr||Dn.pageSize})},cn=(jr,Xr)=>{var qr;tt&&((qr=tt.onChange)===null||qr===void 0||qr.call(tt,jr,Xr)),Mr(jr,Xr),Ie(jr,Xr||(Dn==null?void 0:Dn.pageSize))};return tt===!1?[{},()=>{}]:[Object.assign(Object.assign({},Dn),{onChange:cn}),Mr]}var Fi=xi,ta=te(42922),Hi=te(29873),Ci=te(97153),qa=te(83898),Ha=te(5663);const so={},Ro="SELECT_ALL",io="SELECT_INVERT",Ta="SELECT_NONE",Eo=[],ho=(De,Ie)=>{let tt=[];return(Ie||[]).forEach(gt=>{tt.push(gt),gt&&typeof gt=="object"&&De in gt&&(tt=[].concat((0,ra.Z)(tt),(0,ra.Z)(ho(De,gt[De]))))}),tt};var go=(De,Ie)=>{const{preserveSelectedRowKeys:tt,selectedRowKeys:gt,defaultSelectedRowKeys:St,getCheckboxProps:Ft,onChange:hn,onSelect:On,onSelectAll:Dn,onSelectInvert:ar,onSelectNone:Mr,onSelectMultiple:cn,columnWidth:jr,type:Xr,selections:qr,fixed:Qr,renderCell:Sr,hideSelectAll:hi,checkStrictly:di=!0}=Ie||{},{prefixCls:$i,data:va,pageData:ca,getRecordByKey:ma,getRowKey:$a,expandType:ko,childrenColumnName:ea,locale:oa,getPopupContainer:Ji}=De,[Li,da]=(0,Ha.Z)(gt||St||Eo,{value:gt}),ja=de.useRef(new Map),Bo=(0,de.useCallback)(Ki=>{if(tt){const Ia=new Map;Ki.forEach(Ga=>{let na=ma(Ga);!na&&ja.current.has(Ga)&&(na=ja.current.get(Ga)),Ia.set(Ga,na)}),ja.current=Ia}},[ma,tt]);de.useEffect(()=>{Bo(Li)},[Li]);const{keyEntities:lo}=(0,de.useMemo)(()=>{if(di)return{keyEntities:null};let Ki=va;if(tt){const Ia=new Set(va.map((na,ds)=>$a(na,ds))),Ga=Array.from(ja.current).reduce((na,ds)=>{let[Zi,yo]=ds;return Ia.has(Zi)?na:na.concat(yo)},[]);Ki=[].concat((0,ra.Z)(Ki),(0,ra.Z)(Ga))}return(0,qa.I8)(Ki,{externalGetKey:$a,childrenPropName:ea})},[va,$a,di,ea,tt]),Ua=(0,de.useMemo)(()=>ho(ea,ca),[ea,ca]),Ho=(0,de.useMemo)(()=>{const Ki=new Map;return Ua.forEach((Ia,Ga)=>{const na=$a(Ia,Ga),ds=(Ft?Ft(Ia):null)||{};Ki.set(na,ds)}),Ki},[Ua,$a,Ft]),Zo=(0,de.useCallback)(Ki=>{var Ia;return!!(!((Ia=Ho.get($a(Ki)))===null||Ia===void 0)&&Ia.disabled)},[Ho,$a]),[vs,$o]=(0,de.useMemo)(()=>{if(di)return[Li||[],[]];const{checkedKeys:Ki,halfCheckedKeys:Ia}=(0,Ci.S)(Li,!0,lo,Zo);return[Ki||[],Ia]},[Li,di,lo,Zo]),Fs=(0,de.useMemo)(()=>{const Ki=Xr==="radio"?vs.slice(0,1):vs;return new Set(Ki)},[vs,Xr]),_s=(0,de.useMemo)(()=>Xr==="radio"?new Set:new Set($o),[$o,Xr]),[Lo,gl]=(0,de.useState)(null);de.useEffect(()=>{Ie||da(Eo)},[!!Ie]);const ps=(0,de.useCallback)((Ki,Ia)=>{let Ga,na;Bo(Ki),tt?(Ga=Ki,na=Ki.map(ds=>ja.current.get(ds))):(Ga=[],na=[],Ki.forEach(ds=>{const Zi=ma(ds);Zi!==void 0&&(Ga.push(ds),na.push(Zi))})),da(Ga),hn==null||hn(Ga,na,{type:Ia})},[da,ma,hn,tt]),Ps=(0,de.useCallback)((Ki,Ia,Ga,na)=>{if(On){const ds=Ga.map(Zi=>ma(Zi));On(ma(Ki),Ia,ds,na)}ps(Ga,"single")},[On,ma,ps]),ws=(0,de.useMemo)(()=>!qr||hi?null:(qr===!0?[Ro,io,Ta]:qr).map(Ia=>Ia===Ro?{key:"all",text:oa.selectionAll,onSelect(){ps(va.map((Ga,na)=>$a(Ga,na)).filter(Ga=>{const na=Ho.get(Ga);return!(na!=null&&na.disabled)||Fs.has(Ga)}),"all")}}:Ia===io?{key:"invert",text:oa.selectInvert,onSelect(){const Ga=new Set(Fs);ca.forEach((ds,Zi)=>{const yo=$a(ds,Zi),fs=Ho.get(yo);fs!=null&&fs.disabled||(Ga.has(yo)?Ga.delete(yo):Ga.add(yo))});const na=Array.from(Ga);ar&&ar(na),ps(na,"invert")}}:Ia===Ta?{key:"none",text:oa.selectNone,onSelect(){Mr==null||Mr(),ps(Array.from(Fs).filter(Ga=>{const na=Ho.get(Ga);return na==null?void 0:na.disabled}),"none")}}:Ia).map(Ia=>Object.assign(Object.assign({},Ia),{onSelect:function(){for(var Ga,na,ds=arguments.length,Zi=new Array(ds),yo=0;yo<ds;yo++)Zi[yo]=arguments[yo];(na=Ia.onSelect)===null||na===void 0||(Ga=na).call.apply(Ga,[Ia].concat(Zi)),gl(null)}})),[qr,Fs,ca,$a,ar,ps]);return[(0,de.useCallback)(Ki=>{var Ia;if(!Ie)return Ki.filter(hs=>hs!==so);let Ga=(0,ra.Z)(Ki);const na=new Set(Fs),ds=Ua.map($a).filter(hs=>!Ho.get(hs).disabled),Zi=ds.every(hs=>na.has(hs)),yo=ds.some(hs=>na.has(hs)),fs=()=>{const hs=[];Zi?ds.forEach(zs=>{na.delete(zs),hs.push(zs)}):ds.forEach(zs=>{na.has(zs)||(na.add(zs),hs.push(zs))});const ys=Array.from(na);Dn==null||Dn(!Zi,ys.map(zs=>ma(zs)),hs.map(zs=>ma(zs))),ps(ys,"all"),gl(null)};let ts;if(Xr!=="radio"){let hs;if(ws){const Yo={getPopupContainer:Ji,items:ws.map((Cl,Pl)=>{const{key:Tl,text:lu,onSelect:cl}=Cl;return{key:Tl!=null?Tl:Pl,onClick:()=>{cl==null||cl(ds)},label:lu}})};hs=de.createElement("div",{className:`${$i}-selection-extra`},de.createElement(ns.Z,{menu:Yo,getPopupContainer:Ji},de.createElement("span",null,de.createElement(ta.Z,null))))}const ys=Ua.map((Yo,Cl)=>{const Pl=$a(Yo,Cl),Tl=Ho.get(Pl)||{};return Object.assign({checked:na.has(Pl)},Tl)}).filter(Yo=>{let{disabled:Cl}=Yo;return Cl}),zs=!!ys.length&&ys.length===Ua.length,Io=zs&&ys.every(Yo=>{let{checked:Cl}=Yo;return Cl}),Ll=zs&&ys.some(Yo=>{let{checked:Cl}=Yo;return Cl});ts=!hi&&de.createElement("div",{className:`${$i}-selection`},de.createElement(bs.default,{checked:zs?Io:!!Ua.length&&Zi,indeterminate:zs?!Io&&Ll:!Zi&&yo,onChange:fs,disabled:Ua.length===0||zs,"aria-label":hs?"Custom selection":"Select all",skipGroup:!0}),hs)}let $l;Xr==="radio"?$l=(hs,ys,zs)=>{const Io=$a(ys,zs),Ll=na.has(Io);return{node:de.createElement(rs.ZP,Object.assign({},Ho.get(Io),{checked:Ll,onClick:Yo=>Yo.stopPropagation(),onChange:Yo=>{na.has(Io)||Ps(Io,!0,[Io],Yo.nativeEvent)}})),checked:Ll}}:$l=(hs,ys,zs)=>{var Io;const Ll=$a(ys,zs),Yo=na.has(Ll),Cl=_s.has(Ll),Pl=Ho.get(Ll);let Tl;return ko==="nest"?Tl=Cl:Tl=(Io=Pl==null?void 0:Pl.indeterminate)!==null&&Io!==void 0?Io:Cl,{node:de.createElement(bs.default,Object.assign({},Pl,{indeterminate:Tl,checked:Yo,skipGroup:!0,onClick:lu=>lu.stopPropagation(),onChange:lu=>{let{nativeEvent:cl}=lu;const{shiftKey:uu}=cl;let dl=-1,Il=-1;if(uu&&di){const Nl=new Set([Lo,Ll]);ds.some((fl,ol)=>{if(Nl.has(fl))if(dl===-1)dl=ol;else return Il=ol,!0;return!1})}if(Il!==-1&&dl!==Il&&di){const Nl=ds.slice(dl,Il+1),fl=[];Yo?Nl.forEach(qs=>{na.has(qs)&&(fl.push(qs),na.delete(qs))}):Nl.forEach(qs=>{na.has(qs)||(fl.push(qs),na.add(qs))});const ol=Array.from(na);cn==null||cn(!Yo,ol.map(qs=>ma(qs)),fl.map(qs=>ma(qs))),ps(ol,"multiple")}else{const Nl=vs;if(di){const fl=Yo?(0,Hi._5)(Nl,Ll):(0,Hi.L0)(Nl,Ll);Ps(Ll,!Yo,fl,cl)}else{const fl=(0,Ci.S)([].concat((0,ra.Z)(Nl),[Ll]),!0,lo,Zo),{checkedKeys:ol,halfCheckedKeys:qs}=fl;let $u=ol;if(Yo){const sc=new Set(ol);sc.delete(Ll),$u=(0,Ci.S)(Array.from(sc),{checked:!1,halfCheckedKeys:qs},lo,Zo).checkedKeys}Ps(Ll,!Yo,$u,cl)}}gl(Yo?null:Ll)}})),checked:Yo}};const wl=(hs,ys,zs)=>{const{node:Io,checked:Ll}=$l(hs,ys,zs);return Sr?Sr(Ll,ys,zs,Io):Io};if(!Ga.includes(so))if(Ga.findIndex(hs=>{var ys;return((ys=hs[Gi])===null||ys===void 0?void 0:ys.columnType)==="EXPAND_COLUMN"})===0){const[hs,...ys]=Ga;Ga=[hs,so].concat((0,ra.Z)(ys))}else Ga=[so].concat((0,ra.Z)(Ga));const eu=Ga.indexOf(so);Ga=Ga.filter((hs,ys)=>hs!==so||ys===eu);const oi=Ga[eu-1],ku=Ga[eu+1];let ul=Qr;ul===void 0&&((ku==null?void 0:ku.fixed)!==void 0?ul=ku.fixed:(oi==null?void 0:oi.fixed)!==void 0&&(ul=oi.fixed)),ul&&oi&&((Ia=oi[Gi])===null||Ia===void 0?void 0:Ia.columnType)==="EXPAND_COLUMN"&&oi.fixed===void 0&&(oi.fixed=ul);const Vl=dt()(`${$i}-selection-col`,{[`${$i}-selection-col-with-dropdown`]:qr&&Xr==="checkbox"}),su={fixed:ul,width:jr,className:`${$i}-selection-column`,title:Ie.columnTitle||ts,render:wl,onCell:Ie.onCell,[Gi]:{className:Vl}};return Ga.map(hs=>hs===so?su:hs)},[$a,Ua,Ie,vs,Fs,_s,jr,ws,ko,Lo,Ho,cn,Ps,Zo]),Fs]},Mo=te(33463),is=te(28575),ls=te(83062);const Ms="ascend",al="descend";function Xs(De){return typeof De.sorter=="object"&&typeof De.sorter.multiple=="number"?De.sorter.multiple:!1}function Qs(De){return typeof De=="function"?De:De&&typeof De=="object"&&De.compare?De.compare:!1}function As(De,Ie){return Ie?De[De.indexOf(Ie)+1]:De[0]}function ml(De,Ie,tt){let gt=[];function St(Ft,hn){gt.push({column:Ft,key:bo(Ft,hn),multiplePriority:Xs(Ft),sortOrder:Ft.sortOrder})}return(De||[]).forEach((Ft,hn)=>{const On=Ma(hn,tt);Ft.children?("sortOrder"in Ft&&St(Ft,On),gt=[].concat((0,ra.Z)(gt),(0,ra.Z)(ml(Ft.children,Ie,On)))):Ft.sorter&&("sortOrder"in Ft?St(Ft,On):Ie&&Ft.defaultSortOrder&&gt.push({column:Ft,key:bo(Ft,On),multiplePriority:Xs(Ft),sortOrder:Ft.defaultSortOrder}))}),gt}function Bs(De,Ie,tt,gt,St,Ft,hn,On){return(Ie||[]).map((Dn,ar)=>{const Mr=Ma(ar,On);let cn=Dn;if(cn.sorter){const jr=cn.sortDirections||St,Xr=cn.showSorterTooltip===void 0?hn:cn.showSorterTooltip,qr=bo(cn,Mr),Qr=tt.find(ko=>{let{key:ea}=ko;return ea===qr}),Sr=Qr?Qr.sortOrder:null,hi=As(jr,Sr);let di;if(Dn.sortIcon)di=Dn.sortIcon({sortOrder:Sr});else{const ko=jr.includes(Ms)&&de.createElement(is.Z,{className:dt()(`${De}-column-sorter-up`,{active:Sr===Ms})}),ea=jr.includes(al)&&de.createElement(Mo.Z,{className:dt()(`${De}-column-sorter-down`,{active:Sr===al})});di=de.createElement("span",{className:dt()(`${De}-column-sorter`,{[`${De}-column-sorter-full`]:!!(ko&&ea)})},de.createElement("span",{className:`${De}-column-sorter-inner`,"aria-hidden":"true"},ko,ea))}const{cancelSort:$i,triggerAsc:va,triggerDesc:ca}=Ft||{};let ma=$i;hi===al?ma=ca:hi===Ms&&(ma=va);const $a=typeof Xr=="object"?Xr:{title:ma};cn=Object.assign(Object.assign({},cn),{className:dt()(cn.className,{[`${De}-column-sort`]:Sr}),title:ko=>{const ea=de.createElement("div",{className:`${De}-column-sorters`},de.createElement("span",{className:`${De}-column-title`},Uo(Dn.title,ko)),di);return Xr?de.createElement(ls.Z,Object.assign({},$a),ea):ea},onHeaderCell:ko=>{const ea=Dn.onHeaderCell&&Dn.onHeaderCell(ko)||{},oa=ea.onClick,Ji=ea.onKeyDown;ea.onClick=ja=>{gt({column:Dn,key:qr,sortOrder:hi,multiplePriority:Xs(Dn)}),oa==null||oa(ja)},ea.onKeyDown=ja=>{ja.keyCode===nl.Z.ENTER&&(gt({column:Dn,key:qr,sortOrder:hi,multiplePriority:Xs(Dn)}),Ji==null||Ji(ja))};const Li=os(Dn.title,{}),da=Li==null?void 0:Li.toString();return Sr?ea["aria-sort"]=Sr==="ascend"?"ascending":"descending":ea["aria-label"]=da||"",ea.className=dt()(ea.className,`${De}-column-has-sorters`),ea.tabIndex=0,Dn.ellipsis&&(ea.title=(Li!=null?Li:"").toString()),ea}})}return"children"in cn&&(cn=Object.assign(Object.assign({},cn),{children:Bs(De,cn.children,tt,gt,St,Ft,hn,Mr)})),cn})}function ao(De){const{column:Ie,sortOrder:tt}=De;return{column:Ie,order:tt,field:Ie.dataIndex,columnKey:Ie.key}}function eo(De){const Ie=De.filter(tt=>{let{sortOrder:gt}=tt;return gt}).map(ao);return Ie.length===0&&De.length?Object.assign(Object.assign({},ao(De[De.length-1])),{column:void 0}):Ie.length<=1?Ie[0]||{}:Ie}function xs(De,Ie,tt){const gt=Ie.slice().sort((hn,On)=>On.multiplePriority-hn.multiplePriority),St=De.slice(),Ft=gt.filter(hn=>{let{column:{sorter:On},sortOrder:Dn}=hn;return Qs(On)&&Dn});return Ft.length?St.sort((hn,On)=>{for(let Dn=0;Dn<Ft.length;Dn+=1){const ar=Ft[Dn],{column:{sorter:Mr},sortOrder:cn}=ar,jr=Qs(Mr);if(jr&&cn){const Xr=jr(hn,On,cn);if(Xr!==0)return cn===Ms?Xr:-Xr}}return 0}).map(hn=>{const On=hn[tt];return On?Object.assign(Object.assign({},hn),{[tt]:xs(On,Ie,tt)}):hn}):St}function ks(De){let{prefixCls:Ie,mergedColumns:tt,onSorterChange:gt,sortDirections:St,tableLocale:Ft,showSorterTooltip:hn}=De;const[On,Dn]=de.useState(ml(tt,!0)),ar=de.useMemo(()=>{let qr=!0;const Qr=ml(tt,!1);if(!Qr.length)return On;const Sr=[];function hi($i){qr?Sr.push($i):Sr.push(Object.assign(Object.assign({},$i),{sortOrder:null}))}let di=null;return Qr.forEach($i=>{di===null?(hi($i),$i.sortOrder&&($i.multiplePriority===!1?qr=!1:di=!0)):(di&&$i.multiplePriority!==!1||(qr=!1),hi($i))}),Sr},[tt,On]),Mr=de.useMemo(()=>{const qr=ar.map(Qr=>{let{column:Sr,sortOrder:hi}=Qr;return{column:Sr,order:hi}});return{sortColumns:qr,sortColumn:qr[0]&&qr[0].column,sortOrder:qr[0]&&qr[0].order}},[ar]);function cn(qr){let Qr;qr.multiplePriority===!1||!ar.length||ar[0].multiplePriority===!1?Qr=[qr]:Qr=[].concat((0,ra.Z)(ar.filter(Sr=>{let{key:hi}=Sr;return hi!==qr.key})),[qr]),Dn(Qr),gt(eo(Qr),Qr)}return[qr=>Bs(Ie,qr,ar,cn,St,Ft,hn),ar,Mr,()=>eo(ar)]}function po(De,Ie){return De.map(tt=>{const gt=Object.assign({},tt);return gt.title=Uo(tt.title,Ie),"children"in gt&&(gt.children=po(gt.children,Ie)),gt})}function jo(De){return[de.useCallback(tt=>po(tt,De),[De])]}var Sa=Or((De,Ie)=>{const{_renderTimes:tt}=De,{_renderTimes:gt}=Ie;return tt!==gt}),Ko=ga((De,Ie)=>{const{_renderTimes:tt}=De,{_renderTimes:gt}=Ie;return tt!==gt}),as=te(84780),Ks=te(14747),Hs=te(67968),Us=te(45503),Ru=De=>{const{componentCls:Ie}=De,tt=`${De.lineWidth}px ${De.lineType} ${De.tableBorderColor}`,gt=(St,Ft,hn)=>({[`&${Ie}-${St}`]:{[`> ${Ie}-container`]:{[`> ${Ie}-content, > ${Ie}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Ie}-expanded-row-fixed`]:{margin:`-${Ft}px -${hn+De.lineWidth}px`}}}}}});return{[`${Ie}-wrapper`]:{[`${Ie}${Ie}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Ie}-title`]:{border:tt,borderBottom:0},[`> ${Ie}-container`]:{borderInlineStart:tt,borderTop:tt,[`
> ${Ie}-content,
> ${Ie}-header,
> ${Ie}-body,
> ${Ie}-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:tt},"> thead":{"> tr:not(:last-child) > th":{borderBottom:tt},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${Ie}-cell-fix-right-first::after`]:{borderInlineEnd:tt}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Ie}-expanded-row-fixed`]:{margin:`-${De.tablePaddingVertical}px -${De.tablePaddingHorizontal+De.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:De.lineWidth,bottom:0,borderInlineEnd:tt,content:'""'}}}}}},[`&${Ie}-scroll-horizontal`]:{[`> ${Ie}-container > ${Ie}-body`]:{"> table > tbody":{[`
> tr${Ie}-expanded-row,
> tr${Ie}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},gt("middle",De.tablePaddingVerticalMiddle,De.tablePaddingHorizontalMiddle)),gt("small",De.tablePaddingVerticalSmall,De.tablePaddingHorizontalSmall)),{[`> ${Ie}-footer`]:{border:tt,borderTop:0}}),[`${Ie}-cell`]:{[`${Ie}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${De.lineWidth}px 0 ${De.lineWidth}px ${De.tableHeaderBg}`}},[`${Ie}-bordered ${Ie}-cell-scrollbar`]:{borderInlineEnd:tt}}}},Jl=De=>{const{componentCls:Ie}=De;return{[`${Ie}-wrapper`]:{[`${Ie}-cell-ellipsis`]:Object.assign(Object.assign({},Ks.vS),{wordBreak:"keep-all",[`
&${Ie}-cell-fix-left-last,
&${Ie}-cell-fix-right-first
`]:{overflow:"visible",[`${Ie}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Ie}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},dc=De=>{const{componentCls:Ie}=De;return{[`${Ie}-wrapper`]:{[`${Ie}-tbody > tr${Ie}-placeholder`]:{textAlign:"center",color:De.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:De.colorBgContainer}}}}},Vu=te(49867),Cu=De=>{const{componentCls:Ie,antCls:tt,controlInteractiveSize:gt,motionDurationSlow:St,lineWidth:Ft,paddingXS:hn,lineType:On,tableBorderColor:Dn,tableExpandIconBg:ar,tableExpandColumnWidth:Mr,borderRadius:cn,fontSize:jr,fontSizeSM:Xr,lineHeight:qr,tablePaddingVertical:Qr,tablePaddingHorizontal:Sr,tableExpandedRowBg:hi,paddingXXS:di}=De,$i=gt/2-Ft,va=$i*2+Ft*3,ca=`${Ft}px ${On} ${Dn}`,ma=di-Ft;return{[`${Ie}-wrapper`]:{[`${Ie}-expand-icon-col`]:{width:Mr},[`${Ie}-row-expand-icon-cell`]:{textAlign:"center",[`${Ie}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Ie}-row-indent`]:{height:1,float:"left"},[`${Ie}-row-expand-icon`]:Object.assign(Object.assign({},(0,Vu.N)(De)),{position:"relative",float:"left",boxSizing:"border-box",width:va,height:va,padding:0,color:"inherit",lineHeight:`${va}px`,background:ar,border:ca,borderRadius:cn,transform:`scale(${gt/va})`,transition:`all ${St}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${St} ease-out`,content:'""'},"&::before":{top:$i,insetInlineEnd:ma,insetInlineStart:ma,height:Ft},"&::after":{top:ma,bottom:ma,insetInlineStart:$i,width:Ft,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"}}),[`${Ie}-row-indent + ${Ie}-row-expand-icon`]:{marginTop:(jr*qr-Ft*3)/2-Math.ceil((Xr*1.4-Ft*3)/2),marginInlineEnd:hn},[`tr${Ie}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:hi}},[`${tt}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Ie}-expanded-row-fixed`]:{position:"relative",margin:`-${Qr}px -${Sr}px`,padding:`${Qr}px ${Sr}px`}}}},ju=De=>{const{componentCls:Ie,antCls:tt,iconCls:gt,tableFilterDropdownWidth:St,tableFilterDropdownSearchWidth:Ft,paddingXXS:hn,paddingXS:On,colorText:Dn,lineWidth:ar,lineType:Mr,tableBorderColor:cn,tableHeaderIconColor:jr,fontSizeSM:Xr,tablePaddingHorizontal:qr,borderRadius:Qr,motionDurationSlow:Sr,colorTextDescription:hi,colorPrimary:di,tableHeaderFilterActiveBg:$i,colorTextDisabled:va,tableFilterDropdownBg:ca,tableFilterDropdownHeight:ma,controlItemBgHover:$a,controlItemBgActive:ko,boxShadowSecondary:ea,filterDropdownMenuBg:oa}=De,Ji=`${tt}-dropdown`,Li=`${Ie}-filter-dropdown`,da=`${tt}-tree`,ja=`${ar}px ${Mr} ${cn}`;return[{[`${Ie}-wrapper`]:{[`${Ie}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Ie}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-hn,marginInline:`${hn}px ${-qr/2}px`,padding:`0 ${hn}px`,color:jr,fontSize:Xr,borderRadius:Qr,cursor:"pointer",transition:`all ${Sr}`,"&:hover":{color:hi,background:$i},"&.active":{color:di}}}},{[`${tt}-dropdown`]:{[Li]:Object.assign(Object.assign({},(0,Ks.Wf)(De)),{minWidth:St,backgroundColor:ca,borderRadius:Qr,boxShadow:ea,overflow:"hidden",[`${Ji}-menu`]:{maxHeight:ma,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:oa,"&:empty::after":{display:"block",padding:`${On}px 0`,color:va,fontSize:Xr,textAlign:"center",content:'"Not Found"'}},[`${Li}-tree`]:{paddingBlock:`${On}px 0`,paddingInline:On,[da]:{padding:0},[`${da}-treenode ${da}-node-content-wrapper:hover`]:{backgroundColor:$a},[`${da}-treenode-checkbox-checked ${da}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:ko}}},[`${Li}-search`]:{padding:On,borderBottom:ja,"&-input":{input:{minWidth:Ft},[gt]:{color:va}}},[`${Li}-checkall`]:{width:"100%",marginBottom:hn,marginInlineStart:hn},[`${Li}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${On-ar}px ${On}px`,overflow:"hidden",borderTop:ja}})}},{[`${tt}-dropdown ${Li}, ${Li}-submenu`]:{[`${tt}-checkbox-wrapper + span`]:{paddingInlineStart:On,color:Dn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},ql=De=>{const{componentCls:Ie,lineWidth:tt,colorSplit:gt,motionDurationSlow:St,zIndexTableFixed:Ft,tableBg:hn,zIndexTableSticky:On}=De,Dn=gt;return{[`${Ie}-wrapper`]:{[`
${Ie}-cell-fix-left,
${Ie}-cell-fix-right
`]:{position:"sticky !important",zIndex:Ft,background:hn},[`
${Ie}-cell-fix-left-first::after,
${Ie}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-tt,width:30,transform:"translateX(100%)",transition:`box-shadow ${St}`,content:'""',pointerEvents:"none"},[`${Ie}-cell-fix-left-all::after`]:{display:"none"},[`
${Ie}-cell-fix-right-first::after,
${Ie}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:-tt,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${St}`,content:'""',pointerEvents:"none"},[`${Ie}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:On+1,width:30,transition:`box-shadow ${St}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Ie}-ping-left`]:{[`&:not(${Ie}-has-fix-left) ${Ie}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Dn}`}},[`
${Ie}-cell-fix-left-first::after,
${Ie}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${Dn}`},[`${Ie}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Ie}-ping-right`]:{[`&:not(${Ie}-has-fix-right) ${Ie}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Dn}`}},[`
${Ie}-cell-fix-right-first::after,
${Ie}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${Dn}`}}}}},Wl=De=>{const{componentCls:Ie,antCls:tt}=De;return{[`${Ie}-wrapper`]:{[`${Ie}-pagination${tt}-pagination`]:{margin:`${De.margin}px 0`},[`${Ie}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:De.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},fu=De=>{const{componentCls:Ie,tableRadius:tt}=De;return{[`${Ie}-wrapper`]:{[Ie]:{[`${Ie}-title, ${Ie}-header`]:{borderRadius:`${tt}px ${tt}px 0 0`},[`${Ie}-title + ${Ie}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Ie}-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:tt,borderStartEndRadius:tt,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:tt},"> *:last-child":{borderStartEndRadius:tt}}},"&-footer":{borderRadius:`0 0 ${tt}px ${tt}px`}}}}},yu=De=>{const{componentCls:Ie}=De;return{[`${Ie}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Ie}-pagination-left`]:{justifyContent:"flex-end"},[`${Ie}-pagination-right`]:{justifyContent:"flex-start"},[`${Ie}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Ie}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Ie}-row-indent`]:{float:"right"}}}}},Do=De=>{const{componentCls:Ie,antCls:tt,iconCls:gt,fontSizeIcon:St,padding:Ft,paddingXS:hn,tableHeaderIconColor:On,tableHeaderIconColorHover:Dn,tableSelectionColumnWidth:ar}=De;return{[`${Ie}-wrapper`]:{[`${Ie}-selection-col`]:{width:ar,[`&${Ie}-selection-col-with-dropdown`]:{width:ar+St+Ft/4}},[`${Ie}-bordered ${Ie}-selection-col`]:{width:ar+hn*2,[`&${Ie}-selection-col-with-dropdown`]:{width:ar+St+Ft/4+hn*2}},[`
table tr th${Ie}-selection-column,
table tr td${Ie}-selection-column
`]:{paddingInlineEnd:De.paddingXS,paddingInlineStart:De.paddingXS,textAlign:"center",[`${tt}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Ie}-selection-column${Ie}-cell-fix-left`]:{zIndex:De.zIndexTableFixed+1},[`table tr th${Ie}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Ie}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Ie}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${De.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${De.tablePaddingHorizontal/4}px`,[gt]:{color:On,fontSize:St,verticalAlign:"baseline","&:hover":{color:Dn}}}}}},Ul=De=>{const{componentCls:Ie}=De,tt=(gt,St,Ft,hn)=>({[`${Ie}${Ie}-${gt}`]:{fontSize:hn,[`
${Ie}-title,
${Ie}-footer,
${Ie}-cell,
${Ie}-thead > tr > th,
${Ie}-tbody > tr > th,
${Ie}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${St}px ${Ft}px`},[`${Ie}-filter-trigger`]:{marginInlineEnd:`-${Ft/2}px`},[`${Ie}-expanded-row-fixed`]:{margin:`-${St}px -${Ft}px`},[`${Ie}-tbody`]:{[`${Ie}-wrapper:only-child ${Ie}`]:{marginBlock:`-${St}px`,marginInline:`${De.tableExpandColumnWidth-Ft}px -${Ft}px`}},[`${Ie}-selection-column`]:{paddingInlineStart:`${Ft/4}px`}}});return{[`${Ie}-wrapper`]:Object.assign(Object.assign({},tt("middle",De.tablePaddingVerticalMiddle,De.tablePaddingHorizontalMiddle,De.tableFontSizeMiddle)),tt("small",De.tablePaddingVerticalSmall,De.tablePaddingHorizontalSmall,De.tableFontSizeSmall))}},au=De=>{const{componentCls:Ie,marginXXS:tt,fontSizeIcon:gt,tableHeaderIconColor:St,tableHeaderIconColorHover:Ft}=De;return{[`${Ie}-wrapper`]:{[`${Ie}-thead th${Ie}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${De.motionDurationSlow}`,"&:hover":{background:De.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:De.colorPrimary},[`
&${Ie}-cell-fix-left:hover,
&${Ie}-cell-fix-right:hover
`]:{background:De.tableFixedHeaderSortActiveBg}},[`${Ie}-thead th${Ie}-column-sort`]:{background:De.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Ie}-column-sort`]:{background:De.tableBodySortBg},[`${Ie}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${Ie}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Ie}-column-sorter`]:{marginInlineStart:tt,color:St,fontSize:0,transition:`color ${De.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:gt,"&.active":{color:De.colorPrimary}},[`${Ie}-column-sorter-up + ${Ie}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Ie}-column-sorters:hover ${Ie}-column-sorter`]:{color:Ft}}}},Ss=De=>{const{componentCls:Ie,opacityLoading:tt,tableScrollThumbBg:gt,tableScrollThumbBgHover:St,tableScrollThumbSize:Ft,tableScrollBg:hn,zIndexTableSticky:On,stickyScrollBarBorderRadius:Dn}=De,ar=`${De.lineWidth}px ${De.lineType} ${De.tableBorderColor}`;return{[`${Ie}-wrapper`]:{[`${Ie}-sticky`]:{"&-holder":{position:"sticky",zIndex:On,background:De.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Ft}px !important`,zIndex:On,display:"flex",alignItems:"center",background:hn,borderTop:ar,opacity:tt,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Ft,backgroundColor:gt,borderRadius:Dn,transition:`all ${De.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:St}}}}}}},hu=De=>{const{componentCls:Ie,lineWidth:tt,tableBorderColor:gt}=De,St=`${tt}px ${De.lineType} ${gt}`;return{[`${Ie}-wrapper`]:{[`${Ie}-summary`]:{position:"relative",zIndex:De.zIndexTableFixed,background:De.tableBg,"> tr":{"> th, > td":{borderBottom:St}}},[`div${Ie}-summary`]:{boxShadow:`0 -${tt}px 0 ${gt}`}}}},rc=De=>{const{componentCls:Ie}=De,tt=`${De.lineWidth}px ${De.lineType} ${De.tableBorderColor}`,gt=`${Ie}-expanded-row-cell`;return{[`${Ie}-wrapper`]:{[`${Ie}-tbody-virtual`]:{[`${Ie}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${Ie}-cell`]:{borderBottom:tt},[`${Ie}-expanded-row`]:{[`${gt}${gt}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${De.lineWidth}px)`,borderInlineEnd:"none"}}},[`${Ie}-bordered`]:{[`${Ie}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:tt,position:"absolute"},[`${Ie}-cell`]:{borderInlineEnd:tt,[`&${Ie}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-De.lineWidth,borderInlineStart:tt}}}}}}};const _u=De=>{const{componentCls:Ie,fontWeightStrong:tt,tablePaddingVertical:gt,tablePaddingHorizontal:St,lineWidth:Ft,lineType:hn,tableBorderColor:On,tableFontSize:Dn,tableBg:ar,tableRadius:Mr,tableHeaderTextColor:cn,motionDurationMid:jr,tableHeaderBg:Xr,tableHeaderCellSplitColor:qr,tableRowHoverBg:Qr,tableSelectedRowBg:Sr,tableSelectedRowHoverBg:hi,tableFooterTextColor:di,tableFooterBg:$i,paddingContentVerticalLG:va}=De,ca=`${Ft}px ${hn} ${On}`;return{[`${Ie}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Ks.dF)()),{[Ie]:Object.assign(Object.assign({},(0,Ks.Wf)(De)),{fontSize:Dn,background:ar,borderRadius:`${Mr}px ${Mr}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Mr}px ${Mr}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${Ie}-cell,
${Ie}-thead > tr > th,
${Ie}-tbody > tr > th,
${Ie}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${va}px ${St}px`,overflowWrap:"break-word"},[`${Ie}-title`]:{padding:`${gt}px ${St}px`},[`${Ie}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:cn,fontWeight:tt,textAlign:"start",background:Xr,borderBottom:ca,transition:`background ${jr} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Ie}-selection-column):not(${Ie}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:qr,transform:"translateY(-50%)",transition:`background-color ${jr}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Ie}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${jr}, border-color ${jr}`,borderBottom:ca,[`
> ${Ie}-wrapper:only-child,
> ${Ie}-expanded-row-fixed > ${Ie}-wrapper:only-child
`]:{[Ie]:{marginBlock:`-${gt}px`,marginInline:`${De.tableExpandColumnWidth-St}px -${St}px`,[`${Ie}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:cn,fontWeight:tt,textAlign:"start",background:Xr,borderBottom:ca,transition:`background ${jr} ease`},[`
&${Ie}-row:hover > th,
&${Ie}-row:hover > td,
> th${Ie}-cell-row-hover,
> td${Ie}-cell-row-hover
`]:{background:Qr},[`&${Ie}-row-selected`]:{"> th, > td":{background:Sr},"&:hover > th, &:hover > td":{background:hi}}}},[`${Ie}-footer`]:{padding:`${gt}px ${St}px`,color:di,background:$i}})}};var Eu=(0,Hs.Z)("Table",De=>{const{colorTextHeading:Ie,colorSplit:tt,colorIcon:gt,colorIconHover:St,opacityLoading:Ft,colorBgContainer:hn,controlInteractiveSize:On,headerBg:Dn,headerColor:ar,headerSortActiveBg:Mr,headerSortHoverBg:cn,bodySortBg:jr,rowHoverBg:Xr,rowSelectedBg:qr,rowSelectedHoverBg:Qr,rowExpandedBg:Sr,cellPaddingBlock:hi,cellPaddingInline:di,cellPaddingBlockMD:$i,cellPaddingInlineMD:va,cellPaddingBlockSM:ca,cellPaddingInlineSM:ma,borderColor:$a,footerBg:ko,footerColor:ea,headerBorderRadius:oa,cellFontSize:Ji,cellFontSizeMD:Li,cellFontSizeSM:da,headerSplitColor:ja,fixedHeaderSortActiveBg:Bo,headerFilterHoverBg:lo,filterDropdownBg:Ua,expandIconBg:Ho,selectionColumnWidth:Zo,stickyScrollBarBg:vs}=De,$o=new as.C(gt),Fs=new as.C(St),_s=2,Lo=(0,Us.TS)(De,{tableFontSize:Ji,tableBg:hn,tableRadius:oa,tablePaddingVertical:hi,tablePaddingHorizontal:di,tablePaddingVerticalMiddle:$i,tablePaddingHorizontalMiddle:va,tablePaddingVerticalSmall:ca,tablePaddingHorizontalSmall:ma,tableBorderColor:$a,tableHeaderTextColor:ar,tableHeaderBg:Dn,tableFooterTextColor:ea,tableFooterBg:ko,tableHeaderCellSplitColor:ja,tableHeaderSortBg:Mr,tableHeaderSortHoverBg:cn,tableHeaderIconColor:$o.clone().setAlpha($o.getAlpha()*Ft).toRgbString(),tableHeaderIconColorHover:Fs.clone().setAlpha(Fs.getAlpha()*Ft).toRgbString(),tableBodySortBg:jr,tableFixedHeaderSortActiveBg:Bo,tableHeaderFilterActiveBg:lo,tableFilterDropdownBg:Ua,tableRowHoverBg:Xr,tableSelectedRowBg:qr,tableSelectedRowHoverBg:Qr,zIndexTableFixed:_s,zIndexTableSticky:_s+1,tableFontSizeMiddle:Li,tableFontSizeSmall:da,tableSelectionColumnWidth:Zo,tableExpandIconBg:Ho,tableExpandColumnWidth:On+2*De.padding,tableExpandedRowBg:Sr,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:vs,tableScrollThumbBgHover:Ie,tableScrollBg:tt});return[_u(Lo),Wl(Lo),hu(Lo),au(Lo),ju(Lo),Ru(Lo),fu(Lo),Cu(Lo),hu(Lo),dc(Lo),Do(Lo),ql(Lo),Ss(Lo),Jl(Lo),Ul(Lo),yu(Lo),rc(Lo)]},De=>{const{colorFillAlter:Ie,colorBgContainer:tt,colorTextHeading:gt,colorFillSecondary:St,colorFillContent:Ft,controlItemBgActive:hn,controlItemBgActiveHover:On,padding:Dn,paddingSM:ar,paddingXS:Mr,colorBorderSecondary:cn,borderRadiusLG:jr,fontSize:Xr,controlHeight:qr,colorTextPlaceholder:Qr}=De,Sr=new as.C(St).onBackground(tt).toHexShortString(),hi=new as.C(Ft).onBackground(tt).toHexShortString(),di=new as.C(Ie).onBackground(tt).toHexShortString();return{headerBg:di,headerColor:gt,headerSortActiveBg:Sr,headerSortHoverBg:hi,bodySortBg:di,rowHoverBg:di,rowSelectedBg:hn,rowSelectedHoverBg:On,rowExpandedBg:Ie,cellPaddingBlock:Dn,cellPaddingInline:Dn,cellPaddingBlockMD:ar,cellPaddingInlineMD:Mr,cellPaddingBlockSM:Mr,cellPaddingInlineSM:Mr,borderColor:cn,headerBorderRadius:jr,footerBg:di,footerColor:gt,cellFontSize:Xr,cellFontSizeMD:Xr,cellFontSizeSM:Xr,headerSplitColor:cn,fixedHeaderSortActiveBg:Sr,headerFilterHoverBg:Ft,filterDropdownMenuBg:tt,filterDropdownBg:tt,expandIconBg:tt,selectionColumnWidth:qr,stickyScrollBarBg:Qr,stickyScrollBarBorderRadius:100}});const zu=[],Ao=(De,Ie)=>{const{prefixCls:tt,className:gt,rootClassName:St,style:Ft,size:hn,bordered:On,dropdownPrefixCls:Dn,dataSource:ar,pagination:Mr,rowSelection:cn,rowKey:jr="key",rowClassName:Xr,columns:qr,children:Qr,childrenColumnName:Sr,onChange:hi,getPopupContainer:di,loading:$i,expandIcon:va,expandable:ca,expandedRowRender:ma,expandIconColumnIndex:$a,indentSize:ko,scroll:ea,sortDirections:oa,locale:Ji,showSorterTooltip:Li=!0,virtual:da}=De,ja=de.useMemo(()=>qr||Ir(Qr),[qr,Qr]),Bo=de.useMemo(()=>ja.some(Fo=>Fo.responsive),[ja]),lo=(0,xa.Z)(Bo),Ua=de.useMemo(()=>{const Fo=new Set(Object.keys(lo).filter(Fa=>lo[Fa]));return ja.filter(Fa=>!Fa.responsive||Fa.responsive.some(Ml=>Fo.has(Ml)))},[ja,lo]),Ho=(0,Jo.Z)(De,["className","style","columns"]),{locale:Zo=us.Z,direction:vs,table:$o,renderEmpty:Fs,getPrefixCls:_s,getPopupContainer:Lo}=de.useContext(Oo.E_),gl=(0,co.Z)(hn),ps=Object.assign(Object.assign({},Zo.Table),Ji),Ps=ar||zu,ws=_s("table",tt),vo=_s("dropdown",Dn),Ki=Object.assign({childrenColumnName:Sr,expandIconColumnIndex:$a},ca),{childrenColumnName:Ia="children"}=Ki,Ga=de.useMemo(()=>Ps.some(Fo=>Fo==null?void 0:Fo[Ia])?"nest":ma||ca&&ca.expandedRowRender?"row":null,[Ps]),na={body:de.useRef()},ds=de.useMemo(()=>typeof jr=="function"?jr:Fo=>Fo==null?void 0:Fo[jr],[jr]),[Zi]=Ur(Ps,Ia,ds),yo={},fs=function(Fo,Fa){let Ml=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Ds,Ol,Wr;const pu=Object.assign(Object.assign({},yo),Fo);Ml&&((Ds=yo.resetPagination)===null||Ds===void 0||Ds.call(yo),!((Ol=pu.pagination)===null||Ol===void 0)&&Ol.current&&(pu.pagination.current=1),Mr&&Mr.onChange&&Mr.onChange(1,(Wr=pu.pagination)===null||Wr===void 0?void 0:Wr.pageSize)),ea&&ea.scrollToFirstRowOnChange!==!1&&na.body.current&&(0,zo.Z)(0,{getContainer:()=>na.body.current}),hi==null||hi(pu.pagination,pu.filters,pu.sorter,{currentDataSource:kr(xs(Ps,pu.sorterStates,Ia),pu.filterStates),action:Fa})},ts=(Fo,Fa)=>{fs({sorter:Fo,sorterStates:Fa},"sort",!1)},[$l,wl,eu,oi]=ks({prefixCls:ws,mergedColumns:Ua,onSorterChange:ts,sortDirections:oa||["ascend","descend"],tableLocale:ps,showSorterTooltip:Li}),ku=de.useMemo(()=>xs(Ps,wl,Ia),[Ps,wl]);yo.sorter=oi(),yo.sorterStates=wl;const ul=(Fo,Fa)=>{fs({filters:Fo,filterStates:Fa},"filter",!0)},[Vl,su,hs]=Zr({prefixCls:ws,locale:ps,dropdownPrefixCls:vo,mergedColumns:Ua,onFilterChange:ul,getPopupContainer:di||Lo}),ys=kr(ku,su);yo.filters=hs,yo.filterStates=su;const zs=de.useMemo(()=>{const Fo={};return Object.keys(hs).forEach(Fa=>{hs[Fa]!==null&&(Fo[Fa]=hs[Fa])}),Object.assign(Object.assign({},eu),{filters:Fo})},[eu,hs]),[Io]=jo(zs),Ll=(Fo,Fa)=>{fs({pagination:Object.assign(Object.assign({},yo.pagination),{current:Fo,pageSize:Fa})},"paginate")},[Yo,Cl]=Fi(ys.length,Ll,Mr);yo.pagination=Mr===!1?{}:li(Yo,Mr),yo.resetPagination=Cl;const Pl=de.useMemo(()=>{if(Mr===!1||!Yo.pageSize)return ys;const{current:Fo=1,total:Fa,pageSize:Ml=ni}=Yo;return ys.length<Fa?ys.length>Ml?ys.slice((Fo-1)*Ml,Fo*Ml):ys:ys.slice((Fo-1)*Ml,Fo*Ml)},[!!Mr,ys,Yo&&Yo.current,Yo&&Yo.pageSize,Yo&&Yo.total]),[Tl,lu]=go({prefixCls:ws,data:ys,pageData:Pl,getRowKey:ds,getRecordByKey:Zi,expandType:Ga,childrenColumnName:Ia,locale:ps,getPopupContainer:di||Lo},cn),cl=(Fo,Fa,Ml)=>{let Ds;return typeof Xr=="function"?Ds=dt()(Xr(Fo,Fa,Ml)):Ds=dt()(Xr),dt()({[`${ws}-row-selected`]:lu.has(ds(Fo,Fa))},Ds)};Ki.__PARENT_RENDER_ICON__=Ki.expandIcon,Ki.expandIcon=Ki.expandIcon||va||fo(ps),Ga==="nest"&&Ki.expandIconColumnIndex===void 0?Ki.expandIconColumnIndex=cn?1:0:Ki.expandIconColumnIndex>0&&cn&&(Ki.expandIconColumnIndex-=1),typeof Ki.indentSize!="number"&&(Ki.indentSize=typeof ko=="number"?ko:15);const uu=de.useCallback(Fo=>Io(Tl(Vl($l(Fo)))),[$l,Vl,Tl]);let dl,Il;if(Mr!==!1&&(Yo!=null&&Yo.total)){let Fo;Yo.size?Fo=Yo.size:Fo=gl==="small"||gl==="middle"?"small":void 0;const Fa=Ol=>de.createElement(Ka.Z,Object.assign({},Yo,{className:dt()(`${ws}-pagination ${ws}-pagination-${Ol}`,Yo.className),size:Fo})),Ml=vs==="rtl"?"left":"right",{position:Ds}=Yo;if(Ds!==null&&Array.isArray(Ds)){const Ol=Ds.find(Xu=>Xu.includes("top")),Wr=Ds.find(Xu=>Xu.includes("bottom")),pu=Ds.every(Xu=>`${Xu}`=="none");!Ol&&!Wr&&!pu&&(Il=Fa(Ml)),Ol&&(dl=Fa(Ol.toLowerCase().replace("top",""))),Wr&&(Il=Fa(Wr.toLowerCase().replace("bottom","")))}else Il=Fa(Ml)}let Nl;typeof $i=="boolean"?Nl={spinning:$i}:typeof $i=="object"&&(Nl=Object.assign({spinning:!0},$i));const[fl,ol]=Eu(ws),[,qs]=(0,Ja.Z)(),$u=dt()(`${ws}-wrapper`,$o==null?void 0:$o.className,{[`${ws}-wrapper-rtl`]:vs==="rtl"},gt,St,ol),sc=Object.assign(Object.assign({},$o==null?void 0:$o.style),Ft),Vs=Ji&&Ji.emptyText||(Fs==null?void 0:Fs("Table"))||de.createElement(Po.Z,{componentName:"Table"}),jl=da?Ko:Sa,Nc={},Yu=de.useMemo(()=>{const{fontSize:Fo,lineHeight:Fa,padding:Ml,paddingXS:Ds,paddingSM:Ol}=qs,Wr=Math.floor(Fo*Fa);switch(gl){case"large":return Ml*2+Wr;case"small":return Ds*2+Wr;default:return Ol*2+Wr}},[qs,gl]);return da&&(Nc.listItemHeight=Yu),fl(de.createElement("div",{ref:Ie,className:$u,style:sc},de.createElement(ua.Z,Object.assign({spinning:!1},Nl),dl,de.createElement(jl,Object.assign({},Nc,Ho,{columns:Ua,direction:vs,expandable:Ki,prefixCls:ws,className:dt()({[`${ws}-middle`]:gl==="middle",[`${ws}-small`]:gl==="small",[`${ws}-bordered`]:On,[`${ws}-empty`]:Ps.length===0}),data:Pl,rowKey:ds,rowClassName:cl,emptyText:Vs,internalHooks:Me,internalRefs:na,transformColumns:uu})),Il)))};var wa=de.forwardRef(Ao);const Go=(De,Ie)=>{const tt=de.useRef(0);return tt.current+=1,de.createElement(wa,Object.assign({},De,{ref:Ie,_renderTimes:tt.current}))},Ls=de.forwardRef(Go);Ls.SELECTION_COLUMN=so,Ls.EXPAND_COLUMN=le,Ls.SELECTION_ALL=Ro,Ls.SELECTION_INVERT=io,Ls.SELECTION_NONE=Ta,Ls.Column=Bi,Ls.ColumnGroup=Va,Ls.Summary=Ct;var Mu=Ls,fc=Mu},66368:function(Nn,Nt,te){"use strict";te.d(Nt,{default:function(){return rr}});var le=te(73475),Me=te(25877),Ne=te(38308),Ue=te(94184),be=te.n(Ue),ke=te(87462),de=te(4942),we=te(1413),pe=te(97685),Le=te(71002),nt=te(45987),Re=te(67294),We=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var me=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(me)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(me==null?void 0:me.substr(0,4))};function qe(me){var $e=Re.useRef();$e.current=me;var Ve=Re.useCallback(function(){for(var et,Je=arguments.length,ut=new Array(Je),mt=0;mt<Je;mt++)ut[mt]=arguments[mt];return(et=$e.current)===null||et===void 0?void 0:et.call.apply(et,[$e].concat(ut))},[]);return Ve}function lt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Xe=lt()?Re.useLayoutEffect:Re.useEffect,ye=function($e,Ve){var et=Re.useRef(!0);Xe(function(){return $e(et.current)},Ve),Xe(function(){return et.current=!1,function(){et.current=!0}},[])},vt=function($e,Ve){ye(function(et){if(!et)return $e()},Ve)},Pt=null;function ot(me){var $e=Re.useRef(!1),Ve=Re.useState(me),et=(0,pe.Z)(Ve,2),Je=et[0],ut=et[1];Re.useEffect(function(){return $e.current=!1,function(){$e.current=!0}},[]);function mt(Wt,sn){sn&&$e.current||ut(Wt)}return[Je,mt]}function ct(me){return me!==void 0}function Se(me,$e){var Ve=$e||{},et=Ve.defaultValue,Je=Ve.value,ut=Ve.onChange,mt=Ve.postState,Wt=ot(function(){return ct(Je)?Je:ct(et)?typeof et=="function"?et():et:typeof me=="function"?me():me}),sn=(0,pe.Z)(Wt,2),Wn=sn[0],lr=sn[1],Qn=Je!==void 0?Je:Wn,Tn=mt?mt(Qn):Qn,kn=qe(ut),mn=ot([Qn]),Jn=(0,pe.Z)(mn,2),Dr=Jn[0],cr=Jn[1];vt(function(){var Er=Dr[0];Wn!==Er&&kn(Wn,Er)},[Dr]),vt(function(){ct(Je)||lr(Je)},[Je]);var xr=qe(function(Er,Nr){lr(Er,Nr),cr([Qn],Nr)});return[Tn,xr]}var ce=te(62874),He=(0,Re.createContext)(null),je=Re.forwardRef(function(me,$e){var Ve=me.prefixCls,et=me.className,Je=me.style,ut=me.id,mt=me.active,Wt=me.tabKey,sn=me.children;return Re.createElement("div",{id:ut&&"".concat(ut,"-panel-").concat(Wt),role:"tabpanel",tabIndex:mt?0:-1,"aria-labelledby":ut&&"".concat(ut,"-tab-").concat(Wt),"aria-hidden":!mt,style:Je,className:be()(Ve,mt&&"".concat(Ve,"-active"),et),ref:$e},sn)}),it=je,at=["key","forceRender","style","className"];function Ge(me){var $e=me.id,Ve=me.activeKey,et=me.animated,Je=me.tabPosition,ut=me.destroyInactiveTabPane,mt=Re.useContext(He),Wt=mt.prefixCls,sn=mt.tabs,Wn=et.tabPane,lr="".concat(Wt,"-tabpane");return Re.createElement("div",{className:be()("".concat(Wt,"-content-holder"))},Re.createElement("div",{className:be()("".concat(Wt,"-content"),"".concat(Wt,"-content-").concat(Je),(0,de.Z)({},"".concat(Wt,"-content-animated"),Wn))},sn.map(function(Qn){var Tn=Qn.key,kn=Qn.forceRender,mn=Qn.style,Jn=Qn.className,Dr=(0,nt.Z)(Qn,at),cr=Tn===Ve;return Re.createElement(ce.Z,(0,ke.Z)({key:Tn,visible:cr,forceRender:kn,removeOnLeave:!!ut,leavedClassName:"".concat(lr,"-hidden")},et.tabPaneMotion),function(xr,Er){var Nr=xr.style,$r=xr.className;return Re.createElement(it,(0,ke.Z)({},Dr,{prefixCls:lr,id:$e,tabKey:Tn,animated:Wn,active:cr,style:(0,we.Z)((0,we.Z)({},mn),Nr),className:be()(Jn,$r),ref:Er}))})})))}var Ae=te(74902),wt=te(48555),dt=te(59864);function $t(me,$e,Ve){var et=Re.useRef({});return(!("value"in et.current)||Ve(et.current.condition,$e))&&(et.current.value=me(),et.current.condition=$e),et.current.value}function bt(me,$e){typeof me=="function"?me($e):(0,Le.Z)(me)==="object"&&me&&"current"in me&&(me.current=$e)}function Ot(){for(var me=arguments.length,$e=new Array(me),Ve=0;Ve<me;Ve++)$e[Ve]=arguments[Ve];var et=$e.filter(function(Je){return Je});return et.length<=1?et[0]:function(Je){$e.forEach(function(ut){bt(ut,Je)})}}function Pn(){for(var me=arguments.length,$e=new Array(me),Ve=0;Ve<me;Ve++)$e[Ve]=arguments[Ve];return $t(function(){return Ot.apply(void 0,$e)},$e,function(et,Je){return et.length===Je.length&&et.every(function(ut,mt){return ut===Je[mt]})})}function $n(me){var $e,Ve,et=isMemo(me)?me.type.type:me.type;return!(typeof et=="function"&&!(($e=et.prototype)!==null&&$e!==void 0&&$e.render)||typeof me=="function"&&!((Ve=me.prototype)!==null&&Ve!==void 0&&Ve.render))}var yt={width:0,height:0,left:0,top:0};function Be(me,$e,Ve){return(0,Re.useMemo)(function(){for(var et,Je=new Map,ut=$e.get((et=me[0])===null||et===void 0?void 0:et.key)||yt,mt=ut.left+ut.width,Wt=0;Wt<me.length;Wt+=1){var sn=me[Wt].key,Wn=$e.get(sn);if(!Wn){var lr;Wn=$e.get((lr=me[Wt-1])===null||lr===void 0?void 0:lr.key)||yt}var Qn=Je.get(sn)||(0,we.Z)({},Wn);Qn.right=mt-Qn.left-Qn.width,Je.set(sn,Qn)}return Je},[me.map(function(et){return et.key}).join("_"),$e,Ve])}function Rt(me,$e){var Ve=Re.useRef(me),et=Re.useState({}),Je=(0,pe.Z)(et,2),ut=Je[1];function mt(Wt){var sn=typeof Wt=="function"?Wt(Ve.current):Wt;sn!==Ve.current&&$e(sn,Ve.current),Ve.current=sn,ut({})}return[Ve.current,mt]}var Vn=.1,In=.01,xt=20,Mt=Math.pow(.995,xt);function qt(me,$e){var Ve=(0,Re.useState)(),et=(0,pe.Z)(Ve,2),Je=et[0],ut=et[1],mt=(0,Re.useState)(0),Wt=(0,pe.Z)(mt,2),sn=Wt[0],Wn=Wt[1],lr=(0,Re.useState)(0),Qn=(0,pe.Z)(lr,2),Tn=Qn[0],kn=Qn[1],mn=(0,Re.useState)(),Jn=(0,pe.Z)(mn,2),Dr=Jn[0],cr=Jn[1],xr=(0,Re.useRef)();function Er(It){var gn=It.touches[0],Un=gn.screenX,Yn=gn.screenY;ut({x:Un,y:Yn}),window.clearInterval(xr.current)}function Nr(It){if(Je){It.preventDefault();var gn=It.touches[0],Un=gn.screenX,Yn=gn.screenY;ut({x:Un,y:Yn});var Ar=Un-Je.x,gr=Yn-Je.y;$e(Ar,gr);var tr=Date.now();Wn(tr),kn(tr-sn),cr({x:Ar,y:gr})}}function $r(){if(Je&&(ut(null),cr(null),Dr)){var It=Dr.x/Tn,gn=Dr.y/Tn,Un=Math.abs(It),Yn=Math.abs(gn);if(Math.max(Un,Yn)<Vn)return;var Ar=It,gr=gn;xr.current=window.setInterval(function(){if(Math.abs(Ar)<In&&Math.abs(gr)<In){window.clearInterval(xr.current);return}Ar*=Mt,gr*=Mt,$e(Ar*xt,gr*xt)},xt)}}var Qe=(0,Re.useRef)();function rt(It){var gn=It.deltaX,Un=It.deltaY,Yn=0,Ar=Math.abs(gn),gr=Math.abs(Un);Ar===gr?Yn=Qe.current==="x"?gn:Un:Ar>gr?(Yn=gn,Qe.current="x"):(Yn=Un,Qe.current="y"),$e(-Yn,-Yn)&&It.preventDefault()}var Zt=(0,Re.useRef)(null);Zt.current={onTouchStart:Er,onTouchMove:Nr,onTouchEnd:$r,onWheel:rt},Re.useEffect(function(){function It(Ar){Zt.current.onTouchStart(Ar)}function gn(Ar){Zt.current.onTouchMove(Ar)}function Un(Ar){Zt.current.onTouchEnd(Ar)}function Yn(Ar){Zt.current.onWheel(Ar)}return document.addEventListener("touchmove",gn,{passive:!1}),document.addEventListener("touchend",Un,{passive:!1}),me.current.addEventListener("touchstart",It,{passive:!1}),me.current.addEventListener("wheel",Yn),function(){document.removeEventListener("touchmove",gn),document.removeEventListener("touchend",Un)}},[])}function an(me){var $e=(0,Re.useState)(0),Ve=(0,pe.Z)($e,2),et=Ve[0],Je=Ve[1],ut=(0,Re.useRef)(0),mt=(0,Re.useRef)();return mt.current=me,vt(function(){var Wt;(Wt=mt.current)===null||Wt===void 0||Wt.call(mt)},[et]),function(){ut.current===et&&(ut.current+=1,Je(ut.current))}}function ln(me){var $e=(0,Re.useRef)([]),Ve=(0,Re.useState)({}),et=(0,pe.Z)(Ve,2),Je=et[1],ut=(0,Re.useRef)(typeof me=="function"?me():me),mt=an(function(){var sn=ut.current;$e.current.forEach(function(Wn){sn=Wn(sn)}),$e.current=[],ut.current=sn,Je({})});function Wt(sn){$e.current.push(sn),mt()}return[ut.current,Wt]}var Yt={width:0,height:0,left:0,top:0,right:0};function Cn(me,$e,Ve,et,Je,ut,mt){var Wt=mt.tabs,sn=mt.tabPosition,Wn=mt.rtl,lr,Qn,Tn;return["top","bottom"].includes(sn)?(lr="width",Qn=Wn?"right":"left",Tn=Math.abs(Ve)):(lr="height",Qn="top",Tn=-Ve),(0,Re.useMemo)(function(){if(!Wt.length)return[0,0];for(var kn=Wt.length,mn=kn,Jn=0;Jn<kn;Jn+=1){var Dr=me.get(Wt[Jn].key)||Yt;if(Dr[Qn]+Dr[lr]>Tn+$e){mn=Jn-1;break}}for(var cr=0,xr=kn-1;xr>=0;xr-=1){var Er=me.get(Wt[xr].key)||Yt;if(Er[Qn]<Tn){cr=xr+1;break}}return cr>=mn?[0,0]:[cr,mn]},[me,$e,et,Je,ut,Tn,sn,Wt.map(function(kn){return kn.key}).join("_"),Wn])}function pr(me){var $e;return me instanceof Map?($e={},me.forEach(function(Ve,et){$e[et]=Ve})):$e=me,JSON.stringify($e)}var Xn="TABS_DQ";function ze(me){return String(me).replace(/"/g,Xn)}function fe(me,$e,Ve,et){return!(!Ve||et||me===!1||me===void 0&&($e===!1||$e===null))}function ue(me,$e){var Ve=me.prefixCls,et=me.editable,Je=me.locale,ut=me.style;return!et||et.showAdd===!1?null:Re.createElement("button",{ref:$e,type:"button",className:"".concat(Ve,"-nav-add"),style:ut,"aria-label":(Je==null?void 0:Je.addAriaLabel)||"Add tab",onClick:function(Wt){et.onEdit("add",{event:Wt})}},et.addIcon||"+")}var xe=Re.forwardRef(ue),ge=Re.forwardRef(function(me,$e){var Ve=me.position,et=me.prefixCls,Je=me.extra;if(!Je)return null;var ut,mt={};return(0,Le.Z)(Je)==="object"&&!Re.isValidElement(Je)?mt=Je:mt.right=Je,Ve==="right"&&(ut=mt.right),Ve==="left"&&(ut=mt.left),ut?Re.createElement("div",{className:"".concat(et,"-extra-content"),ref:$e},ut):null}),se=ge,Fe=te(62709);function st(me,$e,Ve){var et=React.useRef({});return(!("value"in et.current)||Ve(et.current.condition,$e))&&(et.current.value=me(),et.current.condition=$e),et.current.value}function en(me,$e){typeof me=="function"?me($e):(0,Le.Z)(me)==="object"&&me&&"current"in me&&(me.current=$e)}function Sn(){for(var me=arguments.length,$e=new Array(me),Ve=0;Ve<me;Ve++)$e[Ve]=arguments[Ve];var et=$e.filter(function(Je){return Je});return et.length<=1?et[0]:function(Je){$e.forEach(function(ut){en(ut,Je)})}}function dn(){for(var me=arguments.length,$e=new Array(me),Ve=0;Ve<me;Ve++)$e[Ve]=arguments[Ve];return useMemo(function(){return Sn.apply(void 0,$e)},$e,function(et,Je){return et.length===Je.length&&et.every(function(ut,mt){return ut===Je[mt]})})}function zn(me){var $e,Ve,et=(0,dt.isMemo)(me)?me.type.type:me.type;return!(typeof et=="function"&&!(($e=et.prototype)!==null&&$e!==void 0&&$e.render)||typeof me=="function"&&!((Ve=me.prototype)!==null&&Ve!==void 0&&Ve.render))}var vn={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function($e){var Ve=$e.keyCode;if($e.altKey&&!$e.ctrlKey||$e.metaKey||Ve>=vn.F1&&Ve<=vn.F12)return!1;switch(Ve){case vn.ALT:case vn.CAPS_LOCK:case vn.CONTEXT_MENU:case vn.CTRL:case vn.DOWN:case vn.END:case vn.ESC:case vn.HOME:case vn.INSERT:case vn.LEFT:case vn.MAC_FF_META:case vn.META:case vn.NUMLOCK:case vn.NUM_CENTER:case vn.PAGE_DOWN:case vn.PAGE_UP:case vn.PAUSE:case vn.PRINT_SCREEN:case vn.RIGHT:case vn.SHIFT:case vn.UP:case vn.WIN_KEY:case vn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function($e){if($e>=vn.ZERO&&$e<=vn.NINE||$e>=vn.NUM_ZERO&&$e<=vn.NUM_MULTIPLY||$e>=vn.A&&$e<=vn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&$e===0)return!0;switch($e){case vn.SPACE:case vn.QUESTION_MARK:case vn.NUM_PLUS:case vn.NUM_MINUS:case vn.NUM_PERIOD:case vn.NUM_DIVISION:case vn.SEMICOLON:case vn.DASH:case vn.EQUALS:case vn.COMMA:case vn.PERIOD:case vn.SLASH:case vn.APOSTROPHE:case vn.SINGLE_QUOTE:case vn.OPEN_SQUARE_BRACKET:case vn.BACKSLASH:case vn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},kt=vn,Xt=function($e){return+setTimeout($e,16)},Jt=function($e){return clearTimeout($e)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Xt=function($e){return window.requestAnimationFrame($e)},Jt=function($e){return window.cancelAnimationFrame($e)});var jt=0,Bt=new Map;function ir(me){Bt.delete(me)}var Ct=function($e){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;jt+=1;var et=jt;function Je(ut){if(ut===0)ir(et),$e();else{var mt=Xt(function(){Je(ut-1)});Bt.set(et,mt)}}return Je(Ve),et};Ct.cancel=function(me){var $e=Bt.get(me);return ir($e),Jt($e)};var At=Ct,er=kt.ESC,An=kt.TAB;function fr(me){var $e=me.visible,Ve=me.triggerRef,et=me.onVisibleChange,Je=me.autoFocus,ut=me.overlayRef,mt=Re.useRef(!1),Wt=function(){if($e){var Qn,Tn;(Qn=Ve.current)===null||Qn===void 0||(Tn=Qn.focus)===null||Tn===void 0||Tn.call(Qn),et==null||et(!1)}},sn=function(){var Qn;return(Qn=ut.current)!==null&&Qn!==void 0&&Qn.focus?(ut.current.focus(),mt.current=!0,!0):!1},Wn=function(Qn){switch(Qn.keyCode){case er:Wt();break;case An:{var Tn=!1;mt.current||(Tn=sn()),Tn?Qn.preventDefault():Wt();break}}};Re.useEffect(function(){return $e?(window.addEventListener("keydown",Wn),Je&&At(sn,3),function(){window.removeEventListener("keydown",Wn),mt.current=!1}):function(){mt.current=!1}},[$e])}var Rr=(0,Re.forwardRef)(function(me,$e){var Ve=me.overlay,et=me.arrow,Je=me.prefixCls,ut=(0,Re.useMemo)(function(){var Wt;return typeof Ve=="function"?Wt=Ve():Wt=Ve,Wt},[Ve]),mt=Sn($e,ut==null?void 0:ut.ref);return Re.createElement(Re.Fragment,null,et&&Re.createElement("div",{className:"".concat(Je,"-arrow")}),Re.cloneElement(ut,{ref:zn(ut)?mt:void 0}))}),ii=Rr,Yr={adjustX:1,adjustY:1},Jr=[0,0],mi={topLeft:{points:["bl","tl"],overflow:Yr,offset:[0,-4],targetOffset:Jr},top:{points:["bc","tc"],overflow:Yr,offset:[0,-4],targetOffset:Jr},topRight:{points:["br","tr"],overflow:Yr,offset:[0,-4],targetOffset:Jr},bottomLeft:{points:["tl","bl"],overflow:Yr,offset:[0,4],targetOffset:Jr},bottom:{points:["tc","bc"],overflow:Yr,offset:[0,4],targetOffset:Jr},bottomRight:{points:["tr","br"],overflow:Yr,offset:[0,4],targetOffset:Jr}},Br=mi,ki=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Vi(me,$e){var Ve,et=me.arrow,Je=et===void 0?!1:et,ut=me.prefixCls,mt=ut===void 0?"rc-dropdown":ut,Wt=me.transitionName,sn=me.animation,Wn=me.align,lr=me.placement,Qn=lr===void 0?"bottomLeft":lr,Tn=me.placements,kn=Tn===void 0?Br:Tn,mn=me.getPopupContainer,Jn=me.showAction,Dr=me.hideAction,cr=me.overlayClassName,xr=me.overlayStyle,Er=me.visible,Nr=me.trigger,$r=Nr===void 0?["hover"]:Nr,Qe=me.autoFocus,rt=me.overlay,Zt=me.children,It=me.onVisibleChange,gn=(0,nt.Z)(me,ki),Un=Re.useState(),Yn=(0,pe.Z)(Un,2),Ar=Yn[0],gr=Yn[1],tr="visible"in me?Er:Ar,Or=Re.useRef(null),Kr=Re.useRef(null),ci=Re.useRef(null);Re.useImperativeHandle($e,function(){return Or.current});var Hr=function(bi){gr(bi),It==null||It(bi)};fr({visible:tr,triggerRef:ci,onVisibleChange:Hr,autoFocus:Qe,overlayRef:Kr});var yi=function(bi){var ba=me.onOverlayClick;gr(!1),ba&&ba(bi)},Ii=function(){return Re.createElement(ii,{ref:Kr,overlay:rt,prefixCls:mt,arrow:Je})},Si=function(){return typeof rt=="function"?Ii:Ii()},Ni=function(){var bi=me.minOverlayWidthMatchTrigger,ba=me.alignPoint;return"minOverlayWidthMatchTrigger"in me?bi:!ba},gi=function(){var bi=me.openClassName;return bi!==void 0?bi:"".concat(mt,"-open")},Di=Re.cloneElement(Zt,{className:be()((Ve=Zt.props)===null||Ve===void 0?void 0:Ve.className,tr&&gi()),ref:zn(Zt)?Sn(ci,Zt.ref):void 0}),Ri=Dr;return!Ri&&$r.indexOf("contextMenu")!==-1&&(Ri=["click"]),Re.createElement(Fe.Z,(0,ke.Z)({builtinPlacements:kn},gn,{prefixCls:mt,ref:Or,popupClassName:be()(cr,(0,de.Z)({},"".concat(mt,"-show-arrow"),Je)),popupStyle:xr,action:$r,showAction:Jn,hideAction:Ri,popupPlacement:Qn,popupAlign:Wn,popupTransitionName:Wt,popupAnimation:sn,popupVisible:tr,stretch:Ni()?"minWidth":"",popup:Si(),onPopupVisibleChange:Hr,onPopupClick:yi,getPopupContainer:mn}),Di)}var ha=Re.forwardRef(Vi),pa=ha,Ui=te(78595),Ut={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function($e){var Ve=$e.keyCode;if($e.altKey&&!$e.ctrlKey||$e.metaKey||Ve>=Ut.F1&&Ve<=Ut.F12)return!1;switch(Ve){case Ut.ALT:case Ut.CAPS_LOCK:case Ut.CONTEXT_MENU:case Ut.CTRL:case Ut.DOWN:case Ut.END:case Ut.ESC:case Ut.HOME:case Ut.INSERT:case Ut.LEFT:case Ut.MAC_FF_META:case Ut.META:case Ut.NUMLOCK:case Ut.NUM_CENTER:case Ut.PAGE_DOWN:case Ut.PAGE_UP:case Ut.PAUSE:case Ut.PRINT_SCREEN:case Ut.RIGHT:case Ut.SHIFT:case Ut.UP:case Ut.WIN_KEY:case Ut.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function($e){if($e>=Ut.ZERO&&$e<=Ut.NINE||$e>=Ut.NUM_ZERO&&$e<=Ut.NUM_MULTIPLY||$e>=Ut.A&&$e<=Ut.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&$e===0)return!0;switch($e){case Ut.SPACE:case Ut.QUESTION_MARK:case Ut.NUM_PLUS:case Ut.NUM_MINUS:case Ut.NUM_PERIOD:case Ut.NUM_DIVISION:case Ut.SEMICOLON:case Ut.DASH:case Ut.EQUALS:case Ut.COMMA:case Ut.PERIOD:case Ut.SLASH:case Ut.APOSTROPHE:case Ut.SINGLE_QUOTE:case Ut.OPEN_SQUARE_BRACKET:case Ut.BACKSLASH:case Ut.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Qt=Ut;function un(me,$e){var Ve=me.prefixCls,et=me.id,Je=me.tabs,ut=me.locale,mt=me.mobile,Wt=me.moreIcon,sn=Wt===void 0?"More":Wt,Wn=me.moreTransitionName,lr=me.style,Qn=me.className,Tn=me.editable,kn=me.tabBarGutter,mn=me.rtl,Jn=me.removeAriaLabel,Dr=me.onTabClick,cr=me.getPopupContainer,xr=me.popupClassName,Er=(0,Re.useState)(!1),Nr=(0,pe.Z)(Er,2),$r=Nr[0],Qe=Nr[1],rt=(0,Re.useState)(null),Zt=(0,pe.Z)(rt,2),It=Zt[0],gn=Zt[1],Un="".concat(et,"-more-popup"),Yn="".concat(Ve,"-dropdown"),Ar=It!==null?"".concat(Un,"-").concat(It):null,gr=ut==null?void 0:ut.dropdownAriaLabel;function tr(Si,Ni){Si.preventDefault(),Si.stopPropagation(),Tn.onEdit("remove",{key:Ni,event:Si})}var Or=Re.createElement(Ui.ZP,{onClick:function(Ni){var gi=Ni.key,Di=Ni.domEvent;Dr(gi,Di),Qe(!1)},prefixCls:"".concat(Yn,"-menu"),id:Un,tabIndex:-1,role:"listbox","aria-activedescendant":Ar,selectedKeys:[It],"aria-label":gr!==void 0?gr:"expanded dropdown"},Je.map(function(Si){var Ni=Si.closable,gi=Si.disabled,Di=Si.closeIcon,Ri=Si.key,sa=Si.label,bi=fe(Ni,Di,Tn,gi);return Re.createElement(Ui.sN,{key:Ri,id:"".concat(Un,"-").concat(Ri),role:"option","aria-controls":et&&"".concat(et,"-panel-").concat(Ri),disabled:gi},Re.createElement("span",null,sa),bi&&Re.createElement("button",{type:"button","aria-label":Jn||"remove",tabIndex:0,className:"".concat(Yn,"-menu-item-remove"),onClick:function(Ca){Ca.stopPropagation(),tr(Ca,Ri)}},Di||Tn.removeIcon||"\xD7"))}));function Kr(Si){for(var Ni=Je.filter(function(bi){return!bi.disabled}),gi=Ni.findIndex(function(bi){return bi.key===It})||0,Di=Ni.length,Ri=0;Ri<Di;Ri+=1){gi=(gi+Si+Di)%Di;var sa=Ni[gi];if(!sa.disabled){gn(sa.key);return}}}function ci(Si){var Ni=Si.which;if(!$r){[Qt.DOWN,Qt.SPACE,Qt.ENTER].includes(Ni)&&(Qe(!0),Si.preventDefault());return}switch(Ni){case Qt.UP:Kr(-1),Si.preventDefault();break;case Qt.DOWN:Kr(1),Si.preventDefault();break;case Qt.ESC:Qe(!1);break;case Qt.SPACE:case Qt.ENTER:It!==null&&Dr(It,Si);break}}(0,Re.useEffect)(function(){var Si=document.getElementById(Ar);Si&&Si.scrollIntoView&&Si.scrollIntoView(!1)},[It]),(0,Re.useEffect)(function(){$r||gn(null)},[$r]);var Hr=(0,de.Z)({},mn?"marginRight":"marginLeft",kn);Je.length||(Hr.visibility="hidden",Hr.order=1);var yi=be()((0,de.Z)({},"".concat(Yn,"-rtl"),mn)),Ii=mt?null:Re.createElement(pa,{prefixCls:Yn,overlay:Or,trigger:["hover"],visible:Je.length?$r:!1,transitionName:Wn,onVisibleChange:Qe,overlayClassName:be()(yi,xr),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:cr},Re.createElement("button",{type:"button",className:"".concat(Ve,"-nav-more"),style:Hr,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":Un,id:"".concat(et,"-more"),"aria-expanded":$r,onKeyDown:ci},sn));return Re.createElement("div",{className:be()("".concat(Ve,"-nav-operations"),Qn),style:lr,ref:$e},Ii,Re.createElement(xe,{prefixCls:Ve,locale:ut,editable:Tn}))}var Bn=Re.memo(Re.forwardRef(un),function(me,$e){return $e.tabMoving});function Cr(me){var $e,Ve=me.prefixCls,et=me.id,Je=me.active,ut=me.tab,mt=ut.key,Wt=ut.label,sn=ut.disabled,Wn=ut.closeIcon,lr=me.closable,Qn=me.renderWrapper,Tn=me.removeAriaLabel,kn=me.editable,mn=me.onClick,Jn=me.onFocus,Dr=me.style,cr="".concat(Ve,"-tab"),xr=fe(lr,Wn,kn,sn);function Er(Qe){sn||mn(Qe)}function Nr(Qe){Qe.preventDefault(),Qe.stopPropagation(),kn.onEdit("remove",{key:mt,event:Qe})}var $r=Re.createElement("div",{key:mt,"data-node-key":ze(mt),className:be()(cr,($e={},(0,de.Z)($e,"".concat(cr,"-with-remove"),xr),(0,de.Z)($e,"".concat(cr,"-active"),Je),(0,de.Z)($e,"".concat(cr,"-disabled"),sn),$e)),style:Dr,onClick:Er},Re.createElement("div",{role:"tab","aria-selected":Je,id:et&&"".concat(et,"-tab-").concat(mt),className:"".concat(cr,"-btn"),"aria-controls":et&&"".concat(et,"-panel-").concat(mt),"aria-disabled":sn,tabIndex:sn?null:0,onClick:function(rt){rt.stopPropagation(),Er(rt)},onKeyDown:function(rt){[Qt.SPACE,Qt.ENTER].includes(rt.which)&&(rt.preventDefault(),Er(rt))},onFocus:Jn},Wt),xr&&Re.createElement("button",{type:"button","aria-label":Tn||"remove",tabIndex:0,className:"".concat(cr,"-remove"),onClick:function(rt){rt.stopPropagation(),Nr(rt)}},Wn||kn.removeIcon||"\xD7"));return Qn?Qn($r):$r}var qn=Cr,Lr=function($e){return+setTimeout($e,16)},or=function($e){return clearTimeout($e)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Lr=function($e){return window.requestAnimationFrame($e)},or=function($e){return window.cancelAnimationFrame($e)});var Et=0,_t=new Map;function zt(me){_t.delete(me)}var wn=function($e){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Et+=1;var et=Et;function Je(ut){if(ut===0)zt(et),$e();else{var mt=Lr(function(){Je(ut-1)});_t.set(et,mt)}}return Je(Ve),et};wn.cancel=function(me){var $e=_t.get(me);return zt($e),or($e)};var ft=wn,Ht=function($e){var Ve=$e.activeTabOffset,et=$e.horizontal,Je=$e.rtl,ut=$e.indicatorSize,mt=(0,Re.useState)(),Wt=(0,pe.Z)(mt,2),sn=Wt[0],Wn=Wt[1],lr=(0,Re.useRef)(),Qn=function(mn){return typeof ut=="function"?ut(mn):typeof ut=="number"?ut:mn};function Tn(){ft.cancel(lr.current)}return(0,Re.useEffect)(function(){var kn={};return Ve&&(et?(Je?(kn.right=Ve.right+Ve.width/2,kn.transform="translateX(50%)"):(kn.left=Ve.left+Ve.width/2,kn.transform="translateX(-50%)"),kn.width=Qn(Ve.width)):(kn.top=Ve.top+Ve.height/2,kn.transform="translateY(-50%)",kn.height=Qn(Ve.height))),Tn(),lr.current=ft(function(){Wn(kn)}),Tn},[Ve,et,Je,ut]),{style:sn}},xn=Ht,En=function($e){var Ve=$e.current||{},et=Ve.offsetWidth,Je=et===void 0?0:et,ut=Ve.offsetHeight,mt=ut===void 0?0:ut;return[Je,mt]},Hn=function($e,Ve){return $e[Ve?0:1]};function Gn(me,$e){var Ve,et=Re.useContext(He),Je=et.prefixCls,ut=et.tabs,mt=me.className,Wt=me.style,sn=me.id,Wn=me.animated,lr=me.activeKey,Qn=me.rtl,Tn=me.extra,kn=me.editable,mn=me.locale,Jn=me.tabPosition,Dr=me.tabBarGutter,cr=me.children,xr=me.onTabClick,Er=me.onTabScroll,Nr=me.indicatorSize,$r=(0,Re.useRef)(),Qe=(0,Re.useRef)(),rt=(0,Re.useRef)(),Zt=(0,Re.useRef)(),It=(0,Re.useRef)(),gn=(0,Re.useRef)(),Un=(0,Re.useRef)(),Yn=Jn==="top"||Jn==="bottom",Ar=Rt(0,function(To,Ce){Yn&&Er&&Er({direction:To>Ce?"left":"right"})}),gr=(0,pe.Z)(Ar,2),tr=gr[0],Or=gr[1],Kr=Rt(0,function(To,Ce){!Yn&&Er&&Er({direction:To>Ce?"top":"bottom"})}),ci=(0,pe.Z)(Kr,2),Hr=ci[0],yi=ci[1],Ii=(0,Re.useState)([0,0]),Si=(0,pe.Z)(Ii,2),Ni=Si[0],gi=Si[1],Di=(0,Re.useState)([0,0]),Ri=(0,pe.Z)(Di,2),sa=Ri[0],bi=Ri[1],ba=(0,Re.useState)([0,0]),Ca=(0,pe.Z)(ba,2),Co=Ca[0],Qa=Ca[1],za=(0,Re.useState)([0,0]),la=(0,pe.Z)(za,2),ga=la[0],Xi=la[1],Ba=ln(new Map),Qi=(0,pe.Z)(Ba,2),Bi=Qi[0],Ea=Qi[1],Va=Be(ut,Bi,sa[0]),Jo=Hn(Ni,Yn),zo=Hn(sa,Yn),Oo=Hn(Co,Yn),Po=Hn(ga,Yn),co=Jo<zo+Oo,xa=co?Jo-Po:Jo-Oo,us="".concat(Je,"-nav-operations-hidden"),Ka=0,ua=0;Yn&&Qn?(Ka=0,ua=Math.max(0,zo-xa)):(Ka=Math.min(0,xa-zo),ua=0);function Ja(To){return To<Ka?Ka:To>ua?ua:To}var Wo=(0,Re.useRef)(),fo=(0,Re.useState)(),bo=(0,pe.Z)(fo,2),Ma=bo[0],Uo=bo[1];function os(){Uo(Date.now())}function Xo(){window.clearTimeout(Wo.current)}qt(Zt,function(To,Ce){function Oe(_e,Dt){_e(function(Lt){var Ln=Ja(Lt+Dt);return Ln})}return co?(Yn?Oe(Or,To):Oe(yi,Ce),Xo(),os(),!0):!1}),(0,Re.useEffect)(function(){return Xo(),Ma&&(Wo.current=window.setTimeout(function(){Uo(0)},100)),Xo},[Ma]);var ss=Cn(Va,xa,Yn?tr:Hr,zo,Oo,Po,(0,we.Z)((0,we.Z)({},me),{},{tabs:ut})),cs=(0,pe.Z)(ss,2),Os=cs[0],qo=cs[1],es=qe(function(){var To=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lr,Ce=Va.get(To)||{width:0,height:0,left:0,right:0,top:0};if(Yn){var Oe=tr;Qn?Ce.right<tr?Oe=Ce.right:Ce.right+Ce.width>tr+xa&&(Oe=Ce.right+Ce.width-xa):Ce.left<-tr?Oe=-Ce.left:Ce.left+Ce.width>-tr+xa&&(Oe=-(Ce.left+Ce.width-xa)),yi(0),Or(Ja(Oe))}else{var _e=Hr;Ce.top<-Hr?_e=-Ce.top:Ce.top+Ce.height>-Hr+xa&&(_e=-(Ce.top+Ce.height-xa)),Or(0),yi(Ja(_e))}}),Zs={};Jn==="top"||Jn==="bottom"?Zs[Qn?"marginRight":"marginLeft"]=Dr:Zs.marginTop=Dr;var Ws=ut.map(function(To,Ce){var Oe=To.key;return Re.createElement(qn,{id:sn,prefixCls:Je,key:Oe,tab:To,style:Ce===0?void 0:Zs,closable:To.closable,editable:kn,active:Oe===lr,renderWrapper:cr,removeAriaLabel:mn==null?void 0:mn.removeAriaLabel,onClick:function(Dt){xr(Oe,Dt)},onFocus:function(){es(Oe),os(),Zt.current&&(Qn||(Zt.current.scrollLeft=0),Zt.current.scrollTop=0)}})}),el=function(){return Ea(function(){var Ce=new Map;return ut.forEach(function(Oe){var _e,Dt=Oe.key,Lt=(_e=It.current)===null||_e===void 0?void 0:_e.querySelector('[data-node-key="'.concat(ze(Dt),'"]'));Lt&&Ce.set(Dt,{width:Lt.offsetWidth,height:Lt.offsetHeight,left:Lt.offsetLeft,top:Lt.offsetTop})}),Ce})};(0,Re.useEffect)(function(){el()},[ut.map(function(To){return To.key}).join("_")]);var bs=an(function(){var To=En($r),Ce=En(Qe),Oe=En(rt);gi([To[0]-Ce[0]-Oe[0],To[1]-Ce[1]-Oe[1]]);var _e=En(Un);Qa(_e);var Dt=En(gn);Xi(Dt);var Lt=En(It);bi([Lt[0]-_e[0],Lt[1]-_e[1]]),el()}),ns=ut.slice(0,Os),Wa=ut.slice(qo+1),ro=[].concat((0,Ae.Z)(ns),(0,Ae.Z)(Wa)),Vo=Va.get(lr),rs=xn({activeTabOffset:Vo,horizontal:Yn,rtl:Qn,indicatorSize:Nr}),Rs=rs.style;(0,Re.useEffect)(function(){es()},[lr,Ka,ua,pr(Vo),pr(Va),Yn]),(0,Re.useEffect)(function(){bs()},[Qn]);var tl=!!ro.length,il="".concat(Je,"-nav-wrap"),pl,Al,nl,Fl;return Yn?Qn?(Al=tr>0,pl=tr!==ua):(pl=tr<0,Al=tr!==Ka):(nl=Hr<0,Fl=Hr!==Ka),Re.createElement(wt.Z,{onResize:bs},Re.createElement("div",{ref:Pn($e,$r),role:"tablist",className:be()("".concat(Je,"-nav"),mt),style:Wt,onKeyDown:function(){os()}},Re.createElement(se,{ref:Qe,position:"left",extra:Tn,prefixCls:Je}),Re.createElement(wt.Z,{onResize:bs},Re.createElement("div",{className:be()(il,(Ve={},(0,de.Z)(Ve,"".concat(il,"-ping-left"),pl),(0,de.Z)(Ve,"".concat(il,"-ping-right"),Al),(0,de.Z)(Ve,"".concat(il,"-ping-top"),nl),(0,de.Z)(Ve,"".concat(il,"-ping-bottom"),Fl),Ve)),ref:Zt},Re.createElement(wt.Z,{onResize:bs},Re.createElement("div",{ref:It,className:"".concat(Je,"-nav-list"),style:{transform:"translate(".concat(tr,"px, ").concat(Hr,"px)"),transition:Ma?"none":void 0}},Ws,Re.createElement(xe,{ref:Un,prefixCls:Je,locale:mn,editable:kn,style:(0,we.Z)((0,we.Z)({},Ws.length===0?void 0:Zs),{},{visibility:tl?"hidden":null})}),Re.createElement("div",{className:be()("".concat(Je,"-ink-bar"),(0,de.Z)({},"".concat(Je,"-ink-bar-animated"),Wn.inkBar)),style:Rs}))))),Re.createElement(Bn,(0,ke.Z)({},me,{removeAriaLabel:mn==null?void 0:mn.removeAriaLabel,ref:gn,prefixCls:Je,tabs:ro,className:!tl&&us,tabMoving:!!Ma})),Re.createElement(se,{ref:rt,position:"right",extra:Tn,prefixCls:Je})))}var br=Re.forwardRef(Gn),fi=["renderTabBar"],Gr=["label","key"];function Vr(me){var $e=me.renderTabBar,Ve=(0,nt.Z)(me,fi),et=Re.useContext(He),Je=et.tabs;if($e){var ut=(0,we.Z)((0,we.Z)({},Ve),{},{panes:Je.map(function(mt){var Wt=mt.label,sn=mt.key,Wn=(0,nt.Z)(mt,Gr);return Re.createElement(it,(0,ke.Z)({tab:Wt,key:sn,tabKey:sn},Wn))})});return $e(ut,br)}return Re.createElement(br,Ve)}var ai={},ei=[],Vt=function($e){ei.push($e)};function Kt(me,$e){if(0)var Ve}function nn(me,$e){if(0)var Ve}function sr(){ai={}}function Tr(me,$e,Ve){!$e&&!ai[Ve]&&(me(!1,Ve),ai[Ve]=!0)}function Fn(me,$e){Tr(Kt,me,$e)}function mr(me,$e){Tr(nn,me,$e)}Fn.preMessage=Vt,Fn.resetWarned=sr,Fn.noteOnce=mr;var ur=null;function zr(){var me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},$e;return me===!1?$e={inkBar:!1,tabPane:!1}:me===!0?$e={inkBar:!0,tabPane:!1}:$e=(0,we.Z)({inkBar:!0},(0,Le.Z)(me)==="object"?me:{}),$e.tabPaneMotion&&$e.tabPane===void 0&&($e.tabPane=!0),!$e.tabPaneMotion&&$e.tabPane&&($e.tabPane=!1),$e}var ti=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],jn=0;function Gi(me,$e){var Ve,et=me.id,Je=me.prefixCls,ut=Je===void 0?"rc-tabs":Je,mt=me.className,Wt=me.items,sn=me.direction,Wn=me.activeKey,lr=me.defaultActiveKey,Qn=me.editable,Tn=me.animated,kn=me.tabPosition,mn=kn===void 0?"top":kn,Jn=me.tabBarGutter,Dr=me.tabBarStyle,cr=me.tabBarExtraContent,xr=me.locale,Er=me.moreIcon,Nr=me.moreTransitionName,$r=me.destroyInactiveTabPane,Qe=me.renderTabBar,rt=me.onChange,Zt=me.onTabClick,It=me.onTabScroll,gn=me.getPopupContainer,Un=me.popupClassName,Yn=me.indicatorSize,Ar=(0,nt.Z)(me,ti),gr=Re.useMemo(function(){return(Wt||[]).filter(function(Xi){return Xi&&(0,Le.Z)(Xi)==="object"&&"key"in Xi})},[Wt]),tr=sn==="rtl",Or=zr(Tn),Kr=(0,Re.useState)(!1),ci=(0,pe.Z)(Kr,2),Hr=ci[0],yi=ci[1];(0,Re.useEffect)(function(){yi(We())},[]);var Ii=Se(function(){var Xi;return(Xi=gr[0])===null||Xi===void 0?void 0:Xi.key},{value:Wn,defaultValue:lr}),Si=(0,pe.Z)(Ii,2),Ni=Si[0],gi=Si[1],Di=(0,Re.useState)(function(){return gr.findIndex(function(Xi){return Xi.key===Ni})}),Ri=(0,pe.Z)(Di,2),sa=Ri[0],bi=Ri[1];(0,Re.useEffect)(function(){var Xi=gr.findIndex(function(Qi){return Qi.key===Ni});if(Xi===-1){var Ba;Xi=Math.max(0,Math.min(sa,gr.length-1)),gi((Ba=gr[Xi])===null||Ba===void 0?void 0:Ba.key)}bi(Xi)},[gr.map(function(Xi){return Xi.key}).join("_"),Ni,sa]);var ba=Se(null,{value:et}),Ca=(0,pe.Z)(ba,2),Co=Ca[0],Qa=Ca[1];(0,Re.useEffect)(function(){et||(Qa("rc-tabs-".concat(jn)),jn+=1)},[]);function za(Xi,Ba){Zt==null||Zt(Xi,Ba);var Qi=Xi!==Ni;gi(Xi),Qi&&(rt==null||rt(Xi))}var la={id:Co,activeKey:Ni,animated:Or,tabPosition:mn,rtl:tr,mobile:Hr},ga=(0,we.Z)((0,we.Z)({},la),{},{editable:Qn,locale:xr,moreIcon:Er,moreTransitionName:Nr,tabBarGutter:Jn,onTabClick:za,onTabScroll:It,extra:cr,style:Dr,panes:null,getPopupContainer:gn,popupClassName:Un,indicatorSize:Yn});return Re.createElement(He.Provider,{value:{tabs:gr,prefixCls:ut}},Re.createElement("div",(0,ke.Z)({ref:$e,id:et,className:be()(ut,"".concat(ut,"-").concat(mn),(Ve={},(0,de.Z)(Ve,"".concat(ut,"-mobile"),Hr),(0,de.Z)(Ve,"".concat(ut,"-editable"),Qn),(0,de.Z)(Ve,"".concat(ut,"-rtl"),tr),Ve),mt)},Ar),Re.createElement(Vr,(0,ke.Z)({},ga,{renderTabBar:Qe})),Re.createElement(Ge,(0,ke.Z)({destroyInactiveTabPane:$r},la,{animated:Or}))))}var _i=Re.forwardRef(Gi),Xa=_i,_a=Xa,Aa=te(53124),ra=te(98675),ya=()=>null,Ra=te(33603);const oo={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Yi(me){let $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},Ve;return $e===!1?Ve={inkBar:!1,tabPane:!1}:$e===!0?Ve={inkBar:!0,tabPane:!0}:Ve=Object.assign({inkBar:!0},typeof $e=="object"?$e:{}),Ve.tabPane&&(Ve.tabPaneMotion=Object.assign(Object.assign({},oo),{motionName:(0,Ra.m)(me,"switch")})),Ve}var Pa=te(37419),to=function(me,$e){var Ve={};for(var et in me)Object.prototype.hasOwnProperty.call(me,et)&&$e.indexOf(et)<0&&(Ve[et]=me[et]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,et=Object.getOwnPropertySymbols(me);Je<et.length;Je++)$e.indexOf(et[Je])<0&&Object.prototype.propertyIsEnumerable.call(me,et[Je])&&(Ve[et[Je]]=me[et[Je]]);return Ve};function _o(me){return me.filter($e=>$e)}function wo(me,$e){if(me)return me;const Ve=(0,Pa.Z)($e).map(et=>{if(Re.isValidElement(et)){const{key:Je,props:ut}=et,mt=ut||{},{tab:Wt}=mt,sn=to(mt,["tab"]);return Object.assign(Object.assign({key:String(Je)},sn),{label:Wt})}return null});return _o(Ve)}var ia=te(14747),on=te(67968),Gt=te(45503),Kn=te(67771),Ir=me=>{const{componentCls:$e,motionDurationSlow:Ve}=me;return[{[$e]:{[`${$e}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${Ve}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${Ve}`}}}}},[(0,Kn.oN)(me,"slide-up"),(0,Kn.oN)(me,"slide-down")]]};const si=me=>{const{componentCls:$e,tabsCardPadding:Ve,cardBg:et,cardGutter:Je,colorBorderSecondary:ut,itemSelectedColor:mt}=me;return{[`${$e}-card`]:{[`> ${$e}-nav, > div > ${$e}-nav`]:{[`${$e}-tab`]:{margin:0,padding:Ve,background:et,border:`${me.lineWidth}px ${me.lineType} ${ut}`,transition:`all ${me.motionDurationSlow} ${me.motionEaseInOut}`},[`${$e}-tab-active`]:{color:mt,background:me.colorBgContainer},[`${$e}-ink-bar`]:{visibility:"hidden"}},[`&${$e}-top, &${$e}-bottom`]:{[`> ${$e}-nav, > div > ${$e}-nav`]:{[`${$e}-tab + ${$e}-tab`]:{marginLeft:{_skip_check_:!0,value:`${Je}px`}}}},[`&${$e}-top`]:{[`> ${$e}-nav, > div > ${$e}-nav`]:{[`${$e}-tab`]:{borderRadius:`${me.borderRadiusLG}px ${me.borderRadiusLG}px 0 0`},[`${$e}-tab-active`]:{borderBottomColor:me.colorBgContainer}}},[`&${$e}-bottom`]:{[`> ${$e}-nav, > div > ${$e}-nav`]:{[`${$e}-tab`]:{borderRadius:`0 0 ${me.borderRadiusLG}px ${me.borderRadiusLG}px`},[`${$e}-tab-active`]:{borderTopColor:me.colorBgContainer}}},[`&${$e}-left, &${$e}-right`]:{[`> ${$e}-nav, > div > ${$e}-nav`]:{[`${$e}-tab + ${$e}-tab`]:{marginTop:`${Je}px`}}},[`&${$e}-left`]:{[`> ${$e}-nav, > div > ${$e}-nav`]:{[`${$e}-tab`]:{borderRadius:{_skip_check_:!0,value:`${me.borderRadiusLG}px 0 0 ${me.borderRadiusLG}px`}},[`${$e}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:me.colorBgContainer}}}},[`&${$e}-right`]:{[`> ${$e}-nav, > div > ${$e}-nav`]:{[`${$e}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${me.borderRadiusLG}px ${me.borderRadiusLG}px 0`}},[`${$e}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:me.colorBgContainer}}}}}}},Mi=me=>{const{componentCls:$e,itemHoverColor:Ve,dropdownEdgeChildVerticalPadding:et}=me;return{[`${$e}-dropdown`]:Object.assign(Object.assign({},(0,ia.Wf)(me)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:me.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${$e}-dropdown-menu`]:{maxHeight:me.tabsDropdownHeight,margin:0,padding:`${et}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:me.colorBgContainer,backgroundClip:"padding-box",borderRadius:me.borderRadiusLG,outline:"none",boxShadow:me.boxShadowSecondary,"&-item":Object.assign(Object.assign({},ia.vS),{display:"flex",alignItems:"center",minWidth:me.tabsDropdownWidth,margin:0,padding:`${me.paddingXXS}px ${me.paddingSM}px`,color:me.colorText,fontWeight:"normal",fontSize:me.fontSize,lineHeight:me.lineHeight,cursor:"pointer",transition:`all ${me.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:me.marginSM},color:me.colorTextDescription,fontSize:me.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:Ve}},"&:hover":{background:me.controlItemBgHover},"&-disabled":{"&, &:hover":{color:me.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Ti=me=>{const{componentCls:$e,margin:Ve,colorBorderSecondary:et,horizontalMargin:Je,verticalItemPadding:ut,verticalItemMargin:mt}=me;return{[`${$e}-top, ${$e}-bottom`]:{flexDirection:"column",[`> ${$e}-nav, > div > ${$e}-nav`]:{margin:Je,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${me.lineWidth}px ${me.lineType} ${et}`,content:"''"},[`${$e}-ink-bar`]:{height:me.lineWidthBold,"&-animated":{transition:`width ${me.motionDurationSlow}, left ${me.motionDurationSlow},
right ${me.motionDurationSlow}`}},[`${$e}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:me.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:me.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:me.boxShadowTabsOverflowRight},[`&${$e}-nav-wrap-ping-left::before`]:{opacity:1},[`&${$e}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${$e}-top`]:{[`> ${$e}-nav,
> div > ${$e}-nav`]:{"&::before":{bottom:0},[`${$e}-ink-bar`]:{bottom:0}}},[`${$e}-bottom`]:{[`> ${$e}-nav, > div > ${$e}-nav`]:{order:1,marginTop:`${Ve}px`,marginBottom:0,"&::before":{top:0},[`${$e}-ink-bar`]:{top:0}},[`> ${$e}-content-holder, > div > ${$e}-content-holder`]:{order:0}},[`${$e}-left, ${$e}-right`]:{[`> ${$e}-nav, > div > ${$e}-nav`]:{flexDirection:"column",minWidth:me.controlHeight*1.25,[`${$e}-tab`]:{padding:ut,textAlign:"center"},[`${$e}-tab + ${$e}-tab`]:{margin:mt},[`${$e}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:me.controlHeight},"&::before":{top:0,boxShadow:me.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:me.boxShadowTabsOverflowBottom},[`&${$e}-nav-wrap-ping-top::before`]:{opacity:1},[`&${$e}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${$e}-ink-bar`]:{width:me.lineWidthBold,"&-animated":{transition:`height ${me.motionDurationSlow}, top ${me.motionDurationSlow}`}},[`${$e}-nav-list, ${$e}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${$e}-left`]:{[`> ${$e}-nav, > div > ${$e}-nav`]:{[`${$e}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${$e}-content-holder, > div > ${$e}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${me.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${me.lineWidth}px ${me.lineType} ${me.colorBorder}`},[`> ${$e}-content > ${$e}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:me.paddingLG}}}},[`${$e}-right`]:{[`> ${$e}-nav, > div > ${$e}-nav`]:{order:1,[`${$e}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${$e}-content-holder, > div > ${$e}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-me.lineWidth},borderRight:{_skip_check_:!0,value:`${me.lineWidth}px ${me.lineType} ${me.colorBorder}`},[`> ${$e}-content > ${$e}-tabpane`]:{paddingRight:{_skip_check_:!0,value:me.paddingLG}}}}}},ji=me=>{const{componentCls:$e,cardPaddingSM:Ve,cardPaddingLG:et,horizontalItemPaddingSM:Je,horizontalItemPaddingLG:ut}=me;return{[$e]:{"&-small":{[`> ${$e}-nav`]:{[`${$e}-tab`]:{padding:Je,fontSize:me.titleFontSizeSM}}},"&-large":{[`> ${$e}-nav`]:{[`${$e}-tab`]:{padding:ut,fontSize:me.titleFontSizeLG}}}},[`${$e}-card`]:{[`&${$e}-small`]:{[`> ${$e}-nav`]:{[`${$e}-tab`]:{padding:Ve}},[`&${$e}-bottom`]:{[`> ${$e}-nav ${$e}-tab`]:{borderRadius:`0 0 ${me.borderRadius}px ${me.borderRadius}px`}},[`&${$e}-top`]:{[`> ${$e}-nav ${$e}-tab`]:{borderRadius:`${me.borderRadius}px ${me.borderRadius}px 0 0`}},[`&${$e}-right`]:{[`> ${$e}-nav ${$e}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${me.borderRadius}px ${me.borderRadius}px 0`}}},[`&${$e}-left`]:{[`> ${$e}-nav ${$e}-tab`]:{borderRadius:{_skip_check_:!0,value:`${me.borderRadius}px 0 0 ${me.borderRadius}px`}}}},[`&${$e}-large`]:{[`> ${$e}-nav`]:{[`${$e}-tab`]:{padding:et}}}}}},Oi=me=>{const{componentCls:$e,itemActiveColor:Ve,itemHoverColor:et,iconCls:Je,tabsHorizontalItemMargin:ut,horizontalItemPadding:mt,itemSelectedColor:Wt,itemColor:sn}=me,Wn=`${$e}-tab`;return{[Wn]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:mt,fontSize:me.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:sn,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:Ve}},(0,ia.Qy)(me)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-me.marginXXS},marginLeft:{_skip_check_:!0,value:me.marginXS},color:me.colorTextDescription,fontSize:me.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${me.motionDurationSlow}`,"&:hover":{color:me.colorTextHeading}},"&:hover":{color:et},[`&${Wn}-active ${Wn}-btn`]:{color:Wt,textShadow:me.tabsActiveTextShadow},[`&${Wn}-disabled`]:{color:me.colorTextDisabled,cursor:"not-allowed"},[`&${Wn}-disabled ${Wn}-btn, &${Wn}-disabled ${$e}-remove`]:{"&:focus, &:active":{color:me.colorTextDisabled}},[`& ${Wn}-remove ${Je}`]:{margin:0},[Je]:{marginRight:{_skip_check_:!0,value:me.marginSM}}},[`${Wn} + ${Wn}`]:{margin:{_skip_check_:!0,value:ut}}}},aa=me=>{const{componentCls:$e,tabsHorizontalItemMarginRTL:Ve,iconCls:et,cardGutter:Je}=me;return{[`${$e}-rtl`]:{direction:"rtl",[`${$e}-nav`]:{[`${$e}-tab`]:{margin:{_skip_check_:!0,value:Ve},[`${$e}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[et]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${me.marginSM}px`}},[`${$e}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${me.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${me.marginXXS}px`},[et]:{margin:0}}}},[`&${$e}-left`]:{[`> ${$e}-nav`]:{order:1},[`> ${$e}-content-holder`]:{order:0}},[`&${$e}-right`]:{[`> ${$e}-nav`]:{order:0},[`> ${$e}-content-holder`]:{order:1}},[`&${$e}-card${$e}-top, &${$e}-card${$e}-bottom`]:{[`> ${$e}-nav, > div > ${$e}-nav`]:{[`${$e}-tab + ${$e}-tab`]:{marginRight:{_skip_check_:!0,value:Je},marginLeft:{_skip_check_:!0,value:0}}}}},[`${$e}-dropdown-rtl`]:{direction:"rtl"},[`${$e}-menu-item`]:{[`${$e}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Da=me=>{const{componentCls:$e,tabsCardPadding:Ve,cardHeight:et,cardGutter:Je,itemHoverColor:ut,itemActiveColor:mt,colorBorderSecondary:Wt}=me;return{[$e]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ia.Wf)(me)),{display:"flex",[`> ${$e}-nav, > div > ${$e}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${$e}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${me.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${$e}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${me.motionDurationSlow}`},[`${$e}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${$e}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${$e}-nav-more`]:{position:"relative",padding:Ve,background:"transparent",border:0,color:me.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:me.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${$e}-nav-add`]:Object.assign({minWidth:et,marginLeft:{_skip_check_:!0,value:Je},padding:`0 ${me.paddingXS}px`,background:"transparent",border:`${me.lineWidth}px ${me.lineType} ${Wt}`,borderRadius:`${me.borderRadiusLG}px ${me.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:me.colorText,transition:`all ${me.motionDurationSlow} ${me.motionEaseInOut}`,"&:hover":{color:ut},"&:active, &:focus:not(:focus-visible)":{color:mt}},(0,ia.Qy)(me))},[`${$e}-extra-content`]:{flex:"none"},[`${$e}-ink-bar`]:{position:"absolute",background:me.inkBarColor,pointerEvents:"none"}}),Oi(me)),{[`${$e}-content`]:{position:"relative",width:"100%"},[`${$e}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${$e}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${$e}-centered`]:{[`> ${$e}-nav, > div > ${$e}-nav`]:{[`${$e}-nav-wrap`]:{[`&:not([class*='${$e}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var wi=(0,on.Z)("Tabs",me=>{const $e=(0,Gt.TS)(me,{tabsCardPadding:me.cardPadding||`${(me.cardHeight-Math.round(me.fontSize*me.lineHeight))/2-me.lineWidth}px ${me.padding}px`,dropdownEdgeChildVerticalPadding:me.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${me.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${me.horizontalItemGutter}px`});return[ji($e),aa($e),Ti($e),Mi($e),si($e),Da($e),Ir($e)]},me=>{const $e=me.controlHeightLG;return{zIndexPopup:me.zIndexPopupBase+50,cardBg:me.colorFillAlter,cardHeight:$e,cardPadding:"",cardPaddingSM:`${me.paddingXXS*1.5}px ${me.padding}px`,cardPaddingLG:`${me.paddingXS}px ${me.padding}px ${me.paddingXXS*1.5}px`,titleFontSize:me.fontSize,titleFontSizeLG:me.fontSizeLG,titleFontSizeSM:me.fontSize,inkBarColor:me.colorPrimary,horizontalMargin:`0 0 ${me.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${me.paddingSM}px 0`,horizontalItemPaddingSM:`${me.paddingXS}px 0`,horizontalItemPaddingLG:`${me.padding}px 0`,verticalItemPadding:`${me.paddingXS}px ${me.paddingLG}px`,verticalItemMargin:`${me.margin}px 0 0 0`,itemColor:me.colorText,itemSelectedColor:me.colorPrimary,itemHoverColor:me.colorPrimaryHover,itemActiveColor:me.colorPrimaryActive,cardGutter:me.marginXXS/2}}),fn=function(me,$e){var Ve={};for(var et in me)Object.prototype.hasOwnProperty.call(me,et)&&$e.indexOf(et)<0&&(Ve[et]=me[et]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,et=Object.getOwnPropertySymbols(me);Je<et.length;Je++)$e.indexOf(et[Je])<0&&Object.prototype.propertyIsEnumerable.call(me,et[Je])&&(Ve[et[Je]]=me[et[Je]]);return Ve};const Rn=me=>{const{type:$e,className:Ve,rootClassName:et,size:Je,onEdit:ut,hideAdd:mt,centered:Wt,addIcon:sn,popupClassName:Wn,children:lr,items:Qn,animated:Tn,style:kn,indicatorSize:mn}=me,Jn=fn(me,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:Dr,moreIcon:cr=Re.createElement(Me.Z,null)}=Jn,{direction:xr,tabs:Er,getPrefixCls:Nr,getPopupContainer:$r}=Re.useContext(Aa.E_),Qe=Nr("tabs",Dr),[rt,Zt]=wi(Qe);let It;$e==="editable-card"&&(It={onEdit:(tr,Or)=>{let{key:Kr,event:ci}=Or;ut==null||ut(tr==="add"?ci:Kr,tr)},removeIcon:Re.createElement(le.Z,null),addIcon:sn||Re.createElement(Ne.Z,null),showAdd:mt!==!0});const gn=Nr(),Un=wo(Qn,lr),Yn=Yi(Qe,Tn),Ar=(0,ra.Z)(Je),gr=Object.assign(Object.assign({},Er==null?void 0:Er.style),kn);return rt(Re.createElement(_a,Object.assign({direction:xr,getPopupContainer:$r,moreTransitionName:`${gn}-slide-up`},Jn,{items:Un,className:be()({[`${Qe}-${Ar}`]:Ar,[`${Qe}-card`]:["card","editable-card"].includes($e),[`${Qe}-editable-card`]:$e==="editable-card",[`${Qe}-centered`]:Wt},Er==null?void 0:Er.className,Ve,et,Zt),popupClassName:be()(Wn,Zt),style:gr,editable:It,moreIcon:cr,prefixCls:Qe,animated:Yn,indicatorSize:mn!=null?mn:Er==null?void 0:Er.indicatorSize})))};Rn.TabPane=ya;var rr=Rn},79870:function(Nn,Nt,te){"use strict";te.d(Nt,{default:function(){return wi}});var le=te(87462),Me=te(4942),Ne=te(71002),Ue=te(1413),be=te(74902),ke=te(15671),de=te(43144),we=te(97326),pe=te(60136),Le=te(51630),nt=te(94184),Re=te.n(nt),We={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Rn){var rr=Rn.keyCode;if(Rn.altKey&&!Rn.ctrlKey||Rn.metaKey||rr>=We.F1&&rr<=We.F12)return!1;switch(rr){case We.ALT:case We.CAPS_LOCK:case We.CONTEXT_MENU:case We.CTRL:case We.DOWN:case We.END:case We.ESC:case We.HOME:case We.INSERT:case We.LEFT:case We.MAC_FF_META:case We.META:case We.NUMLOCK:case We.NUM_CENTER:case We.PAGE_DOWN:case We.PAGE_UP:case We.PAUSE:case We.PRINT_SCREEN:case We.RIGHT:case We.SHIFT:case We.UP:case We.WIN_KEY:case We.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Rn){if(Rn>=We.ZERO&&Rn<=We.NINE||Rn>=We.NUM_ZERO&&Rn<=We.NUM_MULTIPLY||Rn>=We.A&&Rn<=We.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Rn===0)return!0;switch(Rn){case We.SPACE:case We.QUESTION_MARK:case We.NUM_PLUS:case We.NUM_MINUS:case We.NUM_PERIOD:case We.NUM_DIVISION:case We.SEMICOLON:case We.DASH:case We.EQUALS:case We.COMMA:case We.PERIOD:case We.SLASH:case We.APOSTROPHE:case We.SINGLE_QUOTE:case We.OPEN_SQUARE_BRACKET:case We.BACKSLASH:case We.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},qe=We,lt=te(34952),Xe=te(72978),ye=te(67294),vt=te(69610);function Pt(fn){var Rn=fn.dropPosition,rr=fn.dropLevelOffset,me=fn.indent,$e={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Rn){case-1:$e.top=0,$e.left=-rr*me;break;case 1:$e.bottom=0,$e.left=-rr*me;break;case 0:$e.bottom=0,$e.left=me;break}return ye.createElement("div",{style:$e})}var ot=te(36459),ct=te(97685),Se=te(45987);function ce(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var He=ce()?ye.useLayoutEffect:ye.useEffect,je=He,it=function(Rn,rr){var me=React.useRef(!0);He(function(){if(!me.current)return Rn()},rr),He(function(){return me.current=!1,function(){me.current=!0}},[])},at=te(73299),Ge=te(73935);function Ae(fn){return fn instanceof HTMLElement||fn instanceof SVGElement}function wt(fn){return Ae(fn)?fn:fn instanceof ye.Component?Ge.findDOMNode(fn):null}var dt=te(28580);function $t(fn,Rn,rr){var me=React.useRef({});return(!("value"in me.current)||rr(me.current.condition,Rn))&&(me.current.value=fn(),me.current.condition=Rn),me.current.value}function bt(fn,Rn){typeof fn=="function"?fn(Rn):(0,Ne.Z)(fn)==="object"&&fn&&"current"in fn&&(fn.current=Rn)}function Ot(){for(var fn=arguments.length,Rn=new Array(fn),rr=0;rr<fn;rr++)Rn[rr]=arguments[rr];var me=Rn.filter(function($e){return $e});return me.length<=1?me[0]:function($e){Rn.forEach(function(Ve){bt(Ve,$e)})}}function Pn(){for(var fn=arguments.length,Rn=new Array(fn),rr=0;rr<fn;rr++)Rn[rr]=arguments[rr];return useMemo(function(){return Ot.apply(void 0,Rn)},Rn,function(me,$e){return me.length===$e.length&&me.every(function(Ve,et){return Ve===$e[et]})})}function $n(fn){var Rn,rr,me=(0,dt.isMemo)(fn)?fn.type.type:fn.type;return!(typeof me=="function"&&!((Rn=me.prototype)!==null&&Rn!==void 0&&Rn.render)||typeof fn=="function"&&!((rr=fn.prototype)!==null&&rr!==void 0&&rr.render))}function yt(fn,Rn){var rr={};return rr[fn.toLowerCase()]=Rn.toLowerCase(),rr["Webkit".concat(fn)]="webkit".concat(Rn),rr["Moz".concat(fn)]="moz".concat(Rn),rr["ms".concat(fn)]="MS".concat(Rn),rr["O".concat(fn)]="o".concat(Rn.toLowerCase()),rr}function Be(fn,Rn){var rr={animationend:yt("Animation","AnimationEnd"),transitionend:yt("Transition","TransitionEnd")};return fn&&("AnimationEvent"in Rn||delete rr.animationend.animation,"TransitionEvent"in Rn||delete rr.transitionend.transition),rr}var Rt=Be(ce(),typeof window!="undefined"?window:{}),Vn={};if(ce()){var In=document.createElement("div");Vn=In.style}var xt={};function Mt(fn){if(xt[fn])return xt[fn];var Rn=Rt[fn];if(Rn)for(var rr=Object.keys(Rn),me=rr.length,$e=0;$e<me;$e+=1){var Ve=rr[$e];if(Object.prototype.hasOwnProperty.call(Rn,Ve)&&Ve in Vn)return xt[fn]=Rn[Ve],xt[fn]}return""}var qt=Mt("animationend"),an=Mt("transitionend"),ln=!!(qt&&an),Yt=qt||"animationend",Cn=an||"transitionend";function pr(fn,Rn){if(!fn)return null;if((0,Ne.Z)(fn)==="object"){var rr=Rn.replace(/-\w/g,function(me){return me[1].toUpperCase()});return fn[rr]}return"".concat(fn,"-").concat(Rn)}var Xn="none",ze="appear",fe="enter",ue="leave",xe="none",ge="prepare",se="start",Fe="active",st="end";function en(fn){var Rn=ye.useRef(!1),rr=ye.useState(fn),me=(0,ct.Z)(rr,2),$e=me[0],Ve=me[1];ye.useEffect(function(){return Rn.current=!1,function(){Rn.current=!0}},[]);function et(Je,ut){ut&&Rn.current||Ve(Je)}return[$e,et]}var Sn=function(Rn){return+setTimeout(Rn,16)},dn=function(Rn){return clearTimeout(Rn)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Sn=function(Rn){return window.requestAnimationFrame(Rn)},dn=function(Rn){return window.cancelAnimationFrame(Rn)});var zn=0,vn=new Map;function kt(fn){vn.delete(fn)}var Xt=function(Rn){var rr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;zn+=1;var me=zn;function $e(Ve){if(Ve===0)kt(me),Rn();else{var et=Sn(function(){$e(Ve-1)});vn.set(me,et)}}return $e(rr),me};Xt.cancel=function(fn){var Rn=vn.get(fn);return kt(Rn),dn(Rn)};var Jt=Xt,jt=function(){var fn=ye.useRef(null);function Rn(){Jt.cancel(fn.current)}function rr(me){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;Rn();var Ve=Jt(function(){$e<=1?me({isCanceled:function(){return Ve!==fn.current}}):rr(me,$e-1)});fn.current=Ve}return ye.useEffect(function(){return function(){Rn()}},[]),[rr,Rn]},Bt=ce()?ye.useLayoutEffect:ye.useEffect,ir=Bt,Ct=[ge,se,Fe,st],At=!1,er=!0;function An(fn){return fn===Fe||fn===st}var fr=function(fn,Rn){var rr=en(xe),me=(0,ct.Z)(rr,2),$e=me[0],Ve=me[1],et=jt(),Je=(0,ct.Z)(et,2),ut=Je[0],mt=Je[1];function Wt(){Ve(ge,!0)}return ir(function(){if($e!==xe&&$e!==st){var sn=Ct.indexOf($e),Wn=Ct[sn+1],lr=Rn($e);lr===At?Ve(Wn,!0):ut(function(Qn){function Tn(){Qn.isCanceled()||Ve(Wn,!0)}lr===!0?Tn():Promise.resolve(lr).then(Tn)})}},[fn,$e]),ye.useEffect(function(){return function(){mt()}},[]),[Wt,$e]},Rr=function(fn){var Rn=(0,ye.useRef)(),rr=(0,ye.useRef)(fn);rr.current=fn;var me=ye.useCallback(function(et){rr.current(et)},[]);function $e(et){et&&(et.removeEventListener(Cn,me),et.removeEventListener(Yt,me))}function Ve(et){Rn.current&&Rn.current!==et&&$e(Rn.current),et&&et!==Rn.current&&(et.addEventListener(Cn,me),et.addEventListener(Yt,me),Rn.current=et)}return ye.useEffect(function(){return function(){$e(Rn.current)}},[]),[Ve,$e]};function ii(fn,Rn,rr,me){var $e=me.motionEnter,Ve=$e===void 0?!0:$e,et=me.motionAppear,Je=et===void 0?!0:et,ut=me.motionLeave,mt=ut===void 0?!0:ut,Wt=me.motionDeadline,sn=me.motionLeaveImmediately,Wn=me.onAppearPrepare,lr=me.onEnterPrepare,Qn=me.onLeavePrepare,Tn=me.onAppearStart,kn=me.onEnterStart,mn=me.onLeaveStart,Jn=me.onAppearActive,Dr=me.onEnterActive,cr=me.onLeaveActive,xr=me.onAppearEnd,Er=me.onEnterEnd,Nr=me.onLeaveEnd,$r=me.onVisibleChanged,Qe=en(),rt=(0,ct.Z)(Qe,2),Zt=rt[0],It=rt[1],gn=en(Xn),Un=(0,ct.Z)(gn,2),Yn=Un[0],Ar=Un[1],gr=en(null),tr=(0,ct.Z)(gr,2),Or=tr[0],Kr=tr[1],ci=(0,ye.useRef)(!1),Hr=(0,ye.useRef)(null);function yi(){return rr()}var Ii=(0,ye.useRef)(!1);function Si(la){var ga=yi();if(!(la&&!la.deadline&&la.target!==ga)){var Xi=Ii.current,Ba;Yn===ze&&Xi?Ba=xr==null?void 0:xr(ga,la):Yn===fe&&Xi?Ba=Er==null?void 0:Er(ga,la):Yn===ue&&Xi&&(Ba=Nr==null?void 0:Nr(ga,la)),Yn!==Xn&&Xi&&Ba!==!1&&(Ar(Xn,!0),Kr(null,!0))}}var Ni=Rr(Si),gi=(0,ct.Z)(Ni,1),Di=gi[0],Ri=ye.useMemo(function(){var la,ga,Xi;switch(Yn){case ze:return la={},(0,Me.Z)(la,ge,Wn),(0,Me.Z)(la,se,Tn),(0,Me.Z)(la,Fe,Jn),la;case fe:return ga={},(0,Me.Z)(ga,ge,lr),(0,Me.Z)(ga,se,kn),(0,Me.Z)(ga,Fe,Dr),ga;case ue:return Xi={},(0,Me.Z)(Xi,ge,Qn),(0,Me.Z)(Xi,se,mn),(0,Me.Z)(Xi,Fe,cr),Xi;default:return{}}},[Yn]),sa=fr(Yn,function(la){if(la===ge){var ga=Ri[ge];return ga?ga(yi()):At}if(Ca in Ri){var Xi;Kr(((Xi=Ri[Ca])===null||Xi===void 0?void 0:Xi.call(Ri,yi(),null))||null)}return Ca===Fe&&(Di(yi()),Wt>0&&(clearTimeout(Hr.current),Hr.current=setTimeout(function(){Si({deadline:!0})},Wt))),er}),bi=(0,ct.Z)(sa,2),ba=bi[0],Ca=bi[1],Co=An(Ca);Ii.current=Co,ir(function(){It(Rn);var la=ci.current;if(ci.current=!0,!!fn){var ga;!la&&Rn&&Je&&(ga=ze),la&&Rn&&Ve&&(ga=fe),(la&&!Rn&&mt||!la&&sn&&!Rn&&mt)&&(ga=ue),ga&&(Ar(ga),ba())}},[Rn]),(0,ye.useEffect)(function(){(Yn===ze&&!Je||Yn===fe&&!Ve||Yn===ue&&!mt)&&Ar(Xn)},[Je,Ve,mt]),(0,ye.useEffect)(function(){return function(){ci.current=!1,clearTimeout(Hr.current)}},[]);var Qa=ye.useRef(!1);(0,ye.useEffect)(function(){Zt&&(Qa.current=!0),Zt!==void 0&&Yn===Xn&&((Qa.current||Zt)&&($r==null||$r(Zt)),Qa.current=!0)},[Zt,Yn]);var za=Or;return Ri[ge]&&Ca===se&&(za=(0,Ue.Z)({transition:"none"},za)),[Yn,Ca,za,Zt!=null?Zt:Rn]}var Yr=function(fn){(0,pe.Z)(rr,fn);var Rn=(0,Le.Z)(rr);function rr(){return(0,ke.Z)(this,rr),Rn.apply(this,arguments)}return(0,de.Z)(rr,[{key:"render",value:function(){return this.props.children}}]),rr}(ye.Component),Jr=Yr;function mi(fn){var Rn=fn;(0,Ne.Z)(fn)==="object"&&(Rn=fn.transitionSupport);function rr($e){return!!($e.motionName&&Rn)}var me=ye.forwardRef(function($e,Ve){var et=$e.visible,Je=et===void 0?!0:et,ut=$e.removeOnLeave,mt=ut===void 0?!0:ut,Wt=$e.forceRender,sn=$e.children,Wn=$e.motionName,lr=$e.leavedClassName,Qn=$e.eventProps,Tn=rr($e),kn=(0,ye.useRef)(),mn=(0,ye.useRef)();function Jn(){try{return kn.current instanceof HTMLElement?kn.current:wt(mn.current)}catch(gr){return null}}var Dr=ii(Tn,Je,Jn,$e),cr=(0,ct.Z)(Dr,4),xr=cr[0],Er=cr[1],Nr=cr[2],$r=cr[3],Qe=ye.useRef($r);$r&&(Qe.current=!0);var rt=ye.useCallback(function(gr){kn.current=gr,bt(Ve,gr)},[Ve]),Zt,It=(0,Ue.Z)((0,Ue.Z)({},Qn),{},{visible:Je});if(!sn)Zt=null;else if(xr===Xn||!rr($e))$r?Zt=sn((0,Ue.Z)({},It),rt):!mt&&Qe.current&&lr?Zt=sn((0,Ue.Z)((0,Ue.Z)({},It),{},{className:lr}),rt):Wt||!mt&&!lr?Zt=sn((0,Ue.Z)((0,Ue.Z)({},It),{},{style:{display:"none"}}),rt):Zt=null;else{var gn,Un;Er===ge?Un="prepare":An(Er)?Un="active":Er===se&&(Un="start"),Zt=sn((0,Ue.Z)((0,Ue.Z)({},It),{},{className:Re()(pr(Wn,xr),(gn={},(0,Me.Z)(gn,pr(Wn,"".concat(xr,"-").concat(Un)),Un),(0,Me.Z)(gn,Wn,typeof Wn=="string"),gn)),style:Nr}),rt)}if(ye.isValidElement(Zt)&&$n(Zt)){var Yn=Zt,Ar=Yn.ref;Ar||(Zt=ye.cloneElement(Zt,{ref:rt}))}return ye.createElement(Jr,{ref:mn},Zt)});return me.displayName="CSSMotion",me}var Br=mi(ln),ki="add",Vi="keep",ha="remove",pa="removed";function Ui(fn){var Rn;return fn&&(0,Ne.Z)(fn)==="object"&&"key"in fn?Rn=fn:Rn={key:fn},(0,Ue.Z)((0,Ue.Z)({},Rn),{},{key:String(Rn.key)})}function Ut(){var fn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return fn.map(Ui)}function Qt(){var fn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],rr=[],me=0,$e=Rn.length,Ve=Ut(fn),et=Ut(Rn);Ve.forEach(function(mt){for(var Wt=!1,sn=me;sn<$e;sn+=1){var Wn=et[sn];if(Wn.key===mt.key){me<sn&&(rr=rr.concat(et.slice(me,sn).map(function(lr){return(0,Ue.Z)((0,Ue.Z)({},lr),{},{status:ki})})),me=sn),rr.push((0,Ue.Z)((0,Ue.Z)({},Wn),{},{status:Vi})),me+=1,Wt=!0;break}}Wt||rr.push((0,Ue.Z)((0,Ue.Z)({},mt),{},{status:ha}))}),me<$e&&(rr=rr.concat(et.slice(me).map(function(mt){return(0,Ue.Z)((0,Ue.Z)({},mt),{},{status:ki})})));var Je={};rr.forEach(function(mt){var Wt=mt.key;Je[Wt]=(Je[Wt]||0)+1});var ut=Object.keys(Je).filter(function(mt){return Je[mt]>1});return ut.forEach(function(mt){rr=rr.filter(function(Wt){var sn=Wt.key,Wn=Wt.status;return sn!==mt||Wn!==ha}),rr.forEach(function(Wt){Wt.key===mt&&(Wt.status=Vi)})}),rr}var un=["component","children","onVisibleChanged","onAllRemoved"],Bn=["status"],Cr=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function qn(fn){var Rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Br,rr=function(me){(0,pe.Z)(Ve,me);var $e=(0,Le.Z)(Ve);function Ve(){var et;(0,ke.Z)(this,Ve);for(var Je=arguments.length,ut=new Array(Je),mt=0;mt<Je;mt++)ut[mt]=arguments[mt];return et=$e.call.apply($e,[this].concat(ut)),(0,Me.Z)((0,we.Z)(et),"state",{keyEntities:[]}),(0,Me.Z)((0,we.Z)(et),"removeKey",function(Wt){var sn=et.state.keyEntities,Wn=sn.map(function(lr){return lr.key!==Wt?lr:(0,Ue.Z)((0,Ue.Z)({},lr),{},{status:pa})});return et.setState({keyEntities:Wn}),Wn.filter(function(lr){var Qn=lr.status;return Qn!==pa}).length}),et}return(0,de.Z)(Ve,[{key:"render",value:function(){var Je=this,ut=this.state.keyEntities,mt=this.props,Wt=mt.component,sn=mt.children,Wn=mt.onVisibleChanged,lr=mt.onAllRemoved,Qn=(0,Se.Z)(mt,un),Tn=Wt||ye.Fragment,kn={};return Cr.forEach(function(mn){kn[mn]=Qn[mn],delete Qn[mn]}),delete Qn.keys,ye.createElement(Tn,Qn,ut.map(function(mn){var Jn=mn.status,Dr=(0,Se.Z)(mn,Bn),cr=Jn===ki||Jn===Vi;return ye.createElement(Rn,(0,le.Z)({},kn,{key:Dr.key,visible:cr,eventProps:Dr,onVisibleChanged:function(Er){if(Wn==null||Wn(Er,{key:Dr.key}),!Er){var Nr=Je.removeKey(Dr.key);Nr===0&&lr&&lr()}}}),sn)}))}}],[{key:"getDerivedStateFromProps",value:function(Je,ut){var mt=Je.keys,Wt=ut.keyEntities,sn=Ut(mt),Wn=Qt(Wt,sn);return{keyEntities:Wn.filter(function(lr){var Qn=Wt.find(function(Tn){var kn=Tn.key;return lr.key===kn});return!(Qn&&Qn.status===pa&&lr.status===ha)})}}}]),Ve}(ye.Component);return(0,Me.Z)(rr,"defaultProps",{component:"div"}),rr}var Lr=qn(ln),or=Br,Et=te(56261);function _t(fn,Rn){var rr=ye.useState(!1),me=(0,ct.Z)(rr,2),$e=me[0],Ve=me[1];ye.useLayoutEffect(function(){if($e)return fn(),function(){Rn()}},[$e]),ye.useLayoutEffect(function(){return Ve(!0),function(){Ve(!1)}},[])}var zt=te(83898),wn=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],ft=function(Rn,rr){var me=Rn.className,$e=Rn.style,Ve=Rn.motion,et=Rn.motionNodes,Je=Rn.motionType,ut=Rn.onMotionStart,mt=Rn.onMotionEnd,Wt=Rn.active,sn=Rn.treeNodeRequiredProps,Wn=(0,Se.Z)(Rn,wn),lr=ye.useState(!0),Qn=(0,ct.Z)(lr,2),Tn=Qn[0],kn=Qn[1],mn=ye.useContext(vt.k),Jn=mn.prefixCls,Dr=et&&Je!=="hide";je(function(){et&&Dr!==Tn&&kn(Dr)},[et]);var cr=function(){et&&ut()},xr=ye.useRef(!1),Er=function(){et&&!xr.current&&(xr.current=!0,mt())};_t(cr,Er);var Nr=function(Qe){Dr===Qe&&Er()};return et?ye.createElement(or,(0,le.Z)({ref:rr,visible:Tn},Ve,{motionAppear:Je==="show",onVisibleChanged:Nr}),function($r,Qe){var rt=$r.className,Zt=$r.style;return ye.createElement("div",{ref:Qe,className:Re()("".concat(Jn,"-treenode-motion"),rt),style:Zt},et.map(function(It){var gn=(0,le.Z)({},((0,ot.Z)(It.data),It.data)),Un=It.title,Yn=It.key,Ar=It.isStart,gr=It.isEnd;delete gn.children;var tr=(0,zt.H8)(Yn,sn);return ye.createElement(Et.Z,(0,le.Z)({},gn,tr,{title:Un,active:Wt,data:It.data,key:Yn,isStart:Ar,isEnd:gr}))}))}):ye.createElement(Et.Z,(0,le.Z)({domRef:rr,className:me,style:$e},Wn,{active:Wt}))};ft.displayName="MotionTreeNode";var Ht=ye.forwardRef(ft),xn=Ht;function En(){var fn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],rr=fn.length,me=Rn.length;if(Math.abs(rr-me)!==1)return{add:!1,key:null};function $e(Ve,et){var Je=new Map;Ve.forEach(function(mt){Je.set(mt,!0)});var ut=et.filter(function(mt){return!Je.has(mt)});return ut.length===1?ut[0]:null}return rr<me?{add:!0,key:$e(fn,Rn)}:{add:!1,key:$e(Rn,fn)}}function Hn(fn,Rn,rr){var me=fn.findIndex(function(Je){return Je.key===rr}),$e=fn[me+1],Ve=Rn.findIndex(function(Je){return Je.key===rr});if($e){var et=Rn.findIndex(function(Je){return Je.key===$e.key});return Rn.slice(Ve+1,et)}return Rn.slice(Ve+1)}var Gn=["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"],br={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},fi=function(){},Gr="RC_TREE_MOTION_".concat(Math.random()),Vr={key:Gr},ai={key:Gr,level:0,index:0,pos:"0",node:Vr,nodes:[Vr]},ei={parent:null,children:[],pos:ai.pos,data:Vr,title:null,key:Gr,isStart:[],isEnd:[]};function Vt(fn,Rn,rr,me){return Rn===!1||!rr?fn:fn.slice(0,Math.ceil(rr/me)+1)}function Kt(fn){var Rn=fn.key,rr=fn.pos;return(0,zt.km)(Rn,rr)}function nn(fn){for(var Rn=String(fn.data.key),rr=fn;rr.parent;)rr=rr.parent,Rn="".concat(rr.data.key," > ").concat(Rn);return Rn}var sr=ye.forwardRef(function(fn,Rn){var rr=fn.prefixCls,me=fn.data,$e=fn.selectable,Ve=fn.checkable,et=fn.expandedKeys,Je=fn.selectedKeys,ut=fn.checkedKeys,mt=fn.loadedKeys,Wt=fn.loadingKeys,sn=fn.halfCheckedKeys,Wn=fn.keyEntities,lr=fn.disabled,Qn=fn.dragging,Tn=fn.dragOverNodeKey,kn=fn.dropPosition,mn=fn.motion,Jn=fn.height,Dr=fn.itemHeight,cr=fn.virtual,xr=fn.focusable,Er=fn.activeItem,Nr=fn.focused,$r=fn.tabIndex,Qe=fn.onKeyDown,rt=fn.onFocus,Zt=fn.onBlur,It=fn.onActiveChange,gn=fn.onListChangeStart,Un=fn.onListChangeEnd,Yn=(0,Se.Z)(fn,Gn),Ar=ye.useRef(null),gr=ye.useRef(null);ye.useImperativeHandle(Rn,function(){return{scrollTo:function(Ea){Ar.current.scrollTo(Ea)},getIndentWidth:function(){return gr.current.offsetWidth}}});var tr=ye.useState(et),Or=(0,ct.Z)(tr,2),Kr=Or[0],ci=Or[1],Hr=ye.useState(me),yi=(0,ct.Z)(Hr,2),Ii=yi[0],Si=yi[1],Ni=ye.useState(me),gi=(0,ct.Z)(Ni,2),Di=gi[0],Ri=gi[1],sa=ye.useState([]),bi=(0,ct.Z)(sa,2),ba=bi[0],Ca=bi[1],Co=ye.useState(null),Qa=(0,ct.Z)(Co,2),za=Qa[0],la=Qa[1],ga=ye.useRef(me);ga.current=me;function Xi(){var Bi=ga.current;Si(Bi),Ri(Bi),Ca([]),la(null),Un()}je(function(){ci(et);var Bi=En(Kr,et);if(Bi.key!==null)if(Bi.add){var Ea=Ii.findIndex(function(co){var xa=co.key;return xa===Bi.key}),Va=Vt(Hn(Ii,me,Bi.key),cr,Jn,Dr),Jo=Ii.slice();Jo.splice(Ea+1,0,ei),Ri(Jo),Ca(Va),la("show")}else{var zo=me.findIndex(function(co){var xa=co.key;return xa===Bi.key}),Oo=Vt(Hn(me,Ii,Bi.key),cr,Jn,Dr),Po=me.slice();Po.splice(zo+1,0,ei),Ri(Po),Ca(Oo),la("hide")}else Ii!==me&&(Si(me),Ri(me))},[et,me]),ye.useEffect(function(){Qn||Xi()},[Qn]);var Ba=mn?Di:me,Qi={expandedKeys:et,selectedKeys:Je,loadedKeys:mt,loadingKeys:Wt,checkedKeys:ut,halfCheckedKeys:sn,dragOverNodeKey:Tn,dropPosition:kn,keyEntities:Wn};return ye.createElement(ye.Fragment,null,Nr&&Er&&ye.createElement("span",{style:br,"aria-live":"assertive"},nn(Er)),ye.createElement("div",null,ye.createElement("input",{style:br,disabled:xr===!1||lr,tabIndex:xr!==!1?$r:null,onKeyDown:Qe,onFocus:rt,onBlur:Zt,value:"",onChange:fi,"aria-label":"for screen reader"})),ye.createElement("div",{className:"".concat(rr,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ye.createElement("div",{className:"".concat(rr,"-indent")},ye.createElement("div",{ref:gr,className:"".concat(rr,"-indent-unit")}))),ye.createElement(at.Z,(0,le.Z)({},Yn,{data:Ba,itemKey:Kt,height:Jn,fullHeight:!1,virtual:cr,itemHeight:Dr,prefixCls:"".concat(rr,"-list"),ref:Ar,onVisibleChange:function(Ea,Va){var Jo=new Set(Ea),zo=Va.filter(function(Oo){return!Jo.has(Oo)});zo.some(function(Oo){return Kt(Oo)===Gr})&&Xi()}}),function(Bi){var Ea=Bi.pos,Va=(0,le.Z)({},((0,ot.Z)(Bi.data),Bi.data)),Jo=Bi.title,zo=Bi.key,Oo=Bi.isStart,Po=Bi.isEnd,co=(0,zt.km)(zo,Ea);delete Va.key,delete Va.children;var xa=(0,zt.H8)(co,Qi);return ye.createElement(xn,(0,le.Z)({},Va,xa,{title:Jo,active:!!Er&&zo===Er.key,pos:Ea,data:Bi.data,isStart:Oo,isEnd:Po,motion:mn,motionNodes:zo===Gr?ba:null,motionType:za,onMotionStart:gn,onMotionEnd:Xi,treeNodeRequiredProps:Qi,onMouseMove:function(){It(null)}}))}))});sr.displayName="NodeList";var Tr=sr,Fn=te(29873),mr=te(97153),ur=te(3596),zr=10,ti=function(fn){(0,pe.Z)(rr,fn);var Rn=(0,Le.Z)(rr);function rr(){var me;(0,ke.Z)(this,rr);for(var $e=arguments.length,Ve=new Array($e),et=0;et<$e;et++)Ve[et]=arguments[et];return me=Rn.call.apply(Rn,[this].concat(Ve)),me.destroyed=!1,me.delayedDragEnterLogic=void 0,me.loadingRetryTimes={},me.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,zt.w$)()},me.dragStartMousePosition=null,me.dragNode=void 0,me.currentMouseOverDroppableNodeKey=null,me.listRef=ye.createRef(),me.onNodeDragStart=function(Je,ut){var mt=me.state,Wt=mt.expandedKeys,sn=mt.keyEntities,Wn=me.props.onDragStart,lr=ut.props.eventKey;me.dragNode=ut,me.dragStartMousePosition={x:Je.clientX,y:Je.clientY};var Qn=(0,Fn._5)(Wt,lr);me.setState({draggingNodeKey:lr,dragChildrenKeys:(0,Fn.wA)(lr,sn),indent:me.listRef.current.getIndentWidth()}),me.setExpandedKeys(Qn),window.addEventListener("dragend",me.onWindowDragEnd),Wn==null||Wn({event:Je,node:(0,zt.F)(ut.props)})},me.onNodeDragEnter=function(Je,ut){var mt=me.state,Wt=mt.expandedKeys,sn=mt.keyEntities,Wn=mt.dragChildrenKeys,lr=mt.flattenNodes,Qn=mt.indent,Tn=me.props,kn=Tn.onDragEnter,mn=Tn.onExpand,Jn=Tn.allowDrop,Dr=Tn.direction,cr=ut.props,xr=cr.pos,Er=cr.eventKey,Nr=(0,we.Z)(me),$r=Nr.dragNode;if(me.currentMouseOverDroppableNodeKey!==Er&&(me.currentMouseOverDroppableNodeKey=Er),!$r){me.resetDragState();return}var Qe=(0,Fn.OM)(Je,$r,ut,Qn,me.dragStartMousePosition,Jn,lr,sn,Wt,Dr),rt=Qe.dropPosition,Zt=Qe.dropLevelOffset,It=Qe.dropTargetKey,gn=Qe.dropContainerKey,Un=Qe.dropTargetPos,Yn=Qe.dropAllowed,Ar=Qe.dragOverNodeKey;if(Wn.indexOf(It)!==-1||!Yn){me.resetDragState();return}if(me.delayedDragEnterLogic||(me.delayedDragEnterLogic={}),Object.keys(me.delayedDragEnterLogic).forEach(function(gr){clearTimeout(me.delayedDragEnterLogic[gr])}),$r.props.eventKey!==ut.props.eventKey&&(Je.persist(),me.delayedDragEnterLogic[xr]=window.setTimeout(function(){if(me.state.draggingNodeKey!==null){var gr=(0,be.Z)(Wt),tr=(0,ur.Z)(sn,ut.props.eventKey);tr&&(tr.children||[]).length&&(gr=(0,Fn.L0)(Wt,ut.props.eventKey)),"expandedKeys"in me.props||me.setExpandedKeys(gr),mn==null||mn(gr,{node:(0,zt.F)(ut.props),expanded:!0,nativeEvent:Je.nativeEvent})}},800)),$r.props.eventKey===It&&Zt===0){me.resetDragState();return}me.setState({dragOverNodeKey:Ar,dropPosition:rt,dropLevelOffset:Zt,dropTargetKey:It,dropContainerKey:gn,dropTargetPos:Un,dropAllowed:Yn}),kn==null||kn({event:Je,node:(0,zt.F)(ut.props),expandedKeys:Wt})},me.onNodeDragOver=function(Je,ut){var mt=me.state,Wt=mt.dragChildrenKeys,sn=mt.flattenNodes,Wn=mt.keyEntities,lr=mt.expandedKeys,Qn=mt.indent,Tn=me.props,kn=Tn.onDragOver,mn=Tn.allowDrop,Jn=Tn.direction,Dr=(0,we.Z)(me),cr=Dr.dragNode;if(cr){var xr=(0,Fn.OM)(Je,cr,ut,Qn,me.dragStartMousePosition,mn,sn,Wn,lr,Jn),Er=xr.dropPosition,Nr=xr.dropLevelOffset,$r=xr.dropTargetKey,Qe=xr.dropContainerKey,rt=xr.dropAllowed,Zt=xr.dropTargetPos,It=xr.dragOverNodeKey;Wt.indexOf($r)!==-1||!rt||(cr.props.eventKey===$r&&Nr===0?me.state.dropPosition===null&&me.state.dropLevelOffset===null&&me.state.dropTargetKey===null&&me.state.dropContainerKey===null&&me.state.dropTargetPos===null&&me.state.dropAllowed===!1&&me.state.dragOverNodeKey===null||me.resetDragState():Er===me.state.dropPosition&&Nr===me.state.dropLevelOffset&&$r===me.state.dropTargetKey&&Qe===me.state.dropContainerKey&&Zt===me.state.dropTargetPos&&rt===me.state.dropAllowed&&It===me.state.dragOverNodeKey||me.setState({dropPosition:Er,dropLevelOffset:Nr,dropTargetKey:$r,dropContainerKey:Qe,dropTargetPos:Zt,dropAllowed:rt,dragOverNodeKey:It}),kn==null||kn({event:Je,node:(0,zt.F)(ut.props)}))}},me.onNodeDragLeave=function(Je,ut){me.currentMouseOverDroppableNodeKey===ut.props.eventKey&&!Je.currentTarget.contains(Je.relatedTarget)&&(me.resetDragState(),me.currentMouseOverDroppableNodeKey=null);var mt=me.props.onDragLeave;mt==null||mt({event:Je,node:(0,zt.F)(ut.props)})},me.onWindowDragEnd=function(Je){me.onNodeDragEnd(Je,null,!0),window.removeEventListener("dragend",me.onWindowDragEnd)},me.onNodeDragEnd=function(Je,ut){var mt=me.props.onDragEnd;me.setState({dragOverNodeKey:null}),me.cleanDragState(),mt==null||mt({event:Je,node:(0,zt.F)(ut.props)}),me.dragNode=null,window.removeEventListener("dragend",me.onWindowDragEnd)},me.onNodeDrop=function(Je,ut){var mt,Wt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,sn=me.state,Wn=sn.dragChildrenKeys,lr=sn.dropPosition,Qn=sn.dropTargetKey,Tn=sn.dropTargetPos,kn=sn.dropAllowed;if(kn){var mn=me.props.onDrop;if(me.setState({dragOverNodeKey:null}),me.cleanDragState(),Qn!==null){var Jn=(0,Ue.Z)((0,Ue.Z)({},(0,zt.H8)(Qn,me.getTreeNodeRequiredProps())),{},{active:((mt=me.getActiveItem())===null||mt===void 0?void 0:mt.key)===Qn,data:(0,ur.Z)(me.state.keyEntities,Qn).node}),Dr=Wn.indexOf(Qn)!==-1;(0,Xe.ZP)(!Dr,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var cr=(0,Fn.yx)(Tn),xr={event:Je,node:(0,zt.F)(Jn),dragNode:me.dragNode?(0,zt.F)(me.dragNode.props):null,dragNodesKeys:[me.dragNode.props.eventKey].concat(Wn),dropToGap:lr!==0,dropPosition:lr+Number(cr[cr.length-1])};Wt||mn==null||mn(xr),me.dragNode=null}}},me.cleanDragState=function(){var Je=me.state.draggingNodeKey;Je!==null&&me.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),me.dragStartMousePosition=null,me.currentMouseOverDroppableNodeKey=null},me.triggerExpandActionExpand=function(Je,ut){var mt=me.state,Wt=mt.expandedKeys,sn=mt.flattenNodes,Wn=ut.expanded,lr=ut.key,Qn=ut.isLeaf;if(!(Qn||Je.shiftKey||Je.metaKey||Je.ctrlKey)){var Tn=sn.filter(function(mn){return mn.key===lr})[0],kn=(0,zt.F)((0,Ue.Z)((0,Ue.Z)({},(0,zt.H8)(lr,me.getTreeNodeRequiredProps())),{},{data:Tn.data}));me.setExpandedKeys(Wn?(0,Fn._5)(Wt,lr):(0,Fn.L0)(Wt,lr)),me.onNodeExpand(Je,kn)}},me.onNodeClick=function(Je,ut){var mt=me.props,Wt=mt.onClick,sn=mt.expandAction;sn==="click"&&me.triggerExpandActionExpand(Je,ut),Wt==null||Wt(Je,ut)},me.onNodeDoubleClick=function(Je,ut){var mt=me.props,Wt=mt.onDoubleClick,sn=mt.expandAction;sn==="doubleClick"&&me.triggerExpandActionExpand(Je,ut),Wt==null||Wt(Je,ut)},me.onNodeSelect=function(Je,ut){var mt=me.state.selectedKeys,Wt=me.state,sn=Wt.keyEntities,Wn=Wt.fieldNames,lr=me.props,Qn=lr.onSelect,Tn=lr.multiple,kn=ut.selected,mn=ut[Wn.key],Jn=!kn;Jn?Tn?mt=(0,Fn.L0)(mt,mn):mt=[mn]:mt=(0,Fn._5)(mt,mn);var Dr=mt.map(function(cr){var xr=(0,ur.Z)(sn,cr);return xr?xr.node:null}).filter(function(cr){return cr});me.setUncontrolledState({selectedKeys:mt}),Qn==null||Qn(mt,{event:"select",selected:Jn,node:ut,selectedNodes:Dr,nativeEvent:Je.nativeEvent})},me.onNodeCheck=function(Je,ut,mt){var Wt=me.state,sn=Wt.keyEntities,Wn=Wt.checkedKeys,lr=Wt.halfCheckedKeys,Qn=me.props,Tn=Qn.checkStrictly,kn=Qn.onCheck,mn=ut.key,Jn,Dr={event:"check",node:ut,checked:mt,nativeEvent:Je.nativeEvent};if(Tn){var cr=mt?(0,Fn.L0)(Wn,mn):(0,Fn._5)(Wn,mn),xr=(0,Fn._5)(lr,mn);Jn={checked:cr,halfChecked:xr},Dr.checkedNodes=cr.map(function(Zt){return(0,ur.Z)(sn,Zt)}).filter(function(Zt){return Zt}).map(function(Zt){return Zt.node}),me.setUncontrolledState({checkedKeys:cr})}else{var Er=(0,mr.S)([].concat((0,be.Z)(Wn),[mn]),!0,sn),Nr=Er.checkedKeys,$r=Er.halfCheckedKeys;if(!mt){var Qe=new Set(Nr);Qe.delete(mn);var rt=(0,mr.S)(Array.from(Qe),{checked:!1,halfCheckedKeys:$r},sn);Nr=rt.checkedKeys,$r=rt.halfCheckedKeys}Jn=Nr,Dr.checkedNodes=[],Dr.checkedNodesPositions=[],Dr.halfCheckedKeys=$r,Nr.forEach(function(Zt){var It=(0,ur.Z)(sn,Zt);if(It){var gn=It.node,Un=It.pos;Dr.checkedNodes.push(gn),Dr.checkedNodesPositions.push({node:gn,pos:Un})}}),me.setUncontrolledState({checkedKeys:Nr},!1,{halfCheckedKeys:$r})}kn==null||kn(Jn,Dr)},me.onNodeLoad=function(Je){var ut=Je.key,mt=new Promise(function(Wt,sn){me.setState(function(Wn){var lr=Wn.loadedKeys,Qn=lr===void 0?[]:lr,Tn=Wn.loadingKeys,kn=Tn===void 0?[]:Tn,mn=me.props,Jn=mn.loadData,Dr=mn.onLoad;if(!Jn||Qn.indexOf(ut)!==-1||kn.indexOf(ut)!==-1)return null;var cr=Jn(Je);return cr.then(function(){var xr=me.state.loadedKeys,Er=(0,Fn.L0)(xr,ut);Dr==null||Dr(Er,{event:"load",node:Je}),me.setUncontrolledState({loadedKeys:Er}),me.setState(function(Nr){return{loadingKeys:(0,Fn._5)(Nr.loadingKeys,ut)}}),Wt()}).catch(function(xr){if(me.setState(function(Nr){return{loadingKeys:(0,Fn._5)(Nr.loadingKeys,ut)}}),me.loadingRetryTimes[ut]=(me.loadingRetryTimes[ut]||0)+1,me.loadingRetryTimes[ut]>=zr){var Er=me.state.loadedKeys;(0,Xe.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),me.setUncontrolledState({loadedKeys:(0,Fn.L0)(Er,ut)}),Wt()}sn(xr)}),{loadingKeys:(0,Fn.L0)(kn,ut)}})});return mt.catch(function(){}),mt},me.onNodeMouseEnter=function(Je,ut){var mt=me.props.onMouseEnter;mt==null||mt({event:Je,node:ut})},me.onNodeMouseLeave=function(Je,ut){var mt=me.props.onMouseLeave;mt==null||mt({event:Je,node:ut})},me.onNodeContextMenu=function(Je,ut){var mt=me.props.onRightClick;mt&&(Je.preventDefault(),mt({event:Je,node:ut}))},me.onFocus=function(){var Je=me.props.onFocus;me.setState({focused:!0});for(var ut=arguments.length,mt=new Array(ut),Wt=0;Wt<ut;Wt++)mt[Wt]=arguments[Wt];Je==null||Je.apply(void 0,mt)},me.onBlur=function(){var Je=me.props.onBlur;me.setState({focused:!1}),me.onActiveChange(null);for(var ut=arguments.length,mt=new Array(ut),Wt=0;Wt<ut;Wt++)mt[Wt]=arguments[Wt];Je==null||Je.apply(void 0,mt)},me.getTreeNodeRequiredProps=function(){var Je=me.state,ut=Je.expandedKeys,mt=Je.selectedKeys,Wt=Je.loadedKeys,sn=Je.loadingKeys,Wn=Je.checkedKeys,lr=Je.halfCheckedKeys,Qn=Je.dragOverNodeKey,Tn=Je.dropPosition,kn=Je.keyEntities;return{expandedKeys:ut||[],selectedKeys:mt||[],loadedKeys:Wt||[],loadingKeys:sn||[],checkedKeys:Wn||[],halfCheckedKeys:lr||[],dragOverNodeKey:Qn,dropPosition:Tn,keyEntities:kn}},me.setExpandedKeys=function(Je){var ut=me.state,mt=ut.treeData,Wt=ut.fieldNames,sn=(0,zt.oH)(mt,Je,Wt);me.setUncontrolledState({expandedKeys:Je,flattenNodes:sn},!0)},me.onNodeExpand=function(Je,ut){var mt=me.state.expandedKeys,Wt=me.state,sn=Wt.listChanging,Wn=Wt.fieldNames,lr=me.props,Qn=lr.onExpand,Tn=lr.loadData,kn=ut.expanded,mn=ut[Wn.key];if(!sn){var Jn=mt.indexOf(mn),Dr=!kn;if((0,Xe.ZP)(kn&&Jn!==-1||!kn&&Jn===-1,"Expand state not sync with index check"),Dr?mt=(0,Fn.L0)(mt,mn):mt=(0,Fn._5)(mt,mn),me.setExpandedKeys(mt),Qn==null||Qn(mt,{node:ut,expanded:Dr,nativeEvent:Je.nativeEvent}),Dr&&Tn){var cr=me.onNodeLoad(ut);cr&&cr.then(function(){var xr=(0,zt.oH)(me.state.treeData,mt,Wn);me.setUncontrolledState({flattenNodes:xr})}).catch(function(){var xr=me.state.expandedKeys,Er=(0,Fn._5)(xr,mn);me.setExpandedKeys(Er)})}}},me.onListChangeStart=function(){me.setUncontrolledState({listChanging:!0})},me.onListChangeEnd=function(){setTimeout(function(){me.setUncontrolledState({listChanging:!1})})},me.onActiveChange=function(Je){var ut=me.state.activeKey,mt=me.props.onActiveChange;ut!==Je&&(me.setState({activeKey:Je}),Je!==null&&me.scrollTo({key:Je}),mt==null||mt(Je))},me.getActiveItem=function(){var Je=me.state,ut=Je.activeKey,mt=Je.flattenNodes;return ut===null?null:mt.find(function(Wt){var sn=Wt.key;return sn===ut})||null},me.offsetActiveKey=function(Je){var ut=me.state,mt=ut.flattenNodes,Wt=ut.activeKey,sn=mt.findIndex(function(Qn){var Tn=Qn.key;return Tn===Wt});sn===-1&&Je<0&&(sn=mt.length),sn=(sn+Je+mt.length)%mt.length;var Wn=mt[sn];if(Wn){var lr=Wn.key;me.onActiveChange(lr)}else me.onActiveChange(null)},me.onKeyDown=function(Je){var ut=me.state,mt=ut.activeKey,Wt=ut.expandedKeys,sn=ut.checkedKeys,Wn=ut.fieldNames,lr=me.props,Qn=lr.onKeyDown,Tn=lr.checkable,kn=lr.selectable;switch(Je.which){case qe.UP:{me.offsetActiveKey(-1),Je.preventDefault();break}case qe.DOWN:{me.offsetActiveKey(1),Je.preventDefault();break}}var mn=me.getActiveItem();if(mn&&mn.data){var Jn=me.getTreeNodeRequiredProps(),Dr=mn.data.isLeaf===!1||!!(mn.data[Wn.children]||[]).length,cr=(0,zt.F)((0,Ue.Z)((0,Ue.Z)({},(0,zt.H8)(mt,Jn)),{},{data:mn.data,active:!0}));switch(Je.which){case qe.LEFT:{Dr&&Wt.includes(mt)?me.onNodeExpand({},cr):mn.parent&&me.onActiveChange(mn.parent.key),Je.preventDefault();break}case qe.RIGHT:{Dr&&!Wt.includes(mt)?me.onNodeExpand({},cr):mn.children&&mn.children.length&&me.onActiveChange(mn.children[0].key),Je.preventDefault();break}case qe.ENTER:case qe.SPACE:{Tn&&!cr.disabled&&cr.checkable!==!1&&!cr.disableCheckbox?me.onNodeCheck({},cr,!sn.includes(mt)):!Tn&&kn&&!cr.disabled&&cr.selectable!==!1&&me.onNodeSelect({},cr);break}}}Qn==null||Qn(Je)},me.setUncontrolledState=function(Je){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,mt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!me.destroyed){var Wt=!1,sn=!0,Wn={};Object.keys(Je).forEach(function(lr){if(lr in me.props){sn=!1;return}Wt=!0,Wn[lr]=Je[lr]}),Wt&&(!ut||sn)&&me.setState((0,Ue.Z)((0,Ue.Z)({},Wn),mt))}},me.scrollTo=function(Je){me.listRef.current.scrollTo(Je)},me}return(0,de.Z)(rr,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var $e=this.props.activeKey;$e!==void 0&&$e!==this.state.activeKey&&(this.setState({activeKey:$e}),$e!==null&&this.scrollTo({key:$e}))}},{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 $e,Ve=this.state,et=Ve.focused,Je=Ve.flattenNodes,ut=Ve.keyEntities,mt=Ve.draggingNodeKey,Wt=Ve.activeKey,sn=Ve.dropLevelOffset,Wn=Ve.dropContainerKey,lr=Ve.dropTargetKey,Qn=Ve.dropPosition,Tn=Ve.dragOverNodeKey,kn=Ve.indent,mn=this.props,Jn=mn.prefixCls,Dr=mn.className,cr=mn.style,xr=mn.showLine,Er=mn.focusable,Nr=mn.tabIndex,$r=Nr===void 0?0:Nr,Qe=mn.selectable,rt=mn.showIcon,Zt=mn.icon,It=mn.switcherIcon,gn=mn.draggable,Un=mn.checkable,Yn=mn.checkStrictly,Ar=mn.disabled,gr=mn.motion,tr=mn.loadData,Or=mn.filterTreeNode,Kr=mn.height,ci=mn.itemHeight,Hr=mn.virtual,yi=mn.titleRender,Ii=mn.dropIndicatorRender,Si=mn.onContextMenu,Ni=mn.onScroll,gi=mn.direction,Di=mn.rootClassName,Ri=mn.rootStyle,sa=(0,lt.Z)(this.props,{aria:!0,data:!0}),bi;return gn&&((0,Ne.Z)(gn)==="object"?bi=gn:typeof gn=="function"?bi={nodeDraggable:gn}:bi={}),ye.createElement(vt.k.Provider,{value:{prefixCls:Jn,selectable:Qe,showIcon:rt,icon:Zt,switcherIcon:It,draggable:bi,draggingNodeKey:mt,checkable:Un,checkStrictly:Yn,disabled:Ar,keyEntities:ut,dropLevelOffset:sn,dropContainerKey:Wn,dropTargetKey:lr,dropPosition:Qn,dragOverNodeKey:Tn,indent:kn,direction:gi,dropIndicatorRender:Ii,loadData:tr,filterTreeNode:Or,titleRender:yi,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}},ye.createElement("div",{role:"tree",className:Re()(Jn,Dr,Di,($e={},(0,Me.Z)($e,"".concat(Jn,"-show-line"),xr),(0,Me.Z)($e,"".concat(Jn,"-focused"),et),(0,Me.Z)($e,"".concat(Jn,"-active-focused"),Wt!==null),$e)),style:Ri},ye.createElement(Tr,(0,le.Z)({ref:this.listRef,prefixCls:Jn,style:cr,data:Je,disabled:Ar,selectable:Qe,checkable:!!Un,motion:gr,dragging:mt!==null,height:Kr,itemHeight:ci,virtual:Hr,focusable:Er,focused:et,tabIndex:$r,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Si,onScroll:Ni},this.getTreeNodeRequiredProps(),sa))))}}],[{key:"getDerivedStateFromProps",value:function($e,Ve){var et=Ve.prevProps,Je={prevProps:$e};function ut(Er){return!et&&Er in $e||et&&et[Er]!==$e[Er]}var mt,Wt=Ve.fieldNames;if(ut("fieldNames")&&(Wt=(0,zt.w$)($e.fieldNames),Je.fieldNames=Wt),ut("treeData")?mt=$e.treeData:ut("children")&&((0,Xe.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),mt=(0,zt.zn)($e.children)),mt){Je.treeData=mt;var sn=(0,zt.I8)(mt,{fieldNames:Wt});Je.keyEntities=(0,Ue.Z)((0,Me.Z)({},Gr,ai),sn.keyEntities)}var Wn=Je.keyEntities||Ve.keyEntities;if(ut("expandedKeys")||et&&ut("autoExpandParent"))Je.expandedKeys=$e.autoExpandParent||!et&&$e.defaultExpandParent?(0,Fn.r7)($e.expandedKeys,Wn):$e.expandedKeys;else if(!et&&$e.defaultExpandAll){var lr=(0,Ue.Z)({},Wn);delete lr[Gr],Je.expandedKeys=Object.keys(lr).map(function(Er){return lr[Er].key})}else!et&&$e.defaultExpandedKeys&&(Je.expandedKeys=$e.autoExpandParent||$e.defaultExpandParent?(0,Fn.r7)($e.defaultExpandedKeys,Wn):$e.defaultExpandedKeys);if(Je.expandedKeys||delete Je.expandedKeys,mt||Je.expandedKeys){var Qn=(0,zt.oH)(mt||Ve.treeData,Je.expandedKeys||Ve.expandedKeys,Wt);Je.flattenNodes=Qn}if($e.selectable&&(ut("selectedKeys")?Je.selectedKeys=(0,Fn.BT)($e.selectedKeys,$e):!et&&$e.defaultSelectedKeys&&(Je.selectedKeys=(0,Fn.BT)($e.defaultSelectedKeys,$e))),$e.checkable){var Tn;if(ut("checkedKeys")?Tn=(0,Fn.E6)($e.checkedKeys)||{}:!et&&$e.defaultCheckedKeys?Tn=(0,Fn.E6)($e.defaultCheckedKeys)||{}:mt&&(Tn=(0,Fn.E6)($e.checkedKeys)||{checkedKeys:Ve.checkedKeys,halfCheckedKeys:Ve.halfCheckedKeys}),Tn){var kn=Tn,mn=kn.checkedKeys,Jn=mn===void 0?[]:mn,Dr=kn.halfCheckedKeys,cr=Dr===void 0?[]:Dr;if(!$e.checkStrictly){var xr=(0,mr.S)(Jn,!0,Wn);Jn=xr.checkedKeys,cr=xr.halfCheckedKeys}Je.checkedKeys=Jn,Je.halfCheckedKeys=cr}}return ut("loadedKeys")&&(Je.loadedKeys=$e.loadedKeys),Je}}]),rr}(ye.Component);ti.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:Pt,allowDrop:function(){return!0},expandAction:!1},ti.TreeNode=Et.Z;var jn=ti,Gi=jn,_i=te(73148),Xa=te(56747),_a={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"},Aa=_a,ra=te(84089),Oa=function(Rn,rr){return ye.createElement(ra.Z,(0,le.Z)({},Rn,{ref:rr,icon:Aa}))},ya=ye.forwardRef(Oa),Ra=te(53124),oo=te(50881),Yi=te(33603),Pa=te(32157);const to=4;function _o(fn){const{dropPosition:Rn,dropLevelOffset:rr,prefixCls:me,indent:$e,direction:Ve="ltr"}=fn,et=Ve==="ltr"?"left":"right",Je=Ve==="ltr"?"right":"left",ut={[et]:-rr*$e+to,[Je]:0};switch(Rn){case-1:ut.top=-3;break;case 1:ut.bottom=-3;break;default:ut.bottom=-3,ut[et]=$e+to;break}return ye.createElement("div",{style:ut,className:`${me}-drop-indicator`})}var wo=te(99184),on=ye.forwardRef((fn,Rn)=>{const{getPrefixCls:rr,direction:me,virtual:$e,tree:Ve}=ye.useContext(Ra.E_),{prefixCls:et,className:Je,showIcon:ut=!1,showLine:mt,switcherIcon:Wt,blockNode:sn=!1,children:Wn,checkable:lr=!1,selectable:Qn=!0,draggable:Tn,motion:kn,style:mn}=fn,Jn=rr("tree",et),Dr=rr(),cr=kn!=null?kn:Object.assign(Object.assign({},(0,Yi.Z)(Dr)),{motionAppear:!1}),xr=Object.assign(Object.assign({},fn),{checkable:lr,selectable:Qn,showIcon:ut,motion:cr,blockNode:sn,showLine:!!mt,dropIndicatorRender:_o}),[Er,Nr]=(0,Pa.ZP)(Jn),$r=ye.useMemo(()=>{if(!Tn)return!1;let rt={};switch(typeof Tn){case"function":rt.nodeDraggable=Tn;break;case"object":rt=Object.assign({},Tn);break;default:break}return rt.icon!==!1&&(rt.icon=rt.icon||ye.createElement(oo.Z,null)),rt},[Tn]),Qe=rt=>ye.createElement(wo.Z,{prefixCls:Jn,switcherIcon:Wt,treeNodeProps:rt,showLine:mt});return Er(ye.createElement(Gi,Object.assign({itemHeight:20,ref:Rn,virtual:$e},xr,{style:Object.assign(Object.assign({},Ve==null?void 0:Ve.style),mn),prefixCls:Jn,className:Re()({[`${Jn}-icon-hide`]:!ut,[`${Jn}-block-node`]:sn,[`${Jn}-unselectable`]:!Qn,[`${Jn}-rtl`]:me==="rtl"},Ve==null?void 0:Ve.className,Je,Nr),direction:me,checkable:lr&&ye.createElement("span",{className:`${Jn}-checkbox-inner`}),selectable:Qn,switcherIcon:Qe,draggable:$r}),Wn))}),Gt;(function(fn){fn[fn.None=0]="None",fn[fn.Start=1]="Start",fn[fn.End=2]="End"})(Gt||(Gt={}));function Kn(fn,Rn){function rr(me){const{key:$e,children:Ve}=me;Rn($e,me)!==!1&&Kn(Ve||[],Rn)}fn.forEach(rr)}function yr(fn){let{treeData:Rn,expandedKeys:rr,startKey:me,endKey:$e}=fn;const Ve=[];let et=Gt.None;if(me&&me===$e)return[me];if(!me||!$e)return[];function Je(ut){return ut===me||ut===$e}return Kn(Rn,ut=>{if(et===Gt.End)return!1;if(Je(ut)){if(Ve.push(ut),et===Gt.None)et=Gt.Start;else if(et===Gt.Start)return et=Gt.End,!1}else et===Gt.Start&&Ve.push(ut);return rr.includes(ut)}),Ve}function Ir(fn,Rn){const rr=(0,be.Z)(Rn),me=[];return Kn(fn,($e,Ve)=>{const et=rr.indexOf($e);return et!==-1&&(me.push(Ve),rr.splice(et,1)),!!rr.length}),me}var si=function(fn,Rn){var rr={};for(var me in fn)Object.prototype.hasOwnProperty.call(fn,me)&&Rn.indexOf(me)<0&&(rr[me]=fn[me]);if(fn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,me=Object.getOwnPropertySymbols(fn);$e<me.length;$e++)Rn.indexOf(me[$e])<0&&Object.prototype.propertyIsEnumerable.call(fn,me[$e])&&(rr[me[$e]]=fn[me[$e]]);return rr};function Mi(fn){const{isLeaf:Rn,expanded:rr}=fn;return Rn?ye.createElement(_i.Z,null):rr?ye.createElement(Xa.Z,null):ye.createElement(ya,null)}function Ti(fn){let{treeData:Rn,children:rr}=fn;return Rn||(0,zt.zn)(rr)}const ji=(fn,Rn)=>{var{defaultExpandAll:rr,defaultExpandParent:me,defaultExpandedKeys:$e}=fn,Ve=si(fn,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const et=ye.useRef(),Je=ye.useRef(),ut=()=>{const{keyEntities:$r}=(0,zt.I8)(Ti(Ve));let Qe;return rr?Qe=Object.keys($r):me?Qe=(0,Fn.r7)(Ve.expandedKeys||$e||[],$r):Qe=Ve.expandedKeys||$e,Qe},[mt,Wt]=ye.useState(Ve.selectedKeys||Ve.defaultSelectedKeys||[]),[sn,Wn]=ye.useState(()=>ut());ye.useEffect(()=>{"selectedKeys"in Ve&&Wt(Ve.selectedKeys)},[Ve.selectedKeys]),ye.useEffect(()=>{"expandedKeys"in Ve&&Wn(Ve.expandedKeys)},[Ve.expandedKeys]);const lr=($r,Qe)=>{var rt;return"expandedKeys"in Ve||Wn($r),(rt=Ve.onExpand)===null||rt===void 0?void 0:rt.call(Ve,$r,Qe)},Qn=($r,Qe)=>{var rt;const{multiple:Zt}=Ve,{node:It,nativeEvent:gn}=Qe,{key:Un=""}=It,Yn=Ti(Ve),Ar=Object.assign(Object.assign({},Qe),{selected:!0}),gr=(gn==null?void 0:gn.ctrlKey)||(gn==null?void 0:gn.metaKey),tr=gn==null?void 0:gn.shiftKey;let Or;Zt&&gr?(Or=$r,et.current=Un,Je.current=Or,Ar.selectedNodes=Ir(Yn,Or)):Zt&&tr?(Or=Array.from(new Set([].concat((0,be.Z)(Je.current||[]),(0,be.Z)(yr({treeData:Yn,expandedKeys:sn,startKey:Un,endKey:et.current}))))),Ar.selectedNodes=Ir(Yn,Or)):(Or=[Un],et.current=Un,Je.current=Or,Ar.selectedNodes=Ir(Yn,Or)),(rt=Ve.onSelect)===null||rt===void 0||rt.call(Ve,Or,Ar),"selectedKeys"in Ve||Wt(Or)},{getPrefixCls:Tn,direction:kn}=ye.useContext(Ra.E_),{prefixCls:mn,className:Jn,showIcon:Dr=!0,expandAction:cr="click"}=Ve,xr=si(Ve,["prefixCls","className","showIcon","expandAction"]),Er=Tn("tree",mn),Nr=Re()(`${Er}-directory`,{[`${Er}-directory-rtl`]:kn==="rtl"},Jn);return ye.createElement(on,Object.assign({icon:Mi,ref:Rn,blockNode:!0},xr,{showIcon:Dr,expandAction:cr,prefixCls:Er,className:Nr,expandedKeys:sn,selectedKeys:mt,onSelect:Qn,onExpand:lr}))};var aa=ye.forwardRef(ji);const Da=on;Da.DirectoryTree=aa,Da.TreeNode=Et.Z;var wi=Da},32157:function(Nn,Nt,te){"use strict";te.d(Nt,{TM:function(){return We},Yk:function(){return Re}});var le=te(34367),Me=te(63185),Ne=te(14747),Ue=te(33507),be=te(45503),ke=te(67968);const de=new le.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),we=(qe,lt)=>({[`.${qe}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${lt.motionDurationSlow}`}}}),pe=(qe,lt)=>({[`.${qe}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:lt.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${lt.lineWidthBold}px solid ${lt.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Le=(qe,lt)=>{const{treeCls:Xe,treeNodeCls:ye,treeNodePadding:vt,titleHeight:Pt,nodeSelectedBg:ot,nodeHoverBg:ct}=lt,Se=lt.paddingXS;return{[Xe]:Object.assign(Object.assign({},(0,Ne.Wf)(lt)),{background:lt.colorBgContainer,borderRadius:lt.borderRadius,transition:`background-color ${lt.motionDurationSlow}`,[`&${Xe}-rtl`]:{[`${Xe}-switcher`]:{"&_close":{[`${Xe}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${Xe}-active-focused)`]:Object.assign({},(0,Ne.oN)(lt)),[`${Xe}-list-holder-inner`]:{alignItems:"flex-start"},[`&${Xe}-block-node`]:{[`${Xe}-list-holder-inner`]:{alignItems:"stretch",[`${Xe}-node-content-wrapper`]:{flex:"auto"},[`${ye}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:vt,insetInlineStart:0,border:`1px solid ${lt.colorPrimary}`,opacity:0,animationName:de,animationDuration:lt.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${ye}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${vt}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${Xe}-node-content-wrapper`]:{color:lt.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${Xe}-node-content-wrapper`]:Object.assign({},(0,Ne.oN)(lt)),[`&:not(${ye}-disabled).filter-node ${Xe}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${Xe}-draggable-icon`]:{flexShrink:0,width:Pt,lineHeight:`${Pt}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${lt.motionDurationSlow}`,[`${ye}:hover &`]:{opacity:.45}},[`&${ye}-disabled`]:{[`${Xe}-draggable-icon`]:{visibility:"hidden"}}}},[`${Xe}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:Pt}},[`${Xe}-draggable-icon`]:{visibility:"hidden"},[`${Xe}-switcher`]:Object.assign(Object.assign({},we(qe,lt)),{position:"relative",flex:"none",alignSelf:"stretch",width:Pt,margin:0,lineHeight:`${Pt}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${Xe}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:lt.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Pt/2,bottom:-vt,marginInlineStart:-1,borderInlineEnd:`1px solid ${lt.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:Pt/2*.8,height:Pt/2,borderBottom:`1px solid ${lt.colorBorder}`,content:'""'}}}),[`${Xe}-checkbox`]:{top:"initial",marginInlineEnd:Se},[`${Xe}-node-content-wrapper, ${Xe}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:Pt,margin:0,padding:`0 ${lt.paddingXS/2}px`,color:"inherit",lineHeight:`${Pt}px`,background:"transparent",borderRadius:lt.borderRadius,cursor:"pointer",transition:`all ${lt.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:ct},[`&${Xe}-node-selected`]:{backgroundColor:ot},[`${Xe}-iconEle`]:{display:"inline-block",width:Pt,height:Pt,lineHeight:`${Pt}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${Xe}-unselectable ${Xe}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${Xe}-node-content-wrapper`]:Object.assign({lineHeight:`${Pt}px`,userSelect:"none"},pe(qe,lt)),[`${ye}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${lt.colorPrimary}`}},"&-show-line":{[`${Xe}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Pt/2,bottom:-vt,borderInlineEnd:`1px solid ${lt.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${Xe}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${ye}-leaf-last`]:{[`${Xe}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${Pt/2}px !important`}}}}})}},nt=qe=>{const{treeCls:lt,treeNodeCls:Xe,treeNodePadding:ye,directoryNodeSelectedBg:vt,directoryNodeSelectedColor:Pt}=qe;return{[`${lt}${lt}-directory`]:{[Xe]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:ye,insetInlineStart:0,transition:`background-color ${qe.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:qe.controlItemBgHover}},"> *":{zIndex:1},[`${lt}-switcher`]:{transition:`color ${qe.motionDurationMid}`},[`${lt}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${lt}-node-selected`]:{color:Pt,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:vt},[`${lt}-switcher`]:{color:Pt},[`${lt}-node-content-wrapper`]:{color:Pt,background:"transparent"}}}}}},Re=(qe,lt)=>{const Xe=`.${qe}`,ye=`${Xe}-treenode`,vt=lt.paddingXS/2,Pt=(0,be.TS)(lt,{treeCls:Xe,treeNodeCls:ye,treeNodePadding:vt});return[Le(qe,Pt),nt(Pt)]},We=qe=>{const{controlHeightSM:lt}=qe;return{titleHeight:lt,nodeHoverBg:qe.controlItemBgHover,nodeSelectedBg:qe.controlItemBgActive}};Nt.ZP=(0,ke.Z)("Tree",(qe,lt)=>{let{prefixCls:Xe}=lt;return[{[qe.componentCls]:(0,Me.C2)(`${Xe}-checkbox`,qe)},Re(Xe,qe),(0,Ue.Z)(qe)]},qe=>{const{colorTextLightSolid:lt,colorPrimary:Xe}=qe;return Object.assign(Object.assign({},We(qe)),{directoryNodeSelectedColor:lt,directoryNodeSelectedBg:Xe})})},99184:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return Xe}});var le=te(87462),Me=te(67294),Ne={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"},Ue=Ne,be=te(84089),ke=function(vt,Pt){return Me.createElement(be.Z,(0,le.Z)({},vt,{ref:Pt,icon:Ue}))},de=Me.forwardRef(ke),we=te(73148),pe=te(3407),Le=te(34182),nt=te(74664),Re=te(94184),We=te.n(Re),qe=te(96159),Xe=ye=>{const{prefixCls:vt,switcherIcon:Pt,treeNodeProps:ot,showLine:ct}=ye,{isLeaf:Se,expanded:ce,loading:He}=ot;if(He)return Me.createElement(pe.Z,{className:`${vt}-switcher-loading-icon`});let je;if(ct&&typeof ct=="object"&&(je=ct.showLeafIcon),Se){if(!ct)return null;if(typeof je!="boolean"&&je){const Ge=typeof je=="function"?je(ot):je,Ae=`${vt}-switcher-line-custom-icon`;return(0,qe.l$)(Ge)?(0,qe.Tm)(Ge,{className:We()(Ge.props.className||"",Ae)}):Ge}return je?Me.createElement(we.Z,{className:`${vt}-switcher-line-icon`}):Me.createElement("span",{className:`${vt}-switcher-leaf-line`})}const it=`${vt}-switcher-icon`,at=typeof Pt=="function"?Pt(ot):Pt;return(0,qe.l$)(at)?(0,qe.Tm)(at,{className:We()(at.props.className||"",it)}):at!==void 0?at:ct?ce?Me.createElement(Le.Z,{className:`${vt}-switcher-line-icon`}):Me.createElement(nt.Z,{className:`${vt}-switcher-line-icon`}):Me.createElement(de,{className:it})}},59810:function(Nn,Nt,te){"use strict";te.d(Nt,{default:function(){return ei}});var le=te(67294),Me=te(74902),Ne=te(94184),Ue=te.n(Ne),be=te(87462),ke=te(15671),de=te(43144),we=te(60136),pe=te(51630),Le=te(4942),nt=te(45987),Re=te(74165),We=te(71002),qe=te(15861),lt=te(64217);function Xe(Vt,Kt){var nn="cannot ".concat(Vt.method," ").concat(Vt.action," ").concat(Kt.status,"'"),sr=new Error(nn);return sr.status=Kt.status,sr.method=Vt.method,sr.url=Vt.action,sr}function ye(Vt){var Kt=Vt.responseText||Vt.response;if(!Kt)return Kt;try{return JSON.parse(Kt)}catch(nn){return Kt}}function vt(Vt){var Kt=new XMLHttpRequest;Vt.onProgress&&Kt.upload&&(Kt.upload.onprogress=function(Fn){Fn.total>0&&(Fn.percent=Fn.loaded/Fn.total*100),Vt.onProgress(Fn)});var nn=new FormData;Vt.data&&Object.keys(Vt.data).forEach(function(Tr){var Fn=Vt.data[Tr];if(Array.isArray(Fn)){Fn.forEach(function(mr){nn.append("".concat(Tr,"[]"),mr)});return}nn.append(Tr,Fn)}),Vt.file instanceof Blob?nn.append(Vt.filename,Vt.file,Vt.file.name):nn.append(Vt.filename,Vt.file),Kt.onerror=function(Fn){Vt.onError(Fn)},Kt.onload=function(){return Kt.status<200||Kt.status>=300?Vt.onError(Xe(Vt,Kt),ye(Kt)):Vt.onSuccess(ye(Kt),Kt)},Kt.open(Vt.method,Vt.action,!0),Vt.withCredentials&&"withCredentials"in Kt&&(Kt.withCredentials=!0);var sr=Vt.headers||{};return sr["X-Requested-With"]!==null&&Kt.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(sr).forEach(function(Tr){sr[Tr]!==null&&Kt.setRequestHeader(Tr,sr[Tr])}),Kt.send(nn),{abort:function(){Kt.abort()}}}var Pt=+new Date,ot=0;function ct(){return"rc-upload-".concat(Pt,"-").concat(++ot)}var Se=te(80334),ce=function(Vt,Kt){if(Vt&&Kt){var nn=Array.isArray(Kt)?Kt:Kt.split(","),sr=Vt.name||"",Tr=Vt.type||"",Fn=Tr.replace(/\/.*$/,"");return nn.some(function(mr){var ur=mr.trim();if(/^\*(\/\*)?$/.test(mr))return!0;if(ur.charAt(0)==="."){var zr=sr.toLowerCase(),ti=ur.toLowerCase(),jn=[ti];return(ti===".jpg"||ti===".jpeg")&&(jn=[".jpg",".jpeg"]),jn.some(function(Gi){return zr.endsWith(Gi)})}return/\/\*$/.test(ur)?Fn===ur.replace(/\/.*$/,""):Tr===ur?!0:/^\w+$/.test(ur)?((0,Se.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(ur,"'.Skip for check.")),!0):!1})}return!0};function He(Vt,Kt){var nn=Vt.createReader(),sr=[];function Tr(){nn.readEntries(function(Fn){var mr=Array.prototype.slice.apply(Fn);sr=sr.concat(mr);var ur=!mr.length;ur?Kt(sr):Tr()})}Tr()}var je=function(Kt,nn,sr){var Tr=function Fn(mr,ur){mr&&(mr.path=ur||"",mr.isFile?mr.file(function(zr){sr(zr)&&(mr.fullPath&&!zr.webkitRelativePath&&(Object.defineProperties(zr,{webkitRelativePath:{writable:!0}}),zr.webkitRelativePath=mr.fullPath.replace(/^\//,""),Object.defineProperties(zr,{webkitRelativePath:{writable:!1}})),nn([zr]))}):mr.isDirectory&&He(mr,function(zr){zr.forEach(function(ti){Fn(ti,"".concat(ur).concat(mr.name,"/"))})}))};Kt.forEach(function(Fn){Tr(Fn.webkitGetAsEntry())})},it=je,at=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Ge=function(Vt){(0,we.Z)(nn,Vt);var Kt=(0,pe.Z)(nn);function nn(){var sr;(0,ke.Z)(this,nn);for(var Tr=arguments.length,Fn=new Array(Tr),mr=0;mr<Tr;mr++)Fn[mr]=arguments[mr];return sr=Kt.call.apply(Kt,[this].concat(Fn)),sr.state={uid:ct()},sr.reqs={},sr.fileInput=void 0,sr._isMounted=void 0,sr.onChange=function(ur){var zr=sr.props,ti=zr.accept,jn=zr.directory,Gi=ur.target.files,_i=(0,Me.Z)(Gi).filter(function(Xa){return!jn||ce(Xa,ti)});sr.uploadFiles(_i),sr.reset()},sr.onClick=function(ur){var zr=sr.fileInput;if(zr){var ti=sr.props,jn=ti.children,Gi=ti.onClick;if(jn&&jn.type==="button"){var _i=zr.parentNode;_i.focus(),_i.querySelector("button").blur()}zr.click(),Gi&&Gi(ur)}},sr.onKeyDown=function(ur){ur.key==="Enter"&&sr.onClick(ur)},sr.onFileDrop=function(ur){var zr=sr.props.multiple;if(ur.preventDefault(),ur.type!=="dragover")if(sr.props.directory)it(Array.prototype.slice.call(ur.dataTransfer.items),sr.uploadFiles,function(jn){return ce(jn,sr.props.accept)});else{var ti=(0,Me.Z)(ur.dataTransfer.files).filter(function(jn){return ce(jn,sr.props.accept)});zr===!1&&(ti=ti.slice(0,1)),sr.uploadFiles(ti)}},sr.uploadFiles=function(ur){var zr=(0,Me.Z)(ur),ti=zr.map(function(jn){return jn.uid=ct(),sr.processFile(jn,zr)});Promise.all(ti).then(function(jn){var Gi=sr.props.onBatchStart;Gi==null||Gi(jn.map(function(_i){var Xa=_i.origin,_a=_i.parsedFile;return{file:Xa,parsedFile:_a}})),jn.filter(function(_i){return _i.parsedFile!==null}).forEach(function(_i){sr.post(_i)})})},sr.processFile=function(){var ur=(0,qe.Z)((0,Re.Z)().mark(function zr(ti,jn){var Gi,_i,Xa,_a,Aa,ra,Oa,ya,Ra;return(0,Re.Z)().wrap(function(Yi){for(;;)switch(Yi.prev=Yi.next){case 0:if(Gi=sr.props.beforeUpload,_i=ti,!Gi){Yi.next=14;break}return Yi.prev=3,Yi.next=6,Gi(ti,jn);case 6:_i=Yi.sent,Yi.next=12;break;case 9:Yi.prev=9,Yi.t0=Yi.catch(3),_i=!1;case 12:if(_i!==!1){Yi.next=14;break}return Yi.abrupt("return",{origin:ti,parsedFile:null,action:null,data:null});case 14:if(Xa=sr.props.action,typeof Xa!="function"){Yi.next=21;break}return Yi.next=18,Xa(ti);case 18:_a=Yi.sent,Yi.next=22;break;case 21:_a=Xa;case 22:if(Aa=sr.props.data,typeof Aa!="function"){Yi.next=29;break}return Yi.next=26,Aa(ti);case 26:ra=Yi.sent,Yi.next=30;break;case 29:ra=Aa;case 30:return Oa=((0,We.Z)(_i)==="object"||typeof _i=="string")&&_i?_i:ti,Oa instanceof File?ya=Oa:ya=new File([Oa],ti.name,{type:ti.type}),Ra=ya,Ra.uid=ti.uid,Yi.abrupt("return",{origin:ti,data:ra,parsedFile:Ra,action:_a});case 35:case"end":return Yi.stop()}},zr,null,[[3,9]])}));return function(zr,ti){return ur.apply(this,arguments)}}(),sr.saveFileInput=function(ur){sr.fileInput=ur},sr}return(0,de.Z)(nn,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Tr){var Fn=this,mr=Tr.data,ur=Tr.origin,zr=Tr.action,ti=Tr.parsedFile;if(this._isMounted){var jn=this.props,Gi=jn.onStart,_i=jn.customRequest,Xa=jn.name,_a=jn.headers,Aa=jn.withCredentials,ra=jn.method,Oa=ur.uid,ya=_i||vt,Ra={action:zr,filename:Xa,data:mr,file:ti,headers:_a,withCredentials:Aa,method:ra||"post",onProgress:function(Yi){var Pa=Fn.props.onProgress;Pa==null||Pa(Yi,ti)},onSuccess:function(Yi,Pa){var to=Fn.props.onSuccess;to==null||to(Yi,ti,Pa),delete Fn.reqs[Oa]},onError:function(Yi,Pa){var to=Fn.props.onError;to==null||to(Yi,Pa,ti),delete Fn.reqs[Oa]}};Gi(ur),this.reqs[Oa]=ya(Ra)}}},{key:"reset",value:function(){this.setState({uid:ct()})}},{key:"abort",value:function(Tr){var Fn=this.reqs;if(Tr){var mr=Tr.uid?Tr.uid:Tr;Fn[mr]&&Fn[mr].abort&&Fn[mr].abort(),delete Fn[mr]}else Object.keys(Fn).forEach(function(ur){Fn[ur]&&Fn[ur].abort&&Fn[ur].abort(),delete Fn[ur]})}},{key:"render",value:function(){var Tr,Fn=this.props,mr=Fn.component,ur=Fn.prefixCls,zr=Fn.className,ti=Fn.disabled,jn=Fn.id,Gi=Fn.style,_i=Fn.multiple,Xa=Fn.accept,_a=Fn.capture,Aa=Fn.children,ra=Fn.directory,Oa=Fn.openFileDialogOnClick,ya=Fn.onMouseEnter,Ra=Fn.onMouseLeave,oo=(0,nt.Z)(Fn,at),Yi=Ue()((Tr={},(0,Le.Z)(Tr,ur,!0),(0,Le.Z)(Tr,"".concat(ur,"-disabled"),ti),(0,Le.Z)(Tr,zr,zr),Tr)),Pa=ra?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},to=ti?{}:{onClick:Oa?this.onClick:function(){},onKeyDown:Oa?this.onKeyDown:function(){},onMouseEnter:ya,onMouseLeave:Ra,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return le.createElement(mr,(0,be.Z)({},to,{className:Yi,role:"button",style:Gi}),le.createElement("input",(0,be.Z)({},(0,lt.Z)(oo,{aria:!0,data:!0}),{id:jn,disabled:ti,type:"file",ref:this.saveFileInput,onClick:function(wo){return wo.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Xa},Pa,{multiple:_i,onChange:this.onChange},_a!=null?{capture:_a}:{})),Aa)}}]),nn}(le.Component),Ae=Ge;function wt(){}var dt=function(Vt){(0,we.Z)(nn,Vt);var Kt=(0,pe.Z)(nn);function nn(){var sr;(0,ke.Z)(this,nn);for(var Tr=arguments.length,Fn=new Array(Tr),mr=0;mr<Tr;mr++)Fn[mr]=arguments[mr];return sr=Kt.call.apply(Kt,[this].concat(Fn)),sr.uploader=void 0,sr.saveUploader=function(ur){sr.uploader=ur},sr}return(0,de.Z)(nn,[{key:"abort",value:function(Tr){this.uploader.abort(Tr)}},{key:"render",value:function(){return le.createElement(Ae,(0,be.Z)({},this.props,{ref:this.saveUploader}))}}]),nn}(le.Component);dt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:wt,onError:wt,onSuccess:wt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var $t=dt,bt=$t,Ot=te(5663),Pn=te(73935),$n=te(53124),yt=te(98866),Be=te(10110),Rt=te(24457),Vn={icon:function(Kt,nn){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:nn}},{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.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:Kt}}]}},name:"file",theme:"twotone"},In=Vn,xt=te(84089),Mt=function(Kt,nn){return le.createElement(xt.Z,(0,be.Z)({},Kt,{ref:nn,icon:In}))},qt=le.forwardRef(Mt),an=te(3407),ln={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},Yt=ln,Cn=function(Kt,nn){return le.createElement(xt.Z,(0,be.Z)({},Kt,{ref:nn,icon:Yt}))},pr=le.forwardRef(Cn),Xn={icon:function(Kt,nn){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:Kt}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:nn}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:nn}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:nn}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:Kt}}]}},name:"picture",theme:"twotone"},ze=Xn,fe=function(Kt,nn){return le.createElement(xt.Z,(0,be.Z)({},Kt,{ref:nn,icon:ze}))},ue=le.forwardRef(fe),xe=te(38379),ge=te(57838),se=te(33603),Fe=te(96159),st=te(71577);function en(Vt){return Object.assign(Object.assign({},Vt),{lastModified:Vt.lastModified,lastModifiedDate:Vt.lastModifiedDate,name:Vt.name,size:Vt.size,type:Vt.type,uid:Vt.uid,percent:0,originFileObj:Vt})}function Sn(Vt,Kt){const nn=(0,Me.Z)(Kt),sr=nn.findIndex(Tr=>{let{uid:Fn}=Tr;return Fn===Vt.uid});return sr===-1?nn.push(Vt):nn[sr]=Vt,nn}function dn(Vt,Kt){const nn=Vt.uid!==void 0?"uid":"name";return Kt.filter(sr=>sr[nn]===Vt[nn])[0]}function zn(Vt,Kt){const nn=Vt.uid!==void 0?"uid":"name",sr=Kt.filter(Tr=>Tr[nn]!==Vt[nn]);return sr.length===Kt.length?null:sr}const vn=function(){const Kt=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),sr=Kt[Kt.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(sr)||[""])[0]},kt=Vt=>Vt.indexOf("image/")===0,Xt=Vt=>{if(Vt.type&&!Vt.thumbUrl)return kt(Vt.type);const Kt=Vt.thumbUrl||Vt.url||"",nn=vn(Kt);return/^data:image\//.test(Kt)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(nn)?!0:!(/^data:/.test(Kt)||nn)},Jt=200;function jt(Vt){return new Promise(Kt=>{if(!Vt.type||!kt(Vt.type)){Kt("");return}const nn=document.createElement("canvas");nn.width=Jt,nn.height=Jt,nn.style.cssText=`position: fixed; left: 0; top: 0; width: ${Jt}px; height: ${Jt}px; z-index: 9999; display: none;`,document.body.appendChild(nn);const sr=nn.getContext("2d"),Tr=new Image;if(Tr.onload=()=>{const{width:Fn,height:mr}=Tr;let ur=Jt,zr=Jt,ti=0,jn=0;Fn>mr?(zr=mr*(Jt/Fn),jn=-(zr-ur)/2):(ur=Fn*(Jt/mr),ti=-(ur-zr)/2),sr.drawImage(Tr,ti,jn,ur,zr);const Gi=nn.toDataURL();document.body.removeChild(nn),window.URL.revokeObjectURL(Tr.src),Kt(Gi)},Tr.crossOrigin="anonymous",Vt.type.startsWith("image/svg+xml")){const Fn=new FileReader;Fn.onload=()=>{Fn.result&&(Tr.src=Fn.result)},Fn.readAsDataURL(Vt)}else if(Vt.type.startsWith("image/gif")){const Fn=new FileReader;Fn.onload=()=>{Fn.result&&Kt(Fn.result)},Fn.readAsDataURL(Vt)}else Tr.src=window.URL.createObjectURL(Vt)})}var Bt=te(84249),ir=te(90674),Ct=te(99569),At=te(38703),er=te(83062),fr=le.forwardRef((Vt,Kt)=>{let{prefixCls:nn,className:sr,style:Tr,locale:Fn,listType:mr,file:ur,items:zr,progress:ti,iconRender:jn,actionIconRender:Gi,itemRender:_i,isImgUrl:Xa,showPreviewIcon:_a,showRemoveIcon:Aa,showDownloadIcon:ra,previewIcon:Oa,removeIcon:ya,downloadIcon:Ra,onPreview:oo,onDownload:Yi,onClose:Pa}=Vt;var to,_o;const{status:wo}=ur,[ia,on]=le.useState(wo);le.useEffect(()=>{wo!=="removed"&&on(wo)},[wo]);const[Gt,Kn]=le.useState(!1);le.useEffect(()=>{const Je=setTimeout(()=>{Kn(!0)},300);return()=>{clearTimeout(Je)}},[]);const yr=jn(ur);let Ir=le.createElement("div",{className:`${nn}-icon`},yr);if(mr==="picture"||mr==="picture-card"||mr==="picture-circle")if(ia==="uploading"||!ur.thumbUrl&&!ur.url){const Je=Ue()(`${nn}-list-item-thumbnail`,{[`${nn}-list-item-file`]:ia!=="uploading"});Ir=le.createElement("div",{className:Je},yr)}else{const Je=Xa!=null&&Xa(ur)?le.createElement("img",{src:ur.thumbUrl||ur.url,alt:ur.name,className:`${nn}-list-item-image`,crossOrigin:ur.crossOrigin}):yr,ut=Ue()(`${nn}-list-item-thumbnail`,{[`${nn}-list-item-file`]:Xa&&!Xa(ur)});Ir=le.createElement("a",{className:ut,onClick:mt=>oo(ur,mt),href:ur.url||ur.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Je)}const si=Ue()(`${nn}-list-item`,`${nn}-list-item-${ia}`),Mi=typeof ur.linkProps=="string"?JSON.parse(ur.linkProps):ur.linkProps,Ti=Aa?Gi((typeof ya=="function"?ya(ur):ya)||le.createElement(Bt.Z,null),()=>Pa(ur),nn,Fn.removeFile):null,ji=ra&&ia==="done"?Gi((typeof Ra=="function"?Ra(ur):Ra)||le.createElement(ir.Z,null),()=>Yi(ur),nn,Fn.downloadFile):null,Oi=mr!=="picture-card"&&mr!=="picture-circle"&&le.createElement("span",{key:"download-delete",className:Ue()(`${nn}-list-item-actions`,{picture:mr==="picture"})},ji,Ti),aa=Ue()(`${nn}-list-item-name`),Da=ur.url?[le.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:aa,title:ur.name},Mi,{href:ur.url,onClick:Je=>oo(ur,Je)}),ur.name),Oi]:[le.createElement("span",{key:"view",className:aa,onClick:Je=>oo(ur,Je),title:ur.name},ur.name),Oi],wi={pointerEvents:"none",opacity:.5},fn=_a?le.createElement("a",{href:ur.url||ur.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:ur.url||ur.thumbUrl?void 0:wi,onClick:Je=>oo(ur,Je),title:Fn.previewFile},typeof Oa=="function"?Oa(ur):Oa||le.createElement(Ct.Z,null)):null,Rn=(mr==="picture-card"||mr==="picture-circle")&&ia!=="uploading"&&le.createElement("span",{className:`${nn}-list-item-actions`},fn,ia==="done"&&ji,Ti),{getPrefixCls:rr}=le.useContext($n.E_),me=rr(),$e=le.createElement("div",{className:si},Ir,Da,Rn,Gt&&le.createElement(xe.default,{motionName:`${me}-fade`,visible:ia==="uploading",motionDeadline:2e3},Je=>{let{className:ut}=Je;const mt="percent"in ur?le.createElement(At.Z,Object.assign({},ti,{type:"line",percent:ur.percent,"aria-label":ur["aria-label"],"aria-labelledby":ur["aria-labelledby"]})):null;return le.createElement("div",{className:Ue()(`${nn}-list-item-progress`,ut)},mt)})),Ve=ur.response&&typeof ur.response=="string"?ur.response:((to=ur.error)===null||to===void 0?void 0:to.statusText)||((_o=ur.error)===null||_o===void 0?void 0:_o.message)||Fn.uploadError,et=ia==="error"?le.createElement(er.Z,{title:Ve,getPopupContainer:Je=>Je.parentNode},$e):$e;return le.createElement("div",{className:Ue()(`${nn}-list-item-container`,sr),style:Tr,ref:Kt},_i?_i(et,ur,zr,{download:Yi.bind(null,ur),preview:oo.bind(null,ur),remove:Pa.bind(null,ur)}):et)});const Rr=(Vt,Kt)=>{const{listType:nn="text",previewFile:sr=jt,onPreview:Tr,onDownload:Fn,onRemove:mr,locale:ur,iconRender:zr,isImageUrl:ti=Xt,prefixCls:jn,items:Gi=[],showPreviewIcon:_i=!0,showRemoveIcon:Xa=!0,showDownloadIcon:_a=!1,removeIcon:Aa,previewIcon:ra,downloadIcon:Oa,progress:ya={size:[-1,2],showInfo:!1},appendAction:Ra,appendActionVisible:oo=!0,itemRender:Yi,disabled:Pa}=Vt,to=(0,ge.Z)(),[_o,wo]=le.useState(!1);le.useEffect(()=>{nn!=="picture"&&nn!=="picture-card"&&nn!=="picture-circle"||(Gi||[]).forEach(wi=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(wi.originFileObj instanceof File||wi.originFileObj instanceof Blob)||wi.thumbUrl!==void 0||(wi.thumbUrl="",sr&&sr(wi.originFileObj).then(fn=>{wi.thumbUrl=fn||"",to()}))})},[nn,Gi,sr]),le.useEffect(()=>{wo(!0)},[]);const ia=(wi,fn)=>{if(Tr)return fn==null||fn.preventDefault(),Tr(wi)},on=wi=>{typeof Fn=="function"?Fn(wi):wi.url&&window.open(wi.url)},Gt=wi=>{mr==null||mr(wi)},Kn=wi=>{if(zr)return zr(wi,nn);const fn=wi.status==="uploading",Rn=ti&&ti(wi)?le.createElement(ue,null):le.createElement(qt,null);let rr=fn?le.createElement(an.Z,null):le.createElement(pr,null);return nn==="picture"?rr=fn?le.createElement(an.Z,null):Rn:(nn==="picture-card"||nn==="picture-circle")&&(rr=fn?ur.uploading:Rn),rr},yr=(wi,fn,Rn,rr)=>{const me={type:"text",size:"small",title:rr,onClick:$e=>{fn(),(0,Fe.l$)(wi)&&wi.props.onClick&&wi.props.onClick($e)},className:`${Rn}-list-item-action`,disabled:Pa};if((0,Fe.l$)(wi)){const $e=(0,Fe.Tm)(wi,Object.assign(Object.assign({},wi.props),{onClick:()=>{}}));return le.createElement(st.ZP,Object.assign({},me,{icon:$e}))}return le.createElement(st.ZP,Object.assign({},me),le.createElement("span",null,wi))};le.useImperativeHandle(Kt,()=>({handlePreview:ia,handleDownload:on}));const{getPrefixCls:Ir}=le.useContext($n.E_),si=Ir("upload",jn),Mi=Ir(),Ti=Ue()(`${si}-list`,`${si}-list-${nn}`),ji=(0,Me.Z)(Gi.map(wi=>({key:wi.uid,file:wi})));let aa={motionDeadline:2e3,motionName:`${si}-${nn==="picture-card"||nn==="picture-circle"?"animate-inline":"animate"}`,keys:ji,motionAppear:_o};const Da=le.useMemo(()=>{const wi=Object.assign({},(0,se.Z)(Mi));return delete wi.onAppearEnd,delete wi.onEnterEnd,delete wi.onLeaveEnd,wi},[Mi]);return nn!=="picture-card"&&nn!=="picture-circle"&&(aa=Object.assign(Object.assign({},Da),aa)),le.createElement("div",{className:Ti},le.createElement(xe.CSSMotionList,Object.assign({},aa,{component:!1}),wi=>{let{key:fn,file:Rn,className:rr,style:me}=wi;return le.createElement(fr,{key:fn,locale:ur,prefixCls:si,className:rr,style:me,file:Rn,items:Gi,progress:ya,listType:nn,isImgUrl:ti,showPreviewIcon:_i,showRemoveIcon:Xa,showDownloadIcon:_a,removeIcon:Aa,previewIcon:ra,downloadIcon:Oa,iconRender:Kn,actionIconRender:yr,itemRender:Yi,onPreview:ia,onDownload:on,onClose:Gt})}),Ra&&le.createElement(xe.default,Object.assign({},aa,{visible:oo,forceRender:!0}),wi=>{let{className:fn,style:Rn}=wi;return(0,Fe.Tm)(Ra,rr=>({className:Ue()(rr.className,fn),style:Object.assign(Object.assign(Object.assign({},Rn),{pointerEvents:fn?"none":void 0}),rr.style)}))}))};var Yr=le.forwardRef(Rr),Jr=te(14747),mi=te(33507),Br=te(67968),ki=te(45503),ha=Vt=>{const{componentCls:Kt,iconCls:nn}=Vt;return{[`${Kt}-wrapper`]:{[`${Kt}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:Vt.colorFillAlter,border:`${Vt.lineWidth}px dashed ${Vt.colorBorder}`,borderRadius:Vt.borderRadiusLG,cursor:"pointer",transition:`border-color ${Vt.motionDurationSlow}`,[Kt]:{padding:`${Vt.padding}px 0`},[`${Kt}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Kt}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Kt}-disabled):hover`]:{borderColor:Vt.colorPrimaryHover},[`p${Kt}-drag-icon`]:{marginBottom:Vt.margin,[nn]:{color:Vt.colorPrimary,fontSize:Vt.uploadThumbnailSize}},[`p${Kt}-text`]:{margin:`0 0 ${Vt.marginXXS}px`,color:Vt.colorTextHeading,fontSize:Vt.fontSizeLG},[`p${Kt}-hint`]:{color:Vt.colorTextDescription,fontSize:Vt.fontSize},[`&${Kt}-disabled`]:{cursor:"not-allowed",[`p${Kt}-drag-icon ${nn},
p${Kt}-text,
p${Kt}-hint
`]:{color:Vt.colorTextDisabled}}}}}},Ui=Vt=>{const{componentCls:Kt,antCls:nn,iconCls:sr,fontSize:Tr,lineHeight:Fn}=Vt,mr=`${Kt}-list-item`,ur=`${mr}-actions`,zr=`${mr}-action`,ti=Math.round(Tr*Fn);return{[`${Kt}-wrapper`]:{[`${Kt}-list`]:Object.assign(Object.assign({},(0,Jr.dF)()),{lineHeight:Vt.lineHeight,[mr]:{position:"relative",height:Vt.lineHeight*Tr,marginTop:Vt.marginXS,fontSize:Tr,display:"flex",alignItems:"center",transition:`background-color ${Vt.motionDurationSlow}`,"&:hover":{backgroundColor:Vt.controlItemBgHover},[`${mr}-name`]:Object.assign(Object.assign({},Jr.vS),{padding:`0 ${Vt.paddingXS}px`,lineHeight:Fn,flex:"auto",transition:`all ${Vt.motionDurationSlow}`}),[ur]:{[zr]:{opacity:0},[`${zr}${nn}-btn-sm`]:{height:ti,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${zr}:focus-visible,
&.picture ${zr}
`]:{opacity:1},[sr]:{color:Vt.actionsColor,transition:`all ${Vt.motionDurationSlow}`},[`&:hover ${sr}`]:{color:Vt.colorText}},[`${Kt}-icon ${sr}`]:{color:Vt.colorTextDescription,fontSize:Tr},[`${mr}-progress`]:{position:"absolute",bottom:-Vt.uploadProgressOffset,width:"100%",paddingInlineStart:Tr+Vt.paddingXS,fontSize:Tr,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${mr}:hover ${zr}`]:{opacity:1,color:Vt.colorText},[`${mr}-error`]:{color:Vt.colorError,[`${mr}-name, ${Kt}-icon ${sr}`]:{color:Vt.colorError},[ur]:{[`${sr}, ${sr}:hover`]:{color:Vt.colorError},[zr]:{opacity:1}}},[`${Kt}-list-item-container`]:{transition:`opacity ${Vt.motionDurationSlow}, height ${Vt.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Ut=te(34367),Qt=te(16932);const un=new Ut.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Bn=new Ut.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var qn=Vt=>{const{componentCls:Kt}=Vt,nn=`${Kt}-animate-inline`;return[{[`${Kt}-wrapper`]:{[`${nn}-appear, ${nn}-enter, ${nn}-leave`]:{animationDuration:Vt.motionDurationSlow,animationTimingFunction:Vt.motionEaseInOutCirc,animationFillMode:"forwards"},[`${nn}-appear, ${nn}-enter`]:{animationName:un},[`${nn}-leave`]:{animationName:Bn}}},{[`${Kt}-wrapper`]:(0,Qt.J$)(Vt)},un,Bn]},Lr=te(16397),or=te(84780);const Et=Vt=>{const{componentCls:Kt,iconCls:nn,uploadThumbnailSize:sr,uploadProgressOffset:Tr}=Vt,Fn=`${Kt}-list`,mr=`${Fn}-item`;return{[`${Kt}-wrapper`]:{[`
${Fn}${Fn}-picture,
${Fn}${Fn}-picture-card,
${Fn}${Fn}-picture-circle
`]:{[mr]:{position:"relative",height:sr+Vt.lineWidth*2+Vt.paddingXS*2,padding:Vt.paddingXS,border:`${Vt.lineWidth}px ${Vt.lineType} ${Vt.colorBorder}`,borderRadius:Vt.borderRadiusLG,"&:hover":{background:"transparent"},[`${mr}-thumbnail`]:Object.assign(Object.assign({},Jr.vS),{width:sr,height:sr,lineHeight:`${sr+Vt.paddingSM}px`,textAlign:"center",flex:"none",[nn]:{fontSize:Vt.fontSizeHeading2,color:Vt.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${mr}-progress`]:{bottom:Tr,width:`calc(100% - ${Vt.paddingSM*2}px)`,marginTop:0,paddingInlineStart:sr+Vt.paddingXS}},[`${mr}-error`]:{borderColor:Vt.colorError,[`${mr}-thumbnail ${nn}`]:{[`svg path[fill='${Lr.blue[0]}']`]:{fill:Vt.colorErrorBg},[`svg path[fill='${Lr.blue.primary}']`]:{fill:Vt.colorError}}},[`${mr}-uploading`]:{borderStyle:"dashed",[`${mr}-name`]:{marginBottom:Tr}}},[`${Fn}${Fn}-picture-circle ${mr}`]:{[`&, &::before, ${mr}-thumbnail`]:{borderRadius:"50%"}}}}},_t=Vt=>{const{componentCls:Kt,iconCls:nn,fontSizeLG:sr,colorTextLightSolid:Tr}=Vt,Fn=`${Kt}-list`,mr=`${Fn}-item`,ur=Vt.uploadPicCardSize;return{[`
${Kt}-wrapper${Kt}-picture-card-wrapper,
${Kt}-wrapper${Kt}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,Jr.dF)()),{display:"inline-block",width:"100%",[`${Kt}${Kt}-select`]:{width:ur,height:ur,marginInlineEnd:Vt.marginXS,marginBottom:Vt.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:Vt.colorFillAlter,border:`${Vt.lineWidth}px dashed ${Vt.colorBorder}`,borderRadius:Vt.borderRadiusLG,cursor:"pointer",transition:`border-color ${Vt.motionDurationSlow}`,[`> ${Kt}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Kt}-disabled):hover`]:{borderColor:Vt.colorPrimary}},[`${Fn}${Fn}-picture-card, ${Fn}${Fn}-picture-circle`]:{[`${Fn}-item-container`]:{display:"inline-block",width:ur,height:ur,marginBlock:`0 ${Vt.marginXS}px`,marginInline:`0 ${Vt.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[mr]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Vt.paddingXS*2}px)`,height:`calc(100% - ${Vt.paddingXS*2}px)`,backgroundColor:Vt.colorBgMask,opacity:0,transition:`all ${Vt.motionDurationSlow}`,content:'" "'}},[`${mr}:hover`]:{[`&::before, ${mr}-actions`]:{opacity:1}},[`${mr}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${Vt.motionDurationSlow}`,[`${nn}-eye, ${nn}-download, ${nn}-delete`]:{zIndex:10,width:sr,margin:`0 ${Vt.marginXXS}px`,fontSize:sr,cursor:"pointer",transition:`all ${Vt.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${mr}-actions, ${mr}-actions:hover`]:{[`${nn}-eye, ${nn}-download, ${nn}-delete`]:{color:new or.C(Tr).setAlpha(.65).toRgbString(),"&:hover":{color:Tr}}},[`${mr}-thumbnail, ${mr}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${mr}-name`]:{display:"none",textAlign:"center"},[`${mr}-file + ${mr}-name`]:{position:"absolute",bottom:Vt.margin,display:"block",width:`calc(100% - ${Vt.paddingXS*2}px)`},[`${mr}-uploading`]:{[`&${mr}`]:{backgroundColor:Vt.colorFillAlter},[`&::before, ${nn}-eye, ${nn}-download, ${nn}-delete`]:{display:"none"}},[`${mr}-progress`]:{bottom:Vt.marginXL,width:`calc(100% - ${Vt.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Kt}-wrapper${Kt}-picture-circle-wrapper`]:{[`${Kt}${Kt}-select`]:{borderRadius:"50%"}}}};var wn=Vt=>{const{componentCls:Kt}=Vt;return{[`${Kt}-rtl`]:{direction:"rtl"}}};const ft=Vt=>{const{componentCls:Kt,colorTextDisabled:nn}=Vt;return{[`${Kt}-wrapper`]:Object.assign(Object.assign({},(0,Jr.Wf)(Vt)),{[Kt]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Kt}-select`]:{display:"inline-block"},[`${Kt}-disabled`]:{color:nn,cursor:"not-allowed"}})}};var Ht=(0,Br.Z)("Upload",Vt=>{const{fontSizeHeading3:Kt,fontSize:nn,lineHeight:sr,lineWidth:Tr,controlHeightLG:Fn}=Vt,mr=Math.round(nn*sr),ur=(0,ki.TS)(Vt,{uploadThumbnailSize:Kt*2,uploadProgressOffset:mr/2+Tr,uploadPicCardSize:Fn*2.55});return[ft(ur),ha(ur),Et(ur),_t(ur),Ui(ur),qn(ur),wn(ur),(0,mi.Z)(ur)]},Vt=>({actionsColor:Vt.colorTextDescription})),xn=function(Vt,Kt,nn,sr){function Tr(Fn){return Fn instanceof nn?Fn:new nn(function(mr){mr(Fn)})}return new(nn||(nn=Promise))(function(Fn,mr){function ur(jn){try{ti(sr.next(jn))}catch(Gi){mr(Gi)}}function zr(jn){try{ti(sr.throw(jn))}catch(Gi){mr(Gi)}}function ti(jn){jn.done?Fn(jn.value):Tr(jn.value).then(ur,zr)}ti((sr=sr.apply(Vt,Kt||[])).next())})};const En=`__LIST_IGNORE_${Date.now()}__`,Hn=(Vt,Kt)=>{const{fileList:nn,defaultFileList:sr,onRemove:Tr,showUploadList:Fn=!0,listType:mr="text",onPreview:ur,onDownload:zr,onChange:ti,onDrop:jn,previewFile:Gi,disabled:_i,locale:Xa,iconRender:_a,isImageUrl:Aa,progress:ra,prefixCls:Oa,className:ya,type:Ra="select",children:oo,style:Yi,itemRender:Pa,maxCount:to,data:_o={},multiple:wo=!1,action:ia="",accept:on="",supportServerRender:Gt=!0,rootClassName:Kn}=Vt,yr=le.useContext(yt.Z),Ir=_i!=null?_i:yr,[si,Mi]=(0,Ot.Z)(sr||[],{value:nn,postState:Qe=>Qe!=null?Qe:[]}),[Ti,ji]=le.useState("drop"),Oi=le.useRef(null);le.useMemo(()=>{const Qe=Date.now();(nn||[]).forEach((rt,Zt)=>{!rt.uid&&!Object.isFrozen(rt)&&(rt.uid=`__AUTO__${Qe}_${Zt}__`)})},[nn]);const aa=(Qe,rt,Zt)=>{let It=(0,Me.Z)(rt),gn=!1;to===1?It=It.slice(-1):to&&(gn=It.length>to,It=It.slice(0,to)),(0,Pn.flushSync)(()=>{Mi(It)});const Un={file:Qe,fileList:It};Zt&&(Un.event=Zt),(!gn||It.some(Yn=>Yn.uid===Qe.uid))&&(0,Pn.flushSync)(()=>{ti==null||ti(Un)})},Da=(Qe,rt)=>xn(void 0,void 0,void 0,function*(){const{beforeUpload:Zt,transformFile:It}=Vt;let gn=Qe;if(Zt){const Un=yield Zt(Qe,rt);if(Un===!1)return!1;if(delete Qe[En],Un===En)return Object.defineProperty(Qe,En,{value:!0,configurable:!0}),!1;typeof Un=="object"&&Un&&(gn=Un)}return It&&(gn=yield It(gn)),gn}),wi=Qe=>{const rt=Qe.filter(gn=>!gn.file[En]);if(!rt.length)return;const Zt=rt.map(gn=>en(gn.file));let It=(0,Me.Z)(si);Zt.forEach(gn=>{It=Sn(gn,It)}),Zt.forEach((gn,Un)=>{let Yn=gn;if(rt[Un].parsedFile)gn.status="uploading";else{const{originFileObj:Ar}=gn;let gr;try{gr=new File([Ar],Ar.name,{type:Ar.type})}catch(tr){gr=new Blob([Ar],{type:Ar.type}),gr.name=Ar.name,gr.lastModifiedDate=new Date,gr.lastModified=new Date().getTime()}gr.uid=gn.uid,Yn=gr}aa(Yn,It)})},fn=(Qe,rt,Zt)=>{try{typeof Qe=="string"&&(Qe=JSON.parse(Qe))}catch(Un){}if(!dn(rt,si))return;const It=en(rt);It.status="done",It.percent=100,It.response=Qe,It.xhr=Zt;const gn=Sn(It,si);aa(It,gn)},Rn=(Qe,rt)=>{if(!dn(rt,si))return;const Zt=en(rt);Zt.status="uploading",Zt.percent=Qe.percent;const It=Sn(Zt,si);aa(Zt,It,Qe)},rr=(Qe,rt,Zt)=>{if(!dn(Zt,si))return;const It=en(Zt);It.error=Qe,It.response=rt,It.status="error";const gn=Sn(It,si);aa(It,gn)},me=Qe=>{let rt;Promise.resolve(typeof Tr=="function"?Tr(Qe):Tr).then(Zt=>{var It;if(Zt===!1)return;const gn=zn(Qe,si);gn&&(rt=Object.assign(Object.assign({},Qe),{status:"removed"}),si==null||si.forEach(Un=>{const Yn=rt.uid!==void 0?"uid":"name";Un[Yn]===rt[Yn]&&!Object.isFrozen(Un)&&(Un.status="removed")}),(It=Oi.current)===null||It===void 0||It.abort(rt),aa(rt,gn))})},$e=Qe=>{ji(Qe.type),Qe.type==="drop"&&(jn==null||jn(Qe))};le.useImperativeHandle(Kt,()=>({onBatchStart:wi,onSuccess:fn,onProgress:Rn,onError:rr,fileList:si,upload:Oi.current}));const{getPrefixCls:Ve,direction:et,upload:Je}=le.useContext($n.E_),ut=Ve("upload",Oa),mt=Object.assign(Object.assign({onBatchStart:wi,onError:rr,onProgress:Rn,onSuccess:fn},Vt),{data:_o,multiple:wo,action:ia,accept:on,supportServerRender:Gt,prefixCls:ut,disabled:Ir,beforeUpload:Da,onChange:void 0});delete mt.className,delete mt.style,(!oo||Ir)&&delete mt.id;const[Wt,sn]=Ht(ut),[Wn]=(0,Be.Z)("Upload",Rt.Z.Upload),{showRemoveIcon:lr,showPreviewIcon:Qn,showDownloadIcon:Tn,removeIcon:kn,previewIcon:mn,downloadIcon:Jn}=typeof Fn=="boolean"?{}:Fn,Dr=(Qe,rt)=>Fn?le.createElement(Yr,{prefixCls:ut,listType:mr,items:si,previewFile:Gi,onPreview:ur,onDownload:zr,onRemove:me,showRemoveIcon:!Ir&&lr,showPreviewIcon:Qn,showDownloadIcon:Tn,removeIcon:kn,previewIcon:mn,downloadIcon:Jn,iconRender:_a,locale:Object.assign(Object.assign({},Wn),Xa),isImageUrl:Aa,progress:ra,appendAction:Qe,appendActionVisible:rt,itemRender:Pa,disabled:Ir}):Qe,cr=Ue()(`${ut}-wrapper`,ya,Kn,sn,Je==null?void 0:Je.className,{[`${ut}-rtl`]:et==="rtl",[`${ut}-picture-card-wrapper`]:mr==="picture-card",[`${ut}-picture-circle-wrapper`]:mr==="picture-circle"}),xr=Object.assign(Object.assign({},Je==null?void 0:Je.style),Yi);if(Ra==="drag"){const Qe=Ue()(sn,ut,`${ut}-drag`,{[`${ut}-drag-uploading`]:si.some(rt=>rt.status==="uploading"),[`${ut}-drag-hover`]:Ti==="dragover",[`${ut}-disabled`]:Ir,[`${ut}-rtl`]:et==="rtl"});return Wt(le.createElement("span",{className:cr},le.createElement("div",{className:Qe,style:xr,onDrop:$e,onDragOver:$e,onDragLeave:$e},le.createElement(bt,Object.assign({},mt,{ref:Oi,className:`${ut}-btn`}),le.createElement("div",{className:`${ut}-drag-container`},oo))),Dr()))}const Er=Ue()(ut,`${ut}-select`,{[`${ut}-disabled`]:Ir}),$r=(Qe=>le.createElement("div",{className:Er,style:Qe},le.createElement(bt,Object.assign({},mt,{ref:Oi}))))(oo?void 0:{display:"none"});return Wt(mr==="picture-card"||mr==="picture-circle"?le.createElement("span",{className:cr},Dr($r,!!oo)):le.createElement("span",{className:cr},$r,Dr()))};var br=le.forwardRef(Hn),fi=function(Vt,Kt){var nn={};for(var sr in Vt)Object.prototype.hasOwnProperty.call(Vt,sr)&&Kt.indexOf(sr)<0&&(nn[sr]=Vt[sr]);if(Vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tr=0,sr=Object.getOwnPropertySymbols(Vt);Tr<sr.length;Tr++)Kt.indexOf(sr[Tr])<0&&Object.prototype.propertyIsEnumerable.call(Vt,sr[Tr])&&(nn[sr[Tr]]=Vt[sr[Tr]]);return nn},Vr=le.forwardRef((Vt,Kt)=>{var{style:nn,height:sr}=Vt,Tr=fi(Vt,["style","height"]);return le.createElement(br,Object.assign({ref:Kt},Tr,{type:"drag",style:Object.assign(Object.assign({},nn),{height:sr})}))});const ai=br;ai.Dragger=Vr,ai.LIST_IGNORE=En;var ei=ai},97909:function(Nn){(function(Nt,te){Nn.exports=te()})(this,function(){"use strict";var Nt=1e3,te=6e4,le=36e5,Me="millisecond",Ne="second",Ue="minute",be="hour",ke="day",de="week",we="month",pe="quarter",Le="year",nt="date",Re="Invalid Date",We=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,qe=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,lt={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(at){var Ge=["th","st","nd","rd"],Ae=at%100;return"["+at+(Ge[(Ae-20)%10]||Ge[Ae]||Ge[0])+"]"}},Xe=function(at,Ge,Ae){var wt=String(at);return!wt||wt.length>=Ge?at:""+Array(Ge+1-wt.length).join(Ae)+at},ye={s:Xe,z:function(at){var Ge=-at.utcOffset(),Ae=Math.abs(Ge),wt=Math.floor(Ae/60),dt=Ae%60;return(Ge<=0?"+":"-")+Xe(wt,2,"0")+":"+Xe(dt,2,"0")},m:function at(Ge,Ae){if(Ge.date()<Ae.date())return-at(Ae,Ge);var wt=12*(Ae.year()-Ge.year())+(Ae.month()-Ge.month()),dt=Ge.clone().add(wt,we),$t=Ae-dt<0,bt=Ge.clone().add(wt+($t?-1:1),we);return+(-(wt+(Ae-dt)/($t?dt-bt:bt-dt))||0)},a:function(at){return at<0?Math.ceil(at)||0:Math.floor(at)},p:function(at){return{M:we,y:Le,w:de,d:ke,D:nt,h:be,m:Ue,s:Ne,ms:Me,Q:pe}[at]||String(at||"").toLowerCase().replace(/s$/,"")},u:function(at){return at===void 0}},vt="en",Pt={};Pt[vt]=lt;var ot="$isDayjsObject",ct=function(at){return at instanceof je||!(!at||!at[ot])},Se=function at(Ge,Ae,wt){var dt;if(!Ge)return vt;if(typeof Ge=="string"){var $t=Ge.toLowerCase();Pt[$t]&&(dt=$t),Ae&&(Pt[$t]=Ae,dt=$t);var bt=Ge.split("-");if(!dt&&bt.length>1)return at(bt[0])}else{var Ot=Ge.name;Pt[Ot]=Ge,dt=Ot}return!wt&&dt&&(vt=dt),dt||!wt&&vt},ce=function(at,Ge){if(ct(at))return at.clone();var Ae=typeof Ge=="object"?Ge:{};return Ae.date=at,Ae.args=arguments,new je(Ae)},He=ye;He.l=Se,He.i=ct,He.w=function(at,Ge){return ce(at,{locale:Ge.$L,utc:Ge.$u,x:Ge.$x,$offset:Ge.$offset})};var je=function(){function at(Ae){this.$L=Se(Ae.locale,null,!0),this.parse(Ae),this.$x=this.$x||Ae.x||{},this[ot]=!0}var Ge=at.prototype;return Ge.parse=function(Ae){this.$d=function(wt){var dt=wt.date,$t=wt.utc;if(dt===null)return new Date(NaN);if(He.u(dt))return new Date;if(dt instanceof Date)return new Date(dt);if(typeof dt=="string"&&!/Z$/i.test(dt)){var bt=dt.match(We);if(bt){var Ot=bt[2]-1||0,Pn=(bt[7]||"0").substring(0,3);return $t?new Date(Date.UTC(bt[1],Ot,bt[3]||1,bt[4]||0,bt[5]||0,bt[6]||0,Pn)):new Date(bt[1],Ot,bt[3]||1,bt[4]||0,bt[5]||0,bt[6]||0,Pn)}}return new Date(dt)}(Ae),this.init()},Ge.init=function(){var Ae=this.$d;this.$y=Ae.getFullYear(),this.$M=Ae.getMonth(),this.$D=Ae.getDate(),this.$W=Ae.getDay(),this.$H=Ae.getHours(),this.$m=Ae.getMinutes(),this.$s=Ae.getSeconds(),this.$ms=Ae.getMilliseconds()},Ge.$utils=function(){return He},Ge.isValid=function(){return this.$d.toString()!==Re},Ge.isSame=function(Ae,wt){var dt=ce(Ae);return this.startOf(wt)<=dt&&dt<=this.endOf(wt)},Ge.isAfter=function(Ae,wt){return ce(Ae)<this.startOf(wt)},Ge.isBefore=function(Ae,wt){return this.endOf(wt)<ce(Ae)},Ge.$g=function(Ae,wt,dt){return He.u(Ae)?this[wt]:this.set(dt,Ae)},Ge.unix=function(){return Math.floor(this.valueOf()/1e3)},Ge.valueOf=function(){return this.$d.getTime()},Ge.startOf=function(Ae,wt){var dt=this,$t=!!He.u(wt)||wt,bt=He.p(Ae),Ot=function(xt,Mt){var qt=He.w(dt.$u?Date.UTC(dt.$y,Mt,xt):new Date(dt.$y,Mt,xt),dt);return $t?qt:qt.endOf(ke)},Pn=function(xt,Mt){return He.w(dt.toDate()[xt].apply(dt.toDate("s"),($t?[0,0,0,0]:[23,59,59,999]).slice(Mt)),dt)},$n=this.$W,yt=this.$M,Be=this.$D,Rt="set"+(this.$u?"UTC":"");switch(bt){case Le:return $t?Ot(1,0):Ot(31,11);case we:return $t?Ot(1,yt):Ot(0,yt+1);case de:var Vn=this.$locale().weekStart||0,In=($n<Vn?$n+7:$n)-Vn;return Ot($t?Be-In:Be+(6-In),yt);case ke:case nt:return Pn(Rt+"Hours",0);case be:return Pn(Rt+"Minutes",1);case Ue:return Pn(Rt+"Seconds",2);case Ne:return Pn(Rt+"Milliseconds",3);default:return this.clone()}},Ge.endOf=function(Ae){return this.startOf(Ae,!1)},Ge.$set=function(Ae,wt){var dt,$t=He.p(Ae),bt="set"+(this.$u?"UTC":""),Ot=(dt={},dt[ke]=bt+"Date",dt[nt]=bt+"Date",dt[we]=bt+"Month",dt[Le]=bt+"FullYear",dt[be]=bt+"Hours",dt[Ue]=bt+"Minutes",dt[Ne]=bt+"Seconds",dt[Me]=bt+"Milliseconds",dt)[$t],Pn=$t===ke?this.$D+(wt-this.$W):wt;if($t===we||$t===Le){var $n=this.clone().set(nt,1);$n.$d[Ot](Pn),$n.init(),this.$d=$n.set(nt,Math.min(this.$D,$n.daysInMonth())).$d}else Ot&&this.$d[Ot](Pn);return this.init(),this},Ge.set=function(Ae,wt){return this.clone().$set(Ae,wt)},Ge.get=function(Ae){return this[He.p(Ae)]()},Ge.add=function(Ae,wt){var dt,$t=this;Ae=Number(Ae);var bt=He.p(wt),Ot=function(yt){var Be=ce($t);return He.w(Be.date(Be.date()+Math.round(yt*Ae)),$t)};if(bt===we)return this.set(we,this.$M+Ae);if(bt===Le)return this.set(Le,this.$y+Ae);if(bt===ke)return Ot(1);if(bt===de)return Ot(7);var Pn=(dt={},dt[Ue]=te,dt[be]=le,dt[Ne]=Nt,dt)[bt]||1,$n=this.$d.getTime()+Ae*Pn;return He.w($n,this)},Ge.subtract=function(Ae,wt){return this.add(-1*Ae,wt)},Ge.format=function(Ae){var wt=this,dt=this.$locale();if(!this.isValid())return dt.invalidDate||Re;var $t=Ae||"YYYY-MM-DDTHH:mm:ssZ",bt=He.z(this),Ot=this.$H,Pn=this.$m,$n=this.$M,yt=dt.weekdays,Be=dt.months,Rt=dt.meridiem,Vn=function(Mt,qt,an,ln){return Mt&&(Mt[qt]||Mt(wt,$t))||an[qt].slice(0,ln)},In=function(Mt){return He.s(Ot%12||12,Mt,"0")},xt=Rt||function(Mt,qt,an){var ln=Mt<12?"AM":"PM";return an?ln.toLowerCase():ln};return $t.replace(qe,function(Mt,qt){return qt||function(an){switch(an){case"YY":return String(wt.$y).slice(-2);case"YYYY":return He.s(wt.$y,4,"0");case"M":return $n+1;case"MM":return He.s($n+1,2,"0");case"MMM":return Vn(dt.monthsShort,$n,Be,3);case"MMMM":return Vn(Be,$n);case"D":return wt.$D;case"DD":return He.s(wt.$D,2,"0");case"d":return String(wt.$W);case"dd":return Vn(dt.weekdaysMin,wt.$W,yt,2);case"ddd":return Vn(dt.weekdaysShort,wt.$W,yt,3);case"dddd":return yt[wt.$W];case"H":return String(Ot);case"HH":return He.s(Ot,2,"0");case"h":return In(1);case"hh":return In(2);case"a":return xt(Ot,Pn,!0);case"A":return xt(Ot,Pn,!1);case"m":return String(Pn);case"mm":return He.s(Pn,2,"0");case"s":return String(wt.$s);case"ss":return He.s(wt.$s,2,"0");case"SSS":return He.s(wt.$ms,3,"0");case"Z":return bt}return null}(Mt)||bt.replace(":","")})},Ge.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Ge.diff=function(Ae,wt,dt){var $t,bt=this,Ot=He.p(wt),Pn=ce(Ae),$n=(Pn.utcOffset()-this.utcOffset())*te,yt=this-Pn,Be=function(){return He.m(bt,Pn)};switch(Ot){case Le:$t=Be()/12;break;case we:$t=Be();break;case pe:$t=Be()/3;break;case de:$t=(yt-$n)/6048e5;break;case ke:$t=(yt-$n)/864e5;break;case be:$t=yt/le;break;case Ue:$t=yt/te;break;case Ne:$t=yt/Nt;break;default:$t=yt}return dt?$t:He.a($t)},Ge.daysInMonth=function(){return this.endOf(we).$D},Ge.$locale=function(){return Pt[this.$L]},Ge.locale=function(Ae,wt){if(!Ae)return this.$L;var dt=this.clone(),$t=Se(Ae,wt,!0);return $t&&(dt.$L=$t),dt},Ge.clone=function(){return He.w(this.$d,this)},Ge.toDate=function(){return new Date(this.valueOf())},Ge.toJSON=function(){return this.isValid()?this.toISOString():null},Ge.toISOString=function(){return this.$d.toISOString()},Ge.toString=function(){return this.$d.toUTCString()},at}(),it=je.prototype;return ce.prototype=it,[["$ms",Me],["$s",Ne],["$m",Ue],["$H",be],["$W",ke],["$M",we],["$y",Le],["$D",nt]].forEach(function(at){it[at[1]]=function(Ge){return this.$g(Ge,at[0],at[1])}}),ce.extend=function(at,Ge){return at.$i||(at(Ge,je,ce),at.$i=!0),ce},ce.locale=Se,ce.isDayjs=ct,ce.unix=function(at){return ce(1e3*at)},ce.en=Pt[vt],ce.Ls=Pt,ce.p={},ce})},86625:function(Nn){(function(Nt,te){Nn.exports=te()})(this,function(){"use strict";return function(Nt,te){var le=te.prototype,Me=le.format;le.format=function(Ne){var Ue=this,be=this.$locale();if(!this.isValid())return Me.bind(this)(Ne);var ke=this.$utils(),de=(Ne||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(we){switch(we){case"Q":return Math.ceil((Ue.$M+1)/3);case"Do":return be.ordinal(Ue.$D);case"gggg":return Ue.weekYear();case"GGGG":return Ue.isoWeekYear();case"wo":return be.ordinal(Ue.week(),"W");case"w":case"ww":return ke.s(Ue.week(),we==="w"?1:2,"0");case"W":case"WW":return ke.s(Ue.isoWeek(),we==="W"?1:2,"0");case"k":case"kk":return ke.s(String(Ue.$H===0?24:Ue.$H),we==="k"?1:2,"0");case"X":return Math.floor(Ue.$d.getTime()/1e3);case"x":return Ue.$d.getTime();case"z":return"["+Ue.offsetName()+"]";case"zzz":return"["+Ue.offsetName("long")+"]";default:return we}});return Me.bind(this)(de)}}})},40618:function(Nn){(function(Nt,te){Nn.exports=te()})(this,function(){"use strict";var Nt={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},te=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,le=/\d\d/,Me=/\d\d?/,Ne=/\d*[^-_:/,()\s\d]+/,Ue={},be=function(Re){return(Re=+Re)+(Re>68?1900:2e3)},ke=function(Re){return function(We){this[Re]=+We}},de=[/[+-]\d\d:?(\d\d)?|Z/,function(Re){(this.zone||(this.zone={})).offset=function(We){if(!We||We==="Z")return 0;var qe=We.match(/([+-]|\d\d)/g),lt=60*qe[1]+(+qe[2]||0);return lt===0?0:qe[0]==="+"?-lt:lt}(Re)}],we=function(Re){var We=Ue[Re];return We&&(We.indexOf?We:We.s.concat(We.f))},pe=function(Re,We){var qe,lt=Ue.meridiem;if(lt){for(var Xe=1;Xe<=24;Xe+=1)if(Re.indexOf(lt(Xe,0,We))>-1){qe=Xe>12;break}}else qe=Re===(We?"pm":"PM");return qe},Le={A:[Ne,function(Re){this.afternoon=pe(Re,!1)}],a:[Ne,function(Re){this.afternoon=pe(Re,!0)}],S:[/\d/,function(Re){this.milliseconds=100*+Re}],SS:[le,function(Re){this.milliseconds=10*+Re}],SSS:[/\d{3}/,function(Re){this.milliseconds=+Re}],s:[Me,ke("seconds")],ss:[Me,ke("seconds")],m:[Me,ke("minutes")],mm:[Me,ke("minutes")],H:[Me,ke("hours")],h:[Me,ke("hours")],HH:[Me,ke("hours")],hh:[Me,ke("hours")],D:[Me,ke("day")],DD:[le,ke("day")],Do:[Ne,function(Re){var We=Ue.ordinal,qe=Re.match(/\d+/);if(this.day=qe[0],We)for(var lt=1;lt<=31;lt+=1)We(lt).replace(/\[|\]/g,"")===Re&&(this.day=lt)}],M:[Me,ke("month")],MM:[le,ke("month")],MMM:[Ne,function(Re){var We=we("months"),qe=(we("monthsShort")||We.map(function(lt){return lt.slice(0,3)})).indexOf(Re)+1;if(qe<1)throw new Error;this.month=qe%12||qe}],MMMM:[Ne,function(Re){var We=we("months").indexOf(Re)+1;if(We<1)throw new Error;this.month=We%12||We}],Y:[/[+-]?\d+/,ke("year")],YY:[le,function(Re){this.year=be(Re)}],YYYY:[/\d{4}/,ke("year")],Z:de,ZZ:de};function nt(Re){var We,qe;We=Re,qe=Ue&&Ue.formats;for(var lt=(Re=We.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(Se,ce,He){var je=He&&He.toUpperCase();return ce||qe[He]||Nt[He]||qe[je].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(it,at,Ge){return at||Ge.slice(1)})})).match(te),Xe=lt.length,ye=0;ye<Xe;ye+=1){var vt=lt[ye],Pt=Le[vt],ot=Pt&&Pt[0],ct=Pt&&Pt[1];lt[ye]=ct?{regex:ot,parser:ct}:vt.replace(/^\[|\]$/g,"")}return function(Se){for(var ce={},He=0,je=0;He<Xe;He+=1){var it=lt[He];if(typeof it=="string")je+=it.length;else{var at=it.regex,Ge=it.parser,Ae=Se.slice(je),wt=at.exec(Ae)[0];Ge.call(ce,wt),Se=Se.replace(wt,"")}}return function(dt){var $t=dt.afternoon;if($t!==void 0){var bt=dt.hours;$t?bt<12&&(dt.hours+=12):bt===12&&(dt.hours=0),delete dt.afternoon}}(ce),ce}}return function(Re,We,qe){qe.p.customParseFormat=!0,Re&&Re.parseTwoDigitYear&&(be=Re.parseTwoDigitYear);var lt=We.prototype,Xe=lt.parse;lt.parse=function(ye){var vt=ye.date,Pt=ye.utc,ot=ye.args;this.$u=Pt;var ct=ot[1];if(typeof ct=="string"){var Se=ot[2]===!0,ce=ot[3]===!0,He=Se||ce,je=ot[2];ce&&(je=ot[2]),Ue=this.$locale(),!Se&&je&&(Ue=qe.Ls[je]),this.$d=function(Ae,wt,dt){try{if(["x","X"].indexOf(wt)>-1)return new Date((wt==="X"?1e3:1)*Ae);var $t=nt(wt)(Ae),bt=$t.year,Ot=$t.month,Pn=$t.day,$n=$t.hours,yt=$t.minutes,Be=$t.seconds,Rt=$t.milliseconds,Vn=$t.zone,In=new Date,xt=Pn||(bt||Ot?1:In.getDate()),Mt=bt||In.getFullYear(),qt=0;bt&&!Ot||(qt=Ot>0?Ot-1:In.getMonth());var an=$n||0,ln=yt||0,Yt=Be||0,Cn=Rt||0;return Vn?new Date(Date.UTC(Mt,qt,xt,an,ln,Yt,Cn+60*Vn.offset*1e3)):dt?new Date(Date.UTC(Mt,qt,xt,an,ln,Yt,Cn)):new Date(Mt,qt,xt,an,ln,Yt,Cn)}catch(pr){return new Date("")}}(vt,ct,Pt),this.init(),je&&je!==!0&&(this.$L=this.locale(je).$L),He&&vt!=this.format(ct)&&(this.$d=new Date("")),Ue={}}else if(ct instanceof Array)for(var it=ct.length,at=1;at<=it;at+=1){ot[1]=ct[at-1];var Ge=qe.apply(this,ot);if(Ge.isValid()){this.$d=Ge.$d,this.$L=Ge.$L,this.init();break}at===it&&(this.$d=new Date(""))}else Xe.call(this,ye)}}})},26850:function(Nn){(function(Nt,te){Nn.exports=te()})(this,function(){"use strict";return function(Nt,te,le){var Me=te.prototype,Ne=function(we){return we&&(we.indexOf?we:we.s)},Ue=function(we,pe,Le,nt,Re){var We=we.name?we:we.$locale(),qe=Ne(We[pe]),lt=Ne(We[Le]),Xe=qe||lt.map(function(vt){return vt.slice(0,nt)});if(!Re)return Xe;var ye=We.weekStart;return Xe.map(function(vt,Pt){return Xe[(Pt+(ye||0))%7]})},be=function(){return le.Ls[le.locale()]},ke=function(we,pe){return we.formats[pe]||function(Le){return Le.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(nt,Re,We){return Re||We.slice(1)})}(we.formats[pe.toUpperCase()])},de=function(){var we=this;return{months:function(pe){return pe?pe.format("MMMM"):Ue(we,"months")},monthsShort:function(pe){return pe?pe.format("MMM"):Ue(we,"monthsShort","months",3)},firstDayOfWeek:function(){return we.$locale().weekStart||0},weekdays:function(pe){return pe?pe.format("dddd"):Ue(we,"weekdays")},weekdaysMin:function(pe){return pe?pe.format("dd"):Ue(we,"weekdaysMin","weekdays",2)},weekdaysShort:function(pe){return pe?pe.format("ddd"):Ue(we,"weekdaysShort","weekdays",3)},longDateFormat:function(pe){return ke(we.$locale(),pe)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};Me.localeData=function(){return de.bind(this)()},le.localeData=function(){var we=be();return{firstDayOfWeek:function(){return we.weekStart||0},weekdays:function(){return le.weekdays()},weekdaysShort:function(){return le.weekdaysShort()},weekdaysMin:function(){return le.weekdaysMin()},months:function(){return le.months()},monthsShort:function(){return le.monthsShort()},longDateFormat:function(pe){return ke(we,pe)},meridiem:we.meridiem,ordinal:we.ordinal}},le.months=function(){return Ue(be(),"months")},le.monthsShort=function(){return Ue(be(),"monthsShort","months",3)},le.weekdays=function(we){return Ue(be(),"weekdays",null,null,we)},le.weekdaysShort=function(we){return Ue(be(),"weekdaysShort","weekdays",3,we)},le.weekdaysMin=function(we){return Ue(be(),"weekdaysMin","weekdays",2,we)}}})},23082:function(Nn){(function(Nt,te){Nn.exports=te()})(this,function(){"use strict";var Nt="week",te="year";return function(le,Me,Ne){var Ue=Me.prototype;Ue.week=function(be){if(be===void 0&&(be=null),be!==null)return this.add(7*(be-this.week()),"day");var ke=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var de=Ne(this).startOf(te).add(1,te).date(ke),we=Ne(this).endOf(Nt);if(de.isBefore(we))return 1}var pe=Ne(this).startOf(te).date(ke).startOf(Nt).subtract(1,"millisecond"),Le=this.diff(pe,Nt,!0);return Le<0?Ne(this).startOf("week").week():Math.ceil(Le)},Ue.weeks=function(be){return be===void 0&&(be=null),this.week(be)}}})},99873:function(Nn){(function(Nt,te){Nn.exports=te()})(this,function(){"use strict";return function(Nt,te){te.prototype.weekYear=function(){var le=this.month(),Me=this.week(),Ne=this.year();return Me===1&&le===11?Ne+1:le===0&&Me>=52?Ne-1:Ne}}})},33088:function(Nn){(function(Nt,te){Nn.exports=te()})(this,function(){"use strict";return function(Nt,te){te.prototype.weekday=function(le){var Me=this.$locale().weekStart||0,Ne=this.$W,Ue=(Ne<Me?Ne+7:Ne)-Me;return this.$utils().u(le)?Ue:this.subtract(Ue,"day").add(le,"day")}}})},72665:function(Nn,Nt){"use strict";var te;var le=typeof Symbol=="function"&&Symbol.for,Me=le?Symbol.for("react.element"):60103,Ne=le?Symbol.for("react.portal"):60106,Ue=le?Symbol.for("react.fragment"):60107,be=le?Symbol.for("react.strict_mode"):60108,ke=le?Symbol.for("react.profiler"):60114,de=le?Symbol.for("react.provider"):60109,we=le?Symbol.for("react.context"):60110,pe=le?Symbol.for("react.async_mode"):60111,Le=le?Symbol.for("react.concurrent_mode"):60111,nt=le?Symbol.for("react.forward_ref"):60112,Re=le?Symbol.for("react.suspense"):60113,We=le?Symbol.for("react.suspense_list"):60120,qe=le?Symbol.for("react.memo"):60115,lt=le?Symbol.for("react.lazy"):60116,Xe=le?Symbol.for("react.block"):60121,ye=le?Symbol.for("react.fundamental"):60117,vt=le?Symbol.for("react.responder"):60118,Pt=le?Symbol.for("react.scope"):60119;function ot(Se){if(typeof Se=="object"&&Se!==null){var ce=Se.$$typeof;switch(ce){case Me:switch(Se=Se.type,Se){case pe:case Le:case Ue:case ke:case be:case Re:return Se;default:switch(Se=Se&&Se.$$typeof,Se){case we:case nt:case lt:case qe:case de:return Se;default:return ce}}case Ne:return ce}}}function ct(Se){return ot(Se)===Le}te=pe,te=Le,te=we,te=de,te=Me,te=nt,te=Ue,te=lt,te=qe,te=Ne,te=ke,te=be,te=Re,te=function(Se){return ct(Se)||ot(Se)===pe},te=ct,te=function(Se){return ot(Se)===we},te=function(Se){return ot(Se)===de},te=function(Se){return typeof Se=="object"&&Se!==null&&Se.$$typeof===Me},te=function(Se){return ot(Se)===nt},te=function(Se){return ot(Se)===Ue},te=function(Se){return ot(Se)===lt},Nt.isMemo=function(Se){return ot(Se)===qe},te=function(Se){return ot(Se)===Ne},te=function(Se){return ot(Se)===ke},te=function(Se){return ot(Se)===be},te=function(Se){return ot(Se)===Re},te=function(Se){return typeof Se=="string"||typeof Se=="function"||Se===Ue||Se===Le||Se===ke||Se===be||Se===Re||Se===We||typeof Se=="object"&&Se!==null&&(Se.$$typeof===lt||Se.$$typeof===qe||Se.$$typeof===de||Se.$$typeof===we||Se.$$typeof===nt||Se.$$typeof===ye||Se.$$typeof===vt||Se.$$typeof===Pt||Se.$$typeof===Xe)},te=ot},12060:function(Nn,Nt,te){"use strict";Nn.exports=te(72665)},41771:function(Nn,Nt){"use strict";var te;var le=typeof Symbol=="function"&&Symbol.for,Me=le?Symbol.for("react.element"):60103,Ne=le?Symbol.for("react.portal"):60106,Ue=le?Symbol.for("react.fragment"):60107,be=le?Symbol.for("react.strict_mode"):60108,ke=le?Symbol.for("react.profiler"):60114,de=le?Symbol.for("react.provider"):60109,we=le?Symbol.for("react.context"):60110,pe=le?Symbol.for("react.async_mode"):60111,Le=le?Symbol.for("react.concurrent_mode"):60111,nt=le?Symbol.for("react.forward_ref"):60112,Re=le?Symbol.for("react.suspense"):60113,We=le?Symbol.for("react.suspense_list"):60120,qe=le?Symbol.for("react.memo"):60115,lt=le?Symbol.for("react.lazy"):60116,Xe=le?Symbol.for("react.block"):60121,ye=le?Symbol.for("react.fundamental"):60117,vt=le?Symbol.for("react.responder"):60118,Pt=le?Symbol.for("react.scope"):60119;function ot(Se){if(typeof Se=="object"&&Se!==null){var ce=Se.$$typeof;switch(ce){case Me:switch(Se=Se.type,Se){case pe:case Le:case Ue:case ke:case be:case Re:return Se;default:switch(Se=Se&&Se.$$typeof,Se){case we:case nt:case lt:case qe:case de:return Se;default:return ce}}case Ne:return ce}}}function ct(Se){return ot(Se)===Le}te=pe,te=Le,te=we,te=de,te=Me,te=nt,te=Ue,te=lt,te=qe,te=Ne,te=ke,te=be,te=Re,te=function(Se){return ct(Se)||ot(Se)===pe},te=ct,te=function(Se){return ot(Se)===we},te=function(Se){return ot(Se)===de},te=function(Se){return typeof Se=="object"&&Se!==null&&Se.$$typeof===Me},te=function(Se){return ot(Se)===nt},Nt.isFragment=function(Se){return ot(Se)===Ue},te=function(Se){return ot(Se)===lt},te=function(Se){return ot(Se)===qe},te=function(Se){return ot(Se)===Ne},te=function(Se){return ot(Se)===ke},te=function(Se){return ot(Se)===be},te=function(Se){return ot(Se)===Re},te=function(Se){return typeof Se=="string"||typeof Se=="function"||Se===Ue||Se===Le||Se===ke||Se===be||Se===Re||Se===We||typeof Se=="object"&&Se!==null&&(Se.$$typeof===lt||Se.$$typeof===qe||Se.$$typeof===de||Se.$$typeof===we||Se.$$typeof===nt||Se.$$typeof===ye||Se.$$typeof===vt||Se.$$typeof===Pt||Se.$$typeof===Xe)},te=ot},47655:function(Nn,Nt,te){"use strict";Nn.exports=te(41771)},64701:function(Nn,Nt,te){"use strict";te.r(Nt),te.d(Nt,{ResizableTextArea:function(){return Vn},default:function(){return ln}});var le=te(87462),Me=te(1413),Ne=te(4942),Ue=te(71002),be=te(97685),ke=te(45987),de=te(74902),we=te(94184),pe=te.n(we),Le=te(67656),nt=te(87887),Re=te(67294);function We(Yt){var Cn=Re.useRef();Cn.current=Yt;var pr=Re.useCallback(function(){for(var Xn,ze=arguments.length,fe=new Array(ze),ue=0;ue<ze;ue++)fe[ue]=arguments[ue];return(Xn=Cn.current)===null||Xn===void 0?void 0:Xn.call.apply(Xn,[Cn].concat(fe))},[]);return pr}function qe(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var lt=qe()?Re.useLayoutEffect:Re.useEffect,Xe=lt,ye=function(Cn,pr){var Xn=Re.useRef(!0);lt(function(){if(!Xn.current)return Cn()},pr),lt(function(){return Xn.current=!1,function(){Xn.current=!0}},[])};function vt(Yt){var Cn=Re.useRef(!1),pr=Re.useState(Yt),Xn=(0,be.Z)(pr,2),ze=Xn[0],fe=Xn[1];Re.useEffect(function(){return Cn.current=!1,function(){Cn.current=!0}},[]);function ue(xe,ge){ge&&Cn.current||fe(xe)}return[ze,ue]}function Pt(Yt){return Yt!==void 0}function ot(Yt,Cn){var pr=Cn||{},Xn=pr.defaultValue,ze=pr.value,fe=pr.onChange,ue=pr.postState,xe=vt(function(){return Pt(ze)?ze:Pt(Xn)?typeof Xn=="function"?Xn():Xn:typeof Yt=="function"?Yt():Yt}),ge=(0,be.Z)(xe,2),se=ge[0],Fe=ge[1],st=ze!==void 0?ze:se,en=ue?ue(st):st,Sn=We(fe),dn=vt([st]),zn=(0,be.Z)(dn,2),vn=zn[0],kt=zn[1];ye(function(){var Jt=vn[0];se!==Jt&&Sn(se,Jt)},[vn]),ye(function(){Pt(ze)||Fe(ze)},[ze]);var Xt=We(function(Jt,jt){Fe(Jt,jt),kt([st],jt)});return[en,Xt]}var ct=te(48555),Se=function(Cn){return+setTimeout(Cn,16)},ce=function(Cn){return clearTimeout(Cn)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Se=function(Cn){return window.requestAnimationFrame(Cn)},ce=function(Cn){return window.cancelAnimationFrame(Cn)});var He=0,je=new Map;function it(Yt){je.delete(Yt)}var at=function(Cn){var pr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;He+=1;var Xn=He;function ze(fe){if(fe===0)it(Xn),Cn();else{var ue=Se(function(){ze(fe-1)});je.set(Xn,ue)}}return ze(pr),Xn};at.cancel=function(Yt){var Cn=je.get(Yt);return it(Cn),ce(Cn)};var Ge=at,Ae=`
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;
`,wt=["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"],dt={},$t;function bt(Yt){var Cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,pr=Yt.getAttribute("id")||Yt.getAttribute("data-reactid")||Yt.getAttribute("name");if(Cn&&dt[pr])return dt[pr];var Xn=window.getComputedStyle(Yt),ze=Xn.getPropertyValue("box-sizing")||Xn.getPropertyValue("-moz-box-sizing")||Xn.getPropertyValue("-webkit-box-sizing"),fe=parseFloat(Xn.getPropertyValue("padding-bottom"))+parseFloat(Xn.getPropertyValue("padding-top")),ue=parseFloat(Xn.getPropertyValue("border-bottom-width"))+parseFloat(Xn.getPropertyValue("border-top-width")),xe=wt.map(function(se){return"".concat(se,":").concat(Xn.getPropertyValue(se))}).join(";"),ge={sizingStyle:xe,paddingSize:fe,borderSize:ue,boxSizing:ze};return Cn&&pr&&(dt[pr]=ge),ge}function Ot(Yt){var Cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,pr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Xn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;$t||($t=document.createElement("textarea"),$t.setAttribute("tab-index","-1"),$t.setAttribute("aria-hidden","true"),document.body.appendChild($t)),Yt.getAttribute("wrap")?$t.setAttribute("wrap",Yt.getAttribute("wrap")):$t.removeAttribute("wrap");var ze=bt(Yt,Cn),fe=ze.paddingSize,ue=ze.borderSize,xe=ze.boxSizing,ge=ze.sizingStyle;$t.setAttribute("style","".concat(ge,";").concat(Ae)),$t.value=Yt.value||Yt.placeholder||"";var se=void 0,Fe=void 0,st,en=$t.scrollHeight;if(xe==="border-box"?en+=ue:xe==="content-box"&&(en-=fe),pr!==null||Xn!==null){$t.value=" ";var Sn=$t.scrollHeight-fe;pr!==null&&(se=Sn*pr,xe==="border-box"&&(se=se+fe+ue),en=Math.max(se,en)),Xn!==null&&(Fe=Sn*Xn,xe==="border-box"&&(Fe=Fe+fe+ue),st=en>Fe?"":"hidden",en=Math.min(Fe,en))}var dn={height:en,overflowY:st,resize:"none"};return se&&(dn.minHeight=se),Fe&&(dn.maxHeight=Fe),dn}var Pn=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],$n=0,yt=1,Be=2,Rt=Re.forwardRef(function(Yt,Cn){var pr=Yt,Xn=pr.prefixCls,ze=pr.onPressEnter,fe=pr.defaultValue,ue=pr.value,xe=pr.autoSize,ge=pr.onResize,se=pr.className,Fe=pr.style,st=pr.disabled,en=pr.onChange,Sn=pr.onInternalAutoSize,dn=(0,ke.Z)(pr,Pn),zn=ot(fe,{value:ue,postState:function(Bn){return Bn!=null?Bn:""}}),vn=(0,be.Z)(zn,2),kt=vn[0],Xt=vn[1],Jt=function(Bn){Xt(Bn.target.value),en==null||en(Bn)},jt=Re.useRef();Re.useImperativeHandle(Cn,function(){return{textArea:jt.current}});var Bt=Re.useMemo(function(){return xe&&(0,Ue.Z)(xe)==="object"?[xe.minRows,xe.maxRows]:[]},[xe]),ir=(0,be.Z)(Bt,2),Ct=ir[0],At=ir[1],er=!!xe,An=function(){try{if(document.activeElement===jt.current){var Bn=jt.current,Cr=Bn.selectionStart,qn=Bn.selectionEnd,Lr=Bn.scrollTop;jt.current.setSelectionRange(Cr,qn),jt.current.scrollTop=Lr}}catch(or){}},fr=Re.useState(Be),Rr=(0,be.Z)(fr,2),ii=Rr[0],Yr=Rr[1],Jr=Re.useState(),mi=(0,be.Z)(Jr,2),Br=mi[0],ki=mi[1],Vi=function(){Yr($n)};Xe(function(){er&&Vi()},[ue,Ct,At,er]),Xe(function(){if(ii===$n)Yr(yt);else if(ii===yt){var un=Ot(jt.current,!1,Ct,At);Yr(Be),ki(un)}else An()},[ii]);var ha=Re.useRef(),pa=function(){Ge.cancel(ha.current)},Ui=function(Bn){ii===Be&&(ge==null||ge(Bn),xe&&(pa(),ha.current=Ge(function(){Vi()})))};Re.useEffect(function(){return pa},[]);var Ut=er?Br:null,Qt=(0,Me.Z)((0,Me.Z)({},Fe),Ut);return(ii===$n||ii===yt)&&(Qt.overflowY="hidden",Qt.overflowX="hidden"),Re.createElement(ct.Z,{onResize:Ui,disabled:!(xe||ge)},Re.createElement("textarea",(0,le.Z)({},dn,{ref:jt,style:Qt,className:pe()(Xn,se,(0,Ne.Z)({},"".concat(Xn,"-disabled"),st)),disabled:st,value:kt,onChange:Jt})))}),Vn=Rt,In=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function xt(Yt,Cn){return(0,de.Z)(Yt||"").slice(0,Cn).join("")}function Mt(Yt,Cn,pr,Xn){var ze=pr;return Yt?ze=xt(pr,Xn):(0,de.Z)(Cn||"").length<pr.length&&(0,de.Z)(pr||"").length>Xn&&(ze=Cn),ze}var qt=Re.forwardRef(function(Yt,Cn){var pr,Xn=Yt.defaultValue,ze=Yt.value,fe=Yt.onFocus,ue=Yt.onBlur,xe=Yt.onChange,ge=Yt.allowClear,se=Yt.maxLength,Fe=Yt.onCompositionStart,st=Yt.onCompositionEnd,en=Yt.suffix,Sn=Yt.prefixCls,dn=Sn===void 0?"rc-textarea":Sn,zn=Yt.classes,vn=Yt.showCount,kt=Yt.className,Xt=Yt.style,Jt=Yt.disabled,jt=Yt.hidden,Bt=Yt.classNames,ir=Yt.styles,Ct=Yt.onResize,At=(0,ke.Z)(Yt,In),er=ot(Xn,{value:ze,defaultValue:Xn}),An=(0,be.Z)(er,2),fr=An[0],Rr=An[1],ii=(0,Re.useRef)(null),Yr=Re.useState(!1),Jr=(0,be.Z)(Yr,2),mi=Jr[0],Br=Jr[1],ki=Re.useState(!1),Vi=(0,be.Z)(ki,2),ha=Vi[0],pa=Vi[1],Ui=Re.useRef(),Ut=Re.useRef(0),Qt=Re.useState(null),un=(0,be.Z)(Qt,2),Bn=un[0],Cr=un[1],qn=function(){var ai;(ai=ii.current)===null||ai===void 0||ai.textArea.focus()};(0,Re.useImperativeHandle)(Cn,function(){return{resizableTextArea:ii.current,focus:qn,blur:function(){var ai;(ai=ii.current)===null||ai===void 0||ai.textArea.blur()}}}),(0,Re.useEffect)(function(){Br(function(Vr){return!Jt&&Vr})},[Jt]);var Lr=Number(se)>0,or=function(ai){pa(!0),Ui.current=fr,Ut.current=ai.currentTarget.selectionStart,Fe==null||Fe(ai)},Et=function(ai){pa(!1);var ei=ai.currentTarget.value;if(Lr){var Vt,Kt=Ut.current>=se+1||Ut.current===((Vt=Ui.current)===null||Vt===void 0?void 0:Vt.length);ei=Mt(Kt,Ui.current,ei,se)}ei!==fr&&(Rr(ei),(0,nt.rJ)(ai.currentTarget,ai,xe,ei)),st==null||st(ai)},_t=function(ai){var ei=ai.target.value;if(!ha&&Lr){var Vt=ai.target.selectionStart>=se+1||ai.target.selectionStart===ei.length||!ai.target.selectionStart;ei=Mt(Vt,fr,ei,se)}Rr(ei),(0,nt.rJ)(ai.currentTarget,ai,xe,ei)},zt=function(ai){var ei=At.onPressEnter,Vt=At.onKeyDown;ai.key==="Enter"&&ei&&ei(ai),Vt==null||Vt(ai)},wn=function(ai){Br(!0),fe==null||fe(ai)},ft=function(ai){Br(!1),ue==null||ue(ai)},Ht=function(ai){var ei;Rr(""),qn(),(0,nt.rJ)((ei=ii.current)===null||ei===void 0?void 0:ei.textArea,ai,xe)},xn=(0,nt.D7)(fr);!ha&&Lr&&ze==null&&(xn=xt(xn,se));var En=en,Hn;if(vn){var Gn=(0,de.Z)(xn).length;(0,Ue.Z)(vn)==="object"?Hn=vn.formatter({value:xn,count:Gn,maxLength:se}):Hn="".concat(Gn).concat(Lr?" / ".concat(se):""),En=Re.createElement(Re.Fragment,null,En,Re.createElement("span",{className:pe()("".concat(dn,"-data-count"),Bt==null?void 0:Bt.count),style:ir==null?void 0:ir.count},Hn))}var br=function(ai){var ei;Ct==null||Ct(ai),(ei=ii.current)!==null&&ei!==void 0&&ei.textArea.style.height&&Cr(!0)},fi=!At.autoSize&&!vn&&!ge,Gr=Re.createElement(Le.BaseInput,{value:xn,allowClear:ge,handleReset:Ht,suffix:En,prefixCls:dn,classes:{affixWrapper:pe()(zn==null?void 0:zn.affixWrapper,(pr={},(0,Ne.Z)(pr,"".concat(dn,"-show-count"),vn),(0,Ne.Z)(pr,"".concat(dn,"-textarea-allow-clear"),ge),pr))},disabled:Jt,focused:mi,className:kt,style:(0,Me.Z)((0,Me.Z)({},Xt),Bn&&!fi?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Hn=="string"?Hn:void 0}},hidden:jt,inputElement:Re.createElement(Vn,(0,le.Z)({},At,{onKeyDown:zt,onChange:_t,onFocus:wn,onBlur:ft,onCompositionStart:or,onCompositionEnd:Et,className:Bt==null?void 0:Bt.textarea,style:(0,Me.Z)((0,Me.Z)({},ir==null?void 0:ir.textarea),{},{resize:Xt==null?void 0:Xt.resize}),disabled:Jt,prefixCls:dn,onResize:br,ref:ii}))});return Gr}),an=qt,ln=an},56261:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return je}});var le=te(87462),Me=te(4942),Ne=te(45987),Ue=te(1413),be=te(15671),ke=te(43144),de=te(97326),we=te(60136),pe=te(51630),Le=te(94184),nt=te.n(Le),Re=te(34952),We=te(67294),qe=te(69610),lt=function(at){for(var Ge=at.prefixCls,Ae=at.level,wt=at.isStart,dt=at.isEnd,$t="".concat(Ge,"-indent-unit"),bt=[],Ot=0;Ot<Ae;Ot+=1){var Pn;bt.push(We.createElement("span",{key:Ot,className:nt()($t,(Pn={},(0,Me.Z)(Pn,"".concat($t,"-start"),wt[Ot]),(0,Me.Z)(Pn,"".concat($t,"-end"),dt[Ot]),Pn))}))}return We.createElement("span",{"aria-hidden":"true",className:"".concat(Ge,"-indent")},bt)},Xe=We.memo(lt),ye=te(3596),vt=te(83898),Pt=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ot="open",ct="close",Se="---",ce=function(it){(0,we.Z)(Ge,it);var at=(0,pe.Z)(Ge);function Ge(){var Ae;(0,be.Z)(this,Ge);for(var wt=arguments.length,dt=new Array(wt),$t=0;$t<wt;$t++)dt[$t]=arguments[$t];return Ae=at.call.apply(at,[this].concat(dt)),Ae.state={dragNodeHighlight:!1},Ae.selectHandle=void 0,Ae.cacheIndent=void 0,Ae.onSelectorClick=function(bt){var Ot=Ae.props.context.onNodeClick;Ot(bt,(0,vt.F)(Ae.props)),Ae.isSelectable()?Ae.onSelect(bt):Ae.onCheck(bt)},Ae.onSelectorDoubleClick=function(bt){var Ot=Ae.props.context.onNodeDoubleClick;Ot(bt,(0,vt.F)(Ae.props))},Ae.onSelect=function(bt){if(!Ae.isDisabled()){var Ot=Ae.props.context.onNodeSelect;Ot(bt,(0,vt.F)(Ae.props))}},Ae.onCheck=function(bt){if(!Ae.isDisabled()){var Ot=Ae.props,Pn=Ot.disableCheckbox,$n=Ot.checked,yt=Ae.props.context.onNodeCheck;if(!(!Ae.isCheckable()||Pn)){var Be=!$n;yt(bt,(0,vt.F)(Ae.props),Be)}}},Ae.onMouseEnter=function(bt){var Ot=Ae.props.context.onNodeMouseEnter;Ot(bt,(0,vt.F)(Ae.props))},Ae.onMouseLeave=function(bt){var Ot=Ae.props.context.onNodeMouseLeave;Ot(bt,(0,vt.F)(Ae.props))},Ae.onContextMenu=function(bt){var Ot=Ae.props.context.onNodeContextMenu;Ot(bt,(0,vt.F)(Ae.props))},Ae.onDragStart=function(bt){var Ot=Ae.props.context.onNodeDragStart;bt.stopPropagation(),Ae.setState({dragNodeHighlight:!0}),Ot(bt,(0,de.Z)(Ae));try{bt.dataTransfer.setData("text/plain","")}catch(Pn){}},Ae.onDragEnter=function(bt){var Ot=Ae.props.context.onNodeDragEnter;bt.preventDefault(),bt.stopPropagation(),Ot(bt,(0,de.Z)(Ae))},Ae.onDragOver=function(bt){var Ot=Ae.props.context.onNodeDragOver;bt.preventDefault(),bt.stopPropagation(),Ot(bt,(0,de.Z)(Ae))},Ae.onDragLeave=function(bt){var Ot=Ae.props.context.onNodeDragLeave;bt.stopPropagation(),Ot(bt,(0,de.Z)(Ae))},Ae.onDragEnd=function(bt){var Ot=Ae.props.context.onNodeDragEnd;bt.stopPropagation(),Ae.setState({dragNodeHighlight:!1}),Ot(bt,(0,de.Z)(Ae))},Ae.onDrop=function(bt){var Ot=Ae.props.context.onNodeDrop;bt.preventDefault(),bt.stopPropagation(),Ae.setState({dragNodeHighlight:!1}),Ot(bt,(0,de.Z)(Ae))},Ae.onExpand=function(bt){var Ot=Ae.props,Pn=Ot.loading,$n=Ot.context.onNodeExpand;Pn||$n(bt,(0,vt.F)(Ae.props))},Ae.setSelectHandle=function(bt){Ae.selectHandle=bt},Ae.getNodeState=function(){var bt=Ae.props.expanded;return Ae.isLeaf()?null:bt?ot:ct},Ae.hasChildren=function(){var bt=Ae.props.eventKey,Ot=Ae.props.context.keyEntities,Pn=(0,ye.Z)(Ot,bt)||{},$n=Pn.children;return!!($n||[]).length},Ae.isLeaf=function(){var bt=Ae.props,Ot=bt.isLeaf,Pn=bt.loaded,$n=Ae.props.context.loadData,yt=Ae.hasChildren();return Ot===!1?!1:Ot||!$n&&!yt||$n&&Pn&&!yt},Ae.isDisabled=function(){var bt=Ae.props.disabled,Ot=Ae.props.context.disabled;return!!(Ot||bt)},Ae.isCheckable=function(){var bt=Ae.props.checkable,Ot=Ae.props.context.checkable;return!Ot||bt===!1?!1:Ot},Ae.syncLoadData=function(bt){var Ot=bt.expanded,Pn=bt.loading,$n=bt.loaded,yt=Ae.props.context,Be=yt.loadData,Rt=yt.onNodeLoad;Pn||Be&&Ot&&!Ae.isLeaf()&&!Ae.hasChildren()&&!$n&&Rt((0,vt.F)(Ae.props))},Ae.isDraggable=function(){var bt=Ae.props,Ot=bt.data,Pn=bt.context.draggable;return!!(Pn&&(!Pn.nodeDraggable||Pn.nodeDraggable(Ot)))},Ae.renderDragHandler=function(){var bt=Ae.props.context,Ot=bt.draggable,Pn=bt.prefixCls;return Ot!=null&&Ot.icon?We.createElement("span",{className:"".concat(Pn,"-draggable-icon")},Ot.icon):null},Ae.renderSwitcherIconDom=function(bt){var Ot=Ae.props.switcherIcon,Pn=Ae.props.context.switcherIcon,$n=Ot||Pn;return typeof $n=="function"?$n((0,Ue.Z)((0,Ue.Z)({},Ae.props),{},{isLeaf:bt})):$n},Ae.renderSwitcher=function(){var bt=Ae.props.expanded,Ot=Ae.props.context.prefixCls;if(Ae.isLeaf()){var Pn=Ae.renderSwitcherIconDom(!0);return Pn!==!1?We.createElement("span",{className:nt()("".concat(Ot,"-switcher"),"".concat(Ot,"-switcher-noop"))},Pn):null}var $n=nt()("".concat(Ot,"-switcher"),"".concat(Ot,"-switcher_").concat(bt?ot:ct)),yt=Ae.renderSwitcherIconDom(!1);return yt!==!1?We.createElement("span",{onClick:Ae.onExpand,className:$n},yt):null},Ae.renderCheckbox=function(){var bt=Ae.props,Ot=bt.checked,Pn=bt.halfChecked,$n=bt.disableCheckbox,yt=Ae.props.context.prefixCls,Be=Ae.isDisabled(),Rt=Ae.isCheckable();if(!Rt)return null;var Vn=typeof Rt!="boolean"?Rt:null;return We.createElement("span",{className:nt()("".concat(yt,"-checkbox"),Ot&&"".concat(yt,"-checkbox-checked"),!Ot&&Pn&&"".concat(yt,"-checkbox-indeterminate"),(Be||$n)&&"".concat(yt,"-checkbox-disabled")),onClick:Ae.onCheck},Vn)},Ae.renderIcon=function(){var bt=Ae.props.loading,Ot=Ae.props.context.prefixCls;return We.createElement("span",{className:nt()("".concat(Ot,"-iconEle"),"".concat(Ot,"-icon__").concat(Ae.getNodeState()||"docu"),bt&&"".concat(Ot,"-icon_loading"))})},Ae.renderSelector=function(){var bt=Ae.state.dragNodeHighlight,Ot=Ae.props,Pn=Ot.title,$n=Pn===void 0?Se:Pn,yt=Ot.selected,Be=Ot.icon,Rt=Ot.loading,Vn=Ot.data,In=Ae.props.context,xt=In.prefixCls,Mt=In.showIcon,qt=In.icon,an=In.loadData,ln=In.titleRender,Yt=Ae.isDisabled(),Cn="".concat(xt,"-node-content-wrapper"),pr;if(Mt){var Xn=Be||qt;pr=Xn?We.createElement("span",{className:nt()("".concat(xt,"-iconEle"),"".concat(xt,"-icon__customize"))},typeof Xn=="function"?Xn(Ae.props):Xn):Ae.renderIcon()}else an&&Rt&&(pr=Ae.renderIcon());var ze;typeof $n=="function"?ze=$n(Vn):ln?ze=ln(Vn):ze=$n;var fe=We.createElement("span",{className:"".concat(xt,"-title")},ze);return We.createElement("span",{ref:Ae.setSelectHandle,title:typeof $n=="string"?$n:"",className:nt()("".concat(Cn),"".concat(Cn,"-").concat(Ae.getNodeState()||"normal"),!Yt&&(yt||bt)&&"".concat(xt,"-node-selected")),onMouseEnter:Ae.onMouseEnter,onMouseLeave:Ae.onMouseLeave,onContextMenu:Ae.onContextMenu,onClick:Ae.onSelectorClick,onDoubleClick:Ae.onSelectorDoubleClick},pr,fe,Ae.renderDropIndicator())},Ae.renderDropIndicator=function(){var bt=Ae.props,Ot=bt.disabled,Pn=bt.eventKey,$n=Ae.props.context,yt=$n.draggable,Be=$n.dropLevelOffset,Rt=$n.dropPosition,Vn=$n.prefixCls,In=$n.indent,xt=$n.dropIndicatorRender,Mt=$n.dragOverNodeKey,qt=$n.direction,an=!!yt,ln=!Ot&&an&&Mt===Pn,Yt=In!=null?In:Ae.cacheIndent;return Ae.cacheIndent=In,ln?xt({dropPosition:Rt,dropLevelOffset:Be,indent:Yt,prefixCls:Vn,direction:qt}):null},Ae}return(0,ke.Z)(Ge,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var wt=this.props.selectable,dt=this.props.context.selectable;return typeof wt=="boolean"?wt:dt}},{key:"render",value:function(){var wt,dt=this.props,$t=dt.eventKey,bt=dt.className,Ot=dt.style,Pn=dt.dragOver,$n=dt.dragOverGapTop,yt=dt.dragOverGapBottom,Be=dt.isLeaf,Rt=dt.isStart,Vn=dt.isEnd,In=dt.expanded,xt=dt.selected,Mt=dt.checked,qt=dt.halfChecked,an=dt.loading,ln=dt.domRef,Yt=dt.active,Cn=dt.data,pr=dt.onMouseMove,Xn=dt.selectable,ze=(0,Ne.Z)(dt,Pt),fe=this.props.context,ue=fe.prefixCls,xe=fe.filterTreeNode,ge=fe.keyEntities,se=fe.dropContainerKey,Fe=fe.dropTargetKey,st=fe.draggingNodeKey,en=this.isDisabled(),Sn=(0,Re.Z)(ze,{aria:!0,data:!0}),dn=(0,ye.Z)(ge,$t)||{},zn=dn.level,vn=Vn[Vn.length-1],kt=this.isDraggable(),Xt=!en&&kt,Jt=st===$t,jt=Xn!==void 0?{"aria-selected":!!Xn}:void 0;return We.createElement("div",(0,le.Z)({ref:ln,className:nt()(bt,"".concat(ue,"-treenode"),(wt={},(0,Me.Z)(wt,"".concat(ue,"-treenode-disabled"),en),(0,Me.Z)(wt,"".concat(ue,"-treenode-switcher-").concat(In?"open":"close"),!Be),(0,Me.Z)(wt,"".concat(ue,"-treenode-checkbox-checked"),Mt),(0,Me.Z)(wt,"".concat(ue,"-treenode-checkbox-indeterminate"),qt),(0,Me.Z)(wt,"".concat(ue,"-treenode-selected"),xt),(0,Me.Z)(wt,"".concat(ue,"-treenode-loading"),an),(0,Me.Z)(wt,"".concat(ue,"-treenode-active"),Yt),(0,Me.Z)(wt,"".concat(ue,"-treenode-leaf-last"),vn),(0,Me.Z)(wt,"".concat(ue,"-treenode-draggable"),kt),(0,Me.Z)(wt,"dragging",Jt),(0,Me.Z)(wt,"drop-target",Fe===$t),(0,Me.Z)(wt,"drop-container",se===$t),(0,Me.Z)(wt,"drag-over",!en&&Pn),(0,Me.Z)(wt,"drag-over-gap-top",!en&&$n),(0,Me.Z)(wt,"drag-over-gap-bottom",!en&&yt),(0,Me.Z)(wt,"filter-node",xe&&xe((0,vt.F)(this.props))),wt)),style:Ot,draggable:Xt,"aria-grabbed":Jt,onDragStart:Xt?this.onDragStart:void 0,onDragEnter:kt?this.onDragEnter:void 0,onDragOver:kt?this.onDragOver:void 0,onDragLeave:kt?this.onDragLeave:void 0,onDrop:kt?this.onDrop:void 0,onDragEnd:kt?this.onDragEnd:void 0,onMouseMove:pr},jt,Sn),We.createElement(Xe,{prefixCls:ue,level:zn,isStart:Rt,isEnd:Vn}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Ge}(We.Component),He=function(at){return We.createElement(qe.k.Consumer,null,function(Ge){return We.createElement(ce,(0,le.Z)({},at,{context:Ge}))})};He.displayName="TreeNode",He.isTreeNode=1;var je=He},69610:function(Nn,Nt,te){"use strict";te.d(Nt,{k:function(){return Me}});var le=te(67294),Me=le.createContext(null)},29873:function(Nn,Nt,te){"use strict";te.d(Nt,{BT:function(){return Xe},E6:function(){return Pt},L0:function(){return Le},OM:function(){return lt},_5:function(){return pe},r7:function(){return ot},wA:function(){return Re},yx:function(){return nt}});var le=te(74902),Me=te(71002),Ne=te(72978),Ue=te(67294),be=te(56261),ke=te(3596),de=te(83898),we=null;function pe(ct,Se){if(!ct)return[];var ce=ct.slice(),He=ce.indexOf(Se);return He>=0&&ce.splice(He,1),ce}function Le(ct,Se){var ce=(ct||[]).slice();return ce.indexOf(Se)===-1&&ce.push(Se),ce}function nt(ct){return ct.split("-")}function Re(ct,Se){var ce=[],He=(0,ke.Z)(Se,ct);function je(){var it=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];it.forEach(function(at){var Ge=at.key,Ae=at.children;ce.push(Ge),je(Ae)})}return je(He.children),ce}function We(ct){if(ct.parent){var Se=nt(ct.pos);return Number(Se[Se.length-1])===ct.parent.children.length-1}return!1}function qe(ct){var Se=nt(ct.pos);return Number(Se[Se.length-1])===0}function lt(ct,Se,ce,He,je,it,at,Ge,Ae,wt){var dt,$t=ct.clientX,bt=ct.clientY,Ot=ct.target.getBoundingClientRect(),Pn=Ot.top,$n=Ot.height,yt=(wt==="rtl"?-1:1)*(((je==null?void 0:je.x)||0)-$t),Be=(yt-12)/He,Rt=(0,ke.Z)(Ge,ce.props.eventKey);if(bt<Pn+$n/2){var Vn=at.findIndex(function(fe){return fe.key===Rt.key}),In=Vn<=0?0:Vn-1,xt=at[In].key;Rt=(0,ke.Z)(Ge,xt)}var Mt=Rt.key,qt=Rt,an=Rt.key,ln=0,Yt=0;if(!Ae.includes(Mt))for(var Cn=0;Cn<Be&&We(Rt);Cn+=1)Rt=Rt.parent,Yt+=1;var pr=Se.props.data,Xn=Rt.node,ze=!0;return qe(Rt)&&Rt.level===0&&bt<Pn+$n/2&&it({dragNode:pr,dropNode:Xn,dropPosition:-1})&&Rt.key===ce.props.eventKey?ln=-1:(qt.children||[]).length&&Ae.includes(an)?it({dragNode:pr,dropNode:Xn,dropPosition:0})?ln=0:ze=!1:Yt===0?Be>-1.5?it({dragNode:pr,dropNode:Xn,dropPosition:1})?ln=1:ze=!1:it({dragNode:pr,dropNode:Xn,dropPosition:0})?ln=0:it({dragNode:pr,dropNode:Xn,dropPosition:1})?ln=1:ze=!1:it({dragNode:pr,dropNode:Xn,dropPosition:1})?ln=1:ze=!1,{dropPosition:ln,dropLevelOffset:Yt,dropTargetKey:Rt.key,dropTargetPos:Rt.pos,dragOverNodeKey:an,dropContainerKey:ln===0?null:((dt=Rt.parent)===null||dt===void 0?void 0:dt.key)||null,dropAllowed:ze}}function Xe(ct,Se){if(ct){var ce=Se.multiple;return ce?ct.slice():ct.length?[ct[0]]:ct}}var ye=function(Se){return Se};function vt(ct,Se){if(!ct)return[];var ce=Se||{},He=ce.processProps,je=He===void 0?ye:He,it=Array.isArray(ct)?ct:[ct];return it.map(function(at){var Ge=at.children,Ae=_objectWithoutProperties(at,we),wt=vt(Ge,Se);return React.createElement(TreeNode,_extends({key:Ae.key},je(Ae)),wt)})}function Pt(ct){if(!ct)return null;var Se;if(Array.isArray(ct))Se={checkedKeys:ct,halfCheckedKeys:void 0};else if((0,Me.Z)(ct)==="object")Se={checkedKeys:ct.checked||void 0,halfCheckedKeys:ct.halfChecked||void 0};else return(0,Ne.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Se}function ot(ct,Se){var ce=new Set;function He(je){if(!ce.has(je)){var it=(0,ke.Z)(Se,je);if(it){ce.add(je);var at=it.parent,Ge=it.node;Ge.disabled||at&&He(at.key)}}}return(ct||[]).forEach(function(je){He(je)}),(0,le.Z)(ce)}},97153:function(Nn,Nt,te){"use strict";te.d(Nt,{S:function(){return de}});var le=te(72978),Me=te(3596);function Ne(we,pe){var Le=new Set;return we.forEach(function(nt){pe.has(nt)||Le.add(nt)}),Le}function Ue(we){var pe=we||{},Le=pe.disabled,nt=pe.disableCheckbox,Re=pe.checkable;return!!(Le||nt)||Re===!1}function be(we,pe,Le,nt){for(var Re=new Set(we),We=new Set,qe=0;qe<=Le;qe+=1){var lt=pe.get(qe)||new Set;lt.forEach(function(Pt){var ot=Pt.key,ct=Pt.node,Se=Pt.children,ce=Se===void 0?[]:Se;Re.has(ot)&&!nt(ct)&&ce.filter(function(He){return!nt(He.node)}).forEach(function(He){Re.add(He.key)})})}for(var Xe=new Set,ye=Le;ye>=0;ye-=1){var vt=pe.get(ye)||new Set;vt.forEach(function(Pt){var ot=Pt.parent,ct=Pt.node;if(!(nt(ct)||!Pt.parent||Xe.has(Pt.parent.key))){if(nt(Pt.parent.node)){Xe.add(ot.key);return}var Se=!0,ce=!1;(ot.children||[]).filter(function(He){return!nt(He.node)}).forEach(function(He){var je=He.key,it=Re.has(je);Se&&!it&&(Se=!1),!ce&&(it||We.has(je))&&(ce=!0)}),Se&&Re.add(ot.key),ce&&We.add(ot.key),Xe.add(ot.key)}})}return{checkedKeys:Array.from(Re),halfCheckedKeys:Array.from(Ne(We,Re))}}function ke(we,pe,Le,nt,Re){for(var We=new Set(we),qe=new Set(pe),lt=0;lt<=nt;lt+=1){var Xe=Le.get(lt)||new Set;Xe.forEach(function(ot){var ct=ot.key,Se=ot.node,ce=ot.children,He=ce===void 0?[]:ce;!We.has(ct)&&!qe.has(ct)&&!Re(Se)&&He.filter(function(je){return!Re(je.node)}).forEach(function(je){We.delete(je.key)})})}qe=new Set;for(var ye=new Set,vt=nt;vt>=0;vt-=1){var Pt=Le.get(vt)||new Set;Pt.forEach(function(ot){var ct=ot.parent,Se=ot.node;if(!(Re(Se)||!ot.parent||ye.has(ot.parent.key))){if(Re(ot.parent.node)){ye.add(ct.key);return}var ce=!0,He=!1;(ct.children||[]).filter(function(je){return!Re(je.node)}).forEach(function(je){var it=je.key,at=We.has(it);ce&&!at&&(ce=!1),!He&&(at||qe.has(it))&&(He=!0)}),ce||We.delete(ct.key),He&&qe.add(ct.key),ye.add(ct.key)}})}return{checkedKeys:Array.from(We),halfCheckedKeys:Array.from(Ne(qe,We))}}function de(we,pe,Le,nt){var Re=[],We;nt?We=nt:We=Ue;var qe=new Set(we.filter(function(vt){var Pt=!!(0,Me.Z)(Le,vt);return Pt||Re.push(vt),Pt})),lt=new Map,Xe=0;Object.keys(Le).forEach(function(vt){var Pt=Le[vt],ot=Pt.level,ct=lt.get(ot);ct||(ct=new Set,lt.set(ot,ct)),ct.add(Pt),Xe=Math.max(Xe,ot)}),(0,le.ZP)(!Re.length,"Tree missing follow keys: ".concat(Re.slice(0,100).map(function(vt){return"'".concat(vt,"'")}).join(", ")));var ye;return pe===!0?ye=be(qe,lt,Xe,We):ye=ke(qe,pe.halfCheckedKeys,lt,Xe,We),ye}},3596:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return le}});function le(Me,Ne){return Me[Ne]}},83898:function(Nn,Nt,te){"use strict";te.d(Nt,{I8:function(){return ot},F:function(){return Se},zn:function(){return ye},w$:function(){return lt},oH:function(){return vt},km:function(){return qe},H8:function(){return ct}});var le=te(71002),Me=te(74902),Ne=te(1413),Ue=te(45987),be=te(67294),ke=te(28580);function de(ce){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},je=[];return be.Children.forEach(ce,function(it){it==null&&!He.keepEmpty||(Array.isArray(it)?je=je.concat(de(it)):(0,ke.isFragment)(it)&&it.props?je=je.concat(de(it.props.children,He)):je.push(it))}),je}function we(ce,He){var je=(0,Ne.Z)({},ce);return Array.isArray(He)&&He.forEach(function(it){delete je[it]}),je}var pe=te(72978),Le=te(3596),nt=["children"];function Re(ce,He){return"".concat(ce,"-").concat(He)}function We(ce){return ce&&ce.type&&ce.type.isTreeNode}function qe(ce,He){return ce!=null?ce:He}function lt(ce){var He=ce||{},je=He.title,it=He._title,at=He.key,Ge=He.children,Ae=je||"title";return{title:Ae,_title:it||[Ae],key:at||"key",children:Ge||"children"}}function Xe(ce,He){var je=new Map;function it(at){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(at||[]).forEach(function(Ae){var wt=Ae[He.key],dt=Ae[He.children];warning(wt!=null,"Tree node must have a certain key: [".concat(Ge).concat(wt,"]"));var $t=String(wt);warning(!je.has($t)||wt===null||wt===void 0,"Same 'key' exist in the Tree: ".concat($t)),je.set($t,!0),it(dt,"".concat(Ge).concat($t," > "))})}it(ce)}function ye(ce){function He(je){var it=de(je);return it.map(function(at){if(!We(at))return(0,pe.ZP)(!at,"Tree/TreeNode can only accept TreeNode as children."),null;var Ge=at.key,Ae=at.props,wt=Ae.children,dt=(0,Ue.Z)(Ae,nt),$t=(0,Ne.Z)({key:Ge},dt),bt=He(wt);return bt.length&&($t.children=bt),$t}).filter(function(at){return at})}return He(ce)}function vt(ce,He,je){var it=lt(je),at=it._title,Ge=it.key,Ae=it.children,wt=new Set(He===!0?[]:He),dt=[];function $t(bt){var Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return bt.map(function(Pn,$n){for(var yt=Re(Ot?Ot.pos:"0",$n),Be=qe(Pn[Ge],yt),Rt,Vn=0;Vn<at.length;Vn+=1){var In=at[Vn];if(Pn[In]!==void 0){Rt=Pn[In];break}}var xt=(0,Ne.Z)((0,Ne.Z)({},we(Pn,[].concat((0,Me.Z)(at),[Ge,Ae]))),{},{title:Rt,key:Be,parent:Ot,pos:yt,children:null,data:Pn,isStart:[].concat((0,Me.Z)(Ot?Ot.isStart:[]),[$n===0]),isEnd:[].concat((0,Me.Z)(Ot?Ot.isEnd:[]),[$n===bt.length-1])});return dt.push(xt),He===!0||wt.has(Be)?xt.children=$t(Pn[Ae]||[],xt):xt.children=[],xt})}return $t(ce),dt}function Pt(ce,He,je){var it={};(0,le.Z)(je)==="object"?it=je:it={externalGetKey:je},it=it||{};var at=it,Ge=at.childrenPropName,Ae=at.externalGetKey,wt=at.fieldNames,dt=lt(wt),$t=dt.key,bt=dt.children,Ot=Ge||bt,Pn;Ae?typeof Ae=="string"?Pn=function(Be){return Be[Ae]}:typeof Ae=="function"&&(Pn=function(Be){return Ae(Be)}):Pn=function(Be,Rt){return qe(Be[$t],Rt)};function $n(yt,Be,Rt,Vn){var In=yt?yt[Ot]:ce,xt=yt?Re(Rt.pos,Be):"0",Mt=yt?[].concat((0,Me.Z)(Vn),[yt]):[];if(yt){var qt=Pn(yt,xt),an={node:yt,index:Be,pos:xt,key:qt,parentPos:Rt.node?Rt.pos:null,level:Rt.level+1,nodes:Mt};He(an)}In&&In.forEach(function(ln,Yt){$n(ln,Yt,{node:yt,pos:xt,level:Rt?Rt.level+1:-1},Mt)})}$n(null)}function ot(ce){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},je=He.initWrapper,it=He.processEntity,at=He.onProcessFinished,Ge=He.externalGetKey,Ae=He.childrenPropName,wt=He.fieldNames,dt=arguments.length>2?arguments[2]:void 0,$t=Ge||dt,bt={},Ot={},Pn={posEntities:bt,keyEntities:Ot};return je&&(Pn=je(Pn)||Pn),Pt(ce,function($n){var yt=$n.node,Be=$n.index,Rt=$n.pos,Vn=$n.key,In=$n.parentPos,xt=$n.level,Mt=$n.nodes,qt={node:yt,nodes:Mt,index:Be,key:Vn,pos:Rt,level:xt},an=qe(Vn,Rt);bt[Rt]=qt,Ot[an]=qt,qt.parent=bt[In],qt.parent&&(qt.parent.children=qt.parent.children||[],qt.parent.children.push(qt)),it&&it(qt,Pn)},{externalGetKey:$t,childrenPropName:Ae,fieldNames:wt}),at&&at(Pn),Pn}function ct(ce,He){var je=He.expandedKeys,it=He.selectedKeys,at=He.loadedKeys,Ge=He.loadingKeys,Ae=He.checkedKeys,wt=He.halfCheckedKeys,dt=He.dragOverNodeKey,$t=He.dropPosition,bt=He.keyEntities,Ot=(0,Le.Z)(bt,ce),Pn={eventKey:ce,expanded:je.indexOf(ce)!==-1,selected:it.indexOf(ce)!==-1,loaded:at.indexOf(ce)!==-1,loading:Ge.indexOf(ce)!==-1,checked:Ae.indexOf(ce)!==-1,halfChecked:wt.indexOf(ce)!==-1,pos:String(Ot?Ot.pos:""),dragOver:dt===ce&&$t===0,dragOverGapTop:dt===ce&&$t===-1,dragOverGapBottom:dt===ce&&$t===1};return Pn}function Se(ce){var He=ce.data,je=ce.expanded,it=ce.selected,at=ce.checked,Ge=ce.loaded,Ae=ce.loading,wt=ce.halfChecked,dt=ce.dragOver,$t=ce.dragOverGapTop,bt=ce.dragOverGapBottom,Ot=ce.pos,Pn=ce.active,$n=ce.eventKey,yt=(0,Ne.Z)((0,Ne.Z)({},He),{},{expanded:je,selected:it,checked:at,loaded:Ge,loading:Ae,halfChecked:wt,dragOver:dt,dragOverGapTop:$t,dragOverGapBottom:bt,pos:Ot,active:Pn,key:$n});return"props"in yt||Object.defineProperty(yt,"props",{get:function(){return(0,pe.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),ce}}),yt}},34952:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return we}});var le=te(1413),Me=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,Ne=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Ue="".concat(Me," ").concat(Ne).split(/[\s\n]+/),be="aria-",ke="data-";function de(pe,Le){return pe.indexOf(Le)===0}function we(pe){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nt;Le===!1?nt={aria:!0,data:!0,attr:!0}:Le===!0?nt={aria:!0}:nt=(0,le.Z)({},Le);var Re={};return Object.keys(pe).forEach(function(We){(nt.aria&&(We==="role"||de(We,be))||nt.data&&de(We,ke)||nt.attr&&Ue.includes(We))&&(Re[We]=pe[We])}),Re}},72978:function(Nn,Nt,te){"use strict";var le={};function Me(we,pe){}function Ne(we,pe){}function Ue(){le={}}function be(we,pe,Le){!pe&&!le[Le]&&(we(!1,Le),le[Le]=!0)}function ke(we,pe){be(Me,we,pe)}function de(we,pe){be(Ne,we,pe)}Nt.ZP=ke},81533:function(Nn,Nt){"use strict";var te;var le=typeof Symbol=="function"&&Symbol.for,Me=le?Symbol.for("react.element"):60103,Ne=le?Symbol.for("react.portal"):60106,Ue=le?Symbol.for("react.fragment"):60107,be=le?Symbol.for("react.strict_mode"):60108,ke=le?Symbol.for("react.profiler"):60114,de=le?Symbol.for("react.provider"):60109,we=le?Symbol.for("react.context"):60110,pe=le?Symbol.for("react.async_mode"):60111,Le=le?Symbol.for("react.concurrent_mode"):60111,nt=le?Symbol.for("react.forward_ref"):60112,Re=le?Symbol.for("react.suspense"):60113,We=le?Symbol.for("react.suspense_list"):60120,qe=le?Symbol.for("react.memo"):60115,lt=le?Symbol.for("react.lazy"):60116,Xe=le?Symbol.for("react.block"):60121,ye=le?Symbol.for("react.fundamental"):60117,vt=le?Symbol.for("react.responder"):60118,Pt=le?Symbol.for("react.scope"):60119;function ot(Se){if(typeof Se=="object"&&Se!==null){var ce=Se.$$typeof;switch(ce){case Me:switch(Se=Se.type,Se){case pe:case Le:case Ue:case ke:case be:case Re:return Se;default:switch(Se=Se&&Se.$$typeof,Se){case we:case nt:case lt:case qe:case de:return Se;default:return ce}}case Ne:return ce}}}function ct(Se){return ot(Se)===Le}te=pe,te=Le,te=we,te=de,te=Me,te=nt,te=Ue,te=lt,te=qe,te=Ne,te=ke,te=be,te=Re,te=function(Se){return ct(Se)||ot(Se)===pe},te=ct,te=function(Se){return ot(Se)===we},te=function(Se){return ot(Se)===de},te=function(Se){return typeof Se=="object"&&Se!==null&&Se.$$typeof===Me},te=function(Se){return ot(Se)===nt},Nt.isFragment=function(Se){return ot(Se)===Ue},te=function(Se){return ot(Se)===lt},Nt.isMemo=function(Se){return ot(Se)===qe},te=function(Se){return ot(Se)===Ne},te=function(Se){return ot(Se)===ke},te=function(Se){return ot(Se)===be},te=function(Se){return ot(Se)===Re},te=function(Se){return typeof Se=="string"||typeof Se=="function"||Se===Ue||Se===Le||Se===ke||Se===be||Se===Re||Se===We||typeof Se=="object"&&Se!==null&&(Se.$$typeof===lt||Se.$$typeof===qe||Se.$$typeof===de||Se.$$typeof===we||Se.$$typeof===nt||Se.$$typeof===ye||Se.$$typeof===vt||Se.$$typeof===Pt||Se.$$typeof===Xe)},te=ot},28580:function(Nn,Nt,te){"use strict";Nn.exports=te(81533)},92389:function(Nn,Nt){"use strict";var te={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Me){var Ne=Me.keyCode;if(Me.altKey&&!Me.ctrlKey||Me.metaKey||Ne>=te.F1&&Ne<=te.F12)return!1;switch(Ne){case te.ALT:case te.CAPS_LOCK:case te.CONTEXT_MENU:case te.CTRL:case te.DOWN:case te.END:case te.ESC:case te.HOME:case te.INSERT:case te.LEFT:case te.MAC_FF_META:case te.META:case te.NUMLOCK:case te.NUM_CENTER:case te.PAGE_DOWN:case te.PAGE_UP:case te.PAUSE:case te.PRINT_SCREEN:case te.RIGHT:case te.SHIFT:case te.UP:case te.WIN_KEY:case te.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Me){if(Me>=te.ZERO&&Me<=te.NINE||Me>=te.NUM_ZERO&&Me<=te.NUM_MULTIPLY||Me>=te.A&&Me<=te.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Me===0)return!0;switch(Me){case te.SPACE:case te.QUESTION_MARK:case te.NUM_PLUS:case te.NUM_MINUS:case te.NUM_PERIOD:case te.NUM_DIVISION:case te.SEMICOLON:case te.DASH:case te.EQUALS:case te.COMMA:case te.PERIOD:case te.SLASH:case te.APOSTROPHE:case te.SINGLE_QUOTE:case te.OPEN_SQUARE_BRACKET:case te.BACKSLASH:case te.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};Nt.Z=te},1337:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return we}});var le=te(1413),Me=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,Ne=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Ue="".concat(Me," ").concat(Ne).split(/[\s\n]+/),be="aria-",ke="data-";function de(pe,Le){return pe.indexOf(Le)===0}function we(pe){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nt;Le===!1?nt={aria:!0,data:!0,attr:!0}:Le===!0?nt={aria:!0}:nt=(0,le.Z)({},Le);var Re={};return Object.keys(pe).forEach(function(We){(nt.aria&&(We==="role"||de(We,be))||nt.data&&de(We,ke)||nt.attr&&Ue.includes(We))&&(Re[We]=pe[We])}),Re}},88386:function(Nn,Nt,te){(function(le){le(te(4631))})(function(le){le.defineOption("placeholder","",function(we,pe,Le){var nt=Le&&Le!=le.Init;if(pe&&!nt)we.on("blur",be),we.on("change",ke),we.on("swapDoc",ke),le.on(we.getInputField(),"compositionupdate",we.state.placeholderCompose=function(){Ue(we)}),ke(we);else if(!pe&&nt){we.off("blur",be),we.off("change",ke),we.off("swapDoc",ke),le.off(we.getInputField(),"compositionupdate",we.state.placeholderCompose),Me(we);var Re=we.getWrapperElement();Re.className=Re.className.replace(" CodeMirror-empty","")}pe&&!we.hasFocus()&&be(we)});function Me(we){we.state.placeholder&&(we.state.placeholder.parentNode.removeChild(we.state.placeholder),we.state.placeholder=null)}function Ne(we){Me(we);var pe=we.state.placeholder=document.createElement("pre");pe.style.cssText="height: 0; overflow: visible",pe.style.direction=we.getOption("direction"),pe.className="CodeMirror-placeholder CodeMirror-line-like";var Le=we.getOption("placeholder");typeof Le=="string"&&(Le=document.createTextNode(Le)),pe.appendChild(Le),we.display.lineSpace.insertBefore(pe,we.display.lineSpace.firstChild)}function Ue(we){setTimeout(function(){var pe=!1,Le=we.getInputField();Le.nodeName=="TEXTAREA"?pe=!Le.value:we.lineCount()==1&&(pe=!/[^\u200b]/.test(Le.querySelector(".CodeMirror-line").textContent)),pe?Ne(we):Me(we)},20)}function be(we){de(we)&&Ne(we)}function ke(we){var pe=we.getWrapperElement(),Le=de(we);pe.className=pe.className.replace(" CodeMirror-empty","")+(Le?" CodeMirror-empty":""),Le?Ne(we):Me(we)}function de(we){return we.lineCount()===1&&we.getLine(0)===""}})},82801:function(Nn,Nt,te){(function(le){le(te(4631))})(function(le){var Me={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Ne=le.Pos;le.defineOption("autoCloseBrackets",!1,function(lt,Xe,ye){ye&&ye!=le.Init&&(lt.removeKeyMap(be),lt.state.closeBrackets=null),Xe&&(ke(Ue(Xe,"pairs")),lt.state.closeBrackets=Xe,lt.addKeyMap(be))});function Ue(lt,Xe){return Xe=="pairs"&&typeof lt=="string"?lt:typeof lt=="object"&&lt[Xe]!=null?lt[Xe]:Me[Xe]}var be={Backspace:pe,Enter:Le};function ke(lt){for(var Xe=0;Xe<lt.length;Xe++){var ye=lt.charAt(Xe),vt="'"+ye+"'";be[vt]||(be[vt]=de(ye))}}ke(Me.pairs+"`");function de(lt){return function(Xe){return Re(Xe,lt)}}function we(lt){var Xe=lt.state.closeBrackets;if(!Xe||Xe.override)return Xe;var ye=lt.getModeAt(lt.getCursor());return ye.closeBrackets||Xe}function pe(lt){var Xe=we(lt);if(!Xe||lt.getOption("disableInput"))return le.Pass;for(var ye=Ue(Xe,"pairs"),vt=lt.listSelections(),Pt=0;Pt<vt.length;Pt++){if(!vt[Pt].empty())return le.Pass;var ot=We(lt,vt[Pt].head);if(!ot||ye.indexOf(ot)%2!=0)return le.Pass}for(var Pt=vt.length-1;Pt>=0;Pt--){var ct=vt[Pt].head;lt.replaceRange("",Ne(ct.line,ct.ch-1),Ne(ct.line,ct.ch+1),"+delete")}}function Le(lt){var Xe=we(lt),ye=Xe&&Ue(Xe,"explode");if(!ye||lt.getOption("disableInput"))return le.Pass;for(var vt=lt.listSelections(),Pt=0;Pt<vt.length;Pt++){if(!vt[Pt].empty())return le.Pass;var ot=We(lt,vt[Pt].head);if(!ot||ye.indexOf(ot)%2!=0)return le.Pass}lt.operation(function(){var ct=lt.lineSeparator()||`
`;lt.replaceSelection(ct+ct,null),lt.execCommand("goCharLeft"),vt=lt.listSelections();for(var Se=0;Se<vt.length;Se++){var ce=vt[Se].head.line;lt.indentLine(ce,null,!0),lt.indentLine(ce+1,null,!0)}})}function nt(lt){var Xe=le.cmpPos(lt.anchor,lt.head)>0;return{anchor:new Ne(lt.anchor.line,lt.anchor.ch+(Xe?-1:1)),head:new Ne(lt.head.line,lt.head.ch+(Xe?1:-1))}}function Re(lt,Xe){var ye=we(lt);if(!ye||lt.getOption("disableInput"))return le.Pass;var vt=Ue(ye,"pairs"),Pt=vt.indexOf(Xe);if(Pt==-1)return le.Pass;for(var ot=Ue(ye,"closeBefore"),ct=Ue(ye,"triples"),Se=vt.charAt(Pt+1)==Xe,ce=lt.listSelections(),He=Pt%2==0,je,it=0;it<ce.length;it++){var at=ce[it],Ge=at.head,Ae,wt=lt.getRange(Ge,Ne(Ge.line,Ge.ch+1));if(He&&!at.empty())Ae="surround";else if((Se||!He)&&wt==Xe)Se&&qe(lt,Ge)?Ae="both":ct.indexOf(Xe)>=0&&lt.getRange(Ge,Ne(Ge.line,Ge.ch+3))==Xe+Xe+Xe?Ae="skipThree":Ae="skip";else if(Se&&Ge.ch>1&&ct.indexOf(Xe)>=0&&lt.getRange(Ne(Ge.line,Ge.ch-2),Ge)==Xe+Xe){if(Ge.ch>2&&/\bstring/.test(lt.getTokenTypeAt(Ne(Ge.line,Ge.ch-2))))return le.Pass;Ae="addFour"}else if(Se){var dt=Ge.ch==0?" ":lt.getRange(Ne(Ge.line,Ge.ch-1),Ge);if(!le.isWordChar(wt)&&dt!=Xe&&!le.isWordChar(dt))Ae="both";else return le.Pass}else if(He&&(wt.length===0||/\s/.test(wt)||ot.indexOf(wt)>-1))Ae="both";else return le.Pass;if(!je)je=Ae;else if(je!=Ae)return le.Pass}var $t=Pt%2?vt.charAt(Pt-1):Xe,bt=Pt%2?Xe:vt.charAt(Pt+1);lt.operation(function(){if(je=="skip")lt.execCommand("goCharRight");else if(je=="skipThree")for(var Ot=0;Ot<3;Ot++)lt.execCommand("goCharRight");else if(je=="surround"){for(var Pn=lt.getSelections(),Ot=0;Ot<Pn.length;Ot++)Pn[Ot]=$t+Pn[Ot]+bt;lt.replaceSelections(Pn,"around"),Pn=lt.listSelections().slice();for(var Ot=0;Ot<Pn.length;Ot++)Pn[Ot]=nt(Pn[Ot]);lt.setSelections(Pn)}else je=="both"?(lt.replaceSelection($t+bt,null),lt.triggerElectric($t+bt),lt.execCommand("goCharLeft")):je=="addFour"&&(lt.replaceSelection($t+$t+$t+$t,"before"),lt.execCommand("goCharRight"))})}function We(lt,Xe){var ye=lt.getRange(Ne(Xe.line,Xe.ch-1),Ne(Xe.line,Xe.ch+1));return ye.length==2?ye:null}function qe(lt,Xe){var ye=lt.getTokenAt(Ne(Xe.line,Xe.ch+1));return/\bstring/.test(ye.type)&&ye.start==Xe.ch&&(Xe.ch==0||!/\bstring/.test(lt.getTokenTypeAt(Xe)))}})},57341:function(Nn,Nt,te){(function(le){le(te(4631),te(4786))})(function(le){le.defineOption("autoCloseTags",!1,function(pe,Le,nt){if(nt!=le.Init&&nt&&pe.removeKeyMap("autoCloseTags"),!!Le){var Re={name:"autoCloseTags"};(typeof Le!="object"||Le.whenClosing!==!1)&&(Re["'/'"]=function(We){return ke(We)}),(typeof Le!="object"||Le.whenOpening!==!1)&&(Re["'>'"]=function(We){return Ue(We)}),pe.addKeyMap(Re)}});var Me=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Ne=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function Ue(pe){if(pe.getOption("disableInput"))return le.Pass;for(var Le=pe.listSelections(),nt=[],Re=pe.getOption("autoCloseTags"),We=0;We<Le.length;We++){if(!Le[We].empty())return le.Pass;var qe=Le[We].head,lt=pe.getTokenAt(qe),Xe=le.innerMode(pe.getMode(),lt.state),ye=Xe.state,vt=Xe.mode.xmlCurrentTag&&Xe.mode.xmlCurrentTag(ye),Pt=vt&&vt.name;if(!Pt)return le.Pass;var ot=Xe.mode.configuration=="html",ct=typeof Re=="object"&&Re.dontCloseTags||ot&&Me,Se=typeof Re=="object"&&Re.indentTags||ot&&Ne;lt.end>qe.ch&&(Pt=Pt.slice(0,Pt.length-lt.end+qe.ch));var ce=Pt.toLowerCase();if(!Pt||lt.type=="string"&&(lt.end!=qe.ch||!/[\"\']/.test(lt.string.charAt(lt.string.length-1))||lt.string.length==1)||lt.type=="tag"&&vt.close||lt.string.indexOf("/")==qe.ch-lt.start-1||ct&&de(ct,ce)>-1||we(pe,Xe.mode.xmlCurrentContext&&Xe.mode.xmlCurrentContext(ye)||[],Pt,qe,!0))return le.Pass;var He=typeof Re=="object"&&Re.emptyTags;if(He&&de(He,Pt)>-1){nt[We]={text:"/>",newPos:le.Pos(qe.line,qe.ch+2)};continue}var je=Se&&de(Se,ce)>-1;nt[We]={indent:je,text:">"+(je?`
`:"")+"</"+Pt+">",newPos:je?le.Pos(qe.line+1,0):le.Pos(qe.line,qe.ch+1)}}for(var it=typeof Re=="object"&&Re.dontIndentOnAutoClose,We=Le.length-1;We>=0;We--){var at=nt[We];pe.replaceRange(at.text,Le[We].head,Le[We].anchor,"+insert");var Ge=pe.listSelections().slice(0);Ge[We]={head:at.newPos,anchor:at.newPos},pe.setSelections(Ge),!it&&at.indent&&(pe.indentLine(at.newPos.line,null,!0),pe.indentLine(at.newPos.line+1,null,!0))}}function be(pe,Le){for(var nt=pe.listSelections(),Re=[],We=Le?"/":"</",qe=pe.getOption("autoCloseTags"),lt=typeof qe=="object"&&qe.dontIndentOnSlash,Xe=0;Xe<nt.length;Xe++){if(!nt[Xe].empty())return le.Pass;var ye=nt[Xe].head,vt=pe.getTokenAt(ye),Pt=le.innerMode(pe.getMode(),vt.state),ot=Pt.state;if(Le&&(vt.type=="string"||vt.string.charAt(0)!="<"||vt.start!=ye.ch-1))return le.Pass;var ct,Se=Pt.mode.name!="xml"&&pe.getMode().name=="htmlmixed";if(Se&&Pt.mode.name=="javascript")ct=We+"script";else if(Se&&Pt.mode.name=="css")ct=We+"style";else{var ce=Pt.mode.xmlCurrentContext&&Pt.mode.xmlCurrentContext(ot);if(!ce||ce.length&&we(pe,ce,ce[ce.length-1],ye))return le.Pass;ct=We+ce[ce.length-1]}pe.getLine(ye.line).charAt(vt.end)!=">"&&(ct+=">"),Re[Xe]=ct}if(pe.replaceSelections(Re),nt=pe.listSelections(),!lt)for(var Xe=0;Xe<nt.length;Xe++)(Xe==nt.length-1||nt[Xe].head.line<nt[Xe+1].head.line)&&pe.indentLine(nt[Xe].head.line)}function ke(pe){return pe.getOption("disableInput")?le.Pass:be(pe,!0)}le.commands.closeTag=function(pe){return be(pe)};function de(pe,Le){if(pe.indexOf)return pe.indexOf(Le);for(var nt=0,Re=pe.length;nt<Re;++nt)if(pe[nt]==Le)return nt;return-1}function we(pe,Le,nt,Re,We){if(!le.scanForClosingTag)return!1;var qe=Math.min(pe.lastLine()+1,Re.line+500),lt=le.scanForClosingTag(pe,Re,null,qe);if(!lt||lt.tag!=nt)return!1;for(var Xe=We?1:0,ye=Le.length-1;ye>=0&&Le[ye]==nt;ye--)++Xe;Re=lt.to;for(var ye=1;ye<Xe;ye++){var vt=le.scanForClosingTag(pe,Re,null,qe);if(!vt||vt.tag!=nt)return!1;Re=vt.to}return!0}})},4786:function(Nn,Nt,te){(function(le){le(te(4631))})(function(le){"use strict";var Me=le.Pos;function Ne(ye,vt){return ye.line-vt.line||ye.ch-vt.ch}var Ue="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",be=Ue+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ke=new RegExp("<(/?)(["+Ue+"]["+be+"]*)","g");function de(ye,vt,Pt,ot){this.line=vt,this.ch=Pt,this.cm=ye,this.text=ye.getLine(vt),this.min=ot?Math.max(ot.from,ye.firstLine()):ye.firstLine(),this.max=ot?Math.min(ot.to-1,ye.lastLine()):ye.lastLine()}function we(ye,vt){var Pt=ye.cm.getTokenTypeAt(Me(ye.line,vt));return Pt&&/\btag\b/.test(Pt)}function pe(ye){if(!(ye.line>=ye.max))return ye.ch=0,ye.text=ye.cm.getLine(++ye.line),!0}function Le(ye){if(!(ye.line<=ye.min))return ye.text=ye.cm.getLine(--ye.line),ye.ch=ye.text.length,!0}function nt(ye){for(;;){var vt=ye.text.indexOf(">",ye.ch);if(vt==-1){if(pe(ye))continue;return}if(!we(ye,vt+1)){ye.ch=vt+1;continue}var Pt=ye.text.lastIndexOf("/",vt),ot=Pt>-1&&!/\S/.test(ye.text.slice(Pt+1,vt));return ye.ch=vt+1,ot?"selfClose":"regular"}}function Re(ye){for(;;){var vt=ye.ch?ye.text.lastIndexOf("<",ye.ch-1):-1;if(vt==-1){if(Le(ye))continue;return}if(!we(ye,vt+1)){ye.ch=vt;continue}ke.lastIndex=vt,ye.ch=vt;var Pt=ke.exec(ye.text);if(Pt&&Pt.index==vt)return Pt}}function We(ye){for(;;){ke.lastIndex=ye.ch;var vt=ke.exec(ye.text);if(!vt){if(pe(ye))continue;return}if(!we(ye,vt.index+1)){ye.ch=vt.index+1;continue}return ye.ch=vt.index+vt[0].length,vt}}function qe(ye){for(;;){var vt=ye.ch?ye.text.lastIndexOf(">",ye.ch-1):-1;if(vt==-1){if(Le(ye))continue;return}if(!we(ye,vt+1)){ye.ch=vt;continue}var Pt=ye.text.lastIndexOf("/",vt),ot=Pt>-1&&!/\S/.test(ye.text.slice(Pt+1,vt));return ye.ch=vt+1,ot?"selfClose":"regular"}}function lt(ye,vt){for(var Pt=[];;){var ot=We(ye),ct,Se=ye.line,ce=ye.ch-(ot?ot[0].length:0);if(!ot||!(ct=nt(ye)))return;if(ct!="selfClose")if(ot[1]){for(var He=Pt.length-1;He>=0;--He)if(Pt[He]==ot[2]){Pt.length=He;break}if(He<0&&(!vt||vt==ot[2]))return{tag:ot[2],from:Me(Se,ce),to:Me(ye.line,ye.ch)}}else Pt.push(ot[2])}}function Xe(ye,vt){for(var Pt=[];;){var ot=qe(ye);if(!ot)return;if(ot=="selfClose"){Re(ye);continue}var ct=ye.line,Se=ye.ch,ce=Re(ye);if(!ce)return;if(ce[1])Pt.push(ce[2]);else{for(var He=Pt.length-1;He>=0;--He)if(Pt[He]==ce[2]){Pt.length=He;break}if(He<0&&(!vt||vt==ce[2]))return{tag:ce[2],from:Me(ye.line,ye.ch),to:Me(ct,Se)}}}}le.registerHelper("fold","xml",function(ye,vt){for(var Pt=new de(ye,vt.line,0);;){var ot=We(Pt);if(!ot||Pt.line!=vt.line)return;var ct=nt(Pt);if(!ct)return;if(!ot[1]&&ct!="selfClose"){var Se=Me(Pt.line,Pt.ch),ce=lt(Pt,ot[2]);return ce&&Ne(ce.from,Se)>0?{from:Se,to:ce.from}:null}}}),le.findMatchingTag=function(ye,vt,Pt){var ot=new de(ye,vt.line,vt.ch,Pt);if(!(ot.text.indexOf(">")==-1&&ot.text.indexOf("<")==-1)){var ct=nt(ot),Se=ct&&Me(ot.line,ot.ch),ce=ct&&Re(ot);if(!(!ct||!ce||Ne(ot,vt)>0)){var He={from:Me(ot.line,ot.ch),to:Se,tag:ce[2]};return ct=="selfClose"?{open:He,close:null,at:"open"}:ce[1]?{open:Xe(ot,ce[2]),close:He,at:"close"}:(ot=new de(ye,Se.line,Se.ch,Pt),{open:He,close:lt(ot,ce[2]),at:"open"})}}},le.findEnclosingTag=function(ye,vt,Pt,ot){for(var ct=new de(ye,vt.line,vt.ch,Pt);;){var Se=Xe(ct,ot);if(!Se)break;var ce=new de(ye,vt.line,vt.ch,Pt),He=lt(ce,Se.tag);if(He)return{open:Se,close:He}}},le.scanForClosingTag=function(ye,vt,Pt,ot){var ct=new de(ye,vt.line,vt.ch,ot?{from:0,to:ot}:null);return lt(ct,Pt)}})},4631:function(Nn){(function(Nt,te){Nn.exports=te()})(this,function(){"use strict";var Nt=navigator.userAgent,te=navigator.platform,le=/gecko\/\d/i.test(Nt),Me=/MSIE \d/.test(Nt),Ne=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Nt),Ue=/Edge\/(\d+)/.exec(Nt),be=Me||Ne||Ue,ke=be&&(Me?document.documentMode||6:+(Ue||Ne)[1]),de=!Ue&&/WebKit\//.test(Nt),we=de&&/Qt\/\d+\.\d+/.test(Nt),pe=!Ue&&/Chrome\//.test(Nt),Le=/Opera\//.test(Nt),nt=/Apple Computer/.test(navigator.vendor),Re=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Nt),We=/PhantomJS/.test(Nt),qe=!Ue&&/AppleWebKit/.test(Nt)&&/Mobile\/\w+/.test(Nt),lt=/Android/.test(Nt),Xe=qe||lt||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Nt),ye=qe||/Mac/.test(te),vt=/\bCrOS\b/.test(Nt),Pt=/win/i.test(te),ot=Le&&Nt.match(/Version\/(\d*\.\d*)/);ot&&(ot=Number(ot[1])),ot&&ot>=15&&(Le=!1,de=!0);var ct=ye&&(we||Le&&(ot==null||ot<12.11)),Se=le||be&&ke>=9;function ce(x){return new RegExp("(^|\\s)"+x+"(?:$|\\s)\\s*")}var He=function(x,z){var re=x.className,ne=ce(z).exec(re);if(ne){var ae=re.slice(ne.index+ne[0].length);x.className=re.slice(0,ne.index)+(ae?ne[1]+ae:"")}};function je(x){for(var z=x.childNodes.length;z>0;--z)x.removeChild(x.firstChild);return x}function it(x,z){return je(x).appendChild(z)}function at(x,z,re,ne){var ae=document.createElement(x);if(re&&(ae.className=re),ne&&(ae.style.cssText=ne),typeof z=="string")ae.appendChild(document.createTextNode(z));else if(z)for(var he=0;he<z.length;++he)ae.appendChild(z[he]);return ae}function Ge(x,z,re,ne){var ae=at(x,z,re,ne);return ae.setAttribute("role","presentation"),ae}var Ae;document.createRange?Ae=function(x,z,re,ne){var ae=document.createRange();return ae.setEnd(ne||x,re),ae.setStart(x,z),ae}:Ae=function(x,z,re){var ne=document.body.createTextRange();try{ne.moveToElementText(x.parentNode)}catch(ae){return ne}return ne.collapse(!0),ne.moveEnd("character",re),ne.moveStart("character",z),ne};function wt(x,z){if(z.nodeType==3&&(z=z.parentNode),x.contains)return x.contains(z);do if(z.nodeType==11&&(z=z.host),z==x)return!0;while(z=z.parentNode)}function dt(){var x;try{x=document.activeElement}catch(z){x=document.body||null}for(;x&&x.shadowRoot&&x.shadowRoot.activeElement;)x=x.shadowRoot.activeElement;return x}function $t(x,z){var re=x.className;ce(z).test(re)||(x.className+=(re?" ":"")+z)}function bt(x,z){for(var re=x.split(" "),ne=0;ne<re.length;ne++)re[ne]&&!ce(re[ne]).test(z)&&(z+=" "+re[ne]);return z}var Ot=function(x){x.select()};qe?Ot=function(x){x.selectionStart=0,x.selectionEnd=x.value.length}:be&&(Ot=function(x){try{x.select()}catch(z){}});function Pn(x){var z=Array.prototype.slice.call(arguments,1);return function(){return x.apply(null,z)}}function $n(x,z,re){z||(z={});for(var ne in x)x.hasOwnProperty(ne)&&(re!==!1||!z.hasOwnProperty(ne))&&(z[ne]=x[ne]);return z}function yt(x,z,re,ne,ae){z==null&&(z=x.search(/[^\s\u00a0]/),z==-1&&(z=x.length));for(var he=ne||0,Pe=ae||0;;){var Ze=x.indexOf(" ",he);if(Ze<0||Ze>=z)return Pe+(z-he);Pe+=Ze-he,Pe+=re-Pe%re,he=Ze+1}}var Be=function(){this.id=null,this.f=null,this.time=0,this.handler=Pn(this.onTimeout,this)};Be.prototype.onTimeout=function(x){x.id=0,x.time<=+new Date?x.f():setTimeout(x.handler,x.time-+new Date)},Be.prototype.set=function(x,z){this.f=z;var re=+new Date+x;(!this.id||re<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,x),this.time=re)};function Rt(x,z){for(var re=0;re<x.length;++re)if(x[re]==z)return re;return-1}var Vn=50,In={toString:function(){return"CodeMirror.Pass"}},xt={scroll:!1},Mt={origin:"*mouse"},qt={origin:"+move"};function an(x,z,re){for(var ne=0,ae=0;;){var he=x.indexOf(" ",ne);he==-1&&(he=x.length);var Pe=he-ne;if(he==x.length||ae+Pe>=z)return ne+Math.min(Pe,z-ae);if(ae+=he-ne,ae+=re-ae%re,ne=he+1,ae>=z)return ne}}var ln=[""];function Yt(x){for(;ln.length<=x;)ln.push(Cn(ln)+" ");return ln[x]}function Cn(x){return x[x.length-1]}function pr(x,z){for(var re=[],ne=0;ne<x.length;ne++)re[ne]=z(x[ne],ne);return re}function Xn(x,z,re){for(var ne=0,ae=re(z);ne<x.length&&re(x[ne])<=ae;)ne++;x.splice(ne,0,z)}function ze(){}function fe(x,z){var re;return Object.create?re=Object.create(x):(ze.prototype=x,re=new ze),z&&$n(z,re),re}var ue=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function xe(x){return/\w/.test(x)||x>"\x80"&&(x.toUpperCase()!=x.toLowerCase()||ue.test(x))}function ge(x,z){return z?z.source.indexOf("\\w")>-1&&xe(x)?!0:z.test(x):xe(x)}function se(x){for(var z in x)if(x.hasOwnProperty(z)&&x[z])return!1;return!0}var Fe=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function st(x){return x.charCodeAt(0)>=768&&Fe.test(x)}function en(x,z,re){for(;(re<0?z>0:z<x.length)&&st(x.charAt(z));)z+=re;return z}function Sn(x,z,re){for(var ne=z>re?-1:1;;){if(z==re)return z;var ae=(z+re)/2,he=ne<0?Math.ceil(ae):Math.floor(ae);if(he==z)return x(he)?z:re;x(he)?re=he:z=he+ne}}function dn(x,z,re,ne){if(!x)return ne(z,re,"ltr",0);for(var ae=!1,he=0;he<x.length;++he){var Pe=x[he];(Pe.from<re&&Pe.to>z||z==re&&Pe.to==z)&&(ne(Math.max(Pe.from,z),Math.min(Pe.to,re),Pe.level==1?"rtl":"ltr",he),ae=!0)}ae||ne(z,re,"ltr")}var zn=null;function vn(x,z,re){var ne;zn=null;for(var ae=0;ae<x.length;++ae){var he=x[ae];if(he.from<z&&he.to>z)return ae;he.to==z&&(he.from!=he.to&&re=="before"?ne=ae:zn=ae),he.from==z&&(he.from!=he.to&&re!="before"?ne=ae:zn=ae)}return ne!=null?ne:zn}var kt=function(){var x="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",z="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function re(ht){return ht<=247?x.charAt(ht):1424<=ht&&ht<=1524?"R":1536<=ht&&ht<=1785?z.charAt(ht-1536):1774<=ht&&ht<=2220?"r":8192<=ht&&ht<=8203?"w":ht==8204?"b":"L"}var ne=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ae=/[stwN]/,he=/[LRr]/,Pe=/[Lb1n]/,Ze=/[1n]/;function Ye(ht,tn,bn){this.level=ht,this.from=tn,this.to=bn}return function(ht,tn){var bn=tn=="ltr"?"L":"R";if(ht.length==0||tn=="ltr"&&!ne.test(ht))return!1;for(var wr=ht.length,dr=[],ri=0;ri<wr;++ri)dr.push(re(ht.charCodeAt(ri)));for(var vi=0,zi=bn;vi<wr;++vi){var fa=dr[vi];fa=="m"?dr[vi]=zi:zi=fa}for(var ka=0,qi=bn;ka<wr;++ka){var La=dr[ka];La=="1"&&qi=="r"?dr[ka]="n":he.test(La)&&(qi=La,La=="r"&&(dr[ka]="R"))}for(var mo=1,So=dr[0];mo<wr-1;++mo){var gs=dr[mo];gs=="+"&&So=="1"&&dr[mo+1]=="1"?dr[mo]="1":gs==","&&So==dr[mo+1]&&(So=="1"||So=="n")&&(dr[mo]=So),So=gs}for(var yl=0;yl<wr;++yl){var Su=dr[yl];if(Su==",")dr[yl]="N";else if(Su=="%"){var Kl=void 0;for(Kl=yl+1;Kl<wr&&dr[Kl]=="%";++Kl);for(var Hu=yl&&dr[yl-1]=="!"||Kl<wr&&dr[Kl]=="1"?"1":"N",Zu=yl;Zu<Kl;++Zu)dr[Zu]=Hu;yl=Kl-1}}for(var cu=0,Wu=bn;cu<wr;++cu){var Qo=dr[cu];Wu=="L"&&Qo=="1"?dr[cu]="L":he.test(Qo)&&(Wu=Qo)}for(var Yl=0;Yl<wr;++Yl)if(ae.test(dr[Yl])){var Hl=void 0;for(Hl=Yl+1;Hl<wr&&ae.test(dr[Hl]);++Hl);for(var Xl=(Yl?dr[Yl-1]:bn)=="L",tu=(Hl<wr?dr[Hl]:bn)=="L",ed=Xl==tu?Xl?"L":"R":bn,tc=Yl;tc<Hl;++tc)dr[tc]=ed;Yl=Hl-1}for(var Du=[],Gs,mu=0;mu<wr;)if(Pe.test(dr[mu])){var Fd=mu;for(++mu;mu<wr&&Pe.test(dr[mu]);++mu);Du.push(new Ye(0,Fd,mu))}else{var Pc=mu,Bc=Du.length,xc=tn=="rtl"?1:0;for(++mu;mu<wr&&dr[mu]!="L";++mu);for(var du=Pc;du<mu;)if(Ze.test(dr[du])){Pc<du&&(Du.splice(Bc,0,new Ye(1,Pc,du)),Bc+=xc);var td=du;for(++du;du<mu&&Ze.test(dr[du]);++du);Du.splice(Bc,0,new Ye(2,td,du)),Bc+=xc,Pc=du}else++du;Pc<mu&&Du.splice(Bc,0,new Ye(1,Pc,mu))}return tn=="ltr"&&(Du[0].level==1&&(Gs=ht.match(/^\s+/))&&(Du[0].from=Gs[0].length,Du.unshift(new Ye(0,0,Gs[0].length))),Cn(Du).level==1&&(Gs=ht.match(/\s+$/))&&(Cn(Du).to-=Gs[0].length,Du.push(new Ye(0,wr-Gs[0].length,wr)))),tn=="rtl"?Du.reverse():Du}}();function Xt(x,z){var re=x.order;return re==null&&(re=x.order=kt(x.text,z)),re}var Jt=[],jt=function(x,z,re){if(x.addEventListener)x.addEventListener(z,re,!1);else if(x.attachEvent)x.attachEvent("on"+z,re);else{var ne=x._handlers||(x._handlers={});ne[z]=(ne[z]||Jt).concat(re)}};function Bt(x,z){return x._handlers&&x._handlers[z]||Jt}function ir(x,z,re){if(x.removeEventListener)x.removeEventListener(z,re,!1);else if(x.detachEvent)x.detachEvent("on"+z,re);else{var ne=x._handlers,ae=ne&&ne[z];if(ae){var he=Rt(ae,re);he>-1&&(ne[z]=ae.slice(0,he).concat(ae.slice(he+1)))}}}function Ct(x,z){var re=Bt(x,z);if(re.length)for(var ne=Array.prototype.slice.call(arguments,2),ae=0;ae<re.length;++ae)re[ae].apply(null,ne)}function At(x,z,re){return typeof z=="string"&&(z={type:z,preventDefault:function(){this.defaultPrevented=!0}}),Ct(x,re||z.type,x,z),Yr(z)||z.codemirrorIgnore}function er(x){var z=x._handlers&&x._handlers.cursorActivity;if(z)for(var re=x.curOp.cursorActivityHandlers||(x.curOp.cursorActivityHandlers=[]),ne=0;ne<z.length;++ne)Rt(re,z[ne])==-1&&re.push(z[ne])}function An(x,z){return Bt(x,z).length>0}function fr(x){x.prototype.on=function(z,re){jt(this,z,re)},x.prototype.off=function(z,re){ir(this,z,re)}}function Rr(x){x.preventDefault?x.preventDefault():x.returnValue=!1}function ii(x){x.stopPropagation?x.stopPropagation():x.cancelBubble=!0}function Yr(x){return x.defaultPrevented!=null?x.defaultPrevented:x.returnValue==!1}function Jr(x){Rr(x),ii(x)}function mi(x){return x.target||x.srcElement}function Br(x){var z=x.which;return z==null&&(x.button&1?z=1:x.button&2?z=3:x.button&4&&(z=2)),ye&&x.ctrlKey&&z==1&&(z=3),z}var ki=function(){if(be&&ke<9)return!1;var x=at("div");return"draggable"in x||"dragDrop"in x}(),Vi;function ha(x){if(Vi==null){var z=at("span","\u200B");it(x,at("span",[z,document.createTextNode("x")])),x.firstChild.offsetHeight!=0&&(Vi=z.offsetWidth<=1&&z.offsetHeight>2&&!(be&&ke<8))}var re=Vi?at("span","\u200B"):at("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return re.setAttribute("cm-text",""),re}var pa;function Ui(x){if(pa!=null)return pa;var z=it(x,document.createTextNode("A\u062EA")),re=Ae(z,0,1).getBoundingClientRect(),ne=Ae(z,1,2).getBoundingClientRect();return je(x),!re||re.left==re.right?!1:pa=ne.right-re.right<3}var Ut=`
b`.split(/\n/).length!=3?function(x){for(var z=0,re=[],ne=x.length;z<=ne;){var ae=x.indexOf(`
`,z);ae==-1&&(ae=x.length);var he=x.slice(z,x.charAt(ae-1)=="\r"?ae-1:ae),Pe=he.indexOf("\r");Pe!=-1?(re.push(he.slice(0,Pe)),z+=Pe+1):(re.push(he),z=ae+1)}return re}:function(x){return x.split(/\r\n?|\n/)},Qt=window.getSelection?function(x){try{return x.selectionStart!=x.selectionEnd}catch(z){return!1}}:function(x){var z;try{z=x.ownerDocument.selection.createRange()}catch(re){}return!z||z.parentElement()!=x?!1:z.compareEndPoints("StartToEnd",z)!=0},un=function(){var x=at("div");return"oncopy"in x?!0:(x.setAttribute("oncopy","return;"),typeof x.oncopy=="function")}(),Bn=null;function Cr(x){if(Bn!=null)return Bn;var z=it(x,at("span","x")),re=z.getBoundingClientRect(),ne=Ae(z,0,1).getBoundingClientRect();return Bn=Math.abs(re.left-ne.left)>1}var qn={},Lr={};function or(x,z){arguments.length>2&&(z.dependencies=Array.prototype.slice.call(arguments,2)),qn[x]=z}function Et(x,z){Lr[x]=z}function _t(x){if(typeof x=="string"&&Lr.hasOwnProperty(x))x=Lr[x];else if(x&&typeof x.name=="string"&&Lr.hasOwnProperty(x.name)){var z=Lr[x.name];typeof z=="string"&&(z={name:z}),x=fe(z,x),x.name=z.name}else{if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(x))return _t("application/xml");if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(x))return _t("application/json")}return typeof x=="string"?{name:x}:x||{name:"null"}}function zt(x,z){z=_t(z);var re=qn[z.name];if(!re)return zt(x,"text/plain");var ne=re(x,z);if(wn.hasOwnProperty(z.name)){var ae=wn[z.name];for(var he in ae)ae.hasOwnProperty(he)&&(ne.hasOwnProperty(he)&&(ne["_"+he]=ne[he]),ne[he]=ae[he])}if(ne.name=z.name,z.helperType&&(ne.helperType=z.helperType),z.modeProps)for(var Pe in z.modeProps)ne[Pe]=z.modeProps[Pe];return ne}var wn={};function ft(x,z){var re=wn.hasOwnProperty(x)?wn[x]:wn[x]={};$n(z,re)}function Ht(x,z){if(z===!0)return z;if(x.copyState)return x.copyState(z);var re={};for(var ne in z){var ae=z[ne];ae instanceof Array&&(ae=ae.concat([])),re[ne]=ae}return re}function xn(x,z){for(var re;x.innerMode&&(re=x.innerMode(z),!(!re||re.mode==x));)z=re.state,x=re.mode;return re||{mode:x,state:z}}function En(x,z,re){return x.startState?x.startState(z,re):!0}var Hn=function(x,z,re){this.pos=this.start=0,this.string=x,this.tabSize=z||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=re};Hn.prototype.eol=function(){return this.pos>=this.string.length},Hn.prototype.sol=function(){return this.pos==this.lineStart},Hn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Hn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Hn.prototype.eat=function(x){var z=this.string.charAt(this.pos),re;if(typeof x=="string"?re=z==x:re=z&&(x.test?x.test(z):x(z)),re)return++this.pos,z},Hn.prototype.eatWhile=function(x){for(var z=this.pos;this.eat(x););return this.pos>z},Hn.prototype.eatSpace=function(){for(var x=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>x},Hn.prototype.skipToEnd=function(){this.pos=this.string.length},Hn.prototype.skipTo=function(x){var z=this.string.indexOf(x,this.pos);if(z>-1)return this.pos=z,!0},Hn.prototype.backUp=function(x){this.pos-=x},Hn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=yt(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?yt(this.string,this.lineStart,this.tabSize):0)},Hn.prototype.indentation=function(){return yt(this.string,null,this.tabSize)-(this.lineStart?yt(this.string,this.lineStart,this.tabSize):0)},Hn.prototype.match=function(x,z,re){if(typeof x=="string"){var ne=function(Pe){return re?Pe.toLowerCase():Pe},ae=this.string.substr(this.pos,x.length);if(ne(ae)==ne(x))return z!==!1&&(this.pos+=x.length),!0}else{var he=this.string.slice(this.pos).match(x);return he&&he.index>0?null:(he&&z!==!1&&(this.pos+=he[0].length),he)}},Hn.prototype.current=function(){return this.string.slice(this.start,this.pos)},Hn.prototype.hideFirstChars=function(x,z){this.lineStart+=x;try{return z()}finally{this.lineStart-=x}},Hn.prototype.lookAhead=function(x){var z=this.lineOracle;return z&&z.lookAhead(x)},Hn.prototype.baseToken=function(){var x=this.lineOracle;return x&&x.baseToken(this.pos)};function Gn(x,z){if(z-=x.first,z<0||z>=x.size)throw new Error("There is no line "+(z+x.first)+" in the document.");for(var re=x;!re.lines;)for(var ne=0;;++ne){var ae=re.children[ne],he=ae.chunkSize();if(z<he){re=ae;break}z-=he}return re.lines[z]}function br(x,z,re){var ne=[],ae=z.line;return x.iter(z.line,re.line+1,function(he){var Pe=he.text;ae==re.line&&(Pe=Pe.slice(0,re.ch)),ae==z.line&&(Pe=Pe.slice(z.ch)),ne.push(Pe),++ae}),ne}function fi(x,z,re){var ne=[];return x.iter(z,re,function(ae){ne.push(ae.text)}),ne}function Gr(x,z){var re=z-x.height;if(re)for(var ne=x;ne;ne=ne.parent)ne.height+=re}function Vr(x){if(x.parent==null)return null;for(var z=x.parent,re=Rt(z.lines,x),ne=z.parent;ne;z=ne,ne=ne.parent)for(var ae=0;ne.children[ae]!=z;++ae)re+=ne.children[ae].chunkSize();return re+z.first}function ai(x,z){var re=x.first;e:do{for(var ne=0;ne<x.children.length;++ne){var ae=x.children[ne],he=ae.height;if(z<he){x=ae;continue e}z-=he,re+=ae.chunkSize()}return re}while(!x.lines);for(var Pe=0;Pe<x.lines.length;++Pe){var Ze=x.lines[Pe],Ye=Ze.height;if(z<Ye)break;z-=Ye}return re+Pe}function ei(x,z){return z>=x.first&&z<x.first+x.size}function Vt(x,z){return String(x.lineNumberFormatter(z+x.firstLineNumber))}function Kt(x,z,re){if(re===void 0&&(re=null),!(this instanceof Kt))return new Kt(x,z,re);this.line=x,this.ch=z,this.sticky=re}function nn(x,z){return x.line-z.line||x.ch-z.ch}function sr(x,z){return x.sticky==z.sticky&&nn(x,z)==0}function Tr(x){return Kt(x.line,x.ch)}function Fn(x,z){return nn(x,z)<0?z:x}function mr(x,z){return nn(x,z)<0?x:z}function ur(x,z){return Math.max(x.first,Math.min(z,x.first+x.size-1))}function zr(x,z){if(z.line<x.first)return Kt(x.first,0);var re=x.first+x.size-1;return z.line>re?Kt(re,Gn(x,re).text.length):ti(z,Gn(x,z.line).text.length)}function ti(x,z){var re=x.ch;return re==null||re>z?Kt(x.line,z):re<0?Kt(x.line,0):x}function jn(x,z){for(var re=[],ne=0;ne<z.length;ne++)re[ne]=zr(x,z[ne]);return re}var Gi=function(x,z){this.state=x,this.lookAhead=z},_i=function(x,z,re,ne){this.state=z,this.doc=x,this.line=re,this.maxLookAhead=ne||0,this.baseTokens=null,this.baseTokenPos=1};_i.prototype.lookAhead=function(x){var z=this.doc.getLine(this.line+x);return z!=null&&x>this.maxLookAhead&&(this.maxLookAhead=x),z},_i.prototype.baseToken=function(x){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=x;)this.baseTokenPos+=2;var z=this.baseTokens[this.baseTokenPos+1];return{type:z&&z.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-x}},_i.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},_i.fromSaved=function(x,z,re){return z instanceof Gi?new _i(x,Ht(x.mode,z.state),re,z.lookAhead):new _i(x,Ht(x.mode,z),re)},_i.prototype.save=function(x){var z=x!==!1?Ht(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Gi(z,this.maxLookAhead):z};function Xa(x,z,re,ne){var ae=[x.state.modeGen],he={};Pa(x,z.text,x.doc.mode,re,function(ht,tn){return ae.push(ht,tn)},he,ne);for(var Pe=re.state,Ze=function(ht){re.baseTokens=ae;var tn=x.state.overlays[ht],bn=1,wr=0;re.state=!0,Pa(x,z.text,tn.mode,re,function(dr,ri){for(var vi=bn;wr<dr;){var zi=ae[bn];zi>dr&&ae.splice(bn,1,dr,ae[bn+1],zi),bn+=2,wr=Math.min(dr,zi)}if(ri)if(tn.opaque)ae.splice(vi,bn-vi,dr,"overlay "+ri),bn=vi+2;else for(;vi<bn;vi+=2){var fa=ae[vi+1];ae[vi+1]=(fa?fa+" ":"")+"overlay "+ri}},he),re.state=Pe,re.baseTokens=null,re.baseTokenPos=1},Ye=0;Ye<x.state.overlays.length;++Ye)Ze(Ye);return{styles:ae,classes:he.bgClass||he.textClass?he:null}}function _a(x,z,re){if(!z.styles||z.styles[0]!=x.state.modeGen){var ne=Aa(x,Vr(z)),ae=z.text.length>x.options.maxHighlightLength&&Ht(x.doc.mode,ne.state),he=Xa(x,z,ne);ae&&(ne.state=ae),z.stateAfter=ne.save(!ae),z.styles=he.styles,he.classes?z.styleClasses=he.classes:z.styleClasses&&(z.styleClasses=null),re===x.doc.highlightFrontier&&(x.doc.modeFrontier=Math.max(x.doc.modeFrontier,++x.doc.highlightFrontier))}return z.styles}function Aa(x,z,re){var ne=x.doc,ae=x.display;if(!ne.mode.startState)return new _i(ne,!0,z);var he=to(x,z,re),Pe=he>ne.first&&Gn(ne,he-1).stateAfter,Ze=Pe?_i.fromSaved(ne,Pe,he):new _i(ne,En(ne.mode),he);return ne.iter(he,z,function(Ye){ra(x,Ye.text,Ze);var ht=Ze.line;Ye.stateAfter=ht==z-1||ht%5==0||ht>=ae.viewFrom&&ht<ae.viewTo?Ze.save():null,Ze.nextLine()}),re&&(ne.modeFrontier=Ze.line),Ze}function ra(x,z,re,ne){var ae=x.doc.mode,he=new Hn(z,x.options.tabSize,re);for(he.start=he.pos=ne||0,z==""&&Oa(ae,re.state);!he.eol();)ya(ae,he,re.state),he.start=he.pos}function Oa(x,z){if(x.blankLine)return x.blankLine(z);if(x.innerMode){var re=xn(x,z);if(re.mode.blankLine)return re.mode.blankLine(re.state)}}function ya(x,z,re,ne){for(var ae=0;ae<10;ae++){ne&&(ne[0]=xn(x,re).mode);var he=x.token(z,re);if(z.pos>z.start)return he}throw new Error("Mode "+x.name+" failed to advance stream.")}var Ra=function(x,z,re){this.start=x.start,this.end=x.pos,this.string=x.current(),this.type=z||null,this.state=re};function oo(x,z,re,ne){var ae=x.doc,he=ae.mode,Pe;z=zr(ae,z);var Ze=Gn(ae,z.line),Ye=Aa(x,z.line,re),ht=new Hn(Ze.text,x.options.tabSize,Ye),tn;for(ne&&(tn=[]);(ne||ht.pos<z.ch)&&!ht.eol();)ht.start=ht.pos,Pe=ya(he,ht,Ye.state),ne&&tn.push(new Ra(ht,Pe,Ht(ae.mode,Ye.state)));return ne?tn:new Ra(ht,Pe,Ye.state)}function Yi(x,z){if(x)for(;;){var re=x.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!re)break;x=x.slice(0,re.index)+x.slice(re.index+re[0].length);var ne=re[1]?"bgClass":"textClass";z[ne]==null?z[ne]=re[2]:new RegExp("(?:^|\\s)"+re[2]+"(?:$|\\s)").test(z[ne])||(z[ne]+=" "+re[2])}return x}function Pa(x,z,re,ne,ae,he,Pe){var Ze=re.flattenSpans;Ze==null&&(Ze=x.options.flattenSpans);var Ye=0,ht=null,tn=new Hn(z,x.options.tabSize,ne),bn,wr=x.options.addModeClass&&[null];for(z==""&&Yi(Oa(re,ne.state),he);!tn.eol();){if(tn.pos>x.options.maxHighlightLength?(Ze=!1,Pe&&ra(x,z,ne,tn.pos),tn.pos=z.length,bn=null):bn=Yi(ya(re,tn,ne.state,wr),he),wr){var dr=wr[0].name;dr&&(bn="m-"+(bn?dr+" "+bn:dr))}if(!Ze||ht!=bn){for(;Ye<tn.start;)Ye=Math.min(tn.start,Ye+5e3),ae(Ye,ht);ht=bn}tn.start=tn.pos}for(;Ye<tn.pos;){var ri=Math.min(tn.pos,Ye+5e3);ae(ri,ht),Ye=ri}}function to(x,z,re){for(var ne,ae,he=x.doc,Pe=re?-1:z-(x.doc.mode.innerMode?1e3:100),Ze=z;Ze>Pe;--Ze){if(Ze<=he.first)return he.first;var Ye=Gn(he,Ze-1),ht=Ye.stateAfter;if(ht&&(!re||Ze+(ht instanceof Gi?ht.lookAhead:0)<=he.modeFrontier))return Ze;var tn=yt(Ye.text,null,x.options.tabSize);(ae==null||ne>tn)&&(ae=Ze-1,ne=tn)}return ae}function _o(x,z){if(x.modeFrontier=Math.min(x.modeFrontier,z),!(x.highlightFrontier<z-10)){for(var re=x.first,ne=z-1;ne>re;ne--){var ae=Gn(x,ne).stateAfter;if(ae&&(!(ae instanceof Gi)||ne+ae.lookAhead<z)){re=ne+1;break}}x.highlightFrontier=Math.min(x.highlightFrontier,re)}}var wo=!1,ia=!1;function on(){wo=!0}function Gt(){ia=!0}function Kn(x,z,re){this.marker=x,this.from=z,this.to=re}function yr(x,z){if(x)for(var re=0;re<x.length;++re){var ne=x[re];if(ne.marker==z)return ne}}function Ir(x,z){for(var re,ne=0;ne<x.length;++ne)x[ne]!=z&&(re||(re=[])).push(x[ne]);return re}function si(x,z){x.markedSpans=x.markedSpans?x.markedSpans.concat([z]):[z],z.marker.attachLine(x)}function Mi(x,z,re){var ne;if(x)for(var ae=0;ae<x.length;++ae){var he=x[ae],Pe=he.marker,Ze=he.from==null||(Pe.inclusiveLeft?he.from<=z:he.from<z);if(Ze||he.from==z&&Pe.type=="bookmark"&&(!re||!he.marker.insertLeft)){var Ye=he.to==null||(Pe.inclusiveRight?he.to>=z:he.to>z);(ne||(ne=[])).push(new Kn(Pe,he.from,Ye?null:he.to))}}return ne}function Ti(x,z,re){var ne;if(x)for(var ae=0;ae<x.length;++ae){var he=x[ae],Pe=he.marker,Ze=he.to==null||(Pe.inclusiveRight?he.to>=z:he.to>z);if(Ze||he.from==z&&Pe.type=="bookmark"&&(!re||he.marker.insertLeft)){var Ye=he.from==null||(Pe.inclusiveLeft?he.from<=z:he.from<z);(ne||(ne=[])).push(new Kn(Pe,Ye?null:he.from-z,he.to==null?null:he.to-z))}}return ne}function ji(x,z){if(z.full)return null;var re=ei(x,z.from.line)&&Gn(x,z.from.line).markedSpans,ne=ei(x,z.to.line)&&Gn(x,z.to.line).markedSpans;if(!re&&!ne)return null;var ae=z.from.ch,he=z.to.ch,Pe=nn(z.from,z.to)==0,Ze=Mi(re,ae,Pe),Ye=Ti(ne,he,Pe),ht=z.text.length==1,tn=Cn(z.text).length+(ht?ae:0);if(Ze)for(var bn=0;bn<Ze.length;++bn){var wr=Ze[bn];if(wr.to==null){var dr=yr(Ye,wr.marker);dr?ht&&(wr.to=dr.to==null?null:dr.to+tn):wr.to=ae}}if(Ye)for(var ri=0;ri<Ye.length;++ri){var vi=Ye[ri];if(vi.to!=null&&(vi.to+=tn),vi.from==null){var zi=yr(Ze,vi.marker);zi||(vi.from=tn,ht&&(Ze||(Ze=[])).push(vi))}else vi.from+=tn,ht&&(Ze||(Ze=[])).push(vi)}Ze&&(Ze=Oi(Ze)),Ye&&Ye!=Ze&&(Ye=Oi(Ye));var fa=[Ze];if(!ht){var ka=z.text.length-2,qi;if(ka>0&&Ze)for(var La=0;La<Ze.length;++La)Ze[La].to==null&&(qi||(qi=[])).push(new Kn(Ze[La].marker,null,null));for(var mo=0;mo<ka;++mo)fa.push(qi);fa.push(Ye)}return fa}function Oi(x){for(var z=0;z<x.length;++z){var re=x[z];re.from!=null&&re.from==re.to&&re.marker.clearWhenEmpty!==!1&&x.splice(z--,1)}return x.length?x:null}function aa(x,z,re){var ne=null;if(x.iter(z.line,re.line+1,function(dr){if(dr.markedSpans)for(var ri=0;ri<dr.markedSpans.length;++ri){var vi=dr.markedSpans[ri].marker;vi.readOnly&&(!ne||Rt(ne,vi)==-1)&&(ne||(ne=[])).push(vi)}}),!ne)return null;for(var ae=[{from:z,to:re}],he=0;he<ne.length;++he)for(var Pe=ne[he],Ze=Pe.find(0),Ye=0;Ye<ae.length;++Ye){var ht=ae[Ye];if(!(nn(ht.to,Ze.from)<0||nn(ht.from,Ze.to)>0)){var tn=[Ye,1],bn=nn(ht.from,Ze.from),wr=nn(ht.to,Ze.to);(bn<0||!Pe.inclusiveLeft&&!bn)&&tn.push({from:ht.from,to:Ze.from}),(wr>0||!Pe.inclusiveRight&&!wr)&&tn.push({from:Ze.to,to:ht.to}),ae.splice.apply(ae,tn),Ye+=tn.length-3}}return ae}function Da(x){var z=x.markedSpans;if(z){for(var re=0;re<z.length;++re)z[re].marker.detachLine(x);x.markedSpans=null}}function wi(x,z){if(z){for(var re=0;re<z.length;++re)z[re].marker.attachLine(x);x.markedSpans=z}}function fn(x){return x.inclusiveLeft?-1:0}function Rn(x){return x.inclusiveRight?1:0}function rr(x,z){var re=x.lines.length-z.lines.length;if(re!=0)return re;var ne=x.find(),ae=z.find(),he=nn(ne.from,ae.from)||fn(x)-fn(z);if(he)return-he;var Pe=nn(ne.to,ae.to)||Rn(x)-Rn(z);return Pe||z.id-x.id}function me(x,z){var re=ia&&x.markedSpans,ne;if(re)for(var ae=void 0,he=0;he<re.length;++he)ae=re[he],ae.marker.collapsed&&(z?ae.from:ae.to)==null&&(!ne||rr(ne,ae.marker)<0)&&(ne=ae.marker);return ne}function $e(x){return me(x,!0)}function Ve(x){return me(x,!1)}function et(x,z){var re=ia&&x.markedSpans,ne;if(re)for(var ae=0;ae<re.length;++ae){var he=re[ae];he.marker.collapsed&&(he.from==null||he.from<z)&&(he.to==null||he.to>z)&&(!ne||rr(ne,he.marker)<0)&&(ne=he.marker)}return ne}function Je(x,z,re,ne,ae){var he=Gn(x,z),Pe=ia&&he.markedSpans;if(Pe)for(var Ze=0;Ze<Pe.length;++Ze){var Ye=Pe[Ze];if(Ye.marker.collapsed){var ht=Ye.marker.find(0),tn=nn(ht.from,re)||fn(Ye.marker)-fn(ae),bn=nn(ht.to,ne)||Rn(Ye.marker)-Rn(ae);if(!(tn>=0&&bn<=0||tn<=0&&bn>=0)&&(tn<=0&&(Ye.marker.inclusiveRight&&ae.inclusiveLeft?nn(ht.to,re)>=0:nn(ht.to,re)>0)||tn>=0&&(Ye.marker.inclusiveRight&&ae.inclusiveLeft?nn(ht.from,ne)<=0:nn(ht.from,ne)<0)))return!0}}}function ut(x){for(var z;z=$e(x);)x=z.find(-1,!0).line;return x}function mt(x){for(var z;z=Ve(x);)x=z.find(1,!0).line;return x}function Wt(x){for(var z,re;z=Ve(x);)x=z.find(1,!0).line,(re||(re=[])).push(x);return re}function sn(x,z){var re=Gn(x,z),ne=ut(re);return re==ne?z:Vr(ne)}function Wn(x,z){if(z>x.lastLine())return z;var re=Gn(x,z),ne;if(!lr(x,re))return z;for(;ne=Ve(re);)re=ne.find(1,!0).line;return Vr(re)+1}function lr(x,z){var re=ia&&z.markedSpans;if(re){for(var ne=void 0,ae=0;ae<re.length;++ae)if(ne=re[ae],!!ne.marker.collapsed){if(ne.from==null)return!0;if(!ne.marker.widgetNode&&ne.from==0&&ne.marker.inclusiveLeft&&Qn(x,z,ne))return!0}}}function Qn(x,z,re){if(re.to==null){var ne=re.marker.find(1,!0);return Qn(x,ne.line,yr(ne.line.markedSpans,re.marker))}if(re.marker.inclusiveRight&&re.to==z.text.length)return!0;for(var ae=void 0,he=0;he<z.markedSpans.length;++he)if(ae=z.markedSpans[he],ae.marker.collapsed&&!ae.marker.widgetNode&&ae.from==re.to&&(ae.to==null||ae.to!=re.from)&&(ae.marker.inclusiveLeft||re.marker.inclusiveRight)&&Qn(x,z,ae))return!0}function Tn(x){x=ut(x);for(var z=0,re=x.parent,ne=0;ne<re.lines.length;++ne){var ae=re.lines[ne];if(ae==x)break;z+=ae.height}for(var he=re.parent;he;re=he,he=re.parent)for(var Pe=0;Pe<he.children.length;++Pe){var Ze=he.children[Pe];if(Ze==re)break;z+=Ze.height}return z}function kn(x){if(x.height==0)return 0;for(var z=x.text.length,re,ne=x;re=$e(ne);){var ae=re.find(0,!0);ne=ae.from.line,z+=ae.from.ch-ae.to.ch}for(ne=x;re=Ve(ne);){var he=re.find(0,!0);z-=ne.text.length-he.from.ch,ne=he.to.line,z+=ne.text.length-he.to.ch}return z}function mn(x){var z=x.display,re=x.doc;z.maxLine=Gn(re,re.first),z.maxLineLength=kn(z.maxLine),z.maxLineChanged=!0,re.iter(function(ne){var ae=kn(ne);ae>z.maxLineLength&&(z.maxLineLength=ae,z.maxLine=ne)})}var Jn=function(x,z,re){this.text=x,wi(this,z),this.height=re?re(this):1};Jn.prototype.lineNo=function(){return Vr(this)},fr(Jn);function Dr(x,z,re,ne){x.text=z,x.stateAfter&&(x.stateAfter=null),x.styles&&(x.styles=null),x.order!=null&&(x.order=null),Da(x),wi(x,re);var ae=ne?ne(x):1;ae!=x.height&&Gr(x,ae)}function cr(x){x.parent=null,Da(x)}var xr={},Er={};function Nr(x,z){if(!x||/^\s*$/.test(x))return null;var re=z.addModeClass?Er:xr;return re[x]||(re[x]=x.replace(/\S+/g,"cm-$&"))}function $r(x,z){var re=Ge("span",null,null,de?"padding-right: .1px":null),ne={pre:Ge("pre",[re],"CodeMirror-line"),content:re,col:0,pos:0,cm:x,trailingSpace:!1,splitSpaces:x.getOption("lineWrapping")};z.measure={};for(var ae=0;ae<=(z.rest?z.rest.length:0);ae++){var he=ae?z.rest[ae-1]:z.line,Pe=void 0;ne.pos=0,ne.addToken=rt,Ui(x.display.measure)&&(Pe=Xt(he,x.doc.direction))&&(ne.addToken=It(ne.addToken,Pe)),ne.map=[];var Ze=z!=x.display.externalMeasured&&Vr(he);Un(he,ne,_a(x,he,Ze)),he.styleClasses&&(he.styleClasses.bgClass&&(ne.bgClass=bt(he.styleClasses.bgClass,ne.bgClass||"")),he.styleClasses.textClass&&(ne.textClass=bt(he.styleClasses.textClass,ne.textClass||""))),ne.map.length==0&&ne.map.push(0,0,ne.content.appendChild(ha(x.display.measure))),ae==0?(z.measure.map=ne.map,z.measure.cache={}):((z.measure.maps||(z.measure.maps=[])).push(ne.map),(z.measure.caches||(z.measure.caches=[])).push({}))}if(de){var Ye=ne.content.lastChild;(/\bcm-tab\b/.test(Ye.className)||Ye.querySelector&&Ye.querySelector(".cm-tab"))&&(ne.content.className="cm-tab-wrap-hack")}return Ct(x,"renderLine",x,z.line,ne.pre),ne.pre.className&&(ne.textClass=bt(ne.pre.className,ne.textClass||"")),ne}function Qe(x){var z=at("span","\u2022","cm-invalidchar");return z.title="\\u"+x.charCodeAt(0).toString(16),z.setAttribute("aria-label",z.title),z}function rt(x,z,re,ne,ae,he,Pe){if(z){var Ze=x.splitSpaces?Zt(z,x.trailingSpace):z,Ye=x.cm.state.specialChars,ht=!1,tn;if(!Ye.test(z))x.col+=z.length,tn=document.createTextNode(Ze),x.map.push(x.pos,x.pos+z.length,tn),be&&ke<9&&(ht=!0),x.pos+=z.length;else{tn=document.createDocumentFragment();for(var bn=0;;){Ye.lastIndex=bn;var wr=Ye.exec(z),dr=wr?wr.index-bn:z.length-bn;if(dr){var ri=document.createTextNode(Ze.slice(bn,bn+dr));be&&ke<9?tn.appendChild(at("span",[ri])):tn.appendChild(ri),x.map.push(x.pos,x.pos+dr,ri),x.col+=dr,x.pos+=dr}if(!wr)break;bn+=dr+1;var vi=void 0;if(wr[0]==" "){var zi=x.cm.options.tabSize,fa=zi-x.col%zi;vi=tn.appendChild(at("span",Yt(fa),"cm-tab")),vi.setAttribute("role","presentation"),vi.setAttribute("cm-text"," "),x.col+=fa}else wr[0]=="\r"||wr[0]==`
`?(vi=tn.appendChild(at("span",wr[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),vi.setAttribute("cm-text",wr[0]),x.col+=1):(vi=x.cm.options.specialCharPlaceholder(wr[0]),vi.setAttribute("cm-text",wr[0]),be&&ke<9?tn.appendChild(at("span",[vi])):tn.appendChild(vi),x.col+=1);x.map.push(x.pos,x.pos+1,vi),x.pos++}}if(x.trailingSpace=Ze.charCodeAt(z.length-1)==32,re||ne||ae||ht||he||Pe){var ka=re||"";ne&&(ka+=ne),ae&&(ka+=ae);var qi=at("span",[tn],ka,he);if(Pe)for(var La in Pe)Pe.hasOwnProperty(La)&&La!="style"&&La!="class"&&qi.setAttribute(La,Pe[La]);return x.content.appendChild(qi)}x.content.appendChild(tn)}}function Zt(x,z){if(x.length>1&&!/ /.test(x))return x;for(var re=z,ne="",ae=0;ae<x.length;ae++){var he=x.charAt(ae);he==" "&&re&&(ae==x.length-1||x.charCodeAt(ae+1)==32)&&(he="\xA0"),ne+=he,re=he==" "}return ne}function It(x,z){return function(re,ne,ae,he,Pe,Ze,Ye){ae=ae?ae+" cm-force-border":"cm-force-border";for(var ht=re.pos,tn=ht+ne.length;;){for(var bn=void 0,wr=0;wr<z.length&&(bn=z[wr],!(bn.to>ht&&bn.from<=ht));wr++);if(bn.to>=tn)return x(re,ne,ae,he,Pe,Ze,Ye);x(re,ne.slice(0,bn.to-ht),ae,he,null,Ze,Ye),he=null,ne=ne.slice(bn.to-ht),ht=bn.to}}}function gn(x,z,re,ne){var ae=!ne&&re.widgetNode;ae&&x.map.push(x.pos,x.pos+z,ae),!ne&&x.cm.display.input.needsContentAttribute&&(ae||(ae=x.content.appendChild(document.createElement("span"))),ae.setAttribute("cm-marker",re.id)),ae&&(x.cm.display.input.setUneditable(ae),x.content.appendChild(ae)),x.pos+=z,x.trailingSpace=!1}function Un(x,z,re){var ne=x.markedSpans,ae=x.text,he=0;if(!ne){for(var Pe=1;Pe<re.length;Pe+=2)z.addToken(z,ae.slice(he,he=re[Pe]),Nr(re[Pe+1],z.cm.options));return}for(var Ze=ae.length,Ye=0,ht=1,tn="",bn,wr,dr=0,ri,vi,zi,fa,ka;;){if(dr==Ye){ri=vi=zi=wr="",ka=null,fa=null,dr=1/0;for(var qi=[],La=void 0,mo=0;mo<ne.length;++mo){var So=ne[mo],gs=So.marker;if(gs.type=="bookmark"&&So.from==Ye&&gs.widgetNode)qi.push(gs);else if(So.from<=Ye&&(So.to==null||So.to>Ye||gs.collapsed&&So.to==Ye&&So.from==Ye)){if(So.to!=null&&So.to!=Ye&&dr>So.to&&(dr=So.to,vi=""),gs.className&&(ri+=" "+gs.className),gs.css&&(wr=(wr?wr+";":"")+gs.css),gs.startStyle&&So.from==Ye&&(zi+=" "+gs.startStyle),gs.endStyle&&So.to==dr&&(La||(La=[])).push(gs.endStyle,So.to),gs.title&&((ka||(ka={})).title=gs.title),gs.attributes)for(var yl in gs.attributes)(ka||(ka={}))[yl]=gs.attributes[yl];gs.collapsed&&(!fa||rr(fa.marker,gs)<0)&&(fa=So)}else So.from>Ye&&dr>So.from&&(dr=So.from)}if(La)for(var Su=0;Su<La.length;Su+=2)La[Su+1]==dr&&(vi+=" "+La[Su]);if(!fa||fa.from==Ye)for(var Kl=0;Kl<qi.length;++Kl)gn(z,0,qi[Kl]);if(fa&&(fa.from||0)==Ye){if(gn(z,(fa.to==null?Ze+1:fa.to)-Ye,fa.marker,fa.from==null),fa.to==null)return;fa.to==Ye&&(fa=!1)}}if(Ye>=Ze)break;for(var Hu=Math.min(Ze,dr);;){if(tn){var Zu=Ye+tn.length;if(!fa){var cu=Zu>Hu?tn.slice(0,Hu-Ye):tn;z.addToken(z,cu,bn?bn+ri:ri,zi,Ye+cu.length==dr?vi:"",wr,ka)}if(Zu>=Hu){tn=tn.slice(Hu-Ye),Ye=Hu;break}Ye=Zu,zi=""}tn=ae.slice(he,he=re[ht++]),bn=Nr(re[ht++],z.cm.options)}}}function Yn(x,z,re){this.line=z,this.rest=Wt(z),this.size=this.rest?Vr(Cn(this.rest))-re+1:1,this.node=this.text=null,this.hidden=lr(x,z)}function Ar(x,z,re){for(var ne=[],ae,he=z;he<re;he=ae){var Pe=new Yn(x.doc,Gn(x.doc,he),he);ae=he+Pe.size,ne.push(Pe)}return ne}var gr=null;function tr(x){gr?gr.ops.push(x):x.ownsGroup=gr={ops:[x],delayedCallbacks:[]}}function Or(x){var z=x.delayedCallbacks,re=0;do{for(;re<z.length;re++)z[re].call(null);for(var ne=0;ne<x.ops.length;ne++){var ae=x.ops[ne];if(ae.cursorActivityHandlers)for(;ae.cursorActivityCalled<ae.cursorActivityHandlers.length;)ae.cursorActivityHandlers[ae.cursorActivityCalled++].call(null,ae.cm)}}while(re<z.length)}function Kr(x,z){var re=x.ownsGroup;if(re)try{Or(re)}finally{gr=null,z(re)}}var ci=null;function Hr(x,z){var re=Bt(x,z);if(re.length){var ne=Array.prototype.slice.call(arguments,2),ae;gr?ae=gr.delayedCallbacks:ci?ae=ci:(ae=ci=[],setTimeout(yi,0));for(var he=function(Ze){ae.push(function(){return re[Ze].apply(null,ne)})},Pe=0;Pe<re.length;++Pe)he(Pe)}}function yi(){var x=ci;ci=null;for(var z=0;z<x.length;++z)x[z]()}function Ii(x,z,re,ne){for(var ae=0;ae<z.changes.length;ae++){var he=z.changes[ae];he=="text"?Di(x,z):he=="gutter"?sa(x,z,re,ne):he=="class"?Ri(x,z):he=="widget"&&bi(x,z,ne)}z.changes=null}function Si(x){return x.node==x.text&&(x.node=at("div",null,null,"position: relative"),x.text.parentNode&&x.text.parentNode.replaceChild(x.node,x.text),x.node.appendChild(x.text),be&&ke<8&&(x.node.style.zIndex=2)),x.node}function Ni(x,z){var re=z.bgClass?z.bgClass+" "+(z.line.bgClass||""):z.line.bgClass;if(re&&(re+=" CodeMirror-linebackground"),z.background)re?z.background.className=re:(z.background.parentNode.removeChild(z.background),z.background=null);else if(re){var ne=Si(z);z.background=ne.insertBefore(at("div",null,re),ne.firstChild),x.display.input.setUneditable(z.background)}}function gi(x,z){var re=x.display.externalMeasured;return re&&re.line==z.line?(x.display.externalMeasured=null,z.measure=re.measure,re.built):$r(x,z)}function Di(x,z){var re=z.text.className,ne=gi(x,z);z.text==z.node&&(z.node=ne.pre),z.text.parentNode.replaceChild(ne.pre,z.text),z.text=ne.pre,ne.bgClass!=z.bgClass||ne.textClass!=z.textClass?(z.bgClass=ne.bgClass,z.textClass=ne.textClass,Ri(x,z)):re&&(z.text.className=re)}function Ri(x,z){Ni(x,z),z.line.wrapClass?Si(z).className=z.line.wrapClass:z.node!=z.text&&(z.node.className="");var re=z.textClass?z.textClass+" "+(z.line.textClass||""):z.line.textClass;z.text.className=re||""}function sa(x,z,re,ne){if(z.gutter&&(z.node.removeChild(z.gutter),z.gutter=null),z.gutterBackground&&(z.node.removeChild(z.gutterBackground),z.gutterBackground=null),z.line.gutterClass){var ae=Si(z);z.gutterBackground=at("div",null,"CodeMirror-gutter-background "+z.line.gutterClass,"left: "+(x.options.fixedGutter?ne.fixedPos:-ne.gutterTotalWidth)+"px; width: "+ne.gutterTotalWidth+"px"),x.display.input.setUneditable(z.gutterBackground),ae.insertBefore(z.gutterBackground,z.text)}var he=z.line.gutterMarkers;if(x.options.lineNumbers||he){var Pe=Si(z),Ze=z.gutter=at("div",null,"CodeMirror-gutter-wrapper","left: "+(x.options.fixedGutter?ne.fixedPos:-ne.gutterTotalWidth)+"px");if(x.display.input.setUneditable(Ze),Pe.insertBefore(Ze,z.text),z.line.gutterClass&&(Ze.className+=" "+z.line.gutterClass),x.options.lineNumbers&&(!he||!he["CodeMirror-linenumbers"])&&(z.lineNumber=Ze.appendChild(at("div",Vt(x.options,re),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+ne.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+x.display.lineNumInnerWidth+"px"))),he)for(var Ye=0;Ye<x.display.gutterSpecs.length;++Ye){var ht=x.display.gutterSpecs[Ye].className,tn=he.hasOwnProperty(ht)&&he[ht];tn&&Ze.appendChild(at("div",[tn],"CodeMirror-gutter-elt","left: "+ne.gutterLeft[ht]+"px; width: "+ne.gutterWidth[ht]+"px"))}}}function bi(x,z,re){z.alignable&&(z.alignable=null);for(var ne=ce("CodeMirror-linewidget"),ae=z.node.firstChild,he=void 0;ae;ae=he)he=ae.nextSibling,ne.test(ae.className)&&z.node.removeChild(ae);Ca(x,z,re)}function ba(x,z,re,ne){var ae=gi(x,z);return z.text=z.node=ae.pre,ae.bgClass&&(z.bgClass=ae.bgClass),ae.textClass&&(z.textClass=ae.textClass),Ri(x,z),sa(x,z,re,ne),Ca(x,z,ne),z.node}function Ca(x,z,re){if(Co(x,z.line,z,re,!0),z.rest)for(var ne=0;ne<z.rest.length;ne++)Co(x,z.rest[ne],z,re,!1)}function Co(x,z,re,ne,ae){if(z.widgets)for(var he=Si(re),Pe=0,Ze=z.widgets;Pe<Ze.length;++Pe){var Ye=Ze[Pe],ht=at("div",[Ye.node],"CodeMirror-linewidget"+(Ye.className?" "+Ye.className:""));Ye.handleMouseEvents||ht.setAttribute("cm-ignore-events","true"),Qa(Ye,ht,re,ne),x.display.input.setUneditable(ht),ae&&Ye.above?he.insertBefore(ht,re.gutter||re.text):he.appendChild(ht),Hr(Ye,"redraw")}}function Qa(x,z,re,ne){if(x.noHScroll){(re.alignable||(re.alignable=[])).push(z);var ae=ne.wrapperWidth;z.style.left=ne.fixedPos+"px",x.coverGutter||(ae-=ne.gutterTotalWidth,z.style.paddingLeft=ne.gutterTotalWidth+"px"),z.style.width=ae+"px"}x.coverGutter&&(z.style.zIndex=5,z.style.position="relative",x.noHScroll||(z.style.marginLeft=-ne.gutterTotalWidth+"px"))}function za(x){if(x.height!=null)return x.height;var z=x.doc.cm;if(!z)return 0;if(!wt(document.body,x.node)){var re="position: relative;";x.coverGutter&&(re+="margin-left: -"+z.display.gutters.offsetWidth+"px;"),x.noHScroll&&(re+="width: "+z.display.wrapper.clientWidth+"px;"),it(z.display.measure,at("div",[x.node],null,re))}return x.height=x.node.parentNode.offsetHeight}function la(x,z){for(var re=mi(z);re!=x.wrapper;re=re.parentNode)if(!re||re.nodeType==1&&re.getAttribute("cm-ignore-events")=="true"||re.parentNode==x.sizer&&re!=x.mover)return!0}function ga(x){return x.lineSpace.offsetTop}function Xi(x){return x.mover.offsetHeight-x.lineSpace.offsetHeight}function Ba(x){if(x.cachedPaddingH)return x.cachedPaddingH;var z=it(x.measure,at("pre","x","CodeMirror-line-like")),re=window.getComputedStyle?window.getComputedStyle(z):z.currentStyle,ne={left:parseInt(re.paddingLeft),right:parseInt(re.paddingRight)};return!isNaN(ne.left)&&!isNaN(ne.right)&&(x.cachedPaddingH=ne),ne}function Qi(x){return Vn-x.display.nativeBarWidth}function Bi(x){return x.display.scroller.clientWidth-Qi(x)-x.display.barWidth}function Ea(x){return x.display.scroller.clientHeight-Qi(x)-x.display.barHeight}function Va(x,z,re){var ne=x.options.lineWrapping,ae=ne&&Bi(x);if(!z.measure.heights||ne&&z.measure.width!=ae){var he=z.measure.heights=[];if(ne){z.measure.width=ae;for(var Pe=z.text.firstChild.getClientRects(),Ze=0;Ze<Pe.length-1;Ze++){var Ye=Pe[Ze],ht=Pe[Ze+1];Math.abs(Ye.bottom-ht.bottom)>2&&he.push((Ye.bottom+ht.top)/2-re.top)}}he.push(re.bottom-re.top)}}function Jo(x,z,re){if(x.line==z)return{map:x.measure.map,cache:x.measure.cache};for(var ne=0;ne<x.rest.length;ne++)if(x.rest[ne]==z)return{map:x.measure.maps[ne],cache:x.measure.caches[ne]};for(var ae=0;ae<x.rest.length;ae++)if(Vr(x.rest[ae])>re)return{map:x.measure.maps[ae],cache:x.measure.caches[ae],before:!0}}function zo(x,z){z=ut(z);var re=Vr(z),ne=x.display.externalMeasured=new Yn(x.doc,z,re);ne.lineN=re;var ae=ne.built=$r(x,ne);return ne.text=ae.pre,it(x.display.lineMeasure,ae.pre),ne}function Oo(x,z,re,ne){return xa(x,co(x,z),re,ne)}function Po(x,z){if(z>=x.display.viewFrom&&z<x.display.viewTo)return x.display.view[To(x,z)];var re=x.display.externalMeasured;if(re&&z>=re.lineN&&z<re.lineN+re.size)return re}function co(x,z){var re=Vr(z),ne=Po(x,re);ne&&!ne.text?ne=null:ne&&ne.changes&&(Ii(x,ne,re,il(x)),x.curOp.forceUpdate=!0),ne||(ne=zo(x,z));var ae=Jo(ne,z,re);return{line:z,view:ne,rect:null,map:ae.map,cache:ae.cache,before:ae.before,hasHeights:!1}}function xa(x,z,re,ne,ae){z.before&&(re=-1);var he=re+(ne||""),Pe;return z.cache.hasOwnProperty(he)?Pe=z.cache[he]:(z.rect||(z.rect=z.view.text.getBoundingClientRect()),z.hasHeights||(Va(x,z.view,z.rect),z.hasHeights=!0),Pe=Ja(x,z,re,ne),Pe.bogus||(z.cache[he]=Pe)),{left:Pe.left,right:Pe.right,top:ae?Pe.rtop:Pe.top,bottom:ae?Pe.rbottom:Pe.bottom}}var us={left:0,right:0,top:0,bottom:0};function Ka(x,z,re){for(var ne,ae,he,Pe,Ze,Ye,ht=0;ht<x.length;ht+=3)if(Ze=x[ht],Ye=x[ht+1],z<Ze?(ae=0,he=1,Pe="left"):z<Ye?(ae=z-Ze,he=ae+1):(ht==x.length-3||z==Ye&&x[ht+3]>z)&&(he=Ye-Ze,ae=he-1,z>=Ye&&(Pe="right")),ae!=null){if(ne=x[ht+2],Ze==Ye&&re==(ne.insertLeft?"left":"right")&&(Pe=re),re=="left"&&ae==0)for(;ht&&x[ht-2]==x[ht-3]&&x[ht-1].insertLeft;)ne=x[(ht-=3)+2],Pe="left";if(re=="right"&&ae==Ye-Ze)for(;ht<x.length-3&&x[ht+3]==x[ht+4]&&!x[ht+5].insertLeft;)ne=x[(ht+=3)+2],Pe="right";break}return{node:ne,start:ae,end:he,collapse:Pe,coverStart:Ze,coverEnd:Ye}}function ua(x,z){var re=us;if(z=="left")for(var ne=0;ne<x.length&&(re=x[ne]).left==re.right;ne++);else for(var ae=x.length-1;ae>=0&&(re=x[ae]).left==re.right;ae--);return re}function Ja(x,z,re,ne){var ae=Ka(z.map,re,ne),he=ae.node,Pe=ae.start,Ze=ae.end,Ye=ae.collapse,ht;if(he.nodeType==3){for(var tn=0;tn<4;tn++){for(;Pe&&st(z.line.text.charAt(ae.coverStart+Pe));)--Pe;for(;ae.coverStart+Ze<ae.coverEnd&&st(z.line.text.charAt(ae.coverStart+Ze));)++Ze;if(be&&ke<9&&Pe==0&&Ze==ae.coverEnd-ae.coverStart?ht=he.parentNode.getBoundingClientRect():ht=ua(Ae(he,Pe,Ze).getClientRects(),ne),ht.left||ht.right||Pe==0)break;Ze=Pe,Pe=Pe-1,Ye="right"}be&&ke<11&&(ht=Wo(x.display.measure,ht))}else{Pe>0&&(Ye=ne="right");var bn;x.options.lineWrapping&&(bn=he.getClientRects()).length>1?ht=bn[ne=="right"?bn.length-1:0]:ht=he.getBoundingClientRect()}if(be&&ke<9&&!Pe&&(!ht||!ht.left&&!ht.right)){var wr=he.parentNode.getClientRects()[0];wr?ht={left:wr.left,right:wr.left+tl(x.display),top:wr.top,bottom:wr.bottom}:ht=us}for(var dr=ht.top-z.rect.top,ri=ht.bottom-z.rect.top,vi=(dr+ri)/2,zi=z.view.measure.heights,fa=0;fa<zi.length-1&&!(vi<zi[fa]);fa++);var ka=fa?zi[fa-1]:0,qi=zi[fa],La={left:(Ye=="right"?ht.right:ht.left)-z.rect.left,right:(Ye=="left"?ht.left:ht.right)-z.rect.left,top:ka,bottom:qi};return!ht.left&&!ht.right&&(La.bogus=!0),x.options.singleCursorHeightPerLine||(La.rtop=dr,La.rbottom=ri),La}function Wo(x,z){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Cr(x))return z;var re=screen.logicalXDPI/screen.deviceXDPI,ne=screen.logicalYDPI/screen.deviceYDPI;return{left:z.left*re,right:z.right*re,top:z.top*ne,bottom:z.bottom*ne}}function fo(x){if(x.measure&&(x.measure.cache={},x.measure.heights=null,x.rest))for(var z=0;z<x.rest.length;z++)x.measure.caches[z]={}}function bo(x){x.display.externalMeasure=null,je(x.display.lineMeasure);for(var z=0;z<x.display.view.length;z++)fo(x.display.view[z])}function Ma(x){bo(x),x.display.cachedCharWidth=x.display.cachedTextHeight=x.display.cachedPaddingH=null,x.options.lineWrapping||(x.display.maxLineChanged=!0),x.display.lineNumChars=null}function Uo(){return pe&&lt?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function os(){return pe&&lt?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Xo(x){var z=0;if(x.widgets)for(var re=0;re<x.widgets.length;++re)x.widgets[re].above&&(z+=za(x.widgets[re]));return z}function ss(x,z,re,ne,ae){if(!ae){var he=Xo(z);re.top+=he,re.bottom+=he}if(ne=="line")return re;ne||(ne="local");var Pe=Tn(z);if(ne=="local"?Pe+=ga(x.display):Pe-=x.display.viewOffset,ne=="page"||ne=="window"){var Ze=x.display.lineSpace.getBoundingClientRect();Pe+=Ze.top+(ne=="window"?0:os());var Ye=Ze.left+(ne=="window"?0:Uo());re.left+=Ye,re.right+=Ye}return re.top+=Pe,re.bottom+=Pe,re}function cs(x,z,re){if(re=="div")return z;var ne=z.left,ae=z.top;if(re=="page")ne-=Uo(),ae-=os();else if(re=="local"||!re){var he=x.display.sizer.getBoundingClientRect();ne+=he.left,ae+=he.top}var Pe=x.display.lineSpace.getBoundingClientRect();return{left:ne-Pe.left,top:ae-Pe.top}}function Os(x,z,re,ne,ae){return ne||(ne=Gn(x.doc,z.line)),ss(x,ne,Oo(x,ne,z.ch,ae),re)}function qo(x,z,re,ne,ae,he){ne=ne||Gn(x.doc,z.line),ae||(ae=co(x,ne));function Pe(ri,vi){var zi=xa(x,ae,ri,vi?"right":"left",he);return vi?zi.left=zi.right:zi.right=zi.left,ss(x,ne,zi,re)}var Ze=Xt(ne,x.doc.direction),Ye=z.ch,ht=z.sticky;if(Ye>=ne.text.length?(Ye=ne.text.length,ht="before"):Ye<=0&&(Ye=0,ht="after"),!Ze)return Pe(ht=="before"?Ye-1:Ye,ht=="before");function tn(ri,vi,zi){var fa=Ze[vi],ka=fa.level==1;return Pe(zi?ri-1:ri,ka!=zi)}var bn=vn(Ze,Ye,ht),wr=zn,dr=tn(Ye,bn,ht=="before");return wr!=null&&(dr.other=tn(Ye,wr,ht!="before")),dr}function es(x,z){var re=0;z=zr(x.doc,z),x.options.lineWrapping||(re=tl(x.display)*z.ch);var ne=Gn(x.doc,z.line),ae=Tn(ne)+ga(x.display);return{left:re,right:re,top:ae,bottom:ae+ne.height}}function Zs(x,z,re,ne,ae){var he=Kt(x,z,re);return he.xRel=ae,ne&&(he.outside=ne),he}function Ws(x,z,re){var ne=x.doc;if(re+=x.display.viewOffset,re<0)return Zs(ne.first,0,null,-1,-1);var ae=ai(ne,re),he=ne.first+ne.size-1;if(ae>he)return Zs(ne.first+ne.size-1,Gn(ne,he).text.length,null,1,1);z<0&&(z=0);for(var Pe=Gn(ne,ae);;){var Ze=Wa(x,Pe,ae,z,re),Ye=et(Pe,Ze.ch+(Ze.xRel>0||Ze.outside>0?1:0));if(!Ye)return Ze;var ht=Ye.find(1);if(ht.line==ae)return ht;Pe=Gn(ne,ae=ht.line)}}function el(x,z,re,ne){ne-=Xo(z);var ae=z.text.length,he=Sn(function(Pe){return xa(x,re,Pe-1).bottom<=ne},ae,0);return ae=Sn(function(Pe){return xa(x,re,Pe).top>ne},he,ae),{begin:he,end:ae}}function bs(x,z,re,ne){re||(re=co(x,z));var ae=ss(x,z,xa(x,re,ne),"line").top;return el(x,z,re,ae)}function ns(x,z,re,ne){return x.bottom<=re?!1:x.top>re?!0:(ne?x.left:x.right)>z}function Wa(x,z,re,ne,ae){ae-=Tn(z);var he=co(x,z),Pe=Xo(z),Ze=0,Ye=z.text.length,ht=!0,tn=Xt(z,x.doc.direction);if(tn){var bn=(x.options.lineWrapping?Vo:ro)(x,z,re,he,tn,ne,ae);ht=bn.level!=1,Ze=ht?bn.from:bn.to-1,Ye=ht?bn.to:bn.from-1}var wr=null,dr=null,ri=Sn(function(mo){var So=xa(x,he,mo);return So.top+=Pe,So.bottom+=Pe,ns(So,ne,ae,!1)?(So.top<=ae&&So.left<=ne&&(wr=mo,dr=So),!0):!1},Ze,Ye),vi,zi,fa=!1;if(dr){var ka=ne-dr.left<dr.right-ne,qi=ka==ht;ri=wr+(qi?0:1),zi=qi?"after":"before",vi=ka?dr.left:dr.right}else{!ht&&(ri==Ye||ri==Ze)&&ri++,zi=ri==0?"after":ri==z.text.length?"before":xa(x,he,ri-(ht?1:0)).bottom+Pe<=ae==ht?"after":"before";var La=qo(x,Kt(re,ri,zi),"line",z,he);vi=La.left,fa=ae<La.top?-1:ae>=La.bottom?1:0}return ri=en(z.text,ri,1),Zs(re,ri,zi,fa,ne-vi)}function ro(x,z,re,ne,ae,he,Pe){var Ze=Sn(function(bn){var wr=ae[bn],dr=wr.level!=1;return ns(qo(x,Kt(re,dr?wr.to:wr.from,dr?"before":"after"),"line",z,ne),he,Pe,!0)},0,ae.length-1),Ye=ae[Ze];if(Ze>0){var ht=Ye.level!=1,tn=qo(x,Kt(re,ht?Ye.from:Ye.to,ht?"after":"before"),"line",z,ne);ns(tn,he,Pe,!0)&&tn.top>Pe&&(Ye=ae[Ze-1])}return Ye}function Vo(x,z,re,ne,ae,he,Pe){var Ze=el(x,z,ne,Pe),Ye=Ze.begin,ht=Ze.end;/\s/.test(z.text.charAt(ht-1))&&ht--;for(var tn=null,bn=null,wr=0;wr<ae.length;wr++){var dr=ae[wr];if(!(dr.from>=ht||dr.to<=Ye)){var ri=dr.level!=1,vi=xa(x,ne,ri?Math.min(ht,dr.to)-1:Math.max(Ye,dr.from)).right,zi=vi<he?he-vi+1e9:vi-he;(!tn||bn>zi)&&(tn=dr,bn=zi)}}return tn||(tn=ae[ae.length-1]),tn.from<Ye&&(tn={from:Ye,to:tn.to,level:tn.level}),tn.to>ht&&(tn={from:tn.from,to:ht,level:tn.level}),tn}var rs;function Rs(x){if(x.cachedTextHeight!=null)return x.cachedTextHeight;if(rs==null){rs=at("pre",null,"CodeMirror-line-like");for(var z=0;z<49;++z)rs.appendChild(document.createTextNode("x")),rs.appendChild(at("br"));rs.appendChild(document.createTextNode("x"))}it(x.measure,rs);var re=rs.offsetHeight/50;return re>3&&(x.cachedTextHeight=re),je(x.measure),re||1}function tl(x){if(x.cachedCharWidth!=null)return x.cachedCharWidth;var z=at("span","xxxxxxxxxx"),re=at("pre",[z],"CodeMirror-line-like");it(x.measure,re);var ne=z.getBoundingClientRect(),ae=(ne.right-ne.left)/10;return ae>2&&(x.cachedCharWidth=ae),ae||10}function il(x){for(var z=x.display,re={},ne={},ae=z.gutters.clientLeft,he=z.gutters.firstChild,Pe=0;he;he=he.nextSibling,++Pe){var Ze=x.display.gutterSpecs[Pe].className;re[Ze]=he.offsetLeft+he.clientLeft+ae,ne[Ze]=he.clientWidth}return{fixedPos:pl(z),gutterTotalWidth:z.gutters.offsetWidth,gutterLeft:re,gutterWidth:ne,wrapperWidth:z.wrapper.clientWidth}}function pl(x){return x.scroller.getBoundingClientRect().left-x.sizer.getBoundingClientRect().left}function Al(x){var z=Rs(x.display),re=x.options.lineWrapping,ne=re&&Math.max(5,x.display.scroller.clientWidth/tl(x.display)-3);return function(ae){if(lr(x.doc,ae))return 0;var he=0;if(ae.widgets)for(var Pe=0;Pe<ae.widgets.length;Pe++)ae.widgets[Pe].height&&(he+=ae.widgets[Pe].height);return re?he+(Math.ceil(ae.text.length/ne)||1)*z:he+z}}function nl(x){var z=x.doc,re=Al(x);z.iter(function(ne){var ae=re(ne);ae!=ne.height&&Gr(ne,ae)})}function Fl(x,z,re,ne){var ae=x.display;if(!re&&mi(z).getAttribute("cm-not-content")=="true")return null;var he,Pe,Ze=ae.lineSpace.getBoundingClientRect();try{he=z.clientX-Ze.left,Pe=z.clientY-Ze.top}catch(bn){return null}var Ye=Ws(x,he,Pe),ht;if(ne&&Ye.xRel>0&&(ht=Gn(x.doc,Ye.line).text).length==Ye.ch){var tn=yt(ht,ht.length,x.options.tabSize)-ht.length;Ye=Kt(Ye.line,Math.max(0,Math.round((he-Ba(x.display).left)/tl(x.display))-tn))}return Ye}function To(x,z){if(z>=x.display.viewTo||(z-=x.display.viewFrom,z<0))return null;for(var re=x.display.view,ne=0;ne<re.length;ne++)if(z-=re[ne].size,z<0)return ne}function Ce(x,z,re,ne){z==null&&(z=x.doc.first),re==null&&(re=x.doc.first+x.doc.size),ne||(ne=0);var ae=x.display;if(ne&&re<ae.viewTo&&(ae.updateLineNumbers==null||ae.updateLineNumbers>z)&&(ae.updateLineNumbers=z),x.curOp.viewChanged=!0,z>=ae.viewTo)ia&&sn(x.doc,z)<ae.viewTo&&_e(x);else if(re<=ae.viewFrom)ia&&Wn(x.doc,re+ne)>ae.viewFrom?_e(x):(ae.viewFrom+=ne,ae.viewTo+=ne);else if(z<=ae.viewFrom&&re>=ae.viewTo)_e(x);else if(z<=ae.viewFrom){var he=Dt(x,re,re+ne,1);he?(ae.view=ae.view.slice(he.index),ae.viewFrom=he.lineN,ae.viewTo+=ne):_e(x)}else if(re>=ae.viewTo){var Pe=Dt(x,z,z,-1);Pe?(ae.view=ae.view.slice(0,Pe.index),ae.viewTo=Pe.lineN):_e(x)}else{var Ze=Dt(x,z,z,-1),Ye=Dt(x,re,re+ne,1);Ze&&Ye?(ae.view=ae.view.slice(0,Ze.index).concat(Ar(x,Ze.lineN,Ye.lineN)).concat(ae.view.slice(Ye.index)),ae.viewTo+=ne):_e(x)}var ht=ae.externalMeasured;ht&&(re<ht.lineN?ht.lineN+=ne:z<ht.lineN+ht.size&&(ae.externalMeasured=null))}function Oe(x,z,re){x.curOp.viewChanged=!0;var ne=x.display,ae=x.display.externalMeasured;if(ae&&z>=ae.lineN&&z<ae.lineN+ae.size&&(ne.externalMeasured=null),!(z<ne.viewFrom||z>=ne.viewTo)){var he=ne.view[To(x,z)];if(he.node!=null){var Pe=he.changes||(he.changes=[]);Rt(Pe,re)==-1&&Pe.push(re)}}}function _e(x){x.display.viewFrom=x.display.viewTo=x.doc.first,x.display.view=[],x.display.viewOffset=0}function Dt(x,z,re,ne){var ae=To(x,z),he,Pe=x.display.view;if(!ia||re==x.doc.first+x.doc.size)return{index:ae,lineN:re};for(var Ze=x.display.viewFrom,Ye=0;Ye<ae;Ye++)Ze+=Pe[Ye].size;if(Ze!=z){if(ne>0){if(ae==Pe.length-1)return null;he=Ze+Pe[ae].size-z,ae++}else he=Ze-z;z+=he,re+=he}for(;sn(x.doc,re)!=re;){if(ae==(ne<0?0:Pe.length-1))return null;re+=ne*Pe[ae-(ne<0?1:0)].size,ae+=ne}return{index:ae,lineN:re}}function Lt(x,z,re){var ne=x.display,ae=ne.view;ae.length==0||z>=ne.viewTo||re<=ne.viewFrom?(ne.view=Ar(x,z,re),ne.viewFrom=z):(ne.viewFrom>z?ne.view=Ar(x,z,ne.viewFrom).concat(ne.view):ne.viewFrom<z&&(ne.view=ne.view.slice(To(x,z))),ne.viewFrom=z,ne.viewTo<re?ne.view=ne.view.concat(Ar(x,ne.viewTo,re)):ne.viewTo>re&&(ne.view=ne.view.slice(0,To(x,re)))),ne.viewTo=re}function Ln(x){for(var z=x.display.view,re=0,ne=0;ne<z.length;ne++){var ae=z[ne];!ae.hidden&&(!ae.node||ae.changes)&&++re}return re}function yn(x){x.display.input.showSelection(x.display.input.prepareSelection())}function vr(x,z){z===void 0&&(z=!0);for(var re=x.doc,ne={},ae=ne.cursors=document.createDocumentFragment(),he=ne.selection=document.createDocumentFragment(),Pe=0;Pe<re.sel.ranges.length;Pe++)if(!(!z&&Pe==re.sel.primIndex)){var Ze=re.sel.ranges[Pe];if(!(Ze.from().line>=x.display.viewTo||Ze.to().line<x.display.viewFrom)){var Ye=Ze.empty();(Ye||x.options.showCursorWhenSelecting)&&_n(x,Ze.head,ae),Ye||kr(x,Ze,he)}}return ne}function _n(x,z,re){var ne=qo(x,z,"div",null,null,!x.options.singleCursorHeightPerLine),ae=re.appendChild(at("div","\xA0","CodeMirror-cursor"));if(ae.style.left=ne.left+"px",ae.style.top=ne.top+"px",ae.style.height=Math.max(0,ne.bottom-ne.top)*x.options.cursorHeight+"px",ne.other){var he=re.appendChild(at("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));he.style.display="",he.style.left=ne.other.left+"px",he.style.top=ne.other.top+"px",he.style.height=(ne.other.bottom-ne.other.top)*.85+"px"}}function Mn(x,z){return x.top-z.top||x.left-z.left}function kr(x,z,re){var ne=x.display,ae=x.doc,he=document.createDocumentFragment(),Pe=Ba(x.display),Ze=Pe.left,Ye=Math.max(ne.sizerWidth,Bi(x)-ne.sizer.offsetLeft)-Pe.right,ht=ae.direction=="ltr";function tn(qi,La,mo,So){La<0&&(La=0),La=Math.round(La),So=Math.round(So),he.appendChild(at("div",null,"CodeMirror-selected","position: absolute; left: "+qi+`px;
top: `+La+"px; width: "+(mo==null?Ye-qi:mo)+`px;
height: `+(So-La)+"px"))}function bn(qi,La,mo){var So=Gn(ae,qi),gs=So.text.length,yl,Su;function Kl(cu,Wu){return Os(x,Kt(qi,cu),"div",So,Wu)}function Hu(cu,Wu,Qo){var Yl=bs(x,So,null,cu),Hl=Wu=="ltr"==(Qo=="after")?"left":"right",Xl=Qo=="after"?Yl.begin:Yl.end-(/\s/.test(So.text.charAt(Yl.end-1))?2:1);return Kl(Xl,Hl)[Hl]}var Zu=Xt(So,ae.direction);return dn(Zu,La||0,mo==null?gs:mo,function(cu,Wu,Qo,Yl){var Hl=Qo=="ltr",Xl=Kl(cu,Hl?"left":"right"),tu=Kl(Wu-1,Hl?"right":"left"),ed=La==null&&cu==0,tc=mo==null&&Wu==gs,Du=Yl==0,Gs=!Zu||Yl==Zu.length-1;if(tu.top-Xl.top<=3){var mu=(ht?ed:tc)&&Du,Fd=(ht?tc:ed)&&Gs,Pc=mu?Ze:(Hl?Xl:tu).left,Bc=Fd?Ye:(Hl?tu:Xl).right;tn(Pc,Xl.top,Bc-Pc,Xl.bottom)}else{var xc,du,td,Au;Hl?(xc=ht&&ed&&Du?Ze:Xl.left,du=ht?Ye:Hu(cu,Qo,"before"),td=ht?Ze:Hu(Wu,Qo,"after"),Au=ht&&tc&&Gs?Ye:tu.right):(xc=ht?Hu(cu,Qo,"before"):Ze,du=!ht&&ed&&Du?Ye:Xl.right,td=!ht&&tc&&Gs?Ze:tu.left,Au=ht?Hu(Wu,Qo,"after"):Ye),tn(xc,Xl.top,du-xc,Xl.bottom),Xl.bottom<tu.top&&tn(Ze,Xl.bottom,null,tu.top),tn(td,tu.top,Au-td,tu.bottom)}(!yl||Mn(Xl,yl)<0)&&(yl=Xl),Mn(tu,yl)<0&&(yl=tu),(!Su||Mn(Xl,Su)<0)&&(Su=Xl),Mn(tu,Su)<0&&(Su=tu)}),{start:yl,end:Su}}var wr=z.from(),dr=z.to();if(wr.line==dr.line)bn(wr.line,wr.ch,dr.ch);else{var ri=Gn(ae,wr.line),vi=Gn(ae,dr.line),zi=ut(ri)==ut(vi),fa=bn(wr.line,wr.ch,zi?ri.text.length+1:null).end,ka=bn(dr.line,zi?0:null,dr.ch).start;zi&&(fa.top<ka.top-2?(tn(fa.right,fa.top,null,fa.bottom),tn(Ze,ka.top,ka.left,ka.bottom)):tn(fa.right,fa.top,ka.left-fa.right,fa.bottom)),fa.bottom<ka.top&&tn(Ze,fa.bottom,null,ka.top)}re.appendChild(he)}function Zn(x){if(x.state.focused){var z=x.display;clearInterval(z.blinker);var re=!0;z.cursorDiv.style.visibility="",x.options.cursorBlinkRate>0?z.blinker=setInterval(function(){x.hasFocus()||hr(x),z.cursorDiv.style.visibility=(re=!re)?"":"hidden"},x.options.cursorBlinkRate):x.options.cursorBlinkRate<0&&(z.cursorDiv.style.visibility="hidden")}}function nr(x){x.state.focused||(x.display.input.focus(),Ur(x))}function Zr(x){x.state.delayingBlurEvent=!0,setTimeout(function(){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1,hr(x))},100)}function Ur(x,z){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1),x.options.readOnly!="nocursor"&&(x.state.focused||(Ct(x,"focus",x,z),x.state.focused=!0,$t(x.display.wrapper,"CodeMirror-focused"),!x.curOp&&x.display.selForContextMenu!=x.doc.sel&&(x.display.input.reset(),de&&setTimeout(function(){return x.display.input.reset(!0)},20)),x.display.input.receivedFocus()),Zn(x))}function hr(x,z){x.state.delayingBlurEvent||(x.state.focused&&(Ct(x,"blur",x,z),x.state.focused=!1,He(x.display.wrapper,"CodeMirror-focused")),clearInterval(x.display.blinker),setTimeout(function(){x.state.focused||(x.display.shift=!1)},150))}function Fr(x){for(var z=x.display,re=z.lineDiv.offsetTop,ne=0;ne<z.view.length;ne++){var ae=z.view[ne],he=x.options.lineWrapping,Pe=void 0,Ze=0;if(!ae.hidden){if(be&&ke<8){var Ye=ae.node.offsetTop+ae.node.offsetHeight;Pe=Ye-re,re=Ye}else{var ht=ae.node.getBoundingClientRect();Pe=ht.bottom-ht.top,!he&&ae.text.firstChild&&(Ze=ae.text.firstChild.getBoundingClientRect().right-ht.left-1)}var tn=ae.line.height-Pe;if((tn>.005||tn<-.005)&&(Gr(ae.line,Pe),ni(ae.line),ae.rest))for(var bn=0;bn<ae.rest.length;bn++)ni(ae.rest[bn]);if(Ze>x.display.sizerWidth){var wr=Math.ceil(Ze/tl(x.display));wr>x.display.maxLineLength&&(x.display.maxLineLength=wr,x.display.maxLine=ae.line,x.display.maxLineChanged=!0)}}}}function ni(x){if(x.widgets)for(var z=0;z<x.widgets.length;++z){var re=x.widgets[z],ne=re.node.parentNode;ne&&(re.height=ne.offsetHeight)}}function li(x,z,re){var ne=re&&re.top!=null?Math.max(0,re.top):x.scroller.scrollTop;ne=Math.floor(ne-ga(x));var ae=re&&re.bottom!=null?re.bottom:ne+x.wrapper.clientHeight,he=ai(z,ne),Pe=ai(z,ae);if(re&&re.ensure){var Ze=re.ensure.from.line,Ye=re.ensure.to.line;Ze<he?(he=Ze,Pe=ai(z,Tn(Gn(z,Ze))+x.wrapper.clientHeight)):Math.min(Ye,z.lastLine())>=Pe&&(he=ai(z,Tn(Gn(z,Ye))-x.wrapper.clientHeight),Pe=Ye)}return{from:he,to:Math.max(Pe,he+1)}}function xi(x,z){if(!At(x,"scrollCursorIntoView")){var re=x.display,ne=re.sizer.getBoundingClientRect(),ae=null;if(z.top+ne.top<0?ae=!0:z.bottom+ne.top>(window.innerHeight||document.documentElement.clientHeight)&&(ae=!1),ae!=null&&!We){var he=at("div","\u200B",null,`position: absolute;
top: `+(z.top-re.viewOffset-ga(x.display))+`px;
height: `+(z.bottom-z.top+Qi(x)+re.barHeight)+`px;
left: `+z.left+"px; width: "+Math.max(2,z.right-z.left)+"px;");x.display.lineSpace.appendChild(he),he.scrollIntoView(ae),x.display.lineSpace.removeChild(he)}}}function Fi(x,z,re,ne){ne==null&&(ne=0);var ae;!x.options.lineWrapping&&z==re&&(z=z.ch?Kt(z.line,z.sticky=="before"?z.ch-1:z.ch,"after"):z,re=z.sticky=="before"?Kt(z.line,z.ch+1,"before"):z);for(var he=0;he<5;he++){var Pe=!1,Ze=qo(x,z),Ye=!re||re==z?Ze:qo(x,re);ae={left:Math.min(Ze.left,Ye.left),top:Math.min(Ze.top,Ye.top)-ne,right:Math.max(Ze.left,Ye.left),bottom:Math.max(Ze.bottom,Ye.bottom)+ne};var ht=Hi(x,ae),tn=x.doc.scrollTop,bn=x.doc.scrollLeft;if(ht.scrollTop!=null&&(Ta(x,ht.scrollTop),Math.abs(x.doc.scrollTop-tn)>1&&(Pe=!0)),ht.scrollLeft!=null&&(ho(x,ht.scrollLeft),Math.abs(x.doc.scrollLeft-bn)>1&&(Pe=!0)),!Pe)break}return ae}function ta(x,z){var re=Hi(x,z);re.scrollTop!=null&&Ta(x,re.scrollTop),re.scrollLeft!=null&&ho(x,re.scrollLeft)}function Hi(x,z){var re=x.display,ne=Rs(x.display);z.top<0&&(z.top=0);var ae=x.curOp&&x.curOp.scrollTop!=null?x.curOp.scrollTop:re.scroller.scrollTop,he=Ea(x),Pe={};z.bottom-z.top>he&&(z.bottom=z.top+he);var Ze=x.doc.height+Xi(re),Ye=z.top<ne,ht=z.bottom>Ze-ne;if(z.top<ae)Pe.scrollTop=Ye?0:z.top;else if(z.bottom>ae+he){var tn=Math.min(z.top,(ht?Ze:z.bottom)-he);tn!=ae&&(Pe.scrollTop=tn)}var bn=x.options.fixedGutter?0:re.gutters.offsetWidth,wr=x.curOp&&x.curOp.scrollLeft!=null?x.curOp.scrollLeft:re.scroller.scrollLeft-bn,dr=Bi(x)-re.gutters.offsetWidth,ri=z.right-z.left>dr;return ri&&(z.right=z.left+dr),z.left<10?Pe.scrollLeft=0:z.left<wr?Pe.scrollLeft=Math.max(0,z.left+bn-(ri?0:10)):z.right>dr+wr-3&&(Pe.scrollLeft=z.right+(ri?0:10)-dr),Pe}function Ci(x,z){z!=null&&(Ro(x),x.curOp.scrollTop=(x.curOp.scrollTop==null?x.doc.scrollTop:x.curOp.scrollTop)+z)}function qa(x){Ro(x);var z=x.getCursor();x.curOp.scrollToPos={from:z,to:z,margin:x.options.cursorScrollMargin}}function Ha(x,z,re){(z!=null||re!=null)&&Ro(x),z!=null&&(x.curOp.scrollLeft=z),re!=null&&(x.curOp.scrollTop=re)}function so(x,z){Ro(x),x.curOp.scrollToPos=z}function Ro(x){var z=x.curOp.scrollToPos;if(z){x.curOp.scrollToPos=null;var re=es(x,z.from),ne=es(x,z.to);io(x,re,ne,z.margin)}}function io(x,z,re,ne){var ae=Hi(x,{left:Math.min(z.left,re.left),top:Math.min(z.top,re.top)-ne,right:Math.max(z.right,re.right),bottom:Math.max(z.bottom,re.bottom)+ne});Ha(x,ae.scrollLeft,ae.scrollTop)}function Ta(x,z){Math.abs(x.doc.scrollTop-z)<2||(le||Uu(x,{top:z}),Eo(x,z,!0),le&&Uu(x),as(x,100))}function Eo(x,z,re){z=Math.max(0,Math.min(x.display.scroller.scrollHeight-x.display.scroller.clientHeight,z)),!(x.display.scroller.scrollTop==z&&!re)&&(x.doc.scrollTop=z,x.display.scrollbars.setScrollTop(z),x.display.scroller.scrollTop!=z&&(x.display.scroller.scrollTop=z))}function ho(x,z,re,ne){z=Math.max(0,Math.min(z,x.display.scroller.scrollWidth-x.display.scroller.clientWidth)),!((re?z==x.doc.scrollLeft:Math.abs(x.doc.scrollLeft-z)<2)&&!ne)&&(x.doc.scrollLeft=z,Cu(x),x.display.scroller.scrollLeft!=z&&(x.display.scroller.scrollLeft=z),x.display.scrollbars.setScrollLeft(z))}function no(x){var z=x.display,re=z.gutters.offsetWidth,ne=Math.round(x.doc.height+Xi(x.display));return{clientHeight:z.scroller.clientHeight,viewHeight:z.wrapper.clientHeight,scrollWidth:z.scroller.scrollWidth,clientWidth:z.scroller.clientWidth,viewWidth:z.wrapper.clientWidth,barLeft:x.options.fixedGutter?re:0,docHeight:ne,scrollHeight:ne+Qi(x)+z.barHeight,nativeBarWidth:z.nativeBarWidth,gutterWidth:re}}var go=function(x,z,re){this.cm=re;var ne=this.vert=at("div",[at("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ae=this.horiz=at("div",[at("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ne.tabIndex=ae.tabIndex=-1,x(ne),x(ae),jt(ne,"scroll",function(){ne.clientHeight&&z(ne.scrollTop,"vertical")}),jt(ae,"scroll",function(){ae.clientWidth&&z(ae.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,be&&ke<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};go.prototype.update=function(x){var z=x.scrollWidth>x.clientWidth+1,re=x.scrollHeight>x.clientHeight+1,ne=x.nativeBarWidth;if(re){this.vert.style.display="block",this.vert.style.bottom=z?ne+"px":"0";var ae=x.viewHeight-(z?ne:0);this.vert.firstChild.style.height=Math.max(0,x.scrollHeight-x.clientHeight+ae)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(z){this.horiz.style.display="block",this.horiz.style.right=re?ne+"px":"0",this.horiz.style.left=x.barLeft+"px";var he=x.viewWidth-x.barLeft-(re?ne:0);this.horiz.firstChild.style.width=Math.max(0,x.scrollWidth-x.clientWidth+he)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&x.clientHeight>0&&(ne==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:re?ne:0,bottom:z?ne:0}},go.prototype.setScrollLeft=function(x){this.horiz.scrollLeft!=x&&(this.horiz.scrollLeft=x),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},go.prototype.setScrollTop=function(x){this.vert.scrollTop!=x&&(this.vert.scrollTop=x),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},go.prototype.zeroWidthHack=function(){var x=ye&&!Re?"12px":"18px";this.horiz.style.height=this.vert.style.width=x,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Be,this.disableVert=new Be},go.prototype.enableZeroWidthBar=function(x,z,re){x.style.pointerEvents="auto";function ne(){var ae=x.getBoundingClientRect(),he=re=="vert"?document.elementFromPoint(ae.right-1,(ae.top+ae.bottom)/2):document.elementFromPoint((ae.right+ae.left)/2,ae.bottom-1);he!=x?x.style.pointerEvents="none":z.set(1e3,ne)}z.set(1e3,ne)},go.prototype.clear=function(){var x=this.horiz.parentNode;x.removeChild(this.horiz),x.removeChild(this.vert)};var Mo=function(){};Mo.prototype.update=function(){return{bottom:0,right:0}},Mo.prototype.setScrollLeft=function(){},Mo.prototype.setScrollTop=function(){},Mo.prototype.clear=function(){};function is(x,z){z||(z=no(x));var re=x.display.barWidth,ne=x.display.barHeight;ls(x,z);for(var ae=0;ae<4&&re!=x.display.barWidth||ne!=x.display.barHeight;ae++)re!=x.display.barWidth&&x.options.lineWrapping&&Fr(x),ls(x,no(x)),re=x.display.barWidth,ne=x.display.barHeight}function ls(x,z){var re=x.display,ne=re.scrollbars.update(z);re.sizer.style.paddingRight=(re.barWidth=ne.right)+"px",re.sizer.style.paddingBottom=(re.barHeight=ne.bottom)+"px",re.heightForcer.style.borderBottom=ne.bottom+"px solid transparent",ne.right&&ne.bottom?(re.scrollbarFiller.style.display="block",re.scrollbarFiller.style.height=ne.bottom+"px",re.scrollbarFiller.style.width=ne.right+"px"):re.scrollbarFiller.style.display="",ne.bottom&&x.options.coverGutterNextToScrollbar&&x.options.fixedGutter?(re.gutterFiller.style.display="block",re.gutterFiller.style.height=ne.bottom+"px",re.gutterFiller.style.width=z.gutterWidth+"px"):re.gutterFiller.style.display=""}var Ms={native:go,null:Mo};function al(x){x.display.scrollbars&&(x.display.scrollbars.clear(),x.display.scrollbars.addClass&&He(x.display.wrapper,x.display.scrollbars.addClass)),x.display.scrollbars=new Ms[x.options.scrollbarStyle](function(z){x.display.wrapper.insertBefore(z,x.display.scrollbarFiller),jt(z,"mousedown",function(){x.state.focused&&setTimeout(function(){return x.display.input.focus()},0)}),z.setAttribute("cm-not-content","true")},function(z,re){re=="horizontal"?ho(x,z):Ta(x,z)},x),x.display.scrollbars.addClass&&$t(x.display.wrapper,x.display.scrollbars.addClass)}var Xs=0;function Qs(x){x.curOp={cm:x,viewChanged:!1,startHeight:x.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Xs},tr(x.curOp)}function As(x){var z=x.curOp;z&&Kr(z,function(re){for(var ne=0;ne<re.ops.length;ne++)re.ops[ne].cm.curOp=null;ml(re)})}function ml(x){for(var z=x.ops,re=0;re<z.length;re++)Bs(z[re]);for(var ne=0;ne<z.length;ne++)ao(z[ne]);for(var ae=0;ae<z.length;ae++)eo(z[ae]);for(var he=0;he<z.length;he++)xs(z[he]);for(var Pe=0;Pe<z.length;Pe++)ks(z[Pe])}function Bs(x){var z=x.cm,re=z.display;Us(z),x.updateMaxLine&&mn(z),x.mustUpdate=x.viewChanged||x.forceUpdate||x.scrollTop!=null||x.scrollToPos&&(x.scrollToPos.from.line<re.viewFrom||x.scrollToPos.to.line>=re.viewTo)||re.maxLineChanged&&z.options.lineWrapping,x.update=x.mustUpdate&&new Hs(z,x.mustUpdate&&{top:x.scrollTop,ensure:x.scrollToPos},x.forceUpdate)}function ao(x){x.updatedDisplay=x.mustUpdate&&wu(x.cm,x.update)}function eo(x){var z=x.cm,re=z.display;x.updatedDisplay&&Fr(z),x.barMeasure=no(z),re.maxLineChanged&&!z.options.lineWrapping&&(x.adjustWidthTo=Oo(z,re.maxLine,re.maxLine.text.length).left+3,z.display.sizerWidth=x.adjustWidthTo,x.barMeasure.scrollWidth=Math.max(re.scroller.clientWidth,re.sizer.offsetLeft+x.adjustWidthTo+Qi(z)+z.display.barWidth),x.maxScrollLeft=Math.max(0,re.sizer.offsetLeft+x.adjustWidthTo-Bi(z))),(x.updatedDisplay||x.selectionChanged)&&(x.preparedSelection=re.input.prepareSelection())}function xs(x){var z=x.cm;x.adjustWidthTo!=null&&(z.display.sizer.style.minWidth=x.adjustWidthTo+"px",x.maxScrollLeft<z.doc.scrollLeft&&ho(z,Math.min(z.display.scroller.scrollLeft,x.maxScrollLeft),!0),z.display.maxLineChanged=!1);var re=x.focus&&x.focus==dt();x.preparedSelection&&z.display.input.showSelection(x.preparedSelection,re),(x.updatedDisplay||x.startHeight!=z.doc.height)&&is(z,x.barMeasure),x.updatedDisplay&&Zl(z,x.barMeasure),x.selectionChanged&&Zn(z),z.state.focused&&x.updateInput&&z.display.input.reset(x.typing),re&&nr(x.cm)}function ks(x){var z=x.cm,re=z.display,ne=z.doc;if(x.updatedDisplay&&Jl(z,x.update),re.wheelStartX!=null&&(x.scrollTop!=null||x.scrollLeft!=null||x.scrollToPos)&&(re.wheelStartX=re.wheelStartY=null),x.scrollTop!=null&&Eo(z,x.scrollTop,x.forceScroll),x.scrollLeft!=null&&ho(z,x.scrollLeft,!0,!0),x.scrollToPos){var ae=Fi(z,zr(ne,x.scrollToPos.from),zr(ne,x.scrollToPos.to),x.scrollToPos.margin);xi(z,ae)}var he=x.maybeHiddenMarkers,Pe=x.maybeUnhiddenMarkers;if(he)for(var Ze=0;Ze<he.length;++Ze)he[Ze].lines.length||Ct(he[Ze],"hide");if(Pe)for(var Ye=0;Ye<Pe.length;++Ye)Pe[Ye].lines.length&&Ct(Pe[Ye],"unhide");re.wrapper.offsetHeight&&(ne.scrollTop=z.display.scroller.scrollTop),x.changeObjs&&Ct(z,"changes",z,x.changeObjs),x.update&&x.update.finish()}function po(x,z){if(x.curOp)return z();Qs(x);try{return z()}finally{As(x)}}function jo(x,z){return function(){if(x.curOp)return z.apply(x,arguments);Qs(x);try{return z.apply(x,arguments)}finally{As(x)}}}function Sa(x){return function(){if(this.curOp)return x.apply(this,arguments);Qs(this);try{return x.apply(this,arguments)}finally{As(this)}}}function Ko(x){return function(){var z=this.cm;if(!z||z.curOp)return x.apply(this,arguments);Qs(z);try{return x.apply(this,arguments)}finally{As(z)}}}function as(x,z){x.doc.highlightFrontier<x.display.viewTo&&x.state.highlight.set(z,Pn(Ks,x))}function Ks(x){var z=x.doc;if(!(z.highlightFrontier>=x.display.viewTo)){var re=+new Date+x.options.workTime,ne=Aa(x,z.highlightFrontier),ae=[];z.iter(ne.line,Math.min(z.first+z.size,x.display.viewTo+500),function(he){if(ne.line>=x.display.viewFrom){var Pe=he.styles,Ze=he.text.length>x.options.maxHighlightLength?Ht(z.mode,ne.state):null,Ye=Xa(x,he,ne,!0);Ze&&(ne.state=Ze),he.styles=Ye.styles;var ht=he.styleClasses,tn=Ye.classes;tn?he.styleClasses=tn:ht&&(he.styleClasses=null);for(var bn=!Pe||Pe.length!=he.styles.length||ht!=tn&&(!ht||!tn||ht.bgClass!=tn.bgClass||ht.textClass!=tn.textClass),wr=0;!bn&&wr<Pe.length;++wr)bn=Pe[wr]!=he.styles[wr];bn&&ae.push(ne.line),he.stateAfter=ne.save(),ne.nextLine()}else he.text.length<=x.options.maxHighlightLength&&ra(x,he.text,ne),he.stateAfter=ne.line%5==0?ne.save():null,ne.nextLine();if(+new Date>re)return as(x,x.options.workDelay),!0}),z.highlightFrontier=ne.line,z.modeFrontier=Math.max(z.modeFrontier,ne.line),ae.length&&po(x,function(){for(var he=0;he<ae.length;he++)Oe(x,ae[he],"text")})}}var Hs=function(x,z,re){var ne=x.display;this.viewport=z,this.visible=li(ne,x.doc,z),this.editorIsHidden=!ne.wrapper.offsetWidth,this.wrapperHeight=ne.wrapper.clientHeight,this.wrapperWidth=ne.wrapper.clientWidth,this.oldDisplayWidth=Bi(x),this.force=re,this.dims=il(x),this.events=[]};Hs.prototype.signal=function(x,z){An(x,z)&&this.events.push(arguments)},Hs.prototype.finish=function(){for(var x=0;x<this.events.length;x++)Ct.apply(null,this.events[x])};function Us(x){var z=x.display;!z.scrollbarsClipped&&z.scroller.offsetWidth&&(z.nativeBarWidth=z.scroller.offsetWidth-z.scroller.clientWidth,z.heightForcer.style.height=Qi(x)+"px",z.sizer.style.marginBottom=-z.nativeBarWidth+"px",z.sizer.style.borderRightWidth=Qi(x)+"px",z.scrollbarsClipped=!0)}function zl(x){if(x.hasFocus())return null;var z=dt();if(!z||!wt(x.display.lineDiv,z))return null;var re={activeElt:z};if(window.getSelection){var ne=window.getSelection();ne.anchorNode&&ne.extend&&wt(x.display.lineDiv,ne.anchorNode)&&(re.anchorNode=ne.anchorNode,re.anchorOffset=ne.anchorOffset,re.focusNode=ne.focusNode,re.focusOffset=ne.focusOffset)}return re}function Ru(x){if(!(!x||!x.activeElt||x.activeElt==dt())&&(x.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(x.activeElt.nodeName)&&x.anchorNode&&wt(document.body,x.anchorNode)&&wt(document.body,x.focusNode))){var z=window.getSelection(),re=document.createRange();re.setEnd(x.anchorNode,x.anchorOffset),re.collapse(!1),z.removeAllRanges(),z.addRange(re),z.extend(x.focusNode,x.focusOffset)}}function wu(x,z){var re=x.display,ne=x.doc;if(z.editorIsHidden)return _e(x),!1;if(!z.force&&z.visible.from>=re.viewFrom&&z.visible.to<=re.viewTo&&(re.updateLineNumbers==null||re.updateLineNumbers>=re.viewTo)&&re.renderedView==re.view&&Ln(x)==0)return!1;iu(x)&&(_e(x),z.dims=il(x));var ae=ne.first+ne.size,he=Math.max(z.visible.from-x.options.viewportMargin,ne.first),Pe=Math.min(ae,z.visible.to+x.options.viewportMargin);re.viewFrom<he&&he-re.viewFrom<20&&(he=Math.max(ne.first,re.viewFrom)),re.viewTo>Pe&&re.viewTo-Pe<20&&(Pe=Math.min(ae,re.viewTo)),ia&&(he=sn(x.doc,he),Pe=Wn(x.doc,Pe));var Ze=he!=re.viewFrom||Pe!=re.viewTo||re.lastWrapHeight!=z.wrapperHeight||re.lastWrapWidth!=z.wrapperWidth;Lt(x,he,Pe),re.viewOffset=Tn(Gn(x.doc,re.viewFrom)),x.display.mover.style.top=re.viewOffset+"px";var Ye=Ln(x);if(!Ze&&Ye==0&&!z.force&&re.renderedView==re.view&&(re.updateLineNumbers==null||re.updateLineNumbers>=re.viewTo))return!1;var ht=zl(x);return Ye>4&&(re.lineDiv.style.display="none"),dc(x,re.updateLineNumbers,z.dims),Ye>4&&(re.lineDiv.style.display=""),re.renderedView=re.view,Ru(ht),je(re.cursorDiv),je(re.selectionDiv),re.gutters.style.height=re.sizer.style.minHeight=0,Ze&&(re.lastWrapHeight=z.wrapperHeight,re.lastWrapWidth=z.wrapperWidth,as(x,400)),re.updateLineNumbers=null,!0}function Jl(x,z){for(var re=z.viewport,ne=!0;;ne=!1){if(!ne||!x.options.lineWrapping||z.oldDisplayWidth==Bi(x)){if(re&&re.top!=null&&(re={top:Math.min(x.doc.height+Xi(x.display)-Ea(x),re.top)}),z.visible=li(x.display,x.doc,re),z.visible.from>=x.display.viewFrom&&z.visible.to<=x.display.viewTo)break}else ne&&(z.visible=li(x.display,x.doc,re));if(!wu(x,z))break;Fr(x);var ae=no(x);yn(x),is(x,ae),Zl(x,ae),z.force=!1}z.signal(x,"update",x),(x.display.viewFrom!=x.display.reportedViewFrom||x.display.viewTo!=x.display.reportedViewTo)&&(z.signal(x,"viewportChange",x,x.display.viewFrom,x.display.viewTo),x.display.reportedViewFrom=x.display.viewFrom,x.display.reportedViewTo=x.display.viewTo)}function Uu(x,z){var re=new Hs(x,z);if(wu(x,re)){Fr(x),Jl(x,re);var ne=no(x);yn(x),is(x,ne),Zl(x,ne),re.finish()}}function dc(x,z,re){var ne=x.display,ae=x.options.lineNumbers,he=ne.lineDiv,Pe=he.firstChild;function Ze(ri){var vi=ri.nextSibling;return de&&ye&&x.display.currentWheelTarget==ri?ri.style.display="none":ri.parentNode.removeChild(ri),vi}for(var Ye=ne.view,ht=ne.viewFrom,tn=0;tn<Ye.length;tn++){var bn=Ye[tn];if(!bn.hidden)if(!bn.node||bn.node.parentNode!=he){var wr=ba(x,bn,ht,re);he.insertBefore(wr,Pe)}else{for(;Pe!=bn.node;)Pe=Ze(Pe);var dr=ae&&z!=null&&z<=ht&&bn.lineNumber;bn.changes&&(Rt(bn.changes,"gutter")>-1&&(dr=!1),Ii(x,bn,ht,re)),dr&&(je(bn.lineNumber),bn.lineNumber.appendChild(document.createTextNode(Vt(x.options,ht)))),Pe=bn.node.nextSibling}ht+=bn.size}for(;Pe;)Pe=Ze(Pe)}function Vu(x){var z=x.gutters.offsetWidth;x.sizer.style.marginLeft=z+"px"}function Zl(x,z){x.display.sizer.style.minHeight=z.docHeight+"px",x.display.heightForcer.style.top=z.docHeight+"px",x.display.gutters.style.height=z.docHeight+x.display.barHeight+Qi(x)+"px"}function Cu(x){var z=x.display,re=z.view;if(!(!z.alignWidgets&&(!z.gutters.firstChild||!x.options.fixedGutter))){for(var ne=pl(z)-z.scroller.scrollLeft+x.doc.scrollLeft,ae=z.gutters.offsetWidth,he=ne+"px",Pe=0;Pe<re.length;Pe++)if(!re[Pe].hidden){x.options.fixedGutter&&(re[Pe].gutter&&(re[Pe].gutter.style.left=he),re[Pe].gutterBackground&&(re[Pe].gutterBackground.style.left=he));var Ze=re[Pe].alignable;if(Ze)for(var Ye=0;Ye<Ze.length;Ye++)Ze[Ye].style.left=he}x.options.fixedGutter&&(z.gutters.style.left=ne+ae+"px")}}function iu(x){if(!x.options.lineNumbers)return!1;var z=x.doc,re=Vt(x.options,z.first+z.size-1),ne=x.display;if(re.length!=ne.lineNumChars){var ae=ne.measure.appendChild(at("div",[at("div",re)],"CodeMirror-linenumber CodeMirror-gutter-elt")),he=ae.firstChild.offsetWidth,Pe=ae.offsetWidth-he;return ne.lineGutter.style.width="",ne.lineNumInnerWidth=Math.max(he,ne.lineGutter.offsetWidth-Pe)+1,ne.lineNumWidth=ne.lineNumInnerWidth+Pe,ne.lineNumChars=ne.lineNumInnerWidth?re.length:-1,ne.lineGutter.style.width=ne.lineNumWidth+"px",Vu(x.display),!0}return!1}function ju(x,z){for(var re=[],ne=!1,ae=0;ae<x.length;ae++){var he=x[ae],Pe=null;if(typeof he!="string"&&(Pe=he.style,he=he.className),he=="CodeMirror-linenumbers")if(z)ne=!0;else continue;re.push({className:he,style:Pe})}return z&&!ne&&re.push({className:"CodeMirror-linenumbers",style:null}),re}function Gu(x){var z=x.gutters,re=x.gutterSpecs;je(z),x.lineGutter=null;for(var ne=0;ne<re.length;++ne){var ae=re[ne],he=ae.className,Pe=ae.style,Ze=z.appendChild(at("div",null,"CodeMirror-gutter "+he));Pe&&(Ze.style.cssText=Pe),he=="CodeMirror-linenumbers"&&(x.lineGutter=Ze,Ze.style.width=(x.lineNumWidth||1)+"px")}z.style.display=re.length?"":"none",Vu(x)}function ql(x){Gu(x.display),Ce(x),Cu(x)}function Sl(x,z,re,ne){var ae=this;this.input=re,ae.scrollbarFiller=at("div",null,"CodeMirror-scrollbar-filler"),ae.scrollbarFiller.setAttribute("cm-not-content","true"),ae.gutterFiller=at("div",null,"CodeMirror-gutter-filler"),ae.gutterFiller.setAttribute("cm-not-content","true"),ae.lineDiv=Ge("div",null,"CodeMirror-code"),ae.selectionDiv=at("div",null,null,"position: relative; z-index: 1"),ae.cursorDiv=at("div",null,"CodeMirror-cursors"),ae.measure=at("div",null,"CodeMirror-measure"),ae.lineMeasure=at("div",null,"CodeMirror-measure"),ae.lineSpace=Ge("div",[ae.measure,ae.lineMeasure,ae.selectionDiv,ae.cursorDiv,ae.lineDiv],null,"position: relative; outline: none");var he=Ge("div",[ae.lineSpace],"CodeMirror-lines");ae.mover=at("div",[he],null,"position: relative"),ae.sizer=at("div",[ae.mover],"CodeMirror-sizer"),ae.sizerWidth=null,ae.heightForcer=at("div",null,null,"position: absolute; height: "+Vn+"px; width: 1px;"),ae.gutters=at("div",null,"CodeMirror-gutters"),ae.lineGutter=null,ae.scroller=at("div",[ae.sizer,ae.heightForcer,ae.gutters],"CodeMirror-scroll"),ae.scroller.setAttribute("tabIndex","-1"),ae.wrapper=at("div",[ae.scrollbarFiller,ae.gutterFiller,ae.scroller],"CodeMirror"),be&&ke<8&&(ae.gutters.style.zIndex=-1,ae.scroller.style.paddingRight=0),!de&&!(le&&Xe)&&(ae.scroller.draggable=!0),x&&(x.appendChild?x.appendChild(ae.wrapper):x(ae.wrapper)),ae.viewFrom=ae.viewTo=z.first,ae.reportedViewFrom=ae.reportedViewTo=z.first,ae.view=[],ae.renderedView=null,ae.externalMeasured=null,ae.viewOffset=0,ae.lastWrapHeight=ae.lastWrapWidth=0,ae.updateLineNumbers=null,ae.nativeBarWidth=ae.barHeight=ae.barWidth=0,ae.scrollbarsClipped=!1,ae.lineNumWidth=ae.lineNumInnerWidth=ae.lineNumChars=null,ae.alignWidgets=!1,ae.cachedCharWidth=ae.cachedTextHeight=ae.cachedPaddingH=null,ae.maxLine=null,ae.maxLineLength=0,ae.maxLineChanged=!1,ae.wheelDX=ae.wheelDY=ae.wheelStartX=ae.wheelStartY=null,ae.shift=!1,ae.selForContextMenu=null,ae.activeTouch=null,ae.gutterSpecs=ju(ne.gutters,ne.lineNumbers),Gu(ae),re.init(ae)}var Wl=0,sl=null;be?sl=-.53:le?sl=15:pe?sl=-.7:nt&&(sl=-1/3);function fu(x){var z=x.wheelDeltaX,re=x.wheelDeltaY;return z==null&&x.detail&&x.axis==x.HORIZONTAL_AXIS&&(z=x.detail),re==null&&x.detail&&x.axis==x.VERTICAL_AXIS?re=x.detail:re==null&&(re=x.wheelDelta),{x:z,y:re}}function vu(x){var z=fu(x);return z.x*=sl,z.y*=sl,z}function yu(x,z){var re=fu(z),ne=re.x,ae=re.y,he=x.display,Pe=he.scroller,Ze=Pe.scrollWidth>Pe.clientWidth,Ye=Pe.scrollHeight>Pe.clientHeight;if(ne&&Ze||ae&&Ye){if(ae&&ye&&de){e:for(var ht=z.target,tn=he.view;ht!=Pe;ht=ht.parentNode)for(var bn=0;bn<tn.length;bn++)if(tn[bn].node==ht){x.display.currentWheelTarget=ht;break e}}if(ne&&!le&&!Le&&sl!=null){ae&&Ye&&Ta(x,Math.max(0,Pe.scrollTop+ae*sl)),ho(x,Math.max(0,Pe.scrollLeft+ne*sl)),(!ae||ae&&Ye)&&Rr(z),he.wheelStartX=null;return}if(ae&&sl!=null){var wr=ae*sl,dr=x.doc.scrollTop,ri=dr+he.wrapper.clientHeight;wr<0?dr=Math.max(0,dr+wr-50):ri=Math.min(x.doc.height,ri+wr+50),Uu(x,{top:dr,bottom:ri})}Wl<20&&(he.wheelStartX==null?(he.wheelStartX=Pe.scrollLeft,he.wheelStartY=Pe.scrollTop,he.wheelDX=ne,he.wheelDY=ae,setTimeout(function(){if(he.wheelStartX!=null){var vi=Pe.scrollLeft-he.wheelStartX,zi=Pe.scrollTop-he.wheelStartY,fa=zi&&he.wheelDY&&zi/he.wheelDY||vi&&he.wheelDX&&vi/he.wheelDX;he.wheelStartX=he.wheelStartY=null,fa&&(sl=(sl*Wl+fa)/(Wl+1),++Wl)}},200)):(he.wheelDX+=ne,he.wheelDY+=ae))}}var El=function(x,z){this.ranges=x,this.primIndex=z};El.prototype.primary=function(){return this.ranges[this.primIndex]},El.prototype.equals=function(x){if(x==this)return!0;if(x.primIndex!=this.primIndex||x.ranges.length!=this.ranges.length)return!1;for(var z=0;z<this.ranges.length;z++){var re=this.ranges[z],ne=x.ranges[z];if(!sr(re.anchor,ne.anchor)||!sr(re.head,ne.head))return!1}return!0},El.prototype.deepCopy=function(){for(var x=[],z=0;z<this.ranges.length;z++)x[z]=new Do(Tr(this.ranges[z].anchor),Tr(this.ranges[z].head));return new El(x,this.primIndex)},El.prototype.somethingSelected=function(){for(var x=0;x<this.ranges.length;x++)if(!this.ranges[x].empty())return!0;return!1},El.prototype.contains=function(x,z){z||(z=x);for(var re=0;re<this.ranges.length;re++){var ne=this.ranges[re];if(nn(z,ne.from())>=0&&nn(x,ne.to())<=0)return re}return-1};var Do=function(x,z){this.anchor=x,this.head=z};Do.prototype.from=function(){return mr(this.anchor,this.head)},Do.prototype.to=function(){return Fn(this.anchor,this.head)},Do.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ll(x,z,re){var ne=x&&x.options.selectionsMayTouch,ae=z[re];z.sort(function(wr,dr){return nn(wr.from(),dr.from())}),re=Rt(z,ae);for(var he=1;he<z.length;he++){var Pe=z[he],Ze=z[he-1],Ye=nn(Ze.to(),Pe.from());if(ne&&!Pe.empty()?Ye>0:Ye>=0){var ht=mr(Ze.from(),Pe.from()),tn=Fn(Ze.to(),Pe.to()),bn=Ze.empty()?Pe.from()==Pe.head:Ze.from()==Ze.head;he<=re&&--re,z.splice(--he,2,new Do(bn?tn:ht,bn?ht:tn))}}return new El(z,re)}function Ul(x,z){return new El([new Do(x,z||x)],0)}function Js(x){return x.text?Kt(x.from.line+x.text.length-1,Cn(x.text).length+(x.text.length==1?x.from.ch:0)):x.to}function au(x,z){if(nn(x,z.from)<0)return x;if(nn(x,z.to)<=0)return Js(z);var re=x.line+z.text.length-(z.to.line-z.from.line)-1,ne=x.ch;return x.line==z.to.line&&(ne+=Js(z).ch-z.to.ch),Kt(re,ne)}function Bu(x,z){for(var re=[],ne=0;ne<x.sel.ranges.length;ne++){var ae=x.sel.ranges[ne];re.push(new Do(au(ae.anchor,z),au(ae.head,z)))}return ll(x.cm,re,x.sel.primIndex)}function Ss(x,z,re){return x.line==z.line?Kt(re.line,x.ch-z.ch+re.ch):Kt(re.line+(x.line-z.line),x.ch)}function Fu(x,z,re){for(var ne=[],ae=Kt(x.first,0),he=ae,Pe=0;Pe<z.length;Pe++){var Ze=z[Pe],Ye=Ss(Ze.from,ae,he),ht=Ss(Js(Ze),ae,he);if(ae=Ze.to,he=ht,re=="around"){var tn=x.sel.ranges[Pe],bn=nn(tn.head,tn.anchor)<0;ne[Pe]=new Do(bn?ht:Ye,bn?Ye:ht)}else ne[Pe]=new Do(Ye,Ye)}return new El(ne,x.sel.primIndex)}function hu(x){x.doc.mode=zt(x.options,x.doc.modeOption),ou(x)}function ou(x){x.doc.iter(function(z){z.stateAfter&&(z.stateAfter=null),z.styles&&(z.styles=null)}),x.doc.modeFrontier=x.doc.highlightFrontier=x.doc.first,as(x,100),x.state.modeGen++,x.curOp&&Ce(x)}function rc(x,z){return z.from.ch==0&&z.to.ch==0&&Cn(z.text)==""&&(!x.cm||x.cm.options.wholeLineUpdateBefore)}function _u(x,z,re,ne){function ae(ka){return re?re[ka]:null}function he(ka,qi,La){Dr(ka,qi,La,ne),Hr(ka,"change",ka,z)}function Pe(ka,qi){for(var La=[],mo=ka;mo<qi;++mo)La.push(new Jn(ht[mo],ae(mo),ne));return La}var Ze=z.from,Ye=z.to,ht=z.text,tn=Gn(x,Ze.line),bn=Gn(x,Ye.line),wr=Cn(ht),dr=ae(ht.length-1),ri=Ye.line-Ze.line;if(z.full)x.insert(0,Pe(0,ht.length)),x.remove(ht.length,x.size-ht.length);else if(rc(x,z)){var vi=Pe(0,ht.length-1);he(bn,bn.text,dr),ri&&x.remove(Ze.line,ri),vi.length&&x.insert(Ze.line,vi)}else if(tn==bn)if(ht.length==1)he(tn,tn.text.slice(0,Ze.ch)+wr+tn.text.slice(Ye.ch),dr);else{var zi=Pe(1,ht.length-1);zi.push(new Jn(wr+tn.text.slice(Ye.ch),dr,ne)),he(tn,tn.text.slice(0,Ze.ch)+ht[0],ae(0)),x.insert(Ze.line+1,zi)}else if(ht.length==1)he(tn,tn.text.slice(0,Ze.ch)+ht[0]+bn.text.slice(Ye.ch),ae(0)),x.remove(Ze.line+1,ri);else{he(tn,tn.text.slice(0,Ze.ch)+ht[0],ae(0)),he(bn,wr+bn.text.slice(Ye.ch),dr);var fa=Pe(1,ht.length-1);ri>1&&x.remove(Ze.line+1,ri-1),x.insert(Ze.line+1,fa)}Hr(x,"change",x,z)}function Eu(x,z,re){function ne(ae,he,Pe){if(ae.linked)for(var Ze=0;Ze<ae.linked.length;++Ze){var Ye=ae.linked[Ze];if(Ye.doc!=he){var ht=Pe&&Ye.sharedHist;re&&!ht||(z(Ye.doc,ht),ne(Ye.doc,ae,ht))}}}ne(x,null,!0)}function zu(x,z){if(z.cm)throw new Error("This document is already in use.");x.doc=z,z.cm=x,nl(x),hu(x),Ao(x),x.options.lineWrapping||mn(x),x.options.mode=z.modeOption,Ce(x)}function Ao(x){(x.doc.direction=="rtl"?$t:He)(x.display.lineDiv,"CodeMirror-rtl")}function wa(x){po(x,function(){Ao(x),Ce(x)})}function Go(x){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=x||1}function Ls(x,z){var re={from:Tr(z.from),to:Js(z),text:br(x,z.from,z.to)};return St(x,re,z.from.line,z.to.line+1),Eu(x,function(ne){return St(ne,re,z.from.line,z.to.line+1)},!0),re}function Mu(x){for(;x.length;){var z=Cn(x);if(z.ranges)x.pop();else break}}function fc(x,z){if(z)return Mu(x.done),Cn(x.done);if(x.done.length&&!Cn(x.done).ranges)return Cn(x.done);if(x.done.length>1&&!x.done[x.done.length-2].ranges)return x.done.pop(),Cn(x.done)}function De(x,z,re,ne){var ae=x.history;ae.undone.length=0;var he=+new Date,Pe,Ze;if((ae.lastOp==ne||ae.lastOrigin==z.origin&&z.origin&&(z.origin.charAt(0)=="+"&&ae.lastModTime>he-(x.cm?x.cm.options.historyEventDelay:500)||z.origin.charAt(0)=="*"))&&(Pe=fc(ae,ae.lastOp==ne)))Ze=Cn(Pe.changes),nn(z.from,z.to)==0&&nn(z.from,Ze.to)==0?Ze.to=Js(z):Pe.changes.push(Ls(x,z));else{var Ye=Cn(ae.done);for((!Ye||!Ye.ranges)&&gt(x.sel,ae.done),Pe={changes:[Ls(x,z)],generation:ae.generation},ae.done.push(Pe);ae.done.length>ae.undoDepth;)ae.done.shift(),ae.done[0].ranges||ae.done.shift()}ae.done.push(re),ae.generation=++ae.maxGeneration,ae.lastModTime=ae.lastSelTime=he,ae.lastOp=ae.lastSelOp=ne,ae.lastOrigin=ae.lastSelOrigin=z.origin,Ze||Ct(x,"historyAdded")}function Ie(x,z,re,ne){var ae=z.charAt(0);return ae=="*"||ae=="+"&&re.ranges.length==ne.ranges.length&&re.somethingSelected()==ne.somethingSelected()&&new Date-x.history.lastSelTime<=(x.cm?x.cm.options.historyEventDelay:500)}function tt(x,z,re,ne){var ae=x.history,he=ne&&ne.origin;re==ae.lastSelOp||he&&ae.lastSelOrigin==he&&(ae.lastModTime==ae.lastSelTime&&ae.lastOrigin==he||Ie(x,he,Cn(ae.done),z))?ae.done[ae.done.length-1]=z:gt(z,ae.done),ae.lastSelTime=+new Date,ae.lastSelOrigin=he,ae.lastSelOp=re,ne&&ne.clearRedo!==!1&&Mu(ae.undone)}function gt(x,z){var re=Cn(z);re&&re.ranges&&re.equals(x)||z.push(x)}function St(x,z,re,ne){var ae=z["spans_"+x.id],he=0;x.iter(Math.max(x.first,re),Math.min(x.first+x.size,ne),function(Pe){Pe.markedSpans&&((ae||(ae=z["spans_"+x.id]={}))[he]=Pe.markedSpans),++he})}function Ft(x){if(!x)return null;for(var z,re=0;re<x.length;++re)x[re].marker.explicitlyCleared?z||(z=x.slice(0,re)):z&&z.push(x[re]);return z?z.length?z:null:x}function hn(x,z){var re=z["spans_"+x.id];if(!re)return null;for(var ne=[],ae=0;ae<z.text.length;++ae)ne.push(Ft(re[ae]));return ne}function On(x,z){var re=hn(x,z),ne=ji(x,z);if(!re)return ne;if(!ne)return re;for(var ae=0;ae<re.length;++ae){var he=re[ae],Pe=ne[ae];if(he&&Pe)e:for(var Ze=0;Ze<Pe.length;++Ze){for(var Ye=Pe[Ze],ht=0;ht<he.length;++ht)if(he[ht].marker==Ye.marker)continue e;he.push(Ye)}else Pe&&(re[ae]=Pe)}return re}function Dn(x,z,re){for(var ne=[],ae=0;ae<x.length;++ae){var he=x[ae];if(he.ranges){ne.push(re?El.prototype.deepCopy.call(he):he);continue}var Pe=he.changes,Ze=[];ne.push({changes:Ze});for(var Ye=0;Ye<Pe.length;++Ye){var ht=Pe[Ye],tn=void 0;if(Ze.push({from:ht.from,to:ht.to,text:ht.text}),z)for(var bn in ht)(tn=bn.match(/^spans_(\d+)$/))&&Rt(z,Number(tn[1]))>-1&&(Cn(Ze)[bn]=ht[bn],delete ht[bn])}}return ne}function ar(x,z,re,ne){if(ne){var ae=x.anchor;if(re){var he=nn(z,ae)<0;he!=nn(re,ae)<0?(ae=z,z=re):he!=nn(z,re)<0&&(z=re)}return new Do(ae,z)}else return new Do(re||z,z)}function Mr(x,z,re,ne,ae){ae==null&&(ae=x.cm&&(x.cm.display.shift||x.extend)),Sr(x,new El([ar(x.sel.primary(),z,re,ae)],0),ne)}function cn(x,z,re){for(var ne=[],ae=x.cm&&(x.cm.display.shift||x.extend),he=0;he<x.sel.ranges.length;he++)ne[he]=ar(x.sel.ranges[he],z[he],null,ae);var Pe=ll(x.cm,ne,x.sel.primIndex);Sr(x,Pe,re)}function jr(x,z,re,ne){var ae=x.sel.ranges.slice(0);ae[z]=re,Sr(x,ll(x.cm,ae,x.sel.primIndex),ne)}function Xr(x,z,re,ne){Sr(x,Ul(z,re),ne)}function qr(x,z,re){var ne={ranges:z.ranges,update:function(ae){this.ranges=[];for(var he=0;he<ae.length;he++)this.ranges[he]=new Do(zr(x,ae[he].anchor),zr(x,ae[he].head))},origin:re&&re.origin};return Ct(x,"beforeSelectionChange",x,ne),x.cm&&Ct(x.cm,"beforeSelectionChange",x.cm,ne),ne.ranges!=z.ranges?ll(x.cm,ne.ranges,ne.ranges.length-1):z}function Qr(x,z,re){var ne=x.history.done,ae=Cn(ne);ae&&ae.ranges?(ne[ne.length-1]=z,hi(x,z,re)):Sr(x,z,re)}function Sr(x,z,re){hi(x,z,re),tt(x,x.sel,x.cm?x.cm.curOp.id:NaN,re)}function hi(x,z,re){(An(x,"beforeSelectionChange")||x.cm&&An(x.cm,"beforeSelectionChange"))&&(z=qr(x,z,re));var ne=re&&re.bias||(nn(z.primary().head,x.sel.primary().head)<0?-1:1);di(x,va(x,z,ne,!0)),!(re&&re.scroll===!1)&&x.cm&&qa(x.cm)}function di(x,z){z.equals(x.sel)||(x.sel=z,x.cm&&(x.cm.curOp.updateInput=1,x.cm.curOp.selectionChanged=!0,er(x.cm)),Hr(x,"cursorActivity",x))}function $i(x){di(x,va(x,x.sel,null,!1))}function va(x,z,re,ne){for(var ae,he=0;he<z.ranges.length;he++){var Pe=z.ranges[he],Ze=z.ranges.length==x.sel.ranges.length&&x.sel.ranges[he],Ye=ma(x,Pe.anchor,Ze&&Ze.anchor,re,ne),ht=ma(x,Pe.head,Ze&&Ze.head,re,ne);(ae||Ye!=Pe.anchor||ht!=Pe.head)&&(ae||(ae=z.ranges.slice(0,he)),ae[he]=new Do(Ye,ht))}return ae?ll(x.cm,ae,z.primIndex):z}function ca(x,z,re,ne,ae){var he=Gn(x,z.line);if(he.markedSpans)for(var Pe=0;Pe<he.markedSpans.length;++Pe){var Ze=he.markedSpans[Pe],Ye=Ze.marker,ht="selectLeft"in Ye?!Ye.selectLeft:Ye.inclusiveLeft,tn="selectRight"in Ye?!Ye.selectRight:Ye.inclusiveRight;if((Ze.from==null||(ht?Ze.from<=z.ch:Ze.from<z.ch))&&(Ze.to==null||(tn?Ze.to>=z.ch:Ze.to>z.ch))){if(ae&&(Ct(Ye,"beforeCursorEnter"),Ye.explicitlyCleared))if(he.markedSpans){--Pe;continue}else break;if(!Ye.atomic)continue;if(re){var bn=Ye.find(ne<0?1:-1),wr=void 0;if((ne<0?tn:ht)&&(bn=$a(x,bn,-ne,bn&&bn.line==z.line?he:null)),bn&&bn.line==z.line&&(wr=nn(bn,re))&&(ne<0?wr<0:wr>0))return ca(x,bn,z,ne,ae)}var dr=Ye.find(ne<0?-1:1);return(ne<0?ht:tn)&&(dr=$a(x,dr,ne,dr.line==z.line?he:null)),dr?ca(x,dr,z,ne,ae):null}}return z}function ma(x,z,re,ne,ae){var he=ne||1,Pe=ca(x,z,re,he,ae)||!ae&&ca(x,z,re,he,!0)||ca(x,z,re,-he,ae)||!ae&&ca(x,z,re,-he,!0);return Pe||(x.cantEdit=!0,Kt(x.first,0))}function $a(x,z,re,ne){return re<0&&z.ch==0?z.line>x.first?zr(x,Kt(z.line-1)):null:re>0&&z.ch==(ne||Gn(x,z.line)).text.length?z.line<x.first+x.size-1?Kt(z.line+1,0):null:new Kt(z.line,z.ch+re)}function ko(x){x.setSelection(Kt(x.firstLine(),0),Kt(x.lastLine()),xt)}function ea(x,z,re){var ne={canceled:!1,from:z.from,to:z.to,text:z.text,origin:z.origin,cancel:function(){return ne.canceled=!0}};return re&&(ne.update=function(ae,he,Pe,Ze){ae&&(ne.from=zr(x,ae)),he&&(ne.to=zr(x,he)),Pe&&(ne.text=Pe),Ze!==void 0&&(ne.origin=Ze)}),Ct(x,"beforeChange",x,ne),x.cm&&Ct(x.cm,"beforeChange",x.cm,ne),ne.canceled?(x.cm&&(x.cm.curOp.updateInput=2),null):{from:ne.from,to:ne.to,text:ne.text,origin:ne.origin}}function oa(x,z,re){if(x.cm){if(!x.cm.curOp)return jo(x.cm,oa)(x,z,re);if(x.cm.state.suppressEdits)return}if(!((An(x,"beforeChange")||x.cm&&An(x.cm,"beforeChange"))&&(z=ea(x,z,!0),!z))){var ne=wo&&!re&&aa(x,z.from,z.to);if(ne)for(var ae=ne.length-1;ae>=0;--ae)Ji(x,{from:ne[ae].from,to:ne[ae].to,text:ae?[""]:z.text,origin:z.origin});else Ji(x,z)}}function Ji(x,z){if(!(z.text.length==1&&z.text[0]==""&&nn(z.from,z.to)==0)){var re=Bu(x,z);De(x,z,re,x.cm?x.cm.curOp.id:NaN),ja(x,z,re,ji(x,z));var ne=[];Eu(x,function(ae,he){!he&&Rt(ne,ae.history)==-1&&(Zo(ae.history,z),ne.push(ae.history)),ja(ae,z,null,ji(ae,z))})}}function Li(x,z,re){var ne=x.cm&&x.cm.state.suppressEdits;if(!(ne&&!re)){for(var ae=x.history,he,Pe=x.sel,Ze=z=="undo"?ae.done:ae.undone,Ye=z=="undo"?ae.undone:ae.done,ht=0;ht<Ze.length&&(he=Ze[ht],!(re?he.ranges&&!he.equals(x.sel):!he.ranges));ht++);if(ht!=Ze.length){for(ae.lastOrigin=ae.lastSelOrigin=null;;)if(he=Ze.pop(),he.ranges){if(gt(he,Ye),re&&!he.equals(x.sel)){Sr(x,he,{clearRedo:!1});return}Pe=he}else if(ne){Ze.push(he);return}else break;var tn=[];gt(Pe,Ye),Ye.push({changes:tn,generation:ae.generation}),ae.generation=he.generation||++ae.maxGeneration;for(var bn=An(x,"beforeChange")||x.cm&&An(x.cm,"beforeChange"),wr=function(vi){var zi=he.changes[vi];if(zi.origin=z,bn&&!ea(x,zi,!1))return Ze.length=0,{};tn.push(Ls(x,zi));var fa=vi?Bu(x,zi):Cn(Ze);ja(x,zi,fa,On(x,zi)),!vi&&x.cm&&x.cm.scrollIntoView({from:zi.from,to:Js(zi)});var ka=[];Eu(x,function(qi,La){!La&&Rt(ka,qi.history)==-1&&(Zo(qi.history,zi),ka.push(qi.history)),ja(qi,zi,null,On(qi,zi))})},dr=he.changes.length-1;dr>=0;--dr){var ri=wr(dr);if(ri)return ri.v}}}}function da(x,z){if(z!=0&&(x.first+=z,x.sel=new El(pr(x.sel.ranges,function(ae){return new Do(Kt(ae.anchor.line+z,ae.anchor.ch),Kt(ae.head.line+z,ae.head.ch))}),x.sel.primIndex),x.cm)){Ce(x.cm,x.first,x.first-z,z);for(var re=x.cm.display,ne=re.viewFrom;ne<re.viewTo;ne++)Oe(x.cm,ne,"gutter")}}function ja(x,z,re,ne){if(x.cm&&!x.cm.curOp)return jo(x.cm,ja)(x,z,re,ne);if(z.to.line<x.first){da(x,z.text.length-1-(z.to.line-z.from.line));return}if(!(z.from.line>x.lastLine())){if(z.from.line<x.first){var ae=z.text.length-1-(x.first-z.from.line);da(x,ae),z={from:Kt(x.first,0),to:Kt(z.to.line+ae,z.to.ch),text:[Cn(z.text)],origin:z.origin}}var he=x.lastLine();z.to.line>he&&(z={from:z.from,to:Kt(he,Gn(x,he).text.length),text:[z.text[0]],origin:z.origin}),z.removed=br(x,z.from,z.to),re||(re=Bu(x,z)),x.cm?Bo(x.cm,z,ne):_u(x,z,ne),hi(x,re,xt),x.cantEdit&&ma(x,Kt(x.firstLine(),0))&&(x.cantEdit=!1)}}function Bo(x,z,re){var ne=x.doc,ae=x.display,he=z.from,Pe=z.to,Ze=!1,Ye=he.line;x.options.lineWrapping||(Ye=Vr(ut(Gn(ne,he.line))),ne.iter(Ye,Pe.line+1,function(dr){if(dr==ae.maxLine)return Ze=!0,!0})),ne.sel.contains(z.from,z.to)>-1&&er(x),_u(ne,z,re,Al(x)),x.options.lineWrapping||(ne.iter(Ye,he.line+z.text.length,function(dr){var ri=kn(dr);ri>ae.maxLineLength&&(ae.maxLine=dr,ae.maxLineLength=ri,ae.maxLineChanged=!0,Ze=!1)}),Ze&&(x.curOp.updateMaxLine=!0)),_o(ne,he.line),as(x,400);var ht=z.text.length-(Pe.line-he.line)-1;z.full?Ce(x):he.line==Pe.line&&z.text.length==1&&!rc(x.doc,z)?Oe(x,he.line,"text"):Ce(x,he.line,Pe.line+1,ht);var tn=An(x,"changes"),bn=An(x,"change");if(bn||tn){var wr={from:he,to:Pe,text:z.text,removed:z.removed,origin:z.origin};bn&&Hr(x,"change",x,wr),tn&&(x.curOp.changeObjs||(x.curOp.changeObjs=[])).push(wr)}x.display.selForContextMenu=null}function lo(x,z,re,ne,ae){var he;ne||(ne=re),nn(ne,re)<0&&(he=[ne,re],re=he[0],ne=he[1]),typeof z=="string"&&(z=x.splitLines(z)),oa(x,{from:re,to:ne,text:z,origin:ae})}function Ua(x,z,re,ne){re<x.line?x.line+=ne:z<x.line&&(x.line=z,x.ch=0)}function Ho(x,z,re,ne){for(var ae=0;ae<x.length;++ae){var he=x[ae],Pe=!0;if(he.ranges){he.copied||(he=x[ae]=he.deepCopy(),he.copied=!0);for(var Ze=0;Ze<he.ranges.length;Ze++)Ua(he.ranges[Ze].anchor,z,re,ne),Ua(he.ranges[Ze].head,z,re,ne);continue}for(var Ye=0;Ye<he.changes.length;++Ye){var ht=he.changes[Ye];if(re<ht.from.line)ht.from=Kt(ht.from.line+ne,ht.from.ch),ht.to=Kt(ht.to.line+ne,ht.to.ch);else if(z<=ht.to.line){Pe=!1;break}}Pe||(x.splice(0,ae+1),ae=0)}}function Zo(x,z){var re=z.from.line,ne=z.to.line,ae=z.text.length-(ne-re)-1;Ho(x.done,re,ne,ae),Ho(x.undone,re,ne,ae)}function vs(x,z,re,ne){var ae=z,he=z;return typeof z=="number"?he=Gn(x,ur(x,z)):ae=Vr(z),ae==null?null:(ne(he,ae)&&x.cm&&Oe(x.cm,ae,re),he)}function $o(x){this.lines=x,this.parent=null;for(var z=0,re=0;re<x.length;++re)x[re].parent=this,z+=x[re].height;this.height=z}$o.prototype={chunkSize:function(){return this.lines.length},removeInner:function(x,z){for(var re=x,ne=x+z;re<ne;++re){var ae=this.lines[re];this.height-=ae.height,cr(ae),Hr(ae,"delete")}this.lines.splice(x,z)},collapse:function(x){x.push.apply(x,this.lines)},insertInner:function(x,z,re){this.height+=re,this.lines=this.lines.slice(0,x).concat(z).concat(this.lines.slice(x));for(var ne=0;ne<z.length;++ne)z[ne].parent=this},iterN:function(x,z,re){for(var ne=x+z;x<ne;++x)if(re(this.lines[x]))return!0}};function Fs(x){this.children=x;for(var z=0,re=0,ne=0;ne<x.length;++ne){var ae=x[ne];z+=ae.chunkSize(),re+=ae.height,ae.parent=this}this.size=z,this.height=re,this.parent=null}Fs.prototype={chunkSize:function(){return this.size},removeInner:function(x,z){this.size-=z;for(var re=0;re<this.children.length;++re){var ne=this.children[re],ae=ne.chunkSize();if(x<ae){var he=Math.min(z,ae-x),Pe=ne.height;if(ne.removeInner(x,he),this.height-=Pe-ne.height,ae==he&&(this.children.splice(re--,1),ne.parent=null),(z-=he)==0)break;x=0}else x-=ae}if(this.size-z<25&&(this.children.length>1||!(this.children[0]instanceof $o))){var Ze=[];this.collapse(Ze),this.children=[new $o(Ze)],this.children[0].parent=this}},collapse:function(x){for(var z=0;z<this.children.length;++z)this.children[z].collapse(x)},insertInner:function(x,z,re){this.size+=z.length,this.height+=re;for(var ne=0;ne<this.children.length;++ne){var ae=this.children[ne],he=ae.chunkSize();if(x<=he){if(ae.insertInner(x,z,re),ae.lines&&ae.lines.length>50){for(var Pe=ae.lines.length%25+25,Ze=Pe;Ze<ae.lines.length;){var Ye=new $o(ae.lines.slice(Ze,Ze+=25));ae.height-=Ye.height,this.children.splice(++ne,0,Ye),Ye.parent=this}ae.lines=ae.lines.slice(0,Pe),this.maybeSpill()}break}x-=he}},maybeSpill:function(){if(!(this.children.length<=10)){var x=this;do{var z=x.children.splice(x.children.length-5,5),re=new Fs(z);if(x.parent){x.size-=re.size,x.height-=re.height;var ae=Rt(x.parent.children,x);x.parent.children.splice(ae+1,0,re)}else{var ne=new Fs(x.children);ne.parent=x,x.children=[ne,re],x=ne}re.parent=x.parent}while(x.children.length>10);x.parent.maybeSpill()}},iterN:function(x,z,re){for(var ne=0;ne<this.children.length;++ne){var ae=this.children[ne],he=ae.chunkSize();if(x<he){var Pe=Math.min(z,he-x);if(ae.iterN(x,Pe,re))return!0;if((z-=Pe)==0)break;x=0}else x-=he}}};var _s=function(x,z,re){if(re)for(var ne in re)re.hasOwnProperty(ne)&&(this[ne]=re[ne]);this.doc=x,this.node=z};_s.prototype.clear=function(){var x=this.doc.cm,z=this.line.widgets,re=this.line,ne=Vr(re);if(!(ne==null||!z)){for(var ae=0;ae<z.length;++ae)z[ae]==this&&z.splice(ae--,1);z.length||(re.widgets=null);var he=za(this);Gr(re,Math.max(0,re.height-he)),x&&(po(x,function(){Lo(x,re,-he),Oe(x,ne,"widget")}),Hr(x,"lineWidgetCleared",x,this,ne))}},_s.prototype.changed=function(){var x=this,z=this.height,re=this.doc.cm,ne=this.line;this.height=null;var ae=za(this)-z;ae&&(lr(this.doc,ne)||Gr(ne,ne.height+ae),re&&po(re,function(){re.curOp.forceUpdate=!0,Lo(re,ne,ae),Hr(re,"lineWidgetChanged",re,x,Vr(ne))}))},fr(_s);function Lo(x,z,re){Tn(z)<(x.curOp&&x.curOp.scrollTop||x.doc.scrollTop)&&Ci(x,re)}function gl(x,z,re,ne){var ae=new _s(x,re,ne),he=x.cm;return he&&ae.noHScroll&&(he.display.alignWidgets=!0),vs(x,z,"widget",function(Pe){var Ze=Pe.widgets||(Pe.widgets=[]);if(ae.insertAt==null?Ze.push(ae):Ze.splice(Math.min(Ze.length-1,Math.max(0,ae.insertAt)),0,ae),ae.line=Pe,he&&!lr(x,Pe)){var Ye=Tn(Pe)<x.scrollTop;Gr(Pe,Pe.height+za(ae)),Ye&&Ci(he,ae.height),he.curOp.forceUpdate=!0}return!0}),he&&Hr(he,"lineWidgetAdded",he,ae,typeof z=="number"?z:Vr(z)),ae}var ps=0,Ps=function(x,z){this.lines=[],this.type=z,this.doc=x,this.id=++ps};Ps.prototype.clear=function(){if(!this.explicitlyCleared){var x=this.doc.cm,z=x&&!x.curOp;if(z&&Qs(x),An(this,"clear")){var re=this.find();re&&Hr(this,"clear",re.from,re.to)}for(var ne=null,ae=null,he=0;he<this.lines.length;++he){var Pe=this.lines[he],Ze=yr(Pe.markedSpans,this);x&&!this.collapsed?Oe(x,Vr(Pe),"text"):x&&(Ze.to!=null&&(ae=Vr(Pe)),Ze.from!=null&&(ne=Vr(Pe))),Pe.markedSpans=Ir(Pe.markedSpans,Ze),Ze.from==null&&this.collapsed&&!lr(this.doc,Pe)&&x&&Gr(Pe,Rs(x.display))}if(x&&this.collapsed&&!x.options.lineWrapping)for(var Ye=0;Ye<this.lines.length;++Ye){var ht=ut(this.lines[Ye]),tn=kn(ht);tn>x.display.maxLineLength&&(x.display.maxLine=ht,x.display.maxLineLength=tn,x.display.maxLineChanged=!0)}ne!=null&&x&&this.collapsed&&Ce(x,ne,ae+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,x&&$i(x.doc)),x&&Hr(x,"markerCleared",x,this,ne,ae),z&&As(x),this.parent&&this.parent.clear()}},Ps.prototype.find=function(x,z){x==null&&this.type=="bookmark"&&(x=1);for(var re,ne,ae=0;ae<this.lines.length;++ae){var he=this.lines[ae],Pe=yr(he.markedSpans,this);if(Pe.from!=null&&(re=Kt(z?he:Vr(he),Pe.from),x==-1))return re;if(Pe.to!=null&&(ne=Kt(z?he:Vr(he),Pe.to),x==1))return ne}return re&&{from:re,to:ne}},Ps.prototype.changed=function(){var x=this,z=this.find(-1,!0),re=this,ne=this.doc.cm;!z||!ne||po(ne,function(){var ae=z.line,he=Vr(z.line),Pe=Po(ne,he);if(Pe&&(fo(Pe),ne.curOp.selectionChanged=ne.curOp.forceUpdate=!0),ne.curOp.updateMaxLine=!0,!lr(re.doc,ae)&&re.height!=null){var Ze=re.height;re.height=null;var Ye=za(re)-Ze;Ye&&Gr(ae,ae.height+Ye)}Hr(ne,"markerChanged",ne,x)})},Ps.prototype.attachLine=function(x){if(!this.lines.length&&this.doc.cm){var z=this.doc.cm.curOp;(!z.maybeHiddenMarkers||Rt(z.maybeHiddenMarkers,this)==-1)&&(z.maybeUnhiddenMarkers||(z.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(x)},Ps.prototype.detachLine=function(x){if(this.lines.splice(Rt(this.lines,x),1),!this.lines.length&&this.doc.cm){var z=this.doc.cm.curOp;(z.maybeHiddenMarkers||(z.maybeHiddenMarkers=[])).push(this)}},fr(Ps);function ws(x,z,re,ne,ae){if(ne&&ne.shared)return Ki(x,z,re,ne,ae);if(x.cm&&!x.cm.curOp)return jo(x.cm,ws)(x,z,re,ne,ae);var he=new Ps(x,ae),Pe=nn(z,re);if(ne&&$n(ne,he,!1),Pe>0||Pe==0&&he.clearWhenEmpty!==!1)return he;if(he.replacedWith&&(he.collapsed=!0,he.widgetNode=Ge("span",[he.replacedWith],"CodeMirror-widget"),ne.handleMouseEvents||he.widgetNode.setAttribute("cm-ignore-events","true"),ne.insertLeft&&(he.widgetNode.insertLeft=!0)),he.collapsed){if(Je(x,z.line,z,re,he)||z.line!=re.line&&Je(x,re.line,z,re,he))throw new Error("Inserting collapsed marker partially overlapping an existing one");Gt()}he.addToHistory&&De(x,{from:z,to:re,origin:"markText"},x.sel,NaN);var Ze=z.line,Ye=x.cm,ht;if(x.iter(Ze,re.line+1,function(bn){Ye&&he.collapsed&&!Ye.options.lineWrapping&&ut(bn)==Ye.display.maxLine&&(ht=!0),he.collapsed&&Ze!=z.line&&Gr(bn,0),si(bn,new Kn(he,Ze==z.line?z.ch:null,Ze==re.line?re.ch:null)),++Ze}),he.collapsed&&x.iter(z.line,re.line+1,function(bn){lr(x,bn)&&Gr(bn,0)}),he.clearOnEnter&&jt(he,"beforeCursorEnter",function(){return he.clear()}),he.readOnly&&(on(),(x.history.done.length||x.history.undone.length)&&x.clearHistory()),he.collapsed&&(he.id=++ps,he.atomic=!0),Ye){if(ht&&(Ye.curOp.updateMaxLine=!0),he.collapsed)Ce(Ye,z.line,re.line+1);else if(he.className||he.startStyle||he.endStyle||he.css||he.attributes||he.title)for(var tn=z.line;tn<=re.line;tn++)Oe(Ye,tn,"text");he.atomic&&$i(Ye.doc),Hr(Ye,"markerAdded",Ye,he)}return he}var vo=function(x,z){this.markers=x,this.primary=z;for(var re=0;re<x.length;++re)x[re].parent=this};vo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var x=0;x<this.markers.length;++x)this.markers[x].clear();Hr(this,"clear")}},vo.prototype.find=function(x,z){return this.primary.find(x,z)},fr(vo);function Ki(x,z,re,ne,ae){ne=$n(ne),ne.shared=!1;var he=[ws(x,z,re,ne,ae)],Pe=he[0],Ze=ne.widgetNode;return Eu(x,function(Ye){Ze&&(ne.widgetNode=Ze.cloneNode(!0)),he.push(ws(Ye,zr(Ye,z),zr(Ye,re),ne,ae));for(var ht=0;ht<Ye.linked.length;++ht)if(Ye.linked[ht].isParent)return;Pe=Cn(he)}),new vo(he,Pe)}function Ia(x){return x.findMarks(Kt(x.first,0),x.clipPos(Kt(x.lastLine())),function(z){return z.parent})}function Ga(x,z){for(var re=0;re<z.length;re++){var ne=z[re],ae=ne.find(),he=x.clipPos(ae.from),Pe=x.clipPos(ae.to);if(nn(he,Pe)){var Ze=ws(x,he,Pe,ne.primary,ne.primary.type);ne.markers.push(Ze),Ze.parent=ne}}}function na(x){for(var z=function(ne){var ae=x[ne],he=[ae.primary.doc];Eu(ae.primary.doc,function(Ye){return he.push(Ye)});for(var Pe=0;Pe<ae.markers.length;Pe++){var Ze=ae.markers[Pe];Rt(he,Ze.doc)==-1&&(Ze.parent=null,ae.markers.splice(Pe--,1))}},re=0;re<x.length;re++)z(re)}var ds=0,Zi=function(x,z,re,ne,ae){if(!(this instanceof Zi))return new Zi(x,z,re,ne,ae);re==null&&(re=0),Fs.call(this,[new $o([new Jn("",null)])]),this.first=re,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=re;var he=Kt(re,0);this.sel=Ul(he),this.history=new Go(null),this.id=++ds,this.modeOption=z,this.lineSep=ne,this.direction=ae=="rtl"?"rtl":"ltr",this.extend=!1,typeof x=="string"&&(x=this.splitLines(x)),_u(this,{from:he,to:he,text:x}),Sr(this,Ul(he),xt)};Zi.prototype=fe(Fs.prototype,{constructor:Zi,iter:function(x,z,re){re?this.iterN(x-this.first,z-x,re):this.iterN(this.first,this.first+this.size,x)},insert:function(x,z){for(var re=0,ne=0;ne<z.length;++ne)re+=z[ne].height;this.insertInner(x-this.first,z,re)},remove:function(x,z){this.removeInner(x-this.first,z)},getValue:function(x){var z=fi(this,this.first,this.first+this.size);return x===!1?z:z.join(x||this.lineSeparator())},setValue:Ko(function(x){var z=Kt(this.first,0),re=this.first+this.size-1;oa(this,{from:z,to:Kt(re,Gn(this,re).text.length),text:this.splitLines(x),origin:"setValue",full:!0},!0),this.cm&&Ha(this.cm,0,0),Sr(this,Ul(z),xt)}),replaceRange:function(x,z,re,ne){z=zr(this,z),re=re?zr(this,re):z,lo(this,x,z,re,ne)},getRange:function(x,z,re){var ne=br(this,zr(this,x),zr(this,z));return re===!1?ne:ne.join(re||this.lineSeparator())},getLine:function(x){var z=this.getLineHandle(x);return z&&z.text},getLineHandle:function(x){if(ei(this,x))return Gn(this,x)},getLineNumber:function(x){return Vr(x)},getLineHandleVisualStart:function(x){return typeof x=="number"&&(x=Gn(this,x)),ut(x)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(x){return zr(this,x)},getCursor:function(x){var z=this.sel.primary(),re;return x==null||x=="head"?re=z.head:x=="anchor"?re=z.anchor:x=="end"||x=="to"||x===!1?re=z.to():re=z.from(),re},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Ko(function(x,z,re){Xr(this,zr(this,typeof x=="number"?Kt(x,z||0):x),null,re)}),setSelection:Ko(function(x,z,re){Xr(this,zr(this,x),zr(this,z||x),re)}),extendSelection:Ko(function(x,z,re){Mr(this,zr(this,x),z&&zr(this,z),re)}),extendSelections:Ko(function(x,z){cn(this,jn(this,x),z)}),extendSelectionsBy:Ko(function(x,z){var re=pr(this.sel.ranges,x);cn(this,jn(this,re),z)}),setSelections:Ko(function(x,z,re){if(x.length){for(var ne=[],ae=0;ae<x.length;ae++)ne[ae]=new Do(zr(this,x[ae].anchor),zr(this,x[ae].head));z==null&&(z=Math.min(x.length-1,this.sel.primIndex)),Sr(this,ll(this.cm,ne,z),re)}}),addSelection:Ko(function(x,z,re){var ne=this.sel.ranges.slice(0);ne.push(new Do(zr(this,x),zr(this,z||x))),Sr(this,ll(this.cm,ne,ne.length-1),re)}),getSelection:function(x){for(var z=this.sel.ranges,re,ne=0;ne<z.length;ne++){var ae=br(this,z[ne].from(),z[ne].to());re=re?re.concat(ae):ae}return x===!1?re:re.join(x||this.lineSeparator())},getSelections:function(x){for(var z=[],re=this.sel.ranges,ne=0;ne<re.length;ne++){var ae=br(this,re[ne].from(),re[ne].to());x!==!1&&(ae=ae.join(x||this.lineSeparator())),z[ne]=ae}return z},replaceSelection:function(x,z,re){for(var ne=[],ae=0;ae<this.sel.ranges.length;ae++)ne[ae]=x;this.replaceSelections(ne,z,re||"+input")},replaceSelections:Ko(function(x,z,re){for(var ne=[],ae=this.sel,he=0;he<ae.ranges.length;he++){var Pe=ae.ranges[he];ne[he]={from:Pe.from(),to:Pe.to(),text:this.splitLines(x[he]),origin:re}}for(var Ze=z&&z!="end"&&Fu(this,ne,z),Ye=ne.length-1;Ye>=0;Ye--)oa(this,ne[Ye]);Ze?Qr(this,Ze):this.cm&&qa(this.cm)}),undo:Ko(function(){Li(this,"undo")}),redo:Ko(function(){Li(this,"redo")}),undoSelection:Ko(function(){Li(this,"undo",!0)}),redoSelection:Ko(function(){Li(this,"redo",!0)}),setExtending:function(x){this.extend=x},getExtending:function(){return this.extend},historySize:function(){for(var x=this.history,z=0,re=0,ne=0;ne<x.done.length;ne++)x.done[ne].ranges||++z;for(var ae=0;ae<x.undone.length;ae++)x.undone[ae].ranges||++re;return{undo:z,redo:re}},clearHistory:function(){var x=this;this.history=new Go(this.history.maxGeneration),Eu(this,function(z){return z.history=x.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(x){return x&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(x){return this.history.generation==(x||this.cleanGeneration)},getHistory:function(){return{done:Dn(this.history.done),undone:Dn(this.history.undone)}},setHistory:function(x){var z=this.history=new Go(this.history.maxGeneration);z.done=Dn(x.done.slice(0),null,!0),z.undone=Dn(x.undone.slice(0),null,!0)},setGutterMarker:Ko(function(x,z,re){return vs(this,x,"gutter",function(ne){var ae=ne.gutterMarkers||(ne.gutterMarkers={});return ae[z]=re,!re&&se(ae)&&(ne.gutterMarkers=null),!0})}),clearGutter:Ko(function(x){var z=this;this.iter(function(re){re.gutterMarkers&&re.gutterMarkers[x]&&vs(z,re,"gutter",function(){return re.gutterMarkers[x]=null,se(re.gutterMarkers)&&(re.gutterMarkers=null),!0})})}),lineInfo:function(x){var z;if(typeof x=="number"){if(!ei(this,x)||(z=x,x=Gn(this,x),!x))return null}else if(z=Vr(x),z==null)return null;return{line:z,handle:x,text:x.text,gutterMarkers:x.gutterMarkers,textClass:x.textClass,bgClass:x.bgClass,wrapClass:x.wrapClass,widgets:x.widgets}},addLineClass:Ko(function(x,z,re){return vs(this,x,z=="gutter"?"gutter":"class",function(ne){var ae=z=="text"?"textClass":z=="background"?"bgClass":z=="gutter"?"gutterClass":"wrapClass";if(!ne[ae])ne[ae]=re;else{if(ce(re).test(ne[ae]))return!1;ne[ae]+=" "+re}return!0})}),removeLineClass:Ko(function(x,z,re){return vs(this,x,z=="gutter"?"gutter":"class",function(ne){var ae=z=="text"?"textClass":z=="background"?"bgClass":z=="gutter"?"gutterClass":"wrapClass",he=ne[ae];if(he)if(re==null)ne[ae]=null;else{var Pe=he.match(ce(re));if(!Pe)return!1;var Ze=Pe.index+Pe[0].length;ne[ae]=he.slice(0,Pe.index)+(!Pe.index||Ze==he.length?"":" ")+he.slice(Ze)||null}else return!1;return!0})}),addLineWidget:Ko(function(x,z,re){return gl(this,x,z,re)}),removeLineWidget:function(x){x.clear()},markText:function(x,z,re){return ws(this,zr(this,x),zr(this,z),re,re&&re.type||"range")},setBookmark:function(x,z){var re={replacedWith:z&&(z.nodeType==null?z.widget:z),insertLeft:z&&z.insertLeft,clearWhenEmpty:!1,shared:z&&z.shared,handleMouseEvents:z&&z.handleMouseEvents};return x=zr(this,x),ws(this,x,x,re,"bookmark")},findMarksAt:function(x){x=zr(this,x);var z=[],re=Gn(this,x.line).markedSpans;if(re)for(var ne=0;ne<re.length;++ne){var ae=re[ne];(ae.from==null||ae.from<=x.ch)&&(ae.to==null||ae.to>=x.ch)&&z.push(ae.marker.parent||ae.marker)}return z},findMarks:function(x,z,re){x=zr(this,x),z=zr(this,z);var ne=[],ae=x.line;return this.iter(x.line,z.line+1,function(he){var Pe=he.markedSpans;if(Pe)for(var Ze=0;Ze<Pe.length;Ze++){var Ye=Pe[Ze];!(Ye.to!=null&&ae==x.line&&x.ch>=Ye.to||Ye.from==null&&ae!=x.line||Ye.from!=null&&ae==z.line&&Ye.from>=z.ch)&&(!re||re(Ye.marker))&&ne.push(Ye.marker.parent||Ye.marker)}++ae}),ne},getAllMarks:function(){var x=[];return this.iter(function(z){var re=z.markedSpans;if(re)for(var ne=0;ne<re.length;++ne)re[ne].from!=null&&x.push(re[ne].marker)}),x},posFromIndex:function(x){var z,re=this.first,ne=this.lineSeparator().length;return this.iter(function(ae){var he=ae.text.length+ne;if(he>x)return z=x,!0;x-=he,++re}),zr(this,Kt(re,z))},indexFromPos:function(x){x=zr(this,x);var z=x.ch;if(x.line<this.first||x.ch<0)return 0;var re=this.lineSeparator().length;return this.iter(this.first,x.line,function(ne){z+=ne.text.length+re}),z},copy:function(x){var z=new Zi(fi(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return z.scrollTop=this.scrollTop,z.scrollLeft=this.scrollLeft,z.sel=this.sel,z.extend=!1,x&&(z.history.undoDepth=this.history.undoDepth,z.setHistory(this.getHistory())),z},linkedDoc:function(x){x||(x={});var z=this.first,re=this.first+this.size;x.from!=null&&x.from>z&&(z=x.from),x.to!=null&&x.to<re&&(re=x.to);var ne=new Zi(fi(this,z,re),x.mode||this.modeOption,z,this.lineSep,this.direction);return x.sharedHist&&(ne.history=this.history),(this.linked||(this.linked=[])).push({doc:ne,sharedHist:x.sharedHist}),ne.linked=[{doc:this,isParent:!0,sharedHist:x.sharedHist}],Ga(ne,Ia(this)),ne},unlinkDoc:function(x){if(x instanceof No&&(x=x.doc),this.linked)for(var z=0;z<this.linked.length;++z){var re=this.linked[z];if(re.doc==x){this.linked.splice(z,1),x.unlinkDoc(this),na(Ia(this));break}}if(x.history==this.history){var ne=[x.id];Eu(x,function(ae){return ne.push(ae.id)},!0),x.history=new Go(null),x.history.done=Dn(this.history.done,ne),x.history.undone=Dn(this.history.undone,ne)}},iterLinkedDocs:function(x){Eu(this,x)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(x){return this.lineSep?x.split(this.lineSep):Ut(x)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Ko(function(x){x!="rtl"&&(x="ltr"),x!=this.direction&&(this.direction=x,this.iter(function(z){return z.order=null}),this.cm&&wa(this.cm))})}),Zi.prototype.eachLine=Zi.prototype.iter;var yo=0;function fs(x){var z=this;if(wl(z),!(At(z,x)||la(z.display,x))){Rr(x),be&&(yo=+new Date);var re=Fl(z,x,!0),ne=x.dataTransfer.files;if(!(!re||z.isReadOnly()))if(ne&&ne.length&&window.FileReader&&window.File)for(var ae=ne.length,he=Array(ae),Pe=0,Ze=function(){++Pe==ae&&jo(z,function(){re=zr(z.doc,re);var dr={from:re,to:re,text:z.doc.splitLines(he.filter(function(ri){return ri!=null}).join(z.doc.lineSeparator())),origin:"paste"};oa(z.doc,dr),Qr(z.doc,Ul(zr(z.doc,re),zr(z.doc,Js(dr))))})()},Ye=function(dr,ri){if(z.options.allowDropFileTypes&&Rt(z.options.allowDropFileTypes,dr.type)==-1){Ze();return}var vi=new FileReader;vi.onerror=function(){return Ze()},vi.onload=function(){var zi=vi.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(zi)){Ze();return}he[ri]=zi,Ze()},vi.readAsText(dr)},ht=0;ht<ne.length;ht++)Ye(ne[ht],ht);else{if(z.state.draggingText&&z.doc.sel.contains(re)>-1){z.state.draggingText(x),setTimeout(function(){return z.display.input.focus()},20);return}try{var tn=x.dataTransfer.getData("Text");if(tn){var bn;if(z.state.draggingText&&!z.state.draggingText.copy&&(bn=z.listSelections()),hi(z.doc,Ul(re,re)),bn)for(var wr=0;wr<bn.length;++wr)lo(z.doc,"",bn[wr].anchor,bn[wr].head,"drag");z.replaceSelection(tn,"around","paste"),z.display.input.focus()}}catch(dr){}}}}function ts(x,z){if(be&&(!x.state.draggingText||+new Date-yo<100)){Jr(z);return}if(!(At(x,z)||la(x.display,z))&&(z.dataTransfer.setData("Text",x.getSelection()),z.dataTransfer.effectAllowed="copyMove",z.dataTransfer.setDragImage&&!nt)){var re=at("img",null,null,"position: fixed; left: 0; top: 0;");re.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Le&&(re.width=re.height=1,x.display.wrapper.appendChild(re),re._top=re.offsetTop),z.dataTransfer.setDragImage(re,0,0),Le&&re.parentNode.removeChild(re)}}function $l(x,z){var re=Fl(x,z);if(re){var ne=document.createDocumentFragment();_n(x,re,ne),x.display.dragCursor||(x.display.dragCursor=at("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),x.display.lineSpace.insertBefore(x.display.dragCursor,x.display.cursorDiv)),it(x.display.dragCursor,ne)}}function wl(x){x.display.dragCursor&&(x.display.lineSpace.removeChild(x.display.dragCursor),x.display.dragCursor=null)}function eu(x){if(document.getElementsByClassName){for(var z=document.getElementsByClassName("CodeMirror"),re=[],ne=0;ne<z.length;ne++){var ae=z[ne].CodeMirror;ae&&re.push(ae)}re.length&&re[0].operation(function(){for(var he=0;he<re.length;he++)x(re[he])})}}var oi=!1;function ku(){oi||(ul(),oi=!0)}function ul(){var x;jt(window,"resize",function(){x==null&&(x=setTimeout(function(){x=null,eu(Vl)},100))}),jt(window,"blur",function(){return eu(hr)})}function Vl(x){var z=x.display;z.cachedCharWidth=z.cachedTextHeight=z.cachedPaddingH=null,z.scrollbarsClipped=!1,x.setSize()}for(var su={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},hs=0;hs<10;hs++)su[hs+48]=su[hs+96]=String(hs);for(var ys=65;ys<=90;ys++)su[ys]=String.fromCharCode(ys);for(var zs=1;zs<=12;zs++)su[zs+111]=su[zs+63235]="F"+zs;var Io={};Io.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Io.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Io.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Io.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Io.default=ye?Io.macDefault:Io.pcDefault;function Ll(x){var z=x.split(/-(?!$)/);x=z[z.length-1];for(var re,ne,ae,he,Pe=0;Pe<z.length-1;Pe++){var Ze=z[Pe];if(/^(cmd|meta|m)$/i.test(Ze))he=!0;else if(/^a(lt)?$/i.test(Ze))re=!0;else if(/^(c|ctrl|control)$/i.test(Ze))ne=!0;else if(/^s(hift)?$/i.test(Ze))ae=!0;else throw new Error("Unrecognized modifier name: "+Ze)}return re&&(x="Alt-"+x),ne&&(x="Ctrl-"+x),he&&(x="Cmd-"+x),ae&&(x="Shift-"+x),x}function Yo(x){var z={};for(var re in x)if(x.hasOwnProperty(re)){var ne=x[re];if(/^(name|fallthrough|(de|at)tach)$/.test(re))continue;if(ne=="..."){delete x[re];continue}for(var ae=pr(re.split(" "),Ll),he=0;he<ae.length;he++){var Pe=void 0,Ze=void 0;he==ae.length-1?(Ze=ae.join(" "),Pe=ne):(Ze=ae.slice(0,he+1).join(" "),Pe="...");var Ye=z[Ze];if(!Ye)z[Ze]=Pe;else if(Ye!=Pe)throw new Error("Inconsistent bindings for "+Ze)}delete x[re]}for(var ht in z)x[ht]=z[ht];return x}function Cl(x,z,re,ne){z=cl(z);var ae=z.call?z.call(x,ne):z[x];if(ae===!1)return"nothing";if(ae==="...")return"multi";if(ae!=null&&re(ae))return"handled";if(z.fallthrough){if(Object.prototype.toString.call(z.fallthrough)!="[object Array]")return Cl(x,z.fallthrough,re,ne);for(var he=0;he<z.fallthrough.length;he++){var Pe=Cl(x,z.fallthrough[he],re,ne);if(Pe)return Pe}}}function Pl(x){var z=typeof x=="string"?x:su[x.keyCode];return z=="Ctrl"||z=="Alt"||z=="Shift"||z=="Mod"}function Tl(x,z,re){var ne=x;return z.altKey&&ne!="Alt"&&(x="Alt-"+x),(ct?z.metaKey:z.ctrlKey)&&ne!="Ctrl"&&(x="Ctrl-"+x),(ct?z.ctrlKey:z.metaKey)&&ne!="Mod"&&(x="Cmd-"+x),!re&&z.shiftKey&&ne!="Shift"&&(x="Shift-"+x),x}function lu(x,z){if(Le&&x.keyCode==34&&x.char)return!1;var re=su[x.keyCode];return re==null||x.altGraphKey?!1:(x.keyCode==3&&x.code&&(re=x.code),Tl(re,x,z))}function cl(x){return typeof x=="string"?Io[x]:x}function uu(x,z){for(var re=x.doc.sel.ranges,ne=[],ae=0;ae<re.length;ae++){for(var he=z(re[ae]);ne.length&&nn(he.from,Cn(ne).to)<=0;){var Pe=ne.pop();if(nn(Pe.from,he.from)<0){he.from=Pe.from;break}}ne.push(he)}po(x,function(){for(var Ze=ne.length-1;Ze>=0;Ze--)lo(x.doc,"",ne[Ze].from,ne[Ze].to,"+delete");qa(x)})}function dl(x,z,re){var ne=en(x.text,z+re,re);return ne<0||ne>x.text.length?null:ne}function Il(x,z,re){var ne=dl(x,z.ch,re);return ne==null?null:new Kt(z.line,ne,re<0?"after":"before")}function Nl(x,z,re,ne,ae){if(x){z.doc.direction=="rtl"&&(ae=-ae);var he=Xt(re,z.doc.direction);if(he){var Pe=ae<0?Cn(he):he[0],Ze=ae<0==(Pe.level==1),Ye=Ze?"after":"before",ht;if(Pe.level>0||z.doc.direction=="rtl"){var tn=co(z,re);ht=ae<0?re.text.length-1:0;var bn=xa(z,tn,ht).top;ht=Sn(function(wr){return xa(z,tn,wr).top==bn},ae<0==(Pe.level==1)?Pe.from:Pe.to-1,ht),Ye=="before"&&(ht=dl(re,ht,1))}else ht=ae<0?Pe.to:Pe.from;return new Kt(ne,ht,Ye)}}return new Kt(ne,ae<0?re.text.length:0,ae<0?"before":"after")}function fl(x,z,re,ne){var ae=Xt(z,x.doc.direction);if(!ae)return Il(z,re,ne);re.ch>=z.text.length?(re.ch=z.text.length,re.sticky="before"):re.ch<=0&&(re.ch=0,re.sticky="after");var he=vn(ae,re.ch,re.sticky),Pe=ae[he];if(x.doc.direction=="ltr"&&Pe.level%2==0&&(ne>0?Pe.to>re.ch:Pe.from<re.ch))return Il(z,re,ne);var Ze=function(fa,ka){return dl(z,fa instanceof Kt?fa.ch:fa,ka)},Ye,ht=function(fa){return x.options.lineWrapping?(Ye=Ye||co(x,z),bs(x,z,Ye,fa)):{begin:0,end:z.text.length}},tn=ht(re.sticky=="before"?Ze(re,-1):re.ch);if(x.doc.direction=="rtl"||Pe.level==1){var bn=Pe.level==1==ne<0,wr=Ze(re,bn?1:-1);if(wr!=null&&(bn?wr<=Pe.to&&wr<=tn.end:wr>=Pe.from&&wr>=tn.begin)){var dr=bn?"before":"after";return new Kt(re.line,wr,dr)}}var ri=function(fa,ka,qi){for(var La=function(yl,Su){return Su?new Kt(re.line,Ze(yl,1),"before"):new Kt(re.line,yl,"after")};fa>=0&&fa<ae.length;fa+=ka){var mo=ae[fa],So=ka>0==(mo.level!=1),gs=So?qi.begin:Ze(qi.end,-1);if(mo.from<=gs&&gs<mo.to||(gs=So?mo.from:Ze(mo.to,-1),qi.begin<=gs&&gs<qi.end))return La(gs,So)}},vi=ri(he+ne,ne,tn);if(vi)return vi;var zi=ne>0?tn.end:Ze(tn.begin,-1);return zi!=null&&!(ne>0&&zi==z.text.length)&&(vi=ri(ne>0?0:ae.length-1,ne,ht(zi)),vi)?vi:null}var ol={selectAll:ko,singleSelection:function(x){return x.setSelection(x.getCursor("anchor"),x.getCursor("head"),xt)},killLine:function(x){return uu(x,function(z){if(z.empty()){var re=Gn(x.doc,z.head.line).text.length;return z.head.ch==re&&z.head.line<x.lastLine()?{from:z.head,to:Kt(z.head.line+1,0)}:{from:z.head,to:Kt(z.head.line,re)}}else return{from:z.from(),to:z.to()}})},deleteLine:function(x){return uu(x,function(z){return{from:Kt(z.from().line,0),to:zr(x.doc,Kt(z.to().line+1,0))}})},delLineLeft:function(x){return uu(x,function(z){return{from:Kt(z.from().line,0),to:z.from()}})},delWrappedLineLeft:function(x){return uu(x,function(z){var re=x.charCoords(z.head,"div").top+5,ne=x.coordsChar({left:0,top:re},"div");return{from:ne,to:z.from()}})},delWrappedLineRight:function(x){return uu(x,function(z){var re=x.charCoords(z.head,"div").top+5,ne=x.coordsChar({left:x.display.lineDiv.offsetWidth+100,top:re},"div");return{from:z.from(),to:ne}})},undo:function(x){return x.undo()},redo:function(x){return x.redo()},undoSelection:function(x){return x.undoSelection()},redoSelection:function(x){return x.redoSelection()},goDocStart:function(x){return x.extendSelection(Kt(x.firstLine(),0))},goDocEnd:function(x){return x.extendSelection(Kt(x.lastLine()))},goLineStart:function(x){return x.extendSelectionsBy(function(z){return qs(x,z.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(x){return x.extendSelectionsBy(function(z){return sc(x,z.head)},{origin:"+move",bias:1})},goLineEnd:function(x){return x.extendSelectionsBy(function(z){return $u(x,z.head.line)},{origin:"+move",bias:-1})},goLineRight:function(x){return x.extendSelectionsBy(function(z){var re=x.cursorCoords(z.head,"div").top+5;return x.coordsChar({left:x.display.lineDiv.offsetWidth+100,top:re},"div")},qt)},goLineLeft:function(x){return x.extendSelectionsBy(function(z){var re=x.cursorCoords(z.head,"div").top+5;return x.coordsChar({left:0,top:re},"div")},qt)},goLineLeftSmart:function(x){return x.extendSelectionsBy(function(z){var re=x.cursorCoords(z.head,"div").top+5,ne=x.coordsChar({left:0,top:re},"div");return ne.ch<x.getLine(ne.line).search(/\S/)?sc(x,z.head):ne},qt)},goLineUp:function(x){return x.moveV(-1,"line")},goLineDown:function(x){return x.moveV(1,"line")},goPageUp:function(x){return x.moveV(-1,"page")},goPageDown:function(x){return x.moveV(1,"page")},goCharLeft:function(x){return x.moveH(-1,"char")},goCharRight:function(x){return x.moveH(1,"char")},goColumnLeft:function(x){return x.moveH(-1,"column")},goColumnRight:function(x){return x.moveH(1,"column")},goWordLeft:function(x){return x.moveH(-1,"word")},goGroupRight:function(x){return x.moveH(1,"group")},goGroupLeft:function(x){return x.moveH(-1,"group")},goWordRight:function(x){return x.moveH(1,"word")},delCharBefore:function(x){return x.deleteH(-1,"codepoint")},delCharAfter:function(x){return x.deleteH(1,"char")},delWordBefore:function(x){return x.deleteH(-1,"word")},delWordAfter:function(x){return x.deleteH(1,"word")},delGroupBefore:function(x){return x.deleteH(-1,"group")},delGroupAfter:function(x){return x.deleteH(1,"group")},indentAuto:function(x){return x.indentSelection("smart")},indentMore:function(x){return x.indentSelection("add")},indentLess:function(x){return x.indentSelection("subtract")},insertTab:function(x){return x.replaceSelection(" ")},insertSoftTab:function(x){for(var z=[],re=x.listSelections(),ne=x.options.tabSize,ae=0;ae<re.length;ae++){var he=re[ae].from(),Pe=yt(x.getLine(he.line),he.ch,ne);z.push(Yt(ne-Pe%ne))}x.replaceSelections(z)},defaultTab:function(x){x.somethingSelected()?x.indentSelection("add"):x.execCommand("insertTab")},transposeChars:function(x){return po(x,function(){for(var z=x.listSelections(),re=[],ne=0;ne<z.length;ne++)if(z[ne].empty()){var ae=z[ne].head,he=Gn(x.doc,ae.line).text;if(he){if(ae.ch==he.length&&(ae=new Kt(ae.line,ae.ch-1)),ae.ch>0)ae=new Kt(ae.line,ae.ch+1),x.replaceRange(he.charAt(ae.ch-1)+he.charAt(ae.ch-2),Kt(ae.line,ae.ch-2),ae,"+transpose");else if(ae.line>x.doc.first){var Pe=Gn(x.doc,ae.line-1).text;Pe&&(ae=new Kt(ae.line,1),x.replaceRange(he.charAt(0)+x.doc.lineSeparator()+Pe.charAt(Pe.length-1),Kt(ae.line-1,Pe.length-1),ae,"+transpose"))}}re.push(new Do(ae,ae))}x.setSelections(re)})},newlineAndIndent:function(x){return po(x,function(){for(var z=x.listSelections(),re=z.length-1;re>=0;re--)x.replaceRange(x.doc.lineSeparator(),z[re].anchor,z[re].head,"+input");z=x.listSelections();for(var ne=0;ne<z.length;ne++)x.indentLine(z[ne].from().line,null,!0);qa(x)})},openLine:function(x){return x.replaceSelection(`
`,"start")},toggleOverwrite:function(x){return x.toggleOverwrite()}};function qs(x,z){var re=Gn(x.doc,z),ne=ut(re);return ne!=re&&(z=Vr(ne)),Nl(!0,x,ne,z,1)}function $u(x,z){var re=Gn(x.doc,z),ne=mt(re);return ne!=re&&(z=Vr(ne)),Nl(!0,x,re,z,-1)}function sc(x,z){var re=qs(x,z.line),ne=Gn(x.doc,re.line),ae=Xt(ne,x.doc.direction);if(!ae||ae[0].level==0){var he=Math.max(re.ch,ne.text.search(/\S/)),Pe=z.line==re.line&&z.ch<=he&&z.ch;return Kt(re.line,Pe?0:he,re.sticky)}return re}function Vs(x,z,re){if(typeof z=="string"&&(z=ol[z],!z))return!1;x.display.input.ensurePolled();var ne=x.display.shift,ae=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),re&&(x.display.shift=!1),ae=z(x)!=In}finally{x.display.shift=ne,x.state.suppressEdits=!1}return ae}function jl(x,z,re){for(var ne=0;ne<x.state.keyMaps.length;ne++){var ae=Cl(z,x.state.keyMaps[ne],re,x);if(ae)return ae}return x.options.extraKeys&&Cl(z,x.options.extraKeys,re,x)||Cl(z,x.options.keyMap,re,x)}var Nc=new Be;function Yu(x,z,re,ne){var ae=x.state.keySeq;if(ae){if(Pl(z))return"handled";if(/\'$/.test(z)?x.state.keySeq=null:Nc.set(50,function(){x.state.keySeq==ae&&(x.state.keySeq=null,x.display.input.reset())}),Fo(x,ae+" "+z,re,ne))return!0}return Fo(x,z,re,ne)}function Fo(x,z,re,ne){var ae=jl(x,z,ne);return ae=="multi"&&(x.state.keySeq=z),ae=="handled"&&Hr(x,"keyHandled",x,z,re),(ae=="handled"||ae=="multi")&&(Rr(re),Zn(x)),!!ae}function Fa(x,z){var re=lu(z,!0);return re?z.shiftKey&&!x.state.keySeq?Yu(x,"Shift-"+re,z,function(ne){return Vs(x,ne,!0)})||Yu(x,re,z,function(ne){if(typeof ne=="string"?/^go[A-Z]/.test(ne):ne.motion)return Vs(x,ne)}):Yu(x,re,z,function(ne){return Vs(x,ne)}):!1}function Ml(x,z,re){return Yu(x,"'"+re+"'",z,function(ne){return Vs(x,ne,!0)})}var Ds=null;function Ol(x){var z=this;if(!(x.target&&x.target!=z.display.input.getField())&&(z.curOp.focus=dt(),!At(z,x))){be&&ke<11&&x.keyCode==27&&(x.returnValue=!1);var re=x.keyCode;z.display.shift=re==16||x.shiftKey;var ne=Fa(z,x);Le&&(Ds=ne?re:null,!ne&&re==88&&!un&&(ye?x.metaKey:x.ctrlKey)&&z.replaceSelection("",null,"cut")),le&&!ye&&!ne&&re==46&&x.shiftKey&&!x.ctrlKey&&document.execCommand&&document.execCommand("cut"),re==18&&!/\bCodeMirror-crosshair\b/.test(z.display.lineDiv.className)&&Wr(z)}}function Wr(x){var z=x.display.lineDiv;$t(z,"CodeMirror-crosshair");function re(ne){(ne.keyCode==18||!ne.altKey)&&(He(z,"CodeMirror-crosshair"),ir(document,"keyup",re),ir(document,"mouseover",re))}jt(document,"keyup",re),jt(document,"mouseover",re)}function pu(x){x.keyCode==16&&(this.doc.sel.shift=!1),At(this,x)}function Xu(x){var z=this;if(!(x.target&&x.target!=z.display.input.getField())&&!(la(z.display,x)||At(z,x)||x.ctrlKey&&!x.altKey||ye&&x.metaKey)){var re=x.keyCode,ne=x.charCode;if(Le&&re==Ds){Ds=null,Rr(x);return}if(!(Le&&(!x.which||x.which<10)&&Fa(z,x))){var ae=String.fromCharCode(ne==null?re:ne);ae!="\b"&&(Ml(z,x,ae)||z.display.input.onKeyPress(x))}}}var Mc=400,Yc=function(x,z,re){this.time=x,this.pos=z,this.button=re};Yc.prototype.compare=function(x,z,re){return this.time+Mc>x&&nn(z,this.pos)==0&&re==this.button};var Qu,kc;function Xc(x,z){var re=+new Date;return kc&&kc.compare(re,x,z)?(Qu=kc=null,"triple"):Qu&&Qu.compare(re,x,z)?(kc=new Yc(re,x,z),Qu=null,"double"):(Qu=new Yc(re,x,z),kc=null,"single")}function kl(x){var z=this,re=z.display;if(!(At(z,x)||re.activeTouch&&re.input.supportsTouch())){if(re.input.ensurePolled(),re.shift=x.shiftKey,la(re,x)){de||(re.scroller.draggable=!1,setTimeout(function(){return re.scroller.draggable=!0},100));return}if(!Rl(z,x)){var ne=Fl(z,x),ae=Br(x),he=ne?Xc(ne,ae):"single";window.focus(),ae==1&&z.state.selectingText&&z.state.selectingText(x),!(ne&&bu(z,ae,ne,he,x))&&(ae==1?ne?Oc(z,ne,he,x):mi(x)==re.scroller&&Rr(x):ae==2?(ne&&Mr(z.doc,ne),setTimeout(function(){return re.input.focus()},20)):ae==3&&(Se?z.display.input.onContextMenu(x):Zr(z)))}}}function bu(x,z,re,ne,ae){var he="Click";return ne=="double"?he="Double"+he:ne=="triple"&&(he="Triple"+he),he=(z==1?"Left":z==2?"Middle":"Right")+he,Yu(x,Tl(he,ae),ae,function(Pe){if(typeof Pe=="string"&&(Pe=ol[Pe]),!Pe)return!1;var Ze=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),Ze=Pe(x,re)!=In}finally{x.state.suppressEdits=!1}return Ze})}function Dc(x,z,re){var ne=x.getOption("configureMouse"),ae=ne?ne(x,z,re):{};if(ae.unit==null){var he=vt?re.shiftKey&&re.metaKey:re.altKey;ae.unit=he?"rectangle":z=="single"?"char":z=="double"?"word":"line"}return(ae.extend==null||x.doc.extend)&&(ae.extend=x.doc.extend||re.shiftKey),ae.addNew==null&&(ae.addNew=ye?re.metaKey:re.ctrlKey),ae.moveOnDrag==null&&(ae.moveOnDrag=!(ye?re.altKey:re.ctrlKey)),ae}function Oc(x,z,re,ne){be?setTimeout(Pn(nr,x),0):x.curOp.focus=dt();var ae=Dc(x,re,ne),he=x.doc.sel,Pe;x.options.dragDrop&&ki&&!x.isReadOnly()&&re=="single"&&(Pe=he.contains(z))>-1&&(nn((Pe=he.ranges[Pe]).from(),z)<0||z.xRel>0)&&(nn(Pe.to(),z)>0||z.xRel<0)?Cs(x,ne,z,ae):xo(x,ne,z,ae)}function Cs(x,z,re,ne){var ae=x.display,he=!1,Pe=jo(x,function(ht){de&&(ae.scroller.draggable=!1),x.state.draggingText=!1,ir(ae.wrapper.ownerDocument,"mouseup",Pe),ir(ae.wrapper.ownerDocument,"mousemove",Ze),ir(ae.scroller,"dragstart",Ye),ir(ae.scroller,"drop",Pe),he||(Rr(ht),ne.addNew||Mr(x.doc,re,null,null,ne.extend),de&&!nt||be&&ke==9?setTimeout(function(){ae.wrapper.ownerDocument.body.focus({preventScroll:!0}),ae.input.focus()},20):ae.input.focus())}),Ze=function(ht){he=he||Math.abs(z.clientX-ht.clientX)+Math.abs(z.clientY-ht.clientY)>=10},Ye=function(){return he=!0};de&&(ae.scroller.draggable=!0),x.state.draggingText=Pe,Pe.copy=!ne.moveOnDrag,ae.scroller.dragDrop&&ae.scroller.dragDrop(),jt(ae.wrapper.ownerDocument,"mouseup",Pe),jt(ae.wrapper.ownerDocument,"mousemove",Ze),jt(ae.scroller,"dragstart",Ye),jt(ae.scroller,"drop",Pe),Zr(x),setTimeout(function(){return ae.input.focus()},20)}function Za(x,z,re){if(re=="char")return new Do(z,z);if(re=="word")return x.findWordAt(z);if(re=="line")return new Do(Kt(z.line,0),zr(x.doc,Kt(z.line+1,0)));var ne=re(x,z);return new Do(ne.from,ne.to)}function xo(x,z,re,ne){var ae=x.display,he=x.doc;Rr(z);var Pe,Ze,Ye=he.sel,ht=Ye.ranges;if(ne.addNew&&!ne.extend?(Ze=he.sel.contains(re),Ze>-1?Pe=ht[Ze]:Pe=new Do(re,re)):(Pe=he.sel.primary(),Ze=he.sel.primIndex),ne.unit=="rectangle")ne.addNew||(Pe=new Do(re,re)),re=Fl(x,z,!0,!0),Ze=-1;else{var tn=Za(x,re,ne.unit);ne.extend?Pe=ar(Pe,tn.anchor,tn.head,ne.extend):Pe=tn}ne.addNew?Ze==-1?(Ze=ht.length,Sr(he,ll(x,ht.concat([Pe]),Ze),{scroll:!1,origin:"*mouse"})):ht.length>1&&ht[Ze].empty()&&ne.unit=="char"&&!ne.extend?(Sr(he,ll(x,ht.slice(0,Ze).concat(ht.slice(Ze+1)),0),{scroll:!1,origin:"*mouse"}),Ye=he.sel):jr(he,Ze,Pe,Mt):(Ze=0,Sr(he,new El([Pe],0),Mt),Ye=he.sel);var bn=re;function wr(qi){if(nn(bn,qi)!=0)if(bn=qi,ne.unit=="rectangle"){for(var La=[],mo=x.options.tabSize,So=yt(Gn(he,re.line).text,re.ch,mo),gs=yt(Gn(he,qi.line).text,qi.ch,mo),yl=Math.min(So,gs),Su=Math.max(So,gs),Kl=Math.min(re.line,qi.line),Hu=Math.min(x.lastLine(),Math.max(re.line,qi.line));Kl<=Hu;Kl++){var Zu=Gn(he,Kl).text,cu=an(Zu,yl,mo);yl==Su?La.push(new Do(Kt(Kl,cu),Kt(Kl,cu))):Zu.length>cu&&La.push(new Do(Kt(Kl,cu),Kt(Kl,an(Zu,Su,mo))))}La.length||La.push(new Do(re,re)),Sr(he,ll(x,Ye.ranges.slice(0,Ze).concat(La),Ze),{origin:"*mouse",scroll:!1}),x.scrollIntoView(qi)}else{var Wu=Pe,Qo=Za(x,qi,ne.unit),Yl=Wu.anchor,Hl;nn(Qo.anchor,Yl)>0?(Hl=Qo.head,Yl=mr(Wu.from(),Qo.anchor)):(Hl=Qo.anchor,Yl=Fn(Wu.to(),Qo.head));var Xl=Ye.ranges.slice(0);Xl[Ze]=ms(x,new Do(zr(he,Yl),Hl)),Sr(he,ll(x,Xl,Ze),Mt)}}var dr=ae.wrapper.getBoundingClientRect(),ri=0;function vi(qi){var La=++ri,mo=Fl(x,qi,!0,ne.unit=="rectangle");if(mo)if(nn(mo,bn)!=0){x.curOp.focus=dt(),wr(mo);var So=li(ae,he);(mo.line>=So.to||mo.line<So.from)&&setTimeout(jo(x,function(){ri==La&&vi(qi)}),150)}else{var gs=qi.clientY<dr.top?-20:qi.clientY>dr.bottom?20:0;gs&&setTimeout(jo(x,function(){ri==La&&(ae.scroller.scrollTop+=gs,vi(qi))}),50)}}function zi(qi){x.state.selectingText=!1,ri=1/0,qi&&(Rr(qi),ae.input.focus()),ir(ae.wrapper.ownerDocument,"mousemove",fa),ir(ae.wrapper.ownerDocument,"mouseup",ka),he.history.lastSelOrigin=null}var fa=jo(x,function(qi){qi.buttons===0||!Br(qi)?zi(qi):vi(qi)}),ka=jo(x,zi);x.state.selectingText=ka,jt(ae.wrapper.ownerDocument,"mousemove",fa),jt(ae.wrapper.ownerDocument,"mouseup",ka)}function ms(x,z){var re=z.anchor,ne=z.head,ae=Gn(x.doc,re.line);if(nn(re,ne)==0&&re.sticky==ne.sticky)return z;var he=Xt(ae);if(!he)return z;var Pe=vn(he,re.ch,re.sticky),Ze=he[Pe];if(Ze.from!=re.ch&&Ze.to!=re.ch)return z;var Ye=Pe+(Ze.from==re.ch==(Ze.level!=1)?0:1);if(Ye==0||Ye==he.length)return z;var ht;if(ne.line!=re.line)ht=(ne.line-re.line)*(x.doc.direction=="ltr"?1:-1)>0;else{var tn=vn(he,ne.ch,ne.sticky),bn=tn-Pe||(ne.ch-re.ch)*(Ze.level==1?-1:1);tn==Ye-1||tn==Ye?ht=bn<0:ht=bn>0}var wr=he[Ye+(ht?-1:0)],dr=ht==(wr.level==1),ri=dr?wr.from:wr.to,vi=dr?"after":"before";return re.ch==ri&&re.sticky==vi?z:new Do(new Kt(re.line,ri,vi),ne)}function js(x,z,re,ne){var ae,he;if(z.touches)ae=z.touches[0].clientX,he=z.touches[0].clientY;else try{ae=z.clientX,he=z.clientY}catch(wr){return!1}if(ae>=Math.floor(x.display.gutters.getBoundingClientRect().right))return!1;ne&&Rr(z);var Pe=x.display,Ze=Pe.lineDiv.getBoundingClientRect();if(he>Ze.bottom||!An(x,re))return Yr(z);he-=Ze.top-Pe.viewOffset;for(var Ye=0;Ye<x.display.gutterSpecs.length;++Ye){var ht=Pe.gutters.childNodes[Ye];if(ht&&ht.getBoundingClientRect().right>=ae){var tn=ai(x.doc,he),bn=x.display.gutterSpecs[Ye];return Ct(x,re,x,tn,bn.className,z),Yr(z)}}}function Rl(x,z){return js(x,z,"gutterClick",!0)}function Gl(x,z){la(x.display,z)||Ju(x,z)||At(x,z,"contextmenu")||Se||x.display.input.onContextMenu(z)}function Ju(x,z){return An(x,"gutterContextMenu")?js(x,z,"gutterContextMenu",!1):!1}function qu(x){x.display.wrapper.className=x.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+x.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ma(x)}var Ku={toString:function(){return"CodeMirror.Init"}},lc={},xu={};function od(x){var z=x.optionHandlers;function re(ne,ae,he,Pe){x.defaults[ne]=ae,he&&(z[ne]=Pe?function(Ze,Ye,ht){ht!=Ku&&he(Ze,Ye,ht)}:he)}x.defineOption=re,x.Init=Ku,re("value","",function(ne,ae){return ne.setValue(ae)},!0),re("mode",null,function(ne,ae){ne.doc.modeOption=ae,hu(ne)},!0),re("indentUnit",2,hu,!0),re("indentWithTabs",!1),re("smartIndent",!0),re("tabSize",4,function(ne){ou(ne),Ma(ne),Ce(ne)},!0),re("lineSeparator",null,function(ne,ae){if(ne.doc.lineSep=ae,!!ae){var he=[],Pe=ne.doc.first;ne.doc.iter(function(Ye){for(var ht=0;;){var tn=Ye.text.indexOf(ae,ht);if(tn==-1)break;ht=tn+ae.length,he.push(Kt(Pe,tn))}Pe++});for(var Ze=he.length-1;Ze>=0;Ze--)lo(ne.doc,ae,he[Ze],Kt(he[Ze].line,he[Ze].ch+ae.length))}}),re("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ne,ae,he){ne.state.specialChars=new RegExp(ae.source+(ae.test(" ")?"":"| "),"g"),he!=Ku&&ne.refresh()}),re("specialCharPlaceholder",Qe,function(ne){return ne.refresh()},!0),re("electricChars",!0),re("inputStyle",Xe?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),re("spellcheck",!1,function(ne,ae){return ne.getInputField().spellcheck=ae},!0),re("autocorrect",!1,function(ne,ae){return ne.getInputField().autocorrect=ae},!0),re("autocapitalize",!1,function(ne,ae){return ne.getInputField().autocapitalize=ae},!0),re("rtlMoveVisually",!Pt),re("wholeLineUpdateBefore",!0),re("theme","default",function(ne){qu(ne),ql(ne)},!0),re("keyMap","default",function(ne,ae,he){var Pe=cl(ae),Ze=he!=Ku&&cl(he);Ze&&Ze.detach&&Ze.detach(ne,Pe),Pe.attach&&Pe.attach(ne,Ze||null)}),re("extraKeys",null),re("configureMouse",null),re("lineWrapping",!1,sd,!0),re("gutters",[],function(ne,ae){ne.display.gutterSpecs=ju(ae,ne.options.lineNumbers),ql(ne)},!0),re("fixedGutter",!0,function(ne,ae){ne.display.gutters.style.left=ae?pl(ne.display)+"px":"0",ne.refresh()},!0),re("coverGutterNextToScrollbar",!1,function(ne){return is(ne)},!0),re("scrollbarStyle","native",function(ne){al(ne),is(ne),ne.display.scrollbars.setScrollTop(ne.doc.scrollTop),ne.display.scrollbars.setScrollLeft(ne.doc.scrollLeft)},!0),re("lineNumbers",!1,function(ne,ae){ne.display.gutterSpecs=ju(ne.options.gutters,ae),ql(ne)},!0),re("firstLineNumber",1,ql,!0),re("lineNumberFormatter",function(ne){return ne},ql,!0),re("showCursorWhenSelecting",!1,yn,!0),re("resetSelectionOnContextMenu",!0),re("lineWiseCopyCut",!0),re("pasteLinesPerSelection",!0),re("selectionsMayTouch",!1),re("readOnly",!1,function(ne,ae){ae=="nocursor"&&(hr(ne),ne.display.input.blur()),ne.display.input.readOnlyChanged(ae)}),re("screenReaderLabel",null,function(ne,ae){ae=ae===""?null:ae,ne.display.input.screenReaderLabelChanged(ae)}),re("disableInput",!1,function(ne,ae){ae||ne.display.input.reset()},!0),re("dragDrop",!0,vd),re("allowDropFileTypes",null),re("cursorBlinkRate",530),re("cursorScrollMargin",0),re("cursorHeight",1,yn,!0),re("singleCursorHeightPerLine",!0,yn,!0),re("workTime",100),re("workDelay",100),re("flattenSpans",!0,ou,!0),re("addModeClass",!1,ou,!0),re("pollInterval",100),re("undoDepth",200,function(ne,ae){return ne.doc.history.undoDepth=ae}),re("historyEventDelay",1250),re("viewportMargin",10,function(ne){return ne.refresh()},!0),re("maxHighlightLength",1e4,ou,!0),re("moveInputWithCursor",!0,function(ne,ae){ae||ne.display.input.resetPosition()}),re("tabindex",null,function(ne,ae){return ne.display.input.getField().tabIndex=ae||""}),re("autofocus",null),re("direction","ltr",function(ne,ae){return ne.doc.setDirection(ae)},!0),re("phrases",null)}function vd(x,z,re){var ne=re&&re!=Ku;if(!z!=!ne){var ae=x.display.dragFunctions,he=z?jt:ir;he(x.display.scroller,"dragstart",ae.start),he(x.display.scroller,"dragenter",ae.enter),he(x.display.scroller,"dragover",ae.over),he(x.display.scroller,"dragleave",ae.leave),he(x.display.scroller,"drop",ae.drop)}}function sd(x){x.options.lineWrapping?($t(x.display.wrapper,"CodeMirror-wrap"),x.display.sizer.style.minWidth="",x.display.sizerWidth=null):(He(x.display.wrapper,"CodeMirror-wrap"),mn(x)),nl(x),Ce(x),Ma(x),setTimeout(function(){return is(x)},100)}function No(x,z){var re=this;if(!(this instanceof No))return new No(x,z);this.options=z=z?$n(z):{},$n(lc,z,!1);var ne=z.value;typeof ne=="string"?ne=new Zi(ne,z.mode,null,z.lineSeparator,z.direction):z.mode&&(ne.modeOption=z.mode),this.doc=ne;var ae=new No.inputStyles[z.inputStyle](this),he=this.display=new Sl(x,ne,ae,z);he.wrapper.CodeMirror=this,qu(this),z.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),al(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Be,keySeq:null,specialChars:null},z.autofocus&&!Xe&&he.input.focus(),be&&ke<11&&setTimeout(function(){return re.display.input.reset(!0)},20),Rd(this),ku(),Qs(this),this.curOp.forceUpdate=!0,zu(this,ne),z.autofocus&&!Xe||this.hasFocus()?setTimeout(function(){re.hasFocus()&&!re.state.focused&&Ur(re)},20):hr(this);for(var Pe in xu)xu.hasOwnProperty(Pe)&&xu[Pe](this,z[Pe],Ku);iu(this),z.finishInit&&z.finishInit(this);for(var Ze=0;Ze<ld.length;++Ze)ld[Ze](this);As(this),de&&z.lineWrapping&&getComputedStyle(he.lineDiv).textRendering=="optimizelegibility"&&(he.lineDiv.style.textRendering="auto")}No.defaults=lc,No.optionHandlers=xu;function Rd(x){var z=x.display;jt(z.scroller,"mousedown",jo(x,kl)),be&&ke<11?jt(z.scroller,"dblclick",jo(x,function(Ye){if(!At(x,Ye)){var ht=Fl(x,Ye);if(!(!ht||Rl(x,Ye)||la(x.display,Ye))){Rr(Ye);var tn=x.findWordAt(ht);Mr(x.doc,tn.anchor,tn.head)}}})):jt(z.scroller,"dblclick",function(Ye){return At(x,Ye)||Rr(Ye)}),jt(z.scroller,"contextmenu",function(Ye){return Gl(x,Ye)}),jt(z.input.getField(),"contextmenu",function(Ye){z.scroller.contains(Ye.target)||Gl(x,Ye)});var re,ne={end:0};function ae(){z.activeTouch&&(re=setTimeout(function(){return z.activeTouch=null},1e3),ne=z.activeTouch,ne.end=+new Date)}function he(Ye){if(Ye.touches.length!=1)return!1;var ht=Ye.touches[0];return ht.radiusX<=1&&ht.radiusY<=1}function Pe(Ye,ht){if(ht.left==null)return!0;var tn=ht.left-Ye.left,bn=ht.top-Ye.top;return tn*tn+bn*bn>20*20}jt(z.scroller,"touchstart",function(Ye){if(!At(x,Ye)&&!he(Ye)&&!Rl(x,Ye)){z.input.ensurePolled(),clearTimeout(re);var ht=+new Date;z.activeTouch={start:ht,moved:!1,prev:ht-ne.end<=300?ne:null},Ye.touches.length==1&&(z.activeTouch.left=Ye.touches[0].pageX,z.activeTouch.top=Ye.touches[0].pageY)}}),jt(z.scroller,"touchmove",function(){z.activeTouch&&(z.activeTouch.moved=!0)}),jt(z.scroller,"touchend",function(Ye){var ht=z.activeTouch;if(ht&&!la(z,Ye)&&ht.left!=null&&!ht.moved&&new Date-ht.start<300){var tn=x.coordsChar(z.activeTouch,"page"),bn;!ht.prev||Pe(ht,ht.prev)?bn=new Do(tn,tn):!ht.prev.prev||Pe(ht,ht.prev.prev)?bn=x.findWordAt(tn):bn=new Do(Kt(tn.line,0),zr(x.doc,Kt(tn.line+1,0))),x.setSelection(bn.anchor,bn.head),x.focus(),Rr(Ye)}ae()}),jt(z.scroller,"touchcancel",ae),jt(z.scroller,"scroll",function(){z.scroller.clientHeight&&(Ta(x,z.scroller.scrollTop),ho(x,z.scroller.scrollLeft,!0),Ct(x,"scroll",x))}),jt(z.scroller,"mousewheel",function(Ye){return yu(x,Ye)}),jt(z.scroller,"DOMMouseScroll",function(Ye){return yu(x,Ye)}),jt(z.wrapper,"scroll",function(){return z.wrapper.scrollTop=z.wrapper.scrollLeft=0}),z.dragFunctions={enter:function(Ye){At(x,Ye)||Jr(Ye)},over:function(Ye){At(x,Ye)||($l(x,Ye),Jr(Ye))},start:function(Ye){return ts(x,Ye)},drop:jo(x,fs),leave:function(Ye){At(x,Ye)||wl(x)}};var Ze=z.input.getField();jt(Ze,"keyup",function(Ye){return pu.call(x,Ye)}),jt(Ze,"keydown",jo(x,Ol)),jt(Ze,"keypress",jo(x,Xu)),jt(Ze,"focus",function(Ye){return Ur(x,Ye)}),jt(Ze,"blur",function(Ye){return hr(x,Ye)})}var ld=[];No.defineInitHook=function(x){return ld.push(x)};function ec(x,z,re,ne){var ae=x.doc,he;re==null&&(re="add"),re=="smart"&&(ae.mode.indent?he=Aa(x,z).state:re="prev");var Pe=x.options.tabSize,Ze=Gn(ae,z),Ye=yt(Ze.text,null,Pe);Ze.stateAfter&&(Ze.stateAfter=null);var ht=Ze.text.match(/^\s*/)[0],tn;if(!ne&&!/\S/.test(Ze.text))tn=0,re="not";else if(re=="smart"&&(tn=ae.mode.indent(he,Ze.text.slice(ht.length),Ze.text),tn==In||tn>150)){if(!ne)return;re="prev"}re=="prev"?z>ae.first?tn=yt(Gn(ae,z-1).text,null,Pe):tn=0:re=="add"?tn=Ye+x.options.indentUnit:re=="subtract"?tn=Ye-x.options.indentUnit:typeof re=="number"&&(tn=Ye+re),tn=Math.max(0,tn);var bn="",wr=0;if(x.options.indentWithTabs)for(var dr=Math.floor(tn/Pe);dr;--dr)wr+=Pe,bn+=" ";if(wr<tn&&(bn+=Yt(tn-wr)),bn!=ht)return lo(ae,bn,Kt(z,0),Kt(z,ht.length),"+input"),Ze.stateAfter=null,!0;for(var ri=0;ri<ae.sel.ranges.length;ri++){var vi=ae.sel.ranges[ri];if(vi.head.line==z&&vi.head.ch<ht.length){var zi=Kt(z,ht.length);jr(ae,ri,new Do(zi,zi));break}}}var ic=null;function hc(x){ic=x}function Qc(x,z,re,ne,ae){var he=x.doc;x.display.shift=!1,ne||(ne=he.sel);var Pe=+new Date-200,Ze=ae=="paste"||x.state.pasteIncoming>Pe,Ye=Ut(z),ht=null;if(Ze&&ne.ranges.length>1)if(ic&&ic.text.join(`
`)==z){if(ne.ranges.length%ic.text.length==0){ht=[];for(var tn=0;tn<ic.text.length;tn++)ht.push(he.splitLines(ic.text[tn]))}}else Ye.length==ne.ranges.length&&x.options.pasteLinesPerSelection&&(ht=pr(Ye,function(fa){return[fa]}));for(var bn=x.curOp.updateInput,wr=ne.ranges.length-1;wr>=0;wr--){var dr=ne.ranges[wr],ri=dr.from(),vi=dr.to();dr.empty()&&(re&&re>0?ri=Kt(ri.line,ri.ch-re):x.state.overwrite&&!Ze?vi=Kt(vi.line,Math.min(Gn(he,vi.line).text.length,vi.ch+Cn(Ye).length)):Ze&&ic&&ic.lineWise&&ic.text.join(`
`)==Ye.join(`
`)&&(ri=vi=Kt(ri.line,0)));var zi={from:ri,to:vi,text:ht?ht[wr%ht.length]:Ye,origin:ae||(Ze?"paste":x.state.cutIncoming>Pe?"cut":"+input")};oa(x.doc,zi),Hr(x,"inputRead",x,zi)}z&&!Ze&&Jc(x,z),qa(x),x.curOp.updateInput<2&&(x.curOp.updateInput=bn),x.curOp.typing=!0,x.state.pasteIncoming=x.state.cutIncoming=-1}function ud(x,z){var re=x.clipboardData&&x.clipboardData.getData("Text");if(re)return x.preventDefault(),!z.isReadOnly()&&!z.options.disableInput&&po(z,function(){return Qc(z,re,0,null,"paste")}),!0}function Jc(x,z){if(!(!x.options.electricChars||!x.options.smartIndent))for(var re=x.doc.sel,ne=re.ranges.length-1;ne>=0;ne--){var ae=re.ranges[ne];if(!(ae.head.ch>100||ne&&re.ranges[ne-1].head.line==ae.head.line)){var he=x.getModeAt(ae.head),Pe=!1;if(he.electricChars){for(var Ze=0;Ze<he.electricChars.length;Ze++)if(z.indexOf(he.electricChars.charAt(Ze))>-1){Pe=ec(x,ae.head.line,"smart");break}}else he.electricInput&&he.electricInput.test(Gn(x.doc,ae.head.line).text.slice(0,ae.head.ch))&&(Pe=ec(x,ae.head.line,"smart"));Pe&&Hr(x,"electricInput",x,ae.head.line)}}}function Ac(x){for(var z=[],re=[],ne=0;ne<x.doc.sel.ranges.length;ne++){var ae=x.doc.sel.ranges[ne].head.line,he={anchor:Kt(ae,0),head:Kt(ae+1,0)};re.push(he),z.push(x.getRange(he.anchor,he.head))}return{text:z,ranges:re}}function Bd(x,z,re,ne){x.setAttribute("autocorrect",re?"":"off"),x.setAttribute("autocapitalize",ne?"":"off"),x.setAttribute("spellcheck",!!z)}function Ts(){var x=at("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),z=at("div",[x],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return de?x.style.width="1000px":x.setAttribute("wrap","off"),qe&&(x.style.border="1px solid black"),Bd(x),z}function rl(x){var z=x.optionHandlers,re=x.helpers={};x.prototype={constructor:x,focus:function(){window.focus(),this.display.input.focus()},setOption:function(ne,ae){var he=this.options,Pe=he[ne];he[ne]==ae&&ne!="mode"||(he[ne]=ae,z.hasOwnProperty(ne)&&jo(this,z[ne])(this,ae,Pe),Ct(this,"optionChange",this,ne))},getOption:function(ne){return this.options[ne]},getDoc:function(){return this.doc},addKeyMap:function(ne,ae){this.state.keyMaps[ae?"push":"unshift"](cl(ne))},removeKeyMap:function(ne){for(var ae=this.state.keyMaps,he=0;he<ae.length;++he)if(ae[he]==ne||ae[he].name==ne)return ae.splice(he,1),!0},addOverlay:Sa(function(ne,ae){var he=ne.token?ne:x.getMode(this.options,ne);if(he.startState)throw new Error("Overlays may not be stateful.");Xn(this.state.overlays,{mode:he,modeSpec:ne,opaque:ae&&ae.opaque,priority:ae&&ae.priority||0},function(Pe){return Pe.priority}),this.state.modeGen++,Ce(this)}),removeOverlay:Sa(function(ne){for(var ae=this.state.overlays,he=0;he<ae.length;++he){var Pe=ae[he].modeSpec;if(Pe==ne||typeof ne=="string"&&Pe.name==ne){ae.splice(he,1),this.state.modeGen++,Ce(this);return}}}),indentLine:Sa(function(ne,ae,he){typeof ae!="string"&&typeof ae!="number"&&(ae==null?ae=this.options.smartIndent?"smart":"prev":ae=ae?"add":"subtract"),ei(this.doc,ne)&&ec(this,ne,ae,he)}),indentSelection:Sa(function(ne){for(var ae=this.doc.sel.ranges,he=-1,Pe=0;Pe<ae.length;Pe++){var Ze=ae[Pe];if(Ze.empty())Ze.head.line>he&&(ec(this,Ze.head.line,ne,!0),he=Ze.head.line,Pe==this.doc.sel.primIndex&&qa(this));else{var Ye=Ze.from(),ht=Ze.to(),tn=Math.max(he,Ye.line);he=Math.min(this.lastLine(),ht.line-(ht.ch?0:1))+1;for(var bn=tn;bn<he;++bn)ec(this,bn,ne);var wr=this.doc.sel.ranges;Ye.ch==0&&ae.length==wr.length&&wr[Pe].from().ch>0&&jr(this.doc,Pe,new Do(Ye,wr[Pe].to()),xt)}}}),getTokenAt:function(ne,ae){return oo(this,ne,ae)},getLineTokens:function(ne,ae){return oo(this,Kt(ne),ae,!0)},getTokenTypeAt:function(ne){ne=zr(this.doc,ne);var ae=_a(this,Gn(this.doc,ne.line)),he=0,Pe=(ae.length-1)/2,Ze=ne.ch,Ye;if(Ze==0)Ye=ae[2];else for(;;){var ht=he+Pe>>1;if((ht?ae[ht*2-1]:0)>=Ze)Pe=ht;else if(ae[ht*2+1]<Ze)he=ht+1;else{Ye=ae[ht*2+2];break}}var tn=Ye?Ye.indexOf("overlay "):-1;return tn<0?Ye:tn==0?null:Ye.slice(0,tn-1)},getModeAt:function(ne){var ae=this.doc.mode;return ae.innerMode?x.innerMode(ae,this.getTokenAt(ne).state).mode:ae},getHelper:function(ne,ae){return this.getHelpers(ne,ae)[0]},getHelpers:function(ne,ae){var he=[];if(!re.hasOwnProperty(ae))return he;var Pe=re[ae],Ze=this.getModeAt(ne);if(typeof Ze[ae]=="string")Pe[Ze[ae]]&&he.push(Pe[Ze[ae]]);else if(Ze[ae])for(var Ye=0;Ye<Ze[ae].length;Ye++){var ht=Pe[Ze[ae][Ye]];ht&&he.push(ht)}else Ze.helperType&&Pe[Ze.helperType]?he.push(Pe[Ze.helperType]):Pe[Ze.name]&&he.push(Pe[Ze.name]);for(var tn=0;tn<Pe._global.length;tn++){var bn=Pe._global[tn];bn.pred(Ze,this)&&Rt(he,bn.val)==-1&&he.push(bn.val)}return he},getStateAfter:function(ne,ae){var he=this.doc;return ne=ur(he,ne==null?he.first+he.size-1:ne),Aa(this,ne+1,ae).state},cursorCoords:function(ne,ae){var he,Pe=this.doc.sel.primary();return ne==null?he=Pe.head:typeof ne=="object"?he=zr(this.doc,ne):he=ne?Pe.from():Pe.to(),qo(this,he,ae||"page")},charCoords:function(ne,ae){return Os(this,zr(this.doc,ne),ae||"page")},coordsChar:function(ne,ae){return ne=cs(this,ne,ae||"page"),Ws(this,ne.left,ne.top)},lineAtHeight:function(ne,ae){return ne=cs(this,{top:ne,left:0},ae||"page").top,ai(this.doc,ne+this.display.viewOffset)},heightAtLine:function(ne,ae,he){var Pe=!1,Ze;if(typeof ne=="number"){var Ye=this.doc.first+this.doc.size-1;ne<this.doc.first?ne=this.doc.first:ne>Ye&&(ne=Ye,Pe=!0),Ze=Gn(this.doc,ne)}else Ze=ne;return ss(this,Ze,{top:0,left:0},ae||"page",he||Pe).top+(Pe?this.doc.height-Tn(Ze):0)},defaultTextHeight:function(){return Rs(this.display)},defaultCharWidth:function(){return tl(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ne,ae,he,Pe,Ze){var Ye=this.display;ne=qo(this,zr(this.doc,ne));var ht=ne.bottom,tn=ne.left;if(ae.style.position="absolute",ae.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ae),Ye.sizer.appendChild(ae),Pe=="over")ht=ne.top;else if(Pe=="above"||Pe=="near"){var bn=Math.max(Ye.wrapper.clientHeight,this.doc.height),wr=Math.max(Ye.sizer.clientWidth,Ye.lineSpace.clientWidth);(Pe=="above"||ne.bottom+ae.offsetHeight>bn)&&ne.top>ae.offsetHeight?ht=ne.top-ae.offsetHeight:ne.bottom+ae.offsetHeight<=bn&&(ht=ne.bottom),tn+ae.offsetWidth>wr&&(tn=wr-ae.offsetWidth)}ae.style.top=ht+"px",ae.style.left=ae.style.right="",Ze=="right"?(tn=Ye.sizer.clientWidth-ae.offsetWidth,ae.style.right="0px"):(Ze=="left"?tn=0:Ze=="middle"&&(tn=(Ye.sizer.clientWidth-ae.offsetWidth)/2),ae.style.left=tn+"px"),he&&ta(this,{left:tn,top:ht,right:tn+ae.offsetWidth,bottom:ht+ae.offsetHeight})},triggerOnKeyDown:Sa(Ol),triggerOnKeyPress:Sa(Xu),triggerOnKeyUp:pu,triggerOnMouseDown:Sa(kl),execCommand:function(ne){if(ol.hasOwnProperty(ne))return ol[ne].call(null,this)},triggerElectric:Sa(function(ne){Jc(this,ne)}),findPosH:function(ne,ae,he,Pe){var Ze=1;ae<0&&(Ze=-1,ae=-ae);for(var Ye=zr(this.doc,ne),ht=0;ht<ae&&(Ye=Iu(this.doc,Ye,Ze,he,Pe),!Ye.hitSide);++ht);return Ye},moveH:Sa(function(ne,ae){var he=this;this.extendSelectionsBy(function(Pe){return he.display.shift||he.doc.extend||Pe.empty()?Iu(he.doc,Pe.head,ne,ae,he.options.rtlMoveVisually):ne<0?Pe.from():Pe.to()},qt)}),deleteH:Sa(function(ne,ae){var he=this.doc.sel,Pe=this.doc;he.somethingSelected()?Pe.replaceSelection("",null,"+delete"):uu(this,function(Ze){var Ye=Iu(Pe,Ze.head,ne,ae,!1);return ne<0?{from:Ye,to:Ze.head}:{from:Ze.head,to:Ye}})}),findPosV:function(ne,ae,he,Pe){var Ze=1,Ye=Pe;ae<0&&(Ze=-1,ae=-ae);for(var ht=zr(this.doc,ne),tn=0;tn<ae;++tn){var bn=qo(this,ht,"div");if(Ye==null?Ye=bn.left:bn.left=Ye,ht=pc(this,bn,Ze,he),ht.hitSide)break}return ht},moveV:Sa(function(ne,ae){var he=this,Pe=this.doc,Ze=[],Ye=!this.display.shift&&!Pe.extend&&Pe.sel.somethingSelected();if(Pe.extendSelectionsBy(function(tn){if(Ye)return ne<0?tn.from():tn.to();var bn=qo(he,tn.head,"div");tn.goalColumn!=null&&(bn.left=tn.goalColumn),Ze.push(bn.left);var wr=pc(he,bn,ne,ae);return ae=="page"&&tn==Pe.sel.primary()&&Ci(he,Os(he,wr,"div").top-bn.top),wr},qt),Ze.length)for(var ht=0;ht<Pe.sel.ranges.length;ht++)Pe.sel.ranges[ht].goalColumn=Ze[ht]}),findWordAt:function(ne){var ae=this.doc,he=Gn(ae,ne.line).text,Pe=ne.ch,Ze=ne.ch;if(he){var Ye=this.getHelper(ne,"wordChars");(ne.sticky=="before"||Ze==he.length)&&Pe?--Pe:++Ze;for(var ht=he.charAt(Pe),tn=ge(ht,Ye)?function(bn){return ge(bn,Ye)}:/\s/.test(ht)?function(bn){return/\s/.test(bn)}:function(bn){return!/\s/.test(bn)&&!ge(bn)};Pe>0&&tn(he.charAt(Pe-1));)--Pe;for(;Ze<he.length&&tn(he.charAt(Ze));)++Ze}return new Do(Kt(ne.line,Pe),Kt(ne.line,Ze))},toggleOverwrite:function(ne){ne!=null&&ne==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?$t(this.display.cursorDiv,"CodeMirror-overwrite"):He(this.display.cursorDiv,"CodeMirror-overwrite"),Ct(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==dt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Sa(function(ne,ae){Ha(this,ne,ae)}),getScrollInfo:function(){var ne=this.display.scroller;return{left:ne.scrollLeft,top:ne.scrollTop,height:ne.scrollHeight-Qi(this)-this.display.barHeight,width:ne.scrollWidth-Qi(this)-this.display.barWidth,clientHeight:Ea(this),clientWidth:Bi(this)}},scrollIntoView:Sa(function(ne,ae){ne==null?(ne={from:this.doc.sel.primary().head,to:null},ae==null&&(ae=this.options.cursorScrollMargin)):typeof ne=="number"?ne={from:Kt(ne,0),to:null}:ne.from==null&&(ne={from:ne,to:null}),ne.to||(ne.to=ne.from),ne.margin=ae||0,ne.from.line!=null?so(this,ne):io(this,ne.from,ne.to,ne.margin)}),setSize:Sa(function(ne,ae){var he=this,Pe=function(Ye){return typeof Ye=="number"||/^\d+$/.test(String(Ye))?Ye+"px":Ye};ne!=null&&(this.display.wrapper.style.width=Pe(ne)),ae!=null&&(this.display.wrapper.style.height=Pe(ae)),this.options.lineWrapping&&bo(this);var Ze=this.display.viewFrom;this.doc.iter(Ze,this.display.viewTo,function(Ye){if(Ye.widgets){for(var ht=0;ht<Ye.widgets.length;ht++)if(Ye.widgets[ht].noHScroll){Oe(he,Ze,"widget");break}}++Ze}),this.curOp.forceUpdate=!0,Ct(this,"refresh",this)}),operation:function(ne){return po(this,ne)},startOperation:function(){return Qs(this)},endOperation:function(){return As(this)},refresh:Sa(function(){var ne=this.display.cachedTextHeight;Ce(this),this.curOp.forceUpdate=!0,Ma(this),Ha(this,this.doc.scrollLeft,this.doc.scrollTop),Vu(this.display),(ne==null||Math.abs(ne-Rs(this.display))>.5||this.options.lineWrapping)&&nl(this),Ct(this,"refresh",this)}),swapDoc:Sa(function(ne){var ae=this.doc;return ae.cm=null,this.state.selectingText&&this.state.selectingText(),zu(this,ne),Ma(this),this.display.input.reset(),Ha(this,ne.scrollLeft,ne.scrollTop),this.curOp.forceScroll=!0,Hr(this,"swapDoc",this,ae),ae}),phrase:function(ne){var ae=this.options.phrases;return ae&&Object.prototype.hasOwnProperty.call(ae,ne)?ae[ne]:ne},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},fr(x),x.registerHelper=function(ne,ae,he){re.hasOwnProperty(ne)||(re[ne]=x[ne]={_global:[]}),re[ne][ae]=he},x.registerGlobalHelper=function(ne,ae,he,Pe){x.registerHelper(ne,ae,Pe),re[ne]._global.push({pred:he,val:Pe})}}function Iu(x,z,re,ne,ae){var he=z,Pe=re,Ze=Gn(x,z.line),Ye=ae&&x.direction=="rtl"?-re:re;function ht(){var ka=z.line+Ye;return ka<x.first||ka>=x.first+x.size?!1:(z=new Kt(ka,z.ch,z.sticky),Ze=Gn(x,ka))}function tn(ka){var qi;if(ne=="codepoint"){var La=Ze.text.charCodeAt(z.ch+(ne>0?0:-1));isNaN(La)?qi=null:qi=new Kt(z.line,Math.max(0,Math.min(Ze.text.length,z.ch+re*(La>=55296&&La<56320?2:1))),-re)}else ae?qi=fl(x.cm,Ze,z,re):qi=Il(Ze,z,re);if(qi==null)if(!ka&&ht())z=Nl(ae,x.cm,Ze,z.line,Ye);else return!1;else z=qi;return!0}if(ne=="char"||ne=="codepoint")tn();else if(ne=="column")tn(!0);else if(ne=="word"||ne=="group")for(var bn=null,wr=ne=="group",dr=x.cm&&x.cm.getHelper(z,"wordChars"),ri=!0;!(re<0&&!tn(!ri));ri=!1){var vi=Ze.text.charAt(z.ch)||`
`,zi=ge(vi,dr)?"w":wr&&vi==`
`?"n":!wr||/\s/.test(vi)?null:"p";if(wr&&!ri&&!zi&&(zi="s"),bn&&bn!=zi){re<0&&(re=1,tn(),z.sticky="after");break}if(zi&&(bn=zi),re>0&&!tn(!ri))break}var fa=ma(x,z,he,Pe,!0);return sr(he,fa)&&(fa.hitSide=!0),fa}function pc(x,z,re,ne){var ae=x.doc,he=z.left,Pe;if(ne=="page"){var Ze=Math.min(x.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Ye=Math.max(Ze-.5*Rs(x.display),3);Pe=(re>0?z.bottom:z.top)+re*Ye}else ne=="line"&&(Pe=re>0?z.bottom+3:z.top-3);for(var ht;ht=Ws(x,he,Pe),!!ht.outside;){if(re<0?Pe<=0:Pe>=ae.height){ht.hitSide=!0;break}Pe+=re*5}return ht}var Is=function(x){this.cm=x,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Be,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Is.prototype.init=function(x){var z=this,re=this,ne=re.cm,ae=re.div=x.lineDiv;Bd(ae,ne.options.spellcheck,ne.options.autocorrect,ne.options.autocapitalize);function he(Ze){for(var Ye=Ze.target;Ye;Ye=Ye.parentNode){if(Ye==ae)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Ye.className))break}return!1}jt(ae,"paste",function(Ze){!he(Ze)||At(ne,Ze)||ud(Ze,ne)||ke<=11&&setTimeout(jo(ne,function(){return z.updateFromDOM()}),20)}),jt(ae,"compositionstart",function(Ze){z.composing={data:Ze.data,done:!1}}),jt(ae,"compositionupdate",function(Ze){z.composing||(z.composing={data:Ze.data,done:!1})}),jt(ae,"compositionend",function(Ze){z.composing&&(Ze.data!=z.composing.data&&z.readFromDOMSoon(),z.composing.done=!0)}),jt(ae,"touchstart",function(){return re.forceCompositionEnd()}),jt(ae,"input",function(){z.composing||z.readFromDOMSoon()});function Pe(Ze){if(!(!he(Ze)||At(ne,Ze))){if(ne.somethingSelected())hc({lineWise:!1,text:ne.getSelections()}),Ze.type=="cut"&&ne.replaceSelection("",null,"cut");else if(ne.options.lineWiseCopyCut){var Ye=Ac(ne);hc({lineWise:!0,text:Ye.text}),Ze.type=="cut"&&ne.operation(function(){ne.setSelections(Ye.ranges,0,xt),ne.replaceSelection("",null,"cut")})}else return;if(Ze.clipboardData){Ze.clipboardData.clearData();var ht=ic.text.join(`
`);if(Ze.clipboardData.setData("Text",ht),Ze.clipboardData.getData("Text")==ht){Ze.preventDefault();return}}var tn=Ts(),bn=tn.firstChild;ne.display.lineSpace.insertBefore(tn,ne.display.lineSpace.firstChild),bn.value=ic.text.join(`
`);var wr=document.activeElement;Ot(bn),setTimeout(function(){ne.display.lineSpace.removeChild(tn),wr.focus(),wr==ae&&re.showPrimarySelection()},50)}}jt(ae,"copy",Pe),jt(ae,"cut",Pe)},Is.prototype.screenReaderLabelChanged=function(x){x?this.div.setAttribute("aria-label",x):this.div.removeAttribute("aria-label")},Is.prototype.prepareSelection=function(){var x=vr(this.cm,!1);return x.focus=document.activeElement==this.div,x},Is.prototype.showSelection=function(x,z){!x||!this.cm.display.view.length||((x.focus||z)&&this.showPrimarySelection(),this.showMultipleSelections(x))},Is.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Is.prototype.showPrimarySelection=function(){var x=this.getSelection(),z=this.cm,re=z.doc.sel.primary(),ne=re.from(),ae=re.to();if(z.display.viewTo==z.display.viewFrom||ne.line>=z.display.viewTo||ae.line<z.display.viewFrom){x.removeAllRanges();return}var he=Rc(z,x.anchorNode,x.anchorOffset),Pe=Rc(z,x.focusNode,x.focusOffset);if(!(he&&!he.bad&&Pe&&!Pe.bad&&nn(mr(he,Pe),ne)==0&&nn(Fn(he,Pe),ae)==0)){var Ze=z.display.view,Ye=ne.line>=z.display.viewFrom&&yd(z,ne)||{node:Ze[0].measure.map[2],offset:0},ht=ae.line<z.display.viewTo&&yd(z,ae);if(!ht){var tn=Ze[Ze.length-1].measure,bn=tn.maps?tn.maps[tn.maps.length-1]:tn.map;ht={node:bn[bn.length-1],offset:bn[bn.length-2]-bn[bn.length-3]}}if(!Ye||!ht){x.removeAllRanges();return}var wr=x.rangeCount&&x.getRangeAt(0),dr;try{dr=Ae(Ye.node,Ye.offset,ht.offset,ht.node)}catch(ri){}dr&&(!le&&z.state.focused?(x.collapse(Ye.node,Ye.offset),dr.collapsed||(x.removeAllRanges(),x.addRange(dr))):(x.removeAllRanges(),x.addRange(dr)),wr&&x.anchorNode==null?x.addRange(wr):le&&this.startGracePeriod()),this.rememberSelection()}},Is.prototype.startGracePeriod=function(){var x=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){x.gracePeriod=!1,x.selectionChanged()&&x.cm.operation(function(){return x.cm.curOp.selectionChanged=!0})},20)},Is.prototype.showMultipleSelections=function(x){it(this.cm.display.cursorDiv,x.cursors),it(this.cm.display.selectionDiv,x.selection)},Is.prototype.rememberSelection=function(){var x=this.getSelection();this.lastAnchorNode=x.anchorNode,this.lastAnchorOffset=x.anchorOffset,this.lastFocusNode=x.focusNode,this.lastFocusOffset=x.focusOffset},Is.prototype.selectionInEditor=function(){var x=this.getSelection();if(!x.rangeCount)return!1;var z=x.getRangeAt(0).commonAncestorContainer;return wt(this.div,z)},Is.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Is.prototype.blur=function(){this.div.blur()},Is.prototype.getField=function(){return this.div},Is.prototype.supportsTouch=function(){return!0},Is.prototype.receivedFocus=function(){var x=this;this.selectionInEditor()?this.pollSelection():po(this.cm,function(){return x.cm.curOp.selectionChanged=!0});function z(){x.cm.state.focused&&(x.pollSelection(),x.polling.set(x.cm.options.pollInterval,z))}this.polling.set(this.cm.options.pollInterval,z)},Is.prototype.selectionChanged=function(){var x=this.getSelection();return x.anchorNode!=this.lastAnchorNode||x.anchorOffset!=this.lastAnchorOffset||x.focusNode!=this.lastFocusNode||x.focusOffset!=this.lastFocusOffset},Is.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var x=this.getSelection(),z=this.cm;if(lt&&pe&&this.cm.display.gutterSpecs.length&&bd(x.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var re=Rc(z,x.anchorNode,x.anchorOffset),ne=Rc(z,x.focusNode,x.focusOffset);re&&ne&&po(z,function(){Sr(z.doc,Ul(re,ne),xt),(re.bad||ne.bad)&&(z.curOp.selectionChanged=!0)})}}},Is.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var x=this.cm,z=x.display,re=x.doc.sel.primary(),ne=re.from(),ae=re.to();if(ne.ch==0&&ne.line>x.firstLine()&&(ne=Kt(ne.line-1,Gn(x.doc,ne.line-1).length)),ae.ch==Gn(x.doc,ae.line).text.length&&ae.line<x.lastLine()&&(ae=Kt(ae.line+1,0)),ne.line<z.viewFrom||ae.line>z.viewTo-1)return!1;var he,Pe,Ze;ne.line==z.viewFrom||(he=To(x,ne.line))==0?(Pe=Vr(z.view[0].line),Ze=z.view[0].node):(Pe=Vr(z.view[he].line),Ze=z.view[he-1].node.nextSibling);var Ye=To(x,ae.line),ht,tn;if(Ye==z.view.length-1?(ht=z.viewTo-1,tn=z.lineDiv.lastChild):(ht=Vr(z.view[Ye+1].line)-1,tn=z.view[Ye+1].node.previousSibling),!Ze)return!1;for(var bn=x.doc.splitLines(xd(x,Ze,tn,Pe,ht)),wr=br(x.doc,Kt(Pe,0),Kt(ht,Gn(x.doc,ht).text.length));bn.length>1&&wr.length>1;)if(Cn(bn)==Cn(wr))bn.pop(),wr.pop(),ht--;else if(bn[0]==wr[0])bn.shift(),wr.shift(),Pe++;else break;for(var dr=0,ri=0,vi=bn[0],zi=wr[0],fa=Math.min(vi.length,zi.length);dr<fa&&vi.charCodeAt(dr)==zi.charCodeAt(dr);)++dr;for(var ka=Cn(bn),qi=Cn(wr),La=Math.min(ka.length-(bn.length==1?dr:0),qi.length-(wr.length==1?dr:0));ri<La&&ka.charCodeAt(ka.length-ri-1)==qi.charCodeAt(qi.length-ri-1);)++ri;if(bn.length==1&&wr.length==1&&Pe==ne.line)for(;dr&&dr>ne.ch&&ka.charCodeAt(ka.length-ri-1)==qi.charCodeAt(qi.length-ri-1);)dr--,ri++;bn[bn.length-1]=ka.slice(0,ka.length-ri).replace(/^\u200b+/,""),bn[0]=bn[0].slice(dr).replace(/\u200b+$/,"");var mo=Kt(Pe,dr),So=Kt(ht,wr.length?Cn(wr).length-ri:0);if(bn.length>1||bn[0]||nn(mo,So))return lo(x.doc,bn,mo,So,"+input"),!0},Is.prototype.ensurePolled=function(){this.forceCompositionEnd()},Is.prototype.reset=function(){this.forceCompositionEnd()},Is.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Is.prototype.readFromDOMSoon=function(){var x=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(x.readDOMTimeout=null,x.composing)if(x.composing.done)x.composing=null;else return;x.updateFromDOM()},80))},Is.prototype.updateFromDOM=function(){var x=this;(this.cm.isReadOnly()||!this.pollContent())&&po(this.cm,function(){return Ce(x.cm)})},Is.prototype.setUneditable=function(x){x.contentEditable="false"},Is.prototype.onKeyPress=function(x){x.charCode==0||this.composing||(x.preventDefault(),this.cm.isReadOnly()||jo(this.cm,Qc)(this.cm,String.fromCharCode(x.charCode==null?x.keyCode:x.charCode),0))},Is.prototype.readOnlyChanged=function(x){this.div.contentEditable=String(x!="nocursor")},Is.prototype.onContextMenu=function(){},Is.prototype.resetPosition=function(){},Is.prototype.needsContentAttribute=!0;function yd(x,z){var re=Po(x,z.line);if(!re||re.hidden)return null;var ne=Gn(x.doc,z.line),ae=Jo(re,ne,z.line),he=Xt(ne,x.doc.direction),Pe="left";if(he){var Ze=vn(he,z.ch);Pe=Ze%2?"right":"left"}var Ye=Ka(ae.map,z.ch,Pe);return Ye.offset=Ye.collapse=="right"?Ye.end:Ye.start,Ye}function bd(x){for(var z=x;z;z=z.parentNode)if(/CodeMirror-gutter-wrapper/.test(z.className))return!0;return!1}function bc(x,z){return z&&(x.bad=!0),x}function xd(x,z,re,ne,ae){var he="",Pe=!1,Ze=x.doc.lineSeparator(),Ye=!1;function ht(dr){return function(ri){return ri.id==dr}}function tn(){Pe&&(he+=Ze,Ye&&(he+=Ze),Pe=Ye=!1)}function bn(dr){dr&&(tn(),he+=dr)}function wr(dr){if(dr.nodeType==1){var ri=dr.getAttribute("cm-text");if(ri){bn(ri);return}var vi=dr.getAttribute("cm-marker"),zi;if(vi){var fa=x.findMarks(Kt(ne,0),Kt(ae+1,0),ht(+vi));fa.length&&(zi=fa[0].find(0))&&bn(br(x.doc,zi.from,zi.to).join(Ze));return}if(dr.getAttribute("contenteditable")=="false")return;var ka=/^(pre|div|p|li|table|br)$/i.test(dr.nodeName);if(!/^br$/i.test(dr.nodeName)&&dr.textContent.length==0)return;ka&&tn();for(var qi=0;qi<dr.childNodes.length;qi++)wr(dr.childNodes[qi]);/^(pre|p)$/i.test(dr.nodeName)&&(Ye=!0),ka&&(Pe=!0)}else dr.nodeType==3&&bn(dr.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;wr(z),z!=re;)z=z.nextSibling,Ye=!1;return he}function Rc(x,z,re){var ne;if(z==x.display.lineDiv){if(ne=x.display.lineDiv.childNodes[re],!ne)return bc(x.clipPos(Kt(x.display.viewTo-1)),!0);z=null,re=0}else for(ne=z;;ne=ne.parentNode){if(!ne||ne==x.display.lineDiv)return null;if(ne.parentNode&&ne.parentNode==x.display.lineDiv)break}for(var ae=0;ae<x.display.view.length;ae++){var he=x.display.view[ae];if(he.node==ne)return dh(he,z,re)}}function dh(x,z,re){var ne=x.text.firstChild,ae=!1;if(!z||!wt(ne,z))return bc(Kt(Vr(x.line),0),!0);if(z==ne&&(ae=!0,z=ne.childNodes[re],re=0,!z)){var he=x.rest?Cn(x.rest):x.line;return bc(Kt(Vr(he),he.text.length),ae)}var Pe=z.nodeType==3?z:null,Ze=z;for(!Pe&&z.childNodes.length==1&&z.firstChild.nodeType==3&&(Pe=z.firstChild,re&&(re=Pe.nodeValue.length));Ze.parentNode!=ne;)Ze=Ze.parentNode;var Ye=x.measure,ht=Ye.maps;function tn(zi,fa,ka){for(var qi=-1;qi<(ht?ht.length:0);qi++)for(var La=qi<0?Ye.map:ht[qi],mo=0;mo<La.length;mo+=3){var So=La[mo+2];if(So==zi||So==fa){var gs=Vr(qi<0?x.line:x.rest[qi]),yl=La[mo]+ka;return(ka<0||So!=zi)&&(yl=La[mo+(ka?1:0)]),Kt(gs,yl)}}}var bn=tn(Pe,Ze,re);if(bn)return bc(bn,ae);for(var wr=Ze.nextSibling,dr=Pe?Pe.nodeValue.length-re:0;wr;wr=wr.nextSibling){if(bn=tn(wr,wr.firstChild,0),bn)return bc(Kt(bn.line,bn.ch-dr),ae);dr+=wr.textContent.length}for(var ri=Ze.previousSibling,vi=re;ri;ri=ri.previousSibling){if(bn=tn(ri,ri.firstChild,-1),bn)return bc(Kt(bn.line,bn.ch+vi),ae);vi+=ri.textContent.length}}var vl=function(x){this.cm=x,this.prevInput="",this.pollingFast=!1,this.polling=new Be,this.hasSelection=!1,this.composing=null};vl.prototype.init=function(x){var z=this,re=this,ne=this.cm;this.createField(x);var ae=this.textarea;x.wrapper.insertBefore(this.wrapper,x.wrapper.firstChild),qe&&(ae.style.width="0px"),jt(ae,"input",function(){be&&ke>=9&&z.hasSelection&&(z.hasSelection=null),re.poll()}),jt(ae,"paste",function(Pe){At(ne,Pe)||ud(Pe,ne)||(ne.state.pasteIncoming=+new Date,re.fastPoll())});function he(Pe){if(!At(ne,Pe)){if(ne.somethingSelected())hc({lineWise:!1,text:ne.getSelections()});else if(ne.options.lineWiseCopyCut){var Ze=Ac(ne);hc({lineWise:!0,text:Ze.text}),Pe.type=="cut"?ne.setSelections(Ze.ranges,null,xt):(re.prevInput="",ae.value=Ze.text.join(`
`),Ot(ae))}else return;Pe.type=="cut"&&(ne.state.cutIncoming=+new Date)}}jt(ae,"cut",he),jt(ae,"copy",he),jt(x.scroller,"paste",function(Pe){if(!(la(x,Pe)||At(ne,Pe))){if(!ae.dispatchEvent){ne.state.pasteIncoming=+new Date,re.focus();return}var Ze=new Event("paste");Ze.clipboardData=Pe.clipboardData,ae.dispatchEvent(Ze)}}),jt(x.lineSpace,"selectstart",function(Pe){la(x,Pe)||Rr(Pe)}),jt(ae,"compositionstart",function(){var Pe=ne.getCursor("from");re.composing&&re.composing.range.clear(),re.composing={start:Pe,range:ne.markText(Pe,ne.getCursor("to"),{className:"CodeMirror-composing"})}}),jt(ae,"compositionend",function(){re.composing&&(re.poll(),re.composing.range.clear(),re.composing=null)})},vl.prototype.createField=function(x){this.wrapper=Ts(),this.textarea=this.wrapper.firstChild},vl.prototype.screenReaderLabelChanged=function(x){x?this.textarea.setAttribute("aria-label",x):this.textarea.removeAttribute("aria-label")},vl.prototype.prepareSelection=function(){var x=this.cm,z=x.display,re=x.doc,ne=vr(x);if(x.options.moveInputWithCursor){var ae=qo(x,re.sel.primary().head,"div"),he=z.wrapper.getBoundingClientRect(),Pe=z.lineDiv.getBoundingClientRect();ne.teTop=Math.max(0,Math.min(z.wrapper.clientHeight-10,ae.top+Pe.top-he.top)),ne.teLeft=Math.max(0,Math.min(z.wrapper.clientWidth-10,ae.left+Pe.left-he.left))}return ne},vl.prototype.showSelection=function(x){var z=this.cm,re=z.display;it(re.cursorDiv,x.cursors),it(re.selectionDiv,x.selection),x.teTop!=null&&(this.wrapper.style.top=x.teTop+"px",this.wrapper.style.left=x.teLeft+"px")},vl.prototype.reset=function(x){if(!(this.contextMenuPending||this.composing)){var z=this.cm;if(z.somethingSelected()){this.prevInput="";var re=z.getSelection();this.textarea.value=re,z.state.focused&&Ot(this.textarea),be&&ke>=9&&(this.hasSelection=re)}else x||(this.prevInput=this.textarea.value="",be&&ke>=9&&(this.hasSelection=null))}},vl.prototype.getField=function(){return this.textarea},vl.prototype.supportsTouch=function(){return!1},vl.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Xe||dt()!=this.textarea))try{this.textarea.focus()}catch(x){}},vl.prototype.blur=function(){this.textarea.blur()},vl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},vl.prototype.receivedFocus=function(){this.slowPoll()},vl.prototype.slowPoll=function(){var x=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){x.poll(),x.cm.state.focused&&x.slowPoll()})},vl.prototype.fastPoll=function(){var x=!1,z=this;z.pollingFast=!0;function re(){var ne=z.poll();!ne&&!x?(x=!0,z.polling.set(60,re)):(z.pollingFast=!1,z.slowPoll())}z.polling.set(20,re)},vl.prototype.poll=function(){var x=this,z=this.cm,re=this.textarea,ne=this.prevInput;if(this.contextMenuPending||!z.state.focused||Qt(re)&&!ne&&!this.composing||z.isReadOnly()||z.options.disableInput||z.state.keySeq)return!1;var ae=re.value;if(ae==ne&&!z.somethingSelected())return!1;if(be&&ke>=9&&this.hasSelection===ae||ye&&/[\uf700-\uf7ff]/.test(ae))return z.display.input.reset(),!1;if(z.doc.sel==z.display.selForContextMenu){var he=ae.charCodeAt(0);if(he==8203&&!ne&&(ne="\u200B"),he==8666)return this.reset(),this.cm.execCommand("undo")}for(var Pe=0,Ze=Math.min(ne.length,ae.length);Pe<Ze&&ne.charCodeAt(Pe)==ae.charCodeAt(Pe);)++Pe;return po(z,function(){Qc(z,ae.slice(Pe),ne.length-Pe,null,x.composing?"*compose":null),ae.length>1e3||ae.indexOf(`
`)>-1?re.value=x.prevInput="":x.prevInput=ae,x.composing&&(x.composing.range.clear(),x.composing.range=z.markText(x.composing.start,z.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},vl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},vl.prototype.onKeyPress=function(){be&&ke>=9&&(this.hasSelection=null),this.fastPoll()},vl.prototype.onContextMenu=function(x){var z=this,re=z.cm,ne=re.display,ae=z.textarea;z.contextMenuPending&&z.contextMenuPending();var he=Fl(re,x),Pe=ne.scroller.scrollTop;if(!he||Le)return;var Ze=re.options.resetSelectionOnContextMenu;Ze&&re.doc.sel.contains(he)==-1&&jo(re,Sr)(re.doc,Ul(he),xt);var Ye=ae.style.cssText,ht=z.wrapper.style.cssText,tn=z.wrapper.offsetParent.getBoundingClientRect();z.wrapper.style.cssText="position: static",ae.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(x.clientY-tn.top-5)+"px; left: "+(x.clientX-tn.left-5)+`px;
z-index: 1000; background: `+(be?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var bn;de&&(bn=window.scrollY),ne.input.focus(),de&&window.scrollTo(null,bn),ne.input.reset(),re.somethingSelected()||(ae.value=z.prevInput=" "),z.contextMenuPending=dr,ne.selForContextMenu=re.doc.sel,clearTimeout(ne.detectingSelectAll);function wr(){if(ae.selectionStart!=null){var vi=re.somethingSelected(),zi="\u200B"+(vi?ae.value:"");ae.value="\u21DA",ae.value=zi,z.prevInput=vi?"":"\u200B",ae.selectionStart=1,ae.selectionEnd=zi.length,ne.selForContextMenu=re.doc.sel}}function dr(){if(z.contextMenuPending==dr&&(z.contextMenuPending=!1,z.wrapper.style.cssText=ht,ae.style.cssText=Ye,be&&ke<9&&ne.scrollbars.setScrollTop(ne.scroller.scrollTop=Pe),ae.selectionStart!=null)){(!be||be&&ke<9)&&wr();var vi=0,zi=function(){ne.selForContextMenu==re.doc.sel&&ae.selectionStart==0&&ae.selectionEnd>0&&z.prevInput=="\u200B"?jo(re,ko)(re):vi++<10?ne.detectingSelectAll=setTimeout(zi,500):(ne.selForContextMenu=null,ne.input.reset())};ne.detectingSelectAll=setTimeout(zi,200)}}if(be&&ke>=9&&wr(),Se){Jr(x);var ri=function(){ir(window,"mouseup",ri),setTimeout(dr,20)};jt(window,"mouseup",ri)}else setTimeout(dr,50)},vl.prototype.readOnlyChanged=function(x){x||this.reset(),this.textarea.disabled=x=="nocursor",this.textarea.readOnly=!!x},vl.prototype.setUneditable=function(){},vl.prototype.needsContentAttribute=!1;function qc(x,z){if(z=z?$n(z):{},z.value=x.value,!z.tabindex&&x.tabIndex&&(z.tabindex=x.tabIndex),!z.placeholder&&x.placeholder&&(z.placeholder=x.placeholder),z.autofocus==null){var re=dt();z.autofocus=re==x||x.getAttribute("autofocus")!=null&&re==document.body}function ne(){x.value=Ze.getValue()}var ae;if(x.form&&(jt(x.form,"submit",ne),!z.leaveSubmitMethodAlone)){var he=x.form;ae=he.submit;try{var Pe=he.submit=function(){ne(),he.submit=ae,he.submit(),he.submit=Pe}}catch(Ye){}}z.finishInit=function(Ye){Ye.save=ne,Ye.getTextArea=function(){return x},Ye.toTextArea=function(){Ye.toTextArea=isNaN,ne(),x.parentNode.removeChild(Ye.getWrapperElement()),x.style.display="",x.form&&(ir(x.form,"submit",ne),!z.leaveSubmitMethodAlone&&typeof x.form.submit=="function"&&(x.form.submit=ae))}},x.style.display="none";var Ze=No(function(Ye){return x.parentNode.insertBefore(Ye,x.nextSibling)},z);return Ze}function cd(x){x.off=ir,x.on=jt,x.wheelEventPixels=vu,x.Doc=Zi,x.splitLines=Ut,x.countColumn=yt,x.findColumn=an,x.isWordChar=xe,x.Pass=In,x.signal=Ct,x.Line=Jn,x.changeEnd=Js,x.scrollbarModel=Ms,x.Pos=Kt,x.cmpPos=nn,x.modes=qn,x.mimeModes=Lr,x.resolveMode=_t,x.getMode=zt,x.modeExtensions=wn,x.extendMode=ft,x.copyState=Ht,x.startState=En,x.innerMode=xn,x.commands=ol,x.keyMap=Io,x.keyName=lu,x.isModifierKey=Pl,x.lookupKey=Cl,x.normalizeKeyMap=Yo,x.StringStream=Hn,x.SharedTextMarker=vo,x.TextMarker=Ps,x.LineWidget=_s,x.e_preventDefault=Rr,x.e_stopPropagation=ii,x.e_stop=Jr,x.addClass=$t,x.contains=wt,x.rmClass=He,x.keyNames=su}od(No),rl(No);var Lc="iter insert remove copy getEditor constructor".split(" ");for(var uc in Zi.prototype)Zi.prototype.hasOwnProperty(uc)&&Rt(Lc,uc)<0&&(No.prototype[uc]=function(x){return function(){return x.apply(this.doc,arguments)}}(Zi.prototype[uc]));return fr(Zi),No.inputStyles={textarea:vl,contenteditable:Is},No.defineMode=function(x){!No.defaults.mode&&x!="null"&&(No.defaults.mode=x),or.apply(this,arguments)},No.defineMIME=Et,No.defineMode("null",function(){return{token:function(x){return x.skipToEnd()}}}),No.defineMIME("text/plain","null"),No.defineExtension=function(x,z){No.prototype[x]=z},No.defineDocExtension=function(x,z){Zi.prototype[x]=z},No.fromTextArea=qc,cd(No),No.version="5.58.2",No})},49047:function(Nn,Nt,te){(function(le){le(te(4631),te(29589),te(52539))})(function(le){"use strict";le.defineMode("markdown",function(Me,Ne){var Ue=le.getMode(Me,"text/html"),be=Ue.name=="null";function ke(yt){if(le.findModeByName){var Be=le.findModeByName(yt);Be&&(yt=Be.mime||Be.mimes[0])}var Rt=le.getMode(Me,yt);return Rt.name=="null"?null:Rt}Ne.highlightFormatting===void 0&&(Ne.highlightFormatting=!1),Ne.maxBlockquoteDepth===void 0&&(Ne.maxBlockquoteDepth=0),Ne.taskLists===void 0&&(Ne.taskLists=!1),Ne.strikethrough===void 0&&(Ne.strikethrough=!1),Ne.emoji===void 0&&(Ne.emoji=!1),Ne.fencedCodeBlockHighlighting===void 0&&(Ne.fencedCodeBlockHighlighting=!0),Ne.fencedCodeBlockDefaultMode===void 0&&(Ne.fencedCodeBlockDefaultMode="text/plain"),Ne.xml===void 0&&(Ne.xml=!0),Ne.tokenTypeOverrides===void 0&&(Ne.tokenTypeOverrides={});var de={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var we in de)de.hasOwnProperty(we)&&Ne.tokenTypeOverrides[we]&&(de[we]=Ne.tokenTypeOverrides[we]);var pe=/^([*\-_])(?:\s*\1){2,}\s*$/,Le=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,nt=/^\[(x| )\](?=\s)/i,Re=Ne.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,We=/^ {0,3}(?:\={1,}|-{2,})\s*$/,qe=/^[^#!\[\]*_\\<>` "'(~:]+/,lt=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Xe=/^\s*\[[^\]]+?\]:.*$/,ye=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,vt=" ";function Pt(yt,Be,Rt){return Be.f=Be.inline=Rt,Rt(yt,Be)}function ot(yt,Be,Rt){return Be.f=Be.block=Rt,Rt(yt,Be)}function ct(yt){return!yt||!/\S/.test(yt.string)}function Se(yt){if(yt.linkTitle=!1,yt.linkHref=!1,yt.linkText=!1,yt.em=!1,yt.strong=!1,yt.strikethrough=!1,yt.quote=0,yt.indentedCode=!1,yt.f==He){var Be=be;if(!Be){var Rt=le.innerMode(Ue,yt.htmlState);Be=Rt.mode.name=="xml"&&Rt.state.tagStart===null&&!Rt.state.context&&Rt.state.tokenize.isInText}Be&&(yt.f=Ge,yt.block=ce,yt.htmlState=null)}return yt.trailingSpace=0,yt.trailingSpaceNewLine=!1,yt.prevLine=yt.thisLine,yt.thisLine={stream:null},null}function ce(yt,Be){var Rt=yt.column()===Be.indentation,Vn=ct(Be.prevLine.stream),In=Be.indentedCode,xt=Be.prevLine.hr,Mt=Be.list!==!1,qt=(Be.listStack[Be.listStack.length-1]||0)+3;Be.indentedCode=!1;var an=Be.indentation;if(Be.indentationDiff===null&&(Be.indentationDiff=Be.indentation,Mt)){for(Be.list=null;an<Be.listStack[Be.listStack.length-1];)Be.listStack.pop(),Be.listStack.length?Be.indentation=Be.listStack[Be.listStack.length-1]:Be.list=!1;Be.list!==!1&&(Be.indentationDiff=an-Be.listStack[Be.listStack.length-1])}var ln=!Vn&&!xt&&!Be.prevLine.header&&(!Mt||!In)&&!Be.prevLine.fencedCodeEnd,Yt=(Be.list===!1||xt||Vn)&&Be.indentation<=qt&&yt.match(pe),Cn=null;if(Be.indentationDiff>=4&&(In||Be.prevLine.fencedCodeEnd||Be.prevLine.header||Vn))return yt.skipToEnd(),Be.indentedCode=!0,de.code;if(yt.eatSpace())return null;if(Rt&&Be.indentation<=qt&&(Cn=yt.match(Re))&&Cn[1].length<=6)return Be.quote=0,Be.header=Cn[1].length,Be.thisLine.header=!0,Ne.highlightFormatting&&(Be.formatting="header"),Be.f=Be.inline,it(Be);if(Be.indentation<=qt&&yt.eat(">"))return Be.quote=Rt?1:Be.quote+1,Ne.highlightFormatting&&(Be.formatting="quote"),yt.eatSpace(),it(Be);if(!Yt&&!Be.setext&&Rt&&Be.indentation<=qt&&(Cn=yt.match(Le))){var pr=Cn[1]?"ol":"ul";return Be.indentation=an+yt.current().length,Be.list=!0,Be.quote=0,Be.listStack.push(Be.indentation),Be.em=!1,Be.strong=!1,Be.code=!1,Be.strikethrough=!1,Ne.taskLists&&yt.match(nt,!1)&&(Be.taskList=!0),Be.f=Be.inline,Ne.highlightFormatting&&(Be.formatting=["list","list-"+pr]),it(Be)}else{if(Rt&&Be.indentation<=qt&&(Cn=yt.match(lt,!0)))return Be.quote=0,Be.fencedEndRE=new RegExp(Cn[1]+"+ *$"),Be.localMode=Ne.fencedCodeBlockHighlighting&&ke(Cn[2]||Ne.fencedCodeBlockDefaultMode),Be.localMode&&(Be.localState=le.startState(Be.localMode)),Be.f=Be.block=je,Ne.highlightFormatting&&(Be.formatting="code-block"),Be.code=-1,it(Be);if(Be.setext||(!ln||!Mt)&&!Be.quote&&Be.list===!1&&!Be.code&&!Yt&&!Xe.test(yt.string)&&(Cn=yt.lookAhead(1))&&(Cn=Cn.match(We)))return Be.setext?(Be.header=Be.setext,Be.setext=0,yt.skipToEnd(),Ne.highlightFormatting&&(Be.formatting="header")):(Be.header=Cn[0].charAt(0)=="="?1:2,Be.setext=Be.header),Be.thisLine.header=!0,Be.f=Be.inline,it(Be);if(Yt)return yt.skipToEnd(),Be.hr=!0,Be.thisLine.hr=!0,de.hr;if(yt.peek()==="[")return Pt(yt,Be,bt)}return Pt(yt,Be,Be.inline)}function He(yt,Be){var Rt=Ue.token(yt,Be.htmlState);if(!be){var Vn=le.innerMode(Ue,Be.htmlState);(Vn.mode.name=="xml"&&Vn.state.tagStart===null&&!Vn.state.context&&Vn.state.tokenize.isInText||Be.md_inside&&yt.current().indexOf(">")>-1)&&(Be.f=Ge,Be.block=ce,Be.htmlState=null)}return Rt}function je(yt,Be){var Rt=Be.listStack[Be.listStack.length-1]||0,Vn=Be.indentation<Rt,In=Rt+3;if(Be.fencedEndRE&&Be.indentation<=In&&(Vn||yt.match(Be.fencedEndRE))){Ne.highlightFormatting&&(Be.formatting="code-block");var xt;return Vn||(xt=it(Be)),Be.localMode=Be.localState=null,Be.block=ce,Be.f=Ge,Be.fencedEndRE=null,Be.code=0,Be.thisLine.fencedCodeEnd=!0,Vn?ot(yt,Be,Be.block):xt}else return Be.localMode?Be.localMode.token(yt,Be.localState):(yt.skipToEnd(),de.code)}function it(yt){var Be=[];if(yt.formatting){Be.push(de.formatting),typeof yt.formatting=="string"&&(yt.formatting=[yt.formatting]);for(var Rt=0;Rt<yt.formatting.length;Rt++)Be.push(de.formatting+"-"+yt.formatting[Rt]),yt.formatting[Rt]==="header"&&Be.push(de.formatting+"-"+yt.formatting[Rt]+"-"+yt.header),yt.formatting[Rt]==="quote"&&(!Ne.maxBlockquoteDepth||Ne.maxBlockquoteDepth>=yt.quote?Be.push(de.formatting+"-"+yt.formatting[Rt]+"-"+yt.quote):Be.push("error"))}if(yt.taskOpen)return Be.push("meta"),Be.length?Be.join(" "):null;if(yt.taskClosed)return Be.push("property"),Be.length?Be.join(" "):null;if(yt.linkHref?Be.push(de.linkHref,"url"):(yt.strong&&Be.push(de.strong),yt.em&&Be.push(de.em),yt.strikethrough&&Be.push(de.strikethrough),yt.emoji&&Be.push(de.emoji),yt.linkText&&Be.push(de.linkText),yt.code&&Be.push(de.code),yt.image&&Be.push(de.image),yt.imageAltText&&Be.push(de.imageAltText,"link"),yt.imageMarker&&Be.push(de.imageMarker)),yt.header&&Be.push(de.header,de.header+"-"+yt.header),yt.quote&&(Be.push(de.quote),!Ne.maxBlockquoteDepth||Ne.maxBlockquoteDepth>=yt.quote?Be.push(de.quote+"-"+yt.quote):Be.push(de.quote+"-"+Ne.maxBlockquoteDepth)),yt.list!==!1){var Vn=(yt.listStack.length-1)%3;Vn?Vn===1?Be.push(de.list2):Be.push(de.list3):Be.push(de.list1)}return yt.trailingSpaceNewLine?Be.push("trailing-space-new-line"):yt.trailingSpace&&Be.push("trailing-space-"+(yt.trailingSpace%2?"a":"b")),Be.length?Be.join(" "):null}function at(yt,Be){if(yt.match(qe,!0))return it(Be)}function Ge(yt,Be){var Rt=Be.text(yt,Be);if(typeof Rt!="undefined")return Rt;if(Be.list)return Be.list=null,it(Be);if(Be.taskList){var Vn=yt.match(nt,!0)[1]===" ";return Vn?Be.taskOpen=!0:Be.taskClosed=!0,Ne.highlightFormatting&&(Be.formatting="task"),Be.taskList=!1,it(Be)}if(Be.taskOpen=!1,Be.taskClosed=!1,Be.header&&yt.match(/^#+$/,!0))return Ne.highlightFormatting&&(Be.formatting="header"),it(Be);var In=yt.next();if(Be.linkTitle){Be.linkTitle=!1;var xt=In;In==="("&&(xt=")"),xt=(xt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Mt="^\\s*(?:[^"+xt+"\\\\]+|\\\\\\\\|\\\\.)"+xt;if(yt.match(new RegExp(Mt),!0))return de.linkHref}if(In==="`"){var qt=Be.formatting;Ne.highlightFormatting&&(Be.formatting="code"),yt.eatWhile("`");var an=yt.current().length;if(Be.code==0&&(!Be.quote||an==1))return Be.code=an,it(Be);if(an==Be.code){var ln=it(Be);return Be.code=0,ln}else return Be.formatting=qt,it(Be)}else if(Be.code)return it(Be);if(In==="\\"&&(yt.next(),Ne.highlightFormatting)){var Yt=it(Be),Cn=de.formatting+"-escape";return Yt?Yt+" "+Cn:Cn}if(In==="!"&&yt.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Be.imageMarker=!0,Be.image=!0,Ne.highlightFormatting&&(Be.formatting="image"),it(Be);if(In==="["&&Be.imageMarker&&yt.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Be.imageMarker=!1,Be.imageAltText=!0,Ne.highlightFormatting&&(Be.formatting="image"),it(Be);if(In==="]"&&Be.imageAltText){Ne.highlightFormatting&&(Be.formatting="image");var Yt=it(Be);return Be.imageAltText=!1,Be.image=!1,Be.inline=Be.f=wt,Yt}if(In==="["&&!Be.image)return Be.linkText&&yt.match(/^.*?\]/)||(Be.linkText=!0,Ne.highlightFormatting&&(Be.formatting="link")),it(Be);if(In==="]"&&Be.linkText){Ne.highlightFormatting&&(Be.formatting="link");var Yt=it(Be);return Be.linkText=!1,Be.inline=Be.f=yt.match(/\(.*?\)| ?\[.*?\]/,!1)?wt:Ge,Yt}if(In==="<"&&yt.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Be.f=Be.inline=Ae,Ne.highlightFormatting&&(Be.formatting="link");var Yt=it(Be);return Yt?Yt+=" ":Yt="",Yt+de.linkInline}if(In==="<"&&yt.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Be.f=Be.inline=Ae,Ne.highlightFormatting&&(Be.formatting="link");var Yt=it(Be);return Yt?Yt+=" ":Yt="",Yt+de.linkEmail}if(Ne.xml&&In==="<"&&yt.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var pr=yt.string.indexOf(">",yt.pos);if(pr!=-1){var Xn=yt.string.substring(yt.start,pr);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Xn)&&(Be.md_inside=!0)}return yt.backUp(1),Be.htmlState=le.startState(Ue),ot(yt,Be,He)}if(Ne.xml&&In==="<"&&yt.match(/^\/\w*?>/))return Be.md_inside=!1,"tag";if(In==="*"||In==="_"){for(var ze=1,fe=yt.pos==1?" ":yt.string.charAt(yt.pos-2);ze<3&&yt.eat(In);)ze++;var ue=yt.peek()||" ",xe=!/\s/.test(ue)&&(!ye.test(ue)||/\s/.test(fe)||ye.test(fe)),ge=!/\s/.test(fe)&&(!ye.test(fe)||/\s/.test(ue)||ye.test(ue)),se=null,Fe=null;if(ze%2&&(!Be.em&&xe&&(In==="*"||!ge||ye.test(fe))?se=!0:Be.em==In&&ge&&(In==="*"||!xe||ye.test(ue))&&(se=!1)),ze>1&&(!Be.strong&&xe&&(In==="*"||!ge||ye.test(fe))?Fe=!0:Be.strong==In&&ge&&(In==="*"||!xe||ye.test(ue))&&(Fe=!1)),Fe!=null||se!=null){Ne.highlightFormatting&&(Be.formatting=se==null?"strong":Fe==null?"em":"strong em"),se===!0&&(Be.em=In),Fe===!0&&(Be.strong=In);var ln=it(Be);return se===!1&&(Be.em=!1),Fe===!1&&(Be.strong=!1),ln}}else if(In===" "&&(yt.eat("*")||yt.eat("_"))){if(yt.peek()===" ")return it(Be);yt.backUp(1)}if(Ne.strikethrough){if(In==="~"&&yt.eatWhile(In)){if(Be.strikethrough){Ne.highlightFormatting&&(Be.formatting="strikethrough");var ln=it(Be);return Be.strikethrough=!1,ln}else if(yt.match(/^[^\s]/,!1))return Be.strikethrough=!0,Ne.highlightFormatting&&(Be.formatting="strikethrough"),it(Be)}else if(In===" "&&yt.match(/^~~/,!0)){if(yt.peek()===" ")return it(Be);yt.backUp(2)}}if(Ne.emoji&&In===":"&&yt.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Be.emoji=!0,Ne.highlightFormatting&&(Be.formatting="emoji");var st=it(Be);return Be.emoji=!1,st}return In===" "&&(yt.match(/^ +$/,!1)?Be.trailingSpace++:Be.trailingSpace&&(Be.trailingSpaceNewLine=!0)),it(Be)}function Ae(yt,Be){var Rt=yt.next();if(Rt===">"){Be.f=Be.inline=Ge,Ne.highlightFormatting&&(Be.formatting="link");var Vn=it(Be);return Vn?Vn+=" ":Vn="",Vn+de.linkInline}return yt.match(/^[^>]+/,!0),de.linkInline}function wt(yt,Be){if(yt.eatSpace())return null;var Rt=yt.next();return Rt==="("||Rt==="["?(Be.f=Be.inline=$t(Rt==="("?")":"]"),Ne.highlightFormatting&&(Be.formatting="link-string"),Be.linkHref=!0,it(Be)):"error"}var dt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function $t(yt){return function(Be,Rt){var Vn=Be.next();if(Vn===yt){Rt.f=Rt.inline=Ge,Ne.highlightFormatting&&(Rt.formatting="link-string");var In=it(Rt);return Rt.linkHref=!1,In}return Be.match(dt[yt]),Rt.linkHref=!0,it(Rt)}}function bt(yt,Be){return yt.match(/^([^\]\\]|\\.)*\]:/,!1)?(Be.f=Ot,yt.next(),Ne.highlightFormatting&&(Be.formatting="link"),Be.linkText=!0,it(Be)):Pt(yt,Be,Ge)}function Ot(yt,Be){if(yt.match(/^\]:/,!0)){Be.f=Be.inline=Pn,Ne.highlightFormatting&&(Be.formatting="link");var Rt=it(Be);return Be.linkText=!1,Rt}return yt.match(/^([^\]\\]|\\.)+/,!0),de.linkText}function Pn(yt,Be){return yt.eatSpace()?null:(yt.match(/^[^\s]+/,!0),yt.peek()===void 0?Be.linkTitle=!0:yt.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Be.f=Be.inline=Ge,de.linkHref+" url")}var $n={startState:function(){return{f:ce,prevLine:{stream:null},thisLine:{stream:null},block:ce,htmlState:null,indentation:0,inline:Ge,text:at,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(yt){return{f:yt.f,prevLine:yt.prevLine,thisLine:yt.thisLine,block:yt.block,htmlState:yt.htmlState&&le.copyState(Ue,yt.htmlState),indentation:yt.indentation,localMode:yt.localMode,localState:yt.localMode?le.copyState(yt.localMode,yt.localState):null,inline:yt.inline,text:yt.text,formatting:!1,linkText:yt.linkText,linkTitle:yt.linkTitle,linkHref:yt.linkHref,code:yt.code,em:yt.em,strong:yt.strong,strikethrough:yt.strikethrough,emoji:yt.emoji,header:yt.header,setext:yt.setext,hr:yt.hr,taskList:yt.taskList,list:yt.list,listStack:yt.listStack.slice(0),quote:yt.quote,indentedCode:yt.indentedCode,trailingSpace:yt.trailingSpace,trailingSpaceNewLine:yt.trailingSpaceNewLine,md_inside:yt.md_inside,fencedEndRE:yt.fencedEndRE}},token:function(yt,Be){if(Be.formatting=!1,yt!=Be.thisLine.stream){if(Be.header=0,Be.hr=!1,yt.match(/^\s*$/,!0))return Se(Be),null;if(Be.prevLine=Be.thisLine,Be.thisLine={stream:yt},Be.taskList=!1,Be.trailingSpace=0,Be.trailingSpaceNewLine=!1,!Be.localState&&(Be.f=Be.block,Be.f!=He)){var Rt=yt.match(/^\s*/,!0)[0].replace(/\t/g,vt).length;if(Be.indentation=Rt,Be.indentationDiff=null,Rt>0)return null}}return Be.f(yt,Be)},innerMode:function(yt){return yt.block==He?{state:yt.htmlState,mode:Ue}:yt.localState?{state:yt.localState,mode:yt.localMode}:{state:yt,mode:$n}},indent:function(yt,Be,Rt){return yt.block==He&&Ue.indent?Ue.indent(yt.htmlState,Be,Rt):yt.localState&&yt.localMode.indent?yt.localMode.indent(yt.localState,Be,Rt):le.Pass},blankLine:Se,getType:it,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return $n},"xml"),le.defineMIME("text/markdown","markdown"),le.defineMIME("text/x-markdown","markdown")})},52539:function(Nn,Nt,te){(function(le){le(te(4631))})(function(le){"use strict";le.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var Me=0;Me<le.modeInfo.length;Me++){var Ne=le.modeInfo[Me];Ne.mimes&&(Ne.mime=Ne.mimes[0])}le.findModeByMIME=function(Ue){Ue=Ue.toLowerCase();for(var be=0;be<le.modeInfo.length;be++){var ke=le.modeInfo[be];if(ke.mime==Ue)return ke;if(ke.mimes){for(var de=0;de<ke.mimes.length;de++)if(ke.mimes[de]==Ue)return ke}}if(/\+xml$/.test(Ue))return le.findModeByMIME("application/xml");if(/\+json$/.test(Ue))return le.findModeByMIME("application/json")},le.findModeByExtension=function(Ue){Ue=Ue.toLowerCase();for(var be=0;be<le.modeInfo.length;be++){var ke=le.modeInfo[be];if(ke.ext){for(var de=0;de<ke.ext.length;de++)if(ke.ext[de]==Ue)return ke}}},le.findModeByFileName=function(Ue){for(var be=0;be<le.modeInfo.length;be++){var ke=le.modeInfo[be];if(ke.file&&ke.file.test(Ue))return ke}var de=Ue.lastIndexOf("."),we=de>-1&&Ue.substring(de+1,Ue.length);if(we)return le.findModeByExtension(we)},le.findModeByName=function(Ue){Ue=Ue.toLowerCase();for(var be=0;be<le.modeInfo.length;be++){var ke=le.modeInfo[be];if(ke.name.toLowerCase()==Ue)return ke;if(ke.alias){for(var de=0;de<ke.alias.length;de++)if(ke.alias[de].toLowerCase()==Ue)return ke}}}})},80785:function(Nn,Nt,te){(function(le){le(te(4631))})(function(le){"use strict";le.defineMode("stex",function(Me,Ne){"use strict";function Ue(qe,lt){qe.cmdState.push(lt)}function be(qe){return qe.cmdState.length>0?qe.cmdState[qe.cmdState.length-1]:null}function ke(qe){var lt=qe.cmdState.pop();lt&&lt.closeBracket()}function de(qe){for(var lt=qe.cmdState,Xe=lt.length-1;Xe>=0;Xe--){var ye=lt[Xe];if(ye.name!="DEFAULT")return ye}return{styleIdentifier:function(){return null}}}function we(qe,lt,Xe){return function(){this.name=qe,this.bracketNo=0,this.style=lt,this.styles=Xe,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var pe={};pe.importmodule=we("importmodule","tag",["string","builtin"]),pe.documentclass=we("documentclass","tag",["","atom"]),pe.usepackage=we("usepackage","tag",["atom"]),pe.begin=we("begin","tag",["atom"]),pe.end=we("end","tag",["atom"]),pe.label=we("label","tag",["atom"]),pe.ref=we("ref","tag",["atom"]),pe.eqref=we("eqref","tag",["atom"]),pe.cite=we("cite","tag",["atom"]),pe.bibitem=we("bibitem","tag",["atom"]),pe.Bibitem=we("Bibitem","tag",["atom"]),pe.RBibitem=we("RBibitem","tag",["atom"]),pe.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Le(qe,lt){qe.f=lt}function nt(qe,lt){var Xe;if(qe.match(/^\\[a-zA-Z@]+/)){var ye=qe.current().slice(1);return Xe=pe.hasOwnProperty(ye)?pe[ye]:pe.DEFAULT,Xe=new Xe,Ue(lt,Xe),Le(lt,We),Xe.style}if(qe.match(/^\\[$&%#{}_]/)||qe.match(/^\\[,;!\/\\]/))return"tag";if(qe.match("\\["))return Le(lt,function(Pt,ot){return Re(Pt,ot,"\\]")}),"keyword";if(qe.match("\\("))return Le(lt,function(Pt,ot){return Re(Pt,ot,"\\)")}),"keyword";if(qe.match("$$"))return Le(lt,function(Pt,ot){return Re(Pt,ot,"$$")}),"keyword";if(qe.match("$"))return Le(lt,function(Pt,ot){return Re(Pt,ot,"$")}),"keyword";var vt=qe.next();if(vt=="%")return qe.skipToEnd(),"comment";if(vt=="}"||vt=="]"){if(Xe=be(lt),Xe)Xe.closeBracket(vt),Le(lt,We);else return"error";return"bracket"}else return vt=="{"||vt=="["?(Xe=pe.DEFAULT,Xe=new Xe,Ue(lt,Xe),"bracket"):/\d/.test(vt)?(qe.eatWhile(/[\w.%]/),"atom"):(qe.eatWhile(/[\w\-_]/),Xe=de(lt),Xe.name=="begin"&&(Xe.argument=qe.current()),Xe.styleIdentifier())}function Re(qe,lt,Xe){if(qe.eatSpace())return null;if(Xe&&qe.match(Xe))return Le(lt,nt),"keyword";if(qe.match(/^\\[a-zA-Z@]+/))return"tag";if(qe.match(/^[a-zA-Z]+/))return"variable-2";if(qe.match(/^\\[$&%#{}_]/)||qe.match(/^\\[,;!\/]/)||qe.match(/^[\^_&]/))return"tag";if(qe.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(qe.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ye=qe.next();return ye=="{"||ye=="}"||ye=="["||ye=="]"||ye=="("||ye==")"?"bracket":ye=="%"?(qe.skipToEnd(),"comment"):"error"}function We(qe,lt){var Xe=qe.peek(),ye;return Xe=="{"||Xe=="["?(ye=be(lt),ye.openBracket(Xe),qe.eat(Xe),Le(lt,nt),"bracket"):/[ \t\r]/.test(Xe)?(qe.eat(Xe),null):(Le(lt,nt),ke(lt),nt(qe,lt))}return{startState:function(){var qe=Ne.inMathMode?function(lt,Xe){return Re(lt,Xe)}:nt;return{cmdState:[],f:qe}},copyState:function(qe){return{cmdState:qe.cmdState.slice(),f:qe.f}},token:function(qe,lt){return lt.f(qe,lt)},blankLine:function(qe){qe.f=nt,qe.cmdState.length=0},lineComment:"%"}}),le.defineMIME("text/x-stex","stex"),le.defineMIME("text/x-latex","stex")})},29589:function(Nn,Nt,te){(function(le){le(te(4631))})(function(le){"use strict";var Me={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},Ne={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};le.defineMode("xml",function(Ue,be){var ke=Ue.indentUnit,de={},we=be.htmlMode?Me:Ne;for(var pe in we)de[pe]=we[pe];for(var pe in be)de[pe]=be[pe];var Le,nt;function Re(Ae,wt){function dt(Ot){return wt.tokenize=Ot,Ot(Ae,wt)}var $t=Ae.next();if($t=="<")return Ae.eat("!")?Ae.eat("[")?Ae.match("CDATA[")?dt(lt("atom","]]>")):null:Ae.match("--")?dt(lt("comment","-->")):Ae.match("DOCTYPE",!0,!0)?(Ae.eatWhile(/[\w\._\-]/),dt(Xe(1))):null:Ae.eat("?")?(Ae.eatWhile(/[\w\._\-]/),wt.tokenize=lt("meta","?>"),"meta"):(Le=Ae.eat("/")?"closeTag":"openTag",wt.tokenize=We,"tag bracket");if($t=="&"){var bt;return Ae.eat("#")?Ae.eat("x")?bt=Ae.eatWhile(/[a-fA-F\d]/)&&Ae.eat(";"):bt=Ae.eatWhile(/[\d]/)&&Ae.eat(";"):bt=Ae.eatWhile(/[\w\.\-:]/)&&Ae.eat(";"),bt?"atom":"error"}else return Ae.eatWhile(/[^&<]/),null}Re.isInText=!0;function We(Ae,wt){var dt=Ae.next();if(dt==">"||dt=="/"&&Ae.eat(">"))return wt.tokenize=Re,Le=dt==">"?"endTag":"selfcloseTag","tag bracket";if(dt=="=")return Le="equals",null;if(dt=="<"){wt.tokenize=Re,wt.state=ot,wt.tagName=wt.tagStart=null;var $t=wt.tokenize(Ae,wt);return $t?$t+" tag error":"tag error"}else return/[\'\"]/.test(dt)?(wt.tokenize=qe(dt),wt.stringStartCol=Ae.column(),wt.tokenize(Ae,wt)):(Ae.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function qe(Ae){var wt=function(dt,$t){for(;!dt.eol();)if(dt.next()==Ae){$t.tokenize=We;break}return"string"};return wt.isInAttribute=!0,wt}function lt(Ae,wt){return function(dt,$t){for(;!dt.eol();){if(dt.match(wt)){$t.tokenize=Re;break}dt.next()}return Ae}}function Xe(Ae){return function(wt,dt){for(var $t;($t=wt.next())!=null;){if($t=="<")return dt.tokenize=Xe(Ae+1),dt.tokenize(wt,dt);if($t==">")if(Ae==1){dt.tokenize=Re;break}else return dt.tokenize=Xe(Ae-1),dt.tokenize(wt,dt)}return"meta"}}function ye(Ae,wt,dt){this.prev=Ae.context,this.tagName=wt,this.indent=Ae.indented,this.startOfLine=dt,(de.doNotIndent.hasOwnProperty(wt)||Ae.context&&Ae.context.noIndent)&&(this.noIndent=!0)}function vt(Ae){Ae.context&&(Ae.context=Ae.context.prev)}function Pt(Ae,wt){for(var dt;;){if(!Ae.context||(dt=Ae.context.tagName,!de.contextGrabbers.hasOwnProperty(dt)||!de.contextGrabbers[dt].hasOwnProperty(wt)))return;vt(Ae)}}function ot(Ae,wt,dt){return Ae=="openTag"?(dt.tagStart=wt.column(),ct):Ae=="closeTag"?Se:ot}function ct(Ae,wt,dt){return Ae=="word"?(dt.tagName=wt.current(),nt="tag",je):de.allowMissingTagName&&Ae=="endTag"?(nt="tag bracket",je(Ae,wt,dt)):(nt="error",ct)}function Se(Ae,wt,dt){if(Ae=="word"){var $t=wt.current();return dt.context&&dt.context.tagName!=$t&&de.implicitlyClosed.hasOwnProperty(dt.context.tagName)&&vt(dt),dt.context&&dt.context.tagName==$t||de.matchClosing===!1?(nt="tag",ce):(nt="tag error",He)}else return de.allowMissingTagName&&Ae=="endTag"?(nt="tag bracket",ce(Ae,wt,dt)):(nt="error",He)}function ce(Ae,wt,dt){return Ae!="endTag"?(nt="error",ce):(vt(dt),ot)}function He(Ae,wt,dt){return nt="error",ce(Ae,wt,dt)}function je(Ae,wt,dt){if(Ae=="word")return nt="attribute",it;if(Ae=="endTag"||Ae=="selfcloseTag"){var $t=dt.tagName,bt=dt.tagStart;return dt.tagName=dt.tagStart=null,Ae=="selfcloseTag"||de.autoSelfClosers.hasOwnProperty($t)?Pt(dt,$t):(Pt(dt,$t),dt.context=new ye(dt,$t,bt==dt.indented)),ot}return nt="error",je}function it(Ae,wt,dt){return Ae=="equals"?at:(de.allowMissing||(nt="error"),je(Ae,wt,dt))}function at(Ae,wt,dt){return Ae=="string"?Ge:Ae=="word"&&de.allowUnquoted?(nt="string",je):(nt="error",je(Ae,wt,dt))}function Ge(Ae,wt,dt){return Ae=="string"?Ge:je(Ae,wt,dt)}return{startState:function(Ae){var wt={tokenize:Re,state:ot,indented:Ae||0,tagName:null,tagStart:null,context:null};return Ae!=null&&(wt.baseIndent=Ae),wt},token:function(Ae,wt){if(!wt.tagName&&Ae.sol()&&(wt.indented=Ae.indentation()),Ae.eatSpace())return null;Le=null;var dt=wt.tokenize(Ae,wt);return(dt||Le)&&dt!="comment"&&(nt=null,wt.state=wt.state(Le||dt,Ae,wt),nt&&(dt=nt=="error"?dt+" error":nt)),dt},indent:function(Ae,wt,dt){var $t=Ae.context;if(Ae.tokenize.isInAttribute)return Ae.tagStart==Ae.indented?Ae.stringStartCol+1:Ae.indented+ke;if($t&&$t.noIndent)return le.Pass;if(Ae.tokenize!=We&&Ae.tokenize!=Re)return dt?dt.match(/^(\s*)/)[0].length:0;if(Ae.tagName)return de.multilineTagIndentPastTag!==!1?Ae.tagStart+Ae.tagName.length+2:Ae.tagStart+ke*(de.multilineTagIndentFactor||1);if(de.alignCDATA&&/<!\[CDATA\[/.test(wt))return 0;var bt=wt&&/^<(\/)?([\w_:\.-]*)/.exec(wt);if(bt&&bt[1])for(;$t;)if($t.tagName==bt[2]){$t=$t.prev;break}else if(de.implicitlyClosed.hasOwnProperty($t.tagName))$t=$t.prev;else break;else if(bt)for(;$t;){var Ot=de.contextGrabbers[$t.tagName];if(Ot&&Ot.hasOwnProperty(bt[2]))$t=$t.prev;else break}for(;$t&&$t.prev&&!$t.startOfLine;)$t=$t.prev;return $t?$t.indent+ke:Ae.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:de.htmlMode?"html":"xml",helperType:de.htmlMode?"html":"xml",skipAttribute:function(Ae){Ae.state==at&&(Ae.state=je)},xmlCurrentTag:function(Ae){return Ae.tagName?{name:Ae.tagName,close:Ae.type=="closeTag"}:null},xmlCurrentContext:function(Ae){for(var wt=[],dt=Ae.context;dt;dt=dt.prev)dt.tagName&&wt.push(dt.tagName);return wt.reverse()}}}),le.defineMIME("text/xml","xml"),le.defineMIME("application/xml","xml"),le.mimeModes.hasOwnProperty("text/html")||le.defineMIME("text/html",{name:"xml",htmlMode:!0})})},15979:function(Nn,Nt,te){"use strict";te.d(Nt,{hP:function(){return Xn}});var le=function(ze,fe){return(le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,xe){ue.__proto__=xe}||function(ue,xe){for(var ge in xe)Object.prototype.hasOwnProperty.call(xe,ge)&&(ue[ge]=xe[ge])})(ze,fe)};function Me(ze,fe){function ue(){this.constructor=ze}le(ze,fe),ze.prototype=fe===null?Object.create(fe):(ue.prototype=fe.prototype,new ue)}function Ne(ze,fe,ue,xe){return new(ue||(ue=Promise))(function(ge,se){function Fe(Sn){try{en(xe.next(Sn))}catch(dn){se(dn)}}function st(Sn){try{en(xe.throw(Sn))}catch(dn){se(dn)}}function en(Sn){var dn;Sn.done?ge(Sn.value):(dn=Sn.value,dn instanceof ue?dn:new ue(function(zn){zn(dn)})).then(Fe,st)}en((xe=xe.apply(ze,fe||[])).next())})}function Ue(ze,fe){var ue,xe,ge,se,Fe={label:0,sent:function(){if(1&ge[0])throw ge[1];return ge[1]},trys:[],ops:[]};return se={next:st(0),throw:st(1),return:st(2)},typeof Symbol=="function"&&(se[Symbol.iterator]=function(){return this}),se;function st(en){return function(Sn){return function(dn){if(ue)throw new TypeError("Generator is already executing.");for(;Fe;)try{if(ue=1,xe&&(ge=2&dn[0]?xe.return:dn[0]?xe.throw||((ge=xe.return)&&ge.call(xe),0):xe.next)&&!(ge=ge.call(xe,dn[1])).done)return ge;switch(xe=0,ge&&(dn=[2&dn[0],ge.value]),dn[0]){case 0:case 1:ge=dn;break;case 4:return Fe.label++,{value:dn[1],done:!1};case 5:Fe.label++,xe=dn[1],dn=[0];continue;case 7:dn=Fe.ops.pop(),Fe.trys.pop();continue;default:if(ge=Fe.trys,!((ge=ge.length>0&&ge[ge.length-1])||dn[0]!==6&&dn[0]!==2)){Fe=0;continue}if(dn[0]===3&&(!ge||dn[1]>ge[0]&&dn[1]<ge[3])){Fe.label=dn[1];break}if(dn[0]===6&&Fe.label<ge[1]){Fe.label=ge[1],ge=dn;break}if(ge&&Fe.label<ge[2]){Fe.label=ge[2],Fe.ops.push(dn);break}ge[2]&&Fe.ops.pop(),Fe.trys.pop();continue}dn=fe.call(ze,Fe)}catch(zn){dn=[6,zn],xe=0}finally{ue=ge=0}if(5&dn[0])throw dn[1];return{value:dn[0]?dn[1]:void 0,done:!0}}([en,Sn])}}}function be(){for(var ze=0,fe=0,ue=arguments.length;fe<ue;fe++)ze+=arguments[fe].length;var xe=Array(ze),ge=0;for(fe=0;fe<ue;fe++)for(var se=arguments[fe],Fe=0,st=se.length;Fe<st;Fe++,ge++)xe[ge]=se[Fe];return xe}var ke=function(){function ze(){}return ze.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ze.setAttributes=function(fe,ue){for(var xe=0,ge=ue;xe<ge.length;xe++){var se=ge[xe],Fe=se[0],st=se[1];fe.setAttribute(Fe,st)}},ze.createRect=function(fe,ue,xe){var ge=document.createElementNS("http://www.w3.org/2000/svg","rect");return ge.setAttribute("width",fe.toString()),ge.setAttribute("height",ue.toString()),xe&&ze.setAttributes(ge,xe),ge},ze.createLine=function(fe,ue,xe,ge,se){var Fe=document.createElementNS("http://www.w3.org/2000/svg","line");return Fe.setAttribute("x1",fe.toString()),Fe.setAttribute("y1",ue.toString()),Fe.setAttribute("x2",xe.toString()),Fe.setAttribute("y2",ge.toString()),se&&ze.setAttributes(Fe,se),Fe},ze.createPolygon=function(fe,ue){var xe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return xe.setAttribute("points",fe),ue&&ze.setAttributes(xe,ue),xe},ze.createCircle=function(fe,ue){var xe=document.createElementNS("http://www.w3.org/2000/svg","circle");return xe.setAttribute("cx",(fe/2).toString()),xe.setAttribute("cy",(fe/2).toString()),xe.setAttribute("r",fe.toString()),ue&&ze.setAttributes(xe,ue),xe},ze.createEllipse=function(fe,ue,xe){var ge=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return ge.setAttribute("cx",(fe/2).toString()),ge.setAttribute("cy",(ue/2).toString()),ge.setAttribute("rx",(fe/2).toString()),ge.setAttribute("ry",(ue/2).toString()),xe&&ze.setAttributes(ge,xe),ge},ze.createGroup=function(fe){var ue=document.createElementNS("http://www.w3.org/2000/svg","g");return fe&&ze.setAttributes(ue,fe),ue},ze.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ze.createMarker=function(fe,ue,xe,ge,se,Fe,st){var en=document.createElementNS("http://www.w3.org/2000/svg","marker");return ze.setAttributes(en,[["id",fe],["orient",ue],["markerWidth",xe.toString()],["markerHeight",ge.toString()],["refX",se.toString()],["refY",Fe.toString()]]),en.appendChild(st),en},ze.createText=function(fe){var ue=document.createElementNS("http://www.w3.org/2000/svg","text");return ue.setAttribute("x","0"),ue.setAttribute("y","0"),fe&&ze.setAttributes(ue,fe),ue},ze.createTSpan=function(fe,ue){var xe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return xe.textContent=fe,ue&&ze.setAttributes(xe,ue),xe},ze.createImage=function(fe){var ue=document.createElementNS("http://www.w3.org/2000/svg","image");return fe&&ze.setAttributes(ue,fe),ue},ze.createPoint=function(fe,ue){var xe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return xe.x=fe,xe.y=ue,xe},ze.createPath=function(fe,ue){var xe=document.createElementNS("http://www.w3.org/2000/svg","path");return xe.setAttribute("d",fe),ue&&ze.setAttributes(xe,ue),xe},ze}(),de=function(){function ze(){}return ze.addKey=function(fe){ze.key=fe},Object.defineProperty(ze,"isLicensed",{get:function(){return!!ze.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(ze.key)},enumerable:!1,configurable:!0}),ze}(),we=function(){function ze(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ze.prototype.rasterize=function(fe,ue,xe){var ge=this;return new Promise(function(se){var Fe=xe!==void 0?xe:document.createElement("canvas");fe===null&&(ge.markersOnly=!0,ge.naturalSize=!1);var st=document.createElementNS("http://www.w3.org/2000/svg","svg");st.setAttribute("xmlns","http://www.w3.org/2000/svg"),st.setAttribute("width",ue.width.baseVal.valueAsString),st.setAttribute("height",ue.height.baseVal.valueAsString),st.setAttribute("viewBox","0 0 "+ue.viewBox.baseVal.width.toString()+" "+ue.viewBox.baseVal.height.toString()),st.innerHTML=ue.innerHTML,ge.naturalSize===!0?(st.width.baseVal.value=fe.naturalWidth,st.height.baseVal.value=fe.naturalHeight):ge.width!==void 0&&ge.height!==void 0&&(st.width.baseVal.value=ge.width,st.height.baseVal.value=ge.height),Fe.width=st.width.baseVal.value,Fe.height=st.height.baseVal.value;var en=st.outerHTML,Sn=Fe.getContext("2d");ge.markersOnly!==!0&&Sn.drawImage(fe,0,0,Fe.width,Fe.height);var dn=window.URL,zn=new Image(Fe.width,Fe.height);zn.setAttribute("crossOrigin","anonymous");var vn=new Blob([en],{type:"image/svg+xml"}),kt=dn.createObjectURL(vn);zn.onload=function(){Sn.drawImage(zn,0,0),dn.revokeObjectURL(kt);var Xt=Fe.toDataURL(ge.imageType,ge.imageQuality);se(Xt)},zn.src=kt})},ze}(),pe=function(){},Le=function(){function ze(fe){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+fe+"_"}return Object.defineProperty(ze.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),ze.prototype.addClass=function(fe){return this.styleSheet===void 0&&this.addStyleSheet(),fe.name=""+this.classNamePrefix+fe.localName,this.classes.push(fe),this.styleSheet.sheet.insertRule("."+fe.name+" {"+fe.style+"}",this.styleSheet.sheet.cssRules.length),fe},ze.prototype.addRule=function(fe){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(fe),this.styleSheet.sheet.insertRule(fe.selector+" {"+fe.style+"}",this.styleSheet.sheet.cssRules.length)},ze.prototype.addStyleSheet=function(){var fe;this.styleSheet=document.createElement("style"),((fe=this.styleSheetRoot)!==null&&fe!==void 0?fe:document.head).appendChild(this.styleSheet),this.addRule(new nt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new nt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new nt("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new Re("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new Re("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},ze.prototype.removeStyleSheet=function(){var fe;this.styleSheet&&(((fe=this.styleSheetRoot)!==null&&fe!==void 0?fe:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ze}(),nt=function(ze,fe){this.selector=ze,this.style=fe},Re=function(ze,fe){this.localName=ze,this.style=fe},We=function(){function ze(fe,ue,xe,ge,se){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=fe,this.displayMode=ue,this.markerItems=xe,this.uiStyleSettings=ge,this.styles=se,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return ze.prototype.show=function(fe){var ue=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=fe,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var xe=document.createElement("div");xe.className=this.toolbarBlockStyleClass.name,xe.style.whiteSpace="nowrap",this.uiContainer.appendChild(xe),this.addActionButton(xe,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(xe,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(xe,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(xe,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(xe,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(xe,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(xe,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(xe,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(se){var Fe=document.createElement("div");Fe.className=""+ue.toolbarButtonStyleClass.name,Fe.setAttribute("data-type-name",se.typeName),Fe.innerHTML=se.icon,Fe.addEventListener("click",function(){ue.markerToolbarButtonClicked(Fe,se)}),ue.buttons.push(Fe),ue.markerButtons.push(Fe)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var ge=document.createElement("div");ge.className=this.toolbarBlockStyleClass.name,ge.style.whiteSpace="nowrap",ge.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ge),this.addActionButton(ge,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(ge,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},ze.prototype.addButtonClickListener=function(fe){this.buttonClickListeners.push(fe)},ze.prototype.removeButtonClickListener=function(fe){this.buttonClickListeners.indexOf(fe)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(fe),1)},ze.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ze.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var fe=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var ue=0;ue<this.markerButtons.length;ue++)ue<fe||ue===fe&&this.markerButtons.length-1===fe?this.markerButtonBlock.appendChild(this.markerButtons[ue]):(ue===fe&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[ue]))}},ze.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},ze.prototype.resetButtonStyles=function(){var fe=this;this.buttons.forEach(function(ue){ue.className=ue.className.replace(fe.uiStyleSettings.toolbarButtonStyleColorsClassName?fe.uiStyleSettings.toolbarButtonStyleColorsClassName:fe.toolbarButtonStyleColorsClass.name,"").trim(),ue.className=ue.className.replace(fe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?fe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:fe.toolbarActiveButtonStyleColorsClass.name,"").trim(),ue.className+=" "+(fe.uiStyleSettings.toolbarButtonStyleColorsClassName?fe.uiStyleSettings.toolbarButtonStyleColorsClassName:fe.toolbarButtonStyleColorsClass.name)})},ze.prototype.addActionButton=function(fe,ue,xe){var ge=this,se=document.createElement("div");switch(se.className=""+this.toolbarButtonStyleClass.name,se.innerHTML=ue,se.setAttribute("data-action",xe),se.addEventListener("click",function(){ge.actionToolbarButtonClicked(se,xe)}),xe){case"select":se.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":se.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":se.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":se.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":se.style.fill=this.uiStyleSettings.closeButtonColor}fe.appendChild(se),this.buttons.push(se)},ze.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Re("toolbar",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.uiStyleSettings.toolbarHeight+`px;
box-sizing: content-box;
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new Re("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Re("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Re("toolbar-overflow-block",`
position: absolute;
top: `+this.uiStyleSettings.toolbarHeight+`px;
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
z-index: 10;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new Re("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var fe=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Re("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*fe)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*fe)+`px;
padding: `+fe+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Re("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Re("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new nt("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new nt("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},ze.prototype.markerToolbarButtonClicked=function(fe,ue){this.setActiveButton(fe),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(xe){return xe("marker",ue)}),this.markerButtonOverflowBlock.style.display="none"},ze.prototype.actionToolbarButtonClicked=function(fe,ue){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(xe){return xe("action",ue)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ze.prototype.setActiveButton=function(fe){this.resetButtonStyles(),fe.className=fe.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),fe.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ze.prototype.setActiveMarkerButton=function(fe){var ue=this.markerButtons.find(function(xe){return xe.getAttribute("data-type-name")===fe});ue&&this.setActiveButton(ue)},ze.prototype.setCurrentMarker=function(fe){var ue=this;this.currentMarker=fe,this.buttons.filter(function(xe){return/delete|notes/.test(xe.getAttribute("data-action"))}).forEach(function(xe){ue.currentMarker===void 0?(xe.style.fillOpacity="0.4",xe.style.pointerEvents="none"):(xe.style.fillOpacity="1",xe.style.pointerEvents="all")})},ze}(),qe=function(){function ze(fe,ue,xe,ge){this.panels=[],this.panelButtons=[],this.markerjsContainer=fe,this.displayMode=ue,this.uiStyleSettings=xe,this.styles=ge,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ze.prototype.addStyles=function(){var fe;this.toolboxStyleClass=this.styles.addClass(new Re("toolbox",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: column;
font-family: sans-serif;
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
box-sizing: content-box;
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolboxStyleColorsClass=this.styles.addClass(new Re("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var ue=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Re("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Re("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Re("toolbox-panel-row",`
display: flex;
`+(this.displayMode==="inline"?"position: absolute;":"")+`
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
cursor: default;
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
`+(this.displayMode==="inline"?"width: 100%;":"")+`
box-sizing: content-box;
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new Re("toolbox-panel-row_colors",`
background-color: `+((fe=this.uiStyleSettings.toolboxBackgroundColor)!==null&&fe!==void 0?fe:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Re("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*ue)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*ue)+`px;
padding: `+ue+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Re("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Re("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new nt("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new nt("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},ze.prototype.show=function(fe){var ue;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=fe,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ue=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ue!==void 0?ue:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ze.prototype.setPanelButtons=function(fe){var ue,xe,ge=this;this.panels=fe,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((ue=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&ue!==void 0?ue:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((xe=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&xe!==void 0?xe:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(se){var Fe;se.uiStyleSettings=ge.uiStyleSettings;var st=document.createElement("div");st.className=ge.toolboxButtonStyleClass.name+" "+((Fe=ge.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Fe!==void 0?Fe:ge.toolboxButtonStyleColorsClass.name),st.innerHTML=se.icon,st.title=se.title,st.addEventListener("click",function(){ge.panelButtonClick(se)}),ge.panelButtons.push(st),ge.buttonRow.appendChild(st)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ze.prototype.panelButtonClick=function(fe){var ue=this,xe=-1;if(fe!==this.activePanel){xe=this.panels.indexOf(fe),this.panelRow.innerHTML="";var ge=fe.getUi();ge.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ge),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=fe}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ue.displayMode==="inline"?ue.panelRow.style.display="none":ue.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(se,Fe){var st,en;se.className=ue.toolboxButtonStyleClass.name+" "+(Fe===xe?""+((st=ue.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&st!==void 0?st:ue.toolboxActiveButtonStyleColorsClass.name):""+((en=ue.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&en!==void 0?en:ue.toolboxButtonStyleColorsClass.name))})},ze}(),lt=function(ze,fe){this.title=ze,this.icon=fe},Xe=function(ze){function fe(ue,xe,ge,se){var Fe=ze.call(this,ue,se||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return Fe.colors=[],Fe.addTransparent=!1,Fe.colorBoxes=[],Fe.colors=xe,Fe.currentColor=ge,Fe.setCurrentColor=Fe.setCurrentColor.bind(Fe),Fe.getColorBox=Fe.getColorBox.bind(Fe),Fe}return Me(fe,ze),fe.prototype.getUi=function(){var ue=this,xe=document.createElement("div");return xe.style.overflow="hidden",xe.style.whiteSpace="nowrap",this.colors.forEach(function(ge){var se=ue.getColorBox(ge);xe.appendChild(se),ue.colorBoxes.push(se)}),xe},fe.prototype.getColorBox=function(ue){var xe=this,ge=this.uiStyleSettings.toolbarHeight/4,se=this.uiStyleSettings.toolbarHeight-ge,Fe=document.createElement("div");Fe.style.display="inline-block",Fe.style.boxSizing="content-box",Fe.style.width=se-2+"px",Fe.style.height=se-2+"px",Fe.style.padding="1px",Fe.style.marginRight="2px",Fe.style.marginBottom="2px",Fe.style.borderWidth="2px",Fe.style.borderStyle="solid",Fe.style.borderRadius=(se+2)/2+"px",Fe.style.borderColor=ue===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Fe.addEventListener("click",function(){xe.setCurrentColor(ue,Fe)});var st=document.createElement("div");return st.style.display="inline-block",st.style.width=se-2+"px",st.style.height=se-2+"px",st.style.backgroundColor=ue,st.style.borderRadius=se/2+"px",ue==="transparent"&&(st.style.fill=this.uiStyleSettings.toolboxAccentColor,st.innerHTML=`<svg viewBox="0 0 24 24">
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
</svg>`),Fe.appendChild(st),Fe},fe.prototype.setCurrentColor=function(ue,xe){var ge=this;this.currentColor=ue,this.colorBoxes.forEach(function(se){se.style.borderColor=se===xe?ge.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ue)},fe}(lt),ye=function(){function ze(fe,ue,xe){this._state="new",this._isSelected=!1,this._container=fe,this._overlayContainer=ue,this.globalSettings=xe,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ze.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ze.prototype.ownsTarget=function(fe){return!1},Object.defineProperty(ze.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ze.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ze.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ze.prototype.pointerDown=function(fe,ue){},ze.prototype.dblClick=function(fe,ue){},ze.prototype.manipulate=function(fe){},ze.prototype.pointerUp=function(fe){this.stateChanged()},ze.prototype.dispose=function(){},ze.prototype.addMarkerVisualToContainer=function(fe){this.container.childNodes.length>0?this.container.insertBefore(fe,this.container.childNodes[0]):this.container.appendChild(fe)},ze.prototype.getState=function(){return{typeName:ze.typeName,state:this.state,notes:this.notes}},ze.prototype.restoreState=function(fe){this._state=fe.state,this.notes=fe.notes},ze.prototype.scale=function(fe,ue){},ze.prototype.colorChanged=function(fe){this.onColorChanged&&this.onColorChanged(fe),this.stateChanged()},ze.prototype.fillColorChanged=function(fe){this.onFillColorChanged&&this.onFillColorChanged(fe),this.stateChanged()},ze.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var fe=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),fe.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(fe)&&this.onStateChanged(this)}},ze.typeName="MarkerBase",ze}(),vt=function(){function ze(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ze.prototype.findGripByVisual=function(fe){return this.topLeft.ownsTarget(fe)?this.topLeft:this.topCenter.ownsTarget(fe)?this.topCenter:this.topRight.ownsTarget(fe)?this.topRight:this.centerLeft.ownsTarget(fe)?this.centerLeft:this.centerRight.ownsTarget(fe)?this.centerRight:this.bottomLeft.ownsTarget(fe)?this.bottomLeft:this.bottomCenter.ownsTarget(fe)?this.bottomCenter:this.bottomRight.ownsTarget(fe)?this.bottomRight:void 0},ze}(),Pt=function(){function ze(){this.GRIP_SIZE=10,this.visual=ke.createGroup(),this.visual.appendChild(ke.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ke.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ze.prototype.ownsTarget=function(fe){return fe===this.visual||fe===this.visual.childNodes[0]||fe===this.visual.childNodes[1]},ze}(),ot=function(){function ze(){}return ze.toITransformMatrix=function(fe){return{a:fe.a,b:fe.b,c:fe.c,d:fe.d,e:fe.e,f:fe.f}},ze.toSVGMatrix=function(fe,ue){return fe.a=ue.a,fe.b=ue.b,fe.c=ue.c,fe.d=ue.d,fe.e=ue.e,fe.f=ue.f,fe},ze}(),ct=function(ze){function fe(ue,xe,ge){var se=ze.call(this,ue,xe,ge)||this;return se.left=0,se.top=0,se.width=0,se.height=0,se.defaultSize={x:50,y:20},se.offsetX=0,se.offsetY=0,se.rotationAngle=0,se.CB_DISTANCE=10,se._suppressMarkerCreateEvent=!1,se.container.transform.baseVal.appendItem(ke.createTransform()),se.setupControlBox(),se}return Me(fe,ze),Object.defineProperty(fe.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"visual",{get:function(){return this._visual},set:function(ue){this._visual=ue;var xe=ke.createTransform();this._visual.transform.baseVal.appendItem(xe)},enumerable:!1,configurable:!0}),fe.prototype.ownsTarget=function(ue){return!!ze.prototype.ownsTarget.call(this,ue)||!!(this.controlGrips.findGripByVisual(ue)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ue))},fe.prototype.pointerDown=function(ue,xe){ze.prototype.pointerDown.call(this,ue,xe),this.state==="new"&&(this.left=ue.x,this.top=ue.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ge=this.unrotatePoint(ue);if(this.manipulationStartX=ge.x,this.manipulationStartY=ge.y,this.offsetX=ge.x-this.left,this.offsetY=ge.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(xe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(xe)){this.activeGrip=this.rotatorGrip;var se=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=se.x-this.width/2,this.top=se.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Fe=this.container.transform.baseVal.getItem(0);Fe.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Fe,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},fe.prototype.pointerUp=function(ue){var xe=this.state;ze.prototype.pointerUp.call(this,ue),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ue),this._state="select",xe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},fe.prototype.moveVisual=function(ue){this.visual.style.transform="translate("+ue.x+"px, "+ue.y+"px)"},fe.prototype.manipulate=function(ue){var xe=this.unrotatePoint(ue);this.state==="creating"?this.resize(ue):this.state==="move"?(this.left=this.manipulationStartLeft+(xe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(xe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(xe):this.state==="rotate"&&this.rotate(ue)},fe.prototype.resize=function(ue){var xe=this.manipulationStartLeft,ge=this.manipulationStartWidth,se=this.manipulationStartTop,Fe=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:xe=this.manipulationStartLeft+ue.x-this.manipulationStartX,ge=this.manipulationStartWidth+this.manipulationStartLeft-xe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ge=this.manipulationStartWidth+ue.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:se=this.manipulationStartTop+ue.y-this.manipulationStartY,Fe=this.manipulationStartHeight+this.manipulationStartTop-se;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Fe=this.manipulationStartHeight+ue.y-this.manipulationStartY}ge>=0?(this.left=xe,this.width=ge):(this.left=xe+ge,this.width=-ge),Fe>=0?(this.top=se,this.height=Fe):(this.top=se+Fe,this.height=-Fe),this.setSize()},fe.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},fe.prototype.rotate=function(ue){if(Math.abs(ue.x-this.centerX)>.1){var xe=Math.sign(ue.x-this.centerX);this.rotationAngle=180*Math.atan((ue.y-this.centerY)/(ue.x-this.centerX))/Math.PI+90*xe,this.applyRotation()}},fe.prototype.applyRotation=function(){var ue=this.container.transform.baseVal.getItem(0);ue.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ue,0)},fe.prototype.rotatePoint=function(ue){if(this.rotationAngle===0)return ue;var xe=this.container.getCTM(),ge=ke.createPoint(ue.x,ue.y);return{x:(ge=ge.matrixTransform(xe)).x,y:ge.y}},fe.prototype.unrotatePoint=function(ue){if(this.rotationAngle===0)return ue;var xe=this.container.getCTM();xe=xe.inverse();var ge=ke.createPoint(ue.x,ue.y);return{x:(ge=ge.matrixTransform(xe)).x,y:ge.y}},fe.prototype.select=function(){ze.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},fe.prototype.deselect=function(){ze.prototype.deselect.call(this),this.controlBox.style.display="none"},fe.prototype.setupControlBox=function(){this.controlBox=ke.createGroup();var ue=ke.createTransform();ue.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ue),this.container.appendChild(this.controlBox),this.controlRect=ke.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=ke.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new vt,this.addControlGrips(),this.controlBox.style.display="none"},fe.prototype.adjustControlBox=function(){var ue=this.controlBox.transform.baseVal.getItem(0);ue.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(ue,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},fe.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},fe.prototype.createGrip=function(){var ue=new Pt;return ue.visual.transform.baseVal.appendItem(ke.createTransform()),this.controlBox.appendChild(ue.visual),ue},fe.prototype.positionGrips=function(){var ue=this.controlGrips.topLeft.GRIP_SIZE,xe=-ue/2,ge=xe,se=(this.width+this.CB_DISTANCE)/2-ue/2,Fe=(this.height+this.CB_DISTANCE)/2-ue/2,st=this.height+this.CB_DISTANCE-ue/2,en=this.width+this.CB_DISTANCE-ue/2;this.positionGrip(this.controlGrips.topLeft.visual,xe,ge),this.positionGrip(this.controlGrips.topCenter.visual,se,ge),this.positionGrip(this.controlGrips.topRight.visual,en,ge),this.positionGrip(this.controlGrips.centerLeft.visual,xe,Fe),this.positionGrip(this.controlGrips.centerRight.visual,en,Fe),this.positionGrip(this.controlGrips.bottomLeft.visual,xe,st),this.positionGrip(this.controlGrips.bottomCenter.visual,se,st),this.positionGrip(this.controlGrips.bottomRight.visual,en,st),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,se,ge-3*this.CB_DISTANCE)},fe.prototype.positionGrip=function(ue,xe,ge){var se=ue.transform.baseVal.getItem(0);se.setTranslate(xe,ge),ue.transform.baseVal.replaceItem(se,0)},fe.prototype.hideControlBox=function(){this.controlBox.style.display="none"},fe.prototype.showControlBox=function(){this.controlBox.style.display=""},fe.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:ot.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ot.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ze.prototype.getState.call(this))},fe.prototype.restoreState=function(ue){ze.prototype.restoreState.call(this,ue);var xe=ue;this.left=xe.left,this.top=xe.top,this.width=xe.width,this.height=xe.height,this.rotationAngle=xe.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(ot.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,xe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ot.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,xe.containerTransformMatrix))},fe.prototype.scale=function(ue,xe){ze.prototype.scale.call(this,ue,xe);var ge=this.rotatePoint({x:this.left,y:this.top}),se=this.unrotatePoint({x:ge.x*ue,y:ge.y*xe});this.left=se.x,this.top=se.y,this.width=this.width*ue,this.height=this.height*xe,this.adjustControlBox()},fe}(ye),Se=function(ze){function fe(ue,xe,ge){var se=ze.call(this,ue,xe,ge)||this;return se.fillColor="transparent",se.strokeColor="transparent",se.strokeWidth=0,se.strokeDasharray="",se.opacity=1,se.setStrokeColor=se.setStrokeColor.bind(se),se.setFillColor=se.setFillColor.bind(se),se.setStrokeWidth=se.setStrokeWidth.bind(se),se.setStrokeDasharray=se.setStrokeDasharray.bind(se),se.createVisual=se.createVisual.bind(se),se}return Me(fe,ze),fe.prototype.ownsTarget=function(ue){return!(!ze.prototype.ownsTarget.call(this,ue)&&ue!==this.visual)},fe.prototype.createVisual=function(){this.visual=ke.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},fe.prototype.pointerDown=function(ue,xe){ze.prototype.pointerDown.call(this,ue,xe),this.state==="new"&&(this.createVisual(),this.moveVisual(ue),this._state="creating")},fe.prototype.manipulate=function(ue){ze.prototype.manipulate.call(this,ue)},fe.prototype.resize=function(ue){ze.prototype.resize.call(this,ue),this.setSize()},fe.prototype.setSize=function(){ze.prototype.setSize.call(this),ke.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},fe.prototype.pointerUp=function(ue){ze.prototype.pointerUp.call(this,ue),this.setSize()},fe.prototype.setStrokeColor=function(ue){this.strokeColor=ue,this.visual&&ke.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ue),this.stateChanged()},fe.prototype.setFillColor=function(ue){this.fillColor=ue,this.visual&&ke.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},fe.prototype.setStrokeWidth=function(ue){this.strokeWidth=ue,this.visual&&ke.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},fe.prototype.setStrokeDasharray=function(ue){this.strokeDasharray=ue,this.visual&&ke.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},fe.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ze.prototype.getState.call(this))},fe.prototype.restoreState=function(ue){var xe=ue;this.fillColor=xe.fillColor,this.strokeColor=xe.strokeColor,this.strokeWidth=xe.strokeWidth,this.strokeDasharray=xe.strokeDasharray,this.opacity=xe.opacity,this.createVisual(),ze.prototype.restoreState.call(this,ue),this.setSize()},fe.prototype.scale=function(ue,xe){ze.prototype.scale.call(this,ue,xe),this.setSize()},fe.title="Rectangle marker",fe}(ct),ce=function(ze){function fe(ue,xe,ge,se){var Fe=ze.call(this,ue,se||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Fe.widths=[],Fe.widthBoxes=[],Fe.widths=xe,Fe.currentWidth=ge,Fe.setCurrentWidth=Fe.setCurrentWidth.bind(Fe),Fe}return Me(fe,ze),fe.prototype.getUi=function(){var ue=this,xe=document.createElement("div");return xe.style.display="flex",xe.style.overflow="hidden",xe.style.flexGrow="2",this.widths.forEach(function(ge){var se=document.createElement("div");se.style.display="flex",se.style.flexGrow="2",se.style.alignItems="center",se.style.justifyContent="space-between",se.style.padding="5px",se.style.borderWidth="2px",se.style.borderStyle="solid",se.style.borderColor=ge===ue.currentWidth?ue.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){ue.setCurrentWidth(ge,se)}),xe.appendChild(se);var Fe=document.createElement("div");Fe.innerText=ge.toString(),Fe.style.marginRight="5px",se.appendChild(Fe);var st=document.createElement("div");st.style.minHeight="20px",st.style.flexGrow="2",st.style.display="flex",st.style.alignItems="center";var en=document.createElement("hr");en.style.minWidth="20px",en.style.border="0px",en.style.borderTop=ge+"px solid "+ue.uiStyleSettings.toolboxColor,en.style.flexGrow="2",st.appendChild(en),se.appendChild(st),ue.widthBoxes.push(se)}),xe},fe.prototype.setCurrentWidth=function(ue,xe){var ge=this;this.currentWidth=ue,this.widthBoxes.forEach(function(se){se.style.borderColor=se===xe?ge.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},fe}(lt),He=function(ze){function fe(ue,xe,ge,se){var Fe=ze.call(this,ue,se||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return Fe.styles=[],Fe.styleBoxes=[],Fe.styles=xe,Fe.currentStyle=ge,Fe.setCurrentStyle=Fe.setCurrentStyle.bind(Fe),Fe}return Me(fe,ze),fe.prototype.getUi=function(){var ue=this,xe=document.createElement("div");return xe.style.display="flex",xe.style.overflow="hidden",xe.style.flexGrow="2",this.styles.forEach(function(ge){var se=document.createElement("div");se.style.display="flex",se.style.alignItems="center",se.style.justifyContent="space-between",se.style.padding="5px",se.style.borderWidth="2px",se.style.borderStyle="solid",se.style.overflow="hidden",se.style.maxWidth=100/ue.styles.length-5+"%",se.style.borderColor=ge===ue.currentStyle?ue.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){ue.setCurrentStyle(ge,se)}),xe.appendChild(se);var Fe=document.createElement("div");Fe.style.minHeight="20px",Fe.style.flexGrow="2",Fe.style.overflow="hidden";var st=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+ue.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(ge!==""?'stroke-dasharray="'+ge+'"':"")+` />
</svg>`;Fe.innerHTML=st,se.appendChild(Fe),ue.styleBoxes.push(se)}),xe},fe.prototype.setCurrentStyle=function(ue,xe){var ge=this;this.currentStyle=ue,this.styleBoxes.forEach(function(se){se.style.borderColor=se===xe?ge.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},fe}(lt),je=function(ze){function fe(ue,xe,ge){var se=ze.call(this,ue,xe,ge)||this;return se.strokeColor=ge.defaultColor,se.strokeWidth=ge.defaultStrokeWidth,se.strokeDasharray=ge.defaultStrokeDasharray,se.strokePanel=new Xe("Line color",ge.defaultColorSet,ge.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.strokeWidthPanel=new ce("Line width",ge.defaultStrokeWidths,ge.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new He("Line style",ge.defaultStrokeDasharrays,ge.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se}return Me(fe,ze),Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ue=ze.prototype.getState.call(this);return ue.typeName=fe.typeName,ue},fe.typeName="FrameMarker",fe.title="Frame marker",fe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',fe}(Se),it=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},at=function(ze){function fe(ue,xe,ge){var se=ze.call(this,ue,xe,ge)||this;return se.x1=0,se.y1=0,se.x2=0,se.y2=0,se.defaultLength=50,se.manipulationStartX=0,se.manipulationStartY=0,se.manipulationStartX1=0,se.manipulationStartY1=0,se.manipulationStartX2=0,se.manipulationStartY2=0,se.setupControlBox(),se}return Me(fe,ze),fe.prototype.ownsTarget=function(ue){return!!ze.prototype.ownsTarget.call(this,ue)||!(!this.grip1.ownsTarget(ue)&&!this.grip2.ownsTarget(ue))},fe.prototype.pointerDown=function(ue,xe){ze.prototype.pointerDown.call(this,ue,xe),this.manipulationStartX=ue.x,this.manipulationStartY=ue.y,this.state==="new"&&(this.x1=ue.x,this.y1=ue.y,this.x2=ue.x,this.y2=ue.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(xe)?this.activeGrip=this.grip1:this.grip2.ownsTarget(xe)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},fe.prototype.pointerUp=function(ue){var xe=this.state;ze.prototype.pointerUp.call(this,ue),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(ue),this._state="select",xe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},fe.prototype.adjustVisual=function(){},fe.prototype.manipulate=function(ue){this.state==="creating"?this.resize(ue):this.state==="move"?(this.x1=this.manipulationStartX1+ue.x-this.manipulationStartX,this.y1=this.manipulationStartY1+ue.y-this.manipulationStartY,this.x2=this.manipulationStartX2+ue.x-this.manipulationStartX,this.y2=this.manipulationStartY2+ue.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(ue)},fe.prototype.resize=function(ue){switch(this.activeGrip){case this.grip1:this.x1=ue.x,this.y1=ue.y;break;case this.grip2:case void 0:this.x2=ue.x,this.y2=ue.y}this.adjustVisual(),this.adjustControlBox()},fe.prototype.select=function(){ze.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},fe.prototype.deselect=function(){ze.prototype.deselect.call(this),this.controlBox.style.display="none"},fe.prototype.setupControlBox=function(){this.controlBox=ke.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},fe.prototype.adjustControlBox=function(){this.positionGrips()},fe.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},fe.prototype.createGrip=function(){var ue=new Pt;return ue.visual.transform.baseVal.appendItem(ke.createTransform()),this.controlBox.appendChild(ue.visual),ue},fe.prototype.positionGrips=function(){var ue=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ue/2,this.y1-ue/2),this.positionGrip(this.grip2.visual,this.x2-ue/2,this.y2-ue/2)},fe.prototype.positionGrip=function(ue,xe,ge){var se=ue.transform.baseVal.getItem(0);se.setTranslate(xe,ge),ue.transform.baseVal.replaceItem(se,0)},fe.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ze.prototype.getState.call(this))},fe.prototype.restoreState=function(ue){ze.prototype.restoreState.call(this,ue);var xe=ue;this.x1=xe.x1,this.y1=xe.y1,this.x2=xe.x2,this.y2=xe.y2},fe.prototype.scale=function(ue,xe){ze.prototype.scale.call(this,ue,xe),this.x1=this.x1*ue,this.y1=this.y1*xe,this.x2=this.x2*ue,this.y2=this.y2*xe,this.adjustVisual(),this.adjustControlBox()},fe}(ye),Ge=function(ze){function fe(ue,xe,ge){var se=ze.call(this,ue,xe,ge)||this;return se.strokeColor="transparent",se.strokeWidth=0,se.strokeDasharray="",se.setStrokeColor=se.setStrokeColor.bind(se),se.setStrokeWidth=se.setStrokeWidth.bind(se),se.setStrokeDasharray=se.setStrokeDasharray.bind(se),se.strokeColor=ge.defaultColor,se.strokeWidth=ge.defaultStrokeWidth,se.strokeDasharray=ge.defaultStrokeDasharray,se.strokePanel=new Xe("Line color",ge.defaultColorSet,ge.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.strokeWidthPanel=new ce("Line width",ge.defaultStrokeWidths,ge.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new He("Line style",ge.defaultStrokeDasharrays,ge.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se}return Me(fe,ze),fe.prototype.ownsTarget=function(ue){return!(!ze.prototype.ownsTarget.call(this,ue)&&ue!==this.visual&&ue!==this.selectorLine&&ue!==this.visibleLine)},fe.prototype.createVisual=function(){this.visual=ke.createGroup(),this.selectorLine=ke.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=ke.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},fe.prototype.pointerDown=function(ue,xe){ze.prototype.pointerDown.call(this,ue,xe),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},fe.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),ke.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),ke.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),ke.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},fe.prototype.setStrokeColor=function(ue){this.strokeColor=ue,this.adjustVisual(),this.colorChanged(ue)},fe.prototype.setStrokeWidth=function(ue){this.strokeWidth=ue,this.adjustVisual()},fe.prototype.setStrokeDasharray=function(ue){this.strokeDasharray=ue,this.adjustVisual(),this.stateChanged()},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ue=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ze.prototype.getState.call(this));return ue.typeName=fe.typeName,ue},fe.prototype.restoreState=function(ue){ze.prototype.restoreState.call(this,ue);var xe=ue;this.strokeColor=xe.strokeColor,this.strokeWidth=xe.strokeWidth,this.strokeDasharray=xe.strokeDasharray,this.createVisual(),this.adjustVisual()},fe.typeName="LineMarker",fe.title="Line marker",fe.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',fe}(at),Ae=function(ze){function fe(ue,xe,ge,se){var Fe=ze.call(this,ue,se||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return Fe.fonts=[],Fe.fontBoxes=[],Fe.fonts=xe,Fe.currentFont=ge,Fe.setCurrentFont=Fe.setCurrentFont.bind(Fe),Fe}return Me(fe,ze),fe.prototype.getUi=function(){var ue=this,xe=document.createElement("div");return xe.style.overflow="hidden",xe.style.flexGrow="2",this.fonts.forEach(function(ge){var se=document.createElement("div");se.style.display="inline-block",se.style.alignItems="center",se.style.justifyContent="space-between",se.style.padding="5px",se.style.borderWidth="2px",se.style.borderStyle="solid",se.style.overflow="hidden",se.style.maxWidth=100/ue.fonts.length-5+"%",se.style.borderColor=ge===ue.currentFont?ue.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){ue.setCurrentFont(ge,se)}),xe.appendChild(se);var Fe=document.createElement("div");Fe.style.display="flex",Fe.style.minHeight="20px",Fe.style.flexGrow="2",Fe.style.fontFamily=ge,Fe.style.overflow="hidden";var st=document.createElement("div");st.style.whiteSpace="nowrap",st.style.overflow="hidden",st.style.textOverflow="ellipsis",st.innerHTML="The quick brown fox jumps over the lazy dog",Fe.appendChild(st),se.appendChild(Fe),ue.fontBoxes.push(se)}),xe},fe.prototype.setCurrentFont=function(ue,xe){var ge=this;this.currentFont=ue,this.fontBoxes.forEach(function(se){se.style.borderColor=se===xe?ge.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},fe}(lt),wt=function(ze){function fe(ue,xe,ge){var se=ze.call(this,ue,xe,ge)||this;return se.color="transparent",se.padding=5,se.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",se.text=se.DEFAULT_TEXT,se.isMoved=!1,se.color=ge.defaultColor,se.fontFamily=ge.defaultFontFamily,se.defaultSize={x:100,y:30},se.setColor=se.setColor.bind(se),se.setFont=se.setFont.bind(se),se.renderText=se.renderText.bind(se),se.sizeText=se.sizeText.bind(se),se.textEditDivClicked=se.textEditDivClicked.bind(se),se.showTextEditor=se.showTextEditor.bind(se),se.setSize=se.setSize.bind(se),se.positionTextEditor=se.positionTextEditor.bind(se),se.colorPanel=new Xe("Color",ge.defaultColorSet,ge.defaultColor),se.colorPanel.onColorChanged=se.setColor,se.fontFamilyPanel=new Ae("Font",ge.defaultFontFamilies,ge.defaultFontFamily),se.fontFamilyPanel.onFontChanged=se.setFont,se}return Me(fe,ze),fe.prototype.ownsTarget=function(ue){if(ze.prototype.ownsTarget.call(this,ue)||ue===this.visual||ue===this.textElement||ue===this.bgRectangle)return!0;var xe=!1;return this.textElement.childNodes.forEach(function(ge){ge===ue&&(xe=!0)}),xe},fe.prototype.createVisual=function(){this.visual=ke.createGroup(),this.bgRectangle=ke.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=ke.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(ke.createTransform()),this.textElement.transform.baseVal.appendItem(ke.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},fe.prototype.pointerDown=function(ue,xe){ze.prototype.pointerDown.call(this,ue,xe),this.isMoved=!1,this.pointerDownPoint=ue,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ue),this._state="creating")},fe.prototype.renderText=function(){var ue=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(xe){ue.textElement.appendChild(ke.createTSpan(xe.trim()===""?" ":xe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},fe.prototype.getTextScale=function(){var ue=this.textElement.getBBox(),xe=1;if(ue.width>0&&ue.height>0){var ge=(1*this.width-this.width*this.padding*2/100)/ue.width,se=(1*this.height-this.height*this.padding*2/100)/ue.height;xe=Math.min(ge,se)}return xe},fe.prototype.getTextPosition=function(ue){var xe=this.textElement.getBBox(),ge=0,se=0;return xe.width>0&&xe.height>0&&(ge=(this.width-xe.width*ue)/2,se=this.height/2-xe.height*ue/2),{x:ge,y:se}},fe.prototype.sizeText=function(){var ue=this.textElement.getBBox(),xe=this.getTextScale(),ge=this.getTextPosition(xe);ge.y-=ue.y*xe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ge.x+"px, "+ge.y+"px) scale("+xe+", "+xe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ge.x,ge.y),this.textElement.transform.baseVal.getItem(1).setScale(xe,xe))},fe.prototype.manipulate=function(ue){ze.prototype.manipulate.call(this,ue),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ue.x-this.pointerDownPoint.x)>5||Math.abs(ue.y-this.pointerDownPoint.y)>5)},fe.prototype.resize=function(ue){ze.prototype.resize.call(this,ue),this.isMoved=!0,this.setSize(),this.sizeText()},fe.prototype.setSize=function(){ze.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(ke.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ke.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},fe.prototype.pointerUp=function(ue){var xe=this.state;xe==="creating"&&(this._suppressMarkerCreateEvent=!0),ze.prototype.pointerUp.call(this,ue),this.setSize(),(xe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},fe.prototype.showTextEditor=function(){var ue=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(xe){xe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var xe=Number.parseFloat(ue.textEditor.style.fontSize);ue.textEditor.clientWidth>=Number.parseInt(ue.textEditor.style.maxWidth)&&xe>.9;)xe-=.1,ue.textEditor.style.fontSize=Math.max(xe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(xe){xe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(xe){if(xe.clipboardData){var ge=xe.clipboardData.getData("text"),se=window.getSelection();if(!se.rangeCount)return!1;se.deleteFromDocument(),se.getRangeAt(0).insertNode(document.createTextNode(ge)),xe.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ue.textEditDivClicked(ue.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},fe.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ue=this.getTextScale(),xe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ge=this.textElement.getBBox(),se={x:ge.width*ue,y:ge.height*ue};xe.x-=se.x/2,xe.y-=se.y/2,this.textEditor.style.top=xe.y+"px",this.textEditor.style.left=xe.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-xe.x+"px",this.textEditor.style.fontSize=Math.max(16*ue,12)+"px",this.textElement.style.display="none"}},fe.prototype.textEditDivClicked=function(ue){this.text=ue.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},fe.prototype.select=function(){ze.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},fe.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ze.prototype.deselect.call(this)},fe.prototype.dblClick=function(ue,xe){ze.prototype.dblClick.call(this,ue,xe),this.showTextEditor()},fe.prototype.setColor=function(ue){this.textElement&&ke.setAttributes(this.textElement,[["fill",ue]]),this.color=ue,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(ue)},fe.prototype.setFont=function(ue){this.textElement&&ke.setAttributes(this.textElement,[["font-family",ue]]),this.fontFamily=ue,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},fe.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},fe.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ue=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ze.prototype.getState.call(this));return ue.typeName=fe.typeName,ue},fe.prototype.restoreState=function(ue){var xe=ue;this.color=xe.color,this.fontFamily=xe.fontFamily,this.padding=xe.padding,this.text=xe.text,this.createVisual(),ze.prototype.restoreState.call(this,ue),this.setSize()},fe.prototype.scale=function(ue,xe){ze.prototype.scale.call(this,ue,xe),this.setSize(),this.sizeText(),this.positionTextEditor()},fe.typeName="TextMarker",fe.title="Text marker",fe.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',fe}(ct),dt=function(ze){function fe(ue,xe,ge){var se=ze.call(this,ue,xe,ge)||this;return se.color="transparent",se.lineWidth=3,se.drawing=!1,se.pixelRatio=1,se.color=ge.defaultColor,se.lineWidth=ge.defaultStrokeWidth,se.pixelRatio=ge.freehandPixelRatio,se.setColor=se.setColor.bind(se),se.addCanvas=se.addCanvas.bind(se),se.finishCreation=se.finishCreation.bind(se),se.setLineWidth=se.setLineWidth.bind(se),se.colorPanel=new Xe("Color",ge.defaultColorSet,ge.defaultColor),se.colorPanel.onColorChanged=se.setColor,se.lineWidthPanel=new ce("Line width",ge.defaultStrokeWidths,ge.defaultStrokeWidth),se.lineWidthPanel.onWidthChanged=se.setLineWidth,se}return Me(fe,ze),fe.prototype.ownsTarget=function(ue){return!(!ze.prototype.ownsTarget.call(this,ue)&&ue!==this.visual&&ue!==this.drawingImage)},fe.prototype.createVisual=function(){this.visual=ke.createGroup(),this.drawingImage=ke.createImage(),this.visual.appendChild(this.drawingImage);var ue=ke.createTransform();this.visual.transform.baseVal.appendItem(ue),this.addMarkerVisualToContainer(this.visual)},fe.prototype.pointerDown=function(ue,xe){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(ue.x,ue.y),this.drawing=!0):ze.prototype.pointerDown.call(this,ue,xe)},fe.prototype.manipulate=function(ue){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ue.x,ue.y),this.canvasContext.stroke()):ze.prototype.manipulate.call(this,ue)},fe.prototype.resize=function(ue){ze.prototype.resize.call(this,ue),ke.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ke.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},fe.prototype.pointerUp=function(ue){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ze.prototype.pointerUp.call(this,ue)},fe.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},fe.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ze.prototype.select.call(this)},fe.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ze.prototype.deselect.call(this)},fe.prototype.finishCreation=function(){for(var ue=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),xe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ge=xe[0],se=xe[1],Fe=xe[2],st=xe[3],en=!1,Sn=0;Sn<this.canvasElement.height;Sn++)for(var dn=0;dn<this.canvasElement.width;dn++)ue.data[Sn*this.canvasElement.width*4+4*dn+3]>0&&(en=!0,Sn<se&&(se=Sn),dn<ge&&(ge=dn),Sn>st&&(st=Sn),dn>Fe&&(Fe=dn));if(en){this.left=ge/this.pixelRatio,this.top=se/this.pixelRatio,this.width=(Fe-ge)/this.pixelRatio,this.height=(st-se)/this.pixelRatio;var zn=document.createElement("canvas");zn.width=Fe-ge,zn.height=st-se,zn.getContext("2d").putImageData(this.canvasContext.getImageData(ge,se,Fe-ge,st-se),0,0),this.drawingImgUrl=zn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},fe.prototype.setDrawingImage=function(){ke.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),ke.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},fe.prototype.setColor=function(ue){this.color=ue,this.colorChanged(ue)},fe.prototype.setLineWidth=function(ue){this.lineWidth=ue},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ue=Object.assign({drawingImgUrl:this.drawingImgUrl},ze.prototype.getState.call(this));return ue.typeName=fe.typeName,ue},fe.prototype.restoreState=function(ue){this.createVisual(),ze.prototype.restoreState.call(this,ue),this.drawingImgUrl=ue.drawingImgUrl,this.setDrawingImage()},fe.prototype.scale=function(ue,xe){ze.prototype.scale.call(this,ue,xe),this.setDrawingImage()},fe.typeName="FreehandMarker",fe.title="Freehand marker",fe.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',fe}(ct),$t=function(ze){function fe(ue,xe,ge){var se=ze.call(this,ue,ge||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return se.typeBoxes=[],se.currentType=xe,se.setCurrentType=se.setCurrentType.bind(se),se}return Me(fe,ze),fe.prototype.getUi=function(){var ue=this,xe=document.createElement("div");xe.style.display="flex",xe.style.overflow="hidden",xe.style.flexGrow="2";for(var ge=function(st){var en="both";switch(st){case 0:en="both";break;case 1:en="start";break;case 2:en="end";break;case 3:en="none"}var Sn=document.createElement("div");if(Sn.style.display="flex",Sn.style.flexGrow="2",Sn.style.alignItems="center",Sn.style.justifyContent="space-between",Sn.style.padding="5px",Sn.style.borderWidth="2px",Sn.style.borderStyle="solid",Sn.style.borderColor=en===se.currentType?se.uiStyleSettings.toolboxAccentColor:"transparent",Sn.addEventListener("click",function(){ue.setCurrentType(en,Sn)}),xe.appendChild(Sn),en==="both"||en==="start"){var dn=document.createElement("div");dn.style.display="flex",dn.style.alignItems="center",dn.style.minHeight="20px",dn.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,5 10,0 10,10" fill="`+(se.uiStyleSettings!==void 0?se.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,dn.style.marginLeft="5px",Sn.appendChild(dn)}var zn=document.createElement("div");zn.style.display="flex",zn.style.alignItems="center",zn.style.minHeight="20px",zn.style.flexGrow="2";var vn=document.createElement("hr");if(vn.style.minWidth="20px",vn.style.border="0px",vn.style.borderTop="3px solid "+(se.uiStyleSettings!==void 0?se.uiStyleSettings.toolboxColor:"#eeeeee"),vn.style.flexGrow="2",zn.appendChild(vn),Sn.appendChild(zn),en==="both"||en==="end"){var kt=document.createElement("div");kt.style.display="flex",kt.style.alignItems="center",kt.style.minHeight="20px",kt.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,0 10,5 0,10" fill="`+(se.uiStyleSettings!==void 0?se.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,kt.style.marginRight="5px",Sn.appendChild(kt)}se.typeBoxes.push(Sn)},se=this,Fe=0;Fe<4;Fe++)ge(Fe);return xe},fe.prototype.setCurrentType=function(ue,xe){var ge=this;this.currentType=ue,this.typeBoxes.forEach(function(se){se.style.borderColor=se===xe?ge.uiStyleSettings!==void 0?ge.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},fe}(lt),bt=function(ze){function fe(ue,xe,ge){var se=ze.call(this,ue,xe,ge)||this;return se.arrowType="end",se.arrowBaseHeight=10,se.arrowBaseWidth=10,se.getArrowPoints=se.getArrowPoints.bind(se),se.setArrowType=se.setArrowType.bind(se),se.arrowTypePanel=new $t("Arrow type","end"),se.arrowTypePanel.onArrowTypeChanged=se.setArrowType,se}return Me(fe,ze),fe.prototype.ownsTarget=function(ue){return!(!ze.prototype.ownsTarget.call(this,ue)&&ue!==this.arrow1&&ue!==this.arrow2)},fe.prototype.getArrowPoints=function(ue,xe){var ge=this.arrowBaseWidth+2*this.strokeWidth,se=this.arrowBaseHeight+2*this.strokeWidth;return ue-ge/2+","+(xe+se/2)+" "+ue+","+(xe-se/2)+" "+(ue+ge/2)+","+(xe+se/2)},fe.prototype.createTips=function(){this.arrow1=ke.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(ke.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=ke.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(ke.createTransform()),this.visual.appendChild(this.arrow2)},fe.prototype.pointerDown=function(ue,xe){ze.prototype.pointerDown.call(this,ue,xe),this.state==="creating"&&this.createTips()},fe.prototype.adjustVisual=function(){if(ze.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",ke.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),ke.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var ue=0;Math.abs(this.x1-this.x2)>.1&&(ue=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var xe=this.arrow1.transform.baseVal.getItem(0);xe.setRotate(ue,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(xe,0);var ge=this.arrow2.transform.baseVal.getItem(0);ge.setRotate(ue+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ge,0)}},fe.prototype.setArrowType=function(ue){this.arrowType=ue,this.adjustVisual(),this.stateChanged()},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ue=Object.assign({arrowType:this.arrowType},ze.prototype.getState.call(this));return ue.typeName=fe.typeName,ue},fe.prototype.restoreState=function(ue){ze.prototype.restoreState.call(this,ue);var xe=ue;this.arrowType=xe.arrowType,this.createTips(),this.adjustVisual()},fe.typeName="ArrowMarker",fe.title="Arrow marker",fe.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',fe}(Ge),Ot=function(ze){function fe(ue,xe,ge){var se=ze.call(this,ue,xe,ge)||this;return se.fillColor=ge.defaultFillColor,se.strokeWidth=0,se.fillPanel=new Xe("Color",ge.defaultColorSet,ge.defaultFillColor),se.fillPanel.onColorChanged=se.setFillColor,se}return Me(fe,ze),Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ue=ze.prototype.getState.call(this);return ue.typeName=fe.typeName,ue},fe.typeName="CoverMarker",fe.title="Cover marker",fe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',fe}(Se),Pn=function(ze){function fe(ue,xe,ge,se){var Fe=ze.call(this,ue,se||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return Fe.opacities=[],Fe.opacityBoxes=[],Fe.opacities=xe,Fe.currentOpacity=ge,Fe.setCurrentOpacity=Fe.setCurrentOpacity.bind(Fe),Fe}return Me(fe,ze),fe.prototype.getUi=function(){var ue=this,xe=document.createElement("div");return xe.style.display="flex",xe.style.overflow="hidden",xe.style.flexGrow="2",xe.style.justifyContent="space-between",this.opacities.forEach(function(ge){var se=document.createElement("div");se.style.display="flex",se.style.alignItems="center",se.style.justifyContent="center",se.style.padding="5px",se.style.borderWidth="2px",se.style.borderStyle="solid",se.style.borderColor=ge===ue.currentOpacity?ue.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){ue.setCurrentOpacity(ge,se)}),xe.appendChild(se);var Fe=document.createElement("div");Fe.innerText=100*ge+"%",se.appendChild(Fe),ue.opacityBoxes.push(se)}),xe},fe.prototype.setCurrentOpacity=function(ue,xe){var ge=this;this.currentOpacity=ue,this.opacityBoxes.forEach(function(se){se.style.borderColor=se===xe?ge.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},fe}(lt),$n=function(ze){function fe(ue,xe,ge){var se=ze.call(this,ue,xe,ge)||this;return se.setOpacity=se.setOpacity.bind(se),se.fillColor=ge.defaultHighlightColor,se.strokeWidth=0,se.opacity=ge.defaultHighlightOpacity,se.fillPanel=new Xe("Color",ge.defaultColorSet,se.fillColor),se.fillPanel.onColorChanged=se.setFillColor,se.opacityPanel=new Pn("Opacity",ge.defaultOpacitySteps,se.opacity),se.opacityPanel.onOpacityChanged=se.setOpacity,se}return Me(fe,ze),fe.prototype.setOpacity=function(ue){this.opacity=ue,this.visual&&ke.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ue=ze.prototype.getState.call(this);return ue.typeName=fe.typeName,ue},fe.typeName="HighlightMarker",fe.title="Highlight marker",fe.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',fe}(Ot),yt='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',Be='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',Rt=function(ze){function fe(ue,xe,ge){var se=ze.call(this,ue,xe,ge)||this;return se.bgColor="transparent",se.tipPosition={x:0,y:0},se.tipBase1Position={x:0,y:0},se.tipBase2Position={x:0,y:0},se.tipMoving=!1,se.color=ge.defaultStrokeColor,se.bgColor=ge.defaultFillColor,se.fontFamily=ge.defaultFontFamily,se.defaultSize={x:100,y:30},se.setBgColor=se.setBgColor.bind(se),se.getTipPoints=se.getTipPoints.bind(se),se.positionTip=se.positionTip.bind(se),se.setTipPoints=se.setTipPoints.bind(se),se.colorPanel=new Xe("Text color",ge.defaultColorSet,se.color,yt),se.colorPanel.onColorChanged=se.setColor,se.bgColorPanel=new Xe("Fill color",ge.defaultColorSet,se.bgColor,Be),se.bgColorPanel.onColorChanged=se.setBgColor,se.fontFamilyPanel=new Ae("Font",ge.defaultFontFamilies,ge.defaultFontFamily),se.fontFamilyPanel.onFontChanged=se.setFont,se.tipGrip=new Pt,se.tipGrip.visual.transform.baseVal.appendItem(ke.createTransform()),se.controlBox.appendChild(se.tipGrip.visual),se}return Me(fe,ze),fe.prototype.ownsTarget=function(ue){return ze.prototype.ownsTarget.call(this,ue)||this.tipGrip.ownsTarget(ue)||this.tip===ue},fe.prototype.createTip=function(){ke.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=ke.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},fe.prototype.pointerDown=function(ue,xe){this.state==="new"&&ze.prototype.pointerDown.call(this,ue,xe),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(xe)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ze.prototype.pointerDown.call(this,ue,xe)},fe.prototype.pointerUp=function(ue){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ze.prototype.pointerUp.call(this,ue);else{var xe=this.state==="creating";ze.prototype.pointerUp.call(this,ue),this.setTipPoints(xe),this.positionTip()}},fe.prototype.manipulate=function(ue){if(this.tipMoving){var xe=this.unrotatePoint(ue);this.tipPosition={x:xe.x-this.manipulationStartLeft,y:xe.y-this.manipulationStartTop},this.positionTip()}else ze.prototype.manipulate.call(this,ue)},fe.prototype.setBgColor=function(ue){this.bgRectangle&&this.tip&&(ke.setAttributes(this.bgRectangle,[["fill",ue]]),ke.setAttributes(this.tip,[["fill",ue]])),this.bgColor=ue,this.fillColorChanged(ue)},fe.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},fe.prototype.setTipPoints=function(ue){ue===void 0&&(ue=!1);var xe=Math.min(this.height/2,15),ge=this.height/5;ue&&(this.tipPosition={x:xe+ge/2,y:this.height+20});var se=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?se<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(ge=this.width/5,xe=Math.min(this.width/2,15),this.tipBase1Position={x:xe,y:0},this.tipBase2Position={x:xe+ge,y:0}):(this.tipBase1Position={x:0,y:xe},this.tipBase2Position={x:0,y:xe+ge}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?se<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(ge=this.width/5,xe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-xe-ge,y:0},this.tipBase2Position={x:this.width-xe,y:0}):(this.tipBase1Position={x:this.width,y:xe},this.tipBase2Position={x:this.width,y:xe+ge}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?se<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(ge=this.width/5,xe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-xe-ge,y:this.height},this.tipBase2Position={x:this.width-xe,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-xe-ge},this.tipBase2Position={x:this.width,y:this.height-xe}):se<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(ge=this.width/5,xe=Math.min(this.width/2,15),this.tipBase1Position={x:xe,y:this.height},this.tipBase2Position={x:xe+ge,y:this.height}):(this.tipBase1Position={x:0,y:this.height-xe},this.tipBase2Position={x:0,y:this.height-xe-ge})},fe.prototype.resize=function(ue){ze.prototype.resize.call(this,ue),this.positionTip()},fe.prototype.positionTip=function(){ke.setAttributes(this.tip,[["points",this.getTipPoints()]]);var ue=this.tipGrip.visual.transform.baseVal.getItem(0);ue.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(ue,0)},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),fe.prototype.select=function(){this.positionTip(),ze.prototype.select.call(this)},fe.prototype.getState=function(){var ue=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},ze.prototype.getState.call(this));return ue.typeName=fe.typeName,ue},fe.prototype.restoreState=function(ue){var xe=ue;this.bgColor=xe.bgColor,this.tipPosition=xe.tipPosition,ze.prototype.restoreState.call(this,ue),this.createTip(),this.setTipPoints()},fe.prototype.scale=function(ue,xe){ze.prototype.scale.call(this,ue,xe),this.tipPosition={x:this.tipPosition.x*ue,y:this.tipPosition.y*xe},this.positionTip()},fe.typeName="CalloutMarker",fe.title="Callout marker",fe.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',fe}(wt),Vn=function(ze){function fe(ue,xe,ge){var se=ze.call(this,ue,xe,ge)||this;return se.fillColor="transparent",se.strokeColor="transparent",se.strokeWidth=0,se.strokeDasharray="",se.opacity=1,se.strokeColor=ge.defaultColor,se.strokeWidth=ge.defaultStrokeWidth,se.strokeDasharray=ge.defaultStrokeDasharray,se.fillColor=ge.defaultFillColor,se.setStrokeColor=se.setStrokeColor.bind(se),se.setFillColor=se.setFillColor.bind(se),se.setStrokeWidth=se.setStrokeWidth.bind(se),se.setStrokeDasharray=se.setStrokeDasharray.bind(se),se.setOpacity=se.setOpacity.bind(se),se.createVisual=se.createVisual.bind(se),se.strokePanel=new Xe("Line color",be(ge.defaultColorSet,["transparent"]),ge.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.fillPanel=new Xe("Fill color",be(ge.defaultColorSet,["transparent"]),se.fillColor,Be),se.fillPanel.onColorChanged=se.setFillColor,se.strokeWidthPanel=new ce("Line width",ge.defaultStrokeWidths,ge.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new He("Line style",ge.defaultStrokeDasharrays,ge.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se.opacityPanel=new Pn("Opacity",ge.defaultOpacitySteps,se.opacity),se.opacityPanel.onOpacityChanged=se.setOpacity,se}return Me(fe,ze),fe.prototype.ownsTarget=function(ue){return!(!ze.prototype.ownsTarget.call(this,ue)&&ue!==this.visual)},fe.prototype.createVisual=function(){this.visual=ke.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},fe.prototype.pointerDown=function(ue,xe){ze.prototype.pointerDown.call(this,ue,xe),this.state==="new"&&(this.createVisual(),this.moveVisual(ue),this._state="creating")},fe.prototype.manipulate=function(ue){ze.prototype.manipulate.call(this,ue)},fe.prototype.resize=function(ue){ze.prototype.resize.call(this,ue),this.setSize()},fe.prototype.setSize=function(){ze.prototype.setSize.call(this),ke.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},fe.prototype.pointerUp=function(ue){ze.prototype.pointerUp.call(this,ue),this.setSize()},fe.prototype.setStrokeColor=function(ue){this.strokeColor=ue,this.visual&&ke.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ue),this.stateChanged()},fe.prototype.setFillColor=function(ue){this.fillColor=ue,this.visual&&ke.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(ue),this.stateChanged()},fe.prototype.setStrokeWidth=function(ue){this.strokeWidth=ue,this.visual&&ke.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},fe.prototype.setStrokeDasharray=function(ue){this.strokeDasharray=ue,this.visual&&ke.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},fe.prototype.setOpacity=function(ue){this.opacity=ue,this.visual&&ke.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ue=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ze.prototype.getState.call(this));return ue.typeName=fe.typeName,ue},fe.prototype.restoreState=function(ue){var xe=ue;this.fillColor=xe.fillColor,this.strokeColor=xe.strokeColor,this.strokeWidth=xe.strokeWidth,this.strokeDasharray=xe.strokeDasharray,this.opacity=xe.opacity,this.createVisual(),ze.prototype.restoreState.call(this,ue),this.setSize()},fe.prototype.scale=function(ue,xe){ze.prototype.scale.call(this,ue,xe),this.setSize()},fe.typeName="EllipseMarker",fe.title="Ellipse marker",fe.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',fe}(ct),In=function(ze){function fe(ue,xe,ge){return ze.call(this,ue,xe,ge)||this}return Me(fe,ze),Object.defineProperty(fe.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),fe.prototype.ownsTarget=function(ue){return!(!ze.prototype.ownsTarget.call(this,ue)&&ue!==this.tip1&&ue!==this.tip2)},fe.prototype.createTips=function(){this.tip1=ke.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(ke.createTransform()),this.visual.appendChild(this.tip1),this.tip2=ke.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(ke.createTransform()),this.visual.appendChild(this.tip2)},fe.prototype.pointerDown=function(ue,xe){ze.prototype.pointerDown.call(this,ue,xe),this.state==="creating"&&this.createTips()},fe.prototype.adjustVisual=function(){if(ze.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(ke.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),ke.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var ue=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),xe=this.tip1.transform.baseVal.getItem(0);xe.setRotate(ue,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(xe,0);var ge=this.tip2.transform.baseVal.getItem(0);ge.setRotate(ue+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ge,0)}},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ue=ze.prototype.getState.call(this);return ue.typeName=fe.typeName,ue},fe.prototype.restoreState=function(ue){ze.prototype.restoreState.call(this,ue),this.createTips(),this.adjustVisual()},fe.typeName="MeasurementMarker",fe.title="Measurement marker",fe.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',fe}(Ge),xt=function(ze){function fe(ue,xe,ge){var se=ze.call(this,ue,xe,ge)||this;return se.strokePanel.colors=ge.defaultColorSet,se.fillColor="transparent",se}return Me(fe,ze),Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ue=ze.prototype.getState.call(this);return ue.typeName=fe.typeName,ue},fe.typeName="EllipseFrameMarker",fe.title="Ellipse frame marker",fe.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',fe}(Vn),Mt=function(){function ze(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ze.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ze.prototype.addUndoStep=function(fe){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(fe)||(this.undoStack.push(fe),JSON.stringify(this.lastRedoStep)!==JSON.stringify(fe)&&this.redoStack.splice(0,this.redoStack.length))},ze.prototype.replaceLastUndoStep=function(fe){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=fe)},ze.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ze.prototype.undo=function(){if(this.undoStack.length>1){var fe=this.undoStack.pop();return fe!==void 0&&this.redoStack.push(fe),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ze.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ze}(),qt=function(ze){function fe(ue,xe,ge){var se=ze.call(this,ue,xe,ge)||this;return se.strokeColor="transparent",se.strokeWidth=0,se.strokeDasharray="",se.curveX=0,se.curveY=0,se.manipulationStartCurveX=0,se.manipulationStartCurveY=0,se.setStrokeColor=se.setStrokeColor.bind(se),se.setStrokeWidth=se.setStrokeWidth.bind(se),se.setStrokeDasharray=se.setStrokeDasharray.bind(se),se.positionGrips=se.positionGrips.bind(se),se.addControlGrips=se.addControlGrips.bind(se),se.adjustVisual=se.adjustVisual.bind(se),se.setupControlBox=se.setupControlBox.bind(se),se.resize=se.resize.bind(se),se.strokeColor=ge.defaultColor,se.strokeWidth=ge.defaultStrokeWidth,se.strokeDasharray=ge.defaultStrokeDasharray,se.strokePanel=new Xe("Line color",ge.defaultColorSet,ge.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.strokeWidthPanel=new ce("Line width",ge.defaultStrokeWidths,ge.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new He("Line style",ge.defaultStrokeDasharrays,ge.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se}return Me(fe,ze),fe.prototype.ownsTarget=function(ue){return!(!ze.prototype.ownsTarget.call(this,ue)&&ue!==this.visual&&ue!==this.selectorCurve&&ue!==this.visibleCurve&&!this.curveGrip.ownsTarget(ue))},fe.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},fe.prototype.createVisual=function(){this.visual=ke.createGroup(),this.selectorCurve=ke.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=ke.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},fe.prototype.pointerDown=function(ue,xe){ze.prototype.pointerDown.call(this,ue,xe),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=ue.x,this.curveY=ue.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(xe)&&(this.activeGrip=this.curveGrip,this._state="resize")},fe.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),ke.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),ke.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),ke.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},fe.prototype.setupControlBox=function(){ze.prototype.setupControlBox.call(this),this.curveControlLine1=ke.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=ke.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},fe.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ze.prototype.addControlGrips.call(this)},fe.prototype.positionGrips=function(){ze.prototype.positionGrips.call(this);var ue=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-ue/2,this.curveY-ue/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},fe.prototype.manipulate=function(ue){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+ue.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+ue.y-this.manipulationStartY),ze.prototype.manipulate.call(this,ue)},fe.prototype.resize=function(ue){this.activeGrip===this.curveGrip&&(this.curveX=ue.x,this.curveY=ue.y),ze.prototype.resize.call(this,ue),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},fe.prototype.setStrokeColor=function(ue){this.strokeColor=ue,this.adjustVisual(),this.colorChanged(ue)},fe.prototype.setStrokeWidth=function(ue){this.strokeWidth=ue,this.adjustVisual()},fe.prototype.setStrokeDasharray=function(ue){this.strokeDasharray=ue,this.adjustVisual()},fe.prototype.scale=function(ue,xe){this.curveX=this.curveX*ue,this.curveY=this.curveY*xe,ze.prototype.scale.call(this,ue,xe)},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ue=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ze.prototype.getState.call(this));return ue.typeName=fe.typeName,ue},fe.prototype.restoreState=function(ue){ze.prototype.restoreState.call(this,ue);var xe=ue;this.strokeColor=xe.strokeColor,this.strokeWidth=xe.strokeWidth,this.strokeDasharray=xe.strokeDasharray,this.curveX=xe.curveX,this.curveY=xe.curveY,this.createVisual(),this.adjustVisual()},fe.typeName="CurveMarker",fe.title="Curve marker",fe.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',fe}(at),an=function(ze){function fe(ue,xe,ge){var se=ze.call(this,ue,xe,ge)||this;return se.fillColor="transparent",se.strokeColor="transparent",se.strokeWidth=0,se.strokeDasharray="",se.textColor="transparent",se.fontSize="1rem",se.isMoved=!1,se.captionText="Caption",se.PADDING=5,se.captionBoxWidth=0,se.captionBoxHeight=0,se.strokeColor=ge.defaultColor,se.strokeWidth=ge.defaultStrokeWidth,se.strokeDasharray=ge.defaultStrokeDasharray,se.fillColor=ge.defaultFillColor,se.textColor=ge.defaultStrokeColor,se.fontFamily=ge.defaultFontFamily,se.fontSize=ge.defaultCaptionFontSize,se.captionText=ge.defaultCaptionText,se.setStrokeColor=se.setStrokeColor.bind(se),se.setFillColor=se.setFillColor.bind(se),se.setStrokeWidth=se.setStrokeWidth.bind(se),se.setStrokeDasharray=se.setStrokeDasharray.bind(se),se.createVisual=se.createVisual.bind(se),se.sizeCaption=se.sizeCaption.bind(se),se.setCaptionText=se.setCaptionText.bind(se),se.showTextEditor=se.showTextEditor.bind(se),se.positionTextEditor=se.positionTextEditor.bind(se),se.finishTextEditing=se.finishTextEditing.bind(se),se.setFont=se.setFont.bind(se),se.setTextColor=se.setTextColor.bind(se),se.strokePanel=new Xe("Line color",be(ge.defaultColorSet,["transparent"]),se.strokeColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.fillPanel=new Xe("Fill color",be(ge.defaultColorSet,["transparent"]),se.fillColor,Be),se.fillPanel.onColorChanged=se.setFillColor,se.strokeWidthPanel=new ce("Line width",ge.defaultStrokeWidths,ge.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new He("Line style",ge.defaultStrokeDasharrays,ge.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se.fontFamilyPanel=new Ae("Font",ge.defaultFontFamilies,ge.defaultFontFamily),se.fontFamilyPanel.onFontChanged=se.setFont,se.textColorPanel=new Xe("Text color",ge.defaultColorSet,se.textColor,yt),se.textColorPanel.onColorChanged=se.setTextColor,se}return Me(fe,ze),fe.prototype.ownsTarget=function(ue){return!(!ze.prototype.ownsTarget.call(this,ue)&&ue!==this.visual&&ue!==this.frame&&ue!==this.captionBg&&ue!==this.captionElement)},fe.prototype.createVisual=function(){this.visual=ke.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=ke.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=ke.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=ke.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},fe.prototype.setCaptionText=function(ue){this.captionText=ue,this.captionElement.textContent=this.captionText,this.sizeCaption()},fe.prototype.pointerDown=function(ue,xe){ze.prototype.pointerDown.call(this,ue,xe),this.isMoved=!1,this.pointerDownPoint=ue,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ue),this._state="creating")},fe.prototype.manipulate=function(ue){ze.prototype.manipulate.call(this,ue),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ue.x-this.pointerDownPoint.x)>5||Math.abs(ue.y-this.pointerDownPoint.y)>5)},fe.prototype.resize=function(ue){ze.prototype.resize.call(this,ue),this.setSize()},fe.prototype.sizeCaption=function(){var ue=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=ue.width+2*this.PADDING,this.captionBoxHeight=ue.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),ke.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),ke.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},fe.prototype.showTextEditor=function(){var ue=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(xe){xe.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(xe){xe.key==="Enter"&&ue.finishTextEditing(ue.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(xe){xe.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){ue.finishTextEditing(ue.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){ue.finishTextEditing(ue.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},fe.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},fe.prototype.finishTextEditing=function(ue){this.setCaptionText(ue.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},fe.prototype.setFont=function(ue){this.captionElement&&ke.setAttributes(this.captionElement,[["font-family",ue]]),this.fontFamily=ue,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},fe.prototype.setTextColor=function(ue){this.captionElement&&ke.setAttributes(this.captionElement,[["fill",ue]]),this.textColor=ue,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},fe.prototype.setSize=function(){ze.prototype.setSize.call(this),ke.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},fe.prototype.pointerUp=function(ue){ze.prototype.pointerUp.call(this,ue),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},fe.prototype.dblClick=function(ue,xe){ze.prototype.dblClick.call(this,ue,xe),this.showTextEditor()},fe.prototype.setStrokeColor=function(ue){this.strokeColor=ue,this.frame&&ke.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ue),this.stateChanged()},fe.prototype.setFillColor=function(ue){this.fillColor=ue,this.captionBg&&ke.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ue),this.stateChanged()},fe.prototype.setStrokeWidth=function(ue){this.strokeWidth=ue,this.frame&&ke.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},fe.prototype.setStrokeDasharray=function(ue){this.strokeDasharray=ue,this.frame&&ke.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ue=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},ze.prototype.getState.call(this));return ue.typeName=this.typeName,ue},fe.prototype.restoreState=function(ue){var xe=ue;this.fillColor=xe.fillColor,this.strokeColor=xe.strokeColor,this.strokeWidth=xe.strokeWidth,this.strokeDasharray=xe.strokeDasharray,this.textColor=xe.textColor,this.fontFamily=xe.fontFamily,this.captionText=xe.captionText,this.fontSize=xe.fontSize,this.createVisual(),ze.prototype.restoreState.call(this,ue),this.setSize()},fe.prototype.scale=function(ue,xe){ze.prototype.scale.call(this,ue,xe),this.setSize()},fe.typeName="CaptionFrameMarker",fe.title="Caption frame marker",fe.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',fe}(ct),ln=function(){function ze(fe,ue){ue===void 0&&(ue=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=fe,this.cancelable=ue}return Object.defineProperty(ze.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ze.prototype.preventDefault=function(){this._defaultPrevented=!0},ze}(),Yt=function(ze){function fe(ue,xe,ge){var se=ze.call(this,ue,!1)||this;return se.dataUrl=xe,se.state=ge,se}return Me(fe,ze),fe}(ln),Cn=function(ze){function fe(ue,xe,ge){ge===void 0&&(ge=!1);var se=ze.call(this,ue,ge)||this;return se.marker=xe,se}return Me(fe,ze),fe}(ln),pr=function(){function ze(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return ze.prototype.addEventListener=function(fe,ue){this[fe].push(ue)},ze.prototype.removeEventListener=function(fe,ue){var xe=this[fe].indexOf(ue);xe>-1&&this[fe].splice(xe,1)},ze}(),Xn=function(){function ze(fe){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new it,this._isOpen=!1,this.undoRedoManager=new Mt,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new pr,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ze.instanceCounter++,this.styles=new Le(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=fe,this.targetRoot=document.body,this.width=fe.clientWidth,this.height=fe.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(ze.prototype,"ALL_MARKER_TYPES",{get:function(){return[je,dt,bt,wt,xt,Vn,$n,Rt,In,Ot,Ge,qt,an]},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[je,dt,bt,wt,Vn,$n,Rt]},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"BASIC_MARKER_TYPES",{get:function(){return[je,dt,bt,wt,$n]},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(fe){var ue=this;this._availableMarkerTypes.splice(0),fe.forEach(function(xe){if(typeof xe=="string"){var ge=ue.ALL_MARKER_TYPES.find(function(se){return se.typeName===xe});ge!==void 0&&ue._availableMarkerTypes.push(ge)}else ue._availableMarkerTypes.push(xe)})},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(fe){this._zoomLevel=fe,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ze.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),de.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ze.prototype.show=function(){var fe=this;this.styles.styleSheetRoot===void 0&&pe.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=pe.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ue){return ue(new ln(fe))})},ze.prototype.render=function(){return Ne(this,void 0,void 0,function(){var fe;return Ue(this,function(ue){switch(ue.label){case 0:return this.setCurrentMarker(),(fe=new we).naturalSize=this.renderAtNaturalSize,fe.imageType=this.renderImageType,fe.imageQuality=this.renderImageQuality,fe.markersOnly=this.renderMarkersOnly,fe.width=this.renderWidth,fe.height=this.renderHeight,[4,fe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ue.sent(),[4,fe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ue.sent()]}})})},ze.prototype.close=function(fe){var ue=this;if(fe===void 0&&(fe=!1),this.isOpen){var xe=!1;fe||this.eventListeners.beforeclose.forEach(function(ge){var se=new ln(ue,!0);ge(se),se.defaultPrevented&&(xe=!0)}),xe||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(ge){return ge(new ln(ue))}),this.detachEvents(),this._isOpen=!1)}},ze.prototype.addMarkersToToolbar=function(){for(var fe,ue=[],xe=0;xe<arguments.length;xe++)ue[xe]=arguments[xe];(fe=this._availableMarkerTypes).push.apply(fe,ue)},ze.prototype.addRenderEventListener=function(fe){this.addEventListener("render",function(ue){fe(ue.dataUrl,ue.state)})},ze.prototype.removeRenderEventListener=function(fe){},ze.prototype.addCloseEventListener=function(fe){this.addEventListener("close",function(){fe()})},ze.prototype.removeCloseEventListener=function(fe){},ze.prototype.setupResizeObserver=function(){var fe=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){fe.resize(fe.target.clientWidth,fe.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return fe.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},ze.prototype.onPopupTargetResize=function(){var fe=1*this.target.clientWidth/this.target.clientHeight,ue=this.editorCanvas.clientWidth/fe>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*fe:this.editorCanvas.clientWidth,xe=ue<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/fe;this.resize(ue,xe)},ze.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ze.prototype.resize=function(fe,ue){this._isResizing=!0;var xe=fe/this.imageWidth,ge=ue/this.imageHeight;this.imageWidth=Math.round(fe),this.imageHeight=Math.round(ue),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(xe,ge),this._isResizing=!1},ze.prototype.scaleMarkers=function(fe,ue){var xe,ge=this;this._currentMarker&&this._currentMarker instanceof wt?this._currentMarker.scale(fe,ue):(xe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(se){se!==ge._currentMarker&&se.scale(fe,ue)}),xe!==void 0&&this.setCurrentMarker(xe)},ze.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},ze.prototype.setTopLeft=function(){var fe=this.editingTarget.getBoundingClientRect(),ue=this.editorCanvas.getBoundingClientRect();this.left=fe.left-ue.left,this.top=fe.top-ue.top},ze.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},ze.prototype.addDefs=function(){for(var fe,ue=[],xe=0;xe<arguments.length;xe++)ue[xe]=arguments[xe];this.defs=ke.createDefs(),this.addDefsToImage(),(fe=this.defs).append.apply(fe,ue)},ze.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},ze.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},ze.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},ze.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},ze.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},ze.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},ze.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},ze.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var fe=document.createElement("a");fe.href="https://markerjs.com/",fe.target="_blank",fe.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',fe.title="Powered by marker.js",fe.style.display="grid",fe.style.alignItems="center",fe.style.justifyItems="center",fe.style.padding="3px",fe.style.width="20px",fe.style.height="20px",this.logoUI.appendChild(fe),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ze.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},ze.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},ze.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ze.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var fe=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=fe+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new We(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new qe(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},ze.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ze.prototype.removeMarker=function(fe){this.markerImage.removeChild(fe.container),this.markers.indexOf(fe)>-1&&this.markers.splice(this.markers.indexOf(fe),1),fe.dispose()},ze.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},ze.prototype.toolbarButtonClicked=function(fe,ue){if(fe==="marker"&&ue!==void 0)this.createNewMarker(ue);else if(fe==="action")switch(ue){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},ze.prototype.deleteSelectedMarker=function(){var fe=this;if(this._currentMarker!==void 0){var ue=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ge){var se=new Cn(fe,fe._currentMarker,!0);ge(se),se.defaultPrevented&&(ue=!0)}),!ue){var xe=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(ge){return ge(new Cn(fe,xe))})}}},ze.prototype.clear=function(){var fe=this,ue=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Fe){var st=new Cn(fe,void 0,!0);Fe(st),st.defaultPrevented&&(ue=!0)}),!ue)){this.setCurrentMarker();for(var xe=function(Fe){var st=ge.markers[Fe];ge.setCurrentMarker(ge.markers[Fe]),ge._currentMarker.dispose(),ge.markerImage.removeChild(ge._currentMarker.container),ge.markers.splice(ge.markers.indexOf(ge._currentMarker),1),ge.eventListeners.markerdelete.forEach(function(en){return en(new Cn(fe,st))})},ge=this,se=this.markers.length-1;se>=0;se--)xe(se);this.addUndoStep()}},Object.defineProperty(ze.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ze.prototype.showNotesEditor=function(){var fe;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(fe=this._currentMarker.notes)!==null&&fe!==void 0?fe:"",this.overlayContainer.appendChild(this.notesArea))},ze.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},ze.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ze.prototype.addUndoStep=function(){var fe=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ue=this.getState(),xe=this.undoRedoManager.getLastUndoStep();if(!xe||xe.width===ue.width&&xe.height===ue.height){var ge=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ue),ge<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(se){return se(new ln(fe))})}else this.undoRedoManager.replaceLastUndoStep(ue),this.eventListeners.statechange.forEach(function(se){return se(new ln(fe))})}},ze.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ze.prototype.undoStep=function(){var fe=this,ue=this.undoRedoManager.undo();ue!==void 0&&(this.restoreState(ue),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(xe){return xe(new ln(fe))}))},ze.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ze.prototype.redoStep=function(){var fe=this,ue=this.undoRedoManager.redo();ue!==void 0&&(this.restoreState(ue),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(xe){return xe(new ln(fe))}))},ze.prototype.stepZoom=function(){var fe=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=fe<this.zoomSteps.length-1?this.zoomSteps[fe+1]:this.zoomSteps[0]},ze.prototype.panTo=function(fe){this.contentDiv.scrollBy({left:this.prevPanPoint.x-fe.x,top:this.prevPanPoint.y-fe.y}),this.prevPanPoint=fe},ze.prototype.startRenderAndClose=function(){return Ne(this,void 0,void 0,function(){var fe,ue,xe=this;return Ue(this,function(ge){switch(ge.label){case 0:return[4,this.render()];case 1:return fe=ge.sent(),ue=this.getState(),this.eventListeners.render.forEach(function(se){return se(new Yt(xe,fe,ue))}),this.close(!0),[2]}})})},ze.prototype.getState=function(fe){fe===!0&&this.setCurrentMarker();var ue={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(xe){return ue.markers.push(xe.getState())}),ue},ze.prototype.restoreState=function(fe){var ue=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);fe.markers.forEach(function(xe){var ge=ue._availableMarkerTypes.find(function(Fe){return Fe.typeName===xe.typeName});if(ge!==void 0){var se=ue.addNewMarker(ge);se.restoreState(xe),ue.markers.push(se)}}),fe.width&&fe.height&&(fe.width!==this.imageWidth||fe.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/fe.width,this.imageHeight/fe.height),this.eventListeners.restorestate.forEach(function(xe){return xe(new ln(ue))})},ze.prototype.addNewMarker=function(fe){var ue=ke.createGroup();return this.markerImage.appendChild(ue),new fe(ue,this.overlayContainer,this.settings)},ze.prototype.createNewMarker=function(fe){var ue,xe=this;(ue=typeof fe=="string"?this._availableMarkerTypes.find(function(ge){return ge.typeName===fe}):fe)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(ue),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(ue.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(ge){return ge(new Cn(xe,xe._currentMarker))}))},ze.prototype.markerCreated=function(fe){var ue=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(fe),this.setCurrentMarker(fe),fe instanceof dt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(dt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(xe){return xe(new Cn(ue,ue._currentMarker))})},ze.prototype.colorChanged=function(fe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=fe,this.settings.defaultStrokeColor=fe)},ze.prototype.fillColorChanged=function(fe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=fe)},ze.prototype.markerStateChanged=function(fe){var ue=this;this.eventListeners.markerchange.forEach(function(xe){return xe(new Cn(ue,fe))})},ze.prototype.setCurrentMarker=function(fe){var ue=this;this._currentMarker!==fe&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(xe){return xe(new Cn(ue,ue._currentMarker))})),this._currentMarker=fe,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(xe){return xe(new Cn(ue,ue._currentMarker))}))},ze.prototype.onPointerDown=function(fe){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||fe.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var ue=this.markers.find(function(xe){return xe.ownsTarget(fe.target)});ue!==void 0?(this.setCurrentMarker(ue),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(fe.clientX,fe.clientY),fe.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:fe.clientX,y:fe.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(fe.clientX,fe.clientY))},ze.prototype.onDblClick=function(fe){if(this._isFocused||this.focus(),this.mode==="select"){var ue=this.markers.find(function(xe){return xe.ownsTarget(fe.target)});ue!==void 0&&ue!==this._currentMarker&&this.setCurrentMarker(ue),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(fe.clientX,fe.clientY),fe.target):this.setCurrentMarker()}},ze.prototype.onPointerMove=function(fe){this.touchPoints!==1&&fe.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||fe.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(fe.clientX,fe.clientY)):this.zoomLevel>1&&this.panTo({x:fe.clientX,y:fe.clientY}))},ze.prototype.onPointerUp=function(fe){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(fe.clientX,fe.clientY)),this.isDragging=!1,this.addUndoStep()},ze.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ze.prototype.onKeyUp=function(fe){this._currentMarker===void 0||this.notesArea!==void 0||fe.key!=="Delete"&&fe.key!=="Backspace"||this.deleteSelectedMarker()},ze.prototype.clientToLocalCoordinates=function(fe,ue){var xe=this.markerImage.getBoundingClientRect();return{x:(fe-xe.left)/this.zoomLevel,y:(ue-xe.top)/this.zoomLevel}},ze.prototype.onWindowResize=function(){this.positionUI()},ze.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var fe=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=fe+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},ze.prototype.addLicenseKey=function(fe){de.addKey(fe)},ze.prototype.addEventListener=function(fe,ue){this.eventListeners.addEventListener(fe,ue)},ze.prototype.removeEventListener=function(fe,ue){this.eventListeners.removeEventListener(fe,ue)},ze.prototype.renderState=function(fe){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(fe),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ze.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ze.prototype.focus=function(){var fe=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ue){return ue(new ln(fe))}))},ze.prototype.blur=function(){var fe=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(ue){return ue(new ln(fe))}))},ze.instanceCounter=0,ze}()},95860:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return ot}});var le=te(87462),Me=te(1413),Ne=te(4942),Ue=te(97685),be=te(45987),ke=te(94184),de=te.n(ke),we=te(67294);function pe(ct){var Se=we.useRef();Se.current=ct;var ce=we.useCallback(function(){for(var He,je=arguments.length,it=new Array(je),at=0;at<je;at++)it[at]=arguments[at];return(He=Se.current)===null||He===void 0?void 0:He.call.apply(He,[Se].concat(it))},[]);return ce}function Le(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var nt=Le()?we.useLayoutEffect:we.useEffect,Re=function(Se,ce){var He=we.useRef(!0);nt(function(){return Se(He.current)},ce),nt(function(){return He.current=!1,function(){He.current=!0}},[])},We=function(Se,ce){Re(function(He){if(!He)return Se()},ce)},qe=null;function lt(ct){var Se=we.useRef(!1),ce=we.useState(ct),He=(0,Ue.Z)(ce,2),je=He[0],it=He[1];we.useEffect(function(){return Se.current=!1,function(){Se.current=!0}},[]);function at(Ge,Ae){Ae&&Se.current||it(Ge)}return[je,at]}function Xe(ct){return ct!==void 0}function ye(ct,Se){var ce=Se||{},He=ce.defaultValue,je=ce.value,it=ce.onChange,at=ce.postState,Ge=lt(function(){return Xe(je)?je:Xe(He)?typeof He=="function"?He():He:typeof ct=="function"?ct():ct}),Ae=(0,Ue.Z)(Ge,2),wt=Ae[0],dt=Ae[1],$t=je!==void 0?je:wt,bt=at?at($t):$t,Ot=pe(it),Pn=lt([$t]),$n=(0,Ue.Z)(Pn,2),yt=$n[0],Be=$n[1];We(function(){var Vn=yt[0];wt!==Vn&&Ot(wt,Vn)},[yt]),We(function(){Xe(je)||dt(je)},[je]);var Rt=pe(function(Vn,In){dt(Vn,In),Be([$t],In)});return[bt,Rt]}var vt=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],Pt=(0,we.forwardRef)(function(ct,Se){var ce,He=ct.prefixCls,je=He===void 0?"rc-checkbox":He,it=ct.className,at=ct.style,Ge=ct.checked,Ae=ct.disabled,wt=ct.defaultChecked,dt=wt===void 0?!1:wt,$t=ct.type,bt=$t===void 0?"checkbox":$t,Ot=ct.title,Pn=ct.onChange,$n=(0,be.Z)(ct,vt),yt=(0,we.useRef)(null),Be=ye(dt,{value:Ge}),Rt=(0,Ue.Z)(Be,2),Vn=Rt[0],In=Rt[1];(0,we.useImperativeHandle)(Se,function(){return{focus:function(){var an;(an=yt.current)===null||an===void 0||an.focus()},blur:function(){var an;(an=yt.current)===null||an===void 0||an.blur()},input:yt.current}});var xt=de()(je,it,(ce={},(0,Ne.Z)(ce,"".concat(je,"-checked"),Vn),(0,Ne.Z)(ce,"".concat(je,"-disabled"),Ae),ce)),Mt=function(an){Ae||("checked"in ct||In(an.target.checked),Pn==null||Pn({target:(0,Me.Z)((0,Me.Z)({},ct),{},{type:bt,checked:an.target.checked}),stopPropagation:function(){an.stopPropagation()},preventDefault:function(){an.preventDefault()},nativeEvent:an.nativeEvent}))};return we.createElement("span",{className:xt,title:Ot,style:at},we.createElement("input",(0,le.Z)({},$n,{className:"".concat(je,"-input"),ref:yt,onChange:Mt,disabled:Ae,checked:!!Vn,type:bt})),we.createElement("span",{className:"".concat(je,"-inner")}))}),ot=Pt},26819:function(Nn,Nt){"use strict";var te;var le=typeof Symbol=="function"&&Symbol.for,Me=le?Symbol.for("react.element"):60103,Ne=le?Symbol.for("react.portal"):60106,Ue=le?Symbol.for("react.fragment"):60107,be=le?Symbol.for("react.strict_mode"):60108,ke=le?Symbol.for("react.profiler"):60114,de=le?Symbol.for("react.provider"):60109,we=le?Symbol.for("react.context"):60110,pe=le?Symbol.for("react.async_mode"):60111,Le=le?Symbol.for("react.concurrent_mode"):60111,nt=le?Symbol.for("react.forward_ref"):60112,Re=le?Symbol.for("react.suspense"):60113,We=le?Symbol.for("react.suspense_list"):60120,qe=le?Symbol.for("react.memo"):60115,lt=le?Symbol.for("react.lazy"):60116,Xe=le?Symbol.for("react.block"):60121,ye=le?Symbol.for("react.fundamental"):60117,vt=le?Symbol.for("react.responder"):60118,Pt=le?Symbol.for("react.scope"):60119;function ot(Se){if(typeof Se=="object"&&Se!==null){var ce=Se.$$typeof;switch(ce){case Me:switch(Se=Se.type,Se){case pe:case Le:case Ue:case ke:case be:case Re:return Se;default:switch(Se=Se&&Se.$$typeof,Se){case we:case nt:case lt:case qe:case de:return Se;default:return ce}}case Ne:return ce}}}function ct(Se){return ot(Se)===Le}te=pe,te=Le,te=we,te=de,te=Me,te=nt,te=Ue,te=lt,te=qe,te=Ne,te=ke,te=be,te=Re,te=function(Se){return ct(Se)||ot(Se)===pe},te=ct,te=function(Se){return ot(Se)===we},te=function(Se){return ot(Se)===de},te=function(Se){return typeof Se=="object"&&Se!==null&&Se.$$typeof===Me},te=function(Se){return ot(Se)===nt},te=function(Se){return ot(Se)===Ue},te=function(Se){return ot(Se)===lt},Nt.isMemo=function(Se){return ot(Se)===qe},te=function(Se){return ot(Se)===Ne},te=function(Se){return ot(Se)===ke},te=function(Se){return ot(Se)===be},te=function(Se){return ot(Se)===Re},te=function(Se){return typeof Se=="string"||typeof Se=="function"||Se===Ue||Se===Le||Se===ke||Se===be||Se===Re||Se===We||typeof Se=="object"&&Se!==null&&(Se.$$typeof===lt||Se.$$typeof===qe||Se.$$typeof===de||Se.$$typeof===we||Se.$$typeof===nt||Se.$$typeof===ye||Se.$$typeof===vt||Se.$$typeof===Pt||Se.$$typeof===Xe)},te=ot},18459:function(Nn,Nt,te){"use strict";Nn.exports=te(26819)},16651:function(Nn,Nt){"use strict";var te;var le=Symbol.for("react.element"),Me=Symbol.for("react.portal"),Ne=Symbol.for("react.fragment"),Ue=Symbol.for("react.strict_mode"),be=Symbol.for("react.profiler"),ke=Symbol.for("react.provider"),de=Symbol.for("react.context"),we=Symbol.for("react.server_context"),pe=Symbol.for("react.forward_ref"),Le=Symbol.for("react.suspense"),nt=Symbol.for("react.suspense_list"),Re=Symbol.for("react.memo"),We=Symbol.for("react.lazy"),qe=Symbol.for("react.offscreen"),lt;lt=Symbol.for("react.module.reference");function Xe(ye){if(typeof ye=="object"&&ye!==null){var vt=ye.$$typeof;switch(vt){case le:switch(ye=ye.type,ye){case Ne:case be:case Ue:case Le:case nt:return ye;default:switch(ye=ye&&ye.$$typeof,ye){case we:case de:case pe:case We:case Re:case ke:return ye;default:return vt}}case Me:return vt}}}te=de,te=ke,te=le,te=pe,te=Ne,te=We,te=Re,te=Me,te=be,te=Ue,te=Le,te=nt,te=function(){return!1},te=function(){return!1},te=function(ye){return Xe(ye)===de},te=function(ye){return Xe(ye)===ke},te=function(ye){return typeof ye=="object"&&ye!==null&&ye.$$typeof===le},te=function(ye){return Xe(ye)===pe},te=function(ye){return Xe(ye)===Ne},te=function(ye){return Xe(ye)===We},te=function(ye){return Xe(ye)===Re},te=function(ye){return Xe(ye)===Me},te=function(ye){return Xe(ye)===be},te=function(ye){return Xe(ye)===Ue},te=function(ye){return Xe(ye)===Le},te=function(ye){return Xe(ye)===nt},te=function(ye){return typeof ye=="string"||typeof ye=="function"||ye===Ne||ye===be||ye===Ue||ye===Le||ye===nt||ye===qe||typeof ye=="object"&&ye!==null&&(ye.$$typeof===We||ye.$$typeof===Re||ye.$$typeof===ke||ye.$$typeof===de||ye.$$typeof===pe||ye.$$typeof===lt||ye.getModuleId!==void 0)},te=Xe},33993:function(Nn,Nt,te){"use strict";te(16651)},82523:function(Nn,Nt){"use strict";var te;var le=Symbol.for("react.element"),Me=Symbol.for("react.portal"),Ne=Symbol.for("react.fragment"),Ue=Symbol.for("react.strict_mode"),be=Symbol.for("react.profiler"),ke=Symbol.for("react.provider"),de=Symbol.for("react.context"),we=Symbol.for("react.server_context"),pe=Symbol.for("react.forward_ref"),Le=Symbol.for("react.suspense"),nt=Symbol.for("react.suspense_list"),Re=Symbol.for("react.memo"),We=Symbol.for("react.lazy"),qe=Symbol.for("react.offscreen"),lt;lt=Symbol.for("react.module.reference");function Xe(ye){if(typeof ye=="object"&&ye!==null){var vt=ye.$$typeof;switch(vt){case le:switch(ye=ye.type,ye){case Ne:case be:case Ue:case Le:case nt:return ye;default:switch(ye=ye&&ye.$$typeof,ye){case we:case de:case pe:case We:case Re:case ke:return ye;default:return vt}}case Me:return vt}}}te=de,te=ke,te=le,te=pe,te=Ne,te=We,te=Re,te=Me,te=be,te=Ue,te=Le,te=nt,te=function(){return!1},te=function(){return!1},te=function(ye){return Xe(ye)===de},te=function(ye){return Xe(ye)===ke},te=function(ye){return typeof ye=="object"&&ye!==null&&ye.$$typeof===le},te=function(ye){return Xe(ye)===pe},te=function(ye){return Xe(ye)===Ne},te=function(ye){return Xe(ye)===We},te=function(ye){return Xe(ye)===Re},te=function(ye){return Xe(ye)===Me},te=function(ye){return Xe(ye)===be},te=function(ye){return Xe(ye)===Ue},te=function(ye){return Xe(ye)===Le},te=function(ye){return Xe(ye)===nt},te=function(ye){return typeof ye=="string"||typeof ye=="function"||ye===Ne||ye===be||ye===Ue||ye===Le||ye===nt||ye===qe||typeof ye=="object"&&ye!==null&&(ye.$$typeof===We||ye.$$typeof===Re||ye.$$typeof===ke||ye.$$typeof===de||ye.$$typeof===pe||ye.$$typeof===lt||ye.getModuleId!==void 0)},te=Xe},27183:function(Nn,Nt,te){"use strict";te(82523)},67656:function(Nn,Nt,te){"use strict";te.r(Nt),te.d(Nt,{BaseInput:function(){return Le},default:function(){return Pt}});var le=te(87462),Me=te(1413),Ne=te(4942),Ue=te(71002),be=te(94184),ke=te.n(be),de=te(67294),we=te(87887),pe=function(ct){var Se,ce,He=ct.inputElement,je=ct.prefixCls,it=ct.prefix,at=ct.suffix,Ge=ct.addonBefore,Ae=ct.addonAfter,wt=ct.className,dt=ct.style,$t=ct.disabled,bt=ct.readOnly,Ot=ct.focused,Pn=ct.triggerFocus,$n=ct.allowClear,yt=ct.value,Be=ct.handleReset,Rt=ct.hidden,Vn=ct.classes,In=ct.classNames,xt=ct.dataAttrs,Mt=ct.styles,qt=ct.components,an=(qt==null?void 0:qt.affixWrapper)||"span",ln=(qt==null?void 0:qt.groupWrapper)||"span",Yt=(qt==null?void 0:qt.wrapper)||"span",Cn=(qt==null?void 0:qt.groupAddon)||"span",pr=(0,de.useRef)(null),Xn=function(zn){var vn;(vn=pr.current)!==null&&vn!==void 0&&vn.contains(zn.target)&&(Pn==null||Pn())},ze=function(){var zn;if(!$n)return null;var vn=!$t&&!bt&&yt,kt="".concat(je,"-clear-icon"),Xt=(0,Ue.Z)($n)==="object"&&$n!==null&&$n!==void 0&&$n.clearIcon?$n.clearIcon:"\u2716";return de.createElement("span",{onClick:Be,onMouseDown:function(jt){return jt.preventDefault()},className:ke()(kt,(zn={},(0,Ne.Z)(zn,"".concat(kt,"-hidden"),!vn),(0,Ne.Z)(zn,"".concat(kt,"-has-suffix"),!!at),zn)),role:"button",tabIndex:-1},Xt)},fe=(0,de.cloneElement)(He,{value:yt,hidden:Rt,className:ke()((Se=He.props)===null||Se===void 0?void 0:Se.className,!(0,we.X3)(ct)&&!(0,we.He)(ct)&&wt)||null,style:(0,Me.Z)((0,Me.Z)({},(ce=He.props)===null||ce===void 0?void 0:ce.style),!(0,we.X3)(ct)&&!(0,we.He)(ct)?dt:{})});if((0,we.X3)(ct)){var ue,xe="".concat(je,"-affix-wrapper"),ge=ke()(xe,(ue={},(0,Ne.Z)(ue,"".concat(xe,"-disabled"),$t),(0,Ne.Z)(ue,"".concat(xe,"-focused"),Ot),(0,Ne.Z)(ue,"".concat(xe,"-readonly"),bt),(0,Ne.Z)(ue,"".concat(xe,"-input-with-clear-btn"),at&&$n&&yt),ue),!(0,we.He)(ct)&&wt,Vn==null?void 0:Vn.affixWrapper,In==null?void 0:In.affixWrapper),se=(at||$n)&&de.createElement("span",{className:ke()("".concat(je,"-suffix"),In==null?void 0:In.suffix),style:Mt==null?void 0:Mt.suffix},ze(),at);fe=de.createElement(an,(0,le.Z)({className:ge,style:(0,Me.Z)((0,Me.Z)({},(0,we.He)(ct)?void 0:dt),Mt==null?void 0:Mt.affixWrapper),hidden:!(0,we.He)(ct)&&Rt,onClick:Xn},xt==null?void 0:xt.affixWrapper,{ref:pr}),it&&de.createElement("span",{className:ke()("".concat(je,"-prefix"),In==null?void 0:In.prefix),style:Mt==null?void 0:Mt.prefix},it),(0,de.cloneElement)(He,{value:yt,hidden:null}),se)}if((0,we.He)(ct)){var Fe="".concat(je,"-group"),st="".concat(Fe,"-addon"),en=ke()("".concat(je,"-wrapper"),Fe,Vn==null?void 0:Vn.wrapper),Sn=ke()("".concat(je,"-group-wrapper"),wt,Vn==null?void 0:Vn.group);return de.createElement(ln,{className:Sn,style:dt,hidden:Rt},de.createElement(Yt,{className:en},Ge&&de.createElement(Cn,{className:st},Ge),(0,de.cloneElement)(fe,{hidden:null}),Ae&&de.createElement(Cn,{className:st},Ae)))}return fe},Le=pe,nt=te(74902),Re=te(97685),We=te(45987),qe=te(21770),lt=te(98423),Xe=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],ye=(0,de.forwardRef)(function(ot,ct){var Se=ot.autoComplete,ce=ot.onChange,He=ot.onFocus,je=ot.onBlur,it=ot.onPressEnter,at=ot.onKeyDown,Ge=ot.prefixCls,Ae=Ge===void 0?"rc-input":Ge,wt=ot.disabled,dt=ot.htmlSize,$t=ot.className,bt=ot.maxLength,Ot=ot.suffix,Pn=ot.showCount,$n=ot.type,yt=$n===void 0?"text":$n,Be=ot.classes,Rt=ot.classNames,Vn=ot.styles,In=(0,We.Z)(ot,Xe),xt=(0,qe.Z)(ot.defaultValue,{value:ot.value}),Mt=(0,Re.Z)(xt,2),qt=Mt[0],an=Mt[1],ln=(0,de.useState)(!1),Yt=(0,Re.Z)(ln,2),Cn=Yt[0],pr=Yt[1],Xn=(0,de.useRef)(null),ze=function(Sn){Xn.current&&(0,we.nH)(Xn.current,Sn)};(0,de.useImperativeHandle)(ct,function(){return{focus:ze,blur:function(){var Sn;(Sn=Xn.current)===null||Sn===void 0||Sn.blur()},setSelectionRange:function(Sn,dn,zn){var vn;(vn=Xn.current)===null||vn===void 0||vn.setSelectionRange(Sn,dn,zn)},select:function(){var Sn;(Sn=Xn.current)===null||Sn===void 0||Sn.select()},input:Xn.current}}),(0,de.useEffect)(function(){pr(function(en){return en&&wt?!1:en})},[wt]);var fe=function(Sn){ot.value===void 0&&an(Sn.target.value),Xn.current&&(0,we.rJ)(Xn.current,Sn,ce)},ue=function(Sn){it&&Sn.key==="Enter"&&it(Sn),at==null||at(Sn)},xe=function(Sn){pr(!0),He==null||He(Sn)},ge=function(Sn){pr(!1),je==null||je(Sn)},se=function(Sn){an(""),ze(),Xn.current&&(0,we.rJ)(Xn.current,Sn,ce)},Fe=function(){var Sn=(0,lt.Z)(ot,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return de.createElement("input",(0,le.Z)({autoComplete:Se},Sn,{onChange:fe,onFocus:xe,onBlur:ge,onKeyDown:ue,className:ke()(Ae,(0,Ne.Z)({},"".concat(Ae,"-disabled"),wt),Rt==null?void 0:Rt.input),style:Vn==null?void 0:Vn.input,ref:Xn,size:dt,type:yt}))},st=function(){var Sn=Number(bt)>0;if(Ot||Pn){var dn=(0,we.D7)(qt),zn=(0,nt.Z)(dn).length,vn=(0,Ue.Z)(Pn)==="object"?Pn.formatter({value:dn,count:zn,maxLength:bt}):"".concat(zn).concat(Sn?" / ".concat(bt):"");return de.createElement(de.Fragment,null,!!Pn&&de.createElement("span",{className:ke()("".concat(Ae,"-show-count-suffix"),(0,Ne.Z)({},"".concat(Ae,"-show-count-has-suffix"),!!Ot),Rt==null?void 0:Rt.count),style:(0,Me.Z)({},Vn==null?void 0:Vn.count)},vn),Ot)}return null};return de.createElement(Le,(0,le.Z)({},In,{prefixCls:Ae,className:$t,inputElement:Fe(),handleReset:se,value:(0,we.D7)(qt),focused:Cn,triggerFocus:ze,suffix:st(),disabled:wt,classes:Be,classNames:Rt,styles:Vn}))}),vt=ye,Pt=vt},87887:function(Nn,Nt,te){"use strict";te.d(Nt,{D7:function(){return be},He:function(){return le},X3:function(){return Me},nH:function(){return Ue},rJ:function(){return Ne}});function le(ke){return!!(ke.addonBefore||ke.addonAfter)}function Me(ke){return!!(ke.prefix||ke.suffix||ke.allowClear)}function Ne(ke,de,we,pe){if(we){var Le=de;if(de.type==="click"){var nt=ke.cloneNode(!0);Le=Object.create(de,{target:{value:nt},currentTarget:{value:nt}}),nt.value="",we(Le);return}if(pe!==void 0){Le=Object.create(de,{target:{value:ke},currentTarget:{value:ke}}),ke.value=pe,we(Le);return}we(Le)}}function Ue(ke,de){if(ke){ke.focus(de);var we=de||{},pe=we.cursor;if(pe){var Le=ke.value.length;switch(pe){case"start":ke.setSelectionRange(0,0);break;case"end":ke.setSelectionRange(Le,Le);break;default:ke.setSelectionRange(0,Le)}}}}function be(ke){return typeof ke=="undefined"||ke===null?"":String(ke)}},78595:function(Nn,Nt,te){"use strict";te.d(Nt,{iz:function(){return ji},ck:function(){return ti},BW:function(){return Ti},sN:function(){return ti},Wd:function(){return Kn},ZP:function(){return $e},Xl:function(){return vn}});var le=te(87462),Me=te(4942),Ne=te(1413),Ue=te(74902),be=te(97685),ke=te(45987),de=te(94184),we=te.n(de),pe=te(67294),Le=te(48555);function nt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Re=nt()?pe.useLayoutEffect:pe.useEffect,We=function(et,Je){var ut=pe.useRef(!0);Re(function(){return et(ut.current)},Je),Re(function(){return ut.current=!1,function(){ut.current=!0}},[])},qe=function(et,Je){We(function(ut){if(!ut)return et()},Je)},lt=We,Xe=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ye=void 0;function vt(Ve,et){var Je=Ve.prefixCls,ut=Ve.invalidate,mt=Ve.item,Wt=Ve.renderItem,sn=Ve.responsive,Wn=Ve.responsiveDisabled,lr=Ve.registerSize,Qn=Ve.itemKey,Tn=Ve.className,kn=Ve.style,mn=Ve.children,Jn=Ve.display,Dr=Ve.order,cr=Ve.component,xr=cr===void 0?"div":cr,Er=(0,ke.Z)(Ve,Xe),Nr=sn&&!Jn;function $r(gn){lr(Qn,gn)}pe.useEffect(function(){return function(){$r(null)}},[]);var Qe=Wt&&mt!==ye?Wt(mt):mn,rt;ut||(rt={opacity:Nr?0:1,height:Nr?0:ye,overflowY:Nr?"hidden":ye,order:sn?Dr:ye,pointerEvents:Nr?"none":ye,position:Nr?"absolute":ye});var Zt={};Nr&&(Zt["aria-hidden"]=!0);var It=pe.createElement(xr,(0,le.Z)({className:we()(!ut&&Je,Tn),style:(0,Ne.Z)((0,Ne.Z)({},rt),kn)},Zt,Er,{ref:et}),Qe);return sn&&(It=pe.createElement(Le.Z,{onResize:function(Un){var Yn=Un.offsetWidth;$r(Yn)},disabled:Wn},It)),It}var Pt=pe.forwardRef(vt);Pt.displayName="Item";var ot=Pt;function ct(Ve){var et=pe.useRef();et.current=Ve;var Je=pe.useCallback(function(){for(var ut,mt=arguments.length,Wt=new Array(mt),sn=0;sn<mt;sn++)Wt[sn]=arguments[sn];return(ut=et.current)===null||ut===void 0?void 0:ut.call.apply(ut,[et].concat(Wt))},[]);return Je}var Se=te(73935),ce=function(et){return+setTimeout(et,16)},He=function(et){return clearTimeout(et)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(ce=function(et){return window.requestAnimationFrame(et)},He=function(et){return window.cancelAnimationFrame(et)});var je=0,it=new Map;function at(Ve){it.delete(Ve)}var Ge=function(et){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;je+=1;var ut=je;function mt(Wt){if(Wt===0)at(ut),et();else{var sn=ce(function(){mt(Wt-1)});it.set(ut,sn)}}return mt(Je),ut};Ge.cancel=function(Ve){var et=it.get(Ve);return at(et),He(et)};var Ae=Ge;function wt(Ve){if(typeof MessageChannel=="undefined")Ae(Ve);else{var et=new MessageChannel;et.port1.onmessage=function(){return Ve()},et.port2.postMessage(void 0)}}function dt(){var Ve=pe.useRef(null),et=function(ut){Ve.current||(Ve.current=[],wt(function(){(0,Se.unstable_batchedUpdates)(function(){Ve.current.forEach(function(mt){mt()}),Ve.current=null})})),Ve.current.push(ut)};return et}function $t(Ve,et){var Je=pe.useState(et),ut=(0,be.Z)(Je,2),mt=ut[0],Wt=ut[1],sn=ct(function(Wn){Ve(function(){Wt(Wn)})});return[mt,sn]}var bt=pe.createContext(null),Ot=["component"],Pn=["className"],$n=["className"],yt=function(et,Je){var ut=pe.useContext(bt);if(!ut){var mt=et.component,Wt=mt===void 0?"div":mt,sn=(0,ke.Z)(et,Ot);return pe.createElement(Wt,(0,le.Z)({},sn,{ref:Je}))}var Wn=ut.className,lr=(0,ke.Z)(ut,Pn),Qn=et.className,Tn=(0,ke.Z)(et,$n);return pe.createElement(bt.Provider,{value:null},pe.createElement(ot,(0,le.Z)({ref:Je,className:we()(Wn,Qn)},lr,Tn)))},Be=pe.forwardRef(yt);Be.displayName="RawItem";var Rt=Be,Vn=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],In="responsive",xt="invalidate";function Mt(Ve){return"+ ".concat(Ve.length," ...")}function qt(Ve,et){var Je=Ve.prefixCls,ut=Je===void 0?"rc-overflow":Je,mt=Ve.data,Wt=mt===void 0?[]:mt,sn=Ve.renderItem,Wn=Ve.renderRawItem,lr=Ve.itemKey,Qn=Ve.itemWidth,Tn=Qn===void 0?10:Qn,kn=Ve.ssr,mn=Ve.style,Jn=Ve.className,Dr=Ve.maxCount,cr=Ve.renderRest,xr=Ve.renderRawRest,Er=Ve.suffix,Nr=Ve.component,$r=Nr===void 0?"div":Nr,Qe=Ve.itemComponent,rt=Ve.onVisibleChange,Zt=(0,ke.Z)(Ve,Vn),It=kn==="full",gn=dt(),Un=$t(gn,null),Yn=(0,be.Z)(Un,2),Ar=Yn[0],gr=Yn[1],tr=Ar||0,Or=$t(gn,new Map),Kr=(0,be.Z)(Or,2),ci=Kr[0],Hr=Kr[1],yi=$t(gn,0),Ii=(0,be.Z)(yi,2),Si=Ii[0],Ni=Ii[1],gi=$t(gn,0),Di=(0,be.Z)(gi,2),Ri=Di[0],sa=Di[1],bi=$t(gn,0),ba=(0,be.Z)(bi,2),Ca=ba[0],Co=ba[1],Qa=(0,pe.useState)(null),za=(0,be.Z)(Qa,2),la=za[0],ga=za[1],Xi=(0,pe.useState)(null),Ba=(0,be.Z)(Xi,2),Qi=Ba[0],Bi=Ba[1],Ea=pe.useMemo(function(){return Qi===null&&It?Number.MAX_SAFE_INTEGER:Qi||0},[Qi,Ar]),Va=(0,pe.useState)(!1),Jo=(0,be.Z)(Va,2),zo=Jo[0],Oo=Jo[1],Po="".concat(ut,"-item"),co=Math.max(Si,Ri),xa=Dr===In,us=Wt.length&&xa,Ka=Dr===xt,ua=us||typeof Dr=="number"&&Wt.length>Dr,Ja=(0,pe.useMemo)(function(){var Wa=Wt;return us?Ar===null&&It?Wa=Wt:Wa=Wt.slice(0,Math.min(Wt.length,tr/Tn)):typeof Dr=="number"&&(Wa=Wt.slice(0,Dr)),Wa},[Wt,Tn,Ar,Dr,us]),Wo=(0,pe.useMemo)(function(){return us?Wt.slice(Ea+1):Wt.slice(Ja.length)},[Wt,Ja,us,Ea]),fo=(0,pe.useCallback)(function(Wa,ro){var Vo;return typeof lr=="function"?lr(Wa):(Vo=lr&&(Wa==null?void 0:Wa[lr]))!==null&&Vo!==void 0?Vo:ro},[lr]),bo=(0,pe.useCallback)(sn||function(Wa){return Wa},[sn]);function Ma(Wa,ro,Vo){Qi===Wa&&(ro===void 0||ro===la)||(Bi(Wa),Vo||(Oo(Wa<Wt.length-1),rt==null||rt(Wa)),ro!==void 0&&ga(ro))}function Uo(Wa,ro){gr(ro.clientWidth)}function os(Wa,ro){Hr(function(Vo){var rs=new Map(Vo);return ro===null?rs.delete(Wa):rs.set(Wa,ro),rs})}function Xo(Wa,ro){sa(ro),Ni(Ri)}function ss(Wa,ro){Co(ro)}function cs(Wa){return ci.get(fo(Ja[Wa],Wa))}lt(function(){if(tr&&typeof co=="number"&&Ja){var Wa=Ca,ro=Ja.length,Vo=ro-1;if(!ro){Ma(0,null);return}for(var rs=0;rs<ro;rs+=1){var Rs=cs(rs);if(It&&(Rs=Rs||0),Rs===void 0){Ma(rs-1,void 0,!0);break}if(Wa+=Rs,Vo===0&&Wa<=tr||rs===Vo-1&&Wa+cs(Vo)<=tr){Ma(Vo,null);break}else if(Wa+co>tr){Ma(rs-1,Wa-Rs-Ca+Ri);break}}Er&&cs(0)+Ca>tr&&ga(null)}},[tr,ci,Ri,Ca,fo,Ja]);var Os=zo&&!!Wo.length,qo={};la!==null&&us&&(qo={position:"absolute",left:la,top:0});var es={prefixCls:Po,responsive:us,component:Qe,invalidate:Ka},Zs=Wn?function(Wa,ro){var Vo=fo(Wa,ro);return pe.createElement(bt.Provider,{key:Vo,value:(0,Ne.Z)((0,Ne.Z)({},es),{},{order:ro,item:Wa,itemKey:Vo,registerSize:os,display:ro<=Ea})},Wn(Wa,ro))}:function(Wa,ro){var Vo=fo(Wa,ro);return pe.createElement(ot,(0,le.Z)({},es,{order:ro,key:Vo,item:Wa,renderItem:bo,itemKey:Vo,registerSize:os,display:ro<=Ea}))},Ws,el={order:Os?Ea:Number.MAX_SAFE_INTEGER,className:"".concat(Po,"-rest"),registerSize:Xo,display:Os};if(xr)xr&&(Ws=pe.createElement(bt.Provider,{value:(0,Ne.Z)((0,Ne.Z)({},es),el)},xr(Wo)));else{var bs=cr||Mt;Ws=pe.createElement(ot,(0,le.Z)({},es,el),typeof bs=="function"?bs(Wo):bs)}var ns=pe.createElement($r,(0,le.Z)({className:we()(!Ka&&ut,Jn),style:mn,ref:et},Zt),Ja.map(Zs),ua?Ws:null,Er&&pe.createElement(ot,(0,le.Z)({},es,{responsive:xa,responsiveDisabled:!us,order:Ea,className:"".concat(Po,"-suffix"),registerSize:ss,display:!0,style:qo}),Er));return xa&&(ns=pe.createElement(Le.Z,{onResize:Uo,disabled:!us},ns)),ns}var an=pe.forwardRef(qt);an.displayName="Overflow",an.Item=Rt,an.RESPONSIVE=In,an.INVALIDATE=xt;var ln=an,Yt=ln,Cn=te(21770),pr=te(80334),Xn=te(91881),ze=pe.createContext(null);function fe(Ve,et){return Ve===void 0?null:"".concat(Ve,"-").concat(et)}function ue(Ve){var et=pe.useContext(ze);return fe(et,Ve)}var xe=te(56982),ge=["children","locked"],se=pe.createContext(null);function Fe(Ve,et){var Je=(0,Ne.Z)({},Ve);return Object.keys(et).forEach(function(ut){var mt=et[ut];mt!==void 0&&(Je[ut]=mt)}),Je}function st(Ve){var et=Ve.children,Je=Ve.locked,ut=(0,ke.Z)(Ve,ge),mt=pe.useContext(se),Wt=(0,xe.Z)(function(){return Fe(mt,ut)},[mt,ut],function(sn,Wn){return!Je&&(sn[0]!==Wn[0]||!(0,Xn.Z)(sn[1],Wn[1],!0))});return pe.createElement(se.Provider,{value:Wt},et)}var en=[],Sn=pe.createContext(null);function dn(){return pe.useContext(Sn)}var zn=pe.createContext(en);function vn(Ve){var et=pe.useContext(zn);return pe.useMemo(function(){return Ve!==void 0?[].concat((0,Ue.Z)(et),[Ve]):et},[et,Ve])}var kt=pe.createContext(null),Xt=pe.createContext({}),Jt=Xt,jt=te(15105),Bt=te(75164),ir=function(Ve){if(!Ve)return!1;if(Ve instanceof Element){if(Ve.offsetParent)return!0;if(Ve.getBBox){var et=Ve.getBBox(),Je=et.width,ut=et.height;if(Je||ut)return!0}if(Ve.getBoundingClientRect){var mt=Ve.getBoundingClientRect(),Wt=mt.width,sn=mt.height;if(Wt||sn)return!0}}return!1};function Ct(Ve){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(ir(Ve)){var Je=Ve.nodeName.toLowerCase(),ut=["input","select","textarea","button"].includes(Je)||Ve.isContentEditable||Je==="a"&&!!Ve.getAttribute("href"),mt=Ve.getAttribute("tabindex"),Wt=Number(mt),sn=null;return mt&&!Number.isNaN(Wt)?sn=Wt:ut&&sn===null&&(sn=0),ut&&Ve.disabled&&(sn=null),sn!==null&&(sn>=0||et&&sn<0)}return!1}function At(Ve){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Je=(0,Ue.Z)(Ve.querySelectorAll("*")).filter(function(ut){return Ct(ut,et)});return Ct(Ve,et)&&Je.unshift(Ve),Je}var er=null;function An(){er=document.activeElement}function fr(){er=null}function Rr(){if(er)try{er.focus()}catch(Ve){}}function ii(Ve,et){if(et.keyCode===9){var Je=At(Ve),ut=Je[et.shiftKey?0:Je.length-1],mt=ut===document.activeElement||Ve===document.activeElement;if(mt){var Wt=Je[et.shiftKey?Je.length-1:0];Wt.focus(),et.preventDefault()}}}var Yr=jt.Z.LEFT,Jr=jt.Z.RIGHT,mi=jt.Z.UP,Br=jt.Z.DOWN,ki=jt.Z.ENTER,Vi=jt.Z.ESC,ha=jt.Z.HOME,pa=jt.Z.END,Ui=[mi,Br,Yr,Jr];function Ut(Ve,et,Je,ut){var mt,Wt,sn,Wn,lr="prev",Qn="next",Tn="children",kn="parent";if(Ve==="inline"&&ut===ki)return{inlineTrigger:!0};var mn=(mt={},(0,Me.Z)(mt,mi,lr),(0,Me.Z)(mt,Br,Qn),mt),Jn=(Wt={},(0,Me.Z)(Wt,Yr,Je?Qn:lr),(0,Me.Z)(Wt,Jr,Je?lr:Qn),(0,Me.Z)(Wt,Br,Tn),(0,Me.Z)(Wt,ki,Tn),Wt),Dr=(sn={},(0,Me.Z)(sn,mi,lr),(0,Me.Z)(sn,Br,Qn),(0,Me.Z)(sn,ki,Tn),(0,Me.Z)(sn,Vi,kn),(0,Me.Z)(sn,Yr,Je?Tn:kn),(0,Me.Z)(sn,Jr,Je?kn:Tn),sn),cr={inline:mn,horizontal:Jn,vertical:Dr,inlineSub:mn,horizontalSub:Dr,verticalSub:Dr},xr=(Wn=cr["".concat(Ve).concat(et?"":"Sub")])===null||Wn===void 0?void 0:Wn[ut];switch(xr){case lr:return{offset:-1,sibling:!0};case Qn:return{offset:1,sibling:!0};case kn:return{offset:-1,sibling:!1};case Tn:return{offset:1,sibling:!1};default:return null}}function Qt(Ve){for(var et=Ve;et;){if(et.getAttribute("data-menu-list"))return et;et=et.parentElement}return null}function un(Ve,et){for(var Je=Ve||document.activeElement;Je;){if(et.has(Je))return Je;Je=Je.parentElement}return null}function Bn(Ve,et){var Je=At(Ve,!0);return Je.filter(function(ut){return et.has(ut)})}function Cr(Ve,et,Je){var ut=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Ve)return null;var mt=Bn(Ve,et),Wt=mt.length,sn=mt.findIndex(function(Wn){return Je===Wn});return ut<0?sn===-1?sn=Wt-1:sn-=1:ut>0&&(sn+=1),sn=(sn+Wt)%Wt,mt[sn]}function qn(Ve,et,Je,ut,mt,Wt,sn,Wn,lr,Qn){var Tn=pe.useRef(),kn=pe.useRef();kn.current=et;var mn=function(){Bt.Z.cancel(Tn.current)};return pe.useEffect(function(){return function(){mn()}},[]),function(Jn){var Dr=Jn.which;if([].concat(Ui,[ki,Vi,ha,pa]).includes(Dr)){var cr,xr,Er,Nr=function(){cr=new Set,xr=new Map,Er=new Map;var Kr=Wt();return Kr.forEach(function(ci){var Hr=document.querySelector("[data-menu-id='".concat(fe(ut,ci),"']"));Hr&&(cr.add(Hr),Er.set(Hr,ci),xr.set(ci,Hr))}),cr};Nr();var $r=xr.get(et),Qe=un($r,cr),rt=Er.get(Qe),Zt=Ut(Ve,sn(rt,!0).length===1,Je,Dr);if(!Zt&&Dr!==ha&&Dr!==pa)return;(Ui.includes(Dr)||[ha,pa].includes(Dr))&&Jn.preventDefault();var It=function(Kr){if(Kr){var ci=Kr,Hr=Kr.querySelector("a");Hr!=null&&Hr.getAttribute("href")&&(ci=Hr);var yi=Er.get(Kr);Wn(yi),mn(),Tn.current=(0,Bt.Z)(function(){kn.current===yi&&ci.focus()})}};if([ha,pa].includes(Dr)||Zt.sibling||!Qe){var gn;!Qe||Ve==="inline"?gn=mt.current:gn=Qt(Qe);var Un,Yn=Bn(gn,cr);Dr===ha?Un=Yn[0]:Dr===pa?Un=Yn[Yn.length-1]:Un=Cr(gn,cr,Qe,Zt.offset),It(Un)}else if(Zt.inlineTrigger)lr(rt);else if(Zt.offset>0)lr(rt,!0),mn(),Tn.current=(0,Bt.Z)(function(){Nr();var Or=Qe.getAttribute("aria-controls"),Kr=document.getElementById(Or),ci=Cr(Kr,cr);It(ci)},5);else if(Zt.offset<0){var Ar=sn(rt,!0),gr=Ar[Ar.length-2],tr=xr.get(gr);lr(gr,!1),It(tr)}}Qn==null||Qn(Jn)}}function Lr(Ve){Promise.resolve().then(Ve)}var or="__RC_UTIL_PATH_SPLIT__",Et=function(et){return et.join(or)},_t=function(et){return et.split(or)},zt="rc-menu-more";function wn(){var Ve=pe.useState({}),et=(0,be.Z)(Ve,2),Je=et[1],ut=(0,pe.useRef)(new Map),mt=(0,pe.useRef)(new Map),Wt=pe.useState([]),sn=(0,be.Z)(Wt,2),Wn=sn[0],lr=sn[1],Qn=(0,pe.useRef)(0),Tn=(0,pe.useRef)(!1),kn=function(){Tn.current||Je({})},mn=(0,pe.useCallback)(function($r,Qe){var rt=Et(Qe);mt.current.set(rt,$r),ut.current.set($r,rt),Qn.current+=1;var Zt=Qn.current;Lr(function(){Zt===Qn.current&&kn()})},[]),Jn=(0,pe.useCallback)(function($r,Qe){var rt=Et(Qe);mt.current.delete(rt),ut.current.delete($r)},[]),Dr=(0,pe.useCallback)(function($r){lr($r)},[]),cr=(0,pe.useCallback)(function($r,Qe){var rt=ut.current.get($r)||"",Zt=_t(rt);return Qe&&Wn.includes(Zt[0])&&Zt.unshift(zt),Zt},[Wn]),xr=(0,pe.useCallback)(function($r,Qe){return $r.some(function(rt){var Zt=cr(rt,!0);return Zt.includes(Qe)})},[cr]),Er=function(){var Qe=(0,Ue.Z)(ut.current.keys());return Wn.length&&Qe.push(zt),Qe},Nr=(0,pe.useCallback)(function($r){var Qe="".concat(ut.current.get($r)).concat(or),rt=new Set;return(0,Ue.Z)(mt.current.keys()).forEach(function(Zt){Zt.startsWith(Qe)&&rt.add(mt.current.get(Zt))}),rt},[]);return pe.useEffect(function(){return function(){Tn.current=!0}},[]),{registerPath:mn,unregisterPath:Jn,refreshOverflowKeys:Dr,isSubPathKey:xr,getKeyPath:cr,getKeys:Er,getSubPathKeys:Nr}}function ft(Ve){var et=pe.useRef(Ve);et.current=Ve;var Je=pe.useCallback(function(){for(var ut,mt=arguments.length,Wt=new Array(mt),sn=0;sn<mt;sn++)Wt[sn]=arguments[sn];return(ut=et.current)===null||ut===void 0?void 0:ut.call.apply(ut,[et].concat(Wt))},[]);return Ve?Je:void 0}var Ht=Math.random().toFixed(5).toString().slice(2),xn=0;function En(Ve){var et=(0,Cn.Z)(Ve,{value:Ve}),Je=(0,be.Z)(et,2),ut=Je[0],mt=Je[1];return pe.useEffect(function(){xn+=1;var Wt="".concat(Ht,"-").concat(xn);mt("rc-menu-uuid-".concat(Wt))},[]),ut}var Hn=te(15671),Gn=te(43144),br=te(60136),fi=te(51630),Gr=te(98423),Vr=te(42550);function ai(Ve,et,Je,ut){var mt=pe.useContext(se),Wt=mt.activeKey,sn=mt.onActive,Wn=mt.onInactive,lr={active:Wt===Ve};return et||(lr.onMouseEnter=function(Qn){Je==null||Je({key:Ve,domEvent:Qn}),sn(Ve)},lr.onMouseLeave=function(Qn){ut==null||ut({key:Ve,domEvent:Qn}),Wn(Ve)}),lr}function ei(Ve){var et=pe.useContext(se),Je=et.mode,ut=et.rtl,mt=et.inlineIndent;if(Je!=="inline")return null;var Wt=Ve;return ut?{paddingRight:Wt*mt}:{paddingLeft:Wt*mt}}function Vt(Ve){var et=Ve.icon,Je=Ve.props,ut=Ve.children,mt;return et===null||et===!1?null:(typeof et=="function"?mt=pe.createElement(et,(0,Ne.Z)({},Je)):typeof et!="boolean"&&(mt=et),mt||ut||null)}var Kt=["item"];function nn(Ve){var et=Ve.item,Je=(0,ke.Z)(Ve,Kt);return Object.defineProperty(Je,"item",{get:function(){return(0,pr.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),et}}),Je}var sr=["title","attribute","elementRef"],Tr=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Fn=["active"],mr=function(Ve){(0,br.Z)(Je,Ve);var et=(0,fi.Z)(Je);function Je(){return(0,Hn.Z)(this,Je),et.apply(this,arguments)}return(0,Gn.Z)(Je,[{key:"render",value:function(){var mt=this.props,Wt=mt.title,sn=mt.attribute,Wn=mt.elementRef,lr=(0,ke.Z)(mt,sr),Qn=(0,Gr.Z)(lr,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,pr.ZP)(!sn,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),pe.createElement(Yt.Item,(0,le.Z)({},sn,{title:typeof Wt=="string"?Wt:void 0},Qn,{ref:Wn}))}}]),Je}(pe.Component),ur=pe.forwardRef(function(Ve,et){var Je,ut=Ve.style,mt=Ve.className,Wt=Ve.eventKey,sn=Ve.warnKey,Wn=Ve.disabled,lr=Ve.itemIcon,Qn=Ve.children,Tn=Ve.role,kn=Ve.onMouseEnter,mn=Ve.onMouseLeave,Jn=Ve.onClick,Dr=Ve.onKeyDown,cr=Ve.onFocus,xr=(0,ke.Z)(Ve,Tr),Er=ue(Wt),Nr=pe.useContext(se),$r=Nr.prefixCls,Qe=Nr.onItemClick,rt=Nr.disabled,Zt=Nr.overflowDisabled,It=Nr.itemIcon,gn=Nr.selectedKeys,Un=Nr.onActive,Yn=pe.useContext(Jt),Ar=Yn._internalRenderMenuItem,gr="".concat($r,"-item"),tr=pe.useRef(),Or=pe.useRef(),Kr=rt||Wn,ci=(0,Vr.x1)(et,Or),Hr=vn(Wt),yi=function(za){return{key:Wt,keyPath:(0,Ue.Z)(Hr).reverse(),item:tr.current,domEvent:za}},Ii=lr||It,Si=ai(Wt,Kr,kn,mn),Ni=Si.active,gi=(0,ke.Z)(Si,Fn),Di=gn.includes(Wt),Ri=ei(Hr.length),sa=function(za){if(!Kr){var la=yi(za);Jn==null||Jn(nn(la)),Qe(la)}},bi=function(za){if(Dr==null||Dr(za),za.which===jt.Z.ENTER){var la=yi(za);Jn==null||Jn(nn(la)),Qe(la)}},ba=function(za){Un(Wt),cr==null||cr(za)},Ca={};Ve.role==="option"&&(Ca["aria-selected"]=Di);var Co=pe.createElement(mr,(0,le.Z)({ref:tr,elementRef:ci,role:Tn===null?"none":Tn||"menuitem",tabIndex:Wn?null:-1,"data-menu-id":Zt&&Er?null:Er},xr,gi,Ca,{component:"li","aria-disabled":Wn,style:(0,Ne.Z)((0,Ne.Z)({},Ri),ut),className:we()(gr,(Je={},(0,Me.Z)(Je,"".concat(gr,"-active"),Ni),(0,Me.Z)(Je,"".concat(gr,"-selected"),Di),(0,Me.Z)(Je,"".concat(gr,"-disabled"),Kr),Je),mt),onClick:sa,onKeyDown:bi,onFocus:ba}),Qn,pe.createElement(Vt,{props:(0,Ne.Z)((0,Ne.Z)({},Ve),{},{isSelected:Di}),icon:Ii}));return Ar&&(Co=Ar(Co,Ve,{selected:Di})),Co});function zr(Ve,et){var Je=Ve.eventKey,ut=dn(),mt=vn(Je);return pe.useEffect(function(){if(ut)return ut.registerPath(Je,mt),function(){ut.unregisterPath(Je,mt)}},[mt]),ut?null:pe.createElement(ur,(0,le.Z)({},Ve,{ref:et}))}var ti=pe.forwardRef(zr),jn=["className","children"],Gi=function(et,Je){var ut=et.className,mt=et.children,Wt=(0,ke.Z)(et,jn),sn=pe.useContext(se),Wn=sn.prefixCls,lr=sn.mode,Qn=sn.rtl;return pe.createElement("ul",(0,le.Z)({className:we()(Wn,Qn&&"".concat(Wn,"-rtl"),"".concat(Wn,"-sub"),"".concat(Wn,"-").concat(lr==="inline"?"inline":"vertical"),ut),role:"menu"},Wt,{"data-menu-list":!0,ref:Je}),mt)},_i=pe.forwardRef(Gi);_i.displayName="SubMenuList";var Xa=_i,_a=te(50344);function Aa(Ve,et){return(0,_a.Z)(Ve).map(function(Je,ut){if(pe.isValidElement(Je)){var mt,Wt,sn=Je.key,Wn=(mt=(Wt=Je.props)===null||Wt===void 0?void 0:Wt.eventKey)!==null&&mt!==void 0?mt:sn,lr=Wn==null;lr&&(Wn="tmp_key-".concat([].concat((0,Ue.Z)(et),[ut]).join("-")));var Qn={key:Wn,eventKey:Wn};return pe.cloneElement(Je,Qn)}return Je})}var ra=te(62709),Oa={adjustX:1,adjustY:1},ya={topLeft:{points:["bl","tl"],overflow:Oa},topRight:{points:["br","tr"],overflow:Oa},bottomLeft:{points:["tl","bl"],overflow:Oa},bottomRight:{points:["tr","br"],overflow:Oa},leftTop:{points:["tr","tl"],overflow:Oa},leftBottom:{points:["br","bl"],overflow:Oa},rightTop:{points:["tl","tr"],overflow:Oa},rightBottom:{points:["bl","br"],overflow:Oa}},Ra={topLeft:{points:["bl","tl"],overflow:Oa},topRight:{points:["br","tr"],overflow:Oa},bottomLeft:{points:["tl","bl"],overflow:Oa},bottomRight:{points:["tr","br"],overflow:Oa},rightTop:{points:["tr","tl"],overflow:Oa},rightBottom:{points:["br","bl"],overflow:Oa},leftTop:{points:["tl","tr"],overflow:Oa},leftBottom:{points:["bl","br"],overflow:Oa}},oo=null;function Yi(Ve,et,Je){if(et)return et;if(Je)return Je[Ve]||Je.other}var Pa={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function to(Ve){var et=Ve.prefixCls,Je=Ve.visible,ut=Ve.children,mt=Ve.popup,Wt=Ve.popupStyle,sn=Ve.popupClassName,Wn=Ve.popupOffset,lr=Ve.disabled,Qn=Ve.mode,Tn=Ve.onVisibleChange,kn=pe.useContext(se),mn=kn.getPopupContainer,Jn=kn.rtl,Dr=kn.subMenuOpenDelay,cr=kn.subMenuCloseDelay,xr=kn.builtinPlacements,Er=kn.triggerSubMenuAction,Nr=kn.forceSubMenuRender,$r=kn.rootClassName,Qe=kn.motion,rt=kn.defaultMotions,Zt=pe.useState(!1),It=(0,be.Z)(Zt,2),gn=It[0],Un=It[1],Yn=Jn?(0,Ne.Z)((0,Ne.Z)({},Ra),xr):(0,Ne.Z)((0,Ne.Z)({},ya),xr),Ar=Pa[Qn],gr=Yi(Qn,Qe,rt),tr=pe.useRef(gr);Qn!=="inline"&&(tr.current=gr);var Or=(0,Ne.Z)((0,Ne.Z)({},tr.current),{},{leavedClassName:"".concat(et,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Kr=pe.useRef();return pe.useEffect(function(){return Kr.current=(0,Bt.Z)(function(){Un(Je)}),function(){Bt.Z.cancel(Kr.current)}},[Je]),pe.createElement(ra.Z,{prefixCls:et,popupClassName:we()("".concat(et,"-popup"),(0,Me.Z)({},"".concat(et,"-rtl"),Jn),sn,$r),stretch:Qn==="horizontal"?"minWidth":null,getPopupContainer:mn,builtinPlacements:Yn,popupPlacement:Ar,popupVisible:gn,popup:mt,popupStyle:Wt,popupAlign:Wn&&{offset:Wn},action:lr?[]:[Er],mouseEnterDelay:Dr,mouseLeaveDelay:cr,onPopupVisibleChange:Tn,forceRender:Nr,popupMotion:Or,fresh:!0},ut)}var _o=te(62874);function wo(Ve){var et=Ve.id,Je=Ve.open,ut=Ve.keyPath,mt=Ve.children,Wt="inline",sn=pe.useContext(se),Wn=sn.prefixCls,lr=sn.forceSubMenuRender,Qn=sn.motion,Tn=sn.defaultMotions,kn=sn.mode,mn=pe.useRef(!1);mn.current=kn===Wt;var Jn=pe.useState(!mn.current),Dr=(0,be.Z)(Jn,2),cr=Dr[0],xr=Dr[1],Er=mn.current?Je:!1;pe.useEffect(function(){mn.current&&xr(!1)},[kn]);var Nr=(0,Ne.Z)({},Yi(Wt,Qn,Tn));ut.length>1&&(Nr.motionAppear=!1);var $r=Nr.onVisibleChanged;return Nr.onVisibleChanged=function(Qe){return!mn.current&&!Qe&&xr(!0),$r==null?void 0:$r(Qe)},cr?null:pe.createElement(st,{mode:Wt,locked:!mn.current},pe.createElement(_o.Z,(0,le.Z)({visible:Er},Nr,{forceRender:lr,removeOnLeave:!1,leavedClassName:"".concat(Wn,"-hidden")}),function(Qe){var rt=Qe.className,Zt=Qe.style;return pe.createElement(Xa,{id:et,className:rt,style:Zt},mt)}))}var ia=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],on=["active"],Gt=function(et){var Je,ut=et.style,mt=et.className,Wt=et.title,sn=et.eventKey,Wn=et.warnKey,lr=et.disabled,Qn=et.internalPopupClose,Tn=et.children,kn=et.itemIcon,mn=et.expandIcon,Jn=et.popupClassName,Dr=et.popupOffset,cr=et.popupStyle,xr=et.onClick,Er=et.onMouseEnter,Nr=et.onMouseLeave,$r=et.onTitleClick,Qe=et.onTitleMouseEnter,rt=et.onTitleMouseLeave,Zt=(0,ke.Z)(et,ia),It=ue(sn),gn=pe.useContext(se),Un=gn.prefixCls,Yn=gn.mode,Ar=gn.openKeys,gr=gn.disabled,tr=gn.overflowDisabled,Or=gn.activeKey,Kr=gn.selectedKeys,ci=gn.itemIcon,Hr=gn.expandIcon,yi=gn.onItemClick,Ii=gn.onOpenChange,Si=gn.onActive,Ni=pe.useContext(Jt),gi=Ni._internalRenderSubMenuItem,Di=pe.useContext(kt),Ri=Di.isSubPathKey,sa=vn(),bi="".concat(Un,"-submenu"),ba=gr||lr,Ca=pe.useRef(),Co=pe.useRef(),Qa=kn!=null?kn:ci,za=mn!=null?mn:Hr,la=Ar.includes(sn),ga=!tr&&la,Xi=Ri(Kr,sn),Ba=ai(sn,ba,Qe,rt),Qi=Ba.active,Bi=(0,ke.Z)(Ba,on),Ea=pe.useState(!1),Va=(0,be.Z)(Ea,2),Jo=Va[0],zo=Va[1],Oo=function(ss){ba||zo(ss)},Po=function(ss){Oo(!0),Er==null||Er({key:sn,domEvent:ss})},co=function(ss){Oo(!1),Nr==null||Nr({key:sn,domEvent:ss})},xa=pe.useMemo(function(){return Qi||(Yn!=="inline"?Jo||Ri([Or],sn):!1)},[Yn,Qi,Or,Jo,sn,Ri]),us=ei(sa.length),Ka=function(ss){ba||($r==null||$r({key:sn,domEvent:ss}),Yn==="inline"&&Ii(sn,!la))},ua=ft(function(Xo){xr==null||xr(nn(Xo)),yi(Xo)}),Ja=function(ss){Yn!=="inline"&&Ii(sn,ss)},Wo=function(){Si(sn)},fo=It&&"".concat(It,"-popup"),bo=pe.createElement("div",(0,le.Z)({role:"menuitem",style:us,className:"".concat(bi,"-title"),tabIndex:ba?null:-1,ref:Ca,title:typeof Wt=="string"?Wt:null,"data-menu-id":tr&&It?null:It,"aria-expanded":ga,"aria-haspopup":!0,"aria-controls":fo,"aria-disabled":ba,onClick:Ka,onFocus:Wo},Bi),Wt,pe.createElement(Vt,{icon:Yn!=="horizontal"?za:void 0,props:(0,Ne.Z)((0,Ne.Z)({},et),{},{isOpen:ga,isSubMenu:!0})},pe.createElement("i",{className:"".concat(bi,"-arrow")}))),Ma=pe.useRef(Yn);if(Yn!=="inline"&&sa.length>1?Ma.current="vertical":Ma.current=Yn,!tr){var Uo=Ma.current;bo=pe.createElement(to,{mode:Uo,prefixCls:bi,visible:!Qn&&ga&&Yn!=="inline",popupClassName:Jn,popupOffset:Dr,popupStyle:cr,popup:pe.createElement(st,{mode:Uo==="horizontal"?"vertical":Uo},pe.createElement(Xa,{id:fo,ref:Co},Tn)),disabled:ba,onVisibleChange:Ja},bo)}var os=pe.createElement(Yt.Item,(0,le.Z)({role:"none"},Zt,{component:"li",style:ut,className:we()(bi,"".concat(bi,"-").concat(Yn),mt,(Je={},(0,Me.Z)(Je,"".concat(bi,"-open"),ga),(0,Me.Z)(Je,"".concat(bi,"-active"),xa),(0,Me.Z)(Je,"".concat(bi,"-selected"),Xi),(0,Me.Z)(Je,"".concat(bi,"-disabled"),ba),Je)),onMouseEnter:Po,onMouseLeave:co}),bo,!tr&&pe.createElement(wo,{id:fo,open:ga,keyPath:sa},Tn));return gi&&(os=gi(os,et,{selected:Xi,active:xa,open:ga,disabled:ba})),pe.createElement(st,{onItemClick:ua,mode:Yn==="horizontal"?"vertical":Yn,itemIcon:Qa,expandIcon:za},os)};function Kn(Ve){var et=Ve.eventKey,Je=Ve.children,ut=vn(et),mt=Aa(Je,ut),Wt=dn();pe.useEffect(function(){if(Wt)return Wt.registerPath(et,ut),function(){Wt.unregisterPath(et,ut)}},[ut]);var sn;return Wt?sn=mt:sn=pe.createElement(Gt,Ve,mt),pe.createElement(zn.Provider,{value:ut},sn)}var yr=te(71002),Ir=["className","title","eventKey","children"],si=["children"],Mi=function(et){var Je=et.className,ut=et.title,mt=et.eventKey,Wt=et.children,sn=(0,ke.Z)(et,Ir),Wn=pe.useContext(se),lr=Wn.prefixCls,Qn="".concat(lr,"-item-group");return pe.createElement("li",(0,le.Z)({role:"presentation"},sn,{onClick:function(kn){return kn.stopPropagation()},className:we()(Qn,Je)}),pe.createElement("div",{role:"presentation",className:"".concat(Qn,"-title"),title:typeof ut=="string"?ut:void 0},ut),pe.createElement("ul",{role:"group",className:"".concat(Qn,"-list")},Wt))};function Ti(Ve){var et=Ve.children,Je=(0,ke.Z)(Ve,si),ut=vn(Je.eventKey),mt=Aa(et,ut),Wt=dn();return Wt?mt:pe.createElement(Mi,(0,Gr.Z)(Je,["warnKey"]),mt)}function ji(Ve){var et=Ve.className,Je=Ve.style,ut=pe.useContext(se),mt=ut.prefixCls,Wt=dn();return Wt?null:pe.createElement("li",{role:"separator",className:we()("".concat(mt,"-item-divider"),et),style:Je})}var Oi=["label","children","key","type"];function aa(Ve){return(Ve||[]).map(function(et,Je){if(et&&(0,yr.Z)(et)==="object"){var ut=et,mt=ut.label,Wt=ut.children,sn=ut.key,Wn=ut.type,lr=(0,ke.Z)(ut,Oi),Qn=sn!=null?sn:"tmp-".concat(Je);return Wt||Wn==="group"?Wn==="group"?pe.createElement(Ti,(0,le.Z)({key:Qn},lr,{title:mt}),aa(Wt)):pe.createElement(Kn,(0,le.Z)({key:Qn},lr,{title:mt}),aa(Wt)):Wn==="divider"?pe.createElement(ji,(0,le.Z)({key:Qn},lr)):pe.createElement(ti,(0,le.Z)({key:Qn},lr),mt)}return null}).filter(function(et){return et})}function Da(Ve,et,Je){var ut=Ve;return et&&(ut=aa(et)),Aa(ut,Je)}var wi=["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"],fn=[],Rn=pe.forwardRef(function(Ve,et){var Je,ut,mt=Ve,Wt=mt.prefixCls,sn=Wt===void 0?"rc-menu":Wt,Wn=mt.rootClassName,lr=mt.style,Qn=mt.className,Tn=mt.tabIndex,kn=Tn===void 0?0:Tn,mn=mt.items,Jn=mt.children,Dr=mt.direction,cr=mt.id,xr=mt.mode,Er=xr===void 0?"vertical":xr,Nr=mt.inlineCollapsed,$r=mt.disabled,Qe=mt.disabledOverflow,rt=mt.subMenuOpenDelay,Zt=rt===void 0?.1:rt,It=mt.subMenuCloseDelay,gn=It===void 0?.1:It,Un=mt.forceSubMenuRender,Yn=mt.defaultOpenKeys,Ar=mt.openKeys,gr=mt.activeKey,tr=mt.defaultActiveFirst,Or=mt.selectable,Kr=Or===void 0?!0:Or,ci=mt.multiple,Hr=ci===void 0?!1:ci,yi=mt.defaultSelectedKeys,Ii=mt.selectedKeys,Si=mt.onSelect,Ni=mt.onDeselect,gi=mt.inlineIndent,Di=gi===void 0?24:gi,Ri=mt.motion,sa=mt.defaultMotions,bi=mt.triggerSubMenuAction,ba=bi===void 0?"hover":bi,Ca=mt.builtinPlacements,Co=mt.itemIcon,Qa=mt.expandIcon,za=mt.overflowedIndicator,la=za===void 0?"...":za,ga=mt.overflowedIndicatorPopupClassName,Xi=mt.getPopupContainer,Ba=mt.onClick,Qi=mt.onOpenChange,Bi=mt.onKeyDown,Ea=mt.openAnimation,Va=mt.openTransitionName,Jo=mt._internalRenderMenuItem,zo=mt._internalRenderSubMenuItem,Oo=(0,ke.Z)(mt,wi),Po=pe.useMemo(function(){return Da(Jn,mn,fn)},[Jn,mn]),co=pe.useState(!1),xa=(0,be.Z)(co,2),us=xa[0],Ka=xa[1],ua=pe.useRef(),Ja=En(cr),Wo=Dr==="rtl",fo=(0,Cn.Z)(Yn,{value:Ar,postState:function(Ta){return Ta||fn}}),bo=(0,be.Z)(fo,2),Ma=bo[0],Uo=bo[1],os=function(Ta){var Eo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function ho(){Uo(Ta),Qi==null||Qi(Ta)}Eo?(0,Se.flushSync)(ho):ho()},Xo=pe.useState(Ma),ss=(0,be.Z)(Xo,2),cs=ss[0],Os=ss[1],qo=pe.useRef(!1),es=pe.useMemo(function(){return(Er==="inline"||Er==="vertical")&&Nr?["vertical",Nr]:[Er,!1]},[Er,Nr]),Zs=(0,be.Z)(es,2),Ws=Zs[0],el=Zs[1],bs=Ws==="inline",ns=pe.useState(Ws),Wa=(0,be.Z)(ns,2),ro=Wa[0],Vo=Wa[1],rs=pe.useState(el),Rs=(0,be.Z)(rs,2),tl=Rs[0],il=Rs[1];pe.useEffect(function(){Vo(Ws),il(el),qo.current&&(bs?Uo(cs):os(fn))},[Ws,el]);var pl=pe.useState(0),Al=(0,be.Z)(pl,2),nl=Al[0],Fl=Al[1],To=nl>=Po.length-1||ro!=="horizontal"||Qe;pe.useEffect(function(){bs&&Os(Ma)},[Ma]),pe.useEffect(function(){return qo.current=!0,function(){qo.current=!1}},[]);var Ce=wn(),Oe=Ce.registerPath,_e=Ce.unregisterPath,Dt=Ce.refreshOverflowKeys,Lt=Ce.isSubPathKey,Ln=Ce.getKeyPath,yn=Ce.getKeys,vr=Ce.getSubPathKeys,_n=pe.useMemo(function(){return{registerPath:Oe,unregisterPath:_e}},[Oe,_e]),Mn=pe.useMemo(function(){return{isSubPathKey:Lt}},[Lt]);pe.useEffect(function(){Dt(To?fn:Po.slice(nl+1).map(function(io){return io.key}))},[nl,To]);var kr=(0,Cn.Z)(gr||tr&&((Je=Po[0])===null||Je===void 0?void 0:Je.key),{value:gr}),Zn=(0,be.Z)(kr,2),nr=Zn[0],Zr=Zn[1],Ur=ft(function(io){Zr(io)}),hr=ft(function(){Zr(void 0)});(0,pe.useImperativeHandle)(et,function(){return{list:ua.current,focus:function(Ta){var Eo,ho=nr!=null?nr:(Eo=Po.find(function(is){return!is.props.disabled}))===null||Eo===void 0?void 0:Eo.key;if(ho){var no,go,Mo;(no=ua.current)===null||no===void 0||(go=no.querySelector("li[data-menu-id='".concat(fe(Ja,ho),"']")))===null||go===void 0||(Mo=go.focus)===null||Mo===void 0||Mo.call(go,Ta)}}}});var Fr=(0,Cn.Z)(yi||[],{value:Ii,postState:function(Ta){return Array.isArray(Ta)?Ta:Ta==null?fn:[Ta]}}),ni=(0,be.Z)(Fr,2),li=ni[0],xi=ni[1],Fi=function(Ta){if(Kr){var Eo=Ta.key,ho=li.includes(Eo),no;Hr?ho?no=li.filter(function(Mo){return Mo!==Eo}):no=[].concat((0,Ue.Z)(li),[Eo]):no=[Eo],xi(no);var go=(0,Ne.Z)((0,Ne.Z)({},Ta),{},{selectedKeys:no});ho?Ni==null||Ni(go):Si==null||Si(go)}!Hr&&Ma.length&&ro!=="inline"&&os(fn)},ta=ft(function(io){Ba==null||Ba(nn(io)),Fi(io)}),Hi=ft(function(io,Ta){var Eo=Ma.filter(function(no){return no!==io});if(Ta)Eo.push(io);else if(ro!=="inline"){var ho=vr(io);Eo=Eo.filter(function(no){return!ho.has(no)})}(0,Xn.Z)(Ma,Eo,!0)||os(Eo,!0)}),Ci=function(Ta,Eo){var ho=Eo!=null?Eo:!Ma.includes(Ta);Hi(Ta,ho)},qa=qn(ro,nr,Wo,Ja,ua,yn,Ln,Zr,Ci,Bi);pe.useEffect(function(){Ka(!0)},[]);var Ha=pe.useMemo(function(){return{_internalRenderMenuItem:Jo,_internalRenderSubMenuItem:zo}},[Jo,zo]),so=ro!=="horizontal"||Qe?Po:Po.map(function(io,Ta){return pe.createElement(st,{key:io.key,overflowDisabled:Ta>nl},io)}),Ro=pe.createElement(Yt,(0,le.Z)({id:cr,ref:ua,prefixCls:"".concat(sn,"-overflow"),component:"ul",itemComponent:ti,className:we()(sn,"".concat(sn,"-root"),"".concat(sn,"-").concat(ro),Qn,(ut={},(0,Me.Z)(ut,"".concat(sn,"-inline-collapsed"),tl),(0,Me.Z)(ut,"".concat(sn,"-rtl"),Wo),ut),Wn),dir:Dr,style:lr,role:"menu",tabIndex:kn,data:so,renderRawItem:function(Ta){return Ta},renderRawRest:function(Ta){var Eo=Ta.length,ho=Eo?Po.slice(-Eo):null;return pe.createElement(Kn,{eventKey:zt,title:la,disabled:To,internalPopupClose:Eo===0,popupClassName:ga},ho)},maxCount:ro!=="horizontal"||Qe?Yt.INVALIDATE:Yt.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Ta){Fl(Ta)},onKeyDown:qa},Oo));return pe.createElement(Jt.Provider,{value:Ha},pe.createElement(ze.Provider,{value:Ja},pe.createElement(st,{prefixCls:sn,rootClassName:Wn,mode:ro,openKeys:Ma,rtl:Wo,disabled:$r,motion:us?Ri:null,defaultMotions:us?sa:null,activeKey:nr,onActive:Ur,onInactive:hr,selectedKeys:li,inlineIndent:Di,subMenuOpenDelay:Zt,subMenuCloseDelay:gn,forceSubMenuRender:Un,builtinPlacements:Ca,triggerSubMenuAction:ba,getPopupContainer:Xi,itemIcon:Co,expandIcon:Qa,onItemClick:ta,onOpenChange:Hi},pe.createElement(kt.Provider,{value:Mn},Ro),pe.createElement("div",{style:{display:"none"},"aria-hidden":!0},pe.createElement(Sn.Provider,{value:_n},Po)))))}),rr=Rn,me=rr;me.Item=ti,me.SubMenu=Kn,me.ItemGroup=Ti,me.Divider=ji;var $e=me},81626:function(Nn,Nt){"use strict";Nt.Z={items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875",page_size:"\u9875\u7801"}},46762:function(Nn,Nt){"use strict";var te;var le=Symbol.for("react.element"),Me=Symbol.for("react.portal"),Ne=Symbol.for("react.fragment"),Ue=Symbol.for("react.strict_mode"),be=Symbol.for("react.profiler"),ke=Symbol.for("react.provider"),de=Symbol.for("react.context"),we=Symbol.for("react.server_context"),pe=Symbol.for("react.forward_ref"),Le=Symbol.for("react.suspense"),nt=Symbol.for("react.suspense_list"),Re=Symbol.for("react.memo"),We=Symbol.for("react.lazy"),qe=Symbol.for("react.offscreen"),lt;lt=Symbol.for("react.module.reference");function Xe(ye){if(typeof ye=="object"&&ye!==null){var vt=ye.$$typeof;switch(vt){case le:switch(ye=ye.type,ye){case Ne:case be:case Ue:case Le:case nt:return ye;default:switch(ye=ye&&ye.$$typeof,ye){case we:case de:case pe:case We:case Re:case ke:return ye;default:return vt}}case Me:return vt}}}te=de,te=ke,te=le,te=pe,te=Ne,te=We,te=Re,te=Me,te=be,te=Ue,te=Le,te=nt,te=function(){return!1},te=function(){return!1},te=function(ye){return Xe(ye)===de},te=function(ye){return Xe(ye)===ke},te=function(ye){return typeof ye=="object"&&ye!==null&&ye.$$typeof===le},te=function(ye){return Xe(ye)===pe},Nt.isFragment=function(ye){return Xe(ye)===Ne},te=function(ye){return Xe(ye)===We},te=function(ye){return Xe(ye)===Re},te=function(ye){return Xe(ye)===Me},te=function(ye){return Xe(ye)===be},te=function(ye){return Xe(ye)===Ue},te=function(ye){return Xe(ye)===Le},te=function(ye){return Xe(ye)===nt},te=function(ye){return typeof ye=="string"||typeof ye=="function"||ye===Ne||ye===be||ye===Ue||ye===Le||ye===nt||ye===qe||typeof ye=="object"&&ye!==null&&(ye.$$typeof===We||ye.$$typeof===Re||ye.$$typeof===ke||ye.$$typeof===de||ye.$$typeof===pe||ye.$$typeof===lt||ye.getModuleId!==void 0)},te=Xe},35110:function(Nn,Nt,te){"use strict";Nn.exports=te(46762)},66680:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return Me}});var le=te(67294);function Me(Ne){var Ue=le.useRef();Ue.current=Ne;var be=le.useCallback(function(){for(var ke,de=arguments.length,we=new Array(de),pe=0;pe<de;pe++)we[pe]=arguments[pe];return(ke=Ue.current)===null||ke===void 0?void 0:ke.call.apply(ke,[Ue].concat(we))},[]);return be}},21770:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return ke}});var le=te(97685),Me=te(66680),Ne=te(8410),Ue=te(63896);function be(de){return de!==void 0}function ke(de,we){var pe=we||{},Le=pe.defaultValue,nt=pe.value,Re=pe.onChange,We=pe.postState,qe=(0,Ue.Z)(function(){return be(nt)?nt:be(Le)?typeof Le=="function"?Le():Le:typeof de=="function"?de():de}),lt=(0,le.Z)(qe,2),Xe=lt[0],ye=lt[1],vt=nt!==void 0?nt:Xe,Pt=We?We(vt):vt,ot=(0,Me.Z)(Re),ct=(0,Ue.Z)([vt]),Se=(0,le.Z)(ct,2),ce=Se[0],He=Se[1];(0,Ne.o)(function(){var it=ce[0];Xe!==it&&ot(Xe,it)},[ce]),(0,Ne.o)(function(){be(nt)||ye(nt)},[nt]);var je=(0,Me.Z)(function(it,at){ye(it,at),He([vt],at)});return[Pt,je]}},91881:function(Nn,Nt,te){"use strict";var le=te(71002),Me=te(80334);function Ne(Ue,be){var ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,de=new Set;function we(pe,Le){var nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Re=de.has(pe);if((0,Me.ZP)(!Re,"Warning: There may be circular references"),Re)return!1;if(pe===Le)return!0;if(ke&&nt>1)return!1;de.add(pe);var We=nt+1;if(Array.isArray(pe)){if(!Array.isArray(Le)||pe.length!==Le.length)return!1;for(var qe=0;qe<pe.length;qe++)if(!we(pe[qe],Le[qe],We))return!1;return!0}if(pe&&Le&&(0,le.Z)(pe)==="object"&&(0,le.Z)(Le)==="object"){var lt=Object.keys(pe);return lt.length!==Object.keys(Le).length?!1:lt.every(function(Xe){return we(pe[Xe],Le[Xe],We)})}return!1}return we(Ue,be)}Nt.Z=Ne},98423:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return Me}});var le=te(1413);function Me(Ne,Ue){var be=(0,le.Z)({},Ne);return Array.isArray(Ue)&&Ue.forEach(function(ke){delete be[ke]}),be}},64217:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return we}});var le=te(1413),Me=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,Ne=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Ue="".concat(Me," ").concat(Ne).split(/[\s\n]+/),be="aria-",ke="data-";function de(pe,Le){return pe.indexOf(Le)===0}function we(pe){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nt;Le===!1?nt={aria:!0,data:!0,attr:!0}:Le===!0?nt={aria:!0}:nt=(0,le.Z)({},Le);var Re={};return Object.keys(pe).forEach(function(We){(nt.aria&&(We==="role"||de(We,be))||nt.data&&de(We,ke)||nt.attr&&Ue.includes(We))&&(Re[We]=pe[We])}),Re}},73299:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return Ui}});var le=te(87462),Me=te(1413),Ne=te(71002),Ue=te(97685),be=te(4942),ke=te(45987),de=te(67294),we=te(73935),pe=te(94184),Le=te.n(pe),nt=te(48555),Re=de.forwardRef(function(Ut,Qt){var un=Ut.height,Bn=Ut.offsetY,Cr=Ut.offsetX,qn=Ut.children,Lr=Ut.prefixCls,or=Ut.onInnerResize,Et=Ut.innerProps,_t=Ut.rtl,zt=Ut.extra,wn={},ft={display:"flex",flexDirection:"column"};if(Bn!==void 0){var Ht;wn={height:un,position:"relative",overflow:"hidden"},ft=(0,Me.Z)((0,Me.Z)({},ft),{},(Ht={transform:"translateY(".concat(Bn,"px)")},(0,be.Z)(Ht,_t?"marginRight":"marginLeft",-Cr),(0,be.Z)(Ht,"position","absolute"),(0,be.Z)(Ht,"left",0),(0,be.Z)(Ht,"right",0),(0,be.Z)(Ht,"top",0),Ht))}return de.createElement("div",{style:wn},de.createElement(nt.Z,{onResize:function(En){var Hn=En.offsetHeight;Hn&&or&&or()}},de.createElement("div",(0,le.Z)({style:ft,className:Le()((0,be.Z)({},"".concat(Lr,"-holder-inner"),Lr)),ref:Qt},Et),qn,zt)))});Re.displayName="Filler";var We=Re,qe=function(Qt){return+setTimeout(Qt,16)},lt=function(Qt){return clearTimeout(Qt)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(qe=function(Qt){return window.requestAnimationFrame(Qt)},lt=function(Qt){return window.cancelAnimationFrame(Qt)});var Xe=0,ye=new Map;function vt(Ut){ye.delete(Ut)}var Pt=function(Qt){var un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Xe+=1;var Bn=Xe;function Cr(qn){if(qn===0)vt(Bn),Qt();else{var Lr=qe(function(){Cr(qn-1)});ye.set(Bn,Lr)}}return Cr(un),Bn};Pt.cancel=function(Ut){var Qt=ye.get(Ut);return vt(Qt),lt(Qt)};var ot=Pt;function ct(Ut,Qt){var un="touches"in Ut?Ut.touches[0]:Ut;return un[Qt?"pageX":"pageY"]}var Se=de.forwardRef(function(Ut,Qt){var un,Bn=Ut.prefixCls,Cr=Ut.rtl,qn=Ut.scrollOffset,Lr=Ut.scrollRange,or=Ut.onStartMove,Et=Ut.onStopMove,_t=Ut.onScroll,zt=Ut.horizontal,wn=Ut.spinSize,ft=Ut.containerSize,Ht=Ut.style,xn=Ut.thumbStyle,En=de.useState(!1),Hn=(0,Ue.Z)(En,2),Gn=Hn[0],br=Hn[1],fi=de.useState(null),Gr=(0,Ue.Z)(fi,2),Vr=Gr[0],ai=Gr[1],ei=de.useState(null),Vt=(0,Ue.Z)(ei,2),Kt=Vt[0],nn=Vt[1],sr=!Cr,Tr=de.useRef(),Fn=de.useRef(),mr=de.useState(!1),ur=(0,Ue.Z)(mr,2),zr=ur[0],ti=ur[1],jn=de.useRef(),Gi=function(){clearTimeout(jn.current),ti(!0),jn.current=setTimeout(function(){ti(!1)},3e3)},_i=Lr-ft||0,Xa=ft-wn||0,_a=_i>0,Aa=de.useMemo(function(){if(qn===0||_i===0)return 0;var _o=qn/_i;return _o*Xa},[qn,_i,Xa]),ra=function(wo){wo.stopPropagation(),wo.preventDefault()},Oa=de.useRef({top:Aa,dragging:Gn,pageY:Vr,startTop:Kt});Oa.current={top:Aa,dragging:Gn,pageY:Vr,startTop:Kt};var ya=function(wo){br(!0),ai(ct(wo,zt)),nn(Oa.current.top),or(),wo.stopPropagation(),wo.preventDefault()};de.useEffect(function(){var _o=function(Gt){Gt.preventDefault()},wo=Tr.current,ia=Fn.current;return wo.addEventListener("touchstart",_o),ia.addEventListener("touchstart",ya),function(){wo.removeEventListener("touchstart",_o),ia.removeEventListener("touchstart",ya)}},[]);var Ra=de.useRef();Ra.current=_i;var oo=de.useRef();oo.current=Xa,de.useEffect(function(){if(Gn){var _o,wo=function(Gt){var Kn=Oa.current,yr=Kn.dragging,Ir=Kn.pageY,si=Kn.startTop;if(ot.cancel(_o),yr){var Mi=ct(Gt,zt)-Ir,Ti=si;!sr&&zt?Ti-=Mi:Ti+=Mi;var ji=Ra.current,Oi=oo.current,aa=Oi?Ti/Oi:0,Da=Math.ceil(aa*ji);Da=Math.max(Da,0),Da=Math.min(Da,ji),_o=ot(function(){_t(Da,zt)})}},ia=function(){br(!1),Et()};return window.addEventListener("mousemove",wo),window.addEventListener("touchmove",wo),window.addEventListener("mouseup",ia),window.addEventListener("touchend",ia),function(){window.removeEventListener("mousemove",wo),window.removeEventListener("touchmove",wo),window.removeEventListener("mouseup",ia),window.removeEventListener("touchend",ia),ot.cancel(_o)}}},[Gn]),de.useEffect(function(){Gi()},[qn]),de.useImperativeHandle(Qt,function(){return{delayHidden:Gi}});var Yi="".concat(Bn,"-scrollbar"),Pa={position:"absolute",visibility:zr&&_a?null:"hidden"},to={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return zt?(Pa.height=8,Pa.left=0,Pa.right=0,Pa.bottom=0,to.height="100%",to.width=wn,sr?to.left=Aa:to.right=Aa):(Pa.width=8,Pa.top=0,Pa.bottom=0,sr?Pa.right=0:Pa.left=0,to.width="100%",to.height=wn,to.top=Aa),de.createElement("div",{ref:Tr,className:Le()(Yi,(un={},(0,be.Z)(un,"".concat(Yi,"-horizontal"),zt),(0,be.Z)(un,"".concat(Yi,"-vertical"),!zt),(0,be.Z)(un,"".concat(Yi,"-visible"),zr),un)),style:(0,Me.Z)((0,Me.Z)({},Pa),Ht),onMouseDown:ra,onMouseMove:Gi},de.createElement("div",{ref:Fn,className:Le()("".concat(Yi,"-thumb"),(0,be.Z)({},"".concat(Yi,"-thumb-moving"),Gn)),style:(0,Me.Z)((0,Me.Z)({},to),xn),onMouseDown:ya}))}),ce=Se;function He(Ut){var Qt=Ut.children,un=Ut.setRef,Bn=de.useCallback(function(Cr){un(Cr)},[]);return de.cloneElement(Qt,{ref:Bn})}function je(Ut,Qt,un,Bn,Cr,qn,Lr){var or=Lr.getKey;return Ut.slice(Qt,un+1).map(function(Et,_t){var zt=Qt+_t,wn=qn(Et,zt,{style:{width:Bn}}),ft=or(Et);return de.createElement(He,{key:ft,setRef:function(xn){return Cr(Et,xn)}},wn)})}function it(Ut){return Ut instanceof HTMLElement||Ut instanceof SVGElement}function at(Ut){return it(Ut)?Ut:Ut instanceof de.Component?we.findDOMNode(Ut):null}var Ge=te(15671),Ae=te(43144),wt=function(){function Ut(){(0,Ge.Z)(this,Ut),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,Ae.Z)(Ut,[{key:"set",value:function(un,Bn){this.maps[un]=Bn,this.id+=1}},{key:"get",value:function(un){return this.maps[un]}}]),Ut}(),dt=wt;function $t(Ut,Qt,un){var Bn=de.useState(0),Cr=(0,Ue.Z)(Bn,2),qn=Cr[0],Lr=Cr[1],or=(0,de.useRef)(new Map),Et=(0,de.useRef)(new dt),_t=(0,de.useRef)();function zt(){ot.cancel(_t.current)}function wn(){var Ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;zt();var xn=function(){or.current.forEach(function(Hn,Gn){if(Hn&&Hn.offsetParent){var br=at(Hn),fi=br.offsetHeight;Et.current.get(Gn)!==fi&&Et.current.set(Gn,br.offsetHeight)}}),Lr(function(Hn){return Hn+1})};Ht?xn():_t.current=ot(xn)}function ft(Ht,xn){var En=Ut(Ht),Hn=or.current.get(En);xn?(or.current.set(En,xn),wn()):or.current.delete(En),!Hn!=!xn&&(xn?Qt==null||Qt(Ht):un==null||un(Ht))}return(0,de.useEffect)(function(){return zt},[]),[ft,wn,Et.current,qn]}function bt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ot=bt()?de.useLayoutEffect:de.useEffect,Pn=function(Qt,un){var Bn=de.useRef(!0);Ot(function(){return Qt(Bn.current)},un),Ot(function(){return Bn.current=!1,function(){Bn.current=!0}},[])},$n=function(Qt,un){Pn(function(Bn){if(!Bn)return Qt()},un)},yt=Pn;function Be(Ut){var Qt=de.useRef();Qt.current=Ut;var un=de.useCallback(function(){for(var Bn,Cr=arguments.length,qn=new Array(Cr),Lr=0;Lr<Cr;Lr++)qn[Lr]=arguments[Lr];return(Bn=Qt.current)===null||Bn===void 0?void 0:Bn.call.apply(Bn,[Qt].concat(qn))},[]);return un}function Rt(Ut){var Qt=React.useRef(!1),un=React.useState(Ut),Bn=_slicedToArray(un,2),Cr=Bn[0],qn=Bn[1];React.useEffect(function(){return Qt.current=!1,function(){Qt.current=!0}},[]);function Lr(or,Et){Et&&Qt.current||qn(or)}return[Cr,Lr]}function Vn(Ut){return Ut!==void 0}function In(Ut,Qt){var un=Qt||{},Bn=un.defaultValue,Cr=un.value,qn=un.onChange,Lr=un.postState,or=useState(function(){return Vn(Cr)?Cr:Vn(Bn)?typeof Bn=="function"?Bn():Bn:typeof Ut=="function"?Ut():Ut}),Et=_slicedToArray(or,2),_t=Et[0],zt=Et[1],wn=Cr!==void 0?Cr:_t,ft=Lr?Lr(wn):wn,Ht=useEvent(qn),xn=useState([wn]),En=_slicedToArray(xn,2),Hn=En[0],Gn=En[1];useLayoutUpdateEffect(function(){var fi=Hn[0];_t!==fi&&Ht(_t,fi)},[Hn]),useLayoutUpdateEffect(function(){Vn(Cr)||zt(Cr)},[Cr]);var br=useEvent(function(fi,Gr){zt(fi,Gr),Gn([wn],Gr)});return[ft,br]}var xt=te(31461);function Mt(Ut,Qt,un){var Bn=React.useRef({});return(!("value"in Bn.current)||un(Bn.current.condition,Qt))&&(Bn.current.value=Ut(),Bn.current.condition=Qt),Bn.current.value}function qt(Ut,Qt){typeof Ut=="function"?Ut(Qt):_typeof(Ut)==="object"&&Ut&&"current"in Ut&&(Ut.current=Qt)}function an(){for(var Ut=arguments.length,Qt=new Array(Ut),un=0;un<Ut;un++)Qt[un]=arguments[un];var Bn=Qt.filter(function(Cr){return Cr});return Bn.length<=1?Bn[0]:function(Cr){Qt.forEach(function(qn){qt(qn,Cr)})}}function ln(){for(var Ut=arguments.length,Qt=new Array(Ut),un=0;un<Ut;un++)Qt[un]=arguments[un];return useMemo(function(){return an.apply(void 0,Qt)},Qt,function(Bn,Cr){return Bn.length!==Cr.length||Bn.every(function(qn,Lr){return qn!==Cr[Lr]})})}function Yt(Ut){var Qt,un,Bn=isMemo(Ut)?Ut.type.type:Ut.type;return!(typeof Bn=="function"&&!((Qt=Bn.prototype)!==null&&Qt!==void 0&&Qt.render)||typeof Ut=="function"&&!((un=Ut.prototype)!==null&&un!==void 0&&un.render))}function Cn(Ut){return!isValidElement(Ut)||isFragment(Ut)?!1:Yt(Ut)}function pr(Ut,Qt,un,Bn){if(!Qt.length)return un;var Cr=_toArray(Qt),qn=Cr[0],Lr=Cr.slice(1),or;return!Ut&&typeof qn=="number"?or=[]:Array.isArray(Ut)?or=_toConsumableArray(Ut):or=_objectSpread({},Ut),Bn&&un===void 0&&Lr.length===1?delete or[qn][Lr[0]]:or[qn]=pr(or[qn],Lr,un,Bn),or}function Xn(Ut,Qt,un){var Bn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Qt.length&&Bn&&un===void 0&&!get(Ut,Qt.slice(0,-1))?Ut:pr(Ut,Qt,un,Bn)}function ze(Ut){return _typeof(Ut)==="object"&&Ut!==null&&Object.getPrototypeOf(Ut)===Object.prototype}function fe(Ut){return Array.isArray(Ut)?[]:{}}var ue=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function xe(){for(var Ut=arguments.length,Qt=new Array(Ut),un=0;un<Ut;un++)Qt[un]=arguments[un];var Bn=fe(Qt[0]);return Qt.forEach(function(Cr){function qn(Lr,or){var Et=new Set(or),_t=get(Cr,Lr),zt=Array.isArray(_t);if(zt||ze(_t)){if(!Et.has(_t)){Et.add(_t);var wn=get(Bn,Lr);zt?Bn=Xn(Bn,Lr,[]):(!wn||_typeof(wn)!=="object")&&(Bn=Xn(Bn,Lr,fe(_t))),ue(_t).forEach(function(ft){qn([].concat(_toConsumableArray(Lr),[ft]),Et)})}}else Bn=Xn(Bn,Lr,_t)}qn([])}),Bn}var ge={},se=[],Fe=function(Qt){se.push(Qt)};function st(Ut,Qt){if(0)var un}function en(Ut,Qt){if(0)var un}function Sn(){ge={}}function dn(Ut,Qt,un){!Qt&&!ge[un]&&(Ut(!1,un),ge[un]=!0)}function zn(Ut,Qt){dn(st,Ut,Qt)}function vn(Ut,Qt){dn(en,Ut,Qt)}zn.preMessage=Fe,zn.resetWarned=Sn,zn.noteOnce=vn;var kt=null,Xt=10;function Jt(Ut,Qt,un,Bn,Cr,qn,Lr,or){var Et=de.useRef(),_t=de.useState(null),zt=(0,Ue.Z)(_t,2),wn=zt[0],ft=zt[1];return yt(function(){if(wn&&wn.times<Xt){if(!Ut.current){ft(function(Gi){return(0,Me.Z)({},Gi)});return}qn();var Ht=wn.targetAlign,xn=wn.originAlign,En=wn.index,Hn=wn.offset,Gn=Ut.current.clientHeight,br=!1,fi=Ht,Gr=null;if(Gn){for(var Vr=Ht||xn,ai=0,ei=0,Vt=0,Kt=Math.min(Qt.length-1,En),nn=0;nn<=Kt;nn+=1){var sr=Cr(Qt[nn]);ei=ai;var Tr=un.get(sr);Vt=ei+(Tr===void 0?Bn:Tr),ai=Vt}for(var Fn=Vr==="top"?Hn:Gn-Hn,mr=Kt;mr>=0;mr-=1){var ur=Cr(Qt[mr]),zr=un.get(ur);if(zr===void 0){br=!0;break}if(Fn-=zr,Fn<=0)break}switch(Vr){case"top":Gr=ei-Hn;break;case"bottom":Gr=Vt-Gn+Hn;break;default:{var ti=Ut.current.scrollTop,jn=ti+Gn;ei<ti?fi="top":Vt>jn&&(fi="bottom")}}Gr!==null&&Lr(Gr),Gr!==wn.lastTop&&(br=!0)}br&&ft(function(Gi){return(0,Me.Z)((0,Me.Z)({},Gi),{},{times:Gi.times+1,targetAlign:fi,lastTop:Gr})})}},[wn,Ut.current]),function(Ht){if(Ht==null){or();return}if(ot.cancel(Et.current),typeof Ht=="number")Lr(Ht);else if(Ht&&(0,Ne.Z)(Ht)==="object"){var xn,En=Ht.align;"index"in Ht?xn=Ht.index:xn=Qt.findIndex(function(br){return Cr(br)===Ht.key});var Hn=Ht.offset,Gn=Hn===void 0?0:Hn;ft({times:0,index:xn,offset:Gn,originAlign:En})}}}function jt(Ut,Qt,un,Bn){var Cr=un-Ut,qn=Qt-un,Lr=Math.min(Cr,qn)*2;if(Bn<=Lr){var or=Math.floor(Bn/2);return Bn%2?un+or+1:un-or}return Cr>qn?un-(Bn-qn):un+(Bn-Cr)}function Bt(Ut,Qt,un){var Bn=Ut.length,Cr=Qt.length,qn,Lr;if(Bn===0&&Cr===0)return null;Bn<Cr?(qn=Ut,Lr=Qt):(qn=Qt,Lr=Ut);var or={__EMPTY_ITEM__:!0};function Et(xn){return xn!==void 0?un(xn):or}for(var _t=null,zt=Math.abs(Bn-Cr)!==1,wn=0;wn<Lr.length;wn+=1){var ft=Et(qn[wn]),Ht=Et(Lr[wn]);if(ft!==Ht){_t=wn,zt=zt||ft!==Et(Lr[wn+1]);break}}return _t===null?null:{index:_t,multiple:zt}}function ir(Ut,Qt,un){var Bn=de.useState(Ut),Cr=(0,Ue.Z)(Bn,2),qn=Cr[0],Lr=Cr[1],or=de.useState(null),Et=(0,Ue.Z)(or,2),_t=Et[0],zt=Et[1];return de.useEffect(function(){var wn=Bt(qn||[],Ut||[],Qt);(wn==null?void 0:wn.index)!==void 0&&(un==null||un(wn.index),zt(Ut[wn.index])),Lr(Ut)},[Ut]),[_t]}var Ct=(typeof navigator=="undefined"?"undefined":(0,Ne.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),At=Ct,er=function(Ut,Qt){var un=(0,de.useRef)(!1),Bn=(0,de.useRef)(null);function Cr(){clearTimeout(Bn.current),un.current=!0,Bn.current=setTimeout(function(){un.current=!1},50)}var qn=(0,de.useRef)({top:Ut,bottom:Qt});return qn.current.top=Ut,qn.current.bottom=Qt,function(Lr){var or=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Et=Lr<0&&qn.current.top||Lr>0&&qn.current.bottom;return or&&Et?(clearTimeout(Bn.current),un.current=!1):(!Et||un.current)&&Cr(),!un.current&&Et}};function An(Ut,Qt,un,Bn,Cr){var qn=(0,de.useRef)(0),Lr=(0,de.useRef)(null),or=(0,de.useRef)(null),Et=(0,de.useRef)(!1),_t=er(Qt,un);function zt(Hn,Gn){ot.cancel(Lr.current),qn.current+=Gn,or.current=Gn,!_t(Gn)&&(At||Hn.preventDefault(),Lr.current=ot(function(){var br=Et.current?10:1;Cr(qn.current*br),qn.current=0}))}function wn(Hn,Gn){Cr(Gn,!0),At||Hn.preventDefault()}var ft=(0,de.useRef)(null),Ht=(0,de.useRef)(null);function xn(Hn){if(Ut){ot.cancel(Ht.current),Ht.current=ot(function(){ft.current=null},2);var Gn=Hn.deltaX,br=Hn.deltaY,fi=Hn.shiftKey,Gr=Gn,Vr=br;(ft.current==="sx"||!ft.current&&fi&&br&&!Gn)&&(Gr=br,Vr=0,ft.current="sx");var ai=Math.abs(Gr),ei=Math.abs(Vr);ft.current===null&&(ft.current=Bn&&ai>ei?"x":"y"),ft.current==="y"?zt(Hn,Vr):wn(Hn,Gr)}}function En(Hn){Ut&&(Et.current=Hn.detail===or.current)}return[xn,En]}var fr=14/15;function Rr(Ut,Qt,un){var Bn=(0,de.useRef)(!1),Cr=(0,de.useRef)(0),qn=(0,de.useRef)(null),Lr=(0,de.useRef)(null),or,Et=function(ft){if(Bn.current){var Ht=Math.ceil(ft.touches[0].pageY),xn=Cr.current-Ht;Cr.current=Ht,un(xn)&&ft.preventDefault(),clearInterval(Lr.current),Lr.current=setInterval(function(){xn*=fr,(!un(xn,!0)||Math.abs(xn)<=.1)&&clearInterval(Lr.current)},16)}},_t=function(){Bn.current=!1,or()},zt=function(ft){or(),ft.touches.length===1&&!Bn.current&&(Bn.current=!0,Cr.current=Math.ceil(ft.touches[0].pageY),qn.current=ft.target,qn.current.addEventListener("touchmove",Et),qn.current.addEventListener("touchend",_t))};or=function(){qn.current&&(qn.current.removeEventListener("touchmove",Et),qn.current.removeEventListener("touchend",_t))},yt(function(){return Ut&&Qt.current.addEventListener("touchstart",zt),function(){var wn;(wn=Qt.current)===null||wn===void 0||wn.removeEventListener("touchstart",zt),or(),clearInterval(Lr.current)}},[Ut])}var ii=20;function Yr(){var Ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,un=Ut/Qt*100;return isNaN(un)&&(un=0),un=Math.max(un,ii),un=Math.min(un,Ut/2),Math.floor(un)}function Jr(Ut,Qt,un,Bn){var Cr=de.useMemo(function(){return[new Map,[]]},[Ut,un.id,Bn]),qn=(0,Ue.Z)(Cr,2),Lr=qn[0],or=qn[1],Et=function(zt){var wn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:zt,ft=Lr.get(zt),Ht=Lr.get(wn);if(ft===void 0||Ht===void 0)for(var xn=Ut.length,En=or.length;En<xn;En+=1){var Hn,Gn=Ut[En],br=Qt(Gn);Lr.set(br,En);var fi=(Hn=un.get(br))!==null&&Hn!==void 0?Hn:Bn;if(or[En]=(or[En-1]||0)+fi,br===zt&&(ft=En),br===wn&&(Ht=En),ft!==void 0&&Ht!==void 0)break}return{top:or[ft-1]||0,bottom:or[Ht]}};return Et}var mi=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Br=[],ki={overflowY:"auto",overflowAnchor:"none"};function Vi(Ut,Qt){var un=Ut.prefixCls,Bn=un===void 0?"rc-virtual-list":un,Cr=Ut.className,qn=Ut.height,Lr=Ut.itemHeight,or=Ut.fullHeight,Et=or===void 0?!0:or,_t=Ut.style,zt=Ut.data,wn=Ut.children,ft=Ut.itemKey,Ht=Ut.virtual,xn=Ut.direction,En=Ut.scrollWidth,Hn=Ut.component,Gn=Hn===void 0?"div":Hn,br=Ut.onScroll,fi=Ut.onVirtualScroll,Gr=Ut.onVisibleChange,Vr=Ut.innerProps,ai=Ut.extraRender,ei=Ut.styles,Vt=(0,ke.Z)(Ut,mi),Kt=!!(Ht!==!1&&qn&&Lr),nn=Kt&&zt&&(Lr*zt.length>qn||!!En),sr=xn==="rtl",Tr=Le()(Bn,(0,be.Z)({},"".concat(Bn,"-rtl"),sr),Cr),Fn=zt||Br,mr=(0,de.useRef)(),ur=(0,de.useRef)(),zr=(0,de.useState)(0),ti=(0,Ue.Z)(zr,2),jn=ti[0],Gi=ti[1],_i=(0,de.useState)(0),Xa=(0,Ue.Z)(_i,2),_a=Xa[0],Aa=Xa[1],ra=(0,de.useState)(!1),Oa=(0,Ue.Z)(ra,2),ya=Oa[0],Ra=Oa[1],oo=function(){Ra(!0)},Yi=function(){Ra(!1)},Pa=de.useCallback(function(tr){return typeof ft=="function"?ft(tr):tr==null?void 0:tr[ft]},[ft]),to={getKey:Pa};function _o(tr){Gi(function(Or){var Kr;typeof tr=="function"?Kr=tr(Or):Kr=tr;var ci=Wn(Kr);return mr.current.scrollTop=ci,ci})}var wo=(0,de.useRef)({start:0,end:Fn.length}),ia=(0,de.useRef)(),on=ir(Fn,Pa),Gt=(0,Ue.Z)(on,1),Kn=Gt[0];ia.current=Kn;var yr=$t(Pa,null,null),Ir=(0,Ue.Z)(yr,4),si=Ir[0],Mi=Ir[1],Ti=Ir[2],ji=Ir[3],Oi=de.useMemo(function(){if(!Kt)return{scrollHeight:void 0,start:0,end:Fn.length-1,offset:void 0};if(!nn){var tr;return{scrollHeight:((tr=ur.current)===null||tr===void 0?void 0:tr.offsetHeight)||0,start:0,end:Fn.length-1,offset:void 0}}for(var Or=0,Kr,ci,Hr,yi=Fn.length,Ii=0;Ii<yi;Ii+=1){var Si=Fn[Ii],Ni=Pa(Si),gi=Ti.get(Ni),Di=Or+(gi===void 0?Lr:gi);Di>=jn&&Kr===void 0&&(Kr=Ii,ci=Or),Di>jn+qn&&Hr===void 0&&(Hr=Ii),Or=Di}return Kr===void 0&&(Kr=0,ci=0,Hr=Math.ceil(qn/Lr)),Hr===void 0&&(Hr=Fn.length-1),Hr=Math.min(Hr+1,Fn.length-1),{scrollHeight:Or,start:Kr,end:Hr,offset:ci}},[nn,Kt,jn,Fn,ji,qn]),aa=Oi.scrollHeight,Da=Oi.start,wi=Oi.end,fn=Oi.offset;wo.current.start=Da,wo.current.end=wi;var Rn=de.useState({width:0,height:qn}),rr=(0,Ue.Z)(Rn,2),me=rr[0],$e=rr[1],Ve=function(Or){$e({width:Or.width||Or.offsetWidth,height:Or.height||Or.offsetHeight})},et=(0,de.useRef)(),Je=(0,de.useRef)(),ut=de.useMemo(function(){return Yr(me.width,En)},[me.width,En]),mt=de.useMemo(function(){return Yr(me.height,aa)},[me.height,aa]),Wt=aa-qn,sn=(0,de.useRef)(Wt);sn.current=Wt;function Wn(tr){var Or=tr;return Number.isNaN(sn.current)||(Or=Math.min(Or,sn.current)),Or=Math.max(Or,0),Or}var lr=jn<=0,Qn=jn>=Wt,Tn=er(lr,Qn),kn=function(){return{x:sr?-_a:_a,y:jn}},mn=(0,de.useRef)(kn()),Jn=Be(function(){if(fi){var tr=kn();(mn.current.x!==tr.x||mn.current.y!==tr.y)&&(fi(tr),mn.current=tr)}});function Dr(tr,Or){var Kr=tr;Or?((0,we.flushSync)(function(){Aa(Kr)}),Jn()):_o(Kr)}function cr(tr){var Or=tr.currentTarget.scrollTop;Or!==jn&&_o(Or),br==null||br(tr),Jn()}var xr=function(Or){var Kr=Or,ci=En-me.width;return Kr=Math.max(Kr,0),Kr=Math.min(Kr,ci),Kr},Er=Be(function(tr,Or){Or?((0,we.flushSync)(function(){Aa(function(Kr){var ci=Kr+(sr?-tr:tr);return xr(ci)})}),Jn()):_o(function(Kr){var ci=Kr+tr;return ci})}),Nr=An(Kt,lr,Qn,!!En,Er),$r=(0,Ue.Z)(Nr,2),Qe=$r[0],rt=$r[1];Rr(Kt,mr,function(tr,Or){return Tn(tr,Or)?!1:(Qe({preventDefault:function(){},deltaY:tr}),!0)}),yt(function(){function tr(Kr){Kt&&Kr.preventDefault()}var Or=mr.current;return Or.addEventListener("wheel",Qe),Or.addEventListener("DOMMouseScroll",rt),Or.addEventListener("MozMousePixelScroll",tr),function(){Or.removeEventListener("wheel",Qe),Or.removeEventListener("DOMMouseScroll",rt),Or.removeEventListener("MozMousePixelScroll",tr)}},[Kt]),yt(function(){En&&Aa(function(tr){return xr(tr)})},[me.width,En]);var Zt=function(){var Or,Kr;(Or=et.current)===null||Or===void 0||Or.delayHidden(),(Kr=Je.current)===null||Kr===void 0||Kr.delayHidden()},It=Jt(mr,Fn,Ti,Lr,Pa,function(){return Mi(!0)},_o,Zt);de.useImperativeHandle(Qt,function(){return{getScrollInfo:kn,scrollTo:function(Or){function Kr(ci){return ci&&(0,Ne.Z)(ci)==="object"&&("left"in ci||"top"in ci)}Kr(Or)?(Or.left!==void 0&&Aa(xr(Or.left)),It(Or.top)):It(Or)}}}),yt(function(){if(Gr){var tr=Fn.slice(Da,wi+1);Gr(tr,Fn)}},[Da,wi,Fn]);var gn=Jr(Fn,Pa,Ti,Lr),Un=ai==null?void 0:ai({start:Da,end:wi,virtual:nn,offsetX:_a,offsetY:fn,rtl:sr,getSize:gn}),Yn=je(Fn,Da,wi,En,si,wn,to),Ar=null;qn&&(Ar=(0,Me.Z)((0,be.Z)({},Et?"height":"maxHeight",qn),ki),Kt&&(Ar.overflowY="hidden",En&&(Ar.overflowX="hidden"),ya&&(Ar.pointerEvents="none")));var gr={};return sr&&(gr.dir="rtl"),de.createElement("div",(0,le.Z)({style:(0,Me.Z)((0,Me.Z)({},_t),{},{position:"relative"}),className:Tr},gr,Vt),de.createElement(nt.Z,{onResize:Ve},de.createElement(Gn,{className:"".concat(Bn,"-holder"),style:Ar,ref:mr,onScroll:cr,onMouseEnter:Zt},de.createElement(We,{prefixCls:Bn,height:aa,offsetX:_a,offsetY:fn,scrollWidth:En,onInnerResize:Mi,ref:ur,innerProps:Vr,rtl:sr,extra:Un},Yn))),nn&&aa>qn&&de.createElement(ce,{ref:et,prefixCls:Bn,scrollOffset:jn,scrollRange:aa,rtl:sr,onScroll:Dr,onStartMove:oo,onStopMove:Yi,spinSize:mt,containerSize:me.height,style:ei==null?void 0:ei.verticalScrollBar,thumbStyle:ei==null?void 0:ei.verticalScrollBarThumb}),nn&&En&&de.createElement(ce,{ref:Je,prefixCls:Bn,scrollOffset:_a,scrollRange:En,rtl:sr,onScroll:Dr,onStartMove:oo,onStopMove:Yi,spinSize:ut,containerSize:me.width,horizontal:!0,style:ei==null?void 0:ei.horizontalScrollBar,thumbStyle:ei==null?void 0:ei.horizontalScrollBarThumb}))}var ha=de.forwardRef(Vi);ha.displayName="List";var pa=ha,Ui=pa},66392:function(Nn,Nt){"use strict";var te;var le=Symbol.for("react.element"),Me=Symbol.for("react.portal"),Ne=Symbol.for("react.fragment"),Ue=Symbol.for("react.strict_mode"),be=Symbol.for("react.profiler"),ke=Symbol.for("react.provider"),de=Symbol.for("react.context"),we=Symbol.for("react.server_context"),pe=Symbol.for("react.forward_ref"),Le=Symbol.for("react.suspense"),nt=Symbol.for("react.suspense_list"),Re=Symbol.for("react.memo"),We=Symbol.for("react.lazy"),qe=Symbol.for("react.offscreen"),lt;lt=Symbol.for("react.module.reference");function Xe(ye){if(typeof ye=="object"&&ye!==null){var vt=ye.$$typeof;switch(vt){case le:switch(ye=ye.type,ye){case Ne:case be:case Ue:case Le:case nt:return ye;default:switch(ye=ye&&ye.$$typeof,ye){case we:case de:case pe:case We:case Re:case ke:return ye;default:return vt}}case Me:return vt}}}te=de,te=ke,te=le,te=pe,te=Ne,te=We,te=Re,te=Me,te=be,te=Ue,te=Le,te=nt,te=function(){return!1},te=function(){return!1},te=function(ye){return Xe(ye)===de},te=function(ye){return Xe(ye)===ke},te=function(ye){return typeof ye=="object"&&ye!==null&&ye.$$typeof===le},te=function(ye){return Xe(ye)===pe},te=function(ye){return Xe(ye)===Ne},te=function(ye){return Xe(ye)===We},te=function(ye){return Xe(ye)===Re},te=function(ye){return Xe(ye)===Me},te=function(ye){return Xe(ye)===be},te=function(ye){return Xe(ye)===Ue},te=function(ye){return Xe(ye)===Le},te=function(ye){return Xe(ye)===nt},te=function(ye){return typeof ye=="string"||typeof ye=="function"||ye===Ne||ye===be||ye===Ue||ye===Le||ye===nt||ye===qe||typeof ye=="object"&&ye!==null&&(ye.$$typeof===We||ye.$$typeof===Re||ye.$$typeof===ke||ye.$$typeof===de||ye.$$typeof===pe||ye.$$typeof===lt||ye.getModuleId!==void 0)},te=Xe},31461:function(Nn,Nt,te){"use strict";te(66392)},25510:function(Nn){"use strict";Nn.exports="data:image/png;base64,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"},32637:function(Nn){"use strict";Nn.exports="data:image/jpeg;base64,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"},36459:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return le}});function le(Me){if(Me==null)throw new TypeError("Cannot destructure "+Me)}},84279:function(Nn,Nt,te){"use strict";var le=Object.defineProperty,Me=Object.defineProperties,Ne=Object.getOwnPropertyDescriptors,Ue=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,de=(a,y,b)=>y in a?le(a,y,{enumerable:!0,configurable:!0,writable:!0,value:b}):a[y]=b,we=(a,y)=>{for(var b in y||(y={}))be.call(y,b)&&de(a,b,y[b]);if(Ue)for(var b of Ue(y))ke.call(y,b)&&de(a,b,y[b]);return a},pe=(a,y)=>Me(a,Ne(y)),Le=a=>typeof a=="symbol"?a:a+"",nt=(a,y)=>{var b={};for(var E in a)be.call(a,E)&&y.indexOf(E)<0&&(b[E]=a[E]);if(a!=null&&Ue)for(var E of Ue(a))y.indexOf(E)<0&&ke.call(a,E)&&(b[E]=a[E]);return b};function Re(a){return Array.isArray(a)}var We={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 qe(){return"window"in globalThis&&"document"in globalThis}function lt(){return"matchMedia"in window?window.matchMedia("(pointer: coarse)").matches:"ontouchstart"in window||navigator.maxTouchPoints>0}function Xe(){return typeof navigator.vibrate=="function"}function ye(){var a,y;if(!qe())return"other";const b=(y=(a=navigator.userAgentData)==null?void 0:a.platform)!=null?y:navigator.platform;return/^mac/i.test(b)?navigator.maxTouchPoints===5?"ios":"macos":/^win/i.test(b)?"windows":/android/i.test(navigator.userAgent)?"android":/iphone|ipod|ipad/i.test(navigator.userAgent)?"ios":/\bcros\b/i.test(navigator.userAgent)?"chromeos":"other"}function vt(){if(!qe())return!0;if(/firefox/i.test(navigator.userAgent)){const a=navigator.userAgent.match(/firefox\/(\d+)/i);return a?parseInt(a[1])>=78:!1}if(/trident/i.test(navigator.userAgent))return!1;if(/edge/i.test(navigator.userAgent)){const a=navigator.userAgent.match(/edg\/(\d+)/i);return a?parseInt(a[1])>=79:!1}return!0}function Pt(){return HTMLElement.prototype.hasOwnProperty("popover")}var ot={strings:We,_locale:"",_dirty:!1,_subscribers:[],_numberFormatter:void 0,get locale(){return ot._locale||(ot._locale=qe()?navigator.language.slice(0,5):"en-US"),ot._locale},set locale(a){ot._locale=a,ot._numberFormatter=void 0,ot.dirty=!0},get numberFormatter(){return ot._numberFormatter||(ot._numberFormatter=new Intl.NumberFormat(ot.locale)),ot._numberFormatter},merge(a,y){if(typeof a=="string"&&y)ot.strings[a]=we(we({},ot.strings[a]),y),ot.dirty=!0;else for(const b of Object.keys(a))ot.merge(b,a[b])},get dirty(){return ot._dirty},set dirty(a){ot._dirty||ot._dirty===a||(ot._dirty=!0,setTimeout(()=>{ot._dirty=!1,this._subscribers.forEach(y=>y==null?void 0:y())},0))},subscribe(a){return ot._subscribers.push(a),ot._subscribers.length-1},unsubscribe(a){a<0||a>=ot._subscribers.length||(ot._subscribers[a]=void 0)},update(a){let y=a.querySelectorAll("[data-l10n-tooltip]");for(const b of y){const E=b.getAttribute("data-l10n-tooltip");if(E){const ee=ct(E);ee&&b.setAttribute("data-tooltip",ee)}}y=a.querySelectorAll("[data-l10n-arial-label]");for(const b of y){const E=b.getAttribute("data-l10n-arial-label");if(E){const ee=ct(E);ee&&b.setAttribute("aria-label",ee)}}}};function ct(a,...y){if(a===void 0)return;let b="";const E=ot.locale;ot.strings[E]&&(b=ot.strings[E][a]);const ee=E.slice(0,2);if(!b&&ot.strings[ee]&&(b=ot.strings[ee][a]),b||(b=ot.strings.en[a]),!b)return;const ie=/(%@|%([0-9]+)\$@)/g;let oe=ie.exec(b),ve=0;for(;oe;){if(y[ve++]){const Te=oe[2]?parseInt(oe[2],10)-1:ve-1;let Ke=y[Te];typeof Ke=="number"&&(Ke=ot.numberFormatter.format(Ke)),b=b.replace(oe[1],Ke)}oe=ie.exec(b)}return b=b.replace(/%%/g,"%"),b}var Se={m0:"#3F3D99",m1:"#993D71",m2:"#998B3D",m3:"#3D9956",m4:"#3D5A99",m5:"#993D90",m6:"#996D3D",m7:"#43993D",m8:"#3D7999",m9:"#843D99"},ce={blue:"#0072BD",orange:"#D95319",yellow:"#EDB120",purple:"#7E2F8E",green:"#77AC30",cyan:"#4DBEEE",red:"#A2142F"},He={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"},je={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"},it={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"},at={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 Ge(a){var y,b,E,ee,ie,oe;const ve=a.split("!");let Ee,Te,Ke,pt=255,Tt=255,rn=255,pn=-1;const _r=ve.length>0&&ve[0].startsWith("-");_r&&(ve[0]=ve[0].slice(1));for(let Ai=0;Ai<ve.length;Ai++){Ee=pt,Te=Tt,Ke=rn;const Pr=(y=ve[Ai].trim().match(/^([A-Za-z\d-]+)/))==null?void 0:y[1],ui=Pr==null?void 0:Pr.toLowerCase(),Pi=Pr&&(oe=(ie=(ee=(E=(b=je[ui])!=null?b:je[it[Pr]])!=null?E:ce[Pr])!=null?ee:at[Pr])!=null?ie:Se[Pr])!=null?oe:ve[Ai].trim();let pi=Pi.match(/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);if(pi!=null&&pi[1]&&pi[2]&&pi[3])pt=Math.max(0,Math.min(255,Number.parseInt(pi[1],16))),Tt=Math.max(0,Math.min(255,Number.parseInt(pi[2],16))),rn=Math.max(0,Math.min(255,Number.parseInt(pi[3],16)));else if(pi=Pi.match(/^#([\da-f]{3})$/i),pi!=null&&pi[1]){const Na=Number.parseInt(pi[1][0],16),uo=Number.parseInt(pi[1][1],16),Ya=Number.parseInt(pi[1][2],16);pt=Math.max(0,Math.min(255,Na*16+Na)),Tt=Math.max(0,Math.min(255,uo*16+uo)),rn=Math.max(0,Math.min(255,Ya*16+Ya))}else if(pi=Pi.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i),pi!=null&&pi[1]&&pi[2]&&pi[3])pt=Math.max(0,Math.min(255,Number.parseInt(pi[1]))),Tt=Math.max(0,Math.min(255,Number.parseInt(pi[2]))),rn=Math.max(0,Math.min(255,Number.parseInt(pi[3])));else return;pn>=0&&(pt=(1-pn)*pt+pn*Ee,Tt=(1-pn)*Tt+pn*Te,rn=(1-pn)*rn+pn*Ke,pn=-1),Ai+1<ve.length&&(pn=Math.max(0,Math.min(100,Number.parseInt(ve[++Ai])))/100)}return pn>=0&&(pt=pn*pt+(1-pn)*Ee,Tt=pn*Tt+(1-pn)*Te,rn=pn*rn+(1-pn)*Ke),_r&&(pt=255-pt,Tt=255-Tt,rn=255-rn),"#"+("00"+Math.round(pt).toString(16)).slice(-2)+("00"+Math.round(Tt).toString(16)).slice(-2)+("00"+Math.round(rn).toString(16)).slice(-2)}function Ae(a){var y,b;return a=a.trim(),(b=(y=He[a.toLowerCase()])!=null?y:He[it[a]])!=null?b:Ge(a)}function wt(a){if(!a||a[0]!=="#")return;a=a.slice(1);let y;return a.length<=4?(y={r:parseInt(a[0]+a[0],16),g:parseInt(a[1]+a[1],16),b:parseInt(a[2]+a[2],16)},a.length===4&&(y.a=parseInt(a[3]+a[3],16)/255)):(y={r:parseInt(a[0]+a[1],16),g:parseInt(a[2]+a[3],16),b:parseInt(a[4]+a[5],16)},a.length===8&&(y.a=parseInt(a[6]+a[7],16)/255)),y&&y.a===void 0&&(y.a=1),y}function dt(a,y,b){return b<0&&(b+=6),b>=6&&(b-=6),b<1?(y-a)*b+a:b<3?y:b<4?(y-a)*(4-b)+a:a}function $t(a){let[y,b,E]=[a.h,a.s,a.l];y=(y+360)%360/60,E=Math.max(0,Math.min(E,1)),b=Math.max(0,Math.min(b,1));const ee=E<=.5?E*(b+1):E+b-E*b,ie=E*2-ee;return{r:Math.round(255*dt(ie,ee,y+2)),g:Math.round(255*dt(ie,ee,y)),b:Math.round(255*dt(ie,ee,y-2))}}function bt(a){return a<0?0:a>255?255:Math.round(a)}function Ot(a){const{r:y,g:b,b:E}=a;let ee=((1<<24)+(bt(y)<<16)+(bt(b)<<8)+bt(E)).toString(16).slice(1);return ee[0]===ee[1]&&ee[2]===ee[3]&&ee[4]===ee[5]&&ee[6]===ee[7]&&(ee=ee[0]+ee[2]+ee[4]),"#"+ee}function Pn(a){let{r:y,g:b,b:E}=a;y=y/255,b=b/255,E=E/255;const ee=Math.min(y,b,E),ie=Math.max(y,b,E),oe=ie-ee;let ve,Ee;ie===ee?ve=0:y===ie?ve=(b-E)/oe:b===ie?ve=2+(E-y)/oe:E===ie&&(ve=4+(y-b)/oe),ve=Math.min(ve*60,360),ve<0&&(ve+=360);const Te=(ee+ie)/2;return ie===ee?Ee=0:Te<=.5?Ee=oe/(ie+ee):Ee=oe/(2-ie-ee),{h:ve,s:Ee,l:Te}}function $n(a){let y=wt(a);if(!y)return a;let{h:b,s:E,l:ee}=Pn(y);return E+=.1,ee-=.1,Ot($t({h:b,s:E,l:ee}))}var yt={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"},Be={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},Rt=[{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 Vn(a,y,b){if(!/[A-Za-z\d]/.test(a)||(b==="up"&&(b=void 0),!y&&!b))return a;const E=a.codePointAt(0);if(E===void 0)return a;for(const ee of Rt)if((!y||ee.variant===y)&&(!b||ee.style===b)&&E>=ee.offset&&E<ee.offset+ee.len){const ie=ee.start+E-ee.offset;return String.fromCodePoint(Be[ie]||ie)}return a}function In(a){var y;if((a<119808||a>120831)&&(a<8448||a>8527))return{char:String.fromCodePoint(a)};for(const b in Be)if(Be[b]===a){a=(y=b.codePointAt(0))!=null?y:0;break}for(const b of Rt)if(a>=b.start&&a<b.start+b.len)return{char:String.fromCodePoint(a-b.start+b.offset),variant:b.variant,style:b.style};return{char:String.fromCodePoint(a)}}function xt(a){var y;let b="";for(const E of a){if("{}<>[]$&#^_%:'\u02DC".includes(E)){b+=E;continue}const ee=(y=E.codePointAt(0))!=null?y:0;let ie=yt[ee];if(ie)ie.startsWith("\\")?b+=ie+" ":b+=ie;else{const{char:oe,variant:ve,style:Ee}=In(ee);switch(ie=oe,ve){case"double-struck":ie=`\\mathbb{${ie}}`;break;case"fraktur":ie=`\\mathfrak{${ie}}`;break;case"script":ie=`\\mathscr{${ie}}`;break;case"sans-serif":ie=`\\mathsf{${ie}}`;break;case"monospace":ie=`\\mathtt{${ie}}`;break;case"calligraphic":ie=`\\mathcal{${ie}}`;break}switch(Ee){case"bold":ie=`\\mathbf{${ie}}`;break;case"italic":ie=`\\mathit{${ie}}`;break;case"bolditalic":ie=`\\mathbfit{${ie}}`;break}b+=ie}}return b}function Mt(a){return a?Array.isArray(a)?a:typeof a=="object"&&"group"in a?a.group:[]:[]}var qt={},an=we({},yt),ln={},Yt={},Cn={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}"},pr={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}},Xn={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}},ze={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:Xn},"amsmath.sty":{package:pr,primitive:!0},"texvc.sty":{package:Cn,primitive:!1}},fe={" ":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},ue=/[\w!@*()-=+{}\[\]\\';:?/.,~<>`|$%#&^" ]/,xe,ge;vt()?(xe=new RegExp("\\p{Letter}","u"),ge=new RegExp("[0-9\\p{Letter}]","u")):(xe=/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/,ge=/[\da-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/);function se(a,y,b="mord",E){y!==void 0&&(qt[a]={definitionType:"symbol",type:b,variant:E,codepoint:y},an[y]||(an[y]=a))}function Fe(a,y,b){if(typeof a=="string"){for(let E=0;E<a.length;E++){const ee=a.charAt(E);se(ee,ee.codePointAt(0))}return}for(const[E,ee,ie,oe]of a)se(E,ee,ie!=null?ie:y,oe!=null?oe:b)}function st(a,y){for(let b=a;b<=y;b++)se(String.fromCodePoint(b),b)}function en(a){var y;return(y=Yt[a])!=null?y:null}function Sn(a,y){var b,E;if(y.length===0||y==="\\"||!y.startsWith("\\"))return[];const ee=[];for(const oe in ln)oe.startsWith(y)&&!ln[oe].infix&&ee.push({match:oe,frequency:(b=ln[oe].frequency)!=null?b:0});for(const oe in qt)oe.startsWith(y)&&ee.push({match:oe,frequency:(E=qt[oe].frequency)!=null?E:0});const ie=y.substring(1);for(const oe of Object.keys(a.options.macros))oe.startsWith(ie)&&ee.push({match:"\\"+oe,frequency:0});return ee.sort((oe,ve)=>{var Ee,Te;return oe.frequency===ve.frequency?oe.match.length===ve.match.length?oe.match<ve.match?-1:1:oe.match.length-ve.match.length:((Ee=ve.frequency)!=null?Ee:0)-((Te=oe.frequency)!=null?Te:0)}),ee.map(oe=>oe.match)}function dn(a){let y="auto";const b=a.match(/:([^=]+)/);return b&&(y=b[1].trim()),y}function zn(a){if(!a)return[];const y=[];let b=a.split("]");if(b[0].startsWith("[")){y.push({isOptional:!0,type:dn(b[0].slice(1))});for(let E=1;E<=b.length;E++)y.push(...zn(b[E]))}else if(b=a.split("}"),b[0].startsWith("{")){y.push({isOptional:!1,type:dn(b[0].slice(1))});for(let E=1;E<=b.length;E++)y.push(...zn(b[E]))}return y}function vn(a){if(!a)return"";let y="",b=!0;for(const E of a)typeof E.value=="string"?y+=E.value:b=!1;return b?y:""}function kt(a,y){typeof a=="string"&&(a=[a]);const b={tabular:!1,params:[],createAtom:y};for(const E of a)Yt[E]=b}function Xt(a,y,b){typeof a=="string"&&(a=[a]);const ee={tabular:!0,params:zn(y),createAtom:b};for(const ie of a)Yt[ie]=ee}function Jt(a,y,b){var E,ee;b||(b={});const ie={definitionType:"function",params:zn(y),ifMode:b.ifMode,isFunction:(E=b.isFunction)!=null?E:!1,applyMode:b.applyMode,infix:(ee=b.infix)!=null?ee:!1,parse:b.parse,createAtom:b.createAtom,applyStyle:b.applyStyle,serialize:b.serialize,render:b.render};if(typeof a=="string")ln["\\"+a]=ie;else for(const oe of a)ln["\\"+oe]=ie}var jt;function Bt(a){return jt||(jt=Ct(ze)),a?Ct(we(we({},jt),a)):jt}function ir(a,y){var b,E,ee,ie;if(typeof a=="string"){let oe=0;const ve=a;return/(^|[^\\])#1/.test(ve)&&(oe=1),/(^|[^\\])#2/.test(ve)&&(oe=2),/(^|[^\\])#3/.test(ve)&&(oe=3),/(^|[^\\])#4/.test(ve)&&(oe=4),/(^|[^\\])#5/.test(ve)&&(oe=5),/(^|[^\\])#6/.test(ve)&&(oe=6),/(^|[^\\])#7/.test(ve)&&(oe=7),/(^|[^\\])#8/.test(ve)&&(oe=8),/(^|[^\\])#9/.test(ve)&&(oe=9),{expand:(b=y==null?void 0:y.expand)!=null?b:!0,captureSelection:(E=y==null?void 0:y.captureSelection)!=null?E:!0,args:oe,def:ve}}return we({expand:(ee=y==null?void 0:y.expand)!=null?ee:!0,captureSelection:(ie=y==null?void 0:y.captureSelection)!=null?ie:!0,args:0},a)}function Ct(a){if(!a)return{};const y={};for(const b of Object.keys(a)){const E=a[b];if(E==null)delete y[b];else if(typeof E=="object"&&"package"in E)for(const ee of Object.keys(E.package))y[ee]=ir(E.package[ee],{expand:!E.primitive,captureSelection:E.captureSelection});else y[b]=ir(E)}return y}function At(a,y="math"){if(!a||a.length===0)return null;let b=null;if(a.startsWith("\\")){if(b=ln[a],b)return!b.ifMode||b.ifMode===y?b:null;y==="math"?b=qt[a]:fe[a]&&(b={definitionType:"symbol",type:"mord",codepoint:fe[a]})}else if(y==="math"){if(b=qt[a],!b&&a.length===1){const E=An("math",a.codePointAt(0));return E.startsWith("\\")?pe(we({},At(E,"math")),{command:E}):null}}else fe[a]?b={definitionType:"symbol",type:"mord",codepoint:fe[a]}:y==="text"&&(b={definitionType:"symbol",type:"mord",codepoint:a.codePointAt(0)});return b!=null?b:null}function er(a,y){if(!a.startsWith("\\"))return null;const b=a.slice(1);return y[b]}function An(a,y){if(y===void 0)return"";if(a==="math"&&an[y])return an[y];if(a==="text"){const b=Object.keys(fe).find(E=>fe[E]===y);return b||String.fromCodePoint(y)}return String.fromCodePoint(y)}var fr=[0,.68889,0,0,.72222],Rr=[0,.68889,0,0,.66667],ii=[0,.68889,0,0,.77778],Yr=[0,.68889,0,0,.61111],Jr=[.16667,.68889,0,0,.77778],mi=[0,.68889,0,0,.55556],Br=[0,0,0,0,.25],ki=[0,.825,0,0,2.33334],Vi=[0,.9,0,0,2.33334],ha=[0,.68889,0,0,.54028],pa=[-.03598,.46402,0,0,.5],Ui=[-.13313,.36687,0,0,1],Ut=[.01354,.52239,0,0,1],Qt=[.01354,.52239,0,0,1.11111],un=[0,.54986,0,0,1],Bn=[0,.69224,0,0,.5],Cr=[0,.43056,0,0,1],qn=[.08198,.58198,0,0,.77778],Lr=[.19444,.69224,0,0,.41667],or=[.1808,.675,0,0,1],Et=[.19444,.69224,0,0,.83334],_t=[.13667,.63667,0,0,1],zt=[-.064,.437,0,0,1.334],wn=[.08167,.58167,0,0,.77778],ft=[0,.69224,0,0,.72222],Ht=[0,.69224,0,0,.66667],xn=[-.13313,.36687,0,0,.77778],En=[.06062,.54986,0,0,.77778],Hn=[0,.69224,0,0,.77778],Gn=[.25583,.75583,0,0,.77778],br=[.25142,.75726,0,0,.77778],fi=[.20576,.70576,0,0,.77778],Gr=[.30274,.79383,0,0,.77778],Vr=[.22958,.72958,0,0,.77778],ai=[.1808,.675,0,0,.77778],ei=[.13667,.63667,0,0,.77778],Vt=[.13597,.63597,0,0,.77778],Kt=[.03517,.54986,0,0,.77778],nn=[0,.675,0,0,.77778],sr=[.19444,.69224,0,0,.61111],Tr=[0,.54986,0,0,.76042],Fn=[0,.54986,0,0,.66667],mr=[.0391,.5391,0,0,.77778],ur=[.03517,.54986,0,0,1.33334],zr=[.38569,.88569,0,0,.77778],ti=[.23222,.74111,0,0,.77778],jn=[.19444,.69224,0,0,.77778],Gi=[0,.37788,0,0,.5],_i=[0,.54986,0,0,.72222],Xa=[0,.69224,0,0,.83334],_a=[.11111,.69224,0,0,.66667],Aa=[.26167,.75726,0,0,.77778],ra=[.48256,.98256,0,0,.77778],Oa=[.28481,.79383,0,0,.77778],ya=[.08167,.58167,0,0,.22222],Ra=[.08167,.58167,0,0,.38889],oo=[0,.43056,.04028,0,.66667],Yi=[.41951,.91951,0,0,.77778],Pa=[.24982,.74947,0,0,.38865],to=[.08319,.58283,0,0,.75623],_o=[0,.10803,0,0,.27764],wo=[0,.47534,0,0,.50181],ia=[.18906,.47534,0,0,.50181],on=[0,.69141,0,0,.50181],Gt=[.24982,.74947,0,0,.27764],Kn=[0,.69141,0,0,.21471],yr=[.25,.75,0,0,.44722],Ir=[0,.64444,0,0,.575],si=[.08556,.58556,0,0,.89444],Mi=[0,.69444,0,0,.89444],Ti=[0,.68611,0,0,.9],ji=[0,.68611,0,0,.86944],Oi=[.25,.75,0,0,.575],aa=[.25,.75,0,0,.31944],Da=[0,.69444,0,0,.63889],wi=[0,.69444,0,0,.31944],fn=[0,.44444,0,0,.63889],Rn=[0,.44444,0,0,.51111],rr=[0,.69444,0,0,.575],me=[.13333,.63333,0,0,.89444],$e=[0,.44444,0,0,.31944],Ve=[0,.69444,0,0,.86944],et=[0,.68611,0,0,.69166],Je=[0,.68611,0,0,.83055],ut=[0,.68611,0,0,.89444],mt=[0,.69444,0,0,.60278],Wt=[.19444,.69444,0,0,.51111],sn=[0,.69444,0,0,.83055],Wn=[-.10889,.39111,0,0,1.14999],lr=[.19444,.69444,0,0,.575],Qn=[.19444,.69444,0,0,1.14999],Tn=[.19444,.69444,0,0,.70277],kn=[.05556,.75,0,0,.575],mn=[0,.68611,0,0,.95833],Jn=[.08556,.58556,0,0,.76666],Dr=[-.02639,.47361,0,0,.575],cr=[0,.44444,0,0,.89444],xr=[0,.55556,0,0,.76666],Er=[-.10889,.39111,0,0,.89444],Nr=[.00222,.50222,0,0,.89444],$r=[.19667,.69667,0,0,.89444],Qe=[.08556,.58556,0,0,1.14999],rt=[0,.69444,0,0,.70277],Zt=[-.02778,.47222,0,0,.575],It=[.25,.75,0,0,.51111],gn=[-.13889,.36111,0,0,1.14999],Un=[.19444,.69444,0,0,1.02222],Yn=[.12963,.69444,0,0,.89444],Ar=[.19444,.69444,0,0,.44722],gr=[0,.64444,.13167,0,.59111],tr=[.19444,.64444,.13167,0,.59111],Or=[0,.68611,.17208,0,.8961],Kr=[.19444,.44444,.105,0,.53222],ci=[0,.44444,.085,0,.82666],Hr=[0,.69444,.06709,0,.59111],yi=[0,.69444,.12945,0,.35555],Ii=[0,.69444,0,0,.94888],Si=[0,.69444,.11472,0,.59111],Ni=[0,.68611,.10778,0,.88555],gi=[0,.69444,.07939,0,.62055],Di=[0,.69444,.12417,0,.30667],Ri=[0,.64444,.13556,0,.51111],sa=[.19444,.64444,.13556,0,.51111],bi=[0,.68333,.16389,0,.74333],ba=[.19444,.43056,.08847,0,.46],Ca=[0,.43056,.07514,0,.71555],Co=[0,.69444,.06646,0,.51111],Qa=[0,.69444,0,0,.83129],za=[0,.69444,.1225,0,.51111],la=[0,.68333,.09403,0,.76666],ga=[0,.68333,.11111,0,.76666],Xi=[0,.69444,.06961,0,.51444],Ba=[0,.69444,0,0,.27778],Qi=[.25,.75,0,0,.38889],Bi=[0,.64444,0,0,.5],Ea=[0,.69444,0,0,.77778],Va=[0,.68333,0,0,.75],Jo=[0,.68333,0,0,.77778],zo=[0,.68333,0,0,.68056],Oo=[0,.68333,0,0,.72222],Po=[.25,.75,0,0,.5],co=[.25,.75,0,0,.27778],xa=[0,.69444,0,0,.5],us=[0,.69444,0,0,.55556],Ka=[0,.43056,0,0,.44445],ua=[0,.43056,0,0,.5],Ja=[.19444,.43056,0,0,.55556],Wo=[0,.43056,0,0,.55556],fo=[.08333,.58333,0,0,.77778],bo=[0,.43056,0,0,.27778],Ma=[0,.66786,0,0,.27778],Uo=[0,.69444,0,0,.75],os=[0,.66786,0,0,.5],Xo=[0,.68333,0,0,.625],ss=[.19444,.69444,0,0,.44445],cs=[0,.69444,0,0,.72222],Os=[.19444,.69444,0,0,.5],qo=[.19444,.69444,0,0,1],es=[.011,.511,0,0,1.126],Zs=[.19444,.69444,0,0,.61111],Ws=[.05556,.75,0,0,.5],el=[0,.68333,0,0,.83334],bs=[.0391,.5391,0,0,.66667],ns=[-.05555,.44445,0,0,.5],Wa=[0,.43056,0,0,.77778],ro=[0,.55556,0,0,.66667],Vo=[-.03625,.46375,0,0,.77778],rs=[-.01688,.48312,0,0,.77778],Rs=[.0391,.5391,0,0,1],tl=[0,.69444,0,0,.61111],il=[-.03472,.46528,0,0,.5],pl=[.25,.75,0,0,.44445],Al=[-.14236,.35764,0,0,1],nl=[.244,.744,0,0,.412],Fl=[.19444,.69444,0,0,.88889],To=[.12963,.69444,0,0,.77778],Ce=[.19444,.69444,0,0,.38889],Oe=[.011,.511,0,0,1.638],_e=[.19444,.69444,0,0,0],Dt=[0,.44444,0,0,.575],Lt=[.19444,.44444,0,0,.575],Ln=[0,.68611,0,0,.75555],yn=[0,.69444,0,0,.66759],vr=[0,.68611,0,0,.80555],_n=[0,.68611,.08229,0,.98229],Mn=[0,.68611,0,0,.76666],kr=[0,.44444,0,0,.58472],Zn=[.19444,.44444,0,0,.6118],nr=[.19444,.43056,0,0,.5],Zr=[0,.68333,.02778,.08334,.76278],Ur=[0,.68333,.08125,.05556,.83125],hr=[0,.43056,0,.05556,.48472],Fr=[.19444,.43056,0,.08334,.51702],ni=[.25,.75,0,0,.42778],li=[0,.69444,0,0,.55],xi=[0,.69444,0,0,.73334],Fi=[0,.69444,0,0,.79445],ta=[0,.69444,0,0,.51945],Hi=[0,.69444,0,0,.70278],Ci=[0,.69444,0,0,.76389],qa=[.25,.75,0,0,.34306],Ha=[0,.69444,0,0,.56111],so=[0,.69444,0,0,.25556],Ro=[.19444,.45833,0,0,.56111],io=[0,.45833,0,0,.56111],Ta=[0,.69444,0,0,.30556],Eo=[0,.69444,0,0,.58056],ho=[0,.69444,0,0,.67223],no=[0,.69444,0,0,.85556],go=[0,.69444,0,0,.55834],Mo=[0,.65556,.11156,0,.5],is=[0,.69444,.08094,0,.70834],ls=[.17014,0,0,0,.44445],Ms=[0,.69444,.0799,0,.5],al=[0,.69444,0,0,.73752],Xs=[0,.69444,.09205,0,.5],Qs=[0,.69444,.09031,0,.77778],As=[0,.69444,.07816,0,.27778],ml=[0,.69444,.00316,0,.5],Bs=[.19444,.69444,0,0,.83334],ao=[.05556,.75,0,0,.83334],eo=[0,.75,0,0,.5],xs=[.125,.08333,0,0,.27778],ks=[0,.08333,0,0,.27778],po=[0,.65556,0,0,.5],jo=[0,.69444,0,0,.47222],Sa=[0,.69444,0,0,.66667],Ko=[0,.69444,0,0,.59722],as=[0,.69444,0,0,.54167],Ks=[0,.69444,0,0,.70834],Hs=[.25,.75,0,0,.28889],Us=[0,.69444,0,0,.51667],zl=[0,.44444,0,0,.44445],Ru=[.19444,.44444,0,0,.51667],wu=[0,.44444,0,0,.38333],Jl=[0,.44444,0,0,.51667],Uu=[0,.69444,0,0,.83334],dc=[.35001,.85,0,0,.45834],Vu=[.35001,.85,0,0,.57778],Zl=[.35001,.85,0,0,.41667],Cu=[.35001,.85,0,0,.58334],iu=[0,.72222,0,0,.55556],ju=[1e-5,.6,0,0,.66667],Gu=[1e-5,.6,0,0,.77778],ql=[.25001,.75,0,0,.94445],Sl=[.306,.805,.19445,0,.47222],Wl=[.30612,.805,.19445,0,.47222],sl=[.25001,.75,0,0,.83334],fu=[.35001,.85,0,0,.47222],vu=[.25001,.75,0,0,1.11111],yu=[.65002,1.15,0,0,.59722],El=[.65002,1.15,0,0,.81111],Do=[.65002,1.15,0,0,.47222],ll=[.65002,1.15,0,0,.66667],Ul=[0,.75,0,0,1],Js=[.55001,1.05,0,0,1.27778],au=[.862,1.36,.44445,0,.55556],Bu=[.86225,1.36,.44445,0,.55556],Ss=[.55001,1.05,0,0,1.11111],Fu=[.65002,1.15,0,0,.52778],hu=[.65002,1.15,0,0,.61111],ou=[.55001,1.05,0,0,1.51112],rc=[.95003,1.45,0,0,.73611],_u=[.95003,1.45,0,0,1.04445],Eu=[.95003,1.45,0,0,.52778],zu=[.95003,1.45,0,0,.75],Ao=[0,.75,0,0,1.44445],wa=[.95003,1.45,0,0,.58334],Go=[1.25003,1.75,0,0,.79167],Ls=[1.25003,1.75,0,0,1.27778],Mu=[1.25003,1.75,0,0,.58334],fc=[1.25003,1.75,0,0,.80556],De=[0,.825,0,0,1.8889],Ie=[1.25003,1.75,0,0,.63889],tt=[.64502,1.155,0,0,.875],gt=[1e-5,.6,0,0,.875],St=[-99e-5,.601,0,0,.66667],Ft=[.64502,1.155,0,0,.66667],hn=[1e-5,.9,0,0,.88889],On=[.65002,1.15,0,0,.88889],Dn=[.90001,0,0,0,.88889],ar=[-.00499,.605,0,0,1.05556],Mr=[0,.12,0,0,.45],cn=[0,.61111,0,0,.525],jr=[.08333,.69444,0,0,.525],Xr=[-.08056,.53055,0,0,.525],qr=[-.05556,.55556,0,0,.525],Qr=[0,.43056,0,0,.525],Sr=[.22222,.43056,0,0,.525],hi=[0,0,0,0,.525],di={"AMS-Regular":{32:Br,65:fr,66:Rr,67:fr,68:fr,69:Rr,70:Yr,71:ii,72:ii,73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:ii,76:Rr,77:[0,.68889,0,0,.94445],78:fr,79:Jr,80:Yr,81:Jr,82:fr,83:mi,84:Rr,85:fr,86:fr,87:[0,.68889,0,0,1],88:fr,89:fr,90:Rr,107:mi,160:Br,165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:mi,295:ha,710:ki,732:Vi,770:ki,771:Vi,989:wn,1008:oo,8245:[0,.54986,0,0,.275],8463:ha,8487:fr,8498:mi,8502:Rr,8503:[0,.68889,0,0,.44445],8504:Rr,8513:[0,.68889,0,0,.63889],8592:pa,8594:pa,8602:Ui,8603:Ui,8606:Ut,8608:Ut,8610:Qt,8611:Qt,8619:un,8620:un,8621:[-.13313,.37788,0,0,1.38889],8622:Ui,8624:Bn,8625:Bn,8630:Cr,8631:Cr,8634:qn,8635:qn,8638:Lr,8639:Lr,8642:Lr,8643:Lr,8644:or,8646:or,8647:or,8648:Et,8649:or,8650:Et,8651:Ut,8652:Ut,8653:Ui,8654:Ui,8655:Ui,8666:_t,8667:_t,8669:[-.13313,.37788,0,0,1],8672:zt,8674:zt,8705:[0,.825,0,0,.5],8708:mi,8709:wn,8717:[0,.43056,0,0,.42917],8722:pa,8724:[.08198,.69224,0,0,.77778],8726:wn,8733:Hn,8736:ft,8737:ft,8738:[.03517,.52239,0,0,.72222],8739:ya,8740:[.25142,.74111,0,0,.27778],8741:Ra,8742:[.25142,.74111,0,0,.5],8756:Ht,8757:Ht,8764:xn,8765:[-.13313,.37788,0,0,.77778],8769:xn,8770:Vo,8774:Gr,8776:rs,8778:wn,8782:En,8783:En,8785:qn,8786:qn,8787:qn,8790:Hn,8791:Vr,8796:[.08198,.91667,0,0,.77778],8806:Gn,8807:Gn,8808:br,8809:br,8812:[.25583,.75583,0,0,.5],8814:fi,8815:fi,8816:Gr,8817:Gr,8818:Vr,8819:Vr,8822:ai,8823:ai,8828:ei,8829:ei,8830:Vr,8831:Vr,8832:fi,8833:fi,8840:Gr,8841:Gr,8842:Vt,8843:Vt,8847:Kt,8848:Kt,8858:qn,8859:qn,8861:qn,8862:nn,8863:nn,8864:nn,8865:nn,8872:[0,.69224,0,0,.61111],8873:ft,8874:[0,.69224,0,0,.88889],8876:Yr,8877:Yr,8878:fr,8879:fr,8882:Kt,8883:Kt,8884:ei,8885:ei,8888:[0,.54986,0,0,1.11111],8890:Ja,8891:sr,8892:sr,8901:[0,.54986,0,0,.27778],8903:wn,8905:wn,8906:wn,8907:Hn,8908:Hn,8909:[-.03598,.46402,0,0,.77778],8910:Tr,8911:Tr,8912:Kt,8913:Kt,8914:Fn,8915:Fn,8916:Ht,8918:mr,8919:mr,8920:ur,8921:ur,8922:zr,8923:zr,8926:ei,8927:ei,8928:Gr,8929:Gr,8934:ti,8935:ti,8936:ti,8937:ti,8938:fi,8939:fi,8940:Gr,8941:Gr,8994:jn,8995:jn,9416:[.15559,.69224,0,0,.90222],9484:Bn,9488:Bn,9492:Gi,9496:Gi,9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:nn,9633:nn,9650:_i,9651:_i,9654:Kt,9660:_i,9661:_i,9664:Kt,9674:_a,9733:[.19444,.69224,0,0,.94445],10003:Xa,10016:Xa,10731:_a,10846:[.19444,.75583,0,0,.61111],10877:ei,10878:ei,10885:Gn,10886:Gn,10887:Vt,10888:Vt,10889:Aa,10890:Aa,10891:ra,10892:ra,10901:ei,10902:ei,10933:br,10934:br,10935:Aa,10936:Aa,10937:Aa,10938:Aa,10949:Gn,10950:Gn,10955:Oa,10956:Oa,57350:ya,57351:Ra,57352:wn,57353:oo,57356:br,57357:br,57358:Yi,57359:Gr,57360:Gr,57361:Yi,57366:br,57367:br,57368:br,57369:br,57370:Vt,57371:Vt},"Caligraphic-Regular":{32:Br,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:Br},"Fraktur-Regular":{32:Br,33:[0,.69141,0,0,.29574],34:Kn,38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:Pa,41:Pa,42:[0,.62119,0,0,.27764],43:to,44:_o,45:to,46:_o,47:[.24982,.74947,0,0,.50181],48:wo,49:wo,50:wo,51:ia,52:ia,53:ia,54:on,55:ia,56:on,57:ia,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:Gt,93:Gt,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:Br,8216:Kn,8217:Kn,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:Br,33:[0,.69444,0,0,.35],34:mt,35:[.19444,.69444,0,0,.95833],36:kn,37:[.05556,.75,0,0,.95833],38:Mi,39:wi,40:yr,41:yr,42:[0,.75,0,0,.575],43:me,44:[.19444,.15556,0,0,.31944],45:wu,46:[0,.15556,0,0,.31944],47:Oi,48:Ir,49:Ir,50:Ir,51:Ir,52:Ir,53:Ir,54:Ir,55:Ir,56:Ir,57:Ir,58:$e,59:[.19444,.44444,0,0,.31944],60:si,61:Er,62:si,63:[0,.69444,0,0,.54305],64:Mi,65:ji,66:[0,.68611,0,0,.81805],67:Je,68:[0,.68611,0,0,.88194],69:Ln,70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:Ti,73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:et,77:[0,.68611,0,0,1.09166],78:Ti,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:ji,89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:aa,92:Oi,93:aa,94:rr,95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:Da,99:Rn,100:Da,101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:Da,105:wi,106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:wi,109:[0,.44444,0,0,.95833],110:fn,111:Dt,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:fn,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:Rn,123:Oi,124:aa,125:Oi,126:[.35,.34444,0,0,.575],160:Br,163:[0,.69444,0,0,.86853],168:rr,172:[0,.44444,0,0,.76666],176:Ve,177:me,184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:me,216:[.04861,.73472,0,0,.89444],223:Ko,230:[0,.44444,0,0,.83055],247:me,248:[.09722,.54167,0,0,.575],305:$e,338:[0,.68611,0,0,1.16944],339:cr,567:[.19444,.44444,0,0,.35139],710:rr,711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:rr,715:rr,728:rr,729:wi,730:Ve,732:rr,733:rr,915:et,916:mn,920:ut,923:vr,926:Mn,928:Ti,931:Je,933:ut,934:Je,936:ut,937:Je,8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:wi,8217:wi,8220:mt,8221:mt,8224:Wt,8225:Wt,8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:yn,8465:sn,8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:sn,8501:rt,8592:Wn,8593:lr,8594:Wn,8595:lr,8596:Wn,8597:Oi,8598:Qn,8599:Qn,8600:Qn,8601:Qn,8636:Wn,8637:Wn,8640:Wn,8641:Wn,8656:Wn,8657:Tn,8658:Wn,8659:Tn,8660:Wn,8661:[.25,.75,0,0,.70277],8704:Da,8706:[0,.69444,.06389,0,.62847],8707:Da,8709:kn,8711:mn,8712:Jn,8715:Jn,8722:me,8723:me,8725:Oi,8726:Oi,8727:Zt,8728:Dr,8729:Dr,8730:[.18,.82,0,0,.95833],8733:cr,8734:[0,.44444,0,0,1.14999],8736:ft,8739:aa,8741:Oi,8743:xr,8744:xr,8745:xr,8746:xr,8747:[.19444,.69444,.12778,0,.56875],8764:Er,8768:[.19444,.69444,0,0,.31944],8771:Nr,8776:[.02444,.52444,0,0,.89444],8781:Nr,8801:Nr,8804:$r,8805:$r,8810:Qe,8811:Qe,8826:si,8827:si,8834:si,8835:si,8838:$r,8839:$r,8846:xr,8849:$r,8850:$r,8851:xr,8852:xr,8853:me,8854:me,8855:me,8856:me,8857:me,8866:rt,8867:rt,8868:Mi,8869:Mi,8900:Dr,8901:[-.02639,.47361,0,0,.31944],8902:Zt,8968:It,8969:It,8970:It,8971:It,8994:gn,8995:gn,9651:Un,9657:Zt,9661:Un,9667:Zt,9711:Qn,9824:Yn,9825:Yn,9826:Yn,9827:Yn,9837:[0,.75,0,0,.44722],9838:Ar,9839:Ar,10216:yr,10217:yr,10815:Ti,10927:$r,10928:$r,57376:_e},"Main-BoldItalic":{32:Br,33:[0,.69444,.11417,0,.38611],34:gi,35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:yi,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:gr,49:gr,50:gr,51:gr,52:tr,53:gr,54:gr,55:tr,56:gr,57:gr,58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:Si,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:Or,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:Or,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:Hr,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:Kr,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:Kr,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:Br,168:[0,.69444,.11473,0,.59111],176:Ii,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:ci,248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:ci,567:[.19444,.44444,.04611,0,.385],710:Hr,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:yi,730:Ii,732:Si,733:Si,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:Or,931:[0,.68611,.11431,0,.82666],933:Ni,934:[0,.68611,.05632,0,.82666],936:Ni,937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:yi,8217:yi,8220:[0,.69444,.16772,0,.62055],8221:gi},"Main-Italic":{32:Br,33:Di,34:Xi,35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:Di,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:Ri,49:Ri,50:Ri,51:Ri,52:sa,53:Ri,54:Ri,55:sa,56:Ri,57:Ri,58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:za,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:bi,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:bi,79:la,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:bi,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:Co,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:ba,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:ba,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:Br,168:[0,.66786,.10474,0,.51111],176:Qa,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:Ca,248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:Ca,710:Co,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:Qa,732:[0,.66786,.11585,0,.51111],733:za,915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:la,923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:bi,931:[0,.68333,.12028,0,.71555],933:ga,934:[0,.68333,.05986,0,.71555],936:ga,937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:Di,8217:Di,8220:[0,.69444,.1685,0,.51444],8221:Xi,8463:ha},"Main-Regular":{32:Br,33:Ba,34:xa,35:Bs,36:Ws,37:ao,38:Ea,39:Ba,40:Qi,41:Qi,42:eo,43:fo,44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:Po,48:Bi,49:Bi,50:Bi,51:Bi,52:Bi,53:Bi,54:Bi,55:Bi,56:Bi,57:Bi,58:bo,59:[.19444,.43056,0,0,.27778],60:mr,61:xn,62:mr,63:jo,64:Ea,65:Va,66:[0,.68333,0,0,.70834],67:Oo,68:[0,.68333,0,0,.76389],69:zo,70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:Va,73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:Jo,76:Xo,77:[0,.68333,0,0,.91667],78:Va,79:Jo,80:zo,81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:Oo,85:Va,86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:Va,89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:co,92:Po,93:co,94:xa,95:[.31,.12056,.02778,0,.5],97:ua,98:us,99:Ka,100:us,101:Ka,102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:us,105:Ma,106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:Ba,109:[0,.43056,0,0,.83334],110:Wo,111:ua,112:Ja,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:Wo,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:Ka,123:Po,124:co,125:Po,126:[.35,.31786,0,0,.5],160:Br,163:[0,.69444,0,0,.76909],167:ss,168:os,172:[0,.43056,0,0,.66667],176:Uo,177:fo,182:Zs,184:ls,198:[0,.68333,0,0,.90278],215:fo,216:[.04861,.73194,0,0,.77778],223:xa,230:[0,.43056,0,0,.72222],247:fo,248:[.09722,.52778,0,0,.5],305:bo,338:[0,.68333,0,0,1.01389],339:Wa,567:[.19444,.43056,0,0,.30556],710:xa,711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:xa,715:xa,728:xa,729:Ma,730:Uo,732:os,733:xa,915:Xo,916:el,920:Jo,923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:Va,931:Oo,933:Jo,934:Oo,936:Jo,937:Oo,8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:Ba,8217:Ba,8220:xa,8221:xa,8224:ss,8225:ss,8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:ha,8465:cs,8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:cs,8501:tl,8592:Ui,8593:Os,8594:Ui,8595:Os,8596:Ui,8597:Po,8598:qo,8599:qo,8600:qo,8601:qo,8614:[.011,.511,0,0,1],8617:es,8618:es,8636:Ui,8637:Ui,8640:Ui,8641:Ui,8652:[.011,.671,0,0,1],8656:Ui,8657:Zs,8658:Ui,8659:Zs,8660:Ui,8661:[.25,.75,0,0,.61111],8704:us,8706:[0,.69444,.05556,.08334,.5309],8707:us,8709:Ws,8711:el,8712:bs,8715:bs,8722:fo,8723:fo,8725:Po,8726:Po,8727:il,8728:ns,8729:ns,8730:[.2,.8,0,0,.83334],8733:Wa,8734:Cr,8736:ft,8739:co,8741:Po,8743:ro,8744:ro,8745:ro,8746:ro,8747:[.19444,.69444,.11111,0,.41667],8764:xn,8768:[.19444,.69444,0,0,.27778],8771:Vo,8773:[-.022,.589,0,0,1],8776:rs,8781:Vo,8784:[-.133,.67,0,0,.778],8801:Vo,8804:Vt,8805:Vt,8810:Rs,8811:Rs,8826:mr,8827:mr,8834:mr,8835:mr,8838:Vt,8839:Vt,8846:ro,8849:Vt,8850:Vt,8851:ro,8852:ro,8853:fo,8854:fo,8855:fo,8856:fo,8857:fo,8866:tl,8867:tl,8868:Ea,8869:Ea,8872:[.249,.75,0,0,.867],8900:ns,8901:[-.05555,.44445,0,0,.27778],8902:il,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:pl,8969:pl,8970:pl,8971:pl,8994:Al,8995:Al,9136:nl,9137:nl,9651:Fl,9657:il,9661:Fl,9667:il,9711:qo,9824:To,9825:To,9826:To,9827:To,9837:[0,.75,0,0,.38889],9838:Ce,9839:Ce,10216:Qi,10217:Qi,10222:nl,10223:nl,10229:[.011,.511,0,0,1.609],10230:Oe,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:Oe,10815:Va,10927:Vt,10928:Vt,57376:_e},"Math-BoldItalic":{32:Br,48:Dt,49:Dt,50:Dt,51:Lt,52:Lt,53:Lt,54:Ir,55:Lt,56:Ir,57:Lt,65:ji,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:_n,73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:Ln,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:yn,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:kr,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:Br,915:[0,.68611,.15972,0,.65694],916:mn,920:[0,.68611,.03194,0,.86722],923:vr,926:[0,.68611,.07458,0,.84125],928:_n,931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:Mn,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:kr,960:[0,.44444,.03704,0,.68241],961:Zn,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:Zn,1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:Br,48:ua,49:ua,50:ua,51:nr,52:nr,53:nr,54:Bi,55:nr,56:Bi,57:nr,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:Ur,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:Zr,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:hr,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:Br,915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:Zr,923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:Ur,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:hr,960:[0,.43056,.03588,0,.57003],961:Fr,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:Fr,1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:Br,33:[0,.69444,0,0,.36667],34:go,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:Ta,40:ni,41:ni,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:li,49:li,50:li,51:li,52:li,53:li,54:li,55:li,56:li,57:li,58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:ta,64:xi,65:xi,66:xi,67:Hi,68:Fi,69:[0,.69444,0,0,.64167],70:tl,71:xi,72:Fi,73:[0,.69444,0,0,.33056],74:ta,75:Ci,76:Eo,77:[0,.69444,0,0,.97778],78:Fi,79:Fi,80:Hi,81:[.10556,.69444,0,0,.79445],82:Hi,83:tl,84:xi,85:Ci,86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:xi,89:[0,.69444,.0275,0,.73334],90:ho,91:qa,93:qa,94:li,95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:Ha,99:[0,.45833,0,0,.48889],100:Ha,101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:Ha,105:so,106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:so,109:[0,.45833,0,0,.86667],110:io,111:[0,.45833,0,0,.55],112:Ro,113:Ro,114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:io,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:Br,168:li,176:xi,180:li,184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:li,711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:li,729:Ta,730:xi,732:li,733:li,915:Eo,916:[0,.69444,0,0,.91667],920:no,923:ho,926:xi,928:Fi,931:Fi,933:no,934:Fi,936:no,937:Fi,8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:Ta,8217:Ta,8220:go,8221:go},"SansSerif-Italic":{32:Br,33:[0,.69444,.05733,0,.31945],34:ml,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:As,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:xs,45:[0,.44444,.01946,0,.33333],46:ks,47:[.25,.75,.13164,0,.5],48:Mo,49:Mo,50:Mo,51:Mo,52:Mo,53:Mo,54:Mo,55:Mo,56:Mo,57:Mo,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:Sa,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:is,73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:as,77:[0,.69444,.08094,0,.875],78:is,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:Ms,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:Br,168:[0,.67937,.06385,0,.5],176:al,184:ls,305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:Ms,711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:Xs,715:xa,728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:al,732:[0,.67659,.08826,0,.5],733:Xs,915:[0,.69444,.13372,0,.54167],916:Uu,920:[0,.69444,.07555,0,.77778],923:tl,926:[0,.69444,.12816,0,.66667],928:is,931:[0,.69444,.11983,0,.72222],933:Qs,934:[0,.69444,.04603,0,.72222],936:Qs,937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:As,8217:As,8220:[0,.69444,.14205,0,.5],8221:ml},"SansSerif-Regular":{32:Br,33:[0,.69444,0,0,.31945],34:xa,35:Bs,36:Ws,37:ao,38:[0,.69444,0,0,.75834],39:Ba,40:Qi,41:Qi,42:eo,43:fo,44:xs,45:[0,.44444,0,0,.33333],46:ks,47:Po,48:po,49:po,50:po,51:po,52:po,53:po,54:po,55:po,56:po,57:po,58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:jo,64:Sa,65:Sa,66:Sa,67:Da,68:[0,.69444,0,0,.72223],69:Ko,70:[0,.69444,0,0,.56945],71:Sa,72:Ks,73:Ba,74:jo,75:[0,.69444,0,0,.69445],76:as,77:[0,.69444,0,0,.875],78:Ks,79:[0,.69444,0,0,.73611],80:Da,81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:us,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:Sa,89:[0,.69444,.025,0,.66667],90:tl,91:Hs,93:Hs,94:xa,95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:Us,99:zl,100:Us,101:zl,102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:Us,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:Jl,111:[0,.44444,0,0,.5],112:Ru,113:Ru,114:[0,.44444,.01389,0,.34167],115:wu,116:[0,.57143,0,0,.36111],117:Jl,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:Br,168:[0,.67937,0,0,.5],176:Sa,184:ls,305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:xa,711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:xa,715:xa,728:xa,729:[0,.67937,0,0,.27778],730:Sa,732:[0,.67659,0,0,.5],733:xa,915:as,916:Uu,920:Ea,923:tl,926:Sa,928:Ks,931:cs,933:Ea,934:cs,936:Ea,937:cs,8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:Ba,8217:Ba,8220:xa,8221:xa},"Script-Regular":{32:Br,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:Br},"Size1-Regular":{32:Br,40:dc,41:dc,47:Vu,91:Zl,92:Vu,93:Zl,123:Cu,125:Cu,160:Br,710:iu,732:iu,770:iu,771:iu,8214:[-99e-5,.601,0,0,.77778],8593:ju,8595:ju,8657:Gu,8659:Gu,8719:ql,8720:ql,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:Wl,8748:Sl,8749:Sl,8750:Wl,8896:sl,8897:sl,8898:sl,8899:sl,8968:fu,8969:fu,8970:fu,8971:fu,9168:St,10216:fu,10217:fu,10752:vu,10753:vu,10754:vu,10756:sl,10758:sl},"Size2-Regular":{32:Br,40:yu,41:yu,47:El,91:Do,92:El,93:Do,123:ll,125:ll,160:Br,710:Ul,732:Ul,770:Ul,771:Ul,8719:Js,8720:Js,8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:Bu,8748:au,8749:au,8750:Bu,8896:Ss,8897:Ss,8898:Ss,8899:Ss,8968:Fu,8969:Fu,8970:Fu,8971:Fu,10216:hu,10217:hu,10752:ou,10753:ou,10754:ou,10756:Ss,10758:Ss},"Size3-Regular":{32:Br,40:rc,41:rc,47:_u,91:Eu,92:_u,93:Eu,123:zu,125:zu,160:Br,710:Ao,732:Ao,770:Ao,771:Ao,8730:[.95003,1.45,0,0,1],8968:wa,8969:wa,8970:wa,8971:wa,10216:zu,10217:zu},"Size4-Regular":{32:Br,40:Go,41:Go,47:Ls,91:Mu,92:Ls,93:Mu,123:fc,125:fc,160:Br,710:De,732:De,770:De,771:De,8730:[1.25003,1.75,0,0,1],8968:Ie,8969:Ie,8970:Ie,8971:Ie,9115:tt,9116:gt,9117:tt,9118:tt,9119:gt,9120:tt,9121:Ft,9122:St,9123:Ft,9124:Ft,9125:St,9126:Ft,9127:hn,9128:On,9129:Dn,9130:[0,.3,0,0,.88889],9131:hn,9132:On,9133:Dn,9143:[.88502,.915,0,0,1.05556],10216:fc,10217:fc,57344:ar,57345:ar,57680:Mr,57681:Mr,57682:Mr,57683:Mr},"Typewriter-Regular":{32:hi,33:cn,34:cn,35:cn,36:jr,37:jr,38:cn,39:cn,40:jr,41:jr,42:[0,.52083,0,0,.525],43:Xr,44:[.13889,.125,0,0,.525],45:Xr,46:[0,.125,0,0,.525],47:jr,48:cn,49:cn,50:cn,51:cn,52:cn,53:cn,54:cn,55:cn,56:cn,57:cn,58:Qr,59:[.13889,.43056,0,0,.525],60:qr,61:[-.19549,.41562,0,0,.525],62:qr,63:cn,64:cn,65:cn,66:cn,67:cn,68:cn,69:cn,70:cn,71:cn,72:cn,73:cn,74:cn,75:cn,76:cn,77:cn,78:cn,79:cn,80:cn,81:[.13889,.61111,0,0,.525],82:cn,83:cn,84:cn,85:cn,86:cn,87:cn,88:cn,89:cn,90:cn,91:jr,92:jr,93:jr,94:cn,95:[.09514,0,0,0,.525],96:cn,97:Qr,98:cn,99:Qr,100:cn,101:Qr,102:cn,103:Sr,104:cn,105:cn,106:[.22222,.61111,0,0,.525],107:cn,108:cn,109:Qr,110:Qr,111:Qr,112:Sr,113:Sr,114:Qr,115:Qr,116:[0,.55358,0,0,.525],117:Qr,118:Qr,119:Qr,120:Qr,121:Sr,122:Qr,123:jr,124:jr,125:jr,126:cn,127:cn,160:hi,176:cn,184:[.19445,0,0,0,.525],305:Qr,567:Sr,711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:cn,715:cn,728:cn,730:cn,770:cn,771:cn,776:cn,915:cn,916:cn,920:cn,923:cn,926:cn,928:cn,931:cn,933:cn,934:cn,936:cn,937:cn,8216:cn,8217:cn,8242:cn,9251:[.11111,.21944,0,0,.525]}},$i=/[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FAF]|[\uAC00-\uD7AF]/,va=10,ca=.25,ma=1.2,$a=.431,ko={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[$a,$a,$a],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:[ca,ca,ca],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]},ea=[0,.5,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],oa=5,Ji={"\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 Li(a,y){a===void 0&&(a=77);const b=di[y][a];if(b)return{defaultMetrics:!1,depth:b[0],height:b[1],italic:b[2],skew:b[3],width:b[4]};if(a===11034)return{defaultMetrics:!0,depth:.2,height:.8,italic:0,skew:0,width:.8};const E=String.fromCodePoint(a);if(E in Ji)a=Ji[E].codePointAt(0);else if($i.test(E))return a=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 da={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]},ja={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]},Bo={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 lo(a){if(ja[a]){const[Te,Ke,pt]=ja[a],Tt=`<span class="stretchy" style="height:${pt}em"><svg width="100%" height="${pt}em" viewBox="0 0 ${Te} ${Ke}" preserveAspectRatio="none" ><path fill="currentcolor" d="${Bo[a]}"></path></svg></span>`;return`<span style="display:inline-block;height:${Math.floor(100*pt/2)/100}em;min-width:0">${Tt}</span>`}const[y,b,E,ee]=da[a];let ie,oe;const ve=E/1e3;y.length===3?(ie=["slice-1-of-3","slice-2-of-3","slice-3-of-3"],oe=["xMinYMin","xMidYMin","xMaxYMin"]):y.length===2?(ie=["slice-1-of-2","slice-2-of-2"],oe=["xMinYMin","xMaxYMin"]):(ie=["slice-1-of-1"],oe=[ee]);const Ee=y.map((Te,Ke)=>`<span class="${ie[Ke]}" style=height:${ve}em><svg width=400em height=${ve}em viewBox="0 0 400000 ${E}" preserveAspectRatio="${oe[Ke]} slice"><path fill="currentcolor" d="${Bo[Te]}"></path></svg></span>`).join("");return`<span style="display:inline-block;height:${ve}em;min-width:${b}em;">${Ee}</span>`}function Ua(a){return da[a]?da[a][2]/1e3:ja[a][2]}function Ho(a){const y=[];for(let b=0;b<a.length;b++){let E=a.charCodeAt(b);if(E===13&&a.charCodeAt(b+1)===10&&(E=10,b++),(E===13||E===12)&&(E=10),E===0&&(E=65533),E>=55296&&E<=56319){const ee=a.charCodeAt(b+1);if(ee>=56320&&ee<=57343){const ie=E-55296,oe=ee-56320;E=Gc(2,16)+ie*Gc(2,10)+oe,b++}}y.push(E)}return y}var Zo=8205,vs=[[Zo,1],[65038,2],[127995,5],[129456,4],[917536,96]],$o,Fs=[127462,127487];function _s(a){var y;if($o===void 0){$o={};for(const b of vs)for(let E=b[0];E<=b[0]+b[1]-1;E++)$o[E]=!0}return(y=$o[a])!=null?y:!1}function Lo(a){return a>=Fs[0]&&a<=Fs[1]}function gl(a){if(/^[\u0020-\u00FF]*$/.test(a))return a;const y=[],b=Ho(a);let E=0;for(;E<b.length;){const ee=b[E++],ie=b[E];if(ie===Zo){const oe=E-1;for(E+=2;b[E]===Zo;)E+=2;y.push(String.fromCodePoint(...b.slice(oe,E-oe+1)))}else if(_s(ie)){const oe=E-1;for(;_s(b[E]);)E+=b[E]===Zo?2:1;y.push(String.fromCodePoint(...b.slice(oe,2*E-oe-1)))}else Lo(ee)?(E+=1,y.push(String.fromCodePoint(...b.slice(E-2,2)))):y.push(String.fromCodePoint(ee))}return y}var ps=class{constructor(a){this.obeyspaces=!1,this.pos=0,this.s=gl(a)}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(a){const y=typeof this.s=="string"?a.exec(this.s.slice(this.pos)):a.exec(this.s.slice(this.pos).join(""));return y!=null&&y[0]?(this.pos+=y[0].length,y[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 a=this.get();if(a==="\\"){if(!this.end()){let y=this.match(/^[a-zA-Z\*]+/);return y?this.match(/^[ \f\n\r\t\v\u00A0\u2028\u2029]*/):y=this.get(),"\\"+y}}else{if(a==="{")return"<{>";if(a==="}")return"<}>";if(a==="^"){if(this.peek()==="^"){this.get();const y=this.match(/^(\^(\^(\^(\^[\da-f])?[\da-f])?[\da-f])?[\da-f])?[\da-f]{2}/);if(y)return String.fromCodePoint(Number.parseInt(y.slice(y.lastIndexOf("^")+1),16))}return a}else if(a==="#"){if(!this.end()){let y=!1;if(/[\d?@]/.test(this.peek())&&(y=!0,this.pos+1<this.s.length)){const b=this.s[this.pos+1];y=/[^\dA-Za-z]/.test(b)}return y?"#"+this.get():"#"}}else if(a==="$")return this.peek()==="$"?(this.get(),"<$$>"):"<$>"}return a}};function Ps(a,y){var b,E,ee,ie;const oe=[];let ve=a.next();if(ve&&ve!=="\\relax"){if(ve==="\\noexpand")ve=a.next(),ve&&oe.push(ve);else if(ve==="\\obeyspaces")a.obeyspaces=!0;else if(ve==="\\bgroup")oe.push("<{>");else if(ve==="\\egroup")oe.push("<}>");else if(ve==="\\string"){if(ve=a.next(),ve)if(ve.startsWith("\\"))for(const Ee of ve)oe.push(Ee==="\\"?"\\backslash":Ee);else ve==="<{>"?oe.push("\\{"):ve==="<space>"?oe.push("~"):ve==="<}>"&&oe.push("\\}")}else if(ve==="\\csname"){for(;a.peek()==="<space>";)a.next();let Ee="",Te=!1,Ke=[];do{if(Ke.length===0)if(/^#[\d?@]$/.test(a.peek())){const pt=a.get().slice(1);Ke=ws((E=(b=y==null?void 0:y(pt))!=null?b:y==null?void 0:y("?"))!=null?E:"\\placeholder{}",y),ve=Ke[0]}else ve=a.next(),Ke=ve?[ve]:[];Te=Ke.length===0,!Te&&ve==="\\endcsname"&&(Te=!0,Ke.shift()),Te||(Te=ve==="<$>"||ve==="<$$>"||ve==="<{>"||ve==="<}>"||typeof ve=="string"&&ve.length>1&&ve.startsWith("\\")),Te||(Ee+=Ke.shift())}while(!Te);Ee&&oe.push("\\"+Ee),oe.push(...Ke)}else if(ve!=="\\endcsname")if(ve.length>1&&ve.startsWith("#")){const Ee=ve.slice(1);oe.push(...ws((ie=(ee=y==null?void 0:y(Ee))!=null?ee:y==null?void 0:y("?"))!=null?ie:"\\placeholder{}",y))}else oe.push(ve)}return oe}function ws(a,y=null){const b=[];let E="";for(const oe of a.toString().split(/\r?\n/)){E&&b.push(E),E=" ";const ve=oe.match(/((?:\\%)|[^%])*/);ve!==null&&b.push(ve[0])}const ee=new ps(xt(b.join(""))),ie=[];do ie.push(...Ps(ee,y));while(!ee.end());return ie}function vo(a){let y="";const b=[];for(const E of a)E&&(y&&/^[a-zA-Z\*]/.test(E)&&b.push(y),b.push(E),/^\\[a-zA-Z]+\*?[\"\'][^\ ]+$/.test(E)&&b.push(" "),y=/\\[a-zA-Z]+\*?$/.test(E)?" ":"");return b.join("")}function Ki(a,...y){return console.assert(a.startsWith("\\")),y.length===0?a:vo([a,...y.map(b=>`{${b}}`)])}function Ia(a){return vo(a.map(y=>{var b;return(b={"<space>":" ","<$$>":"$$","<$>":"$","<{>":"{","<}>":"}"}[y])!=null?b:y}))}var Ga=class Lf{constructor(y){Lf._registry[y]=this}static createAtom(y,b,E){return Lf._registry[y].createAtom(b,At(b,y),E)}static serialize(y,b){var E;if(!y||y.length===0)return"";if((E=b.skipStyles)!=null&&E){const ee=[];for(const ie of ds(y)){const oe=Lf._registry[ie[0].mode];ee.push(...oe.serialize(ie,b))}return vo(ee)}return vo(ts(y,b))}static getFont(y,b,E){return Lf._registry[y].getFont(b,E)}};Ga._registry={};var na=Ga;function ds(a){const y=[];let b=[],E="NONE";for(const ee of a)ee.type!=="first"&&(ee.mode!==E?(b.length>0&&y.push(b),b=[ee],E=ee.mode):b.push(ee));return b.length>0&&y.push(b),y}function Zi(a,y){const b=[];let E=[],ee;for(const ie of a)if(ie.type!=="first"&&ie.style){let oe;y==="variant"?(oe=ie.style.variant,ie.style.variantStyle&&ie.style.variantStyle!=="up"&&(oe+="-"+ie.style.variantStyle)):oe=ie.style[y],oe===ee?E.push(ie):(E.length>0&&b.push(E),E=[ie],ee=oe)}return E.length>0&&b.push(E),b}function yo(a,y){var b;const{parent:E}=a[0],ee=E==null?void 0:E.computedStyle.color,ie=[];for(const oe of ds(a)){const ve=y.defaultMode;for(const Ee of Zi(oe,"color")){const Te=Ee[0].computedStyle,Ke=na._registry[Ee[0].mode].serialize(Ee,pe(we({},y),{defaultMode:ve==="text"?"text":"math"}));!y.skipStyles&&Te.color&&Te.color!=="none"&&(!E||ee!==Te.color)?ie.push(Ki("\\textcolor",(b=Te.verbatimColor)!=null?b:Te.color,vo(Ke))):ie.push(vo(Ke))}}return ie}function fs(a,y){const{parent:b}=a[0],E=b==null?void 0:b.computedStyle.backgroundColor;return Zi(a,"backgroundColor").map(ee=>{var ie;if(ee.length>0||ee[0].type!=="box"){const oe=ee[0].computedStyle;if(oe.backgroundColor&&oe.backgroundColor!=="none"&&(!b||E!==oe.backgroundColor))return Ki("\\colorbox",(ie=oe.verbatimBackgroundColor)!=null?ie:oe.backgroundColor,vo(yo(ee,pe(we({},y),{defaultMode:"text"}))))}return vo(yo(ee,y))})}function ts(a,y){if(a.length===0)return[];const{parent:b}=a[0],E=b==null?void 0:b.computedStyle.fontSize,ee=[];for(const ie of Zi(a,"fontSize")){const oe=ie[0].computedStyle.fontSize,ve=fs(ie,y);ve&&(oe&&oe!=="auto"&&(!b||E!==oe)?ee.push(["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][oe],...ve):ee.push(...ve))}return ee}function $l(a){return a?{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"}[a]:void 0}function wl(a){if(a.length===0)return"ord";const y=$l(a[0].type),b=$l(a[a.length-1].type);return y&&y===b?y:"ord"}function eu(a,y){if(typeof a=="string")return a;if(typeof a=="number"){console.assert(Number.isFinite(a));const b=Math.ceil(100*a)/100;return b===0?"0":b.toString()+(y!=null?y:"")}return""}var oi=class Ep{constructor(y,b){var E,ee,ie,oe,ve;if(typeof y=="number"?this.value=String.fromCodePoint(y):typeof y=="string"?this.value=y:Re(y)?this.children=y.filter(Te=>Te!==null):y&&y instanceof Ep&&(this.children=[y]),this.children)for(const Te of this.children)Te.parent=this;this.type=(E=b==null?void 0:b.type)!=null?E:"ignore",this.isSelected=(b==null?void 0:b.isSelected)===!0,b!=null&&b.caret&&(this.caret=b.caret),this.classes=(ee=b==null?void 0:b.classes)!=null?ee:"",this.isTight=(ie=b==null?void 0:b.isTight)!=null?ie:!1,b!=null&&b.attributes&&(this.attributes=b.attributes);let Ee=b==null?void 0:b.fontFamily;b!=null&&b.style&&this.value&&(Ee=(ve=na.getFont((oe=b.mode)!=null?oe:"math",this,pe(we({variant:"normal"},b.style),{letterShapeStyle:b.letterShapeStyle})))!=null?ve:void 0),Ee||(Ee="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,(b==null?void 0:b.maxFontSize)!==void 0&&(this.maxFontSize=b.maxFontSize),hs(this,Ee)}set atomID(y){y===void 0||y.length===0||(this.id=y)}selected(y){if(this.isSelected!==y&&(this.isSelected=y,this.children))for(const b of this.children)b.selected(y)}setStyle(y,b,E){if(b===void 0)return;const ee=eu(b,E);ee.length>0&&(this.cssProperties||(this.cssProperties={}),this.cssProperties[y]=ee)}setTop(y){Number.isFinite(y)&&Math.abs(y)>.01&&(this.cssProperties||(this.cssProperties={}),this.cssProperties.top=eu(y,"em"),this.height-=y,this.depth+=y)}get left(){var y;return(y=this.cssProperties)!=null&&y["margin-left"]?Number.parseFloat(this.cssProperties["margin-left"]):0}set left(y){Number.isFinite(y)&&(y===0?this.cssProperties&&delete this.cssProperties["margin-left"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-left"]=eu(y,"em")))}set right(y){Number.isFinite(y)&&(y===0?this.cssProperties&&delete this.cssProperties["margin-right"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-right"]=eu(y,"em")))}set bottom(y){Number.isFinite(y)&&(y===0?this.cssProperties&&delete this.cssProperties["margin-bottom"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-bottom"]=eu(y,"em")))}get width(){return this._width*this.scale}set width(y){this._width=y,this.hasExplicitWidth=!0}set softWidth(y){}get height(){return this._height*this.scale}set height(y){this._height=y}get depth(){return this._depth*this.scale}set depth(y){this._depth=y}wrap(y){const b=y.parent;if(!b)return this;y.isPhantom&&this.setStyle("opacity",0);const E=y.color;E&&E!==b.color&&this.setStyle("color",E);let ee=y.backgroundColor;this.isSelected&&(ee=$n(ee)),ee&&ee!==b.backgroundColor&&(this.setStyle("background-color",ee),this.setStyle("display","inline-block"));const ie=y.scalingFactor;return this.scale=ie,this.skew*=ie,this.italic*=ie,this}toMarkup(){var y,b,E,ee;let ie=(y=this.value)!=null?y:"";if(this.children)for(const rn of this.children)ie+=rn.toMarkup();let oe="";if(this.svgBody)oe=lo(this.svgBody);else if(this.svgOverlay){oe='<span style="',oe+="display: inline-block;",oe+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`,oe+=`vertical-align:${Math.floor(100*this.depth)/100}em;`,oe+='">',oe+=ie,oe+="</span>",oe+='<svg style="position:absolute;overflow:visible;',oe+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`;const rn=(b=this.cssProperties)==null?void 0:b.padding;rn?(oe+=`top:${rn};`,oe+=`left:${rn};`,oe+=`width:calc(100% - 2 * ${rn} );`):oe+="top:0;left:0;width:100%;",oe+="z-index:2;",oe+='"',this.svgStyle&&(oe+=this.svgStyle),oe+=` viewBox="0 0 ${Math.floor(100*this.width)/100} ${Math.floor(100*(this.height+this.depth))/100}"`,oe+=`>${this.svgOverlay}</svg>`}let ve="";const Ee=this.classes.split(" ");Ee.push((E={latex:"ML__raw-latex",placeholder:"ML__placeholder",error:"ML__error"}[this.type])!=null?E:""),this.caret==="latex"&&Ee.push("ML__latex-caret"),this.isSelected&&Ee.push("ML__selected");const Te=Ee.length===1?Ee[0]:Ee.filter((rn,pn,_r)=>rn.length>0&&_r.indexOf(rn)===pn).join(" ");if(Te.length>0&&(ve+=` class="${Te}"`),this.id&&(ve+=` data-atom-id=${this.id}`),this.cssId&&(ve+=` id="${this.cssId.replace(/ /g,"-")}" `),this.attributes&&(ve+=" "+Object.keys(this.attributes).map(rn=>`${rn}="${this.attributes[rn]}"`).join(" ")),this.htmlData){const rn=this.htmlData.split(",");for(const pn of rn){const _r=pn.match(/([^=]+)=(.+$)/);if(_r){const Ai=_r[1].trim().replace(/ /g,"-");Ai&&(ve+=` data-${Ai}="${_r[2]}" `)}else{const Ai=pn.trim().replace(/ /g,"-");Ai&&(ve+=` data-${Ai} `)}}}const Ke=(ee=this.cssProperties)!=null?ee:{};this.hasExplicitWidth&&Ke.width===void 0&&(Ke.width=`${Math.ceil(this._width*100)/100}em`);const pt=Object.keys(Ke).map(rn=>`${rn}:${Ke[rn]}`);if(this.scale!==void 0&&this.scale!==1&&(ie.length>0||oe.length>0)&&pt.push(`font-size: ${Math.ceil(this.scale*1e4)/100}%`),this.htmlStyle){const rn=this.htmlStyle.split(";");let pn="";for(const _r of rn){const Ai=_r.match(/([^=]+):(.+$)/);if(Ai){const Pr=Ai[1].trim().replace(/ /g,"-");Pr&&(pn+=`${Pr}:${Ai[2]};`)}}pn&&(ve+=` style="${pn}"`)}pt.length>0&&(ve+=` style="${pt.join(";")}"`);let Tt="";return ve.length>0||oe.length>0?Tt=`<span${ve}>${ie}${oe}</span>`:Tt=ie,this.caret==="text"?Tt+='<span class="ML__text-caret"></span>':this.caret==="math"&&(Tt+='<span class="ML__caret"></span>'),Tt}tryCoalesceWith(y){if(this.svgBody||!this.value||y.svgBody||!y.value)return!1;const b=this.children&&this.children.length>0,E=y.children&&y.children.length>0;if(b||E)return!1;if(y.cssProperties||this.cssProperties){for(const Ee of["border","border-left","border-right","border-right-width","left","margin","margin-left","margin-right","padding","position","width"])if(y.cssProperties&&Ee in y.cssProperties||this.cssProperties&&Ee in this.cssProperties)return!1}const ee=this.cssProperties?Object.keys(this.cssProperties).length:0,ie=y.cssProperties?Object.keys(y.cssProperties).length:0;if(ee!==ie)return!1;if(ee>0){for(const Ee of Object.keys(this.cssProperties))if(this.cssProperties[Ee]!==y.cssProperties[Ee])return!1}const oe=this.classes.trim().replace(/\s+/g," ").split(" "),ve=y.classes.trim().replace(/\s+/g," ").split(" ");if(oe.length!==ve.length)return!1;oe.sort(),ve.sort();for(const[Ee,Te]of oe.entries())if(Te==="vertical-separator"||Te!==ve[Ee])return!1;return this.value+=y.value,this.height=Math.max(this.height,y.height),this.depth=Math.max(this.depth,y.depth),this._width=this._width+y._width,this.maxFontSize=Math.max(this.maxFontSize,y.maxFontSize),this.italic=y.italic,!0}};function ku(a){if(!a||a.length===0)return[];a[0].children=ku(a[0].children);const y=[a[0]];for(let b=1;b<a.length;b++)y[y.length-1].tryCoalesceWith(a[b])||(a[b].children=ku(a[b].children),y.push(a[b]));return y}function ul(a){return a.children&&(a.children=ku(a.children)),a}function Vl(a,y){if(!a)return new oi(null,y);const b=new oi(null,{classes:"ML__strut",type:"ignore"});b.setStyle("height",Math.max(0,a.height),"em");const E=[b];if(a.depth!==0){const ee=new oi(null,{classes:"ML__strut--bottom",type:"ignore"});ee.setStyle("height",a.height+a.depth,"em"),ee.setStyle("vertical-align",-a.depth,"em"),E.push(ee)}return E.push(a),new oi(E,pe(we({},y),{type:"lift"}))}function su(a){const y=Ua(a)/2,b=new oi(null,{maxFontSize:0});return b.height=y+.166,b.depth=y-.166,b.svgBody=a,b}function hs(a,y){var b;if(a.type==="latex"){a.height=.9,a.depth=.2,a._width=1;return}if(a.value){a.height=-1/0,a.depth=-1/0,a._width=0,a.skew=-1/0,a.italic=-1/0;for(let E=0;E<a.value.length;E++){const ee=Li(a.value.codePointAt(E),y);a.height=Math.max(a.height,ee.height),a.depth=Math.max(a.depth,ee.depth),a._width+=ee.width,a.skew=ee.skew,a.italic=ee.italic}return}if(a.children&&a.children.length>0){let E=-1/0,ee=-1/0,ie=0;for(const oe of a.children)oe.height>E&&(E=oe.height),oe.depth>ee&&(ee=oe.depth),ie=Math.max(ie,(b=oe.maxFontSize)!=null?b:0);a.height=E,a.depth=ee,a._width=a.children.reduce((oe,ve)=>oe+ve.width,0),a.maxFontSize=ie}}function ys(a){if("individualShift"in a){const y=a.individualShift;let b=y[0];const E=[b],ee=-b.shift-b.box.depth;let ie=ee;for(let oe=1;oe<y.length;oe++){const ve=y[oe],Ee=-ve.shift-ie-ve.box.depth,Te=Ee-(b.box.height+b.box.depth);ie=ie+Ee,E.push(Te),E.push(ve),b=ve}return[E,ee]}if("top"in a){let y=a.top;for(const b of a.children)y-=typeof b=="number"?b:b.box.height+b.box.depth;return[a.children,y]}else{if("bottom"in a)return[a.children,-a.bottom];if("firstBaseline"in a){const y=a.firstBaseline[0];if(typeof y=="number")throw new Error("First child must be an element.");return[a.firstBaseline,-y.box.depth]}else if("shift"in a){const y=a.children[0];if(typeof y=="number")throw new Error("First child must be an element.");return[a.children,-y.box.depth-a.shift]}}return[null,0]}function zs(a){var y;const[b,E]=ys(a);if(!b)return[[],0,0];const ee=new oi(null,{classes:"pstrut"});let ie=0;for(const pn of b)if(typeof pn!="number"){const _r=pn.box;ie=Math.max(ie,_r.maxFontSize,_r.height)}ie+=2,ee.height=ie,ee.setStyle("height",ie,"em");const oe=[];let ve=E,Ee=E,Te=E,Ke=0;for(const pn of b){if(typeof pn=="number")Te+=pn;else{const _r=pn.box,Ai=(y=pn.classes)!=null?y:[],Pr=new oi([ee,_r],{classes:Ai.join(" "),style:pn.style});_r.setStyle("height",_r.height+_r.depth,"em"),_r.setStyle("display","inline-block"),Pr.setStyle("top",-ie-Te-_r.depth,"em"),pn.marginLeft&&Pr.setStyle("margin-left",pn.marginLeft,"em"),pn.marginRight&&Pr.setStyle("margin-right",pn.marginRight,"em"),oe.push(Pr),Te+=_r.height+_r.depth,Ke=Math.max(Ke,Pr.width)}ve=Math.min(ve,Te),Ee=Math.max(Ee,Te)}oe.forEach(pn=>{pn.softWidth=Ke});const pt=new oi(oe,{classes:"vlist"});if(pt.softWidth=Ke,pt.height=Ee,pt.setStyle("height",Ee,"em"),ve>=0)return[[new oi(pt,{classes:"vlist-r"})],Ee,-ve];const Tt=new oi(new oi(null),{classes:"vlist"});Tt.height=-ve,Tt.setStyle("height",-ve,"em");const rn=new oi(8203,{classes:"vlist-s",maxFontSize:0});return rn.softWidth=0,rn.height=0,rn.depth=0,[[new oi([pt,rn],{classes:"vlist-r"}),new oi(Tt,{classes:"vlist-r"})],Ee,-ve]}var Io=class extends oi{constructor(a,y){var b;const[E,ee,ie]=zs(a);super(E.length===1?E[0]:E,{type:y==null?void 0:y.type,classes:((b=y==null?void 0:y.classes)!=null?b:"")+" vlist-t"+(E.length===2?" vlist-t2":"")}),this.height=ee,this.depth=ie,this.softWidth=E.reduce((oe,ve)=>Math.max(oe,ve.width),0)}};function Ll(a,y){var b,E,ee,ie,oe;const ve=a.metrics,Ee=new oi(y.base),Te=(b=y.baseShift)!=null?b:0,Ke=(E=y.slant)!=null?E:0;let pt=0,Tt=0;y.above&&(pt=(ee=y.aboveShift)!=null?ee:Math.max(ve.bigOpSpacing1,ve.bigOpSpacing3-y.above.depth)),y.below&&(Tt=(ie=y.belowShift)!=null?ie:Math.max(ve.bigOpSpacing2,ve.bigOpSpacing4-y.below.height));let rn=null;if(y.below&&y.above){const pn=ve.bigOpSpacing5+y.below.height+y.below.depth+Tt+Ee.depth+Te;rn=new Io({bottom:pn,children:[ve.bigOpSpacing5,{box:y.below,marginLeft:-Ke,classes:["ML__center"]},Tt,{box:Ee,classes:["ML__center"]},pt,{box:y.above,marginLeft:Ke,classes:["ML__center"]},ve.bigOpSpacing5]}).wrap(a)}else if(y.below&&!y.above)rn=new Io({top:Ee.height-Te,children:[ve.bigOpSpacing5,{box:y.below,marginLeft:-Ke,classes:["ML__center"]},Tt,{box:Ee,classes:["ML__center"]}]}).wrap(a);else if(!y.below&&y.above){const pn=Ee.depth+Te;rn=new Io({bottom:pn,children:[{box:Ee,classes:["ML__center"]},pt,{box:y.above,marginLeft:Ke,classes:["ML__center"]},ve.bigOpSpacing5]}).wrap(a)}else{const pn=Ee.depth+Te;rn=new Io({bottom:pn,children:[{box:Ee},ve.bigOpSpacing5]}).wrap(a)}return new oi(rn,{type:(oe=y.type)!=null?oe:"op"})}var Yo=7,Cl=6,Pl=5,Tl=4,lu=3,cl=2,uu=1,dl=0,Il=class{constructor(a,y,b){this.id=a,this.sizeDelta=y,this.cramped=b;const E={"-4":2,"-3":1,0:0}[y];this.metrics=Object.keys(ko).reduce((ee,ie)=>pe(we({},ee),{[ie]:ko[ie][E]}),{})}getFontSize(a){return Math.max(1,a+this.sizeDelta)}get sup(){return fl[[dl,uu,dl,uu,cl,lu,cl,lu][this.id]]}get sub(){return fl[[dl,dl,dl,dl,cl,cl,cl,cl][this.id]]}get fracNum(){return fl[[dl,uu,dl,uu,cl,lu,Tl,Pl][this.id]]}get fracDen(){return fl[[dl,dl,dl,dl,cl,cl,Tl,Tl][this.id]]}get cramp(){return fl[[dl,dl,cl,cl,Tl,Tl,Cl,Cl][this.id]]}get isTight(){return this.sizeDelta<0}},Nl={7:new Il(Yo,0,!1),6:new Il(Cl,0,!0),5:new Il(Pl,0,!1),4:new Il(Tl,0,!0),3:new Il(lu,-3,!1),2:new Il(cl,-3,!0),1:new Il(uu,-4,!1),0:new Il(dl,-4,!0)},fl=pe(we({},Nl),{displaystyle:Nl[Yo],textstyle:Nl[Pl],scriptstyle:Nl[lu],scriptscriptstyle:Nl[uu]});function ol(a,y){var b;if(!a)return 0;const E={pt:1,mm:7227/2540,cm:7227/254,ex:35271/8192,px:3/4,em:va,bp:803/800,dd:1238/1157,pc:12,in:72.27,mu:10/18}[(b=a.unit)!=null?b:"pt"];if(Number.isFinite(y)){const ee=Gc(10,y);return Math.round(a.dimension/va*E*ee)/ee}return a.dimension*E}function qs(a,y){if(a===null)return 0;const b=ol(a)/va;if(Number.isFinite(y)){const E=Gc(10,y);return Math.round(b*E)/E}return b}function $u(a){var y;return`${a.dimension}${(y=a.unit)!=null?y:"pt"}`}function sc(a){let y=$u(a.glue);return a.grow&&a.grow.dimension!==0&&(y+=` plus ${$u(a.grow)}`),a.shrink&&a.shrink.dimension!==0&&(y+=` minus ${$u(a.shrink)}`),y}function Vs(a){var y,b;if(a==null)return null;let E="";if("dimension"in a&&(E=`${a.dimension}${(y=a.unit)!=null?y:"pt"}`),"glue"in a&&(E=sc(a)),"number"in a)if(!("base"in a)||a.base==="decimal")E=Number(a.number).toString();else if(a.base==="alpha")E=`\`${String.fromCodePoint(a.number)}`;else{const ee=Math.round(a.number)>>>0;a.base==="hexadecimal"?(E=Number(ee).toString(16).toUpperCase(),ee<=255?E=E.padStart(2,"0"):ee<=65535?E=E.padStart(4,"0"):ee<=16777215?E=E.padStart(6,"0"):E=E.padStart(8,"0"),E=`"${E}`):a.base==="octal"&&(E=Number(ee).toString(8),ee<=63?E=E.padStart(2,"0"):ee<=30583?E=E.padStart(4,"0"):E=E.padStart(8,"0"),E=`'${E}`)}return"register"in a&&("factor"in a&&(a.factor===-1?E="-":a.factor!==1&&(E=Number(a.factor).toString())),"global"in a&&a.global&&(E+="\\global"),E+=`\\${a.register}`),"string"in a&&(E=a.string),(b=a.relax)!=null&&b&&(E+="\\relax"),E}function jl(a,y){return a==null?null:"number"in a?pe(we({},a),{number:a.number*y}):"register"in a?"factor"in a&&a.factor?pe(we({},a),{factor:a.factor*y}):pe(we({},a),{factor:y}):"dimension"in a?pe(we({},a),{dimension:a.dimension*y}):"glue"in a?a.shrink&&a.grow?{glue:jl(a.glue,y),shrink:jl(a.shrink,y),grow:jl(a.grow,y)}:a.shrink?{glue:jl(a.glue,y),shrink:jl(a.shrink,y)}:a.grow?{glue:jl(a.glue,y),grow:jl(a.grow,y)}:{glue:jl(a.glue,y)}:null}var Nc={"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 Yu(){return we({},Nc)}function Fo(){return{registers:Yu(),smartFence:!1,renderPlaceholder:void 0,placeholderSymbol:"\u25A2",letterShapeStyle:ot.locale.startsWith("fr")?"french":"tex",minFontScale:0,colorMap:Ge,backgroundColorMap:Ae,getMacro:a=>er(a,Bt())}}var Fa=class Mp{constructor(y,b){var E,ee,ie,oe,ve,Ee,Te,Ke,pt,Tt,rn,pn,_r,Ai,Pr;let ui;y!=null&&y.parent?(this.parent=y.parent,ui=y.parent,this.registers={}):(ui=we(we({},Fo()),(E=y==null?void 0:y.from)!=null?E:{}),this.registers=ui.registers),ui.atomIdsSettings&&(this.atomIdsSettings=we({},ui.atomIdsSettings)),this.renderPlaceholder=ui.renderPlaceholder,this.isPhantom=(oe=(ie=y==null?void 0:y.isPhantom)!=null?ie:(ee=this.parent)==null?void 0:ee.isPhantom)!=null?oe:!1,this.letterShapeStyle=ui.letterShapeStyle,this.minFontScale=ui.minFontScale,b!=null&&b.color&&b.color!=="none"?this.color=b.color:this.color=(Ee=(ve=this.parent)==null?void 0:ve.color)!=null?Ee:"",b!=null&&b.backgroundColor&&b.backgroundColor!=="none"?this.backgroundColor=b.backgroundColor:this.backgroundColor=(Ke=(Te=this.parent)==null?void 0:Te.backgroundColor)!=null?Ke:"",b!=null&&b.fontSize&&b.fontSize!=="auto"&&b.fontSize!==((pt=this.parent)==null?void 0:pt.size)?this.size=b.fontSize:this.size=(rn=(Tt=this.parent)==null?void 0:Tt.size)!=null?rn:oa;let Pi=(_r=(pn=this.parent)==null?void 0:pn.mathstyle)!=null?_r:fl.displaystyle;if(typeof(y==null?void 0:y.mathstyle)=="string"){if(ui instanceof Mp)switch(y.mathstyle){case"cramp":Pi=Pi.cramp;break;case"superscript":Pi=Pi.sup;break;case"subscript":Pi=Pi.sub;break;case"numerator":Pi=Pi.fracNum;break;case"denominator":Pi=Pi.fracDen;break}switch(y.mathstyle){case"textstyle":Pi=fl.textstyle;break;case"displaystyle":Pi=fl.displaystyle;break;case"scriptstyle":Pi=fl.scriptstyle;break;case"scriptscriptstyle":Pi=fl.scriptscriptstyle;break;case"":case"auto":break}}this.mathstyle=Pi,this.smartFence=ui.smartFence,this.placeholderSymbol=ui.placeholderSymbol,this.colorMap=(Ai=ui.colorMap)!=null?Ai:pi=>pi,this.backgroundColorMap=(Pr=ui.backgroundColorMap)!=null?Pr:pi=>pi,this.getMacro=ui.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 y=this.atomIdsSettings.seed.toString(36);return this.atomIdsSettings.seed+=1,y}scale(y){return y*this.effectiveFontSize}get scalingFactor(){return this.parent?this.effectiveFontSize/this.parent.effectiveFontSize:1}get isDisplayStyle(){return this.mathstyle.id===Yo||this.mathstyle.id===Cl}get isCramped(){return this.mathstyle.cramped}get isTight(){return this.mathstyle.isTight}get metrics(){return this.mathstyle.metrics}get effectiveFontSize(){return Math.max(ea[Math.max(1,this.size+this.mathstyle.sizeDelta)],this.minFontScale)}getRegister(y){var b;if((b=this.registers)!=null&&b[y])return this.registers[y];if(this.parent)return this.parent.getRegister(y)}getRegisterAsNumber(y){const b=this.getRegister(y);if(typeof b=="number")return b;if(typeof b=="string")return Number(b)}getRegisterAsGlue(y){var b;if((b=this.registers)!=null&&b[y]){const E=this.registers[y];return typeof E=="object"&&"glue"in E?E:typeof E=="object"&&"dimension"in E?{glue:{dimension:E.dimension}}:typeof E=="number"?{glue:{dimension:E}}:void 0}if(this.parent)return this.parent.getRegisterAsGlue(y)}getRegisterAsEm(y,b){return qs(this.getRegisterAsDimension(y),b)}getRegisterAsDimension(y){var b;if((b=this.registers)!=null&&b[y]){const E=this.registers[y];return typeof E=="object"&&"glue"in E?E.glue:typeof E=="object"&&"dimension"in E?E:typeof E=="number"?{dimension:E}:void 0}if(this.parent)return this.parent.getRegisterAsDimension(y)}setRegister(y,b){if(b===void 0){delete this.registers[y];return}this.registers[y]=b}evaluate(y){if(!y||!("register"in y))return y;let b=this;if("global"in y&&y.global)for(;b.parent;)b=b.parent;let E=1;"factor"in y&&y.factor!==1&&y.factor!==void 0&&(E=y.factor);const ee=b.getRegister(y.register);if(ee===void 0)return;if(typeof ee=="string")return{string:Number(ee).toString()+ee};if(typeof ee=="number")return{number:E*ee};const ie=b.evaluate(ee);if(ie!==void 0)return"string"in ie?{string:Number(ee).toString()+ie.string}:"number"in ie?{number:E*ie.number}:"dimension"in ie?pe(we({},ie),{dimension:E*ie.dimension}):"glue"in ie?pe(we({},ie),{glue:pe(we({},ie.glue),{dimension:E*ie.glue.dimension}),shrink:ie.shrink?pe(we({},ie.shrink),{dimension:E*ie.shrink.dimension}):void 0,grow:ie.grow?pe(we({},ie.grow),{dimension:E*ie.grow.dimension}):void 0}):y}toDimension(y){const b=this.evaluate(y);return b===void 0?null:"dimension"in b?b:"glue"in b?b.glue:"number"in b?{dimension:b.number}:null}toEm(y,b){if(y===null)return 0;const E=this.toDimension(y);return E===null?0:ol(E,b)/va}toNumber(y){if(y===null)return null;const b=this.evaluate(y);return b===void 0?null:"number"in b?b.number:"dimension"in b?b.dimension:"glue"in b?b.glue.dimension:"string"in b?Number(b.string):null}toColor(y){var b,E;if(y===null)return null;const ee=this.evaluate(y);return ee===void 0?null:"string"in ee?(E=(b=this.colorMap)==null?void 0:b.call(this,ee.string))!=null?E:ee.string:null}toBackgroundColor(y){var b,E;if(y===null)return null;const ee=this.evaluate(y);return ee===void 0?null:"string"in ee?(E=(b=this.backgroundColorMap)==null?void 0:b.call(this,ee.string))!=null?E:ee.string:null}},Ml=["body","above","below","superscript","subscript"];function Ds(a){return typeof a=="string"&&Ml.includes(a)}function Ol(a){return a!==void 0&&Array.isArray(a)&&a.length===2}var Wr=class id{constructor(y){var b,E,ee,ie,oe,ve;this.type=y.type,typeof y.value=="string"&&(this.value=y.value),this.command=(E=(b=y.command)!=null?b:this.value)!=null?E:"",this.mode=(ee=y.mode)!=null?ee:"math",y.isFunction&&(this.isFunction=!0),y.limits&&(this.subsupPlacement=y.limits),this.style=we({},y.style),this.displayContainsHighlight=(ie=y.displayContainsHighlight)!=null?ie:!1,this.captureSelection=(oe=y.captureSelection)!=null?oe:!1,this.skipBoundary=(ve=y.skipBoundary)!=null?ve:!1,y.verbatimLatex!==void 0&&y.verbatimLatex!==null&&(this.verbatimLatex=y.verbatimLatex),y.args&&(this.args=y.args),y.body&&(this.body=y.body),this._changeCounter=0}static createBox(y,b,E){var ee;if(!b)return null;const ie=pu(b),oe=[];for(const Ee of ie){const Te=Ee[0].style,Ke=Xu(y,Ee,{style:{color:Te.color,backgroundColor:Te.backgroundColor,fontSize:Te.fontSize}});Ke&&oe.push(Ke)}if(oe.length===0)return null;const ve=((ee=E==null?void 0:E.classes)!=null?ee:"").trim();return oe.length===1&&!ve&&!(E!=null&&E.type)?oe[0].wrap(y):new oi(oe,{classes:ve,type:E==null?void 0:E.type}).wrap(y)}static serialize(y,b){return na.serialize(y,b)}static commonAncestor(y,b){if(y===b||y.parent===b.parent)return y.parent;const E=new WeakSet;let{parent:ee}=y;for(;ee;)E.add(ee),ee=ee.parent;for(ee=b.parent;ee;){if(E.has(ee))return ee;ee=ee.parent}console.assert(!!ee)}static fromJson(y){return typeof y=="string"?new id({type:"mord",value:y,mode:"math"}):new id(y)}get latexMode(){return this.mode==="math"?"math":"text"}toJson(){const y={};if(this.type&&(y.type=this.type),this.mode!=="math"&&(y.mode=this.mode),this.command&&this.command!==this.value&&(y.command=this.command),this.value!==void 0&&(y.value=this.value),this.style&&Object.keys(this.style).length>0&&(y.style=we({},this.style)),this.verbatimLatex!==void 0&&(y.verbatimLatex=this.verbatimLatex),this.subsupPlacement&&(y.subsupPlacement=this.subsupPlacement),this.explicitSubsupPlacement&&(y.explicitSubsupPlacement=!0),this.isFunction&&(y.isFunction=!0),this.displayContainsHighlight&&(y.displayContainsHighlight=!0),this.isExtensibleSymbol&&(y.isExtensibleSymbol=!0),this.skipBoundary&&(y.skipBoundary=!0),this.captureSelection&&(y.captureSelection=!0),this.args&&(y.args=Yc(this.args)),this._branches)for(const b of Object.keys(this._branches))this._branches[b]&&(y[b]=this._branches[b].filter(E=>E.type!=="first").map(E=>E.toJson()));return y.type==="mord"&&Object.keys(y).length===2&&"value"in y?y.value:y}get changeCounter(){return this.parent?this.parent.changeCounter:this._changeCounter}set isDirty(y){if(y){this.parent||this._changeCounter++,"verbatimLatex"in this&&(this.verbatimLatex=void 0),this._children=void 0;let{parent:b}=this;for(;b;)b.parent||b._changeCounter++,"verbatimLatex"in b&&(b.verbatimLatex=void 0),b._children=void 0,b=b.parent}}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=At(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):this.body&&this.command?vo([Ki(this.command,this.bodyToLatex(y)),this.supsubToLatex(y)]):this.body?vo([this.bodyToLatex(y),this.supsubToLatex(y)]):!this.value||this.value==="\u200B"?"":this.command}bodyToLatex(y){var b;return na.serialize(this.body,pe(we({},y),{defaultMode:(b=y.defaultMode)!=null?b:this.latexMode}))}aboveToLatex(y){return na.serialize(this.above,y)}belowToLatex(y){return na.serialize(this.below,y)}supsubToLatex(y){let b="";if(y=pe(we({},y),{defaultMode:"math"}),this.branch("subscript")!==void 0){const E=na.serialize(this.subscript,y);E.length===0?b+="_{}":E.length===1?/^[0-9]$/.test(E)?b+=`_${E}`:b+=`_{${E}}`:b+=`_{${E}}`}if(this.branch("superscript")!==void 0){const E=na.serialize(this.superscript,y);E.length===0?b+="^{}":E.length===1?E==="\u2032"?b+="^\\prime ":E==="\u2033"?b+="^\\doubleprime ":/^[0-9]$/.test(E)?b+=`^${E}`:b+=`^{${E}}`:b+=`^{${E}}`}return b}get treeDepth(){let y=1,b=this.parent;for(;b;)b=b.parent,y+=1;return y}get inCaptureSelection(){let y=this;for(;y;){if(y.captureSelection)return!0;y=y.parent}return!1}get parentPrompt(){let y=this.parent;for(;y;){if(y.type==="prompt"&&!y.captureSelection)return y;y=y.parent}return null}branch(y){if(Ds(y)&&this._branches)return this._branches[y]}get branches(){if(!this._branches)return[];const y=[];for(const b of Ml)this._branches[b]&&y.push(b);return y}createBranch(y){return console.assert(Ds(y)),Ds(y)?(this._branches?this._branches[y]||(this._branches[y]=[this.makeFirstAtom(y)]):this._branches={[y]:[this.makeFirstAtom(y)]},this.isDirty=!0,this._branches[y]):[]}get row(){return Ol(this.parentBranch)?this.parentBranch[0]:-1}get col(){return Ol(this.parentBranch)?this.parentBranch[1]:-1}get body(){var y;return(y=this._branches)==null?void 0:y.body}set body(y){this.setChildren(y,"body")}get superscript(){var y;return(y=this._branches)==null?void 0:y.superscript}set superscript(y){this.setChildren(y,"superscript")}get subscript(){var y;return(y=this._branches)==null?void 0:y.subscript}set subscript(y){this.setChildren(y,"subscript")}get above(){var y;return(y=this._branches)==null?void 0:y.above}set above(y){this.setChildren(y,"above")}get below(){var y;return(y=this._branches)==null?void 0:y.below}set below(y){this.setChildren(y,"below")}get computedStyle(){var y,b;const E=typeof this.style.verbatimColor=="string",ee=typeof this.style.verbatimBackgroundColor=="string",ie=we(we({},(b=(y=this.parent)==null?void 0:y.computedStyle)!=null?b:{}),this.style);return delete ie.variant,delete ie.variantStyle,ee||delete ie.verbatimBackgroundColor,E||delete ie.verbatimColor,ie}applyStyle(y){this.isDirty=!0,this.style=we(we({},this.style),y),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 b of this.children)b.applyStyle(y)}getInitialBaseElement(){var y,b,E;return this.hasEmptyBranch("body")?this:(console.assert(((y=this.body)==null?void 0:y[0].type)==="first"),(E=(b=this.body[1])==null?void 0:b.getInitialBaseElement())!=null?E: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(y){const b=this.branch(y);return b?(console.assert(b.length>0),console.assert(b[0].type==="first"),b.length===1):!0}setChildren(y,b){var E;if(!y||(console.assert(Ds(b)),!Ds(b)))return;console.assert(((E=y[0])==null?void 0:E.type)!=="first");const ee=[this.makeFirstAtom(b),...y];this._branches?this._branches[b]=ee:this._branches={[b]:ee};for(const ie of y)ie.parent=this,ie.parentBranch=b;this.isDirty=!0}makeFirstAtom(y){const b=new id({type:"first",mode:this.mode});return b.parent=this,b.parentBranch=y,b}addChild(y,b){console.assert(y.type!=="first"),this.createBranch(b).push(y),this.isDirty=!0,y.parent=this,y.parentBranch=b}addChildBefore(y,b){console.assert(b.parentBranch!==void 0);const E=this.createBranch(b.parentBranch);E.splice(E.indexOf(b),0,y),this.isDirty=!0,y.parent=this,y.parentBranch=b.parentBranch}addChildAfter(y,b){console.assert(b.parentBranch!==void 0);const E=this.createBranch(b.parentBranch);E.splice(E.indexOf(b)+1,0,y),this.isDirty=!0,y.parent=this,y.parentBranch=b.parentBranch}addChildren(y,b){const E=this.createBranch(b);for(const ee of y)ee.parent=this,ee.parentBranch=b,E.push(ee);this.isDirty=!0}addChildrenAfter(y,b){console.assert(y.length===0||y[0].type!=="first"),console.assert(b.parentBranch!==void 0);const E=this.createBranch(b.parentBranch);E.splice(E.indexOf(b)+1,0,...y),this.isDirty=!0;for(const ee of y)ee.parent=this,ee.parentBranch=b.parentBranch;return y[y.length-1]}removeBranch(y){const b=this.branch(y);if(Ds(y)&&(this._branches[y]=void 0),!b)return[];for(const E of b)E.parent=void 0,E.parentBranch=void 0;return console.assert(b[0].type==="first"),b.shift(),this.isDirty=!0,b}removeChild(y){if(console.assert(y.parent===this),y.type==="first")return;const b=this.branch(y.parentBranch),E=b.indexOf(y);console.assert(E>=0),b.splice(E,1),this.isDirty=!0,y.parent=void 0,y.parentBranch=void 0}get siblings(){return this.parent?this.parent.branch(this.parentBranch):[]}get firstSibling(){return this.siblings[0]}get lastSibling(){const{siblings:y}=this;return y[y.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 y=this.parent.branch(this.parentBranch);return y[y.indexOf(this)-1]}get rightSibling(){console.assert(this.parent!==void 0);const y=this.parent.branch(this.parentBranch);return y[y.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:y}=this;return y[y.length-1]}get children(){if(this._children)return this._children;if(!this._branches)return[];const y=[];for(const b of Ml)if(this._branches[b])for(const E of this._branches[b])y.push(...E.children),y.push(E);return this._children=y,y}render(y){if(this.type==="first"&&!y.atomIdsSettings)return null;const b=At(this.command,this.mode);if(b!=null&&b.render)return b.render(this,y);const E=new Fa({parent:y},this.style);let ee=this.createBox(E,{classes:this.parent?"":"ML__base"});return ee?(!this.subsupPlacement&&(this.superscript||this.subscript)&&(ee=this.attachSupsub(E,{base:ee})),ee.wrap(E)):null}attachSupsub(y,b){var E;const ee=b.base,ie=this.superscript,oe=this.subscript;if(!ie&&!oe)return ee;let ve=null,Ee=null;const Te=(E=b.isCharacterBox)!=null?E:this.isCharacterBox();let Ke=0;if(ie){const _r=new Fa({parent:y,mathstyle:"superscript"});ve=id.createBox(_r,ie),Te||(Ke=ee.height-y.metrics.supDrop*_r.scalingFactor)}let pt=0;if(oe){const _r=new Fa({parent:y,mathstyle:"subscript"});Ee=id.createBox(_r,oe),Te||(pt=ee.depth+y.metrics.subDrop*_r.scalingFactor)}let Tt;y.isDisplayStyle?Tt=y.metrics.sup1:y.isCramped?Tt=y.metrics.sup3:Tt=y.metrics.sup2;const rn=.5/va/y.scalingFactor;let pn=null;if(Ee&&ve){Ke=Math.max(Ke,Tt,ve.depth+.25*y.metrics.xHeight),pt=Math.max(pt,y.metrics.sub2);const _r=y.metrics.defaultRuleThickness;if(Ke-ve.depth-(Ee.height-pt)<4*_r){pt=4*_r-(Ke-ve.depth)+Ee.height;const Pr=.8*y.metrics.xHeight-(Ke-ve.depth);Pr>0&&(Ke+=Pr,pt-=Pr)}const Ai=this.isExtensibleSymbol&&ee.italic?-ee.italic:0;pn=new Io({individualShift:[{box:Ee,shift:pt,marginLeft:Ai},{box:ve,shift:-Ke}]}).wrap(y)}else Ee&&!ve?(pt=Math.max(pt,y.metrics.sub1,Ee.height-.8*$a),pn=new Io({shift:pt,children:[{box:Ee,marginRight:rn,marginLeft:this.isCharacterBox()?-ee.italic:0}]})):!Ee&&ve&&(Ke=Math.max(Ke,Tt,ve.depth+.25*$a),pn=new Io({shift:-Ke,children:[{box:ve,marginRight:rn}]}));return new oi([ee,new oi(pn,{caret:this.caret,isSelected:this.isSelected,classes:"msubsup"})],{type:b.type})}attachLimits(y,b){const E=this.superscript?id.createBox(new Fa({parent:y,mathstyle:"superscript"},this.style),this.superscript):null,ee=this.subscript?id.createBox(new Fa({parent:y,mathstyle:"subscript"},this.style),this.subscript):null;return!E&&!ee?b.base.wrap(y):Ll(y,pe(we({},b),{above:E,below:ee}))}bind(y,b){if(!b||y.isPhantom||this.value==="\u200B")return b;let E=this.parent;for(;E&&!E.captureSelection;)E=E.parent;return E!=null&&E.captureSelection||(this.id||(this.id=y.makeID()),b.atomID=this.id),b}createBox(y,b){var E,ee,ie,oe;const ve=(E=this.value)!=null?E:this.body,Ee=(ee=b==null?void 0:b.boxType)!=null?ee:$l(this.type);let Te=(ie=b==null?void 0:b.classes)!=null?ie:"";this.mode==="text"&&(Te+=" ML__text");const Ke=typeof ve=="string"||ve===void 0?new oi(ve!=null?ve:null,{type:Ee,isSelected:this.isSelected,mode:this.mode,maxFontSize:y.scalingFactor,style:pe(we({variant:"normal"},this.style),{fontSize:Math.max(1,y.size+y.mathstyle.sizeDelta)}),letterShapeStyle:y.letterShapeStyle,classes:Te}):(oe=id.createBox(y,ve,{type:Ee,classes:Te}))!=null?oe:new oi(null);return y.isTight&&(Ke.isTight=!0),(this.mode!=="math"||this.style.variant==="main")&&(Ke.italic=0),Ke.right=Ke.italic,this.bind(y,Ke),this.caret&&!this.superscript&&!this.subscript&&(Ke.caret=this.caret),Ke}isDigit(){var y;return this.type==="mord"&&this.value?/^[\d,\.]$/.test(this.value):this.type==="group"&&((y=this.body)==null?void 0:y.length)===2?this.body[0].type==="first"&&this.body[1].value===",":!1}asDigit(){var y;return this.type==="mord"&&this.value&&/^[\d,\.]$/.test(this.value)?this.value:this.type==="group"&&((y=this.body)==null?void 0:y.length)===2&&this.body[0].type==="first"&&this.body[1].value===","?".":""}};function pu(a){let y;const b=[];let E=[];for(const ee of a)if(!y&&!ee.style)E.push(ee);else{const ie=ee.computedStyle;y&&ie.color===y.color&&ie.backgroundColor===y.backgroundColor&&ie.fontSize===y.fontSize?E.push(ee):(E.length>0&&b.push(E),E=[ee],y=ie)}return E.length>0&&b.push(E),b}function Xu(a,y,b){var E,ee,ie,oe,ve;if(!y||y.length===0)return null;const Ee=new Fa({parent:a},b.style),Te=!((E=Ee.atomIdsSettings)!=null&&E.groupNumbers);let Ke=[];if(y.length===1){const Tt=y[0],rn=Tt.render(Ee);rn&&(Te&&Tt.isSelected&&rn.selected(!0),Ke=[rn])}else{let Tt="",rn=!0;for(const pn of y){(ee=Ee.atomIdsSettings)!=null&&ee.groupNumbers&&Tt&&(rn&&pn.isDigit()||!rn&&Mc(pn))&&(Ee.atomIdsSettings.overrideID=Tt);const _r=pn.render(Ee);Ee.atomIdsSettings&&(Ee.atomIdsSettings.overrideID=void 0),_r&&((ie=Ee.atomIdsSettings)!=null&&ie.groupNumbers&&((pn.isDigit()||Mc(pn))&&(!Tt||rn!==pn.isDigit())&&(rn=pn.isDigit(),Tt=(oe=pn.id)!=null?oe:""),Tt&&(!(pn.isDigit()||Mc(pn))||!pn.hasEmptyBranch("superscript")||!pn.hasEmptyBranch("subscript"))&&(Tt="")),Te&&pn.isSelected&&_r.selected(!0),Ke.push(_r))}}if(Ke.length===0)return null;const pt=new oi(Ke,pe(we({isTight:Ee.isTight},b),{type:(ve=b.type)!=null?ve:"lift"}));return pt.isSelected=Ke.every(Tt=>Tt.isSelected),pt.wrap(Ee)}function Mc(a){return a.mode==="text"}function Yc(a){return a.map(y=>y===null?"<null>":Array.isArray(y)&&y[0]instanceof Wr?{atoms:y.map(b=>b.toJson())}:typeof y=="object"&&"group"in y?{group:y.group.map(b=>b.toJson())}:y)}var Qu=class kp extends Wr{constructor(y,b,E){super({type:"text",command:y,mode:"text",displayContainsHighlight:!0}),this.value=b,this.verbatimLatex=b,this.applyStyle(E)}static fromJson(y){return new kp(y.command,y.value,y.style)}render(y){const b=this.createBox(y);return this.caret&&(b.caret=this.caret),b}_serialize(y){var b;return(b=this.verbatimLatex)!=null?b:An("text",this.value.codePointAt(0))}};function kc(a,y){if(a.direction===y.direction){const b=a.ranges.length;if(y.ranges.length===b){let E=0;for(;E<b&&Xc(a.ranges[E],y.ranges[E])==="equal";)E++;return E===b?"equal":"different"}}return"different"}function Xc(a,y){return a[0]===y[0]&&a[1]===y[1]?"equal":"different"}function kl(a){let y=1/0,b=-1/0;for(const E of a.ranges)y=Math.min(y,E[0],E[1]),b=Math.max(b,E[0],E[1]);return[y,b]}function bu(a){return typeof a=="number"&&!Number.isNaN(a)}function Dc(a){return Array.isArray(a)&&a.length===2}function Oc(a){return a!=null&&typeof a=="object"&&"ranges"in a&&Array.isArray(a.ranges)}function Cs(a,y){const b=a.at(y);let E;if(b){E=b.mode;let ee=b.parent;for(;!E&&ee;)ee&&(E=ee.mode),ee=ee.parent}return E}function Za(a,y){if(!y)return"";if(typeof y=="string")return y;if(!a||y.after===void 0)return y.value;let b=!1,E=!1,ee=!1,ie=!1,oe=!1,ve=!1,Ee=!1,Te=!1,Ke=!1,pt=!1,Tt=!1,rn=!1,pn=!1,_r=!1,Ai=!1,Pr=a[0],ui=0;for(;Pr!=null&&Pr.type&&/^(subsup|placeholder)$/.test(Pr.type);)ui+=1,Pr=a[ui];return b=!Pr||Pr.type==="first",Pr&&(_r=Pr.mode==="text",E=!_r&&Pr.type==="mord"&&xe.test(Pr.value),ee=!_r&&Pr.type==="mord"&&/\d+$/.test(Pr.value),ie=!_r&&Pr.isFunction,oe=Pr.type==="genfrac",ve=Pr.type==="surd",Ee=Pr.type==="mbin",Te=Pr.type==="mrel",Ke=Pr.type==="mop"||Pr.type==="operator"||Pr.type==="extensible-symbol",pt=Pr.type==="mpunct"||Pr.type==="minner",Tt=Pr.type==="array",rn=Pr.type==="mopen",pn=Pr.type==="mclose"||Pr.type==="leftright",Ai=Pr.type==="space"),y.after.includes("nothing")&&b||y.after.includes("letter")&&E||y.after.includes("digit")&&ee||y.after.includes("function")&&ie||y.after.includes("frac")&&oe||y.after.includes("surd")&&ve||y.after.includes("binop")&&Ee||y.after.includes("relop")&&Te||y.after.includes("operator")&&Ke||y.after.includes("punct")&&pt||y.after.includes("array")&&Tt||y.after.includes("openfence")&&rn||y.after.includes("closefence")&&pn||y.after.includes("text")&&_r||y.after.includes("space")&&Ai?y.value:""}function xo(a,y,b){return b?Za(a,b[y]):""}var ms={"&":"\\&","%":"\\%",$:"\\$","''":"^{\\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 js(a,y){var b;let E=(b=y==null?void 0:y.format)!=null?b:"auto";return E==="auto"&&([E,a]=lc(a)),E==="ascii-math"?(a=a.replace(/\u2061/gu,""),a=a.replace(/\u3016/gu,"{"),a=a.replace(/\u3017/gu,"}"),a=a.replace(/([^\\])sinx/g,"$1\\sin x"),a=a.replace(/([^\\])cosx/g,"$1\\cos x "),a=a.replace(/\u2013/g,"-"),["ascii-math",Rl(a,{inlineShortcuts:y==null?void 0:y.inlineShortcuts})]):["latex",a]}function Rl(a,y){var b,E,ee;if(!a)return"";let ie=!1,oe;const ve=(b=y.inlineShortcuts)!=null?b:ms;if(!ie&&(a.startsWith("^")||a.startsWith("_"))&&(oe=Gl(a.slice(1),{inlineShortcuts:ve,noWrap:!0}),a=a[0]+"{"+oe.match+"}",a+=Rl(oe.rest,y),ie=!0),ie||(oe=a.match(/^(sqrt|\u221A)(.*)/),oe&&(oe=Gl(oe[2],{inlineShortcuts:ve,noWrap:!0}),a="\\sqrt{"+((E=oe.match)!=null?E:"\\placeholder{}")+"}",a+=Rl(oe.rest,y),ie=!0)),ie||(oe=a.match(/^(\\cbrt|\u221B)(.*)/),oe&&(oe=Gl(oe[2],{inlineShortcuts:ve,noWrap:!0}),a="\\sqrt[3]{"+((ee=oe.match)!=null?ee:"\\placeholder{}")+"}",a+=Rl(oe.rest,y),ie=!0)),ie||(oe=a.match(/^abs(.*)/),oe&&(oe=Gl(oe[1],{inlineShortcuts:ve,noWrap:!0}),a="\\left|"+oe.match+"\\right|",a+=Rl(oe.rest,y),ie=!0)),ie||(oe=a.match(/^["”“](.*?)["”“](.*)/),oe&&(a="\\text{"+oe[1]+"}",a+=Rl(oe[2],y),ie=!0)),ie||(oe=a.match(/^([^a-zA-Z\(\{\[\_\^\\\s"]+)(.*)/),oe&&(a=Ju(oe[1],ve),a+=Rl(oe[2],y),ie=!0)),!ie&&/^([fgh])[^a-zA-Z]/.test(a)&&(oe=Gl(a.slice(1),{inlineShortcuts:ve,noWrap:!0}),a=a[1]==="("?a[0]+"\\left("+oe.match+"\\right)":a[0]+oe.match,a+=Rl(oe.rest,y),ie=!0),ie||(oe=a.match(/^([a-zA-Z]+)(.*)/),oe&&(a=Ju(oe[1],ve),a+=Rl(oe[2],y),ie=!0)),!ie)if(oe=Gl(a,{inlineShortcuts:ve,noWrap:!0}),oe.match&&oe.rest[0]==="/"){const Ee=Gl(oe.rest.slice(1),{inlineShortcuts:ve,noWrap:!0});Ee.match&&(a="\\frac{"+oe.match+"}{"+Ee.match+"}"+Rl(Ee.rest,y)),ie=!0}else oe.match&&(a=a.startsWith("(")?"\\left("+oe.match+"\\right)"+Rl(oe.rest,y):oe.match+Rl(oe.rest,y),ie=!0);return ie||(oe=a.match(/^(\s+)(.*)$/),oe&&(a=" "+Rl(oe[2],y),ie=!0)),a}function Gl(a,y){let b="";a=a.trim();let E=a,ee=a.charAt(0),ie={"(":")","{":"}","[":"]"}[ee];if(ie){let oe=1,ve=1;for(;ve<a.length&&oe>0;)a[ve]===ee&&oe++,a[ve]===ie&&oe--,ve++;oe===0?(y.noWrap&&ee==="("?b=Rl(a.substring(1,ve-1),y):(ee==="{"&&ie==="}"&&(ee="\\{",ie="\\}"),b="\\left"+ee+Rl(a.substring(1,ve-1),y)+"\\right"+ie),E=a.slice(Math.max(0,ve))):(b=a.substring(1,ve),E="")}else{let oe=a.match(/^([a-zA-Z]+)/);if(oe){let ve=xo(null,a,y.inlineShortcuts);if(ve)return ve=ve.replace("_{#?}",""),ve=ve.replace("^{#?}",""),{match:ve,rest:a.slice(ve.length)}}if(oe=a.match(/^([a-zA-Z])/),oe)return{match:oe[1],rest:a.slice(1)};if(oe=a.match(/^(-)?\d+(\.\d*)?/),oe)return{match:oe[0],rest:a.slice(oe[0].length)};/^\\(left|right)/.test(a)||(oe=a.match(/^(\\[a-zA-Z]+)/),oe&&(E=a.slice(oe[1].length),b=oe[1]))}return{match:b,rest:E}}function Ju(a,y){let b=xo(null,a,y);return b?(b=b.replace("_{#?}",""),b=b.replace("^{#?}",""),b+=" "):b=a,b}var qu=[["\\[","\\]"],["\\(","\\)"],["$$","$$"],["$","$"],["\\begin{math}","\\end{math}"],["\\begin{displaymath}","\\end{displaymath}"],["\\begin{equation}","\\end{equation}"],["\\begin{equation*}","\\end{equation*}"]];function Ku(a){const y=a.trim();for(const b of qu)if(y.startsWith(b[0])&&y.endsWith(b[1]))return[!0,y.substring(b[0].length,y.length-b[1].length)];return[!1,a]}function lc(a){if(a=a.trim(),a.length<=1)return["latex",a];let y;return[y,a]=Ku(a),y?["latex",a]:a.startsWith("`")&&a.endsWith("`")?(a=a.substring(1,a.length-1),["ascii-math",a]):a.includes("\\")?["latex",a]:/\$.+\$/.test(a)?["latex",`\\text{${a}}`]:[void 0,a]}var xu="$$",od="$$",vd=(a,y,b)=>(qu.some(E=>y.startsWith(E[0])&&y.endsWith(E[1]))||(y=`${xu} ${y} ${od}`),y),sd=class ch{constructor(y){ch._modes[y]=this}static onPaste(y,b,E){var ee;if(!b.contentEditable&&b.userSelect==="none")return b.model.announce("plonk"),!1;if(typeof E=="string"){const oe=new DataTransfer;oe.setData("text/plain",E),E=oe}const ie=new ClipboardEvent("paste",{clipboardData:E,cancelable:!0});return(ee=b.host)!=null&&ee.dispatchEvent(ie)?ch._modes[y].onPaste(b,E):!1}static copyToClipboard(y,b){if(!y.contentEditable&&y.userSelect==="none"){y.model.announce("plonk");return}const E=y.model,ee=E.selectionIsCollapsed?[0,E.lastOffset]:kl(E.selection),ie=E.getValue(ee,b);navigator.clipboard.writeText(ie).then(()=>{},()=>y.model.announce("plonk"))}static onCopy(y,b){var E;if(!b.clipboardData)return;if(!y.contentEditable&&y.userSelect==="none"){y.model.announce("plonk");return}const ee=y.model,ie=ee.selectionIsCollapsed?[0,ee.lastOffset]:kl(ee.selection);let oe=ee.getAtoms(ie);if(oe.every(ve=>ve.mode==="text"||!ve.mode))b.clipboardData.setData("text/plain",oe.filter(ve=>ve instanceof Qu).map(ve=>ve.value).join(""));else if(oe.every(ve=>ve.mode==="latex"))b.clipboardData.setData("text/plain",ee.getAtoms(ie,{includeChildren:!0}).map(ve=>{var Ee;return(Ee=ve.value)!=null?Ee:""}).join(""));else{let ve;oe.length===1&&oe[0].verbatimLatex!==void 0?ve=oe[0].verbatimLatex:ve=ee.getValue(ie,"latex-expanded"),b.clipboardData.setData("application/x-latex",ve);try{b.clipboardData.setData("text/plain",y.options.onExport(y,ve,ie))}catch(Ee){}if(oe.length===1){const Ee=oe[0];(Ee.type==="root"||Ee.type==="group")&&(oe=Ee.body.filter(Te=>Te.type!=="first"))}try{b.clipboardData.setData("application/json+mathlive",JSON.stringify(oe.map(Ee=>Ee.toJson())))}catch(Ee){}if((E=window[Symbol.for("io.cortexjs.compute-engine")])!=null&&E.ComputeEngine){const Ee=window.MathfieldElement.computeEngine;if(Ee)try{const Te=Ee.jsonSerializationOptions;Ee.jsonSerializationOptions={metadata:["latex"]};const Ke=Ee.parse(ee.getValue(ie,"latex-unstyled"));Ee.jsonSerializationOptions=Te;const pt=JSON.stringify(Ke.json);pt&&b.clipboardData.setData("application/json",pt)}catch(Te){}}}b.preventDefault()}static insert(y,b,E={}){var ee;const ie=E.mode==="auto"?y.mode:(ee=E.mode)!=null?ee:y.mode;return ch._modes[ie].insert(y,b,E)}onPaste(y,b){return!1}insert(y,b,E){return!1}};sd._modes={};var No=sd,Rd=[{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","^"]}],ld={"\\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 ec(a){var y;return((y=a.element)==null?void 0:y.mathfield)===a}function ic(a){var y,b;return(b=(y=a.querySelector(".ML__caret"))!=null?y:a.querySelector(".ML__text-caret"))!=null?b:a.querySelector(".ML__latex-caret")}function hc(a){const y=ic(a);if(!y)return null;const b=y.getBoundingClientRect();return{x:b.right,y:b.bottom,height:b.height}}function Qc(a){var y;if(!a.parent)return"root";let b=(y=a.parent.id)!=null?y:"";return b+=typeof a.parentBranch=="string"?"-"+a.parentBranch:`-${a.parentBranch[0]}/${a.parentBranch[0]}`,b}function ud(a,y,b){if(!y)return null;const E=a.field.getBoundingClientRect(),ee=y.right-y.left,ie=y.bottom-y.top,oe=Math.ceil(y.left-E.left+a.field.scrollLeft*b),ve=Math.ceil(y.top-E.top);return{left:oe,right:oe+ee,top:ve,bottom:ve+ie}}function Jc(a){const y=a.getBoundingClientRect(),b=parseInt(getComputedStyle(a).marginRight),E={top:y.top-1,bottom:y.bottom,left:y.left,right:y.right-1+b};if(a.children.length===0||a.tagName.toUpperCase()==="SVG")return E;for(const ee of a.children)if(ee.nodeType===1&&"atomId"in ee.dataset&&!ee.classList.contains("pstrut")){const ie=Jc(ee);E.left=Math.min(E.left,ie.left),E.right=Math.max(E.right,ie.right),E.top=Math.min(E.top,ie.top),E.bottom=Math.max(E.bottom,ie.bottom)}return E}function Ac(a,y){var b,E;if(!y.id)return null;let ee=(E=(b=a.atomBoundsCache)==null?void 0:b.get(y.id))!=null?E:null;if(ee!==null)return ee;const ie=a.field.querySelector(`[data-atom-id="${y.id}"]`);return ee=ie?Jc(ie):null,a.atomBoundsCache&&(ee?a.atomBoundsCache.set(y.id,ee):a.atomBoundsCache.delete(y.id)),ee!=null?ee:null}function Bd(a,y,b){const E=new Map;for(const ee of a.model.getAtoms(y,{includeChildren:!0})){if(b!=null&&b.excludeAtomsWithBackground&&ee.style.backgroundColor)continue;const ie=a.field,oe=ie.offsetWidth;let Ee=Math.floor(ie.getBoundingClientRect().width)/oe;Ee=isNaN(Ee)?1:Ee;const Te=ud(a,Ac(a,ee),Ee);if(Te){const Ke=Qc(ee);if(E.has(Ke)){const pt=E.get(Ke);E.set(Ke,{left:Math.min(pt.left,Te.left),right:Math.max(pt.right,Te.right),top:Math.min(pt.top,Te.top),bottom:Math.max(pt.bottom,Te.bottom)})}else E.set(Ke,Te)}}return[...E.values()]}function Ts(a,y){return a.model.selection.ranges.reduce((b,E)=>b.concat(...Bd(a,E,y)),[])}function rl(a,y){return a==="*"||y==="none"?!0:y==="same-origin"?!window.origin||a===window.origin:typeof y=="function"?y(a):!1}function Iu(a){let y=0,b=0;const E=a.offsetWidth,ee=a.offsetHeight;for(;a instanceof HTMLElement;)y+=a.offsetTop,b+=a.offsetLeft,a=a.offsetParent;return new DOMRect(b,y,E,ee)}var pc=`@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;
}
`,Is=`.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);
}
`,yd=`#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);
}
`,bd=`/* 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;
}
`,bc=`/* 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);*/
}
`,xd=`.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));
}
`,Rc=`: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;
}
`,dh=`.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;
}
`,vl;function qc(a){let y="";switch(a){case"mathfield-element":y=`
: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":y=Is;break;case"mathfield":y=pc;break;case"environment-popover":y=yd;break;case"suggestion-popover":y=bd;break;case"keystroke-caption":y=bc;break;case"virtual-keyboard":y=xd;break;case"ui":y=Rc;break;case"menu":y=dh;break;default:debugger}return y}function cd(a){return vl||(vl={}),vl[a]||(vl[a]=new CSSStyleSheet,vl[a].replaceSync(qc(a))),vl[a]}var Lc;function uc(a){var y;if(!("adoptedStyleSheets"in document)){if(window.document.getElementById(`mathlive-style-${a}`))return;const b=window.document.createElement("style");b.id=`mathlive-style-${a}`,b.append(window.document.createTextNode(qc(a))),window.document.head.appendChild(b);return}if(Lc||(Lc={}),((y=Lc[a])!=null?y:0)!==0)Lc[a]+=1;else{const b=cd(a);document.adoptedStyleSheets=[...document.adoptedStyleSheets,b],Lc[a]=1}}function x(a){if("adoptedStyleSheets"in document&&Lc!=null&&Lc[a]&&(Lc[a]-=1,Lc[a]<=0)){const y=vl[a];document.adoptedStyleSheets=document.adoptedStyleSheets.filter(b=>b!==y)}}var z=class Dp extends Wr{constructor(y){var b;super(pe(we({},y),{type:"accent",body:(b=y.body)!=null?b:void 0})),y.accentChar?this.accent=y.accentChar:this.svgAccent=y==null?void 0:y.svgAccent,this.skipBoundary=!0,this.captureSelection=!0}static fromJson(y){return new Dp(y)}toJson(){return pe(we({},super.toJson()),{accentChar:this.accent,svgAccent:this.svgAccent})}render(y){var b;const E=new Fa({parent:y,mathstyle:"cramp"},this.style),ee=(b=Wr.createBox(E,this.body))!=null?b:new oi("\u25A2",{style:this.style});let ie=0;!this.hasEmptyBranch("body")&&this.body.length===2&&this.body[1].isCharacterBox()&&(ie=ee.skew);let oe=Math.min(ee.height,$a),ve;if(this.svgAccent)ve=su(this.svgAccent),oe=E.metrics.bigOpSpacing1-oe;else if(this.accent){const Te=new oi(this.accent,{fontFamily:"Main-Regular"});Te.italic=0;const Ke=this.accent===8407?" ML__accent-vec":"";ve=new oi(new oi(Te),{classes:"ML__accent-body"+Ke})}ve=new Io({shift:0,children:[{box:new oi(ee)},-oe,{box:ve,marginLeft:ee.left+2*ie,classes:["ML__center"]}]});const Ee=new oi(ve,{type:"lift"});return this.caret&&(Ee.caret=this.caret),this.bind(E,Ee.wrap(E)),this.attachSupsub(E,{base:Ee})}},re={"(":")","{":"}","[":"]","|":"|","\\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"},ne=Object.fromEntries(Object.entries(re).map(([a,y])=>[y,a]));function ae(a){var y;return(y={"[":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}[a])!=null?y:a.codePointAt(0)}function he(a,y,b,E){var ee;const oe=new oi(ae(a),{fontFamily:"Main-Regular",isSelected:E.isSelected,classes:"ML__small-delim "+((ee=E.classes)!=null?ee:"")}).wrap(y);return b&&oe.setTop((1-y.scalingFactor)*ca),oe}function Pe(a,y,b,E,ee){var ie,oe;const ve=new Fa({parent:E,mathstyle:"textstyle"},ee==null?void 0:ee.style),Ee=new oi(ae(a),{fontFamily:`Size${y}-Regular`,isSelected:ee.isSelected,classes:((ie=ee.classes)!=null?ie:"")+` ML__delim-size${y}`,type:(oe=ee.type)!=null?oe:"ignore"}).wrap(ve);return b&&Ee.setTop((1-ve.scalingFactor)*ca),Ee}function Ze(a,y,b,E,ee){var ie;let oe,ve,Ee,Te;oe=Ee=Te=ae(a),ve=null;let Ke="Size1-Regular";a==="\\vert"||a==="\\lvert"||a==="\\rvert"||a==="\\mvert"||a==="\\mid"?Ee=oe=Te=8739:a==="\\Vert"||a==="\\lVert"||a==="\\rVert"||a==="\\mVert"||a==="\\|"?Ee=oe=Te=8741:a==="\\uparrow"?Ee=Te=9168:a==="\\Uparrow"?Ee=Te=8214:a==="\\downarrow"?oe=Ee=9168:a==="\\Downarrow"?oe=Ee=8214:a==="\\updownarrow"?(oe=8593,Ee=9168,Te=8595):a==="\\Updownarrow"?(oe=8657,Ee=8214,Te=8659):a==="["||a==="\\lbrack"?(oe=9121,Ee=9122,Te=9123,Ke="Size4-Regular"):a==="]"||a==="\\rbrack"?(oe=9124,Ee=9125,Te=9126,Ke="Size4-Regular"):a==="\\lfloor"||a==="\u230A"?(Ee=oe=9122,Te=9123,Ke="Size4-Regular"):a==="\\lceil"||a==="\u2308"?(oe=9121,Ee=Te=9122,Ke="Size4-Regular"):a==="\\rfloor"||a==="\u230B"?(Ee=oe=9125,Te=9126,Ke="Size4-Regular"):a==="\\rceil"||a==="\u2309"?(oe=9124,Ee=Te=9125,Ke="Size4-Regular"):a==="("||a==="\\lparen"?(oe=9115,Ee=9116,Te=9117,Ke="Size4-Regular"):a===")"||a==="\\rparen"?(oe=9118,Ee=9119,Te=9120,Ke="Size4-Regular"):a==="\\{"||a==="\\lbrace"?(oe=9127,ve=9128,Te=9129,Ee=9130,Ke="Size4-Regular"):a==="\\}"||a==="\\rbrace"?(oe=9131,ve=9132,Te=9133,Ee=9130,Ke="Size4-Regular"):a==="\\lgroup"||a==="\u27EE"?(oe=9127,Te=9129,Ee=9130,Ke="Size4-Regular"):a==="\\rgroup"||a==="\u27EF"?(oe=9131,Te=9133,Ee=9130,Ke="Size4-Regular"):a==="\\lmoustache"||a==="\u23B0"?(oe=9127,Te=9133,Ee=9130,Ke="Size4-Regular"):a==="\\rmoustache"||a==="\u23B1"?(oe=9131,Te=9129,Ee=9130,Ke="Size4-Regular"):a==="\\surd"?(oe=57345,Te=9143,Ee=57344,Ke="Size4-Regular"):a==="\\ulcorner"?(oe=9484,Ee=Te=32):a==="\\urcorner"?(oe=9488,Ee=Te=32):a==="\\llcorner"?(Te=9492,Ee=oe=32):a==="\\lrcorner"&&(oe=9496,Ee=oe=32);const pt=Li(oe,Ke),Tt=pt.height+pt.depth,rn=Li(Ee,Ke),pn=rn.height+rn.depth,_r=Li(Te,Ke),Ai=_r.height+_r.depth;let Pr=0,ui=1;if(ve!==null){const Pu=Li(ve,Ke);Pr=Pu.height+Pu.depth,ui=2}const Pi=Tt+Ai+Pr,pi=Math.max(0,Math.ceil((y-Pi)/(ui*pn))),Na=Pi+pi*ui*pn;let uo=ca;b&&(uo=uo*E.scalingFactor);const Ya=Na/2-uo,Ns=.008,hl=[];hl.push({box:new oi(Te,{fontFamily:Ke})}),hl.push(-Ns);const Wi=new oi(Ee,{fontFamily:Ke});if(ve===null)for(let Pu=0;Pu<pi;Pu++)hl.push({box:Wi});else{for(let Pu=0;Pu<pi;Pu++)hl.push({box:Wi});hl.push(-Ns),hl.push({box:new oi(ve,{fontFamily:Ke})}),hl.push(-Ns);for(let Pu=0;Pu<pi;Pu++)hl.push({box:Wi})}hl.push(-Ns),hl.push({box:new oi(oe,{fontFamily:Ke})});let vc="";Ke==="Size1-Regular"?vc=" delim-size1":Ke==="Size4-Regular"&&(vc=" delim-size4");const Zc=new Io({bottom:Ya,children:hl},{classes:vc});return new oi(Zc,pe(we({},ee!=null?ee:{}),{classes:((ie=ee==null?void 0:ee.classes)!=null?ie:"")+" ML__delim-mult"}))}var Ye=new Set(["(",")","\\lparen","\\rparen","[","]","\\lbrack","\\rbrack","\\{","\\}","\\lbrace","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","\\surd","\u230A","\u230B","\u2308","\u2309"]),ht=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\mvert","\\mid","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache","\u27EE","\u27EF","\u23B0","\u23B1"]),tn=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),bn=[0,1.2,1.8,2.4,3];function wr(a,y,b,E){return a===void 0||a==="."?La(b,E.classes):(a==="<"||a==="\\lt"||a==="\u27E8"?a="\\langle":(a===">"||a==="\\gt"||a==="\u27E9")&&(a="\\rangle"),Ye.has(a)||tn.has(a)?Pe(a,y,!1,b,E):ht.has(a)?Ze(a,bn[y],!1,b,E):(console.assert(!1,"Unknown delimiter '"+a+"'"),null))}var dr=[{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}],ri=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"stack"}],vi=[{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 zi(a){return a.type==="small"?"Main-Regular":a.type==="large"?"Size"+a.size+"-Regular":(console.assert(a.type==="stack"),"Size4-Regular")}function fa(a,y,b,E){const ee={"-4":0,"-3":1,0:2}[E.mathstyle.sizeDelta];for(let ie=ee;ie<b.length&&b[ie].type!=="stack";ie++){const oe=Li(a,zi(b[ie]));if(oe.defaultMetrics)return{type:"small",mathstyle:"scriptstyle"};let ve=oe.height+oe.depth;if(b[ie].type==="small"&&(b[ie].mathstyle==="scriptscriptstyle"?ve*=Math.max(ea[Math.max(1,E.size-2)],E.minFontScale):b[ie].mathstyle==="scriptstyle"&&(ve*=Math.max(ea[Math.max(1,E.size-1)],E.minFontScale))),ve>y)return b[ie]}return b[b.length-1]}function ka(a,y,b,E,ee,ie){if(!y||y.length===0||y===".")return La(ee);y==="<"||y==="\\lt"?y="\\langle":(y===">"||y==="\\gt")&&(y="\\rangle");let oe;tn.has(y)?oe=dr:Ye.has(y)?oe=vi:oe=ri;const ve=fa(ae(y),b,oe,ee),Ee=new Fa({parent:ee,mathstyle:ve.mathstyle},ie==null?void 0:ie.style);return ve.type==="small"?he(y,Ee,E,pe(we({},ie),{type:a})):ve.type==="large"?Pe(y,ve.size,E,Ee,pe(we({},ie),{type:a})):(console.assert(ve.type==="stack"),Ze(y,b,E,Ee,pe(we({},ie),{type:a})))}function qi(a,y,b,E,ee,ie){if(y===".")return La(ee,ie==null?void 0:ie.classes);const oe=ca*ee.scalingFactor,ve=901,Ee=5/va,Te=Math.max(b-oe,E+oe),Ke=Math.max(Te/500*ve,2*Te-Ee);return ka(a,y,Ke,!0,ee,ie)}function La(a,y){const b=new oi(null,{classes:" nulldelimiter "+(y!=null?y:""),type:"ignore"});return b.width=a.getRegisterAsEm("nulldelimiterspace"),b.wrap(new Fa({parent:a,mathstyle:"textstyle"}))}var mo=class Ap extends Wr{constructor(y){var b;super({type:"placeholder",command:"\\placeholder",mode:(b=y==null?void 0:y.mode)!=null?b:"math",style:y==null?void 0:y.style}),this.captureSelection=!0}static fromJson(y){return new Ap(y)}toJson(){return super.toJson()}render(y){let b;return this.value=y.placeholderSymbol,typeof y.renderPlaceholder=="function"?b=y.renderPlaceholder(y):b=this.createBox(y),this.caret&&(b.classes+=" ML__placeholder-selected"),b}_serialize(y){return y.skipPlaceholders?"":"\\placeholder{}"}},So=["matrix","matrix*","pmatrix","pmatrix*","bmatrix","bmatrix*","Bmatrix","Bmatrix*","vmatrix","vmatrix*","Vmatrix","Vmatrix*"],gs=["cases","dcases","rcases"],yl=["align","align*","aligned","gather","gathered","split"],Su=["array","subequations","eqnarray"];function Kl(a){return Su.concat(yl).concat(gs).concat(So).includes(a)}function Hu(a){return So.includes(a)}function Zu(a){return gs.includes(a)}function cu(a){return yl.includes(a)}function Wu(a,y,b){let E=0;for(const Te of b)"align"in Te&&(E+=1);let ee=0;const ie=[];for(const Te of y){let Ke=0;for(ee=Math.max(ee,Math.min(Te.length,E));Ke<Te.length;){const pt=[],Tt=Math.min(Te.length,Ke+E);for(;Ke<Tt;){const rn=Te[Ke];rn.length===0?pt.push([new Wr({type:"first",mode:a.mode})]):rn[0].type!=="first"?pt.push([new Wr({type:"first",mode:a.mode}),...rn]):(console.assert(!rn.slice(1).some(pn=>pn.type==="first")),pt.push(rn)),Ke+=1}ie.push(pt)}}ie.length>0&&ie[ie.length-1].length===1&&ie[ie.length-1][0].length===1&&ie[ie.length-1][0][0].type==="first"&&ie.pop();const oe=[];for(const Te of ie){if(Te.length!==ee)for(let Ke=Te.length;Ke<ee;Ke++)Te.push([new Wr({type:"first",mode:a.mode}),new mo]);oe.push(Te)}let ve=0,Ee=0;for(const Te of oe){Ee=0;for(const Ke of Te){for(const pt of Ke)pt.parent=a,pt.parentBranch=[ve,Ee];Ee+=1}ve+=1}return a.isDirty=!0,oe}var Qo=class Lp extends Wr{constructor(y,b,E,ee={}){var ie;super({type:"array"}),this.environmentName=y,this.rowGaps=E,ee.mathstyleName&&(this.mathstyleName=ee.mathstyleName),ee.columns&&(ee.columns.length===0?this.colFormat=[{align:"l"}]:this.colFormat=ee.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=Wu(this,b,this.colFormat),ee.leftDelim&&(this.leftDelim=ee.leftDelim),ee.rightDelim&&(this.rightDelim=ee.rightDelim),ee.arraycolsep!==void 0&&(this.arraycolsep=ee.arraycolsep),this.colSeparationType=ee.colSeparationType,ee.arraystretch!==void 0&&(this.arraystretch=ee.arraystretch),this.minColumns=(ie=ee.minColumns)!=null?ie:1}static fromJson(y){return new Lp(y.environmentName,y.array,y.rowGaps,y)}toJson(){const y=pe(we({},super.toJson()),{environmentName:this.environmentName,array:this.array.map(b=>b.map(E=>E.map(ee=>ee.toJson()))),rowGaps:this.rowGaps,columns:this.colFormat,colSeparationType:this.colSeparationType});return this.arraystretch!==void 0&&(y.arraystretch=this.arraystretch),this.arraycolsep!==void 0&&(y.arraycolsep=this.arraycolsep),this.leftDelim&&(y.leftDelim=this.leftDelim),this.rightDelim&&(y.rightDelim=this.rightDelim),y}branch(y){var b;if(Ol(y))return(b=this.array[y[0]][y[1]])!=null?b:void 0}createBranch(y){var b;return Ol(y)?(this.isDirty=!0,(b=this.branch(y))!=null?b:[]):[]}get rowCount(){return this.array.length}get colCount(){return this.array[0].length}get maxColumns(){return this.colFormat.filter(y=>!!y.align).length}removeBranch(y){if(Ds(y))return super.removeBranch(y);const b=this.branch(y);return this.array[y[0]][y[1]]=void 0,b.forEach(E=>{E.parent=void 0,E.parentBranch=void 0}),console.assert(b[0].type==="first"),b.shift(),this.isDirty=!0,b}get hasChildren(){return this.children.length>0}get children(){const y=[];for(const b of this.array)for(const E of b)if(E)for(const ee of E)y.push(...ee.children),y.push(ee);return[...y,...super.children]}render(y){var b,E,ee,ie,oe,ve;const Ee=new Fa({parent:y,mathstyle:this.mathstyleName},this.style),Te=Ee.getRegisterAsEm("arrayrulewidth"),Ke=Ee.getRegisterAsEm("arraycolsep"),pt=Ee.getRegisterAsEm("doublerulesep"),Tt=(E=(b=this.arraystretch)!=null?b:Ee.getRegisterAsNumber("arraystretch"))!=null?E:1;let rn=typeof this.arraycolsep=="number"?this.arraycolsep:Ke;this.colSeparationType==="small"&&(rn=.2778*(new Fa({parent:y,mathstyle:"scriptstyle"}).scalingFactor/y.scalingFactor));const pn=Tt*ma,_r=.7*pn,Ai=.3*pn;let Pr=0;const ui=[];let Pi=0;const pi=this.array.length;for(let xl=0;xl<pi;++xl){const ru=this.array[xl];Pi=Math.max(Pi,ru.length);const Tu=new Fa({parent:Ee,mathstyle:this.mathstyleName},this.style);let Wc=_r/Tu.scalingFactor,Uc=Ai/Tu.scalingFactor;const Vc={cells:[],height:0,depth:0,pos:0};for(const Ic of ru){const e0=(ee=Wr.createBox(Tu,Ic,{type:"ignore"}))!=null?ee:new oi(null,{type:"ignore"});Uc=Math.max(Uc,e0.depth),Wc=Math.max(Wc,e0.height),Vc.cells.push(e0)}let jc=(ie=qs(this.rowGaps[xl]))!=null?ie:0;jc>0&&(jc+=Ai,Uc=Math.max(Uc,jc),jc=0),xl<pi-1&&!Hu(this.environmentName)&&this.environmentName!=="cases"&&this.environmentName!=="array"&&(Uc+=Ee.getRegisterAsEm("jot")),Vc.height=Wc,Vc.depth=Uc,Pr+=Wc,Vc.pos=Pr,Pr+=Uc+jc,ui.push(Vc)}const Na=Pr/2+ca,uo=[];for(let xl=0;xl<Pi;xl++){const ru=[];for(const Tu of ui){const Wc=Tu.cells[xl];Wc.depth=Tu.depth,Wc.height=Tu.height,ru.push({box:Wc,shift:Tu.pos-Na})}ru.length>0&&uo.push(new Io({individualShift:ru}))}const Ya=[];let Ns=!1,hl=!1,Wi=0,vc=!this.leftDelim;const{colFormat:Zc}=this;for(const xl of Zc){if("align"in xl&&Wi>=uo.length)break;if("align"in xl)Ns?Ya.push(Hl(2*rn)):(hl||vc)&&Ya.push(Hl(rn)),Ya.push(new oi(uo[Wi],{classes:"col-align-"+xl.align})),Wi++,Ns=!0,hl=!1,vc=!1;else if("gap"in xl){if(typeof xl.gap=="number")Ya.push(Hl(xl.gap));else{const ru=Xl(y,ui,Na,xl.gap);ru&&Ya.push(ru)}Ns=!1,hl=!1,vc=!1}else if("separator"in xl){const ru=new oi(null,{classes:"vertical-separator"});ru.height=Pr,ru.setStyle("height",Pr,"em"),ru.setStyle("border-right",`${Te}em ${xl.separator} currentColor`),ru.setStyle("vertical-align",-(Pr-Na),"em");let Tu=0;hl?Tu=pt-Te:Ns&&(Tu=rn-Te),ru.left=Tu,Ya.push(ru),Ns=!1,hl=!0,vc=!1}}Ns&&!this.rightDelim&&Ya.push(Hl(rn));const Cc=new oi(Ya,{classes:"mtable"});if((!this.leftDelim||this.leftDelim===".")&&(!this.rightDelim||this.rightDelim==="."))return this.caret&&(Cc.caret=this.caret),this.bind(y,Cc);const Pu=Cc.height,yc=Cc.depth,oc=this.bind(y,new oi([this.bind(y,qi("open",(oe=this.leftDelim)!=null?oe:".",Pu,yc,Ee,{isSelected:this.isSelected})),Cc,this.bind(y,qi("close",(ve=this.rightDelim)!=null?ve:".",Pu,yc,Ee,{isSelected:this.isSelected}))],{type:"ord"}));return oc?(oc.setStyle("display","inline-block"),this.caret&&(oc.caret=this.caret),this.bind(y,this.attachSupsub(y,{base:oc}))):null}_serialize(y){var b;const E=[];if(this.environmentName==="lines"?E.push("{\\displaylines"):E.push(`\\begin{${this.environmentName}}`),this.environmentName==="array"){if(E.push("{"),this.colFormat!==void 0)for(const ee of this.colFormat)"align"in ee&&typeof ee.align=="string"?E.push(ee.align):"separator"in ee&&ee.separator==="solid"?E.push("|"):"separator"in ee&&ee.separator==="dashed"&&E.push(":");E.push("}")}for(let ee=0;ee<this.array.length;ee++){for(let ie=0;ie<this.array[ee].length;ie++)ie>0&&E.push(" & "),E.push(Wr.serialize(this.array[ee][ie],y));if(ee<this.array.length-1){const ie=this.rowGaps[ee];ie!=null&&ie.dimension?E.push(`\\\\[${ie.dimension} ${(b=ie.unit)!=null?b:"pt"}] `):E.push("\\\\ ")}}return this.environmentName==="lines"?E.push("}"):E.push(`\\end{${this.environmentName}}`),vo(E)}getCell(y,b){return this.array[y][b]}setCell(y,b,E){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.array[y][b]!==void 0);for(const ie of this.array[y][b])ie.parent=void 0,ie.parentBranch=void 0;let ee=E;(E.length===0||E[0].type!=="first")&&(ee=[new Wr({type:"first",mode:this.mode}),...E]),this.array[y][b]=ee;for(const ie of ee)ie.parent=this,ie.parentBranch=[y,b];this.isDirty=!0}addRowBefore(y){console.assert(this.type==="array"&&Array.isArray(this.array));const b=[];for(let E=0;E<this.colCount;E++)b.push(Yl(this));this.array.splice(y,0,b);for(let E=y;E<this.rowCount;E++)for(let ee=0;ee<this.colCount;ee++){const ie=this.array[E][ee];if(ie)for(const oe of ie)oe.parentBranch=[E,ee]}this.isDirty=!0}addRowAfter(y){console.assert(this.type==="array"&&Array.isArray(this.array));const b=[];for(let E=0;E<this.colCount;E++)b.push(Yl(this));this.array.splice(y+1,0,b);for(let E=y+1;E<this.rowCount;E++)for(let ee=0;ee<this.colCount;ee++){const ie=this.array[E][ee];if(ie)for(const oe of ie)oe.parentBranch=[E,ee]}this.isDirty=!0}removeRow(y){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.rowCount>y);const b=this.array.splice(y,1);for(const E of b)for(const ee of E)if(ee)for(const ie of ee)ie.parent=void 0,ie.parentBranch=void 0;for(let E=y;E<this.rowCount;E++)for(let ee=0;ee<this.colCount;ee++){const ie=this.array[E][ee];if(ie)for(const oe of ie)oe.parentBranch=[E,ee]}this.isDirty=!0}addColumnBefore(y){console.assert(this.type==="array"&&Array.isArray(this.array));for(const b of this.array)b.splice(y,0,Yl(this));for(let b=0;b<this.rowCount;b++)for(let E=y;E<this.colCount;E++){const ee=this.array[b][E];if(ee)for(const ie of ee)ie.parentBranch=[b,E]}this.isDirty=!0}addColumnAfter(y){console.assert(this.type==="array"&&Array.isArray(this.array));for(const b of this.array)b.splice(y+1,0,Yl(this));for(let b=0;b<this.rowCount;b++)for(let E=y+1;E<this.colCount;E++){const ee=this.array[b][E];if(ee)for(const ie of ee)ie.parentBranch=[b,E]}this.isDirty=!0}addColumn(){this.addColumnAfter(this.colCount-1)}removeColumn(y){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.colCount>y);for(const b of this.array){const E=b.splice(y,1);for(const ee of E)if(ee)for(const ie of ee)ie.parent=void 0,ie.parentBranch=void 0}for(let b=0;b<this.rowCount;b++)for(let E=y;E<this.colCount;E++){const ee=this.array[b][E];if(ee)for(const ie of ee)ie.parentBranch=[b,E]}this.isDirty=!0}get cells(){const y=[];for(const b of this.array)for(const E of b)E&&y.push(E.filter(ee=>ee.type!=="first"));return y}};function Yl(a){const y=new Wr({type:"first",mode:a.mode});y.parent=a;const b=new mo;return b.parent=a,[y,b]}function Hl(a){const y=new oi(null,{classes:"arraycolsep"});return y.width=a,y}function Xl(a,y,b,E){if(!E)return null;const ee=[];for(const ie of y){const oe=Wr.createBox(a,E,{type:"ignore"});oe&&(oe.depth=ie.depth,oe.height=ie.height,ee.push({box:oe,shift:ie.pos-b}))}return new Io({individualShift:ee}).wrap(a)}var tu=class Pp extends Wr{constructor(y){super({mode:y.mode,command:y.command,style:y.style,body:y.body,type:"box"}),this.framecolor=y.framecolor,this.backgroundcolor=y.backgroundcolor,this.padding=y.padding,this.offset=y.offset,this.border=y.border}static fromJson(y){return new Pp(y)}toJson(){return pe(we({},super.toJson()),{framecolor:this.framecolor,backgroundcolor:this.backgroundcolor,padding:this.padding,offset:this.offset,border:this.border})}render(y){var b,E,ee,ie;const oe=Wr.createBox(y,this.body,{type:"lift"});if(!oe)return null;const ve=y.toEm((b=this.offset)!=null?b:{dimension:0});oe.depth+=ve,oe.setStyle("display","inline-block"),oe.setStyle("position","relative"),oe.setStyle("height",Math.floor(100*oe.height+oe.depth)/100,"em"),oe.setStyle("vertical-align",-Math.floor(100*oe.height)/100,"em");const Ee=new Fa({parent:y},this.style),Te=Ee.toEm((E=this.padding)!=null?E:{register:"fboxsep"}),Ke=new oi(null,{classes:"ML__box"});Ke.height=oe.height+Te,Ke.depth=oe.depth+Te,Ke.setStyle("box-sizing","border-box"),Ke.setStyle("position","absolute"),Ke.setStyle("top",-Te+.3,"em"),Ke.setStyle("left",0),Ke.setStyle("height",Ke.height+Ke.depth,"em"),Ke.setStyle("width","100%"),this.backgroundcolor&&Ke.setStyle("background-color",(ee=Ee.toColor(this.backgroundcolor))!=null?ee:"transparent"),this.framecolor&&Ke.setStyle("border",`${Ee.getRegisterAsEm("fboxrule",2)}em solid ${(ie=Ee.toColor(this.framecolor))!=null?ie:"black"}`),this.border&&Ke.setStyle("border",this.border);const pt=new oi([Ke,oe],{type:"lift"});return pt.setStyle("display","inline-block"),pt.setStyle("position","relative"),pt.setStyle("line-height",0),pt.height=oe.height+Te+(ve>0?ve:0),pt.depth=oe.depth+Te+(ve<0?-ve:0),pt.setStyle("padding-left",Te,"em"),pt.setStyle("padding-right",Te,"em"),pt.setStyle("height",Math.floor(100*(oe.height+oe.depth+2*Te+Math.abs(ve)))/100,"em"),pt.setStyle("margin-top",-Te,"em"),pt.setStyle("top",Math.floor(100*(oe.depth-oe.height+2*Te-ve))/100,"em"),pt.setStyle("vertical-align",Math.floor(100*(oe.depth+2*Te))/100,"em"),this.caret&&(pt.caret=this.caret),this.attachSupsub(y,{base:pt})}_serialize(y){return y.skipStyles?vo([this.bodyToLatex(y),this.supsubToLatex(y)]):super._serialize(y)}},ed=class Tp extends Wr{constructor(y,b){var E;super({type:"composition",mode:(E=b==null?void 0:b.mode)!=null?E:"math",value:y})}static fromJson(y){return new Tp(y.value,y)}toJson(){return super.toJson()}get computedStyle(){return{}}render(y){const b=new oi(this.value,{classes:"ML__composition",type:"composition"});return this.bind(y,b),this.caret&&(b.caret=this.caret),b}_serialize(y){return""}},tc=class Ip extends Wr{constructor(y){super({type:"error",value:y,command:y,mode:"math"}),this.verbatimLatex=y}static fromJson(y){return new Ip(y.command)}toJson(){return super.toJson()}render(y){const b=this.createBox(y,{classes:"ML__error"});return this.caret&&(b.caret=this.caret),b}},Du=class Np extends Wr{constructor(y,b,E){super({type:"group",mode:b,style:E}),this.body=y,this.boxType=y.length>1?"ord":"ignore",this.skipBoundary=!0,this.displayContainsHighlight=!1,y&&y.length===1&&y[0].command===","&&(this.captureSelection=!0)}static fromJson(y){return new Np(y.body,y.mode,y.style)}render(y){const b=Wr.createBox(y,this.body,{type:this.boxType});return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=At(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):`{${this.bodyToLatex(y)}}`}},Gs=class Op extends Wr{constructor(y,b,E){super({type:"leftright",style:E.style,displayContainsHighlight:!0}),this.variant=y,this.body=b,this.leftDelim=E.leftDelim,this.rightDelim=E.rightDelim}static fromJson(y){var b;return new Op((b=y.variant)!=null?b:"",y.body,y)}toJson(){const y=super.toJson();return this.variant&&(y.variant=this.variant),this.leftDelim&&(y.leftDelim=this.leftDelim),this.rightDelim&&(y.rightDelim=this.rightDelim),y}_serialize(y){var b,E;const ee=this.matchingRightDelim();return this.variant==="left...right"?vo(["\\left",(b=this.leftDelim)!=null?b:".",this.bodyToLatex(y),"\\right",ee]):this.variant==="mleft...mright"?vo(["\\mleft",(E=this.leftDelim)!=null?E:".",this.bodyToLatex(y),"\\mright",ee]):vo([!this.leftDelim||this.leftDelim==="."?"":this.leftDelim,this.bodyToLatex(y),ee])}matchingRightDelim(){var y,b;if(this.rightDelim&&this.rightDelim!=="?")return this.rightDelim;const E=(y=this.leftDelim)!=null?y:".";return(b=re[E])!=null?b:E}render(y){var b,E;const ee=new Fa({parent:y},this.style);console.assert(this.body!==void 0);const ie=new Fa({parent:y,mathstyle:"textstyle"},this.style),oe=(b=Wr.createBox(ee,this.body,{type:"inner"}))!=null?b:new oi(null,{type:"inner"}),ve=oe.height/ie.scalingFactor,Ee=oe.depth/ie.scalingFactor,Te=[];if(this.leftDelim&&Te.push(this.bind(ie,qi("open",this.leftDelim,ve,Ee,ie,{isSelected:this.isSelected,classes:"ML__open"+(this.containsCaret?" ML__contains-caret":""),mode:this.mode,style:this.style}))),oe&&(mu(oe.children,this,ee,ve,Ee),Te.push(oe)),this.rightDelim){let rn=this.containsCaret?" ML__contains-caret":"",pn=this.rightDelim;pn==="?"&&(ee.smartFence?(pn=this.matchingRightDelim(),rn+=" ML__smart-fence__close"):pn="."),Te.push(this.bind(ie,qi("close",pn,ve,Ee,ie,{isSelected:this.isSelected,classes:rn+" ML__close",mode:this.mode,style:this.style})))}let Ke=this.variant==="mleft...mright";const pt=this.leftSibling;pt&&(!Ke&&pt.isFunction&&(Ke=!0),!Ke&&pt.type==="subsup"&&((E=pt.leftSibling)!=null&&E.isFunction)&&(Ke=!0));const Tt=new oi(Te,{type:Ke?"close":"inner",classes:"left-right"});return Tt.setStyle("margin-top",`${-oe.depth}em`),Tt.setStyle("height",`${oe.height+oe.depth}em`),this.caret&&(Tt.caret=this.caret),this.bind(ee,Tt.wrap(ee))}};function mu(a,y,b,E,ee){if(a)for(let ie=0;ie<a.length;ie++){const oe=a[ie];oe.type==="middle"?(a[ie]=y.bind(b,qi("inner",oe.value,E,ee,b,{isSelected:y.isSelected})),a[ie].caret=oe.caret,a[ie].isSelected=oe.isSelected,a[ie].cssId=oe.cssId,a[ie].htmlData=oe.htmlData,a[ie].htmlStyle=oe.htmlStyle,a[ie].attributes=oe.attributes,a[ie].cssProperties=oe.cssProperties):oe.children&&mu(oe.children,y,b,E,ee)}}var Fd=class Rp extends Wr{constructor(y,b){var E;super({type:"macro",command:y,style:b.style}),this.body=b.body,b.captureSelection===void 0?b.args?this.captureSelection=!1:this.captureSelection=!0:this.captureSelection=b.captureSelection,this.macroArgs=b.args,this.expand=(E=b.expand)!=null?E:!1}static fromJson(y){return new Rp(y.command,y)}toJson(){const y=super.toJson();return this.expand&&(y.expand=!0),this.captureSelection!==void 0&&(y.captureSelection=this.captureSelection),this.macroArgs&&(y.args=this.macroArgs),y}_serialize(y){var b;return y.expandMacro&&this.expand?this.bodyToLatex(y):this.command+((b=this.macroArgs)!=null?b:"")}render(y){const b=Wr.createBox(y,this.body);return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}},Pc=class Bp extends Wr{constructor(){super({type:"macro-argument"})}static fromJson(y){return new Bp}toJson(){return super.toJson()}_serialize(y){return""}render(y){return null}},Bc=class Fp extends Wr{constructor(y,b,E=!1,ee,ie){var oe;super({type:"prompt",mode:(oe=ie==null?void 0:ie.mode)!=null?oe:"math",style:ie==null?void 0:ie.style,command:"\\placeholder"}),this.body=ee,this.correctness=b,this.placeholderId=y,this.locked=E,this.captureSelection=this.locked}static fromJson(y){return new Fp(y.placeholderId,y.correctness,y.locked,y.body,y)}toJson(){const y=super.toJson();return this.placeholderId&&(y.placeholderId=this.placeholderId),this.body||delete y.body,this.body&&(y.body=this.body.filter(b=>b.type!=="first").map(b=>b.toJson())),this.correctness&&(y.correctness=this.correctness),y.locked=this.locked,y}render(y){const b=new Fa({parent:y}),E=b.getRegisterAsEm("fboxsep"),ee=E,ie=E,oe=Wr.createBox(y,this.body);if(!oe)return null;oe.height||(oe.height=b.metrics.xHeight),oe.setStyle("vertical-align",-oe.height,"em"),this.correctness==="correct"?oe.setStyle("color","var(--correct-color, var(--ML__correct-color))"):this.correctness==="incorrect"&&oe.setStyle("color","var(--incorrect-color, var(--ML__incorrect-color))");const ve=new oi(oe,{type:"ord"});ve.setStyle("display","inline-block"),ve.setStyle("height",oe.height+oe.depth,"em"),ve.setStyle("vertical-align",-ie,"em");let Ee="ML__prompt ";this.locked?Ee+=" ML__lockedPromptBox ":Ee+=" ML__editablePromptBox ",this.correctness==="correct"?Ee+=" ML__correctPromptBox ":this.correctness==="incorrect"&&(Ee+=" ML__incorrectPromptBox "),this.containsCaret&&(Ee+=" ML__focusedPromptBox ");const Te=new oi(null,{classes:Ee,attributes:{part:"prompt"}});Te.height=ve.height+ie,Te.depth=ve.depth+ie,Te.width=ve.width+2*ee,Te.setStyle("box-sizing","border-box"),Te.setStyle("position","absolute"),Te.setStyle("height",ve.height+ve.depth+2*ie,"em"),ee===0&&Te.setStyle("width","100%"),ee!==0&&(Te.setStyle("width",`calc(100% + ${2*ee}em)`),Te.setStyle("top",E,"em"),Te.setStyle("left",-ee,"em")),(!this.body||this.body.length===1)&&(Te.width=3*ee,Te.setStyle("width",`calc(100% + ${3*ee}em)`),Te.setStyle("left",-1.5*ee,"em"));let Ke="";this.correctness==="incorrect"&&(Ke+='<line x1="3%" y1="97%" x2="97%" y2="3%" stroke-width="0.5" stroke="var(--incorrect-color, var(--ML__incorrect-color))" stroke-linecap="round" />'),Ke&&(Te.svgOverlay=Ke);const pt=new oi([Te,ve],{classes:"ML__prompt-atom"});return pt.setStyle("position","relative"),pt.setStyle("display","inline-block"),pt.setStyle("line-height",0),pt.height=ve.height+ie+.2,pt.depth=ve.depth+ie,pt.left=ee,pt.right=ee,pt.setStyle("height",ve.height+ie,"em"),pt.setStyle("top",ve.depth-ve.height,"em"),pt.setStyle("vertical-align",ve.depth+ie,"em"),pt.setStyle("margin-left",.5,"em"),pt.setStyle("margin-right",.5,"em"),this.caret&&(pt.caret=this.caret),this.bind(b,this.attachSupsub(y,{base:pt}))}_serialize(y){var b;const E=(b=this.bodyToLatex(y))!=null?b:"";if(y.skipPlaceholders)return E;let ee="\\placeholder";return this.placeholderId&&(ee+=`[${this.placeholderId}]`),this.correctness==="correct"?ee+="[correct]":this.correctness==="incorrect"&&(ee+="[incorrect]"),this.locked&&(ee+="[locked]"),Ki(ee,E)}},xc=class _p extends Wr{constructor(y){super({type:"subsup",style:y==null?void 0:y.style}),this.subsupPlacement="auto"}static fromJson(y){const b=new _p(y);for(const E of Ml)y[E]&&b.setChildren(y[E],E);return b}render(y){var b;const E=new Fa({parent:y,isPhantom:!0}),ee=this.leftSibling,ie=(b=ee.render(E))!=null?b:new oi(null),oe=new oi(null);return oe.height=ie.height,oe.depth=ie.depth,this.attachSupsub(y,{base:oe,isCharacterBox:ee.isCharacterBox(),type:"ignore"})}_serialize(y){return this.supsubToLatex(y)}};function du(a){return a?!/^(<$$>|<$>|<space>|<{>|<}>|#[0-9\?]|\\.+)$/.test(a):!1}var td=class{constructor(a,y,b){this.errors=[],this.index=0,this.endCount=0;var E,ee,ie,oe;b!=null||(b={}),this.tokens=a,this.context=y instanceof Fa&&!(b!=null&&b.parseMode)&&!b.mathstyle?y:new Fa({from:y,mathstyle:b.mathstyle},b.style),this.args=(E=b.args)!=null?E:void 0,this.smartFence=this.context.smartFence,this.parsingContext={parent:void 0,mathlist:[],style:(ee=b.style)!=null?ee:{},parseMode:(ie=b.parseMode)!=null?ie:"math",mathstyle:(oe=b.mathstyle)!=null?oe:"displaystyle",tabular:!1}}beginContext(a){var y,b,E;const ee=this.parsingContext,ie={parent:ee,mathlist:[],style:we({},ee.style),parseMode:(y=a==null?void 0:a.mode)!=null?y:ee.parseMode,mathstyle:(b=a==null?void 0:a.mathstyle)!=null?b:ee.mathstyle,tabular:(E=a==null?void 0:a.tabular)!=null?E:!1};this.parsingContext=ie}endContext(){this.parsingContext=this.parsingContext.parent}onError(a){this.errors.push(we({before:Ia(this.tokens.slice(this.index,this.index+10)),after:Ia(this.tokens.slice(Math.max(0,this.index-10),this.index))},a))}get mathlist(){return this.parsingContext.mathlist}set mathlist(a){this.parsingContext.mathlist=a}get parseMode(){return this.parsingContext.parseMode}set parseMode(a){this.parsingContext.parseMode=a}get tabularMode(){return this.parsingContext.tabular}get style(){let a=this.parsingContext;for(;a;){if(a.style)return we({},a.style);a=a.parent}return{}}set style(a){this.parsingContext.style=a}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(a){return this.tokens[this.index]===a?(this.index++,!0):!1}lastSubsupAtom(){let a;return this.mathlist.length>0&&(a=this.mathlist[this.mathlist.length-1],a.type==="subsup"||a.subsupPlacement!==void 0)||(a=new xc({style:this.style}),this.mathlist.push(a)),a}hasPattern(a){return a.test(this.tokens[this.index])}hasInfixCommand(){var a;const{index:y}=this;if(y<this.tokens.length&&this.tokens[y].startsWith("\\")){const b=At(this.tokens[y],this.parseMode);return!b||b.definitionType==="symbol"||b.ifMode&&!b.ifMode.includes(this.parseMode)?!1:(a=b.infix)!=null?a:!1}return!1}matchColumnSeparator(){return!this.tabularMode||this.peek()!=="&"?!1:(this.index++,!0)}matchRowSeparator(){if(!this.tabularMode)return!1;const a=this.peek();return a!=="\\\\"&&a!=="\\cr"&&a!=="\\tabularnewline"?!1:(this.index++,!0)}placeholder(){var a;const y=(a=this.args)==null?void 0:a.call(this,"?");return y?Au(y,{parseMode:this.parseMode,mathstyle:"textstyle"}):[new mo({mode:this.parseMode,style:this.style})]}skipWhitespace(){for(;this.match("<space>"););}skipUntilToken(a){let y=this.tokens[this.index];for(;y&&y!==a;)y=this.tokens[++this.index];y===a&&this.index++}skipFiller(){for(;this.match("\\relax")||this.match("<space>"););}matchKeyword(a){const y=this.index;let b=this.end(),E="";for(;!b;){const ie=this.get();du(ie)?(E+=ie,b=this.end()||E.length>=a.length):b=!0}const ee=a.toUpperCase()===E.toUpperCase();return ee||(this.index=y),ee}scanString(){let a="";for(;!this.end();){const y=this.peek();if(y==="]")return a;if(y==="<space>")a+=" ";else if(y.startsWith("\\"))this.onError({code:"unexpected-command-in-string"}),a+=y.substring(1);else if(du(y))a+=y;else return a;this.next()}return a}scanBalancedString(){let a="",y=this.end(),b=1;for(;!y;){const E=this.get();E==="<space>"?a+=" ":E==="<{>"?(a+="{",b+=1):E==="<}>"?(b-=1,b>0?a+="}":this.index-=1):E==="<$>"?a+="$":E==="<$$>"?a+="$$":a+=E,y=b===0||this.end()}return a}scanLiteralGroup(){var a;if(!this.match("<{>"))return"";let y="",b=1;for(;b>0&&!this.end();){const E=this.get();E==="<}>"?(b-=1,b>0&&(y+="}")):E==="<{>"?(b+=1,y+="{"):(/\\[a-zA-Z]+$/.test(y)&&/^[a-zA-Z]/.test(E)&&(y+=" "),y+=(a={"<space>":" ","<$$>":"$$","<$>":"$"}[E])!=null?a:E)}return y}scanNumber(a=!0){var y,b;let E=!1,ee=this.peek();for(;ee==="<space>"||ee==="+"||ee==="-";)this.get(),ee==="-"&&(E=!E),ee=this.peek();a=!!a;let ie=10,oe=/\d/;if(this.match("'"))ie=8,oe=/[0-7]/,a=!0;else if(this.match('"'))ie=16,oe=/[\dA-F]/,a=!0;else if(this.match("x"))ie=16,oe=/[\dA-Fa-f]/,a=!0;else if(this.match("`"))return ee=this.get(),ee?ee.length===2&&ee.startsWith("\\")?{number:(E?-1:1)*((y=ee.codePointAt(1))!=null?y:0),base:"alpha"}:{number:(E?-1:1)*((b=ee.codePointAt(0))!=null?b:0),base:"alpha"}:null;let ve="";for(;this.hasPattern(oe);)ve+=this.get();if(!a&&(this.match(".")||this.match(",")))for(ve+=".";this.hasPattern(oe);)ve+=this.get();const Ee=a?Number.parseInt(ve,ie):Number.parseFloat(ve);return Number.isNaN(Ee)?null:{number:E?-Ee:Ee,base:ie===16?"hexadecimal":ie===8?"octal":"decimal"}}scanRegister(){var a;const y=this.index,b=this.scanNumber(!1);if(this.skipWhitespace(),this.match("\\relax"))return b;let E=!1;if(b===null)for(;;){const ie=this.peek();if(ie==="-")E=!E;else if(ie!=="+")break;this.next(),this.skipWhitespace()}if(this.match("\\global")){this.skipWhitespace();const ie=this.get();return ie.startsWith("\\")?b?{register:ie,global:!0,factor:(E?-1:1)*b.number}:E?{register:ie,global:!0,factor:-1}:{register:ie,global:!0}:(this.index=y,null)}let ee=this.get();return ee!=null&&ee.startsWith("\\")?(ee=ee.substring(1),this.context.registers[ee]?!E||b!==null?{register:ee,factor:(E?-1:1)*((a=b==null?void 0:b.number)!=null?a:1)}:{register:ee}:(this.index=y,null)):(this.index=y,null)}scanValue(){const a=this.scanRegister();if(a)return a;const y=this.index,b=this.scanGlueOrDimen();if(b&&("unit"in b||"glue"in b&&"unit"in b.glue))return b;this.index=y;const E=this.scanNumber();if(E)return E;if(this.end()||!du(this.peek()))return null;const ee=this.scanString();return ee.length>0?{string:ee}:null}scanDimen(){const a=this.scanNumber(!1);if(a===null)return null;const y=a.number;this.skipWhitespace(),this.matchKeyword("true"),this.skipWhitespace();let b;return this.matchKeyword("pt")?b="pt":this.matchKeyword("mm")?b="mm":this.matchKeyword("cm")?b="cm":this.matchKeyword("ex")?b="ex":this.matchKeyword("px")?b="px":this.matchKeyword("em")?b="em":this.matchKeyword("bp")?b="bp":this.matchKeyword("dd")?b="dd":this.matchKeyword("pc")?b="pc":this.matchKeyword("in")?b="in":this.matchKeyword("mu")&&(b="mu"),b?{dimension:y,unit:b}:{dimension:y}}scanGlueOrDimen(){const a=this.scanDimen();if(a===null)return null;if(this.skipWhitespace(),this.match("\\relax"))return a;const y={glue:a};if(this.matchKeyword("plus")){const b=this.scanDimen();if(b)y.grow=b;else return y}if(this.skipWhitespace(),this.match("\\relax"))return y;if(this.skipWhitespace(),this.matchKeyword("minus")){const b=this.scanDimen();if(b)y.shrink=b;else return y}return!y.grow&&!y.shrink?a:y}scanColspec(){this.skipWhitespace();const a=[];for(;!this.end()&&!(this.peek()==="<}>"||this.peek()==="]");){const y=this.get();y==="c"||y==="r"||y==="l"?a.push({align:y}):y==="|"?a.push({separator:"solid"}):y===":"?a.push({separator:"dashed"}):y==="@"&&(this.match("<{>")&&(this.beginContext({mode:"math"}),a.push({gap:this.scan(b=>b==="<}>")}),this.endContext()),this.match("<}>")||this.onError({code:"unbalanced-braces"}))}return a}scanModeSet(){let a;if(this.match("\\(")&&(a="textstyle"),!a&&this.match("\\[")&&(a="displaystyle"),!a)return null;this.beginContext({mode:"math",mathstyle:a});const y=this.scan(b=>b===(a==="displaystyle"?"\\]":"\\)"));return this.match(a==="displaystyle"?"\\]":"\\)")||this.onError({code:"unbalanced-mode-shift"}),this.endContext(),y}scanModeShift(){let a="";if(this.match("<$>")&&(a="<$>"),!a&&this.match("<$$>")&&(a="<$$>"),!a)return null;this.beginContext({mode:"math",mathstyle:"textstyle"});const y=this.scan(b=>b===a);return this.match(a)||this.onError({code:"unbalanced-mode-shift"}),this.endContext(),y}scanEnvironment(){if(!this.match("\\begin"))return null;const a=this.scanArgument("string");if(!a)return null;const y=en(a);if(!y)return this.onError({code:"unknown-environment",arg:a}),null;const b=[];if(y.params)for(const ve of y.params)if(ve.isOptional)b.push(this.scanOptionalArgument(ve.type));else{const Ee=this.scanArgument(ve.type);Ee||this.onError({code:"missing-argument",arg:a}),b.push(Ee)}this.beginContext({tabular:y.tabular});const E=[],ee=[];let ie=[],oe=!1;do if(this.end()&&(this.onError({code:"unbalanced-environment",arg:a}),oe=!0),!oe&&this.match("\\end")&&(this.scanArgument("string")!==a&&this.onError({code:"unbalanced-environment",arg:a}),oe=!0),!oe)if(this.matchColumnSeparator())ie.push(this.mathlist),this.mathlist=[];else if(this.matchRowSeparator()){ie.push(this.mathlist),this.mathlist=[];let ve=null;this.skipWhitespace(),this.match("[")&&(ve=this.scanDimen(),this.skipWhitespace(),this.match("]")),ee.push(ve!=null?ve:{dimension:0}),E.push(ie),ie=[]}else this.mathlist.push(...this.scan(ve=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline"].includes(ve)));while(!oe);return ie.push(this.mathlist),ie.length>0&&E.push(ie),this.endContext(),y.createAtom(a,E,ee,b)}scanExpression(){const a=this.mathlist;if(this.mathlist=[],this.parseExpression()){const y=this.mathlist;return this.mathlist=a,y}return this.mathlist=a,null}scan(a){this.beginContext(),a||(a=oe=>oe==="<}>");let y="",b=null,E=[],ee=null;for(;!this.end()&&!a(this.peek());)this.hasInfixCommand()&&!y?(y=this.get(),b=At(y,"math"),b&&(E=this.scanArguments(b)[1]),ee=this.mathlist,this.mathlist=[]):this.parseExpression();let ie;return y?(console.assert(!!b),E.unshift(this.mathlist),ee&&E.unshift(ee),ie=[b.createAtom({command:y,args:E,style:this.style,mode:this.parseMode})]):ie=this.mathlist,this.endContext(),ie}scanGroup(){const a=this.index;if(!this.match("<{>"))return null;const y=this.scan(E=>E==="<}>");this.match("<}>")||this.onError({code:"unbalanced-braces"});const b=new Du(y,this.parseMode,this.style);return b.verbatimLatex=Ia(this.tokens.slice(a,this.index)),b}scanSmartFence(){if(this.skipWhitespace(),!this.match("("))return null;this.beginContext();let a=1;for(;!this.end()&&a!==0;)this.match("(")&&(a+=1),this.match(")")&&(a-=1),a!==0&&this.parseExpression();const y=new Gs("",this.mathlist,{leftDelim:"(",rightDelim:a===0?")":"?"});return this.endContext(),y}scanDelim(){this.skipWhitespace();const a=this.peek();if(!a)return this.onError({code:"unexpected-end-of-string"}),null;if(!du(a)&&!a.startsWith("\\"))return null;this.next();const y=At(a,"math");return y?y.definitionType==="function"&&y.ifMode&&!y.ifMode.includes(this.parseMode)?(this.onError({code:"unexpected-delimiter",arg:a}),null):y.definitionType==="symbol"&&(y.type==="mopen"||y.type==="mclose")||/^(\.|\?|\||<|>|\\vert|\\Vert|\\\||\\surd|\\uparrow|\\downarrow|\\Uparrow|\\Downarrow|\\updownarrow|\\Updownarrow|\\mid|\\mvert|\\mVert)$/.test(a)?a:(this.onError({code:"unexpected-delimiter",arg:a}),null):(this.onError({code:"unknown-command",arg:a}),null)}scanLeftRight(){var a;if(this.match("\\right"))return this.onError({code:"unbalanced-braces"}),new tc("\\right");if(this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),new tc("\\mright");let y="\\right";if(!this.match("\\left")){if(!this.match("\\mleft"))return null;y="\\mright"}const b=this.scanDelim();if(!b)return this.onError({code:"unexpected-delimiter"}),new tc(y==="\\right"?"\\left":"\\mleft");for(this.beginContext();!this.end()&&!this.match(y);)this.parseExpression();const E=this.mathlist;this.endContext();const ee=(a=this.scanDelim())!=null?a:".";return new Gs(y==="\\right"?"left...right":"mleft...mright",E,{leftDelim:b,rightDelim:ee,style:this.style})}parseSupSub(){if(this.parseMode!=="math")return!1;let a=this.peek();if(a!=="^"&&a!=="_"&&a!=="'")return!1;const y=this.lastSubsupAtom();for(;a==="^"||a==="_"||a==="'";)this.match("'")?this.match("'")?y.addChild(new Wr({type:"mord",command:"\\doubleprime",mode:"math",value:"\u2032\u2032"}),"superscript"):y.addChild(new Wr({type:"mord",command:"\\prime",mode:"math",value:"\u2032"}),"superscript"):(this.match("^")||this.match("_"))&&y.addChildren(Mt(this.scanArgument("expression")),a==="_"?"subscript":"superscript"),a=this.peek();return!0}parseLimits(){if(this.parseMode!=="math")return!1;const a=this.match("\\limits"),y=!a&&this.match("\\nolimits"),b=!y&&!a&&this.match("\\displaylimits");if(!a&&!y&&!b)return!1;const E=this.mathlist.length>0?this.mathlist[this.mathlist.length-1]:null;return E===null?!1:(E.explicitSubsupPlacement=!0,a&&(E.subsupPlacement="over-under"),y&&(E.subsupPlacement="adjacent"),b&&(E.subsupPlacement="auto"),!0)}scanArguments(a){if(!(a!=null&&a.params))return[void 0,[]];let y;const b=[];let E=a.infix?2:0;for(;E<a.params.length;){const ee=a.params[E];ee.type==="rest"?b.push(this.scan(ie=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline","\\right"].includes(ie))):ee.isOptional?b.push(this.scanOptionalArgument(ee.type)):ee.type.endsWith("*")?y=ee.type.slice(0,-1):b.push(this.scanArgument(ee.type)),E+=1}return[y,b]}scanSymbolOrLiteral(){const a=this.peek();if(!a)return null;this.next();let y;if(du(a)){const b=na.createAtom(this.parseMode,a,we({},this.style));return b?[b]:null}if(y=this.scanMacro(a),y)return[y];if(a.startsWith("\\")){const b=At(a,this.parseMode);if(!b)return this.onError({code:"unknown-command",arg:a}),[new tc(a)];if(b.definitionType==="symbol"){const E=we({},this.style);b.variant&&(E.variant=b.variant),y=new Wr({type:b.type,command:a,style:E,value:String.fromCodePoint(b.codepoint),mode:this.parseMode,verbatimLatex:a})}else{if(b.applyMode||b.applyStyle||b.infix)return this.onError({code:"invalid-command",arg:a}),[new tc(a)];b.createAtom&&(y=b.createAtom({command:a,args:[],style:this.style,mode:this.parseMode}))}}return y?[y]:null}scanArgument(a){var y;this.skipFiller();const b=this.parseMode;if(a==="auto"&&(a=b),!this.match("<{>")){if(a==="string")return this.scanString();if(a==="value")return this.scanValue();if(a==="delim")return(y=this.scanDelim())!=null?y:".";if(a==="expression")return this.scanExpression();if(a==="math"){a!==b&&this.beginContext({mode:"math"});const ee=this.scanSymbolOrLiteral();return a!==b&&this.endContext(),ee}if(a==="text"){a!==b&&this.beginContext({mode:"text"});const ee=this.scanSymbolOrLiteral();return a!==b&&this.endContext(),ee}return a==="balanced-string"||console.assert(!1),null}if(a==="text"){this.beginContext({mode:"text"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const ee=this.mathlist;return this.endContext(),{group:ee}}if(a==="math"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const ee=this.mathlist;return this.endContext(),{group:ee}}let E=null;if(a==="expression"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const ee=this.mathlist;return this.endContext(),{group:ee}}return a==="string"?E=this.scanString():a==="balanced-string"?E=this.scanBalancedString():a==="colspec"?E=this.scanColspec():a==="value"&&(E=this.scanValue()),this.skipUntilToken("<}>"),E}scanOptionalArgument(a){if(a=a==="auto"?this.parseMode:a,this.skipFiller(),!this.match("["))return null;let y=null;for(;!this.end()&&!this.match("]");)if(a==="string")y=this.scanString();else if(a==="value")y=this.scanValue();else if(a==="colspec")y=this.scanColspec();else if(a==="bbox"){const b={},E=this.scanString().toLowerCase().trim().split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const ee of E){const ie=ee.match(/^\s*([\d.]+)\s*([a-z]{2})/);if(ie)b.padding={dimension:parseInt(ie[1]),unit:ie[2]};else{const oe=ee.match(/^\s*border\s*:\s*(.*)/);oe?b.border=oe[1]:b.backgroundcolor={string:ee}}}y=b}else a==="math"&&(this.beginContext({mode:"math"}),y=this.mathlist.concat(this.scan(b=>b==="]")),this.endContext());return y}scanSymbolOrCommand(a){var y,b,E;if(a==="\\placeholder"){const ve=this.scanOptionalArgument("string"),Ee=this.scanOptionalArgument("math"),Te=Wr.serialize(Ee,{defaultMode:"math"});let Ke=[],pt;!pt&&Te==="correct"?pt="correct":!pt&&Te==="incorrect"?pt="incorrect":Te!==""&&(Ke=Ee);const Tt=this.scanOptionalArgument("string")==="locked",rn=this.scanArgument("auto");let pn;return rn&&Array.isArray(rn)&&rn.length>0?pn=rn:rn&&typeof rn=="object"&&"group"in rn?pn=rn.group:pn=Ke,ve?[new Bc(ve,pt,Tt,pn!=null?pn:Ke,{mode:this.parseMode,style:this.style})]:[new mo({mode:this.parseMode,style:this.style})]}if(a==="\\renewcommand"||a==="\\newcommand"||a==="\\providecommand"||a==="\\def"){const ve=this.index,Ee=this.scanLiteralGroup()||this.next();if(!Ee)return null;if(this.context.registers[Ee.substring(1)]){const Te=this.scanArgument("string");Te!==null&&(this.context.registers[Ee.substring(1)]=Te);const Ke=vo([a,Ia(this.tokens.slice(ve,this.index))]);return[new Wr({type:"text",value:"",verbatimLatex:Ke})]}}let ee=this.scanMacro(a);if(ee)return[ee];const ie=At(a,this.parseMode);if(!ie)return this.parseMode==="text"?(/[a-zA-Z]/.test((y=this.peek())!=null?y:"")&&(a+=" "),[...a].map(ve=>new Wr({type:"text",value:ve,mode:"text",style:this.style}))):(this.onError({code:"unknown-command",arg:a}),[new tc(a)]);const oe=this.index;if(ie.definitionType==="symbol"){const ve=we({},this.style);ie.variant&&(ve.variant=ie.variant),ee=new Wr({type:ie.type,command:a,style:ve,value:String.fromCodePoint(ie.codepoint),mode:this.parseMode})}else{if(ie.ifMode&&!ie.ifMode.includes(this.parseMode))return[];const ve=this.parseMode;ie.applyMode&&(this.parseMode=ie.applyMode);let Ee,Te=[];if(ie.parse?Te=ie.parse(this):[Ee,Te]=this.scanArguments(ie),this.parseMode=ve,ie.applyMode&&!ie.applyStyle&&!ie.createAtom)return Mt(Te[0]);if(ie.infix)return this.onError({code:"too-many-infix-commands",arg:a}),null;if(typeof ie.createAtom=="function")ee=ie.createAtom({command:a,args:Te,style:this.style,mode:this.parseMode}),Ee&&(ee.body=Mt(this.scanArgument(Ee)));else if(typeof ie.applyStyle=="function"){const Ke=we(we({},this.style),ie.applyStyle(a,Te,this.context)),pt=this.parseMode;if(ie.applyMode&&(this.parseMode=ie.applyMode),Ee){const Tt=this.style;this.style=Ke;const rn=this.scanArgument(Ee);return this.style=Tt,this.parseMode=pt,Mt(rn)}this.style=Ke}else ee=new Wr({type:"mord",command:(b=ie.command)!=null?b:a,style:we({},this.style),value:a,mode:(E=ie.applyMode)!=null?E:this.parseMode})}if(!ee)return null;if(ee instanceof Wr&&ee.verbatimLatex===void 0&&!/^\\(llap|rlap|class|cssId|htmlData)$/.test(a)){const ve=vo([a,Ia(this.tokens.slice(oe,this.index))]);ve&&(ee.verbatimLatex=ve)}if(ee.verbatimLatex===null&&(ee.verbatimLatex=void 0),ee.isFunction&&this.smartFence){const ve=this.scanSmartFence();if(ve)return[ee,ve]}return[ee]}scanSymbolCommandOrLiteral(){const a=this.get();if(!a)return null;if(du(a)){const y=na.createAtom(this.parseMode,a,we({},this.style));if(!y)return null;if(y.isFunction&&this.smartFence){const b=this.scanSmartFence();if(b)return[y,b]}return[y]}return a.startsWith("\\")?this.scanSymbolOrCommand(a):a==="<space>"?this.parseMode==="text"?[new Qu(" "," ",this.style)]:null:(a==="<}>"?this.onError({latex:"",code:"unbalanced-braces"}):this.onError({latex:"",code:"unexpected-token",arg:a}),null)}scanMacro(a){var y;const b=this.context.getMacro(a);if(!b)return null;const E=this.index,ee=b.args,ie={"?":(y=this.args)==null?void 0:y.call(this,"?")};for(let oe=1;oe<=ee;oe++){let ve=this.scanLiteralGroup();if(!ve){const Ee=this.index;this.scanExpression(),ve=Ia(this.tokens.slice(Ee,this.index))}ie[oe]=ve}return new Fd(a,{expand:b.expand,captureSelection:b.captureSelection,args:E===this.index?null:Ia(this.tokens.slice(E,this.index)),style:this.parsingContext.style,body:Au(b.def,{context:this.context,parseMode:this.parseMode,args:oe=>ie[oe],mathstyle:this.parsingContext.mathstyle,style:this.parsingContext.style})})}parseExpression(){var a,y,b,E;let ee=(E=(b=(y=(a=this.scanEnvironment())!=null?a:this.scanModeShift())!=null?y:this.scanModeSet())!=null?b:this.scanGroup())!=null?E:this.scanLeftRight();if(ee===null){if(this.parseSupSub()||this.parseLimits())return!0;ee=this.scanSymbolCommandOrLiteral()}return ee?(Array.isArray(ee)?this.mathlist.push(...ee):this.mathlist.push(ee),!0):!1}};function Au(a,y){var b,E,ee,ie;const oe=(b=y==null?void 0:y.args)!=null?b:void 0,ve=new td(ws(a,oe),y==null?void 0:y.context,{args:oe,mathstyle:(E=y==null?void 0:y.mathstyle)!=null?E:"displaystyle",parseMode:(ee=y==null?void 0:y.parseMode)!=null?ee:"math",style:(ie=y==null?void 0:y.style)!=null?ie:{}}),Ee=[];for(;!ve.end();)Ee.push(...ve.scan(()=>!1));return Ee}function t0(a,y){var b;const E=new td(ws(a,null),y==null?void 0:y.context,{mathstyle:"displaystyle",parseMode:(b=y==null?void 0:y.parseMode)!=null?b:"math"});for(;!E.end();)E.scan();return E.errors}var n0=class zp extends Wr{constructor(y,b){super({type:"chem"},{command:y,mode:"math"});const E=_l.go(Ei.go(b,y==="\\pu"?"pu":"ce"),!1);this.body=Au(E),this._verbatimLatex=y+"{"+b+"}",this.arg=b,this.captureSelection=!0}static fromJson(y){return new zp(y.command,y.arg)}set verbatimLatex(y){}get verbatimLatex(){return this._verbatimLatex}toJson(){return pe(we({},super.toJson()),{arg:this.arg})}render(y){const b=Wr.createBox(y,this.body,{type:"inner"});return this.caret&&(b.caret=this.caret),this.bind(y,b)}_serialize(y){return console.assert(this.verbatimLatex!==void 0),this.verbatimLatex}};Jt(["ce","pu"],"{chemformula:balanced-string}",{createAtom:a=>{var y;return new n0(a.command,(y=a.args[0])!=null?y:"")}});var Ei={go:function(a,y){if(!a)return[];y===void 0&&(y="ce");var b="0",E={};E.parenthesisLevel=0,a=a.replace(/\n/g," "),a=a.replace(/[\u2212\u2013\u2014\u2010]/g,"-"),a=a.replace(/[\u2026]/g,"...");for(var ee,ie=10,oe=[];;){ee!==a?(ie=10,ee=a):ie--;var ve=Ei.stateMachines[y],Ee=ve.transitions[b]||ve.transitions["*"];e:for(var Te=0;Te<Ee.length;Te++){var Ke=Ei.patterns.match_(Ee[Te].pattern,a);if(Ke){for(var pt=Ee[Te].task,Tt=0;Tt<pt.action_.length;Tt++){var rn;if(ve.actions[pt.action_[Tt].type_])rn=ve.actions[pt.action_[Tt].type_](E,Ke.match_,pt.action_[Tt].option);else if(Ei.actions[pt.action_[Tt].type_])rn=Ei.actions[pt.action_[Tt].type_](E,Ke.match_,pt.action_[Tt].option);else throw["MhchemBugA","mhchem bug A. Please report. ("+pt.action_[Tt].type_+")"];Ei.concatArray(oe,rn)}if(b=pt.nextState||b,a.length>0){if(pt.revisit||(a=Ke.remainder),!pt.toContinue)break e}else return oe}}if(ie<=0)throw["MhchemBugU","mhchem bug U. Please report."]}},concatArray:function(a,y){if(y)if(Object.prototype.toString.call(y)==="[object Array]")for(var b=0;b<y.length;b++)a.push(y[b]);else a.push(y)},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(a){var y=a.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 y&&y[0]?{match_:y.slice(1),remainder:a.substr(y[0].length)}:null},"(-)(9)^(-9)":function(a){var y=a.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+)?)\^([+\-]?[0-9]+|\{[+\-]?[0-9]+\})/);return y&&y[0]?{match_:y.slice(1),remainder:a.substr(y[0].length)}:null},"state of aggregation $":function(a){var y=Ei.patterns.findObserveGroups(a,"",/^\([a-z]{1,3}(?=[\),])/,")","");if(y&&y.remainder.match(/^($|[\s,;\)\]\}])/))return y;var b=a.match(/^(?:\((?:\\ca\s?)?\$[amothc]\$\))/);return b?{match_:b[0],remainder:a.substr(b[0].length)}:null},"_{(state of aggregation)}$":/^_\{(\([a-z]{1,3}\))\}/,"{[(":/^(?:\\\{|\[|\()/,")]}":/^(?:\)|\]|\\\})/,", ":/^[,;]\s*/,",":/^[,;]/,".":/^[.]/,". ":/^([.\u22C5\u00B7\u2022])\s*/,"...":/^\.\.\.(?=$|[^.])/,"* ":/^([*])\s*/,"^{(...)}":function(a){return Ei.patterns.findObserveGroups(a,"^{","","","}")},"^($...$)":function(a){return Ei.patterns.findObserveGroups(a,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(a){return Ei.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(a){return Ei.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(a){return Ei.patterns.findObserveGroups(a,"_{","","","}")},"_($...$)":function(a){return Ei.patterns.findObserveGroups(a,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(a){return Ei.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(a){return Ei.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}":/^\{\}/,"{...}":function(a){return Ei.patterns.findObserveGroups(a,"","{","}","")},"{(...)}":function(a){return Ei.patterns.findObserveGroups(a,"{","","","}")},"$...$":function(a){return Ei.patterns.findObserveGroups(a,"","$","$","")},"${(...)}$":function(a){return Ei.patterns.findObserveGroups(a,"${","","","}$")},"$(...)$":function(a){return Ei.patterns.findObserveGroups(a,"$","","","$")},"=<>":/^[=<>]/,"#":/^[#\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(a){return Ei.patterns.findObserveGroups(a,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(a){return Ei.patterns.findObserveGroups(a,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(a){return Ei.patterns.findObserveGroups(a,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(a){return Ei.patterns.findObserveGroups(a,"",/^\\[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(a){return Ei.patterns.findObserveGroups(a,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(a){return Ei.patterns.findObserveGroups(a,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(a){return Ei.patterns.findObserveGroups(a,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(a){return Ei.patterns.findObserveGroups(a,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(a){return Ei.patterns.findObserveGroups(a,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(a){return Ei.patterns.findObserveGroups(a,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(a){return Ei.patterns.findObserveGroups(a,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(a){return Ei.patterns.findObserveGroups(a,"\\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(a){var y;if(y=a.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))/),y)return{match_:y[0],remainder:a.substr(y[0].length)};var b=Ei.patterns.findObserveGroups(a,"","$","$","");return b&&(y=b.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/),y)?{match_:y[0],remainder:a.substr(y[0].length)}:null},amount2:function(a){return this.amount(a)},"(KV letters),":/^(?:[A-Z][a-z]{0,2}|i)(?=,)/,formula$:function(a){if(a.match(/^\([a-z]+\)$/))return null;var y=a.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);return y?{match_:y[0],remainder:a.substr(y[0].length)}:null},uprightEntities:/^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,"/":/^\s*(\/)\s*/,"//":/^\s*(\/\/)\s*/,"*":/^\s*[*.]\s*/},findObserveGroups:function(a,y,b,E,ee,ie,oe,ve,Ee,Te){var Ke=function(Pr,ui){if(typeof ui=="string")return Pr.indexOf(ui)!==0?null:ui;var Pi=Pr.match(ui);return Pi?Pi[0]:null},pt=function(Pr,ui,Pi){for(var pi=0;ui<Pr.length;){var Na=Pr.charAt(ui),uo=Ke(Pr.substr(ui),Pi);if(uo!==null&&pi===0)return{endMatchBegin:ui,endMatchEnd:ui+uo.length};if(Na==="{")pi++;else if(Na==="}"){if(pi===0)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];pi--}ui++}return pi>0,null},Tt=Ke(a,y);if(Tt===null||(a=a.substr(Tt.length),Tt=Ke(a,b),Tt===null))return null;var rn=pt(a,Tt.length,E||ee);if(rn===null)return null;var pn=a.substring(0,E?rn.endMatchEnd:rn.endMatchBegin);if(ie||oe){var _r=this.findObserveGroups(a.substr(rn.endMatchEnd),ie,oe,ve,Ee);if(_r===null)return null;var Ai=[pn,_r.match_];return{match_:Te?Ai.join(""):Ai,remainder:_r.remainder}}else return{match_:pn,remainder:a.substr(rn.endMatchEnd)}},match_:function(a,y){var b=Ei.patterns.patterns[a];if(b===void 0)throw["MhchemBugP","mhchem bug P. Please report. ("+a+")"];if(typeof b=="function")return Ei.patterns.patterns[a](y);var E=y.match(b);if(E){var ee;return E[2]?ee=[E[1],E[2]]:E[1]?ee=E[1]:ee=E[0],{match_:ee,remainder:y.substr(E[0].length)}}return null}},actions:{"a=":function(a,y){a.a=(a.a||"")+y},"b=":function(a,y){a.b=(a.b||"")+y},"p=":function(a,y){a.p=(a.p||"")+y},"o=":function(a,y){a.o=(a.o||"")+y},"q=":function(a,y){a.q=(a.q||"")+y},"d=":function(a,y){a.d=(a.d||"")+y},"rm=":function(a,y){a.rm=(a.rm||"")+y},"text=":function(a,y){a.text_=(a.text_||"")+y},insert:function(a,y,b){return{type_:b}},"insert+p1":function(a,y,b){return{type_:b,p1:y}},"insert+p1+p2":function(a,y,b){return{type_:b,p1:y[0],p2:y[1]}},copy:function(a,y){return y},rm:function(a,y){return{type_:"rm",p1:y||""}},text:function(a,y){return Ei.go(y,"text")},"{text}":function(a,y){var b=["{"];return Ei.concatArray(b,Ei.go(y,"text")),b.push("}"),b},"tex-math":function(a,y){return Ei.go(y,"tex-math")},"tex-math tight":function(a,y){return Ei.go(y,"tex-math tight")},bond:function(a,y,b){return{type_:"bond",kind_:b||y}},"color0-output":function(a,y){return{type_:"color0",color:y[0]}},ce:function(a,y){return Ei.go(y)},"1/2":function(a,y){var b=[];y.match(/^[+\-]/)&&(b.push(y.substr(0,1)),y=y.substr(1));var E=y.match(/^([0-9]+|\$[a-z]\$|[a-z])\/([0-9]+)(\$[a-z]\$|[a-z])?$/);return E[1]=E[1].replace(/\$/g,""),b.push({type_:"frac",p1:E[1],p2:E[2]}),E[3]&&(E[3]=E[3].replace(/\$/g,""),b.push({type_:"tex-math",p1:E[3]})),b},"9,9":function(a,y){return Ei.go(y,"9,9")}},createTransitions:function(a){var y,b,E,ee,ie={};for(y in a)for(b in a[y])for(E=b.split("|"),a[y][b].stateArray=E,ee=0;ee<E.length;ee++)ie[E[ee]]=[];for(y in a)for(b in a[y])for(E=a[y][b].stateArray||[],ee=0;ee<E.length;ee++){var oe=a[y][b];if(oe.action_){oe.action_=[].concat(oe.action_);for(var ve=0;ve<oe.action_.length;ve++)typeof oe.action_[ve]=="string"&&(oe.action_[ve]={type_:oe.action_[ve]})}else oe.action_=[];for(var Ee=y.split("|"),Te=0;Te<Ee.length;Te++)if(E[ee]==="*")for(var Ke in ie)ie[Ke].push({pattern:Ee[Te],task:oe});else ie[E[ee]].push({pattern:Ee[Te],task:oe})}return ie},stateMachines:{}};Ei.stateMachines={ce:{transitions:Ei.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(a,y){var b;if((a.d||"").match(/^[0-9]+$/)){var E=a.d;a.d=void 0,b=this.output(a),a.b=E}else b=this.output(a);return Ei.actions["o="](a,y),b},"d= kv":function(a,y){a.d=y,a.dType="kv"},"charge or bond":function(a,y){if(a.beginsWithBond){var b=[];return Ei.concatArray(b,this.output(a)),Ei.concatArray(b,Ei.actions.bond(a,y,"-")),b}else a.d=y},"- after o/d":function(a,y,b){var E=Ei.patterns.match_("orbital",a.o||""),ee=Ei.patterns.match_("one lowercase greek letter $",a.o||""),ie=Ei.patterns.match_("one lowercase latin letter $",a.o||""),oe=Ei.patterns.match_("$one lowercase latin letter$ $",a.o||""),ve=y==="-"&&(E&&E.remainder===""||ee||ie||oe);ve&&!a.a&&!a.b&&!a.p&&!a.d&&!a.q&&!E&&ie&&(a.o="$"+a.o+"$");var Ee=[];return ve?(Ei.concatArray(Ee,this.output(a)),Ee.push({type_:"hyphen"})):(E=Ei.patterns.match_("digits",a.d||""),b&&E&&E.remainder===""?(Ei.concatArray(Ee,Ei.actions["d="](a,y)),Ei.concatArray(Ee,this.output(a))):(Ei.concatArray(Ee,this.output(a)),Ei.concatArray(Ee,Ei.actions.bond(a,y,"-")))),Ee},"a to o":function(a){a.o=a.a,a.a=void 0},"sb=true":function(a){a.sb=!0},"sb=false":function(a){a.sb=!1},"beginsWithBond=true":function(a){a.beginsWithBond=!0},"beginsWithBond=false":function(a){a.beginsWithBond=!1},"parenthesisLevel++":function(a){a.parenthesisLevel++},"parenthesisLevel--":function(a){a.parenthesisLevel--},"state of aggregation":function(a,y){return{type_:"state of aggregation",p1:Ei.go(y,"o")}},comma:function(a,y){var b=y.replace(/\s*$/,""),E=b!==y;return E&&a.parenthesisLevel===0?{type_:"comma enumeration L",p1:b}:{type_:"comma enumeration M",p1:b}},output:function(a,y,b){var E;if(!a.r)E=[],!a.a&&!a.b&&!a.p&&!a.o&&!a.q&&!a.d&&!b||(a.sb&&E.push({type_:"entitySkip"}),!a.o&&!a.q&&!a.d&&!a.b&&!a.p&&b!==2?(a.o=a.a,a.a=void 0):!a.o&&!a.q&&!a.d&&(a.b||a.p)?(a.o=a.a,a.d=a.b,a.q=a.p,a.a=a.b=a.p=void 0):a.o&&a.dType==="kv"&&Ei.patterns.match_("d-oxidation$",a.d||"")?a.dType="oxidation":a.o&&a.dType==="kv"&&!a.q&&(a.dType=void 0),E.push({type_:"chemfive",a:Ei.go(a.a,"a"),b:Ei.go(a.b,"bd"),p:Ei.go(a.p,"pq"),o:Ei.go(a.o,"o"),q:Ei.go(a.q,"pq"),d:Ei.go(a.d,a.dType==="oxidation"?"oxidation":"bd"),dType:a.dType}));else{var ee;a.rdt==="M"?ee=Ei.go(a.rd,"tex-math"):a.rdt==="T"?ee=[{type_:"text",p1:a.rd||""}]:ee=Ei.go(a.rd);var ie;a.rqt==="M"?ie=Ei.go(a.rq,"tex-math"):a.rqt==="T"?ie=[{type_:"text",p1:a.rq||""}]:ie=Ei.go(a.rq),E={type_:"arrow",r:a.r,rd:ee,rq:ie}}for(var oe in a)oe!=="parenthesisLevel"&&oe!=="beginsWithBond"&&delete a[oe];return E},"oxidation-output":function(a,y){var b=["{"];return Ei.concatArray(b,Ei.go(y,"oxidation")),b.push("}"),b},"frac-output":function(a,y){return{type_:"frac-ce",p1:Ei.go(y[0]),p2:Ei.go(y[1])}},"overset-output":function(a,y){return{type_:"overset",p1:Ei.go(y[0]),p2:Ei.go(y[1])}},"underset-output":function(a,y){return{type_:"underset",p1:Ei.go(y[0]),p2:Ei.go(y[1])}},"underbrace-output":function(a,y){return{type_:"underbrace",p1:Ei.go(y[0]),p2:Ei.go(y[1])}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:Ei.go(y[1])}},"r=":function(a,y){a.r=y},"rdt=":function(a,y){a.rdt=y},"rd=":function(a,y){a.rd=y},"rqt=":function(a,y){a.rqt=y},"rq=":function(a,y){a.rq=y},operator:function(a,y,b){return{type_:"operator",kind_:b||y}}}},a:{transitions:Ei.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:Ei.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:Ei.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(a){if(a.text_){var y={type_:"text",p1:a.text_};for(var b in a)delete a[b];return y}}}},pq:{transitions:Ei.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(a,y){return{type_:"state of aggregation subscript",p1:Ei.go(y,"o")}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:Ei.go(y[1],"pq")}}}},bd:{transitions:Ei.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(a,y){return{type_:"color",color1:y[0],color2:Ei.go(y[1],"bd")}}}},oxidation:{transitions:Ei.createTransitions({empty:{"*":{}},"roman numeral":{"*":{action_:"roman-numeral"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},else:{"*":{action_:"copy"}}}),actions:{"roman-numeral":function(a,y){return{type_:"roman numeral",p1:y||""}}}},"tex-math":{transitions:Ei.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},else:{"*":{action_:"o="}}}),actions:{output:function(a){if(a.o){var y={type_:"tex-math",p1:a.o};for(var b in a)delete a[b];return y}}}},"tex-math tight":{transitions:Ei.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},"-|+":{"*":{action_:"tight operator"}},else:{"*":{action_:"o="}}}),actions:{"tight operator":function(a,y){a.o=(a.o||"")+"{"+y+"}"},output:function(a){if(a.o){var y={type_:"tex-math",p1:a.o};for(var b in a)delete a[b];return y}}}},"9,9":{transitions:Ei.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:Ei.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(a,y){var b=[];return y[0]==="+-"||y[0]==="+/-"?b.push("\\pm "):y[0]&&b.push(y[0]),y[1]&&(Ei.concatArray(b,Ei.go(y[1],"pu-9,9")),y[2]&&(y[2].match(/[,.]/)?Ei.concatArray(b,Ei.go(y[2],"pu-9,9")):b.push(y[2])),(y[3]||y[4])&&(y[3]==="e"||y[4]==="*"?b.push({type_:"cdot"}):b.push({type_:"times"}))),y[5]&&b.push("10^{"+y[5]+"}"),b},"number^":function(a,y){var b=[];return y[0]==="+-"||y[0]==="+/-"?b.push("\\pm "):y[0]&&b.push(y[0]),Ei.concatArray(b,Ei.go(y[1],"pu-9,9")),b.push("^{"+y[2]+"}"),b},operator:function(a,y,b){return{type_:"operator",kind_:b||y}},space:function(){return{type_:"pu-space-1"}},output:function(a){var y,b=Ei.patterns.match_("{(...)}",a.d||"");b&&b.remainder===""&&(a.d=b.match_);var E=Ei.patterns.match_("{(...)}",a.q||"");if(E&&E.remainder===""&&(a.q=E.match_),a.d&&(a.d=a.d.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),a.d=a.d.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F")),a.q){a.q=a.q.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),a.q=a.q.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F");var ee={d:Ei.go(a.d,"pu"),q:Ei.go(a.q,"pu")};a.o==="//"?y={type_:"pu-frac",p1:ee.d,p2:ee.q}:(y=ee.d,ee.d.length>1||ee.q.length>1?y.push({type_:" / "}):y.push({type_:"/"}),Ei.concatArray(y,ee.q))}else y=Ei.go(a.d,"pu-2");for(var ie in a)delete a[ie];return y}}},"pu-2":{transitions:Ei.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(a,y){a.rm+="^{"+y+"}"},space:function(){return{type_:"pu-space-2"}},output:function(a){var y=[];if(a.rm){var b=Ei.patterns.match_("{(...)}",a.rm||"");b&&b.remainder===""?y=Ei.go(b.match_,"pu"):y={type_:"rm",p1:a.rm}}for(var E in a)delete a[E];return y}}},"pu-9,9":{transitions:Ei.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(a){var y=[];if(a.text_=a.text_||"",a.text_.length>4){var b=a.text_.length%3;b===0&&(b=3);for(var E=a.text_.length-3;E>0;E-=3)y.push(a.text_.substr(E,3)),y.push({type_:"1000 separator"});y.push(a.text_.substr(0,b)),y.reverse()}else y.push(a.text_);for(var ee in a)delete a[ee];return y},"output-o":function(a){var y=[];if(a.text_=a.text_||"",a.text_.length>4){for(var b=a.text_.length-3,E=0;E<b;E+=3)y.push(a.text_.substr(E,3)),y.push({type_:"1000 separator"});y.push(a.text_.substr(E))}else y.push(a.text_);for(var ee in a)delete a[ee];return y}}}};var _l={go:function(a,y){if(!a)return"";for(var b="",E=!1,ee=0;ee<a.length;ee++){var ie=a[ee];typeof ie=="string"?b+=ie:(b+=_l._go2(ie),ie.type_==="1st-level escape"&&(E=!0))}return!y&&!E&&b&&(b="{"+b+"}"),b},_goInner:function(a){return a&&_l.go(a,!0)},_go2:function(a){var y;switch(a.type_){case"chemfive":y="";var b={a:_l._goInner(a.a),b:_l._goInner(a.b),p:_l._goInner(a.p),o:_l._goInner(a.o),q:_l._goInner(a.q),d:_l._goInner(a.d)};b.a&&(b.a.match(/^[+\-]/)&&(b.a="{"+b.a+"}"),y+=b.a+"\\,"),(b.b||b.p)&&(y+="{\\vphantom{X}}",y+="^{\\hphantom{"+(b.b||"")+"}}_{\\hphantom{"+(b.p||"")+"}}",y+="{\\vphantom{X}}",y+="^{\\smash[t]{\\vphantom{2}}\\llap{"+(b.b||"")+"}}",y+="_{\\vphantom{2}\\llap{\\smash[t]{"+(b.p||"")+"}}}"),b.o&&(b.o.match(/^[+\-]/)&&(b.o="{"+b.o+"}"),y+=b.o),a.dType==="kv"?((b.d||b.q)&&(y+="{\\vphantom{X}}"),b.d&&(y+="^{"+b.d+"}"),b.q&&(y+="_{\\smash[t]{"+b.q+"}}")):a.dType==="oxidation"?(b.d&&(y+="{\\vphantom{X}}",y+="^{"+b.d+"}"),b.q&&(y+="{\\vphantom{X}}",y+="_{\\smash[t]{"+b.q+"}}")):(b.q&&(y+="{\\vphantom{X}}",y+="_{\\smash[t]{"+b.q+"}}"),b.d&&(y+="{\\vphantom{X}}",y+="^{"+b.d+"}"));break;case"rm":y="\\mathrm{"+a.p1+"}";break;case"text":a.p1.match(/[\^_]/)?(a.p1=a.p1.replace(" ","~").replace("-","\\text{-}"),y="\\mathrm{"+a.p1+"}"):y="\\text{"+a.p1+"}";break;case"roman numeral":y="\\mathrm{"+a.p1+"}";break;case"state of aggregation":y="\\mskip2mu "+_l._goInner(a.p1);break;case"state of aggregation subscript":y="\\mskip1mu "+_l._goInner(a.p1);break;case"bond":if(y=_l._getBond(a.kind_),!y)throw["MhchemErrorBond","mhchem Error. Unknown bond type ("+a.kind_+")"];break;case"frac":var E="\\frac{"+a.p1+"}{"+a.p2+"}";y="\\mathchoice{\\textstyle"+E+"}{"+E+"}{"+E+"}{"+E+"}";break;case"pu-frac":var ee="\\frac{"+_l._goInner(a.p1)+"}{"+_l._goInner(a.p2)+"}";y="\\mathchoice{\\textstyle"+ee+"}{"+ee+"}{"+ee+"}{"+ee+"}";break;case"tex-math":y=a.p1+" ";break;case"frac-ce":y="\\frac{"+_l._goInner(a.p1)+"}{"+_l._goInner(a.p2)+"}";break;case"overset":y="\\overset{"+_l._goInner(a.p1)+"}{"+_l._goInner(a.p2)+"}";break;case"underset":y="\\underset{"+_l._goInner(a.p1)+"}{"+_l._goInner(a.p2)+"}";break;case"underbrace":y="\\underbrace{"+_l._goInner(a.p1)+"}_{"+_l._goInner(a.p2)+"}";break;case"color":y="{\\color{"+a.color1+"}{"+_l._goInner(a.color2)+"}}";break;case"color0":y="\\color{"+a.color+"}";break;case"arrow":var ie={rd:_l._goInner(a.rd),rq:_l._goInner(a.rq)},oe=_l._getArrow(a.r);ie.rd||ie.rq?a.r==="<=>"||a.r==="<=>>"||a.r==="<<=>"||a.r==="<-->"?(oe="\\long"+oe,ie.rd&&(oe="\\overset{"+ie.rd+"}{"+oe+"}"),ie.rq&&(a.r==="<-->"?oe="\\underset{\\lower2mu{"+ie.rq+"}}{"+oe+"}":oe="\\underset{\\lower6mu{"+ie.rq+"}}{"+oe+"}"),oe=" {}\\mathrel{"+oe+"}{} "):(ie.rq&&(oe+="[{"+ie.rq+"}]"),oe+="{"+ie.rd+"}",oe=" {}\\mathrel{\\x"+oe+"}{} "):oe=" {}\\mathrel{\\long"+oe+"}{} ",y=oe;break;case"operator":y=_l._getOperator(a.kind_);break;case"1st-level escape":y=a.p1+" ";break;case"space":y=" ";break;case"entitySkip":y="~";break;case"pu-space-1":y="~";break;case"pu-space-2":y="\\mkern3mu ";break;case"1000 separator":y="\\mkern2mu ";break;case"commaDecimal":y="{,}";break;case"comma enumeration L":y="{"+a.p1+"}\\mkern6mu ";break;case"comma enumeration M":y="{"+a.p1+"}\\mkern3mu ";break;case"comma enumeration S":y="{"+a.p1+"}\\mkern1mu ";break;case"hyphen":y="\\text{-}";break;case"addition compound":y="\\,{\\cdot}\\,";break;case"electron dot":y="\\mkern1mu \\bullet\\mkern1mu ";break;case"KV x":y="{\\times}";break;case"prime":y="\\prime ";break;case"cdot":y="\\cdot ";break;case"tight cdot":y="\\mkern1mu{\\cdot}\\mkern1mu ";break;case"times":y="\\times ";break;case"circa":y="{\\sim}";break;case"^":y="uparrow";break;case"v":y="downarrow";break;case"ellipsis":y="\\ldots ";break;case"/":y="/";break;case" / ":y="\\,/\\,";break;default:throw["MhchemBugT","mhchem bug T. Please report."]}return y},_getArrow:function(a){switch(a){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(a){switch(a){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(a){switch(a){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 M1(a){}function k1(a){}var r0=class $p extends Wr{constructor(y){super(pe(we({},y),{type:"delim"})),this.value=y.delim,this.size=y.size}static fromJson(y){return new $p(y)}toJson(){return pe(we({},super.toJson()),{delim:this.value,size:this.size})}render(y){return new oi(this.value,{type:"middle"})}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=At(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):Ki(this.command,this.value)}},i0=class Kp extends Wr{constructor(y){super(pe(we({},y),{type:"sizeddelim",value:y.delim})),this.delimType=y.delimType,this.size=y.size}static fromJson(y){return new Kp(y)}toJson(){return pe(we({},super.toJson()),{delim:this.value,size:this.size,delimType:this.delimType})}render(y){let b=wr(this.value,this.size,y,{classes:{open:"mopen",close:"mclose"}[this.delimType],type:this.delimType,isSelected:this.isSelected});return b?(b=this.bind(y,b),this.caret&&(b.caret=this.caret),b):null}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=At(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):Ki(this.command,this.value)}},rf=class Hp extends Wr{constructor(y,b,E,ee){var ie,oe;super({type:"enclose",command:y,style:ee.style}),this.body=b,this.backgroundcolor=ee.backgroundcolor,E.updiagonalarrow&&(E.updiagonalstrike=!1),E.box&&(E.left=!1,E.right=!1,E.bottom=!1,E.top=!1),this.notation=E,this.shadow=(ie=ee.shadow)!=null?ie:"none",this.strokeWidth=(oe=ee.strokeWidth)!=null?oe:"0.06em",this.strokeWidth||(this.strokeWidth="0.06em"),this.strokeStyle=ee.strokeStyle,this.svgStrokeStyle=ee.svgStrokeStyle,this.strokeColor=ee.strokeColor,this.borderStyle=ee.borderStyle,this.padding=ee.padding,this.captureSelection=!1}static fromJson(y){return new Hp(y.command,y.body,y.notation,y)}toJson(){return pe(we({},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(y){var b;if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const E=At(this.command,this.mode);if(E!=null&&E.serialize)return E.serialize(this,y);let ee=(b=this.command)!=null?b:"";if(this.command==="\\enclose"){ee+="{"+Object.keys(this.notation).join(" ")+"}";let ie="",oe="";this.backgroundcolor&&this.backgroundcolor!=="transparent"&&(ie+=oe+'mathbackground="'+this.backgroundcolor+'"',oe=","),this.shadow&&this.shadow!=="auto"&&(ie+=oe+'shadow="'+this.shadow+'"',oe=","),this.strokeWidth||this.strokeStyle!=="solid"?(ie+=oe+this.borderStyle,oe=","):this.strokeColor&&this.strokeColor!=="currentColor"&&(ie+=oe+'mathcolor="'+this.strokeColor+'"',oe=","),ie&&(ee+=`[${ie}]`)}return Ki(ee,this.bodyToLatex(y))}render(y){const b=new Fa({parent:y},this.style),E=Wr.createBox(b,this.body);if(!E)return null;const ee=im(this.borderStyle),ie=b.toEm(!this.padding||this.padding==="auto"?{register:"fboxsep"}:{string:this.padding});E.setStyle("position","relative"),E.setStyle("display","inline-block"),E.setStyle("top",ie,"em"),E.setStyle("height",E.height+E.depth,"em"),E.setStyle("width",E.width,"em");const oe=new oi(null,{classes:"ML__notation"});let ve=E.height+E.depth+2*ie;const Ee=E.width+2*ie;let Te="";if(this.notation.horizontalstrike&&(Te+=this.line(3,50,97,50)),this.notation.verticalstrike&&(Te+=this.line(50,3,50,97)),this.notation.updiagonalstrike&&(Te+=this.line(3,97,97,3)),this.notation.downdiagonalstrike&&(Te+=this.line(3,3,97,97)),this.notation.updiagonalarrow){Te+=this.line(ie.toString(),(ie+E.depth+E.height).toString(),(ie+E.width).toString(),ie.toString());const pn=.03*Math.sqrt(Ee*Ee+ve*ve)*1,_r=E.width*pn,Ai=(E.depth+E.height)*pn,Pr=ie+E.width;let ui=ie;ui+Ai-.4*_r<0&&(ui=.4*_r-Ai),Te+='<polygon points="',Te+=`${Pr},${ui} ${Pr-_r-.4*Ai},${ui+Ai-.4*_r} `,Te+=`${Pr-.7*_r},${ui+.7*Ai} ${Pr-_r+.4*Ai},${ui+Ai+.4*_r} `,Te+=`${Pr},${ui}`,Te+=`" stroke='none' fill="${this.strokeColor}"`,Te+="/>"}let Ke=0;if(this.notation.phasorangle){const Tt=a0(b),rn=(E.height+E.depth+2*Tt+ie).toString(),pn=(E.height+E.depth)/2;Te+=this.line(ie.toString(),rn,(ie+pn+E.width).toString(),rn),Te+=this.line(ie.toString(),rn,(ie+pn).toString(),(ie-Tt).toString()),ve+=Tt,Ke=pn,E.left+=ve/2-ie}if(this.notation.longdiv){const Tt=a0(b);ve+=Tt,Te+=this.line(ie.toString(),ie.toString(),(ie+E.width).toString(),ie.toString());const rn=.3;Ke=rn+Tt,E.left+=rn+Tt,E.setTop(ie+Tt),Te+='<path d="',Te+=`M ${ie} ${ie} a${rn} ${(E.depth+E.height+2*Tt)/2}, 0, 1, 1, 0 ${E.depth+E.height+2*Tt} "`,Te+=` stroke-width="${am(b)}" stroke="${this.strokeColor}" fill="none"`,Te+="/>"}if(oe.width=E.width+2*ie+Ke,oe.height=E.height+ie,oe.depth=E.depth+ie,oe.setStyle("box-sizing","border-box"),oe.setStyle("left",`calc(-${ee} / 2 )`),oe.setStyle("height",`${Math.floor(100*ve)/100}em`),oe.setStyle("top",`calc(${ee} / 2 )`),this.backgroundcolor&&oe.setStyle("background-color",this.backgroundcolor),this.notation.box&&oe.setStyle("border","1px solid red"),this.notation.actuarial&&(oe.setStyle("border-top",this.borderStyle),oe.setStyle("border-right",this.borderStyle)),this.notation.madruwb&&(oe.setStyle("border-bottom",this.borderStyle),oe.setStyle("border-right",this.borderStyle)),this.notation.roundedbox&&(oe.setStyle("border-radius","8px"),oe.setStyle("border",this.borderStyle)),this.notation.circle&&(oe.setStyle("border-radius","50%"),oe.setStyle("border",this.borderStyle)),this.notation.top&&oe.setStyle("border-top",this.borderStyle),this.notation.left&&oe.setStyle("border-left",this.borderStyle),this.notation.right&&oe.setStyle("border-right",this.borderStyle),this.notation.bottom&&oe.setStyle("border-bottom",this.borderStyle),Te){let Tt="";this.shadow==="auto"&&(Tt+="filter: drop-shadow(0 0 .5px rgba(255, 255, 255, .7)) drop-shadow(1px 1px 2px #333)"),this.shadow!=="none"&&(Tt+=`filter: drop-shadow(${this.shadow})`),Tt+=` stroke-width="${this.strokeWidth}" stroke="${this.strokeColor}"`,Tt+=' stroke-linecap="round"',this.svgStrokeStyle&&(Tt+=` stroke-dasharray="${this.svgStrokeStyle}"`),oe.svgStyle=Tt,oe.svgOverlay=Te}const pt=new oi([oe,E]);return pt.setStyle("position","relative"),pt.setStyle("vertical-align",ie,"em"),pt.setStyle("height",`${Math.floor(100*(E.height+E.depth+2*ie))/100}em`),pt.setStyle("display","inline-block"),pt.height=oe.height,pt.depth=oe.depth,pt.width=oe.width-2*ie,pt.left=ie,pt.right=ie,this.caret&&(pt.caret=this.caret),pt.wrap(b)}line(y,b,E,ee){return`<line x1="${Pf(y)}" y1="${Pf(b)}" x2="${Pf(E)}" y2="${Pf(ee)}" vector-effect="non-scaling-stroke"></line>`}};function Pf(a){return typeof a=="number"?`${Math.floor(100*a)/100}%`:a}function im(a){if(!a)return"1px";const y=a.match(/([0-9][a-zA-Z\%]+)/);return y===null?"1px":y[1]}function am(a){return(Math.floor(100*a.metrics.sqrtRuleThickness/a.scalingFactor)/100/10).toString()+"em"}function a0(a){const y=a.isDisplayStyle?$a:a.metrics.defaultRuleThickness;return a.metrics.defaultRuleThickness+a.scalingFactor*y/4}var _d=class Zp extends Wr{constructor(y,b,E){var ee,ie;super(pe(we({},E),{type:"genfrac",displayContainsHighlight:!0})),this.above=y,this.below=b,this.hasBarLine=(ee=E==null?void 0:E.hasBarLine)!=null?ee:!0,this.continuousFraction=(ie=E==null?void 0:E.continuousFraction)!=null?ie:!1,this.numerPrefix=E==null?void 0:E.numerPrefix,this.denomPrefix=E==null?void 0:E.denomPrefix,this.mathstyleName=E==null?void 0:E.mathstyleName,this.leftDelim=E==null?void 0:E.leftDelim,this.rightDelim=E==null?void 0:E.rightDelim,this.fractionNavigationOrder=E==null?void 0:E.fractionNavigationOrder}static fromJson(y){return new Zp(y.above,y.below,y)}toJson(){const y={};return this.continuousFraction&&(y.continuousFraction=!0),this.numerPrefix&&(y.numerPrefix=this.numerPrefix),this.denomPrefix&&(y.denomPrefix=this.denomPrefix),this.leftDelim&&(y.leftDelim=this.leftDelim),this.rightDelim&&(y.rightDelim=this.rightDelim),this.hasBarLine||(y.hasBarLine=!1),this.mathstyleName&&(y.mathstyleName=this.mathstyleName),this.fractionNavigationOrder&&(y.fractionNavigationOrder=this.fractionNavigationOrder),we(we({},super.toJson()),y)}get children(){if(this._children)return this._children;const y=[];if(this.fractionNavigationOrder==="denominator-numerator"){for(const b of this.below)y.push(...b.children),y.push(b);for(const b of this.above)y.push(...b.children),y.push(b)}else{for(const b of this.above)y.push(...b.children),y.push(b);for(const b of this.below)y.push(...b.children),y.push(b)}return this._children=y,y}render(y){var b,E;const ee=new Fa({parent:y,mathstyle:this.mathstyleName},this.style),ie=ee.metrics,oe=new Fa({parent:ee,mathstyle:this.continuousFraction?"":"numerator"},this.style),ve=this.numerPrefix?new oi([new oi(this.numerPrefix),Wr.createBox(oe,this.above)],{isTight:oe.isTight,type:"ignore"}):(b=Wr.createBox(oe,this.above,{type:"ignore"}))!=null?b:new oi(null,{type:"ignore"}),Ee=new Fa({parent:ee,mathstyle:this.continuousFraction?"":"denominator"},this.style),Te=this.denomPrefix?new oi([new oi(this.denomPrefix),Wr.createBox(Ee,this.below,{type:"ignore"})]):(E=Wr.createBox(Ee,this.below,{type:"ignore"}))!=null?E:new oi(null,{type:"ignore"}),Ke=this.hasBarLine?ie.defaultRuleThickness:0;let pt,Tt=0,rn;ee.isDisplayStyle?(pt=oe.metrics.num1,Tt=Ke>0?3*Ke:7*Ke,rn=Ee.metrics.denom1):(Ke>0?(pt=oe.metrics.num2,Tt=Ke):(pt=oe.metrics.num3,Tt=3*ie.defaultRuleThickness),rn=Ee.metrics.denom2);const pn=[];this.isSelected&&pn.push("ML__selected");const _r=ve.depth,Ai=Te.height;let Pr;if(Ke<=0){const Ya=pt-_r-(Ai-rn);Ya<Tt&&(pt+=(Tt-Ya)/2,rn+=(Tt-Ya)/2),Pr=new Io({individualShift:[{box:ve,shift:-pt,classes:[...pn,"ML__center"]},{box:Te,shift:rn,classes:[...pn,"ML__center"]}]}).wrap(ee)}else{const Ya=new oi(null,{classes:"ML__frac-line",mode:this.mode,style:this.style});Ya.softWidth=Math.max(ve.width,Te.width),Ya.height=Ke/2,Ya.depth=Ke/2;const Ns=ca+Ke/2;pt<Tt+_r+Ns&&(pt=Tt+_r+Ns);const hl=ca-Ke/2;rn<Tt+Ai-hl&&(rn=Tt+Ai-hl),Pr=new Io({individualShift:[{box:Te,shift:rn,classes:[...pn,"ML__center"]},{box:Ya,shift:-hl,classes:pn},{box:ve,shift:-pt,classes:[...pn,"ML__center"]}]}).wrap(ee)}const ui=ee.isDisplayStyle?ie.delim1:ie.delim2,Pi=this.leftDelim?this.bind(y,ka("open",this.leftDelim,ui,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):La(ee,"open");let pi=null;this.continuousFraction?pi=new oi(null,{type:"close"}):this.rightDelim?pi=this.bind(y,ka("close",this.rightDelim,ui,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):pi=La(ee,"close");const Na=new oi([Pi,Pr,pi],{isTight:ee.isTight,type:"inner",classes:"mfrac"}),uo=this.bind(y,Na);return this.caret&&(uo.caret=this.caret),this.attachSupsub(y,{base:uo})}},Nu=class Wp extends Wr{constructor(y,b){var E;super({type:"latex",value:y,mode:"latex"}),this.isSuggestion=(E=b==null?void 0:b.isSuggestion)!=null?E:!1,this.isError=!1}static fromJson(y){const b=new Wp(y.value);return y.isSuggestion&&(b.isSuggestion=!0),y.isError&&(b.isError=!0),b}toJson(){const y={};return this.isSuggestion&&(y.isSuggestion=!0),this.isError&&(y.isError=!0),we({type:"latex",value:this.value},y)}get computedStyle(){return{}}render(y){const b=new oi(this.value,{classes:this.isSuggestion?"ML__suggestion":this.isError?"ML__error":"",type:"latex",maxFontSize:1});return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}},af=class Up extends Wr{constructor(y){super({type:"latexgroup",mode:"latex"}),this.body=[...y].map(b=>new Nu(b)),this.skipBoundary=!1}static fromJson(y){return new Up("")}toJson(){return super.toJson()}render(y){const b=Wr.createBox(y,this.body);return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}_serialize(y){var b,E;return(E=(b=this.body)==null?void 0:b.map(ee=>ee.value).join(""))!=null?E:""}},fh=class Vp extends Wr{constructor(y,b){super(pe(we({},b),{type:"extensible-symbol",isFunction:b==null?void 0:b.isFunction})),this.value=y,this.variant=b==null?void 0:b.variant,this.subsupPlacement=b==null?void 0:b.limits}static fromJson(y){return new Vp(y.symbol,y)}toJson(){const y=super.toJson();return this.variant&&(y.variant=this.variant),this.subsupPlacement&&(y.limits=this.subsupPlacement),this.isExtensibleSymbol&&(y.isExtensibleSymbol=!0),this.value&&(y.symbol=this.value),y}render(y){var b;const E=y.isDisplayStyle&&this.value!=="\\smallint",ee=new oi(this.value,{fontFamily:E?"Size2-Regular":"Size1-Regular",classes:"op-symbol "+(E?"large-op":"small-op"),type:"op",maxFontSize:y.scalingFactor,isSelected:this.isSelected});if(!ee)return null;ee.right=ee.italic;const ie=(ee.height-ee.depth)/2-ca*y.scalingFactor,oe=ee.italic;ee.setTop(ie);let ve=ee;if(this.superscript||this.subscript){const Ee=(b=this.subsupPlacement)!=null?b:"auto";ve=Ee==="over-under"||Ee==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:ee,baseShift:ie,slant:oe}):this.attachSupsub(y,{base:ee})}return new oi(this.bind(y,ve),{type:"op",caret:this.caret,isSelected:this.isSelected,classes:"op-group"}).wrap(y)}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=At(this.command,this.mode);if(b!=null&&b.serialize)return b.serialize(this,y);const E=[];return E.push(this.command),this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&E.push("\\limits"),this.subsupPlacement==="adjacent"&&E.push("\\nolimits"),this.subsupPlacement==="auto"&&E.push("\\displaylimits")),E.push(this.supsubToLatex(y)),vo(E)}},Sd=class jp extends Wr{constructor(y){const b=y.body;super(pe(we({},y),{type:"overlap",body:typeof b=="string"?[new Wr({value:b})]:b,style:y==null?void 0:y.style})),this.skipBoundary=!0,this.align=y==null?void 0:y.align,this.boxType=y==null?void 0:y.boxType}static fromJson(y){return new jp(y)}toJson(){const y={};return this.align&&(y.align=this.align),this.boxType&&(y.boxType=this.boxType),we(we({},super.toJson()),y)}render(y){const b=Wr.createBox(y,this.body,{classes:"inner"});return b?(this.caret&&(b.caret=this.caret),this.bind(y,new oi([b,new oi(null,{classes:"fix"})],{classes:this.align==="right"?"rlap":"llap",type:this.boxType}))):null}},Sc=class Gp extends Wr{constructor(y){var b,E,ee,ie;super({type:"overunder",command:y.command,style:y.style,mode:y.mode,body:y.body,skipBoundary:(b=y.skipBoundary)!=null?b:!0}),this.subsupPlacement=y.supsubPlacement,this.svgAbove=y.svgAbove,this.svgBelow=y.svgBelow,this.svgBody=y.svgBody,this.above=y.above,this.below=y.below,this.boxType=(E=y.boxType)!=null?E:"ord",this.paddedBody=(ee=y.paddedBody)!=null?ee:!1,this.paddedLabels=(ie=y.paddedLabels)!=null?ie:!1}static fromJson(y){return new Gp(y)}toJson(){const y=super.toJson();return this.skipBoundary||(y.skipBoundary=!1),this.subsupPlacement&&(y.subsupPlacement=this.subsupPlacement),this.svgAbove&&(y.svgAbove=this.svgAbove),this.svgBelow&&(y.svgBelow=this.svgBelow),this.svgBody&&(y.svgBody=this.svgBody),this.boxType!=="ord"&&(y.boxType=this.boxType),this.paddedBody&&(y.paddedBody=!0),this.paddedLabels&&(y.paddedLabels=!0),y}render(y){let b=this.svgBody?su(this.svgBody):Wr.createBox(y,this.body,{type:"ignore"});const E=new Fa({parent:y,mathstyle:"scriptstyle"},this.style);let ee=null;this.svgAbove?ee=su(this.svgAbove):this.above&&(ee=Wr.createBox(E,this.above,{type:"ignore"}));let ie=null;this.svgBelow?ie=su(this.svgBelow):this.below&&(ie=Wr.createBox(E,this.below,{type:"ignore"})),this.paddedBody&&(b=new oi([La(y,"open"),b,La(y,"close")],{type:"ignore"}));let oe=om(y,{base:b,above:ee,below:ie,type:this.boxType==="bin"||this.boxType==="rel"?this.boxType:"ord",paddedAboveBelow:this.paddedLabels});return oe?(this.subsupPlacement==="over-under"?oe=this.attachLimits(y,{base:oe,type:oe.type}):oe=this.attachSupsub(y,{base:oe}),this.caret&&(oe.caret=this.caret),this.bind(y,oe)):null}};function om(a,y){if(!y.base)return null;if(!y.above&&!y.below){const ve=new oi(y.base,{type:y.type});return ve.setStyle("position","relative"),ve}let b=0;y.above&&(b=a.metrics.bigOpSpacing5);let E=null;const ee=y.base,ie=0,oe=["ML__center"];if(y.paddedAboveBelow&&oe.push("ML__label_padding"),y.below&&y.above){const ve=a.metrics.bigOpSpacing5+y.below.height+y.below.depth+ee.depth+ie;E=new Io({bottom:ve,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:oe},{box:ee,classes:["ML__center"]},b,{box:y.above,classes:oe},a.metrics.bigOpSpacing5]})}else y.below?E=new Io({top:ee.height-ie,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:oe},{box:ee,classes:["ML__center"]}]}):y.above&&(E=new Io({bottom:ee.depth+ie,children:[{box:ee,classes:["ML__center"]},b,{box:y.above,classes:oe},a.metrics.bigOpSpacing5]}));return new oi(E,{type:y.type})}var of=class Yp extends Wr{constructor(y){var b,E,ee,ie;super(pe(we({},y),{type:"phantom"})),this.captureSelection=!0,this.isInvisible=(b=y.isInvisible)!=null?b:!1,this.smashDepth=(E=y.smashDepth)!=null?E:!1,this.smashHeight=(ee=y.smashHeight)!=null?ee:!1,this.smashWidth=(ie=y.smashWidth)!=null?ie:!1}static fromJson(y){return new Yp(y)}toJson(){const y={};return this.isInvisible&&(y.isInvisible=!0),this.smashDepth&&(y.smashDepth=!0),this.smashHeight&&(y.smashHeight=!0),this.smashWidth&&(y.smashWidth=!0),we(we({},super.toJson()),y)}render(y){const b=new Fa({parent:y,isPhantom:!0});if(!this.smashDepth&&!this.smashHeight&&!this.smashWidth)return console.assert(this.isInvisible),Wr.createBox(b,this.body,{classes:"inner"});const E=Wr.createBox(this.isInvisible?b:y,this.body);if(!E)return null;if(this.smashWidth){const ee=new oi(null,{classes:"fix"});return new oi([E,ee],{classes:"rlap"}).wrap(y)}if(!this.smashHeight&&!this.smashDepth)return E;if(this.smashHeight&&(E.height=0),this.smashDepth&&(E.depth=0),E.children)for(const ee of E.children)this.smashHeight&&(ee.height=0),this.smashDepth&&(ee.depth=0);return new Io({firstBaseline:[{box:E}]},{type:E.type}).wrap(y)}},sf=class Xp extends Wr{constructor(y){var b;super(we({type:"spacing"},y)),this.width=y==null?void 0:y.width,this._braced=(b=y==null?void 0:y.braced)!=null?b:!1}static fromJson(y){return new Xp(y)}toJson(){const y=super.toJson();return this.width!==void 0&&(y.width=this.width),this._braced&&(y.braced=!0),y}render(y){var b;if(this.command==="space")return new oi(this.mode==="math"?null:" ");let E;if(this.width!==void 0)E=new oi(null,{classes:"mspace"}),E.left=y.toEm(this.width);else{const ee=(b={"\\qquad":"qquad","\\quad":"quad","\\enspace":"enspace","\\;":"thickspace","\\:":"mediumspace","\\>":"mediumspace","\\,":"thinspace","\\!":"negativethinspace"}[this.command])!=null?b:"mediumspace";E=new oi(null,{classes:ee})}return E=this.bind(y,E),this.caret&&(E.caret=this.caret),E}_serialize(y){var b;if(!y.expandMacro&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const E=At(this.command,this.mode);if(E!=null&&E.serialize)return E.serialize(this,y);const ee=(b=this.command)!=null?b:"";return this.width===void 0?ee:this._braced&&!("register"in this.width)?`${ee}{${Vs(this.width)}}`:`${ee}${Vs(this.width)}`}},o0=class Qp extends Wr{constructor(y){var b;super(pe(we({},y),{type:"surd",mode:(b=y.mode)!=null?b:"math",style:y.style,displayContainsHighlight:!0,body:y.body})),this.above=y.index}static fromJson(y){return new Qp(pe(we({},y),{index:y.above}))}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=At(this.command,this.mode);if(b!=null&&b.serialize)return b.serialize(this,y);const E=this.command,ee=this.bodyToLatex(y);return this.above&&!this.hasEmptyBranch("above")?Ki(`${E}[${this.aboveToLatex(y)}]`,ee):/^[0-9]$/.test(ee)?`${E}${ee}`:Ki(E,ee)}get children(){if(this._children)return this._children;const y=[];if(this.above)for(const b of this.above)y.push(...b.children),y.push(b);if(this.body)for(const b of this.body)y.push(...b.children),y.push(b);return this._children=y,y}render(y){var b;const E=new Fa({parent:y,mathstyle:"cramp"},this.style),ee=(b=Wr.createBox(E,this.body,{type:"inner"}))!=null?b:new oi(null),ie=E.scalingFactor,oe=E.metrics.defaultRuleThickness/ie,ve=y.isDisplayStyle?$a:oe,Ee=new oi(null,{classes:"ML__sqrt-line",style:this.style});Ee.height=oe,Ee.softWidth=ee.width;let Te=ie*(oe+ve/4);const pt=Math.max(ie*2*ve,ee.height+ee.depth)+Te+oe,Tt=new Fa({parent:y},this.style),rn=this.bind(Tt,new oi(ka("inner","\\surd",pt,!1,Tt,{isSelected:this.isSelected}),{isSelected:this.isSelected,classes:"ML__sqrt-sign",style:this.style}));if(!rn)return null;const pn=rn.height+rn.depth-oe;pn>ee.height+ee.depth+Te&&(Te=(Te+pn-(ee.height+ee.depth))/2),rn.setTop(rn.height-ee.height-Te);const _r=this.bind(y,new Io({firstBaseline:[{box:new oi(ee)},Te-2*oe,{box:Ee},oe]})),Ai=Wr.createBox(new Fa({parent:y,mathstyle:"scriptscriptstyle"}),this.above,{type:"ignore"});if(!Ai){const Pi=new oi([rn,_r],{classes:this.containsCaret?"ML__contains-caret":"",type:"inner"});return Pi.setStyle("display","inline-block"),Pi.setStyle("height",Pi.height+Pi.depth,"em"),this.caret&&(Pi.caret=this.caret),this.bind(y,Pi)}const Pr=new Io({shift:-.6*(Math.max(rn.height,_r.height)-Math.max(rn.depth,_r.depth)),children:[{box:Ai}]}),ui=new oi([new oi(Pr,{classes:"ML__sqrt-index",type:"ignore"}),rn,_r],{type:"inner",classes:this.containsCaret?"ML__contains-caret":""});return ui.height=rn.height,ui.depth=rn.depth,this.caret&&(ui.caret=this.caret),this.bind(y,ui)}},sm=class extends oi{constructor(a){super(null,{type:"skip"}),this._width=a}toMarkup(){return`<span style="display:inline-block;width:${Math.ceil(this.width*100)/100}em"></span>`}};function Tf(a,y){if(!a.parent)return;const b=a.parent.children,E=b.indexOf(a);let ee=E-1;for(;ee>=0&&b[ee].type==="ignore";)ee-=1;if(ee<0&&a.parent.parent&&a.parent.type==="lift"){Tf(a.parent,y);return}E>0&&b[E-1].type==="skip"?b[E-1].width+=y:b.splice(E,0,new sm(y))}var lm={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}},um={ord:{op:3},op:{ord:3,op:3},close:{op:3},inner:{op:3}};function cm(a){uf(a,(y,b)=>{b.type==="bin"&&(!y||/^(middle|bin|op|rel|open|punct)$/.test(y.type))&&(b.type="ord"),(y==null?void 0:y.type)==="bin"&&/^(rel|close|punct)$/.test(b.type)&&(y.type="ord"),b.type!=="ignore"&&(y=b)})}function lf(a,y){if(!a.children)return a;const b=a.children;cm(b);const E=y.getRegisterAsEm("thinmuskip"),ee=y.getRegisterAsEm("medmuskip"),ie=y.getRegisterAsEm("thickmuskip");return uf(b,(oe,ve)=>{var Ee,Te,Ke;if(!oe)return;const pt=oe.type,Tt=ve.isTight?(Ee=um[pt])!=null?Ee:null:(Te=lm[pt])!=null?Te:null,rn=(Ke=Tt==null?void 0:Tt[ve.type])!=null?Ke:null;rn===3&&Tf(ve,E),rn===4&&Tf(ve,ee),rn===5&&Tf(ve,ie)}),a}function uf(a,y,b=void 0){if(!a)return b;a=[...a];for(const E of a)E.type==="lift"?b=uf(E.children,y,b):E.type==="ignore"?uf(E.children,y):(y(b,E),uf(E.children,y),b=E);return b}var hh=class Jp extends Wr{constructor(y){super({type:"tooltip",command:y.command,mode:y.mode,style:y.style,body:y.body,displayContainsHighlight:!0}),this.tooltip=new Wr({type:"root",mode:y.content,body:y.tooltip,style:{}}),this.skipBoundary=!0,this.captureSelection=!1}static fromJson(y){return new Jp(pe(we({},y),{tooltip:dd(y.tooltip)}))}toJson(){var y;const b=(y=this.tooltip.body)==null?void 0:y.filter(E=>E.type!=="first").map(E=>E.toJson());return pe(we({},super.toJson()),{tooltip:b})}render(y){const b=Wr.createBox(new Fa,this.body);if(!b)return null;const E=new Fa({parent:y,mathstyle:"displaystyle"},{fontSize:oa}),ee=ul(lf(new oi(this.tooltip.render(E),{classes:"ML__tooltip-content"}),E)),ie=new oi([ee,b],{classes:"ML__tooltip-container"});return this.caret&&(ie.caret=this.caret),this.bind(y,ie)}},wd=class qp extends Wr{constructor(y,b){super(pe(we({},b),{type:"operator",isFunction:b==null?void 0:b.isFunction})),this.value=y,this.variant=b==null?void 0:b.variant,this.variantStyle=b==null?void 0:b.variantStyle,this.subsupPlacement=b==null?void 0:b.limits}static fromJson(y){return new qp(y.symbol,y)}toJson(){const y=super.toJson();return this.variant&&(y.variant=this.variant),this.variantStyle&&(y.variantStyle=this.variantStyle),this.subsupPlacement&&(y.limits=this.subsupPlacement),this.value&&(y.symbol=this.value),y}render(y){var b;const E=new oi(this.value,{type:"op",mode:"math",maxFontSize:y.scalingFactor,style:{variant:this.variant,variantStyle:this.variantStyle},isSelected:this.isSelected,letterShapeStyle:y.letterShapeStyle});let ee=E;if(this.superscript||this.subscript){const ie=(b=this.subsupPlacement)!=null?b:"auto";ee=ie==="over-under"||ie==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:E}):this.attachSupsub(y,{base:E})}return new oi(this.bind(y,ee),{type:"op",caret:this.caret,isSelected:this.isSelected,classes:"op-group"}).wrap(y)}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=At(this.command,this.mode);if(b!=null&&b.serialize)return b.serialize(this,y);const E=[this.command];return this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&E.push("\\limits"),this.subsupPlacement==="adjacent"&&E.push("\\nolimits"),this.subsupPlacement==="auto"&&E.push("\\displaylimits")),E.push(this.supsubToLatex(y)),vo(E)}};function dd(a){if(Re(a))return a.map(E=>dd(E));if(typeof a=="string")return Wr.fromJson(a);a=we({},a);for(const E of Ml)a[E]&&(a[E]=dd(a[E]));a.args&&(a.args=dm(a.args)),a.array&&(a.array=dd(a.array));const y=a.type;let b;y==="accent"&&(b=z.fromJson(a)),y==="array"&&(b=Qo.fromJson(a)),y==="box"&&(b=tu.fromJson(a)),y==="chem"&&(b=n0.fromJson(a)),y==="composition"&&(b=ed.fromJson(a)),y==="delim"&&(b=r0.fromJson(a)),y==="enclose"&&(b=rf.fromJson(a)),y==="error"&&(b=tc.fromJson(a)),y==="extensible-symbol"&&(b=fh.fromJson(a)),y==="genfrac"&&(b=_d.fromJson(a)),y==="group"&&(b=Du.fromJson(a)),y==="latex"&&(b=Nu.fromJson(a)),y==="latexgroup"&&(b=af.fromJson(a)),y==="leftright"&&(b=Gs.fromJson(a)),y==="macro"&&(b=Fd.fromJson(a)),y==="macro-argument"&&(b=Pc.fromJson(a)),y==="operator"&&(b=wd.fromJson(a)),y==="overlap"&&(b=Sd.fromJson(a)),y==="overunder"&&(b=Sc.fromJson(a)),y==="placeholder"&&(b=mo.fromJson(a)),y==="prompt"&&(b=Bc.fromJson(a)),y==="phantom"&&(b=of.fromJson(a)),y==="sizeddelim"&&(b=i0.fromJson(a)),y==="spacing"&&(b=sf.fromJson(a)),y==="subsup"&&(b=xc.fromJson(a)),y==="surd"&&(b=o0.fromJson(a)),y==="text"&&(b=Qu.fromJson(a)),y==="tooltip"&&(b=hh.fromJson(a)),b||(console.assert(!y||["first","mbin","mrel","mclose","minner","mop","mopen","mord","mpunct","root","space"].includes(y),`MathLive 0.98.5: an unexpected atom type "${y}" was encountered. Add new atom constructors to \`fromJson()\` in "atom.ts"`),b=Wr.fromJson(a));for(const E of Ml)a[E]&&b.setChildren(a[E],E);return a.verbatimLatex!==void 0&&(b.verbatimLatex=a.verbatimLatex),a.subsupPlacement&&(b.subsupPlacement=a.subsupPlacement),a.explicitSubsupPlacement&&(b.explicitSubsupPlacement=!0),a.isFunction&&(b.isFunction=!0),a.isExtensibleSymbol&&(b.isExtensibleSymbol=!0),a.skipBoundary&&(b.skipBoundary=!0),a.captureSelection&&(b.captureSelection=!0),b}function dm(a){if(a&&Array.isArray(a))return a.map(y=>y==="<null>"?null:typeof y=="object"&&"group"in y?{group:y.group.map(b=>dd(b))}:typeof y=="object"&&"atoms"in y?y.atoms.map(b=>dd(b)):y)}var s0={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"]},ph={"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]$/},l0=/^[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5]$/,fm=/^[\u0393|\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A6\u03A8\u03A9]$/,hm=[/^[a-z]$/,/^[A-Z]$/,l0,fm],pm={iso:["it","it","it","it"],tex:["it","it","it","up"],french:["it","up","up","up"],upright:["up","up","up","up"]},mm=class extends na{constructor(){super("math")}createAtom(a,y,b){var E,ee,ie,oe;if(y===null)return new Wr({type:"mord",mode:"math",command:a,value:a,style:b});const ve=window.MathfieldElement.isFunction((E=y.command)!=null?E:a);if(y.definitionType==="symbol"){const Te=new Wr({type:(ee=y.type)!=null?ee:"mord",mode:"math",command:(ie=y.command)!=null?ie:a,value:String.fromCodePoint(y.codepoint),style:b});return ve&&(Te.isFunction=!0),a.startsWith("\\")&&(Te.verbatimLatex=a),Te}const Ee=new Wr({type:"mord",mode:"math",command:(oe=y.command)!=null?oe:a,value:a,style:b});return ve&&(Ee.isFunction=!0),a.startsWith("\\")&&(Ee.verbatimLatex=a),Ee}serialize(a,y){const b=gm(a,pe(we({},y),{defaultMode:"math"}));return b.length===0||y.defaultMode!=="text"?b:["$ ",...b," $"]}getFont(a,y){console.assert(y.variant!==void 0);let{variant:b}=y,{variantStyle:E}=y;b==="normal"&&!E&&/[\u00A3\u0131\u0237]/.test(a.value)&&(b="main",E="italic"),b==="normal"&&!E&&a.value.length===1&&hm.forEach((ve,Ee)=>{var Te;ve.test(a.value)&&pm[(Te=y.letterShapeStyle)!=null?Te:"tex"][Ee]==="it"&&(E="italic")}),E==="up"&&(E=void 0);const ee=E?b+"-"+E:b;console.assert(s0[ee]!==void 0);const[ie,oe]=s0[ee];return ph[b]&&!ph[b].test(a.value)?(a.value=Vn(a.value,b,E),null):(l0.test(a.value)&&(a.classes+=" lcGreek"),oe&&(a.classes+=" "+oe),ie)}};function gm(a,y){const{parent:b}=a[0],E=u0(b);return Zi(a,"variant").map(ee=>{const ie=u0(ee[0]);let oe="";ie&&ie!==E&&(oe={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"}[ie],console.assert(oe!==void 0));const ve=vo(ee.map(Ee=>Ee._serialize(y)));return oe?Ki(oe,ve):ve})}function u0(a){if(!a)return"";const{style:y}=a;if(y.variant===void 0)return"";let b=y.variant;return!["calligraphic","fraktur","double-struck","script","monospace","sans-serif"].includes(y.variant)&&y.variantStyle&&y.variantStyle!=="up"&&(b+="-"+y.variantStyle),b}new mm;function vm(a,y){return a.map(b=>b._serialize(y))}function ym(a,y){return Zi(a,"fontShape").map(b=>{const E=vm(b,y),{fontShape:ee}=b[0].style;let ie="";return ee==="it"&&(ie="\\textit"),ee==="sl"&&(ie="\\textsl"),ee==="sc"&&(ie="\\textsc"),ee==="n"&&(ie="\\textup"),!ie&&ee?`{${Ki("\\fontshape",ee)}${vo(E)}}`:ie?Ki(ie,vo(E)):vo(E)})}function bm(a,y){return Zi(a,"fontSeries").map(b=>{const E=ym(b,y),{fontSeries:ee}=b[0].style;let ie="";return ee==="b"&&(ie="\\textbf"),ee==="l"&&(ie="\\textlf"),ee==="m"&&(ie="\\textmd"),ee&&!ie?`{${Ki("\\fontseries",ee)}${vo(E)}}`:ie?Ki(ie,vo(E)):vo(E)})}function xm(a,y){return Zi(a,"fontSize").map(b=>{var E,ee;const ie=bm(b,y),oe=(ee=["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][(E=b[0].style.fontSize)!=null?E:""])!=null?ee:"";return oe?`${oe} ${vo(ie)}`:vo(ie)})}function Sm(a,y,b){return Zi(a,"fontFamily").map(E=>{var ee,ie;const oe=xm(E,y),ve=(ie={roman:"textrm",monospace:"texttt","sans-serif":"textsf"}[(ee=E[0].style.fontFamily)!=null?ee:""])!=null?ie:"";return ve?`\\${ve}{${vo(oe)}}`:E[0].style.fontFamily?`{\\fontfamily{${E[0].style.fontFamily}} ${vo(oe)}}`:b?`\\text{${vo(oe)}}`:vo(oe)})}var c0={roman:"","sans-serif":"ML__sans",monospace:"ML__tt"},wm=class extends na{constructor(){super("text")}createAtom(a,y,b){return y&&y.definitionType==="symbol"?new Qu(a,String.fromCodePoint(y.codepoint),b!=null?b:{}):null}serialize(a,y){return Sm(a,pe(we({},y),{defaultMode:"text"}),y.defaultMode!=="text")}getFont(a,y){var b,E,ee,ie,oe;const{fontFamily:ve}=y;if(c0[ve]?a.classes+=" "+c0[ve]:ve&&a.setStyle("font-family",ve),y.fontShape&&(a.classes+=" ",a.classes+=(b={it:"ML__it",sl:"ML__shape_sl",sc:"ML__shape_sc",ol:"ML__shape_ol"}[y.fontShape])!=null?b:""),y.fontSeries){const Ee=y.fontSeries.match(/(.?[lbm])?(.?[cx])?/);Ee&&(a.classes+=" ",a.classes+=(ee={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"}[(E=Ee[1])!=null?E:""])!=null?ee:"",a.classes+=" ",a.classes+=(oe={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"}[(ie=Ee[2])!=null?ie:""])!=null?oe:"")}return"Main-Regular"}};new wm;var Cm=class extends na{constructor(){super("latex")}createAtom(a){return new Nu(a)}serialize(a,y){return a.filter(b=>b instanceof Nu&&!b.isSuggestion).map(b=>b.value)}getFont(){return null}};new Cm;var Em={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:["","=","","="]}},mh={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:["","=","","="]}},d0={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:["\\","|","",""]}},f0={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:[")",")",")",")"]}},Mm={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:["=","=","=","="]}},km={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:["<",">","",""]}},Dm={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"]}},Am={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:["=","=","=","="]}},Lm={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:["<",">","|",""]}},Pm={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:[".",".",".","."]}},Tm={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"]}},Im={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:["<",">","",""]}},Nm={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 h0(a){const y=a.split("+"),b={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:y.pop()};return y.includes("shift")&&(b.shift=!0),y.includes("alt")&&(b.alt=!0),y.includes("ctrl")&&(b.ctrl=!0),y.includes("cmd")&&(b.cmd=!0),y.includes("win")&&(b.win=!0),y.includes("meta")&&(b.meta=!0),b}function zd(a){let y="";return a.shift&&(y+="shift+"),a.alt&&(y+="alt+"),a.ctrl&&(y+="ctrl+"),a.cmd&&(y+="cmd+"),a.win&&(y+="win+"),a.meta&&(y+="meta+"),y+a.key}var Om={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]"},cf=[],df;function gh(){switch(ye()){case"macos":case"ios":return"apple";case"windows":return"windows"}return"linux"}function mc(a){(!a.platform||a.platform===gh())&&cf.push(a)}function Rm(a,y){var b;const E={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:""};if(!a)return E;for(const[ee,ie]of Object.entries(y.mapping)){if(ie[0]===a)return E.key=`[${ee}]`,E;if(ie[1]===a)return E.shift=!0,E.key=`[${ee}]`,E;if(ie[2]===a)return E.alt=!0,E.key=`[${ee}]`,E;if(ie[3]===a)return E.shift=!0,E.alt=!0,E.key=`[${ee}]`,E}return E.key=(b=Om[a])!=null?b:"",E}function Bm(a){if(a.code)return a;const y=Object.entries(ff().mapping);let b=!1,E=!1,ee="";for(let ie=0;ie<4;ie++){for(const[oe,ve]of y)if(ve[ie]===a.key){ee=oe,ie===3?(b=!0,E=!0):ie===2?b=!0:ie===1&&(E=!0);break}if(ee)break}return new KeyboardEvent(a.type,pe(we({},a),{altKey:b,shiftKey:E,code:ee}))}function Fm(a){var y,b;if(!a||a.key==="Unidentified"||a.key==="Dead")return;const E=a.shiftKey&&a.altKey?3:a.altKey?2:a.shiftKey?1:0;for(const ee of cf)((y=ee.mapping[a.code])==null?void 0:y[E])===a.key?ee.score+=1:(b=ee.mapping[a.code])!=null&&b[E]&&(ee.score=0);cf.sort((ee,ie)=>ie.score-ee.score)}function _m(a){df=cf.find(y=>a.startsWith(y.locale))}function ff(){return df!=null?df:cf[0]}function zm(){switch(gh()){case"apple":return mh;case"windows":return d0;case"linux":return f0}return mh}switch(gh()){case"apple":mc(mh),mc(Mm),mc(Tm),mc(Am);break;case"windows":mc(d0),mc(km),mc(Im),mc(Lm);break;case"linux":mc(f0),mc(Dm),mc(Nm),mc(Pm);break}mc(Em);function vh(a){var y;const b=/macos|ios/.test(ye()),E=a.split("+");let ee="";for(const ie of E)ee&&(ee+=b?"\u2009":'<span class="ML__shortcut-join">+</span>'),ie.startsWith("[Key")?ee+=ie.slice(4,5):ie.startsWith("Key")?ee+=ie.slice(3,4):ie.startsWith("[Digit")?ee+=ie.slice(6,7):ie.startsWith("Digit")?ee+=ie.slice(5,6):ee+=(y={cmd:"\u2318",meta:b?"\u2318":"Ctrl",shift:b?"\u21E7":"Shift",alt:b?"\u2325":"Alt",ctrl:b?"\u2303":"Ctrl","\n":b?"\u23CE":"Return","[return]":b?"\u23CE":"Return","[enter]":b?"\u2324":"Enter","[tab]":b?"\u21E5":"Tab","[escape]":"Esc","[backspace]":b?"\u232B":"Backspace","[delete]":b?"\u2326":"Del","[pageup]":b?"\u21DE":"Page Up","[pagedown]":b?"\u21DF":"Page Down","[home]":b?"\u2912":"Home","[end]":b?"\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"}[ie.toLowerCase()])!=null?y:ie.toUpperCase();return ee}function If(a){if(a instanceof MouseEvent||a instanceof PointerEvent)return{x:a.clientX,y:a.clientY};if(a instanceof TouchEvent){const y=[...a.touches].reduce((E,ee)=>({x:E.x+ee.clientX,y:E.y+ee.clientY}),{x:0,y:0}),b=a.touches.length;return{x:y.x/b,y:y.y/b}}}function Cd(a){const y={alt:!1,control:!1,shift:!1,meta:!1};return(a instanceof MouseEvent||a instanceof PointerEvent||a instanceof TouchEvent||a instanceof KeyboardEvent)&&(a.altKey&&(y.alt=!0),a.ctrlKey&&(y.control=!0),a.metaKey&&(y.meta=!0),a.shiftKey&&(y.shift=!0)),y}function $m(a,y){return!a&&y||a&&!y?!1:!a||!y?!0:a.alt===y.alt&&a.control===y.control&&a.shift===y.shift&&a.meta===y.meta}var Km=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 Nf(a){return a.ctrlKey||a.metaKey||["Dead","Process"].includes(a.key)?!1:a.code===""?!0:Km.has(a.code)}function Of(){var a;let y=document.activeElement;for(;(a=y==null?void 0:y.shadowRoot)!=null&&a.activeElement;)y=y.shadowRoot.activeElement;return y}var Fc=class ad{static get scrim(){return ad._scrim||(ad._scrim=new ad),ad._scrim}static open(y){ad.scrim.open(y)}static close(){ad.scrim.close()}static get state(){return ad.scrim.state}static get element(){return ad.scrim.element}constructor(y){var b,E;this.lightDismiss=(b=y==null?void 0:y.lightDismiss)!=null?b:!0,this.translucent=(E=y==null?void 0:y.translucent)!=null?E:!1,this.state="closed"}get element(){if(this._element)return this._element;const y=document.createElement("div");return y.setAttribute("role","presentation"),y.style.position="fixed",y.style.contain="content",y.style.top="0",y.style.left="0",y.style.right="0",y.style.bottom="0",y.style.zIndex="var(--scrim-zindex, 10099)",y.style.outline="none",this.translucent?(y.style.background="rgba(255, 255, 255, .2)",y.style.backdropFilter="contrast(40%)"):y.style.background="transparent",this._element=y,y}open(y){var b;if(this.state!=="closed")return;this.state="opening",this.onDismiss=y==null?void 0:y.onDismiss,this.savedActiveElement=Of();const{element:E}=this;((b=y==null?void 0:y.root)!=null?b:document.body).appendChild(E),E.addEventListener("click",this),document.addEventListener("touchmove",this,!1),document.addEventListener("scroll",this,!1);const ee=window.innerWidth-document.documentElement.clientWidth;this.savedMarginRight=document.body.style.marginRight,this.savedOverflow=document.body.style.overflow,document.body.style.overflow="hidden";const ie=Number.parseFloat(getComputedStyle(document.body).marginRight);document.body.style.marginRight=`${ie+ee}px`,y!=null&&y.child&&E.append(y.child),this.state="open"}close(){var y,b,E,ee;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:ie}=this;ie.removeEventListener("click",this),document.removeEventListener("touchmove",this,!1),document.removeEventListener("scroll",this,!1),ie.remove(),document.body.style.overflow=(y=this.savedOverflow)!=null?y:"",document.body.style.marginRight=(b=this.savedMarginRight)!=null?b:"",Of()!==this.savedActiveElement&&((ee=(E=this.savedActiveElement)==null?void 0:E.focus)==null||ee.call(E)),ie.innerHTML="",this.state="closed"}handleEvent(y){this.lightDismiss&&(y.target===this._element&&y.type==="click"?(this.close(),y.preventDefault(),y.stopPropagation()):y.target===document&&(y.type==="touchmove"||y.type==="scroll")&&(this.close(),y.preventDefault(),y.stopPropagation()))}};function Hm(a,y,b){let E=null,ee=null,ie=!1,oe=!1,ve=!1;const Ee=new AbortController,Te=Ee.signal;return a.addEventListener("keydown",Ke=>{if(ie||Ke.key==="Process"||Ke.code==="CapsLock"||/(Control|Meta|Alt|Shift)(Left|Right)/.test(Ke.code)){E=null;return}E=Ke,ee=null,b.onKeystroke(Ke)?a.textContent="":E=null},{capture:!0,signal:Te}),a.addEventListener("keypress",Ke=>{ie||(E&&ee&&b.onKeystroke(E),ee=Ke)},{capture:!0,signal:Te}),a.addEventListener("compositionstart",Ke=>{a.textContent="",ie=!0,b.onCompositionStart(Ke.data)},{capture:!0,signal:Te}),a.addEventListener("compositionupdate",Ke=>{ie&&b.onCompositionUpdate(Ke.data)},{capture:!0,signal:Te}),a.addEventListener("compositionend",Ke=>{a.textContent="",ie&&(ie=!1,b.onCompositionEnd(Ke.data))},{capture:!0,signal:Te}),a.addEventListener("beforeinput",Ke=>Ke.stopImmediatePropagation(),{signal:Te}),a.addEventListener("input",Ke=>{var pt;if(!ie&&(a.textContent="",Ke.inputType!=="insertCompositionText")){if(Ke.inputType==="insertFromPaste"){Ke.preventDefault(),Ke.stopPropagation();return}b.onInput((pt=Ke.data)!=null?pt:""),Ke.preventDefault(),Ke.stopPropagation()}},{signal:Te}),a.addEventListener("paste",Ke=>{a.focus({preventScroll:!0}),a.textContent="",b.onPaste(Ke)||Ke.preventDefault(),Ke.stopImmediatePropagation()},{signal:Te}),a.addEventListener("cut",Ke=>b.onCut(Ke),{capture:!0,signal:Te}),a.addEventListener("copy",Ke=>b.onCopy(Ke),{capture:!0,signal:Te}),a.addEventListener("blur",Ke=>{var pt,Tt;if(((Tt=(pt=Ke.relatedTarget)==null?void 0:pt._mathfield)==null?void 0:Tt.element)===y){a.focus({preventScroll:!0}),Ke.preventDefault(),Ke.stopPropagation();return}const rn=Fc.state;if(rn==="open"||rn==="opening"){Ke.preventDefault(),Ke.stopPropagation();return}if(Ke.relatedTarget===Ke.target.getRootNode().host){Ke.preventDefault(),Ke.stopPropagation();return}ve||oe||(ve=!0,E=null,ee=null,b.onBlur(),ve=!1)},{capture:!0,signal:Te}),a.addEventListener("focus",Ke=>{ve||oe||(oe=!0,b.onFocus(),oe=!1)},{capture:!0,signal:Te}),{dispose:()=>Ee.abort(),cancelComposition:()=>{ie&&(a.blur(),requestAnimationFrame(()=>a.focus({preventScroll:!0})))},blur:()=>{typeof a.blur=="function"&&a.blur()},focus:()=>{!oe&&typeof a.focus=="function"&&a.focus({preventScroll:!0})},hasFocus:()=>Of()===a,setAriaLabel:Ke=>a.setAttribute("aria-label",Ke),setValue:Ke=>{var pt;a.textContent=Ke,a.style.left="-1000px",(pt=window.getSelection())==null||pt.selectAllChildren(a)},moveTo:(Ke,pt)=>{a.style.top=`${pt}px`,a.style.left=`${Ke}px`}}}function $d(a){var y;if(!a||!Nf(a))return"";let b;return a.key==="Unidentified"&&a.target&&(b=a.target.value),b=(y=b!=null?b:a.key)!=null?y:a.code,/^(Dead|Return|Enter|Tab|Escape|Delete|PageUp|PageDown|Home|End|Help|ArrowLeft|ArrowRight|ArrowUp|ArrowDown)$/.test(b)&&(b=""),b}function p0(a){a=Bm(a);const y=[];return a.ctrlKey&&y.push("ctrl"),a.metaKey&&y.push("meta"),a.altKey&&y.push("alt"),a.shiftKey&&y.push("shift"),y.length===0?`[${a.code}]`:(y.push(`[${a.code}]`),y.join("+"))}function Zm(a){if(qe()){const y=ye(),b=a.startsWith("!"),E=a.endsWith(y);if(b&&!E||!b&&E)return!0}return a==="!other"?!1:a==="other"}function Wm(a,y,b){if(a.length===0)return"";const E=zd(h0(p0(b))),ee=zd({key:b.key,shift:b.shiftKey,alt:b.altKey,ctrl:b.ctrlKey,meta:b.metaKey||b.ctrlKey&&/macos|ios/.test(ye()),cmd:!1,win:!1});for(let ie=a.length-1;ie>=0;ie--)if((a[ie].key===E||a[ie].key===ee)&&(!a[ie].ifMode||a[ie].ifMode===y))return a[ie].command;return""}function m0(a){let y=a;return Re(y)&&(y=y.length>0?y[0]+"("+y.slice(1).join("")+")":""),y}function Um(a,y){let b=[];if(typeof y=="string"){const ie=ld[y];Re(ie)?b=ie.slice():ie&&b.push(ie)}const E=m0(y),ee=new RegExp("^"+E.replace("\\","\\\\").replace("|","\\|").replace("*","\\*").replace("$","\\$").replace("^","\\^")+"([^*a-zA-Z]|$)");for(const ie of a)ee.test(m0(ie.command))&&b.push(ie.key);return b.map(vh)}function Vm(a,y){if(a.ifPlatform&&!/^!?(macos|windows|android|ios|chromeos|other)$/.test(a.ifPlatform))throw new Error(`Unexpected platform "${a.ifPlatform}" for keybinding ${a.key}`);if(a.ifLayout!==void 0&&(y.score===0||!a.ifLayout.includes(y.id)))return;const b=h0(a.key);let E=a.ifPlatform;if(b.cmd){if(E&&E!=="macos"&&E!=="ios")throw new Error('Unexpected "cmd" modifier with platform "'+E+`"
"cmd" modifier can only be used with macOS or iOS platform.`);E||(E=ye()==="ios"?"ios":"macos"),b.win=!1,b.cmd=!1,b.meta=!0}if(b.win){if(E&&E!=="windows")throw new Error('Unexpected "win" modifier with platform "'+E+`"
"win" modifier can only be used with Windows platform.`);E="windows",b.win=!1,b.cmd=!1,b.meta=!0}if(E&&!Zm(E))return;if(/^\[.+\]$/.test(b.key))return pe(we({},a),{key:zd(b)});const ee=Rm(b.key,y);if(!ee)return pe(we({},a),{key:zd(b)});if(ee.shift&&b.shift||ee.alt&&b.alt)throw new Error(`The keybinding ${a.key} (${yh(a.command)}) is conflicting with the key combination ${zd(ee)} using the ${y.displayName} keyboard layout`);return ee.shift=ee.shift||b.shift,ee.alt=ee.alt||b.alt,ee.meta=b.meta,ee.ctrl=b.ctrl,pe(we({},a),{key:zd(ee)})}function yh(a){if(Array.isArray(a)){const y=[...a];return y.shift()+"("+y.map(b=>typeof b=="string"?`"${b}"`:b.toString()).join(", ")+")"}return a}function jm(a,y){const b=[],E=[];for(const ee of a)try{const ie=Vm(ee,y);if(!ie)continue;const oe=E.find(ve=>ve.key===ie.key&&ve.ifMode===ie.ifMode);if(oe)throw new Error(`Ambiguous key binding ${ee.key} (${yh(ee.command)}) matches ${oe.key} (${yh(oe.command)}) with the ${y.displayName} keyboard layout`);E.push(ie)}catch(ie){ie instanceof Error&&b.push(ie.message)}return[E,b]}var Gm=class extends No{constructor(){super("latex")}createAtom(a){return new Nu(a)}onPaste(a,y){if(!y)return!1;const b=typeof y=="string"?y:y.getData("application/x-latex")||y.getData("text/plain");return b&&a.model.contentWillChange({inputType:"insertFromPaste",data:b})?(a.stopCoalescingUndo(),a.stopRecording(),this.insert(a.model,b)&&(a.startRecording(),a.snapshot("paste"),a.model.contentDidChange({inputType:"insertFromPaste"}),Ql(a)),a.startRecording(),!0):!1}insert(a,y,b){if(!a.contentWillChange({data:y,inputType:"insertText"}))return!1;b||(b={}),b.insertionMode||(b.insertionMode="replaceSelection"),b.selectionMode||(b.selectionMode="placeholder");const{silenceNotifications:E}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const ee=a.silenceNotifications;a.silenceNotifications=!0,b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(kl(a.selection)):b.insertionMode==="replaceAll"?(a.root.setChildren([],"body"),a.position=0):b.insertionMode==="insertBefore"?a.collapseSelection("backward"):b.insertionMode==="insertAfter"&&a.collapseSelection("forward");const ie=[];for(const Ee of y)ue.test(Ee)&&ie.push(new Nu(Ee));let oe=a.at(a.position);if(oe instanceof af&&(oe=oe.lastChild),!(oe.parent instanceof af)){const Ee=new af("");oe.parent.addChildAfter(Ee,oe),oe=Ee.firstChild}const ve=oe.parent.addChildrenAfter(ie,oe);return a.silenceNotifications=ee,b.selectionMode==="before"||(b.selectionMode==="item"?a.setSelection(a.anchor,a.offsetOf(ve)):ve&&(a.position=a.offsetOf(ve))),a.contentDidChange({data:y,inputType:"insertText"}),a.silenceNotifications=E,!0}};function Ym(a){return a.atoms.find(y=>y.type==="latexgroup")}function hf(a){var y,b;const E=a.atoms.find(ee=>ee.type==="latexgroup");return E?(b=(y=E.body)==null?void 0:y.filter(ee=>ee.type==="latex"))!=null?b:[]:[]}function g0(a,y){var b;let E=0,ee=!1;const ie=Number.isFinite(y==null?void 0:y.before)?(b=y==null?void 0:y.before)!=null?b:0:a.lastOffset;for(;E<=ie&&!ee;){const Ee=a.at(E);ee=Ee instanceof Nu&&Ee.isSuggestion,ee||E++}if(!ee)return[void 0,void 0];let oe=E,ve=!1;for(;oe<=ie&&!ve;){const Ee=a.at(oe);ve=!(Ee instanceof Nu&&Ee.isSuggestion),ve||oe++}return[E-1,oe-1]}new Gm;function Rf(a){const y=hf(a.model).filter(b=>b.isSuggestion);if(y.length!==0){a.model.position=a.model.offsetOf(y[0].leftSibling);for(const b of y)b.parent.removeChild(b)}}function pf(a,y){var b;const{model:E}=a;Rf(a);for(const Ke of hf(E))Ke.isError=!1;if(!E.selectionIsCollapsed||a.options.popoverPolicy==="off"){Hd(a);return}const ee=[];let ie=E.at(E.position);for(;ie&&ie instanceof Nu&&/^[a-zA-Z\*]$/.test(ie.value);)ie=ie.leftSibling;if(ie&&ie instanceof Nu&&ie.value==="\\")for(ee.push(ie),ie=ie.rightSibling;ie&&ie instanceof Nu&&/^[a-zA-Z\*]$/.test(ie.value);)ee.push(ie),ie=ie.rightSibling;const oe=ee.map(Ke=>Ke.value).join(""),ve=Sn(a,oe);if(ve.length===0){if(/^\\[a-zA-Z\*]+$/.test(oe))for(const Ke of ee)Ke.isError=!0;Hd(a);return}const Ee=(b=y==null?void 0:y.atIndex)!=null?b:0;a.suggestionIndex=Ee<0?ve.length-1:Ee%ve.length;const Te=ve[a.suggestionIndex];if(Te!==oe){const Ke=ee[ee.length-1];Ke.parent.addChildrenAfter([...Te.slice(oe.length-Te.length)].map(pt=>new Nu(pt,{isSuggestion:!0})),Ke),Ed(a,{interactive:!0})}Qm(a,ve)}function v0(a){const[y,b]=g0(a,{before:a.position});if(y===void 0||b===void 0)return!1;let E=!1;return a.getAtoms([y,b]).forEach(ee=>{ee.isSuggestion&&(ee.isSuggestion=!1,E=!0)}),E}function Kd(a,y="accept",b){var E,ee;Hd(a);const ie=Ym(a.model);if(!ie)return!1;if(y==="accept-suggestion"||y==="accept-all"){const Te=hf(a.model).filter(Ke=>Ke.isSuggestion);if(Te.length!==0){for(const Ke of Te)Ke.isSuggestion=!1;a.model.position=a.model.offsetOf(Te[Te.length-1])}if(y==="accept-suggestion")return Te.length!==0}const ve=hf(a.model).filter(Te=>!Te.isSuggestion).map(Te=>Te.value).join(""),Ee=ie.leftSibling;return ie.parent.removeChild(ie),a.model.position=a.model.offsetOf(Ee),a.switchMode((E=b==null?void 0:b.mode)!=null?E:"math"),y==="reject"||(No.insert(a.model,ve,{selectionMode:(ee=b==null?void 0:b.selectItem)!=null&&ee?"item":"placeholder",format:"latex",mode:"math"}),a.snapshot(),a.model.announce("replacement"),a.switchMode("math")),!0}function Bf(a){var y;let b=document.getElementById(a);return b?b.dataset.refcount=Number(Number.parseInt((y=b.dataset.refcount)!=null?y:"0")+1).toString():(b=document.createElement("div"),b.setAttribute("aria-hidden","true"),b.dataset.refcount="1",b.id=a,document.body.append(b)),b}function bh(a){var y;const b=document.getElementById(a);if(!b)return;const E=Number.parseInt((y=b.getAttribute("data-refcount"))!=null?y:"0");E<=1?b.remove():b.dataset.refcount=Number(E-1).toString()}function Xm(a,y){const b=new Fa({from:a.context}),E=new Wr({mode:"math",type:"root",body:Au(y,{context:b})}),ee=ul(lf(new oi(E.render(b),{classes:"ML__base"}),b));return Vl(ee,{classes:"ML__latex"}).toMarkup()}function Qm(a,y){var b;if(y.length===0){Hd(a);return}let E="";for(const[ie,oe]of y.entries()){const ve=oe,Ee=Xm(a,oe),Te=Um(a.keybindings,ve).join("<br>");E+=`<li role="button" data-command="${ve}" ${ie===a.suggestionIndex?"class=ML__popover__current":""}><span class="ML__popover__latex">${ve}</span><span class="ML__popover__command">${Ee}</span>`,Te&&(E+=`<span class="ML__popover__keybinding">${Te}</span>`),E+="</li>"}const ee=Jm(a,`<ul>${E}</ul>`);xh()&&((b=ee.querySelector(".ML__popover__current"))==null||b.scrollIntoView({block:"nearest",inline:"nearest"})),setTimeout(()=>{var ie;ee&&!xh()&&(ee.classList.add("is-visible"),Ff(a),(ie=ee.querySelector(".ML__popover__current"))==null||ie.scrollIntoView({block:"nearest",inline:"nearest"}))},32)}function xh(){const a=document.getElementById("mathlive-suggestion-popover");return a?a.classList.contains("is-visible"):!1}function Ff(a,y){var b;if(!a.element||a.element.mathfield!==a||!xh())return;if(((b=a.model.at(a.model.position))==null?void 0:b.type)!=="latex"){Hd(a);return}if(y!=null&&y.deferred){setTimeout(()=>Ff(a),32);return}const E=hc(a.field);if(!E)return;const ee=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,ie=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,oe=window.innerWidth-document.documentElement.clientWidth,ve=window.innerHeight-document.documentElement.clientHeight,Ee=window.mathVirtualKeyboard.boundingRect.height,Te=document.getElementById("mathlive-suggestion-popover");E.x+Te.offsetWidth/2>ie-oe?Te.style.left=`${ie-Te.offsetWidth-oe}px`:E.x-Te.offsetWidth/2<0?Te.style.left="0":Te.style.left=`${E.x-Te.offsetWidth/2}px`;const Ke=E.y-E.height;ee-ve-Ee-E.y<Ke?(Te.classList.add("ML__popover--reverse-direction"),Te.classList.remove("top-tip"),Te.classList.add("bottom-tip"),Te.style.top=`${E.y-E.height-Te.offsetHeight-15}px`):(Te.classList.remove("ML__popover--reverse-direction"),Te.classList.add("top-tip"),Te.classList.remove("bottom-tip"),Te.style.top=`${E.y+15}px`)}function Hd(a){a.suggestionIndex=0;const y=document.getElementById("mathlive-suggestion-popover");y&&(y.classList.remove("is-visible"),y.innerHTML="")}function Jm(a,y){let b=document.getElementById("mathlive-suggestion-popover");return b||(b=Bf("mathlive-suggestion-popover"),uc("suggestion-popover"),uc("core"),b.addEventListener("pointerdown",E=>E.preventDefault()),b.addEventListener("click",E=>{let ee=E.target;for(;ee&&!ee.dataset.command;)ee=ee.parentElement;ee&&(Kd(a,"reject"),No.insert(a.model,ee.dataset.command,{selectionMode:"placeholder",format:"latex",mode:"math"}),a.dirty=!0,a.focus())})),b.innerHTML=window.MathfieldElement.createHTML(y),b}function qm(){document.getElementById("mathlive-suggestion-popover")&&(bh("mathlive-suggestion-popover"),x("suggestion-popover"),x("core"))}function eg(){const a=String(new Error().stack).replace(/^Error.*\n/,"").split(`
`);if(a.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 y=a[1],b=y.match(/http.*\.ts[\?:]/);return b&&(y=a[2]),b=y.match(/(https?:.*):[0-9]+:[0-9]+/),b||(b=y.match(/at (.*(\.ts))[\?:]/),b||(b=y.match(/at (.*(\.mjs|\.js))[\?:]/))),b?b[1]:(console.error(a),console.error(`Can't use relative paths to specify assets location because the source file location could not be determined (unexpected location "${y}").`),"")}var _f=null,y0,b0,Sh=((b0=(y0=globalThis==null?void 0:globalThis.document)==null?void 0:y0.currentScript)==null?void 0:b0.src)||eg();function x0(a){return gd(this,null,function*(){if(/^(?:[a-z+]+:)?\/\//i.test(a))return new URL(a).href;if(_f===null)try{const y=yield fetch(Sh,{method:"HEAD"});y.status===200&&(_f=y.url)}catch(y){console.error(`Invalid URL "${a}" (relative to "${Sh}")`)}return new URL(a,_f!=null?_f:Sh).href})}function tg(a,y,b={}){return new FontFace(a,`url(${y}.woff2) format('woff2')`,b)}var gc="not-loaded";function ng(){return gd(this,null,function*(){return gc="not-loaded",zf()})}function zf(){return gd(this,null,function*(){var a;if(gc!=="not-loaded")return;if(gc="loading",(a=getComputedStyle(document.documentElement).getPropertyValue("--ML__static-fonts"))!=null?a:!1){gc="ready";return}if(document.body.classList.remove("ML__fonts-did-not-load"),"fonts"in document){const b=["KaTeX_Main","KaTeX_Math","KaTeX_AMS","KaTeX_Caligraphic","KaTeX_Fraktur","KaTeX_SansSerif","KaTeX_Script","KaTeX_Typewriter","KaTeX_Size1","KaTeX_Size2","KaTeX_Size3","KaTeX_Size4"],E=Array.from(document.fonts).map(oe=>oe.family);if(b.every(oe=>E.includes(oe))){gc="ready";return}if(!window.MathfieldElement.fontsDirectory){gc="not-loaded";return}const ee=yield x0(window.MathfieldElement.fontsDirectory);if(!ee){document.body.classList.add("ML__fonts-did-not-load"),gc="error";return}const ie=[["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(oe=>tg(oe[0].replace(/-[a-zA-Z]+$/,""),`${ee}/${oe[0]}`,oe[1]));try{(yield Promise.all(ie.map(ve=>{try{return ve.load()}catch(Ee){}}))).forEach(ve=>document.fonts.add(ve)),gc="ready";return}catch(oe){console.error(`MathLive 0.98.5: The math fonts could not be loaded from "${ee}"`,{cause:oe}),document.body.classList.add("ML__fonts-did-not-load")}gc="error"}})}function rg(a){let y=0;for(let b=0;b<a.length;b++)y=y*31+a.charCodeAt(b),y=y|0;return Math.abs(y)}function Ql(a,y){a&&(a.dirty||(a.dirty=!0,requestAnimationFrame(()=>{ec(a)&&a.dirty&&(a.atomBoundsCache=new Map,Ed(a,y),a.atomBoundsCache=void 0)})))}function ig(a,y){var b;y=y!=null?y:{};const E=new Fa({from:pe(we({},a.context),{atomIdsSettings:{seed:y.forHighlighting?rg(Wr.serialize([a.model.root],{expandMacro:!1,defaultMode:a.options.defaultMode})):"random",groupNumbers:(b=y.forHighlighting)!=null?b:!1},letterShapeStyle:a.options.letterShapeStyle}),mathstyle:a.options.defaultMode==="inline-math"?"textstyle":"displaystyle"}),ee=a.model.root.render(E);return Vl(lf(ee,E),{classes:a.hasEditablePrompts?"ML__latex ML__prompting":"ML__latex",attributes:{translate:"no","aria-hidden":"true"}})}function S0(a,y){const{model:b}=a;b.root.caret=void 0,b.root.isSelected=!1,b.root.containsCaret=!0;for(const ee of b.atoms)ee.caret=void 0,ee.isSelected=!1,ee.containsCaret=!1;if(b.selectionIsCollapsed){const ee=b.at(b.position);ee.caret=a.model.mode;let ie=ee.parent;for(;ie;)ie.containsCaret=!0,ie=ie.parent}else{const ee=b.getAtoms(b.selection,{includeChildren:!0});for(const ie of ee)ie.isSelected=!0}return ig(a,y).toMarkup()}function Ed(a,y){if(!ec(a))return;y!=null||(y={});const b=a.element.querySelector("[part=virtual-keyboard-toggle]");b&&(b.style.display=a.hasEditableContent?"":"none");const E=a.field;if(!E)return;const ee=a.isSelectionEditable&&a.hasFocus(),ie=E.classList.contains("ML__focused");ie&&!ee?E.classList.remove("ML__focused"):!ie&&ee&&E.classList.add("ML__focused");let oe=S0(a,y);const ve=a.element.querySelector("[part=menu-toggle]");if(ve&&(a.model.atoms.length<=1||a.disabled||a.readOnly&&!a.hasEditableContent||a.userSelect==="none"?ve.style.display="none":ve.style.display=""),a.model.atoms.length<=1){const Ee=a.options.contentPlaceholder;Ee&&(oe+=`<span part=placeholder class="ML__content-placeholder">${Lu(Ee)}</span>`)}E.innerHTML=window.MathfieldElement.createHTML(oe),$f(a,y.interactive),a.dirty=!1}function $f(a,y){const b=a.field;if(!b)return;for(const ve of b.querySelectorAll(".ML__selection, .ML__contains-highlight"))ve.remove();!(y!=null&&y)&&gc!=="error"&&gc!=="ready"&&setTimeout(()=>{gc==="ready"?$f(a):setTimeout(()=>$f(a),128)},32);const E=a.model,ee=b.offsetWidth,ie=b.getBoundingClientRect().width;let oe=Math.floor(ie)/ee;if(oe=isNaN(oe)?1:oe,E.selectionIsCollapsed){Ff(a,{deferred:!0});let ve=E.at(E.position);for(;ve&&ve.type!=="prompt"&&!(ve.containsCaret&&ve.displayContainsHighlight);)ve=ve.parent;if(ve!=null&&ve.containsCaret&&ve.displayContainsHighlight){const Ee=ud(a,Ac(a,ve),oe);if(Ee){Ee.left/=oe,Ee.right/=oe,Ee.top/=oe,Ee.bottom/=oe;const Te=document.createElement("div");Te.classList.add("ML__contains-highlight"),Te.style.position="absolute",Te.style.left=`${Ee.left+1}px`,Te.style.top=`${Math.ceil(Ee.top)}px`,Te.style.width=`${Math.ceil(Ee.right-Ee.left)}px`,Te.style.height=`${Math.ceil(Ee.bottom-Ee.top)}px`,b.insertBefore(Te,b.childNodes[0])}}return}for(const ve of ag(Ts(a,{excludeAtomsWithBackground:!0}))){ve.left/=oe,ve.right/=oe,ve.top/=oe,ve.bottom/=oe;const Ee=document.createElement("div");Ee.classList.add("ML__selection"),Ee.style.position="absolute",Ee.style.left=`${ve.left}px`,Ee.style.top=`${ve.top}px`,Ee.style.width=`${Math.ceil(ve.right-ve.left)}px`,Ee.style.height=`${Math.ceil(ve.bottom-ve.top-1)}px`,b.insertBefore(Ee,b.childNodes[0])}}function ag(a){let y=[];for(const b of a){let E=!1;for(const ee of y)if(b.left===ee.left&&b.right===ee.right&&b.top===ee.top&&b.bottom===ee.bottom){E=!0;break}E||y.push(b)}a=y,y=[];for(const b of a){let E=0;for(const ee of a)if(b.left>=ee.left&&b.right<=ee.right&&b.top>=ee.top&&b.bottom<=ee.bottom&&(E+=1,E>1))break;E===1&&y.push(b)}return y}var w0=3,_c;function cc(a,y){y=we({target:"mathfield",canUndo:!1,audioFeedback:void 0,changeContent:!1,changeSelection:!1},y!=null?y:{}),_c||(_c={});for(const b of Object.keys(a))console.assert(!_c[b],"Selector already defined: ",b),_c[b]=pe(we({},y),{fn:a[b]})}function wh(a){let y;if(Array.isArray(a)){if(a[0]==="performWithFeedback")return wh(a[1]);y=a[0]}else y=a;return y=y.replace(/-\w/g,b=>b[1].toUpperCase()),_c[y]}function Zd(a){var y;return(y=wh(a))==null?void 0:y.target}function og(a,y){var b;if(!y)return!1;let E,ee=[],ie=!1,oe=!1;Re(y)?(E=y[0],ee=y.slice(1)):E=y,E=E.replace(/-\w/g,Te=>Te[1].toUpperCase());const ve=_c[E],Ee=ve==null?void 0:ve.target;if(Ee==="model"){if(!a.isSelectionEditable&&(ve!=null&&ve.changeContent))return a.model.announce("plonk"),!1;/^(delete|add)/.test(E)&&(E!=="deleteBackward"&&a.flushInlineShortcutBuffer(),a.snapshot(E)),/^complete/.test(E)||Rf(a),_c[E].fn(a.model,...ee),pf(a),oe=!0,ie=!0}else if(Ee==="virtual-keyboard")oe=(b=window.mathVirtualKeyboard.executeCommand(y))!=null?b:!1,ie=!0;else if(_c[E]){if(!a.isSelectionEditable&&(ve!=null&&ve.changeContent))return a.model.announce("plonk"),!1;/^(undo|redo)/.test(E)&&a.flushInlineShortcutBuffer(),oe=_c[E].fn(a,...ee),ie=!0}else throw new Error(`Unknown command "${E}"`);return Ee!=="virtual-keyboard"&&(!a.model.selectionIsCollapsed||ve!=null&&ve.changeSelection&&y!=="deleteBackward")&&(a.flushInlineShortcutBuffer(),ve!=null&&ve.changeContent||a.stopCoalescingUndo(),a.defaultStyle={}),oe&&Ql(a),ie}function sg(a,y){var b;if(!a)return!1;a.focus(),vp.keypressVibration&&Xe()&&navigator.vibrate(w0);const E=wh(y);window.MathfieldElement.playSound((b=E==null?void 0:E.audioFeedback)!=null?b:"keypress");const ee=a.executeCommand(y);return a.scrollIntoView(),ee}cc({performWithFeedback:(a,y)=>sg(a,y)});function lg(a){return pf(a,{atIndex:a.suggestionIndex+1}),!1}function ug(a){return pf(a,{atIndex:a.suggestionIndex-1}),!1}cc({complete:Kd},{target:"mathfield",audioFeedback:"return",canUndo:!0,changeContent:!0,changeSelection:!0}),cc({nextSuggestion:lg,previousSuggestion:ug},{target:"mathfield",audioFeedback:"keypress",changeSelection:!0});var Kf="mathlive#virtual-keyboard-message";function Ch(a){var y;return a.type!=="message"?!1:((y=a.data)==null?void 0:y.type)===Kf}var cg=class em{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 em),this._singleton}set alphabeticLayout(y){this.sendMessage("update-setting",{alphabeticLayout:y})}set layouts(y){this.sendMessage("update-setting",{layouts:y})}get normalizedLayouts(){return[]}set editToolbar(y){this.sendMessage("update-setting",{editToolbar:y})}set actionKeycap(y){this.sendMessage("update-setting",{actionKeycap:y})}set shiftKeycap(y){this.sendMessage("update-setting",{shiftKeycap:y})}set backspaceKeycap(y){this.sendMessage("update-setting",{backspaceKeycap:y})}set tabKeycap(y){this.sendMessage("update-setting",{tabKeycap:y})}set container(y){throw new Error("Container inside an iframe cannot be changed")}show(y){this.sendMessage("show",y)}hide(y){this.sendMessage("hide",y)}get isShifted(){return this._isShifted}get visible(){return this._boundingRect.height>0}set visible(y){y?this.show():this.hide()}get boundingRect(){return this._boundingRect}executeCommand(y){return this.sendMessage("execute-command",{command:y}),!0}updateToolbar(y){this.sendMessage("update-toolbar",y)}update(y){this.sendMessage("update-setting",y)}connect(){this.sendMessage("connect")}disconnect(){this.sendMessage("disconnect")}addEventListener(y,b,E){this.listeners[y]||(this.listeners[y]=new Set),this.listeners[y].has(b)||this.listeners[y].add(b)}dispatchEvent(y){return!this.listeners[y.type]||this.listeners[y.type].size===0?!0:(this.listeners[y.type].forEach(b=>{typeof b=="function"?b(y):b==null||b.handleEvent(y)}),!y.defaultPrevented)}removeEventListener(y,b,E){this.listeners[y]&&this.listeners[y].delete(b)}handleEvent(y){if(Ch(y)){if(!rl(y.origin,this.originValidator))throw new DOMException(`Message from unknown origin (${y.origin}) cannot be handled`,"SecurityError");this.handleMessage(y.data)}}handleMessage(y){const{action:b}=y;if(b==="execute-command"){const{command:E}=y;Zd(E)==="virtual-keyboard"&&this.executeCommand(E);return}if(b==="synchronize-proxy"){this._boundingRect=y.boundingRect,this._isShifted=y.isShifted;return}if(b==="geometry-changed"){this._boundingRect=y.boundingRect,this.dispatchEvent(new Event("geometrychange"));return}}sendMessage(y,b={}){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(we({type:Kf,action:y},b),this.targetOrigin)}},C0={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]"]]}},Hf={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"}]},mf;function E0(a,y){var b,E,ee;const ie=fd.singleton;if(!ie)return;const oe=Wd(a),ve=(E=(b=ie.getKeycap(oe==null?void 0:oe.id))==null?void 0:b.variants)!=null?E:"";if(typeof ve=="string"&&!M0(ve)||Array.isArray(ve)&&ve.length===0){y==null||y();return}const Ee={};let Te="";for(const _r of fg(ve)){const Ai=D0(_r),Pr=Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);Ee[Pr]=Ai;const[ui,Pi]=Zf(Ai);Te+=`<div id=${Pr} class="item ${Pi}">${ui}</div>`}const Ke=document.createElement("div");Ke.setAttribute("aria-hidden","true"),Ke.className="MLK__variant-panel",Ke.style.height="auto";const pt=Object.keys(Ee).length;let Tt=5;pt===1?Tt=1:pt===2||pt===4?Tt=2:pt===3||pt===5||pt===6?Tt=3:pt>=7&&pt<14&&(Tt=4),Ke.style.width=`calc(var(--variant-keycap-length) * ${Tt} + 12px)`,Ke.innerHTML=vp.createHTML(Te),Fc.open({root:(ee=ie==null?void 0:ie.container)==null?void 0:ee.querySelector(".ML__keyboard"),child:Ke}),mf=new AbortController;const{signal:rn}=mf,pn=a==null?void 0:a.getBoundingClientRect();if(pn){pn.top-Ke.clientHeight<0&&(Ke.style.width="auto",pt<=6?Ke.style.height="56px":pt<=12?Ke.style.height="108px":pt<=18?Ke.style.height="205px":Ke.classList.add("compact"));const _r=Math.max(0,Math.min(window.innerWidth-Ke.offsetWidth,(pn.left+pn.right-Ke.offsetWidth)/2)),Ai=pn.top-Ke.clientHeight+5;Ke.style.transform=`translate(${_r}px, ${Ai}px)`,Ke.classList.add("is-visible"),requestAnimationFrame(()=>{Ke.addEventListener("pointerup",Pr=>{const ui=Wd(Pr.target);!(ui!=null&&ui.id)||!Ee[ui.id]||(Eh(Ee[ui.id]),gf(),y==null||y(),Pr.preventDefault())},{capture:!0,passive:!1,signal:rn}),Ke.addEventListener("pointerenter",Pr=>{const ui=Wd(Pr.target);!(ui!=null&&ui.id)||!Ee[ui.id]||ui.classList.add("is-active")},{capture:!0,signal:rn}),Ke.addEventListener("pointerleave",Pr=>{const ui=Wd(Pr.target);!(ui!=null&&ui.id)||!Ee[ui.id]||ui.classList.remove("is-active")},{capture:!0,signal:rn}),window.addEventListener("pointercancel",()=>{gf(),y==null||y()},{signal:rn}),window.addEventListener("pointerup",()=>{gf(),y==null||y()},{signal:rn})})}}function gf(){mf==null||mf.abort(),mf=null,Fc.state==="open"&&Fc.close()}function dg(a){if(a==="foreground-color"){const y=[];for(const b of Object.keys(je))y.push({class:"swatch-button",label:'<span style="border: 3px solid '+je[b]+'"></span>',command:["applyStyle",{color:b}]});return y}if(a==="background-color"){const y=[];for(const b of Object.keys(He))y.push({class:"swatch-button",label:'<span style="background:'+He[b]+'"></span>',command:["applyStyle",{backgroundColor:b}]});return y}}function M0(a){return Hf[a]!==void 0}function fg(a){var y;return typeof a!="string"?a:(Hf[a]||(Hf[a]=(y=dg(a))!=null?y:[]),Hf[a])}function hg(a){return typeof a=="string"?a:Object.entries(a).map(([y,b])=>`${y}:${b} !important`).join(";")}function pg(a){return Object.keys(a).map(y=>`${y} {${hg(a[y])}}`).join("")}function vf(a){if(!a)return"";const y=new Fa,b=new Wr({mode:"math",type:"root",body:Au(a,{context:y,args:ee=>ee==="@"?"{\\class{ML__box-placeholder}{\\blacksquare}}":"\\placeholder{}"})}),E=ul(lf(new oi(b.render(y),{classes:"ML__base"}),y));return Vl(E,{classes:"ML__latex"}).toMarkup()}function yf(a){var y;if(Array.isArray(a))return a.map(E=>yf(E)).flat();const b=typeof a=="string"?{markup:a}:a;return"rows"in b&&Array.isArray(b.rows)&&(b.rows=b.rows.map(E=>E.map(ee=>D0(ee)))),(y=b.id)!=null||(b.id="ML__layer_"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36)),[b]}function mg(){var a,y;let E=window.mathVirtualKeyboard.alphabeticLayout;if(E==="auto"){const ve=ff();ve&&(E=ve.virtualLayout),(!E||E==="auto")&&(E=(a={fr:"azerty",be:"azerty",al:"qwertz",ba:"qwertz",cz:"qwertz",de:"qwertz",hu:"qwertz",sk:"qwertz",ch:"qwertz"}[ot.locale.slice(0,2)])!=null?a:"qwerty")}const ee={qwerty:["qwertyuiop"," asdfghjkl ","^zxcvbnm~"],azerty:["azertyuiop","qsdfghjklm","^ wxcvbn ~"],qwertz:["qwertzuiop"," asdfghjkl ","^yxcvbnm~"],dvorak:["^ pyfgcrl ","aoeuidhtns","qjkxbmwvz~"],colemak:[" qwfpgjluy ","arstdhneio","^zxcvbkm~"]},ie=(y=ee[E])!=null?y:ee.qwerty,oe=E==="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 ve of ie){const Ee=[];for(const Te of ve)/[a-z]/.test(Te)?Ee.push({label:Te,class:"hide-shift",shift:{label:Te.toUpperCase()},variants:M0(Te)?Te:void 0}):Te==="~"?E!=="dvorak"?Ee.push("[backspace]"):Ee.push({label:"[backspace]",width:1}):Te==="^"?Ee.push("[shift]"):Te===" "&&Ee.push("[separator-5]");oe.push(Ee)}return oe.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:yf({rows:oe})}}function k0(a){if(a==="alphabetic")return mg();if(typeof a=="string")return console.assert(C0[a]!==void 0,`MathLive 0.98.5: unknown keyboard layout "${a}"`),k0(C0[a]);let y;if("rows"in a&&Array.isArray(a.rows)){console.assert(!("layers"in a||"markup"in a),'MathLive 0.98.5: when providing a "rows" property, "layers" and "markup" are ignored');const ee=a,{rows:ie}=ee,oe=nt(ee,["rows"]);y=pe(we({},oe),{layers:yf({rows:a.rows})})}else if("markup"in a&&typeof a.markup=="string"){const ee=a,{markup:ie}=ee,oe=nt(ee,["markup"]);y=pe(we({},oe),{layers:yf(a.markup)})}else y=we({},a),"layers"in a?y.layers=yf(a.layers):console.error('MathLive 0.98.5: provide either a "rows", "markup" or "layers" property');let b=!1,E=!1;for(const ee of y.layers)if(ee.rows)for(const ie of ee.rows.flat()){Ud(ie)&&(b=!0);const oe=ie.command;typeof oe=="string"&&["undo","redo","cut","copy","paste"].includes(oe)&&(E=!0)}return(!("displayShiftedKeycaps"in a)||a.displayShiftedKeycaps===void 0)&&(y.displayShiftedKeycaps=b),(!("displayEditToolbar"in a)||a.displayEditToolbar===void 0)&&(y.displayEditToolbar=!E),y}function gg(a,y){var b,E;let ee='<div class="left">';if(a.normalizedLayouts.length>1)for(const[ie,oe]of a.normalizedLayouts.entries()){const ve=oe,Ee=[ie===y?"selected":"layer-switch"];ve.tooltip&&Ee.push("MLK__tooltip"),ve.labelClass&&Ee.push(...ve.labelClass.split(" ")),ee+=`<div class="${Ee.join(" ")}"`,ve.tooltip&&(ee+=" data-tooltip='"+((b=ct(ve.tooltip))!=null?b:ve.tooltip)+"' "),ie!==y&&(ee+=`data-layer="${ve.layers[0].id}"`),ee+=`>${(E=ve.label)!=null?E:"untitled"}</div>`}return ee+="</div>",ee}function vg(a,y){let b="";if(a.editToolbar==="none")return"";const ee=[];y.selectionIsCollapsed?ee.push("undo","redo","pasteFromClipboard"):ee.push("cutToClipboard","copyToClipboard","pasteFromClipboard");const ie={undo:`<div class='action ${y.canUndo===!1?"disabled":""}'
data-command='"undo"'
data-tooltip='${ct("tooltip.undo")}'>
<svg><use xlink:href='#svg-undo' /></svg>
</div>`,redo:`<div class='action ${y.canRedo===!1?"disabled":""}'
data-command='"redo"'
data-tooltip='${ct("tooltip.redo")}'>
<svg><use xlink:href='#svg-redo' /></svg>
</div>`,cutToClipboard:`
<div class='action'
data-command='"cutToClipboard"'
data-tooltip='${ct("tooltip.cut to clipboard")}'>
<svg><use xlink:href='#svg-cut' /></svg>
</div>
`,copyToClipboard:`
<div class='action'
data-command='"copyToClipboard"'
data-tooltip='${ct("tooltip.copy to clipboard")}'>
<svg><use xlink:href='#svg-copy' /></svg>
</div>
`,pasteFromClipboard:`
<div class='action'
data-command='"pasteFromClipboard"'
data-tooltip='${ct("tooltip.paste from clipboard")}'>
<svg><use xlink:href='#svg-paste' /></svg>
</div>
`};return b+=ee.map(oe=>ie[oe]).join(""),b}function yg(a){for(const y of a)bg(y)}function bg(a){const y=fd.singleton;if(!y)return;const b={};if(!a.id){if(a.hasAttribute("data-label")&&(b.label=a.dataset.label),a.hasAttribute("data-latex")&&(b.latex=a.dataset.latex),a.hasAttribute("data-key")&&(b.key=a.dataset.key),a.hasAttribute("data-insert")&&(b.insert=a.dataset.insert),a.hasAttribute("data-variants")&&(b.variants=a.dataset.variants),a.hasAttribute("data-aside")&&(b.aside=a.dataset.aside),a.className&&(b.class=a.className),!b.label&&!b.latex&&!b.key&&!b.insert&&(b.latex=a.innerText,b.label=a.innerHTML),a.hasAttribute("data-command"))try{b.command=JSON.parse(a.dataset.command)}catch(E){}a.id=y.registerKeycap(b)}if(!a.innerHTML){const[E,ee]=Zf(b);a.innerHTML=window.MathfieldElement.createHTML(E)}}function xg(){uc("virtual-keyboard"),uc("core"),zf()}function Sg(){x("core"),x("virtual-keyboard")}var wg=`<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 Cg(a){a.resetKeycapRegistry(),xg();const y=document.createElement("div");y.className="ML__keyboard";const b=document.createElement("div");b.className="MLK__plate",b.innerHTML=window.MathfieldElement.createHTML(wg+a.normalizedLayouts.map((oe,ve)=>Eg(a,oe,ve)).join(""));const E=document.createElement("div");E.className="MLK__backdrop",E.appendChild(b),y.appendChild(E),y.addEventListener("pointerdown",kg,{passive:!1});const ee=y.querySelectorAll(".ML__edit-toolbar");if(ee)for(const oe of ee)oe.addEventListener("click",ve=>{var Ee,Te;let Ke=ve.target,pt="";for(;Ke&&!pt;)pt=(Ee=Ke==null?void 0:Ke.getAttribute("data-command"))!=null?Ee:"",Ke=(Te=Ke==null?void 0:Ke.parentElement)!=null?Te:null;pt&&a.executeCommand(JSON.parse(pt))});yg(y.querySelectorAll(".MLK__keycap, .action, .fnbutton, .bigfnbutton"));const ie=y.querySelectorAll(".MLK__layer");console.assert(ie.length>0,"No virtual keyboards available");for(const oe of ie)oe.addEventListener("pointerdown",ve=>ve.preventDefault());return a.currentLayer=a.latentLayer,y}function Eg(a,y,b){const E=[];if(!("layers"in y))return"";for(const ee of y.layers)E.push(`<div tabindex="-1" class="MLK__layer" id="${ee.id}">`),(a.normalizedLayouts.length>1||y.displayEditToolbar)&&(E.push("<div class='MLK__toolbar' role='toolbar'>"),E.push(gg(a,b)),y.displayEditToolbar&&E.push('<div class="ML__edit-toolbar right"></div>'),E.push("</div>")),E.push(Mg(a,ee)),E.push("</div>");return E.join("")}function Mg(a,y){if(typeof y=="string")return y;let b="";if(typeof y.style=="string"?b+=`<style>${y.style}</style>`:typeof y.style=="object"&&(b+=`<style>${pg(y.style)}</style>`),y.backdrop&&(b+=`<div class='${y.backdrop}'>`),y.container&&(b+=`<div class='${y.container}'>`),y.rows){b+="<div class=MLK__rows>";for(const E of y.rows){b+="<div dir='ltr' class=MLK__row>";for(const ee of E)if(ee){const ie=a.registerKeycap(ee),[oe,ve]=Zf(ee);/(^|\s)separator/.test(ve)?b+=`<div class="${ve}"`:b+=`<div tabindex="-1" id="${ie}" class="${ve}"`,ee.tooltip&&(b+=` data-tooltip="${ee.tooltip}"`),b+=`>${oe}</div>`}b+="</div>"}b+="</div>"}else y.markup&&(b+=y.markup);return y.container&&(b+="</div>"),y.backdrop&&(b+="</div>"),b}function Zf(a,y={shifted:!1}){var b,E,ee,ie,oe,ve,Ee;let Te="",Ke=(b=a.class)!=null?b:"";if(y.shifted&&Ud(a)&&(Ke+=" is-active"),y.shifted&&"shift"in a)typeof a.shift=="string"?Te=vf(a.shift):typeof a.shift=="object"&&(Te=a.shift.label?a.shift.label:(E=vf(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?E:""),typeof a.shift=="object"&&(Ke=(ie=(ee=a.shift.class)!=null?ee:a.class)!=null?ie:"");else{if(Te=a.label?a.label:(oe=vf(a.latex||a.insert||"")||a.key)!=null?oe:"",a.shift){let pt;typeof a.shift=="string"?pt=vf(a.shift):a.shift.label?pt=a.shift.label:pt=(ve=vf(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?ve:"",Te+=`<span class="MLK__shift">${pt}</span>`}a.aside&&(Te+=`<aside>${a.aside}</aside>`)}return a.layer&&!/layer-switch/.test(Ke)&&(Ke+=" layer-switch"),/(^|\s)(separator|action|shift|fnbutton|bigfnbutton)($|\s)/.test(Ke)||(Ke+=" MLK__keycap"),!/\bw[0-9]+\b/.test(Ke)&&a.width&&(Ke+=(Ee={0:" w0",.5:" w5",1.5:" w15",2:" w20",5:" w50"}[a.width])!=null?Ee:""),[Te,Ke||"MLK__keycap"]}var Md={"[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 D0(a){var y;if(typeof a=="string"){if(a==="[.]"&&window.MathfieldElement.decimalSeparator===","&&(a="[,]"),!Md[a])return{latex:a};a={label:a}}let b;return"label"in a&&a.label&&Md[a.label]&&(b=pe(we(we({},Md[a.label]),a),{label:Md[a.label].label})),"key"in a&&a.key&&Md[a.key]&&(b=pe(we(we({},Md[a.key]),a),{key:Md[a.key].key})),b?(b.command==="insertDecimalSeparator"&&(b.label=(y=window.MathfieldElement.decimalSeparator)!=null?y:"."),a.label==="[action]"&&(b=we(we({},b),window.mathVirtualKeyboard.actionKeycap)),a.label==="[shift]"&&(b=we(we({},b),window.mathVirtualKeyboard.shiftKeycap)),a.label==="[backspace]"&&(b=we(we({},b),window.mathVirtualKeyboard.backspaceKeycap)),a.label==="[tab]"&&(b=we(we({},b),window.mathVirtualKeyboard.tabKeycap)),b):a}var bf;function kg(a){var y;if(a.button!==0)return;const b=fd.singleton;if(!b)return;let E=a.target;for(;E&&!E.getAttribute("data-layer");)E=E.parentElement;if(E){b.currentLayer=(y=E.getAttribute("data-layer"))!=null?y:"",a.preventDefault();return}const ee=Wd(a.target);if(!(ee!=null&&ee.id))return;const ie=b.getKeycap(ee.id);if(!ie)return;console.assert(a.type==="pointerdown");const oe=new AbortController,ve=oe.signal;ee.classList.add("is-pressed"),ee.addEventListener("pointerenter",Wf(oe),{capture:!0,signal:ve}),ee.addEventListener("pointerleave",Wf(oe),{capture:!0,signal:ve}),ee.addEventListener("pointercancel",Wf(oe),{signal:ve}),ee.addEventListener("pointerup",Wf(oe),{signal:ve}),Ud(ie)&&(ee.classList.add("is-active"),b.shiftPressCount++),ie.variants&&(bf&&clearTimeout(bf),bf=setTimeout(()=>{ee.classList.contains("is-pressed")&&(ee.classList.remove("is-pressed"),ee.classList.add("is-active"),a.target&&"releasePointerCapture"in a.target&&a.target.releasePointerCapture(a.pointerId),E0(ee,()=>{oe.abort(),ee==null||ee.classList.remove("is-active")}))},300)),a.preventDefault()}function Wf(a){return y=>{const b=Wd(y.target);if(!(b!=null&&b.id))return;const E=fd.singleton;if(!E)return;const ee=E.getKeycap(b.id);if(ee){if(y.type==="pointerenter"&&y.target===b&&y.isPrimary&&b.classList.add("is-pressed"),y.type==="pointercancel"){b.classList.remove("is-pressed"),Ud(ee)&&(E.shiftPressCount--,b.classList.toggle("is-active",E.isShifted)),a.abort();return}if(y.type==="pointerleave"&&y.target===b){b.classList.remove("is-pressed"),Ud(ee)&&(E.shiftPressCount--,b.classList.toggle("is-active",E.isShifted));return}if(y.type==="pointerup"){bf&&clearTimeout(bf),Ud(ee)?b.classList.toggle("is-active",E.isShifted):b.classList.contains("is-pressed")&&(b.classList.remove("is-pressed"),E.isShifted&&ee.shift?typeof ee.shift=="string"?E.executeCommand(["insert",ee.shift,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]):Eh(ee.shift):Eh(ee),E.shiftPressCount===1&&!y.shiftKey&&(E.shiftPressCount=0)),a.abort(),y.preventDefault();return}}}}function Eh(a){var y;let b=a.command;!b&&a.insert&&(b=["insert",a.insert,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]),!b&&a.key&&(b=["typedText",a.key,{focus:!0,feedback:!0,simulateKeystroke:!0}]),!b&&a.latex&&(b=["insert",a.latex,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]),b||(b=["typedText",a.label,{focus:!0,feedback:!0,simulateKeystroke:!0}]),(y=fd.singleton)==null||y.executeCommand(b)}function Dg(a){if(a.nodeType!==1)return!1;const y=a.classList;return y.contains("MLK__keycap")||y.contains("shift")||y.contains("action")||y.contains("fnbutton")||y.contains("bigfnbutton")}function Wd(a){if(!a)return;let y=a;for(;y&&!Dg(y);)y=y.parentElement;return y!=null?y:void 0}function Ud(a){return!!a.class&&/(^|\s)shift($|\s)/.test(a.class)}var fd=class tm{constructor(){this.originalContainerBottomPadding=null,this.keycapRegistry={},this._shiftPressCount=0;var y,b,E;this.targetOrigin=window.origin,this.originValidator="none",this._alphabeticLayout="auto",this._layouts=Object.freeze(["default"]),this._editToolbar="default",this._container=(b=(y=window.document)==null?void 0:y.body)!=null?b:null,this._visible=!1,this._rebuilding=!1,this.observer=new ResizeObserver(ee=>{this.adjustBoundingRect(),this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect})}),this.listeners={};try{(E=window.top)==null||E.addEventListener("message",this)}catch(ee){window.addEventListener("message",this)}document.body.addEventListener("focusin",ee=>{const ie=ee.target;ie!=null&&ie.isConnected&&setTimeout(()=>{const oe=A0();oe&&!oe.readOnly&&oe.mathVirtualKeyboardPolicy==="auto"&&lt()&&this.show({animate:!0})},300)}),document.addEventListener("focusout",ee=>{ee.target.mathVirtualKeyboardPolicy!=="manual"&&setTimeout(()=>{A0()||this.hide()},300)})}get currentLayer(){var y,b,E;return(E=(b=(y=this._element)==null?void 0:y.querySelector(".MLK__layer.is-visible"))==null?void 0:b.id)!=null?E:""}set currentLayer(y){var b;if(!this._element){this.latentLayer=y;return}let E=y?this._element.querySelector(`#${y}.MLK__layer`):null;E||(E=this._element.querySelector(".MLK__layer")),E&&((b=this._element.querySelector(".MLK__layer.is-visible"))==null||b.classList.remove("is-visible"),E.classList.add("is-visible")),this.render()}get shiftPressCount(){return this._shiftPressCount}set shiftPressCount(y){var b;this._shiftPressCount=y>2||y<0?0:y,(b=this._element)==null||b.classList.toggle("is-caps-lock",this.shiftPressCount===2),this.render()}get isShifted(){return this._shiftPressCount>0}resetKeycapRegistry(){this.keycapRegistry={}}registerKeycap(y){const b="ML__k"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);return this.keycapRegistry[b]=y,b}getKeycap(y){return y?this.keycapRegistry[y]:void 0}getLayer(y){const b=this.normalizedLayouts;for(const E of b)for(const ee of E.layers)if(ee.id===y)return ee}get alphabeticLayout(){return this._alphabeticLayout}set alphabeticLayout(y){this._alphabeticLayout=y,this.rebuild()}get actionKeycap(){return this._actionKeycap}set actionKeycap(y){this._actionKeycap=typeof y=="string"?{label:y}:y}get shiftKeycap(){return this._shiftKeycap}set shiftKeycap(y){this._shiftKeycap=typeof y=="string"?{label:y}:y}get backspaceKeycap(){return this._backspaceKeycap}set backspaceKeycap(y){this._backspaceKeycap=typeof y=="string"?{label:y}:y}get tabKeycap(){return this._tabKeycap}set tabKeycap(y){this._tabKeycap=typeof y=="string"?{label:y}:y}get layouts(){return this._layouts}set layouts(y){this.updateNormalizedLayouts(y),this.rebuild()}updateNormalizedLayouts(y){const b=Array.isArray(y)?[...y]:[y],E=b.findIndex(ee=>ee==="default");E>=0&&b.splice(E,1,"numeric","symbols","alphabetic","greek"),this._layouts=Object.freeze(b),this._normalizedLayouts=b.map(ee=>k0(ee))}get normalizedLayouts(){return this._normalizedLayouts||this.updateNormalizedLayouts(this._layouts),this._normalizedLayouts}get editToolbar(){return this._editToolbar}set editToolbar(y){this._editToolbar=y,this.rebuild()}get container(){return this._container}set container(y){this._container=y,this.rebuild()}static get singleton(){if(this._singleton===void 0)try{this._singleton=new tm}catch(y){this._singleton=null}return this._singleton}get style(){return this._style}addEventListener(y,b,E){this.listeners[y]||(this.listeners[y]=new Set),this.listeners[y].has(b)||this.listeners[y].add(b)}dispatchEvent(y){return!this.listeners[y.type]||this.listeners[y.type].size===0?!0:(this.listeners[y.type].forEach(b=>{typeof b=="function"?b(y):b==null||b.handleEvent(y)}),!y.defaultPrevented)}removeEventListener(y,b,E){this.listeners[y]&&this.listeners[y].delete(b)}get element(){return this._element}set element(y){var b;this._element!==y&&((b=this._element)==null||b.remove(),this._element=y)}get visible(){return this._visible}set visible(y){y?this.show():this.hide()}get boundingRect(){var y;if(!this._visible)return new DOMRect;const b=(y=this._element)==null?void 0:y.getElementsByClassName("MLK__plate")[0];return b?b.getBoundingClientRect():new DOMRect}adjustBoundingRect(){var y,b;const E=this.boundingRect.height;if(this.container===document.body){(y=this._element)==null||y.style.setProperty("--_keyboard-height",`calc(${E}px + var(--_padding-top) + var(--_padding-bottom) + env(safe-area-inset-bottom, 0))`);const ee=E-1;this.container.style.paddingBottom=this.originalContainerBottomPadding?`calc(${this.originalContainerBottomPadding} + ${ee}px)`:`${ee}px`}else(b=this._element)==null||b.style.setProperty("--_keyboard-height",`${E}px`)}rebuild(){if(this._rebuilding||!this._element)return;this._rebuilding=!0;const y=this.currentLayer;requestAnimationFrame(()=>{this._rebuilding=!1,this._element&&(this._element.remove(),this._element=void 0),this.visible&&(this.buildAndAttachElement(),this.currentLayer=y,this.render(),this.adjustBoundingRect(),this._element.classList.add("is-visible"))})}render(){if(!this._element)return;const y=this.getLayer(this.currentLayer);this._element.classList.toggle("backdrop-is-transparent",!!(y&&(y.backdrop||y.container)));const b=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(b)for(const E of b){const ee=this.getKeycap(E.id);if(ee){const[ie,oe]=Zf(ee,{shifted:this.isShifted});E.innerHTML=window.MathfieldElement.createHTML(ie),E.className=oe}}}show(y){var b;if(this._visible)return;const E=this.container;if(E&&window.mathVirtualKeyboard&&this.stateWillChange(!0)){if(this._element||(this.buildAndAttachElement(),this.adjustBoundingRect()),!this._visible){const ee=this._element.getElementsByClassName("MLK__plate")[0];if(ee&&this.observer.observe(ee),E===window.document.body){const ie=E.style.paddingBottom;this.originalContainerBottomPadding=ie;const oe=ee.offsetHeight-1;E.style.paddingBottom=ie?`calc(${ie} + ${oe}px)`:`${oe}px`}window.addEventListener("mouseup",this),window.addEventListener("blur",this),window.addEventListener("keydown",this,{capture:!0}),window.addEventListener("keyup",this,{capture:!0}),(b=this._element)==null||b.classList.toggle("is-caps-lock",this.shiftPressCount===2),this.currentLayer=this.latentLayer}this._visible=!0,y!=null&&y.animate?requestAnimationFrame(()=>{this._element&&(this._element.classList.add("animate"),this._element.addEventListener("transitionend",()=>{var ee;return(ee=this._element)==null?void 0:ee.classList.remove("animate")},{once:!0}),this._element.classList.add("is-visible"),this.stateChanged())}):(this._element.classList.add("is-visible"),this.stateChanged())}}hide(y){var b;const E=this.container;if(E&&this._visible&&this.stateWillChange(!1)){if(this._visible=!1,this._element){this.latentLayer=this.currentLayer;const ee=this._element.getElementsByClassName("MLK__plate")[0];ee&&this.observer.unobserve(ee),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}),gf(),Sg(),(b=this._element)==null||b.remove(),this._element=void 0,this.originalContainerBottomPadding!==null&&(E.style.paddingBottom=this.originalContainerBottomPadding)}this.stateChanged()}}get height(){var y,b;return(b=(y=this.element)==null?void 0:y.offsetHeight)!=null?b:0}buildAndAttachElement(){var y;console.assert(!this.element),this.element=Cg(this),window.addEventListener("contextmenu",this,{capture:!0}),this.element.addEventListener("contextmenu",b=>{b.shiftKey||((b.ctrlKey||b.button===2)&&E0(b.target),b.preventDefault(),b.stopPropagation())},{capture:!0}),(y=this.container)==null||y.appendChild(this.element)}handleEvent(y){if(Ch(y)){if(!rl(y.origin,this.originValidator))throw new DOMException(`Message from unknown origin (${y.origin}) cannot be handled`,"SecurityError");y.data.action==="disconnect"?this.connectedMathfieldWindow=void 0:y.data.action!=="update-setting"&&y.data.action!=="proxy-created"&&y.data.action!=="execute-command"&&(console.assert(y.source!==void 0),this.connectedMathfieldWindow=y.source),this.handleMessage(y.data,y.source)}if(this._element)switch(y.type){case"mouseup":case"blur":document.body.style.userSelect="",this.shiftPressCount=0;break;case"contextmenu":y.button!==2&&y.preventDefault();break;case"keydown":{y.key==="Shift"&&!y.repeat&&(this.shiftPressCount=1);break}case"keyup":{(y.key==="Shift"||!y.getModifierState("Shift")&&this.shiftPressCount!==2)&&(this.shiftPressCount=0);break}}}handleMessage(y,b){const{action:E}=y;if(E==="execute-command"){const{command:ee}=y,ie=Zd(ee);if(window.top!==void 0&&ie!=="virtual-keyboard")return;this.executeCommand(ee);return}if((E==="connect"||E==="show")&&this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},b),E!=="disconnect"&&window===window.top){if(E==="show"){typeof y.animate!="undefined"?this.show({animate:y.animate}):this.show();return}if(E==="hide"){typeof y.animate!="undefined"?this.hide({animate:y.animate}):this.hide();return}if(E==="update-setting"){y.alphabeticLayout&&(this.alphabeticLayout=y.alphabeticLayout),y.layouts&&(this.layouts=y.layouts),y.editToolbar&&(this.editToolbar=y.editToolbar);return}if(E==="proxy-created"){this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},b);return}}}sendMessage(y,b,E){if(E||(E=this.connectedMathfieldWindow),this.targetOrigin===null||this.targetOrigin==="null"||E===window){window.dispatchEvent(new MessageEvent("message",{source:window,data:we({type:Kf,action:y},b)}));return}if(E)E.postMessage(we({type:Kf,action:y},b),{targetOrigin:this.targetOrigin});else if(b.command&&this.dispatchEvent(new CustomEvent("math-virtual-keyboard-command",{detail:b.command})),y==="execute-command"&&Array.isArray(b.command)&&b.command[0]==="insert"){const ee=b.command[1].split("");for(const ie of ee)this.dispatchEvent(new KeyboardEvent("keydown",{key:ie,bubbles:!0})),this.dispatchEvent(new KeyboardEvent("keyup",{key:ie,bubbles:!0}))}}stateWillChange(y){return this.dispatchEvent(new CustomEvent("before-virtual-keyboard-toggle",{detail:{visible:y},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(y){const b=this._element;if(!b)return;b.classList.toggle("is-math-mode",y.mode==="math"),b.classList.toggle("is-text-mode",y.mode==="text"),b.classList.toggle("can-undo",y.canUndo),b.classList.toggle("can-redo",y.canRedo),b.classList.toggle("can-copy",!y.selectionIsCollapsed),b.classList.toggle("can-copy",!y.selectionIsCollapsed),b.classList.toggle("can-paste",!0);const E=b.querySelectorAll(".ML__edit-toolbar");if(E)for(const ee of E)ee.innerHTML=vg(this,y)}update(y){this._style=y.style,this.updateToolbar(y)}connect(){this.connectedMathfieldWindow=window}disconnect(){this.connectedMathfieldWindow=void 0}executeCommand(y){let b,E=[],ee=Zd(y);return Re(y)?(b=y[0],b==="performWithFeedback"&&(y=y.slice(1),ee=Zd(y)),E=y.slice(1)):b=y,b=b.replace(/-\w/g,ie=>ie[1].toUpperCase()),ee==="virtual-keyboard"?_c[b].fn(void 0,...E):(this.sendMessage("execute-command",{command:y}),!1)}dispose(){window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("message",this)}};function A0(){var a,y;let b=Of(),E=null;for(;b;){if("host"in b&&((y=(a=b.host)==null?void 0:a.tagName)==null?void 0:y.toLowerCase())==="math-field"){E=b.host;break}b=b.parentNode}return E}if(qe()&&!("mathVirtualKeyboard"in window))if(window===window.top){const a=fd.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>a})}else Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>cg.singleton,configurable:!0});function Uf(a){const y={};for(const b of Object.keys(a))switch(b){case"scriptDepth":const E=a.scriptDepth;if(Re(E))y.scriptDepth=[E[0],E[1]];else if(typeof E=="number")y.scriptDepth=[E,E];else if(typeof E=="string"){const[ie,oe]=E.split(",").map(ve=>parseInt(ve.trim()));y.scriptDepth=[ie,oe]}else throw new TypeError("Unexpected value for scriptDepth");break;case"mathVirtualKeyboardPolicy":let ee=a.mathVirtualKeyboardPolicy.toLowerCase();if(ee==="sandboxed"){if(window!==window.top){const ie=fd.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>ie})}ee="manual"}y.mathVirtualKeyboardPolicy=ee;break;case"letterShapeStyle":a.letterShapeStyle==="auto"?ot.locale.startsWith("fr")?y.letterShapeStyle="french":y.letterShapeStyle="tex":y.letterShapeStyle=a.letterShapeStyle;break;case"defaultMode":["text","math","inline-math"].includes(a.defaultMode)?y.defaultMode=a.defaultMode:(console.error('MathLive 0.98.5: valid values for defaultMode are "text", "math" or "inline-math"'),y.defaultMode="math");break;case"macros":y.macros=Ct(a.macros);break;default:Re(a[b])?y[b]=[...a[b]]:typeof a[b]=="object"&&!(a[b]instanceof Element)&&b!=="computeEngine"?y[b]=we({},a[b]):y[b]=a[b]}return y}function kd(a,y){let b;typeof y=="string"?b=[y]:y===void 0?b=Object.keys(a):b=y;const E={};for(const ee of b)a[ee]===null?E[ee]=null:Re(a[ee])?E[ee]=[...a[ee]]:typeof a[ee]=="object"&&!(a[ee]instanceof Element)&&ee!=="computeEngine"?E[ee]=we({},a[ee]):E[ee]=a[ee];return typeof y=="string"?E[y]:E}function Vf(){return{readOnly:!1,defaultMode:"math",macros:{},registers:{},colorMap:Ge,backgroundColorMap:Ae,letterShapeStyle:ot.locale.startsWith("fr")?"french":"tex",minFontScale:0,smartMode:!1,smartFence:!0,smartSuperscript:!0,scriptDepth:[1/0,1/0],removeExtraneousParentheses:!0,isImplicitFunction:a=>["\\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(a),mathModeSpace:"",placeholderSymbol:"\u25A2",contentPlaceholder:"",popoverPolicy:"auto",environmentPopoverPolicy:"off",keybindings:Rd,inlineShortcuts:ms,inlineShortcutTimeout:0,mathVirtualKeyboardPolicy:"auto",virtualKeyboardTargetOrigin:window==null?void 0:window.origin,originValidator:"none",onInlineShortcut:()=>"",onScrollIntoView:null,onExport:vd,value:""}}function L0(a){return a.defaultMode==="inline-math"?"math":a.defaultMode}function hd(a,y){!a||!y||(Re(a)?a.forEach(b=>hd(b,y)):typeof a=="object"&&!a.style.color&&!a.style.backgroundColor&&!a.style.fontFamily&&!a.style.fontShape&&!a.style.fontSeries&&!a.style.fontSize&&!a.style.variant&&!a.style.variantStyle&&(a.applyStyle(y),hd(a.body,y),hd(a.above,y),hd(a.below,y),hd(a.subscript,y),hd(a.superscript,y)))}function Mh(a,y,b,E){function ee(oe,ve){for(const Ee of ie)if(Ee.style[oe]!==ve)return!1;return!0}if(y=a.normalizeRange(y),y[0]===y[1])return!1;const ie=a.getAtoms(y,{includeChildren:!0});E.operation==="toggle"&&(b.color&&ee("color",b.color)&&(b.color="none",delete b.verbatimColor),b.backgroundColor&&ee("backgroundColor",b.backgroundColor)&&(b.backgroundColor="none",delete b.verbatimBackgroundColor),b.fontFamily&&ee("fontFamily",b.fontFamily)&&(b.fontFamily="none"),b.fontSeries&&ee("fontSeries",b.fontSeries)&&(b.fontSeries="auto"),b.fontShape&&ee("fontShape",b.fontShape)&&(b.fontShape="auto"),b.fontSize&&ee("fontSize",b.fontSize)&&(b.fontSize=oa),b.variant&&ee("variant",b.variant)&&(b.variant="normal"),b.variantStyle&&ee("variantStyle",b.variantStyle)&&(b.variantStyle=""));for(const oe of ie)oe.applyStyle(b);return!0}function Ag(a,y){const b=a.at(a.position);if(b.type==="composition")b.value=y;else{const{caret:E}=b;b.caret=void 0;const ee=new ed(y,{mode:b.mode});ee.caret=E,b.parent.addChildAfter(ee,b),a.position+=1}}function Lg(a){const y=a.at(a.position);y.type==="composition"&&(y.parent.removeChild(y),a.position-=1)}kt(["math","displaymath"],wc),kt("center",wc),Jt("displaylines","",{parse:a=>{const y=[];let b=[];a.beginContext({tabular:!0});do{if(a.end()||a.match("<}>"))break;a.matchColumnSeparator()||a.matchRowSeparator()?(y.push([b]),b=[]):b.push(...a.scan(E=>["<}>","&","\\cr","\\\\","\\tabularnewline"].includes(E)))}while(!0);return a.endContext(),y.push([b]),y},createAtom:a=>new Qo("lines",a.args,[],{leftDelim:".",rightDelim:".",columns:[{align:"l"}]})}),Xt("array","{columns:colspec}",(a,y,b,E)=>new Qo(a,kh(y),b,{columns:E[0],mathstyleName:"textstyle"})),Xt(["equation","equation*","subequations"],"",(a,y,b)=>new Qo(a,kh(y),b,{columns:[{align:"c"}]})),Xt(["multline","multline*"],"",wc),Xt(["align","align*","aligned","eqnarray"],"",wc),Xt("split","",wc),Xt(["gather","gathered"],"",wc),Xt(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],"[columns:colspec]",wc),Xt(["smallmatrix","smallmatrix*"],"[columns:colspec]",wc),Xt(["cases","dcases","rcases"],"",wc);function Pg(a){for(const y of a)for(const b of y)if(b.length>0)return!1;return!0}function kh(a,y=1){return Pg(a)?Array(y).fill([[new Wr({type:"first"}),new mo]]):a.map(b=>b.length===0?[[new Wr({type:"first"})]]:b.map(E=>E.length===0?[new Wr({type:"first"})]:(E[0].type!=="first"&&E.unshift(new Wr({type:"first"})),E)))}function wc(a,y=[[[]]],b=[],E=[]){switch(y=kh(y,["split","align","align*","aligned","eqnarray"].includes(a)?2:1),a){case"math":return new Qo(a,y,b,{mathstyleName:"textstyle"});case"displaymath":return new Qo(a,y,b,{mathstyleName:"textstyle"});case"center":return new Qo(a,y,b,{columns:[{align:"c"}]});case"multline":case"multline*":return new Qo(a,y,b,{columns:[{align:"m"}],leftDelim:".",rightDelim:"."});case"split":return new Qo(a,y,b,{columns:[{align:"r"},{align:"l"}],minColumns:2});case"gather":case"gathered":return new Qo(a,y,b,{columns:[{gap:.25},{align:"c"},{gap:0}]});case"pmatrix":case"pmatrix*":return new Qo(a,y,b,{mathstyleName:"textstyle",leftDelim:"(",rightDelim:")",columns:Dd(E[0])});case"bmatrix":case"bmatrix*":return new Qo(a,y,b,{mathstyleName:"textstyle",leftDelim:"[",rightDelim:"]",columns:Dd(E[0])});case"Bmatrix":case"Bmatrix*":return new Qo(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\lbrace",rightDelim:"\\rbrace",columns:Dd(E[0])});case"vmatrix":case"vmatrix*":return new Qo(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\vert",rightDelim:"\\vert",columns:Dd(E[0])});case"Vmatrix":case"Vmatrix*":return new Qo(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\Vert",rightDelim:"\\Vert",columns:Dd(E[0])});case"matrix":case"matrix*":return new Qo(a,y,b,{mathstyleName:"textstyle",leftDelim:".",rightDelim:".",columns:Dd(E==null?void 0:E[0])});case"smallmatrix":case"smallmatrix*":return new Qo(a,y,b,{mathstyleName:"scriptstyle",columns:Dd(E==null?void 0:E[0]),colSeparationType:"small",arraystretch:.5});case"cases":case"dcases":return new Qo(a,y,b,{mathstyleName:a==="dcases"?"displaystyle":"textstyle",arraystretch:1.2,leftDelim:"\\lbrace",rightDelim:".",columns:[{align:"l"},{gap:1},{align:"l"}]});case"rcases":return new Qo(a,y,b,{arraystretch:1.2,leftDelim:".",rightDelim:"\\rbrace",columns:[{align:"l"},{gap:1},{align:"l"}]});case"lines":return new Qo(a,y,b,{leftDelim:".",rightDelim:".",columns:[{align:"l"}]});case"align":case"align*":case"aligned":case"eqnarray":{let ee=0;for(const ve of y)ee=Math.max(ee,ve.length);const ie=[{gap:0},{align:"r"},{gap:.25},{align:"l"}];let oe=2;for(;oe<ee;)ie.push({gap:1},{align:"r"},{gap:.25},{align:"l"}),oe+=2;return ie.push({gap:0}),new Qo(a,y,b,{arraycolsep:0,columns:ie,minColumns:2})}}return new Qo(a,y,b,{mathstyleName:"textstyle"})}function Dd(a){return a!=null?a:[{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"}]}function Tg(a,y){let b=a.at(a.position);for(;b&&!(b.parent instanceof Qo);)b=b.parent;if(b&&b.type==="array"&&b.environmentName,!b||!(b.parent instanceof Qo)){const E=a.at(a.position);if(b=E,!b.parent.parent){let ee=a.extractAtoms([a.position,a.lastOffset]),ie=a.extractAtoms([0,a.position]);ie.length===0&&(ie=Yf()),ee.length===0&&(ee=Yf());let oe;return y.endsWith("column")?(oe=wc("split",[[ie,ee]]),a.root=oe,Ad(oe,0,0)?Ld(a,oe,0,0):Ad(oe,0,1)?Ld(a,oe,0,1):a.position=a.offsetOf(E)):(oe=wc("lines",[[ie],[ee]]),a.root=oe,Ad(oe,0,0)?Ld(a,oe,0,0):Ad(oe,1,0)?Ld(a,oe,1,0):a.position=a.offsetOf(E)),[void 0,[0,0]]}if(b.parent instanceof Gs){const ee=b.parent;let ie=a.extractAtoms([a.position,a.offsetOf(ee.lastChild)]),oe=a.extractAtoms([a.offsetOf(ee.firstChild),a.position]);oe.length===0&&(oe=Yf()),ie.length===0&&(ie=Yf());let ve="pmatrix";const Ee=ee.leftDelim,Te=ee.rightDelim;Ee==="("&&(Te===")"||Te==="?")?ve="pmatrix":(Ee==="["||Ee==="\\lbrack")&&(Te==="]"||Te==="\\rbrack"||Te==="?")?ve="bmatrix":Ee==="\\vert"&&Te==="\\vert"?ve="vmatrix":Ee==="\\Vert"&&Te==="\\Vert"?ve="Vmatrix":(Ee==="{"||Ee==="\\lbrace")&&(Te==="."||Te==="?")&&(ve="cases");const Ke=wc(ve,y.endsWith("column")?[[oe,ie]]:[[oe],[ie]]);return ee.parent.addChildBefore(Ke,ee),ee.parent.removeChild(ee),Ad(Ke,0,0)?Ld(a,Ke,0,0):y.endsWith("column")?Ad(Ke,0,1)?Ld(a,Ke,0,1):a.position=a.offsetOf(b):Ad(Ke,1,0)?Ld(a,Ke,1,0):a.position=a.offsetOf(b),[void 0,[0,0]]}}return b&&b.parent instanceof Qo?[b.parent,b.parentBranch]:[void 0,[0,0]]}function Ad(a,y,b){const E=a.getCell(y,b);return!E||E.length!==2?!1:E[1].type==="placeholder"}function Ig(a,y,b,E){const ee=y.getCell(b,E);return ee?[a.offsetOf(ee[0]),a.offsetOf(ee[ee.length-1])]:-1}function Ld(a,y,b,E){const ee=Ig(a,y,b,E);typeof ee!="number"&&a.setSelection(ee)}function jf(a,y,b,E,ee){const ie=y.getCell(b,E);ie&&a.setPositionHandlingPlaceholder(a.offsetOf(ie[ee==="start"?0:ie.length-1]))}function Gf(a,y){const[b,[E,ee]]=Tg(a,y);if(b)switch(y){case"after row":b.addRowAfter(E),jf(a,b,E+1,0,"end");break;case"after column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnAfter(ee),jf(a,b,E,ee+1,"end");break;case"before row":b.addRowBefore(E),jf(a,b,E,0,"start");break;case"before column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnBefore(ee),jf(a,b,E,ee,"start");break}}function P0(a){return a.contentWillChange({inputType:"insertText"})?(Gf(a,"after row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Ng(a){return a.contentWillChange({inputType:"insertText"})?(Gf(a,"before row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function T0(a){return a.contentWillChange({inputType:"insertText"})?(Gf(a,"after column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Og(a){return a.contentWillChange({inputType:"insertText"})?(Gf(a,"before column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function I0(a,y){if(!a.contentWillChange({}))return!1;a.mathfield.snapshot();let b=".",E=".";switch(y){case"pmatrix":case"pmatrix*":b="(",E=")";break;case"bmatrix":case"bmatrix*":b="[",E="]";break;case"Bmatrix":case"Bmatrix*":b="\\lbrace",E="\\rbrace";break;case"vmatrix":case"vmatrix*":b="\\vert",E="\\vert";break;case"Vmatrix":case"Vmatrix*":b="\\Vert",E="\\Vert";break;case"matrix":case"matrix*":b=".",E=".";break;case"cases":case"dcases":b="\\lbrace";break;case"rcases":E="\\rbrace";break}const ee=a.at(a.position),ie=ee.type==="array"?ee:a.parentEnvironment;return ie.environmentName=y,ie.leftDelim=b,ie.rightDelim=E,a.contentDidChange({}),!0}function N0(a,y){let b=a.at(a.position);for(;b&&!(Array.isArray(b.parentBranch)&&b.parent instanceof Qo);)b=b.parent;if(Array.isArray(b==null?void 0:b.parentBranch)&&(b==null?void 0:b.parent)instanceof Qo){const E=b.parent,ee=b.parentBranch;let ie;switch(y){case"row":if(E.rowCount>1){E.removeRow(ee[0]);const oe=E.getCell(Math.max(0,ee[0]-1),ee[1]);ie=a.offsetOf(oe[oe.length-1])}break;case"column":if(E.colCount>E.minColumns){E.removeColumn(ee[1]);const oe=E.getCell(ee[0],Math.max(0,ee[1]-1));ie=a.offsetOf(oe[oe.length-1])}break}ie&&a.setPositionHandlingPlaceholder(ie)}}function Rg(a){return a.contentWillChange({inputType:"deleteContent"})?(N0(a,"row"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}function Bg(a){return a.contentWillChange({inputType:"deleteContent"})?(N0(a,"column"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}cc({addRowAfter:P0,addColumnAfter:T0,addRowBefore:Ng,addColumnBefore:Og,removeRow:Rg,removeColumn:Bg,setEnvironment:I0},{target:"model",canUndo:!0,changeContent:!0,changeSelection:!0});function Yf(){return[new mo]}var O0=class nm{constructor(y){this.recording=!1,this.model=y,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(y){y&&this.index>=0&&(this.stack[this.index].selection=y),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(y){return this.recording?(y&&y===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>nm.maximumDepth&&(this.stack.shift(),this.index-=1),this.lastOp=y!=null?y:"",!0):!1}};O0.maximumDepth=1e3;var Fg=O0;function Dh(a,y,b){if(a.at(y).mode!=="text")return y;const E=b==="backward"?-1:1;let ee;if(ge.test(a.at(y).value)){let ie=y,oe;do oe=a.at(ie).mode==="text"&&ge.test(a.at(ie).value),ie+=E;while(a.at(ie)&&oe);ee=a.at(ie)?ie-2*E:ie-E}else if(/\s/.test(a.at(y).value)){let ie=y;for(;a.at(ie)&&a.at(ie).mode==="text"&&/\s/.test(a.at(ie).value);)ie+=E;if(!a.at(ie))ee=ie-E;else{let oe=!0;do oe=a.at(ie).mode==="text"&&!/\s/.test(a.at(ie).value),ie+=E;while(a.at(ie)&&oe);ee=a.at(ie)?ie-2*E:ie-E}}else{let ie=y;for(;a.at(ie)&&a.at(ie).mode==="text"&&!/\s/.test(a.at(ie).value);)ie+=E;ee=a.at(ie)?ie:ie-E;let oe=!0;for(;a.at(ie)&&oe;)oe=a.at(ie).mode==="text"&&/\s/.test(a.at(ie).value),oe&&(ee=ie),ie+=E;ee=a.at(ie)?ie-2*E:ie-E}return ee-(E>0?0:1)}function Vd(a,y,b){var E,ee,ie,oe,ve,Ee,Te;const Ke=a.position;(E=b==null?void 0:b.extend)!=null&&E||a.collapseSelection(y);let pt=a.at(a.position);if(y==="forward"&&(pt.type==="subsup"?(pt=pt.rightSibling,pt||(pt=a.at(a.position+1))):pt=a.at(a.position+1)),!pt)return a.announce("plonk"),!1;let Tt=a.offsetOf(pt);if(pt instanceof Qu)Tt=Dh(a,Tt,y);else if(pt instanceof Nu)if(pt.isSuggestion)for(console.assert(y==="forward");pt&&pt instanceof Nu;)pt.isSuggestion=!1,Tt=a.offsetOf(pt),pt=pt.rightSibling;else if(y==="forward"){if(pt=pt.rightSibling,!pt||!(pt instanceof Nu))return a.announce("plonk"),!1;for(;pt&&pt instanceof Nu&&/[a-zA-Z\*]/.test(pt.value);)Tt=a.offsetOf(pt),pt=pt.rightSibling}else{if(pt=pt.leftSibling,!pt||!(pt instanceof Nu))return a.announce("plonk"),!1;for(;pt&&pt instanceof Nu&&/[a-zA-Z\*]/.test(pt.value);)Tt=a.offsetOf(pt),pt=pt.leftSibling}else if(y==="forward"&&pt.type==="mopen"){let rn=0;do pt.type==="mopen"?rn+=1:pt.type==="mclose"&&(rn-=1),pt=pt.rightSibling;while(!pt.isLastSibling&&rn!==0);Tt=a.offsetOf(pt.leftSibling)}else if(y==="backward"&&pt.type==="mclose"){let rn=0;do pt.type==="mopen"?rn+=1:pt.type==="mclose"&&(rn-=1),pt=pt.leftSibling;while(!pt.isFirstSibling&&rn!==0);Tt=a.offsetOf(pt)}else if(y==="backward")if(pt.type==="first")for(;Tt>0&&pt.type==="first";)Tt-=1,pt=a.at(Tt);else{const rn=pt.type;pt.type==="subsup"&&(Tt=a.offsetOf(a.at(Tt).leftSibling)),Tt-=1;let pn=(ee=a.at(Tt))==null?void 0:ee.type;for(;Tt>=0&&pn===rn;)((ie=a.at(Tt))==null?void 0:ie.type)==="subsup"?Tt=a.offsetOf(a.at(Tt).leftSibling):Tt-=1,pn=a.at(Tt).type}else{const{type:rn}=pt;let pn=(oe=a.at(Tt))==null?void 0:oe.type;const{lastOffset:_r}=a;for(;Tt<=_r&&(pn===rn||pn==="subsup");){for(;((ve=a.at(Tt).rightSibling)==null?void 0:ve.type)==="subsup";)Tt=a.offsetOf(a.at(Tt).rightSibling);Tt+=1,pn=(Ee=a.at(Tt))==null?void 0:Ee.type}Tt-=1}if((Te=b==null?void 0:b.extend)!=null&&Te){if(!a.setSelection(a.anchor,Tt))return a.announce("plonk"),!1}else{if(Tt===a.position)return a.announce("plonk"),!1;a.position=Tt}return a.announce("move",Ke),a.mathfield.stopCoalescingUndo(),!0}function zc(a,y,b){var E,ee;if(b=b!=null?b:{extend:!1},a.mathfield.adoptStyle=y==="backward"?"right":"left",y!=="forward"){const[ve,Ee]=g0(a);ve!==void 0&&Ee!==void 0&&a.deleteAtoms([ve,Ee])}if(y==="upward")return zg(a,b);if(y==="downward")return $g(a,b);if(b.extend){let ve=Xf(a,a.position,y);ve<0&&(ve=0),ve>a.lastOffset&&(ve=a.lastOffset);const Ee=a.setSelection(a.anchor,ve);return a.mathfield.stopCoalescingUndo(),Ee}if(a.selectionIsPlaceholder){a.collapseSelection(y);const ve=zc(a,y);return a.mathfield.stopCoalescingUndo(),ve}let ie=a.position;const oe=ie;if(a.collapseSelection(y)?(ie=a.position,R0(a,ie)||(ie=Xf(a,ie,y))):ie=Xf(a,ie,y),ie<0||ie>a.lastOffset){let ve=!0;return a.silenceNotifications||(ve=(ee=(E=a.mathfield.host)==null?void 0:E.dispatchEvent(new CustomEvent("move-out",{detail:{direction:y},cancelable:!0,bubbles:!0,composed:!0})))!=null?ee:!0),ve&&a.announce("plonk"),ve}return a.setPositionHandlingPlaceholder(ie),a.mathfield.stopCoalescingUndo(),a.announce("move",oe),!0}function Xf(a,y,b){return y=y+(b==="forward"?1:-1),y<0||y>a.lastOffset||R0(a,y)?y:Xf(a,y,b)}function R0(a,y){var b;const E=a.at(y);let ee=E.parent;for(;ee&&!ee.inCaptureSelection;)ee=ee.parent;return!(ee!=null&&ee.inCaptureSelection||(b=E.parent)!=null&&b.skipBoundary&&(!E.isFirstSibling&&E.isLastSibling||E.type==="first")||a.mathfield.hasEditablePrompts&&!E.parentPrompt)}function _g(a,y,b){let E=1/0,ee=0;for(;ee<y.length;ee++){const ie=Iu(a.getHTMLElement(y[ee])).right,oe=Math.abs(b-ie);if(oe<=E)E=oe;else break}return y[ee-1]}function Qf(a,y,b,E,ee){const ie=a.mathfield.hasEditablePrompts,oe=ie?b.filter(Te=>Te.type==="prompt"&&!Te.captureSelection):b,ve=Iu(a.mathfield.getHTMLElement(y)).right,Ee=a.offsetOf(_g(a.mathfield,oe,ve))-(ie?1:0);if(E){const[Te,Ke]=a.selection.ranges[0];let pt;Ee<(ee==="up"?Te:Ke)?pt={ranges:[[Ee,Ke]],direction:"backward"}:pt={ranges:[[Te,Ee]],direction:"forward"},a.setSelection(pt)}else a.setPositionHandlingPlaceholder(Ee);a.announce(`move ${ee}`)}function zg(a,y){var b,E;const ee=(b=y==null?void 0:y.extend)!=null?b:!1;ee||a.collapseSelection("backward");const ie=()=>{var Ee,Te;let Ke=!0;return a.silenceNotifications||(Ke=(Te=(Ee=a.mathfield.host)==null?void 0:Ee.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"upward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?Te:!0),a.announce(Ke?"plonk":"line"),Ke},oe=a.at(a.position);let ve=oe;for(;ve&&ve.parentBranch!=="below"&&!(Array.isArray(ve.parentBranch)&&ve.parent instanceof Qo);)ve=ve.parent;if(Array.isArray(ve==null?void 0:ve.parentBranch)&&ve.parent instanceof Qo){const Ee=ve.parent;if(ve.parentBranch[0]<1)return ie();const Te=ve.parentBranch[0]-1,Ke=Ee.array[Te][ve.parentBranch[1]];if(!Ke.some(Tt=>Tt.type==="prompt"&&!Tt.captureSelection)&&a.mathfield.hasEditablePrompts)return ie();Qf(a,oe,Ke,ee,"up")}else if(ve){const Ee=(E=ve.parent.branch("above"))!=null?E:ve.parent.createBranch("above");if(!Ee.some(Ke=>Ke.type==="prompt"&&Ke.placeholderId)&&a.mathfield.hasEditablePrompts)return ie();Qf(a,oe,Ee,ee,"up")}else return ie();return a.mathfield.stopCoalescingUndo(),!0}function $g(a,y){var b,E;const ee=(b=y==null?void 0:y.extend)!=null?b:!1;ee||a.collapseSelection("forward");const ie=()=>{var Ee,Te;let Ke=!0;return a.silenceNotifications||(Ke=(Te=(Ee=a.mathfield.host)==null?void 0:Ee.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"downward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?Te:!0),a.announce(Ke?"plonk":"line"),Ke},oe=a.at(a.position);let ve=oe;for(;ve&&ve.parentBranch!=="above"&&!(Array.isArray(ve.parentBranch)&&ve.parent instanceof Qo);)ve=ve.parent;if(Array.isArray(ve==null?void 0:ve.parentBranch)&&ve.parent instanceof Qo){const Ee=ve.parent;if(ve.parentBranch[0]+1>Ee.array.length-1)return ie();const Te=ve.parentBranch[0]+1,Ke=Ee.array[Te][ve.parentBranch[1]];if(!Ke.some(Tt=>Tt.type==="prompt"&&!Tt.captureSelection)&&a.mathfield.hasEditablePrompts)return ie();Qf(a,oe,Ke,ee,"down")}else if(ve){const Ee=(E=ve.parent.branch("below"))!=null?E:ve.parent.createBranch("below");if(!Ee.some(Ke=>Ke.type==="prompt")&&a.mathfield.hasEditablePrompts)return ie();Qf(a,oe,Ee,ee,"down")}else return ie();return!0}function B0(a){const y=a.position,b=a.at(y).parent;return b!=null&&b.parent?(a.position=a.offsetOf(b),a.mathfield.stopCoalescingUndo(),a.announce("move",y),!0):(a.announce("plonk"),!1)}function Kg(a){let y=0,b=a.at(a.position),E=!1;for(;b;)(!b.hasEmptyBranch("superscript")||!b.hasEmptyBranch("subscript"))&&(y+=1),b.hasEmptyBranch("superscript")?b.hasEmptyBranch("subscript")||(E=!1):E=!0,b=b.parent;return E?y:0}function Hg(a){let y=0,b=a.at(a.position),E=!1;for(;b;)(!b.hasEmptyBranch("superscript")||!b.hasEmptyBranch("subscript"))&&(y+=1),b.hasEmptyBranch("superscript")?b.hasEmptyBranch("subscript")||(E=!0):E=!1,b=b.parent;return E?y:0}function F0(a){var y;if(a.collapseSelection(),Kg(a)>=a.mathfield.options.scriptDepth[1])return a.announce("plonk"),!1;let b=a.at(a.position);return b.subsupPlacement===void 0&&(((y=b.rightSibling)==null?void 0:y.type)!=="subsup"&&b.parent.addChildAfter(new xc({style:b.computedStyle}),b),b=b.rightSibling),b.createBranch("superscript"),a.setSelection(a.getSiblingsRange(a.offsetOf(b.superscript[0]))),!0}function _0(a){var y;if(a.collapseSelection(),Hg(a)>=a.mathfield.options.scriptDepth[0])return a.announce("plonk"),!1;let b=a.at(a.position);return b.subsupPlacement===void 0&&(((y=a.at(a.position+1))==null?void 0:y.type)!=="subsup"&&b.parent.addChildAfter(new xc({style:a.at(a.position).computedStyle}),b),b=a.at(a.position+1)),b.createBranch("subscript"),a.setSelection(a.getSiblingsRange(a.offsetOf(b.subscript[0]))),!0}function Zg(){function a(Ee){const Te=[],Ke=[];return[...Ee.querySelectorAll(`input, select, textarea, a[href], button,
[tabindex], audio[controls], video[controls],
[contenteditable]:not([contenteditable="false"]), details>summary`)].filter(y).forEach((Tt,rn)=>{const pn=E(Tt);pn===0?Te.push(Tt):Ke.push({documentOrder:rn,tabIndex:pn,node:Tt})}),Ke.sort((Tt,rn)=>Tt.tabIndex===rn.tabIndex?Tt.documentOrder-rn.documentOrder:Tt.tabIndex-rn.tabIndex).map(Tt=>Tt.node).concat(Te)}function y(Ee){return!(!b(Ee)||ee(Ee)||E(Ee)<0)}function b(Ee){return!(Ee.disabled||Ee.type==="hidden"&&Ee.tagName.toUpperCase()==="INPUT"||ve(Ee))}function E(Ee){var Te;const Ke=Number.parseInt((Te=Ee.getAttribute("tabindex"))!=null?Te:"NaN",10);return Number.isNaN(Ke)?Ee.contentEditable==="true"||(Ee.nodeName==="AUDIO"||Ee.nodeName==="VIDEO")&&Ee.getAttribute("tabindex")===null?0:Ee.tabIndex:Ke}function ee(Ee){return Ee.tagName.toUpperCase()==="INPUT"&&Ee.type==="radio"&&!oe(Ee)}function ie(Ee,Te){for(const Ke of Ee)if(Ke.checked&&Ke.form===Te)return Ke;return null}function oe(Ee){var Te;if(!Ee.name)return!0;const pt=((Te=Ee.form)!=null?Te:Ee.ownerDocument).querySelectorAll('input[type="radio"][name="'+Ee.name+'"]'),Tt=ie(pt,Ee.form);return!Tt||Tt===Ee}function ve(Ee){if(!qe()||Ee===document.activeElement||Ee.contains(document.activeElement))return!1;if(getComputedStyle(Ee).visibility==="hidden")return!0;const Te=Ee.getBoundingClientRect();if(Te.width===0||Te.height===0)return!0;for(;Ee;){if(getComputedStyle(Ee).display==="none")return!0;Ee=Ee.parentElement}return!1}return qe()?a(document.body):[]}function nc(a,y,b="forward"){const E=a.position;if(Array.isArray(y)){const ee=a.offsetOf(y[0]),ie=a.offsetOf(y[y.length-1]);return b==="forward"?a.setSelection(ee,ie):a.setSelection(ie,ee),a.announce("move",E),a.mathfield.stopCoalescingUndo(),!0}return b==="forward"?nc(a,[y.leftSibling,y]):nc(a,[y,y.leftSibling])}function Tc(a,y){const b=a.position;if(typeof y=="number"&&(y=a.at(y)),y.type==="prompt")a.setSelection(a.offsetOf(y.firstChild),a.offsetOf(y.lastChild));else{const E=a.offsetOf(y);y.type==="placeholder"?a.setSelection(E-1,E):a.position=E}return a.announce("move",b),a.mathfield.stopCoalescingUndo(),!0}function Jf(a,y,b=!0){var E,ee;const ie=y==="forward"?1:-1;a.at(a.anchor).type==="placeholder"&&zc(a,y);let oe;const ve=a.at(a.anchor).parentPrompt;ve?y==="forward"?oe=a.offsetOf(ve)+1:oe=a.offsetOf(ve.leftSibling):oe=Math.max(a.position+ie,0);const Ee=Ah(a,oe,y);if(!Ee||y==="forward"&&a.offsetOf(Ee)<oe||y==="backward"&&a.offsetOf(Ee)>oe){if(!b||!((ee=(E=a.mathfield.host)==null?void 0:E.dispatchEvent(new CustomEvent("move-out",{detail:{direction:y},cancelable:!0,bubbles:!0,composed:!0})))==null||ee))return a.announce("plonk"),!1;const Ke=Zg();if(!document.activeElement||Ke.length<=1)return a.announce("plonk"),!1;let pt=Ke.indexOf(document.activeElement)+ie;return pt<0&&(pt=Ke.length-1),pt>=Ke.length&&(pt=0),Ke[pt].focus(),a.mathfield.stopCoalescingUndo(),!0}return Tc(a,Ee),!0}function Ah(a,y=0,b="forward"){return a.findAtom(E=>E.type==="placeholder"||E.type==="prompt"||!a.mathfield.readOnly&&E.treeDepth>2&&E.isFirstSibling&&E.isLastSibling,y,b)}cc({moveToOpposite:a=>{const y={superscript:"subscript",subscript:"superscript",above:"below",below:"above"},b=a.at(a.position),{parent:E}=b;if(!E)return a.announce("plonk"),!1;const ee=b.parentBranch;let ie;if(typeof ee=="string"&&(ie=y[ee]),!ie){const ve=b.subsupPlacement?_0(a):F0(a);return a.mathfield.stopCoalescingUndo(),ve}E.branch(ie)||E.createBranch(ie);const oe=a.setSelection(a.getBranchRange(a.offsetOf(E),ie));return a.mathfield.stopCoalescingUndo(),oe},moveBeforeParent:a=>{const{parent:y}=a.at(a.position);return y?(a.position=a.offsetOf(y),a.mathfield.stopCoalescingUndo(),!0):(a.announce("plonk"),!1)},moveAfterParent:a=>B0(a),moveToNextChar:a=>zc(a,"forward"),moveToPreviousChar:a=>zc(a,"backward"),moveUp:a=>zc(a,"upward"),moveDown:a=>zc(a,"downward"),moveToNextWord:a=>Vd(a,"forward"),moveToPreviousWord:a=>Vd(a,"backward"),moveToGroupStart:a=>{const y=a.offsetOf(a.at(a.position).firstSibling);return y===a.position?(a.announce("plonk"),!1):(a.position=y,a.mathfield.stopCoalescingUndo(),!0)},moveToGroupEnd:a=>{const y=a.offsetOf(a.at(a.position).lastSibling);return y===a.position?(a.announce("plonk"),!1):(a.position=y,a.mathfield.stopCoalescingUndo(),!0)},moveToNextGroup:a=>{var y,b,E,ee;if(a.position===a.lastOffset&&a.anchor===a.lastOffset)return Jf(a,"forward");const ie=a.at(a.position);if(ie.mode==="text"){if(a.selectionIsCollapsed){let Tt=ie;for(;Tt&&Tt.mode==="text";)Tt=Tt.leftSibling;let rn=ie;for(;((y=rn.rightSibling)==null?void 0:y.mode)==="text";)rn=rn.rightSibling;if(Tt&&rn)return nc(a,[Tt,rn])}if(ie.rightSibling.mode==="text"){let Tt=ie;for(;Tt&&Tt.mode==="text";)Tt=Tt.rightSibling;return Tt?(Tc(a,(b=Tt.leftSibling)!=null?b:Tt),a.mathfield.switchMode("math"),!0):Tc(a,a.lastOffset)}}const ve=a.at(a.anchor).parentPrompt,Ee=ve?a.offsetOf(ve)+1:Math.max(a.position+1,0),Te=Ah(a,Ee,"forward");if(Te)return Tc(a,Te);const Ke=z0(a,ie,Tt=>Tt.type==="leftright"||Tt.type==="text","forward");if(Ke){if(Ke.mode==="text"){let Tt=Ke;for(;Tt&&Tt.mode==="text";)Tt=Tt.rightSibling;return nc(a,[(E=Ke.leftSibling)!=null?E:Ke,(ee=Tt.leftSibling)!=null?ee:Tt])}return nc(a,Ke)}const pt=ie.parent;if(pt){if(pt.type==="leftright"||pt.type==="surd")return nc(a,pt);if(ie.parentBranch==="superscript"&&pt.subscript)return nc(a,pt.subscript);if(ie.parentBranch==="above"&&pt.below)return nc(a,pt.below);if(ie.parentBranch==="superscript"||ie.parentBranch==="subscript")return Tc(a,pt);if(ie.parentBranch==="above"||ie.parentBranch==="below")return nc(a,pt)}return Tc(a,a.lastOffset)},moveToPreviousGroup:a=>{var y;if(a.position===0&&a.anchor===0)return Jf(a,"backward");let b=a.at(a.position);const E=b.mode;if(E==="text"){if(a.selectionIsCollapsed){let ve=b;for(;ve&&ve.mode==="text";)ve=ve.leftSibling;let Ee=b;for(;((y=Ee.rightSibling)==null?void 0:y.mode)==="text";)Ee=Ee.rightSibling;if(ve&&Ee)return nc(a,[ve,Ee])}for(;b&&b.mode==="text";)b=b.leftSibling;return b?Tc(a,b):Tc(a,0)}const ee=a.at(a.anchor).parentPrompt,ie=ee?a.offsetOf(ee.leftSibling):Math.max(a.position-1,0),oe=Ah(a,ie,"backward");if(oe)return Tc(a,oe);if(E==="math"){const ve=z0(a,b,Te=>Te.type==="leftright"||Te.type==="text","backward");if(ve){if(ve.mode==="text"){let Te=ve;for(;Te&&Te.mode==="text";)Te=Te.leftSibling;return nc(a,[ve,Te])}return nc(a,ve)}const Ee=b.parent;if(Ee){if(Ee.type==="leftright"||Ee.type==="surd")return nc(a,Ee);if(b.parentBranch==="subscript"&&Ee.superscript)return nc(a,Ee.superscript);if(b.parentBranch==="below"&&Ee.above)return nc(a,Ee.above);if(b.parentBranch==="superscript"||b.parentBranch==="subscript")return Tc(a,Ee);if(b.parentBranch==="above"||b.parentBranch==="below")return nc(a,Ee)}return Tc(a,0)}return!1},moveToMathfieldStart:a=>a.selectionIsCollapsed&&a.position===0?(a.announce("plonk"),!1):(a.position=0,a.mathfield.stopCoalescingUndo(),!0),moveToMathfieldEnd:a=>a.selectionIsCollapsed&&a.position===a.lastOffset?(a.announce("plonk"),!1):(a.position=a.lastOffset,a.mathfield.stopCoalescingUndo(),!0),moveToSuperscript:F0,moveToSubscript:_0},{target:"model",changeSelection:!0}),cc({moveToNextPlaceholder:a=>Jf(a,"forward"),moveToPreviousPlaceholder:a=>Jf(a,"backward")},{target:"model",changeSelection:!0,audioFeedback:"return"});function z0(a,y,b,E){if(E==="forward"){let ie=y.rightSibling;for(;ie&&!b(ie);)ie=ie.rightSibling;return ie}let ee=y.leftSibling;for(;ee&&!b(ee);)ee=ee.leftSibling;return ee}function qf(a,y,b){typeof y=="function"&&(b=y,y=1/0),y===void 0&&(y=1/0);let E=a.position,ee=!1,ie="";for(;!ee;){const oe=a.at(E);ee=y===0||oe===void 0||oe.type==="first"||oe.mode!=="math"||!(oe.type&&/mord|mpunct|operator/.test(oe.type)||oe.type==="mop"&&/[a-zA-Z ]+/.test(oe.value))||!oe.hasEmptyBranch("superscript")||!oe.hasEmptyBranch("subscript")||typeof b=="function"&&!b(oe),ee||(oe.mode="text",oe.command=oe.value,oe.verbatimLatex=void 0,ie+=oe.value),E-=1,y-=1}a.contentDidChange({data:ie,inputType:"insertText"})}function Pd(a,y,b){typeof y=="function"&&(b=y,y=1/0),y===void 0&&(y=1/0);let E=a.position,ee=!1;const ie=[];for(;!ee;){const oe=a.at(E);ee=y===0||!oe||oe.type==="first"||oe.isFirstSibling||oe.mode!=="text"||oe.value===" "||typeof b=="function"&&!b(oe),ee||(ie.push(Wr.serialize([oe],{defaultMode:"math"})),oe.mode="math"),E-=1,y-=1}Lh(a),a.contentDidChange({data:vo(ie),inputType:"insertText"})}function Lh(a){var y;let b=a.position-1;for(;b>=0&&((y=a.at(b))==null?void 0:y.mode)==="math";)b-=1;if(!(b<0)&&a.at(b).mode==="text"&&a.at(b).value===" "&&a.at(b-1).mode==="math"){a.at(b-1).parent.removeChild(a.at(b-1));const E=a.silenceNotifications;a.silenceNotifications=!0,a.position-=1,a.silenceNotifications=E,a.contentDidChange({inputType:"deleteContent"})}}function Wg(a){let y="",b=a.position,E=!1;for(;!E;){const ee=a.at(b);E=!(ee&&(ee.mode==="text"||ee.mode==="math"&&ee.type&&/mord|mpunct/.test(ee.type))),E||(y=ee.value+y),b-=1}return y}function Ug(a,y,b){const{model:E}=a;if(E.mode==="latex"||!E.at(E.position).isLastSibling||!b||!Nf(b))return!1;const ee=$d(b);if(!E.selectionIsCollapsed)return!!(a.model.mode==="text"&&/[/_^]/.test(ee));const ie=Wg(E)+ee;if(a.model.mode==="text"){if(y==="Esc"||/[/\\]/.test(ee))return!0;if(/[\^_]/.test(ee))return/(^|\s)[a-zA-Z][^_]$/.test(ie)&&Pd(E,1),!0;const oe={")":"(","}":"{","]":"["}[ee],{parent:ve}=E.at(E.position);if(oe&&ve instanceof Gs&&ve.leftDelim===oe)return!0;if(/(^|[^a-zA-Z])(a|I) $/.test(ie))return!1;if(/[$€£₤₺¥¤฿¢₡₧₨₹₩₱]/u.test(ee))return!0;if(/(^|[^a-zA-Z'])[a-zA-Z] $/.test(ie))return Pd(E,1),!1;if(/\D\.[^\d\s]$/.test(ie)){Pd(E,1);const Ee=E.at(E.position);return Ee.value="\u22C5",Ee.style.variant="normal",Ee.command="\\cdot",Ee.verbatimLatex=void 0,E.contentDidChange({data:"\\cdot",inputType:"insertText"}),!0}if(/(^|\s)[a-zA-Z][^a-zA-Z]$/.test(ie)||/\.\d$/.test(ie)||/\([\d+\-.]$/.test(ie))return Pd(E,1),!0;if(/\([a-z][,;]$/.test(ie))return Pd(E,2),!0;if(/[\d+\-=><*|]$/.test(ee))return Lh(E),!0}else{if(y==="[Space]")return qf(E,void 0,oe=>/[a-z][:,;.]$/.test(oe.value)),!0;if(/[a-zA-Z]{3,}$/.test(ie)&&!/(dxd|abc|xyz|uvw)$/.test(ie))return qf(E,void 0,oe=>/[a-zA-Z]/.test(oe.value)),!0;if(/(^|\W)(if)$/i.test(ie))return qf(E,1),!0;if(/(\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5){3,}$/u.test(ie)&&!/(αβγ)$/.test(ie))return qf(E,void 0,oe=>/(:|,|;|.|\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5)/u.test(oe.value)),!0;if(ee==="?"||ee==="."&&!/[\d-+]\.$/.test(ie))return!0}return!1}function Vg(a,y){if(!a.isSelectionEditable||!a.keystrokeCaptionVisible)return;const b=$0(),E=a.element.getBoundingClientRect();b.style.left=`${E.left}px`,b.style.top=`${E.top-64}px`,b.innerHTML=window.MathfieldElement.createHTML("<span>"+(vh(y)||y)+"</span>"+b.innerHTML),b.style.visibility="visible",setTimeout(()=>{b.childNodes.length>0&&b.childNodes[b.childNodes.length-1].remove(),b.childNodes.length===0&&(b.style.visibility="hidden")},3e3)}function jg(a){if(a.keystrokeCaptionVisible=!a.keystrokeCaptionVisible,a.keystrokeCaptionVisible){const y=$0();y.innerHTML=""}else{const y=Bf("mathlive-keystroke-caption-panel");y.style.visibility="hidden"}return!1}function $0(){const a=document.getElementById("mathlive-keystroke-caption-panel");return a||(uc("keystroke-caption"),uc("core"),Bf("mathlive-keystroke-caption-panel"))}function Gg(){document.getElementById("mathlive-keystroke-caption-panel")&&(bh("mathlive-keystroke-caption-panel"),x("core"),x("keystroke-caption"))}function K0(a,y){var b,E,ee;const{model:ie}=a,oe=p0(y);if(y.isTrusted){Fm(y);const rn=ff();a.keyboardLayout!==rn.id&&(a.keyboardLayout=rn.id,a._keybindings=void 0)}if(clearTimeout(a.inlineShortcutBufferFlushTimer),a.inlineShortcutBufferFlushTimer=0,Vg(a,oe),y.isTrusted&&y.defaultPrevented)return a.flushInlineShortcutBuffer(),!1;let ve,Ee="",Te;const Ke=a.inlineShortcutBuffer;if(a.isSelectionEditable){if(ie.mode==="math")if(oe==="[Backspace]")Ke.pop();else if(!Nf(y))a.flushInlineShortcutBuffer();else{const rn=$d(y),pn=[...(E=(b=Ke[Ke.length-1])==null?void 0:b.keystrokes)!=null?E:[],rn];Ke.push({state:ie.getState(),keystrokes:pn,leftSiblings:Yg(a)});let _r=0,Ai="";for(;!ve&&_r<pn.length;)Te=Ke.length-(pn.length-_r),Ai=pn.slice(_r).join(""),ve=xo(Ke[Te].leftSiblings,Ai,a.options.inlineShortcuts),!ve&&/^[a-zA-Z][a-zA-Z0-9]+?([_\^][a-zA-Z0-9\*\+\-]+?)?$/.test(Ai)&&(ve=a.options.onInlineShortcut(a,Ai)),_r+=1;a.flushInlineShortcutBuffer({defer:!0})}a.options.smartMode&&(ve?a.switchMode("math"):Ug(a,oe,y)&&(a.switchMode({math:"text",text:"math"}[ie.mode]),Ee=""))}if(!ve){if(Ee||(Ee=Wm(a.keybindings,ie.mode,y)),!Ee&&(oe==="[Enter]"||oe==="[Return]")){let rn=!1;return ie.contentWillChange({inputType:"insertLineBreak"})&&(a.host&&(rn=!a.host.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),rn||y.preventDefault&&(y.preventDefault(),y.stopPropagation()),ie.contentDidChange({inputType:"insertLineBreak"})),rn}if((!Ee||oe==="[Space]")&&ie.mode==="math"){if(oe==="[Space]"){if(a.adoptStyle="none",a.flushInlineShortcutBuffer(),a.options.mathModeSpace)return No.insert(ie,a.options.mathModeSpace,{format:"latex",mode:"math"}),a.snapshot("insert-space"),Ee="",a.dirty=!0,a.scrollIntoView(),y.preventDefault&&(y.preventDefault(),y.stopPropagation()),!1;const rn=ie.at(ie.position+1),pn=ie.at(ie.position-1);if((rn==null?void 0:rn.mode)==="text"||(pn==null?void 0:pn.mode)==="text")return No.insert(ie," ",{mode:"text"}),a.snapshot("insert-space"),a.dirty=!0,a.scrollIntoView(),!1}(ee=ie.at(ie.position))!=null&&ee.isDigit()&&window.MathfieldElement.decimalSeparator===","&&$d(y)===","&&(Ee="insertDecimalSeparator")}}if(!ve&&!Ee){if(ie.mathfield.smartFence){if(Th(ie,$d(y),a.effectiveStyle))return a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}else{const{parent:rn}=ie.at(ie.position);if(rn instanceof Gs&&rn.rightDelim==="?"&&ie.at(ie.position).isLastSibling&&/^[)}\]|]$/.test(oe))return a.snapshot(),rn.isDirty=!0,rn.rightDelim=oe,ie.position+=1,ie.selectionDidChange(),ie.contentDidChange({data:$d(y),inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1;if(!ie.selectionIsCollapsed){const pn=$d(y);if(pn==="("||pn==="{"||pn==="["){const _r={"(":"(","{":"\\lbrace","[":"\\lbrack"}[pn],Ai={"(":")","{":"\\rbrace","[":"\\rbrack"}[pn],[Pr,ui]=kl(ie.selection);return a.snapshot(),ie.position=ui,No.insert(ie,Ai,{format:"latex"}),ie.position=Pr,No.insert(ie,_r,{format:"latex"}),ie.setSelection(Pr+1,ui+1),ie.contentDidChange({data:pn,inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}}}return!0}const pt=ie.at(Math.max(ie.position,ie.anchor)),{parent:Tt}=pt;if(Ee==="moveAfterParent"&&(Tt==null?void 0:Tt.type)==="leftright"&&pt.isLastSibling&&a.options.smartFence&&Th(ie,".",a.defaultStyle)&&(Ee="",Ql(a)),a.keyboardDelegate.cancelComposition(),Ee)a.executeCommand(Ee);else if(ve){const rn=a.effectiveStyle;ie.setState(Ke[Te].state);const pn=Ke[Ke.length-1].keystrokes;for(const _r of pn)No.insert(ie,_r,{silenceNotifications:!0,style:rn});a.snapshot("insert-shortcut"),ie.setState(Ke[Te].state),ie.deferNotifications({content:!0,selection:!0,data:ve,type:"insertText"},()=>(No.insert(ie,ve,{format:"latex",style:rn}),Lh(a.model),ve.endsWith(" ")&&(a.switchMode("text"),No.insert(ie," ",{style:rn,mode:"text"})),a.snapshot(),ie.selectionIsCollapsed||a.flushInlineShortcutBuffer(),!0)),a.dirty=!0,ie.announce("replacement")}return a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}function Ph(a,y,b){const{model:E}=a;if(!a.isSelectionEditable){E.announce("plonk");return}b!=null||(b={}),b.focus&&a.focus(),b.feedback&&window.MathfieldElement.playSound("keypress"),typeof b.mode=="string"&&(a.switchMode(b.mode),a.snapshot());let ee=gl(y);const ie=window.mathVirtualKeyboard;if(ie!=null&&ie.isShifted&&(ee=typeof ee=="string"?ee.toUpperCase():ee.map(Ee=>Ee.toUpperCase())),b.simulateKeystroke){let Ee=!0;for(const Te of ee)K0(a,new KeyboardEvent("keypress",{key:Te}))&&(Ee=!1);if(Ee)return}const oe=E.at(E.position),ve=we(we({},oe.computedStyle),a.defaultStyle);if(E.selectionIsCollapsed||(E.deleteAtoms(kl(E.selection)),a.snapshot("delete")),E.mode==="latex")E.deferNotifications({content:!0,selection:!0,data:y,type:"insertText"},()=>{Rf(a);for(const Ee of ee)No.insert(E,Ee);a.snapshot("insert-latex"),pf(a)});else if(E.mode==="text"){for(const Ee of ee)No.insert(E,Ee,{style:ve});a.snapshot("insert-text")}else if(E.mode==="math")for(const Ee of ee)Xg(a,Ee,ve,oe);a.dirty=!0,a.scrollIntoView()}function Yg(a){const y=a.model,b=[];let E=y.at(Math.min(y.position,y.anchor));for(;E.type!=="first";)b.push(E),E=E.leftSibling;return b}function Xg(a,y,b,E){const ee=a.model;let ie={"^":"moveToSuperscript",_:"moveToSubscript"," ":"moveAfterParent"}[y];if(y===" "&&a.options.mathModeSpace&&(ie=["insert",a.options.mathModeSpace]),ie){a.executeCommand(ie);return}if(/\d/.test(y)&&a.options.smartSuperscript&&E.parentBranch==="superscript"&&E.parent.type!=="mop"&&E.parent.type!=="operator"&&E.parent.type!=="extensible-symbol"&&E.hasNoSiblings){Qg(ee),No.insert(ee,y,{style:b}),a.snapshot(),B0(ee),a.snapshot();return}if(/[a-zA-Z0-9]/.test(y)&&a.adoptStyle!=="none"){const oe=a.adoptStyle==="left"?E:E.parent?E.rightSibling:null;(oe==null?void 0:oe.type)==="mord"&&/[a-zA-Z0-9]/.test(oe.value)&&(b=we({},b),oe.style.variant&&(b.variant=oe.style.variant),oe.style.variantStyle&&(b.variantStyle=oe.style.variantStyle))}No.insert(ee,y,{style:b}),a.snapshot(`insert-${ee.at(ee.position).type}`)}function Qg(a){a.selectionIsCollapsed||(a.deleteAtoms(kl(a.selection)),a.mathfield.snapshot("delete"))}function Th(a,y,b){if(!y||a.mode!=="math")return!1;const E=a.at(a.position),{parent:ee}=E,ie={"(":"(",")":")","{":"\\lbrace","}":"\\rbrace","[":"\\lbrack","]":"\\rbrack","|":"|"}[y];if(!ie)return!1;const oe=ne[ie],ve=re[ie];if(!a.selectionIsCollapsed){a.mathfield.snapshot();const[Ee,Te]=kl(a.selection),Ke=a.extractAtoms([Ee,Te]),pt=ee.addChildrenAfter([new Gs("left...right",Ke,{leftDelim:ie,rightDelim:ve})],a.at(Ee));return a.setSelection(a.offsetOf(pt.firstChild),a.offsetOf(pt.lastChild)),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:ie,inputType:"insertText"}),!0}if(ie==="|"){const Ee=ee instanceof Gs?ee.leftDelim+ee.rightDelim:"";if(Ee==="\\lbrace\\rbrace"||Ee==="\\{\\}"||Ee==="\\lbrace?")return a.mathfield.snapshot(),No.insert(a,"\\,\\middle\\vert\\,",{format:"latex",style:b}),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:ie,inputType:"insertText"}),!0}if(ve){if(ee instanceof Gs&&ee.firstChild===E&&(ee.leftDelim==="?"||ee.leftDelim==="."))return ee.leftDelim=ie,ee.isDirty=!0,a.mathfield.snapshot(),a.contentDidChange({data:ie,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(!(ee instanceof Gs)){let pt=E;for(;pt&&!(pt.type==="mclose"&&pt.value===ve);)pt=pt.rightSibling;if(pt){a.mathfield.snapshot();const Tt=a.extractAtoms([a.offsetOf(E),a.offsetOf(pt)]);return Tt.pop(),ee.addChildrenAfter([new Gs("left...right",Tt,{leftDelim:ie,rightDelim:ve})],E),a.position=a.offsetOf(ee.firstChild)+1,a.contentDidChange({data:ie,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}}const Ee=a.offsetOf(E.lastSibling);let Te;for(Te=a.position;Te<=Ee;Te++){const pt=a.at(Te);if(pt instanceof Gs&&(pt.leftDelim==="?"||pt.leftDelim===".")&&H0(ie,pt.rightDelim))break}const Ke=a.at(Te);if(Te<=Ee&&Ke instanceof Gs){Ke.leftDelim=ie,a.mathfield.snapshot();let pt=a.extractAtoms([a.position,Te-1]);return pt=pt.filter(Tt=>Tt.type!=="first"),Ke.addChildren(pt,Ke.parentBranch),a.position+=1,a.contentDidChange({data:ie,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(ee instanceof Gs&&(ee.leftDelim==="?"||ee.leftDelim===".")&&H0(ie,ee.rightDelim)){ee.isDirty=!0,ee.leftDelim=ie,a.mathfield.snapshot();const pt=a.extractAtoms([a.offsetOf(E.firstSibling),a.position]);for(const Tt of pt)ee.parent.addChildBefore(Tt,ee);return a.contentDidChange({data:ie,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(!(ee instanceof Gs&&ee.leftDelim==="|")){if(a.mathfield.snapshot(),No.insert(a,`\\left${ie}\\right?`,{format:"latex",style:b}),E.lastSibling.type!=="first"){const pt=a.offsetOf(E.lastSibling),Tt=a.extractAtoms([a.position,pt]);a.at(a.position).body=Tt,a.position-=1}return a.mathfield.snapshot("insert-fence"),!0}}if(oe){let Ee=E;for(;Ee;){if(Ee.type==="mopen"&&Ee.value===oe){a.mathfield.snapshot();const rn=Ee.leftSibling,pn=a.extractAtoms([a.offsetOf(Ee.leftSibling),a.offsetOf(E)]);pn.shift();const _r=new Gs("left...right",pn,{leftDelim:oe,rightDelim:ie});return ee.addChildrenAfter([_r],rn),a.position=a.offsetOf(_r),a.contentDidChange({data:ie,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}Ee=Ee.leftSibling}if(ee instanceof Gs&&E.isLastSibling&&Ih(ee.leftDelim,ie))return a.mathfield.snapshot(),ee.isDirty=!0,ee.rightDelim=ie,a.position+=1,a.contentDidChange({data:ie,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;const Te=a.offsetOf(E.firstSibling);let Ke;for(Ke=a.position;Ke>=Te;Ke--){const rn=a.at(Ke);if(rn instanceof Gs&&(rn.rightDelim==="?"||rn.rightDelim===".")&&Ih(rn.leftDelim,ie))break}const pt=a.at(Ke);if(Ke>=Te&&pt instanceof Gs)return a.mathfield.snapshot(),pt.rightDelim=ie,pt.addChildren(a.extractAtoms([Ke,a.position]),pt.parentBranch),a.contentDidChange({data:ie,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(ee instanceof Gs&&(ee.rightDelim==="?"||ee.rightDelim===".")&&Ih(ee.leftDelim,ie))return a.mathfield.snapshot(),ee.isDirty=!0,ee.rightDelim=ie,ee.parent.addChildren(a.extractAtoms([a.position,a.offsetOf(E.lastSibling)]),ee.parentBranch),a.position=a.offsetOf(ee),a.contentDidChange({data:ie,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;const Tt=ee.parent;return Tt instanceof Gs&&(Tt.rightDelim==="?"||Tt.rightDelim===".")&&a.at(a.position).isLastSibling?(a.position=a.offsetOf(Tt),Th(a,ie,b)):!1}return!1}function Ih(a,y){return a?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a)?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y):re[a]===y:!0}function H0(a,y){return y?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y)?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a):ne[y]===a:!0}cc({undo:a=>(a.undo(),!0),redo:a=>(a.redo(),!0),scrollIntoView:a=>(a.scrollIntoView(),!0),scrollToStart:a=>(a.field.scroll(0,0),!0),scrollToEnd:a=>{const y=a.field.getBoundingClientRect();return a.field.scroll(y.left-window.scrollX,0),!0},toggleKeystrokeCaption:jg,toggleContextMenu:a=>{const y=a.toggleContextMenu();return y||a.model.announce("plonk"),y},plonk:a=>(a.model.announce("plonk"),!0),switchMode:(a,y,b,E)=>(a.switchMode(y,b,E),!0),insert:(a,y,b)=>a.insert(y,b),typedText:(a,y,b)=>(Ph(a,y,b),!0),insertDecimalSeparator:a=>{const y=a.model;return y.mode==="math"&&window.MathfieldElement.decimalSeparator===","&&y.at(Math.max(y.position,y.anchor)).isDigit()?(a.insert("{,}",{format:"latex"}),a.snapshot("insert-mord"),!0):(a.insert("."),!0)},commit:a=>{var y;return a.model.contentWillChange({inputType:"insertLineBreak"})&&((y=a.host)==null||y.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),a.model.contentDidChange({inputType:"insertLineBreak"})),!0},insertPrompt:(a,y,b)=>{const E=a.getPrompts();let ee="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),ie=0;for(;E.includes(ee)&&ie<100;){if(ie===99)return console.error("could not find a unique ID after 100 tries"),!1;ee="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),ie++}return a.insert(`\\placeholder[${y!=null?y:ee}]{}`,b),!0}}),cc({copyToClipboard:a=>(a.focus(),a.model.selectionIsCollapsed&&a.select(),"queryCommandSupported"in document&&document.queryCommandSupported("copy")?document.execCommand("copy"):a.element.querySelector(".ML__keyboard-sink").dispatchEvent(new ClipboardEvent("copy",{bubbles:!0,composed:!0})),!1)},{target:"mathfield"}),cc({cutToClipboard:a=>(a.focus(),"queryCommandSupported"in document&&document.queryCommandSupported("cut")?document.execCommand("cut"):a.element.querySelector(".ML__keyboard-sink").dispatchEvent(new ClipboardEvent("cut",{bubbles:!0,composed:!0})),!0),pasteFromClipboard:a=>(a.focus(),"queryCommandSupported"in document&&document.queryCommandSupported("paste")?(document.execCommand("paste"),!0):(navigator.clipboard.readText().then(y=>{y&&a.model.contentWillChange({inputType:"insertFromPaste",data:y})?(a.stopCoalescingUndo(),a.stopRecording(),a.insert(y,{mode:a.model.mode})&&(pf(a),a.startRecording(),a.snapshot("paste"),a.model.contentDidChange({inputType:"insertFromPaste"}),Ql(a))):a.model.announce("plonk"),a.startRecording()}),!0))},{target:"mathfield",canUndo:!0,changeContent:!0,changeSelection:!0});function Jg(a,y){a.flushInlineShortcutBuffer(),a.stopCoalescingUndo();const b=Nh(a,y),{model:E}=a;return E.selectionIsCollapsed?(a.defaultStyle.fontSeries&&b.fontSeries===a.defaultStyle.fontSeries&&(b.fontSeries="auto"),b.fontShape&&b.fontShape===a.defaultStyle.fontShape&&(b.fontShape="auto"),b.color&&b.color===a.defaultStyle.color&&(b.color="none"),b.backgroundColor&&b.backgroundColor===a.defaultStyle.backgroundColor&&(b.backgroundColor="none"),b.fontSize&&b.fontSize===a.defaultStyle.fontSize&&(b.fontSize="auto"),a.defaultStyle=we(we({},a.defaultStyle),b)):a.model.deferNotifications({content:!0,type:"insertText"},()=>{E.selection.ranges.forEach(ee=>Mh(E,ee,b,{operation:"toggle"})),a.snapshot("style-change")}),!0}cc({applyStyle:Jg},{target:"mathfield",canUndo:!0,changeContent:!0});function Nh(a,y){var b,E,ee,ie,oe,ve,Ee,Te,Ke,pt;const Tt={};if(typeof y.color=="string"){const pn=(E=a.colorMap((b=y.color)!=null?b:y.verbatimColor))!=null?E:"none";pn!==y.color&&(Tt.verbatimColor=(ee=y.verbatimColor)!=null?ee:y.color),Tt.color=pn}if(typeof y.backgroundColor=="string"){const pn=(oe=a.backgroundColorMap((ie=y.backgroundColor)!=null?ie:y.verbatimBackgroundColor))!=null?oe:"none";pn!==y.backgroundColor&&(Tt.verbatimBackgroundColor=(ve=y.verbatimBackgroundColor)!=null?ve:y.backgroundColor),Tt.backgroundColor=pn}typeof y.fontFamily=="string"&&(Tt.fontFamily=y.fontFamily),typeof y.series=="string"&&(Tt.fontSeries=y.series),typeof y.fontSeries=="string"&&(Tt.fontSeries=y.fontSeries.toLowerCase()),Tt.fontSeries&&(Tt.fontSeries=(Ee={bold:"b",medium:"m",normal:"m"}[Tt.fontSeries])!=null?Ee:Tt.fontSeries),typeof y.shape=="string"&&(Tt.fontShape=y.shape),typeof y.fontShape=="string"&&(Tt.fontShape=y.fontShape.toLowerCase()),Tt.fontShape&&(Tt.fontShape=(Te={italic:"it",up:"n",upright:"n",normal:"n"}[Tt.fontShape])!=null?Te:Tt.fontShape),y.variant&&(Tt.variant=y.variant.toLowerCase()),y.variantStyle&&(Tt.variantStyle=y.variantStyle.toLowerCase());const rn=(Ke=y.size)!=null?Ke:y.fontSize;return typeof rn=="number"?Tt.fontSize=Math.max(1,Math.min(10,rn)):typeof rn=="string"&&(Tt.fontSize=(pt={size1:1,size2:2,size3:3,size4:4,size5:5,size6:6,size7:7,size8:8,size9:9,size10:10}[rn.toLowerCase()])!=null?pt:{tiny:1,scriptsize:2,footnotesize:3,small:4,normal:5,normalsize:5,large:6,Large:7,LARGE:8,huge:9,Huge:10}[rn]),Tt}function Oh(a){let[y,b]=kl(a.selection);if(y=Z0(a,y,"backward"),b=Z0(a,b,"forward"),y===b){const E=a.at(y);if(E.type==="leftright")return a.setSelection(a.offsetOf(E.firstChild)-1,b);if(E.type==="first"&&(E.parent.type==="leftright"||E.parent.type==="surd"))return a.setSelection(y-1,a.offsetOf(E.parent.lastChild)+1);a.setSelection(y-1,b)}else a.setSelection(y,b);return!0}function Z0(a,y,b){var E,ee,ie;let oe=a.at(y);if(!oe)return y;const ve=b==="forward"?1:-1;if(oe.mode==="text"){for(;oe&&!(oe.mode!=="text"||!ge.test(oe.value));)y+=ve,oe=a.at(y);return b==="backward"?y-1:y}if(oe.mode==="latex"){if(/[a-zA-Z\*]/.test(oe.value))if(b==="backward")for(;oe&&oe.mode==="latex"&&oe.value!=="\\"&&/[a-zA-Z]/.test(oe.value);)y+=ve,oe=a.at(y);else for(;oe&&oe.mode==="latex"&&/[a-zA-Z\*]/.test(oe.value);)y+=ve,oe=a.at(y);else if(oe.value==="{"){if(b==="forward"){for(;oe&&oe.mode==="latex"&&oe.value!=="}";)y+=ve,oe=a.at(y);return y}return y-1}else if(oe.value==="}"){if(b==="backward"){for(;oe&&oe.mode==="latex"&&oe.value!=="{";)y+=ve,oe=a.at(y);return y-1}return y}return y-1}if(oe.mode==="math"){if(oe.isDigit()){for(;(E=a.at(y+ve))!=null&&E.isDigit();)y+=ve;return b==="backward"?y-1:y}if(oe.style.variant||oe.style.variantStyle){let Ee=(ee=a.at(y))==null?void 0:ee.style;for(;Ee&&Ee.variant===oe.style.variant&&Ee.variantStyle===oe.style.variantStyle;)Ee=(ie=a.at(y+ve))==null?void 0:ie.style,y+=ve;return b==="backward"?y-1:y}return y}return y}cc({selectGroup:a=>{const y=Oh(a);return y||a.announce("plonk"),y},selectAll:a=>a.setSelection(0,a.lastOffset),extendSelectionForward:a=>zc(a,"forward",{extend:!0}),extendSelectionBackward:a=>zc(a,"backward",{extend:!0}),extendToNextWord:a=>Vd(a,"forward",{extend:!0}),extendToPreviousWord:a=>Vd(a,"backward",{extend:!0}),extendSelectionUpward:a=>zc(a,"upward",{extend:!0}),extendSelectionDownward:a=>zc(a,"downward",{extend:!0}),extendToNextBoundary:a=>Vd(a,"forward",{extend:!0}),extendToPreviousBoundary:a=>Vd(a,"backward",{extend:!0}),extendToGroupStart:a=>{const y=a.setSelection(a.anchor,a.offsetOf(a.at(a.position).firstSibling));return y||a.announce("plonk"),y},extendToGroupEnd:a=>{const y=a.setSelection(a.anchor,a.offsetOf(a.at(a.position).lastSibling));return y||a.announce("plonk"),y},extendToMathFieldStart:a=>{const y=a.setSelection(a.anchor,0);return y||a.announce("plonk"),y},extendToMathFieldEnd:a=>{const y=a.setSelection(a.anchor,a.lastOffset);return y||a.announce("plonk"),y}},{target:"model",changeSelection:!0});var Td=null,xf=0,eh=class Ec{static start(y,b,E,ee){var ie;Ec.element=y,(ie=Ec.controller)==null||ie.abort(),Ec.controller=new AbortController;const oe={signal:Ec.controller.signal};"PointerEvent"in window?(y.addEventListener("pointermove",E,oe),y.addEventListener("pointerup",ee,oe),y.addEventListener("pointercancel",ee,oe),Rh(b)&&(Ec.pointerId=b.pointerId,y.setPointerCapture(b.pointerId))):(window.addEventListener("mousemove",E,oe),window.addEventListener("blur",ee,oe),window.addEventListener("mouseup",ee,oe))}static stop(){var y;(y=Ec.controller)==null||y.abort(),Ec.controller=void 0,typeof Ec.pointerId=="number"&&(Ec.element.releasePointerCapture(Ec.pointerId),Ec.pointerId=void 0)}};function Rh(a){return a!==null&&globalThis.PointerEvent!==void 0&&a instanceof PointerEvent}function W0(a,y){var b;if(y.buttons>1)return;a.atomBoundsCache=new Map;const E=a;let ee,ie=!1,oe=!1,ve="none",Ee=!1,Te=!1;const Ke=y.clientX,pt=y.clientY,Tt=Date.now(),rn=E.field,pn=setInterval(()=>{Ee?rn.scroll({top:0,left:rn.scrollLeft-16}):Te&&rn.scroll({top:0,left:rn.scrollLeft+16})},32);function _r(){eh.stop(),ie=!1,clearInterval(pn),a.element.classList.remove("tracking"),y&&y.preventDefault()}function Ai(ui){if(!E.hasFocus()){_r();return}const Pi=ui.clientX,pi=ui.clientY,Na=Rh(ui)&&ui.pointerType==="touch"?20:5;if(Date.now()<Tt+500&&Math.abs(Ke-Pi)<Na&&Math.abs(pt-pi)<Na){ui.preventDefault(),ui.stopPropagation();return}const uo=rn.getBoundingClientRect();Te=Pi>uo.right,Ee=Pi<uo.left;let Ya=ee;Rh(ui)&&(ui.isPrimary||(Ya=Sf(E,ui.clientX,ui.clientY,{bias:0})));const Ns=Sf(E,Pi,pi,{bias:Pi<=Ke?Pi===Ke?0:-1:1});Ya>=0&&Ns>=0&&(E.model.extendSelectionTo(Ya,Ns),Ql(a)),oe&&Oh(E.model)}Td&&Math.abs(Td.x-Ke)<5&&Math.abs(Td.y-pt)<5&&Date.now()<Td.time+500?(xf+=1,Td.time=Tt):(Td={x:Ke,y:pt,time:Tt},xf=1);const Pr=rn.getBoundingClientRect();if(Ke>=Pr.left&&Ke<=Pr.right&&pt>=Pr.top&&pt<=Pr.bottom){if(a.flushInlineShortcutBuffer(),a.adoptStyle="left",ee=Sf(a,Ke,pt,{bias:0}),ee>=0){if(a.element.classList.add("tracking"),y.shiftKey){const ui=a.model.selectionIsCollapsed;a.model.extendSelectionTo(a.model.anchor,ee),v0(a.model)||ui?ve="all":ve="selection"}else a.model.at(ee).type==="placeholder"?(a.model.setSelection(ee-1,ee),ve="selection"):((b=a.model.at(ee).rightSibling)==null?void 0:b.type)==="placeholder"?(a.model.setSelection(ee,ee+1),ve="selection"):(a.model.position=ee,v0(a.model)?ve="all":ve="selection");a.defaultStyle={},y.detail===3||xf>2?(_r(),(y.detail===3||xf===3)&&(a.model.selection={ranges:[[0,a.model.lastOffset]]},ve="all")):ie||(ie=!0,eh.start(rn,y,Ai,_r),(y.detail===2||xf===2)&&(oe=!0,Oh(a.model),ve="all"))}a.hasFocus()||(ve="none",a.focus({preventScroll:!0}))}else Td=null;a.stopCoalescingUndo(),ve!=="none"&&(a.model.selectionIsCollapsed&&(ve="all"),Ql(a)),y.preventDefault()}function qg(a,y,b){if(a>=b.left&&a<=b.right&&y>=b.top&&y<=b.bottom)return 0;const E=a-(b.left+b.right)/2,ee=y-(b.top+b.bottom)/2;return E*E+ee*ee}function U0(a,y,b,E,ee){if(!b.id)return[1/0,null];if(y.has(b.id))return y.get(b.id);const ie=Ac(a,b);if(!ie)return[1/0,null];let oe=[1/0,null];if(b.hasChildren&&!b.captureSelection&&E>=ie.left&&E<=ie.right)for(const ve of b.children){const Ee=U0(a,y,ve,E,ee);Ee[0]<=oe[0]&&(oe=Ee)}return oe[1]||(oe=[qg(E,ee,ie),b]),y.set(b.id,oe),oe}function ev(a,y,b){const[,E]=U0(a,new Map,a.model.root,y,b);return E}function Sf(a,y,b,E){var ee;const ie=a.field.querySelector(".ML__latex").getBoundingClientRect();if(!ie)return 0;if(y>ie.right||b>ie.bottom+8)return a.model.lastOffset;if(y<ie.left||b<ie.top-8)return 0;E=E!=null?E:{},E.bias=(ee=E.bias)!=null?ee:0;let oe=ev(a,y,b);const ve=[];let Ee=oe;for(;Ee;)ve.unshift(Ee),Ee=Ee.parent;for(const Ke of ve)if(Ke.captureSelection){oe=Ke;break}let Te=a.model.offsetOf(oe);if(Te<0)return-1;if(oe.leftSibling)if(E.bias===0&&oe.type!=="placeholder"){const Ke=Ac(a,oe);Ke&&y<(Ke.left+Ke.right)/2&&(Te=a.model.offsetOf(oe.leftSibling))}else E.bias<0&&(Te=a.model.offsetOf(oe.leftSibling));return Te}var tv=class extends No{constructor(){super("math")}onPaste(a,y){if(!y||!a.model.contentWillChange({data:typeof y=="string"?y:null,dataTransfer:typeof y=="string"?null:y,inputType:"insertFromPaste"}))return!1;let b="",E="auto",ee=typeof y!="string"?y.getData("application/json+mathlive"):"";if(ee)try{const ie=JSON.parse(ee);if(ie&&Array.isArray(ie)){a.snapshot();const oe=dd(ie),{model:ve}=a;ve.selectionIsCollapsed||ve.deleteAtoms(kl(ve.selection));const Ee=ve.at(ve.position);if(Ee.parent instanceof Qo){console.assert(Ee.parentBranch!==void 0);const Te=[];let Ke=[];oe[0].type==="first"&&oe.shift(),oe[oe.length-1].type==="first"&&oe.pop();for(const pn of oe)pn.type==="first"&&Ke.length>0?(Te.push(Ke),Ke=[pn]):Ke.push(pn);Ke.length>0&&Te.push(Ke);let pt=Number(Ee.parentBranch[0]),Tt=Number(Ee.parentBranch[1]);const rn=Ee.parent.maxColumns;for(;Ee.parent.colCount-Tt<Te.length&&Ee.parent.colCount<rn;)Ee.parent.addColumn();Ee.parent.addChildrenAfter(Te[0],Ee);for(let pn=1;pn<Te.length;pn++)Tt++,Tt>=rn&&(Tt=0,Ee.parent.addRowAfter(pt),pt++),Ee.parent.setCell(pt,Tt,Te[pn])}else Ee.parent.addChildrenAfter(oe.filter(Te=>Te.type!=="first"),Ee);return ve.position=ve.offsetOf(oe[oe.length-1]),ve.contentDidChange({inputType:"insertFromPaste"}),Ql(a),!0}}catch(ie){}if(ee=typeof y!="string"?y.getData("application/json"):"",ee&&window.MathfieldElement.computeEngine)try{const ie=JSON.parse(ee);if(typeof ie=="object"&&"latex"in ie&&ie.latex&&(b=ie.latex),!b){const oe=window.MathfieldElement.computeEngine.box(ie);oe&&!oe.has("Error")&&(b=oe.latex)}b||(E="latex")}catch(ie){}if(!b&&typeof y!="string"&&(b=y.getData("application/x-latex"),b&&(E="latex")),b||(b=typeof y=="string"?y:y.getData("text/plain")),b){let ie;return[ie,b]=Ku(b),E==="auto"&&ie&&(E="latex"),a.stopCoalescingUndo(),a.stopRecording(),this.insert(a.model,b,{format:E})&&(a.startRecording(),a.snapshot("paste"),Ql(a)),a.startRecording(),!0}return!1}insert(a,y,b){var E,ee;const ie=typeof y=="string"?y:(ee=(E=window.MathfieldElement.computeEngine)==null?void 0:E.box(y).latex)!=null?ee:"";if(!b.silenceNotifications&&!a.contentWillChange({data:ie,inputType:"insertText"}))return!1;b.insertionMode||(b.insertionMode="replaceSelection"),b.selectionMode||(b.selectionMode="placeholder"),b.format||(b.format="auto");const{silenceNotifications:oe}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const ve=a.silenceNotifications;a.silenceNotifications=!0;const Ee={"?":"\\placeholder{}","@":"\\placeholder{}"};Ee[0]=b.insertionMode==="replaceAll"?"":a.getValue(a.selection,"latex-unstyled"),b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(kl(a.selection)):b.insertionMode==="replaceAll"?(a.root.setChildren([],"body"),a.position=0):b.insertionMode==="insertBefore"?a.collapseSelection("backward"):b.insertionMode==="insertAfter"&&a.collapseSelection("forward"),!a.at(a.position).isLastSibling&&a.at(a.position+1).type==="placeholder"?a.deleteAtoms([a.position,a.position+1]):a.at(a.position).type==="placeholder"&&a.deleteAtoms([a.position-1,a.position]);let Te=-1;Ee[0]?Ee["@"]=Ee[0]:typeof y=="string"&&/(^|[^\\])#@/.test(y)&&(Te=rv(a),Te>=0&&(Ee["@"]=a.getValue(Te,a.position,"latex"))),Ee[0]||(Ee[0]=Ee["?"]);let Ke=!1;const pt=Pi=>(Ke=!0,Ee[Pi]);let[Tt,rn]=V0(a,y,pt,b);if(!rn)return!1;const pn=rn.length===1&&rn[0].type==="genfrac";pn&&Te>=0&&typeof a.mathfield.options.isImplicitFunction=="function"&&a.mathfield.options.isImplicitFunction(a.at(a.position).command)?(Ee["@"]=Ee["?"],Ke=!1,[Tt,rn]=V0(a,y,pt,b)):Te>=0&&a.deleteAtoms([Te,a.position]);const{parent:_r}=a.at(a.position),Ai=_r.hasEmptyBranch("body");if(pn&&Tt!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&_r instanceof Gs&&_r.leftDelim==="("&&Ai){const Pi=_r.parent,pi=_r.parentBranch;Pi.removeChild(_r),Pi.setChildren(rn,pi)}const Pr=a.at(a.position);Pr.parent.addChildrenAfter(rn,Pr),Tt==="latex"&&typeof y=="string"&&(_r==null?void 0:_r.type)==="root"&&Ai&&!Ke&&(_r.verbatimLatex=y),a.silenceNotifications=ve;const ui=rn[rn.length-1];if(b.selectionMode==="placeholder"){const Pi=rn.flatMap(pi=>[pi,...pi.children]).find(pi=>pi.type==="placeholder");if(Pi){const pi=a.offsetOf(Pi);a.setSelection(pi-1,pi),a.announce("move")}else ui&&(a.position=a.offsetOf(ui))}else b.selectionMode==="before"||(b.selectionMode==="after"?ui&&(a.position=a.offsetOf(ui)):b.selectionMode==="item"&&a.setSelection(a.anchor,a.offsetOf(ui)));return a.contentDidChange({data:ie,inputType:"insertText"}),a.silenceNotifications=oe,!0}};function V0(a,y,b,E){var ee;let ie,oe=[];if(typeof y!="string"||E.format==="math-json"){const ve=window.MathfieldElement.computeEngine;if(!ve)return["math-json",[]];[ie,y]=["latex",ve.box(y).latex],oe=Au(y,{context:a.mathfield.context})}else typeof y=="string"&&E.format==="ascii-math"?([ie,y]=js(y,{format:"ascii-math",inlineShortcuts:a.mathfield.options.inlineShortcuts}),oe=Au(y,{context:a.mathfield.context}),ie!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&th(oe)):(E.format==="auto"||(ee=E.format)!=null&&ee.startsWith("latex"))&&(E.format==="auto"&&([ie,y]=js(y,{format:"auto",inlineShortcuts:a.mathfield.options.inlineShortcuts})),E.format==="latex"&&([,y]=Ku(y)),oe=Au(y,{context:a.mathfield.context,args:b}),E.format!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&th(oe));return hd(oe,E.style),[ie!=null?ie:"latex",oe]}function nv(a){if(!a||(console.assert(a[0].type==="first"),a.length>1))return null;const y=a[0];return y instanceof Gs&&y.leftDelim==="("&&y.rightDelim===")"?y.removeBranch("body"):null}function th(a){if(a){for(let y=0;a[y];y++){const b=a[y];if(b instanceof Gs&&b.leftDelim==="("){let E=0,ee=0,ie=0;for(let oe=0;b.body[oe];oe++)b.body[oe].type==="genfrac"&&(E++,ee=oe),ie++;ie===0&&E===1&&(a[y]=b.body[ee])}}for(const y of a){for(const b of y.branches)if(!y.hasEmptyBranch(b)){th(y.branch(b));const E=nv(y.branch(b));E&&y.setChildren(E,b)}if(y instanceof Qo)for(const b of y.cells)th(b)}}}function rv(a){let y=a.at(a.position);if(y.mode==="text"){for(;!y.isFirstSibling&&y.mode==="text";)y=y.leftSibling;return a.offsetOf(y)}const b=y;let E=!1;if(y.type==="mclose"){const ee=ne[y.value];for(;!y.isFirstSibling&&!(y.type==="mopen"&&y.value===ee);)y=y.leftSibling;y.isFirstSibling||(y=y.leftSibling),E=!0}else y.type==="leftright"&&(y=y.leftSibling,E=!0);if(E)for(;!y.isFirstSibling&&(y.isFunction||j0(y));)y=y.leftSibling;else{const ee=[];for(;!y.isFirstSibling&&(j0(y)||ee.length>0);)y.type==="mclose"&&ee.unshift(y.value),y.type==="mopen"&&ee.length>0&&y.value===ne[ee[0]]&&ee.shift(),y=y.leftSibling}return b===y?-1:a.offsetOf(y)}function j0(a){return a.isDigit()?!0:a.type&&/^(mord|surd|subsup|leftright|mop|mclose)$/.test(a.type)?!a.isExtensibleSymbol:!1}new tv;var iv=class extends No{constructor(){super("text")}onPaste(a,y){if(!y)return!1;const b=typeof y=="string"?y:y.getData("text/plain");return b&&a.model.contentWillChange({inputType:"insertFromPaste",data:b})?(a.stopCoalescingUndo(),a.stopRecording(),this.insert(a.model,b)&&(a.model.contentDidChange({inputType:"insertFromPaste"}),a.startRecording(),a.snapshot("paste"),Ql(a)),a.startRecording(),!0):!1}insert(a,y,b={}){if(!a.contentWillChange({data:y,inputType:"insertText"}))return!1;b.insertionMode||(b.insertionMode="replaceSelection"),b.selectionMode||(b.selectionMode="placeholder"),b.format||(b.format="auto");const{silenceNotifications:E}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const ee=a.silenceNotifications;a.silenceNotifications=!0,b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(kl(a.selection)):b.insertionMode==="replaceAll"?(a.root.setChildren([],"body"),a.position=0):b.insertionMode==="insertBefore"?a.collapseSelection("backward"):b.insertionMode==="insertAfter"&&a.collapseSelection("forward");const ie=av(y,a.mathfield.context);if(hd(ie,b.style),!ie)return!1;const oe=a.at(a.position),ve=oe.parent.addChildrenAfter(ie,oe);return a.silenceNotifications=ee,b.selectionMode==="before"||(b.selectionMode==="item"?a.setSelection(a.anchor,a.offsetOf(ve)):ve&&(a.position=a.offsetOf(ve))),a.contentDidChange({data:y,inputType:"insertText"}),a.silenceNotifications=E,!0}};function av(a,y){return a=a.replace(/\\/g,"\\textbackslash "),a=a.replace(/#/g,"\\#"),a=a.replace(/\$/g,"\\$"),a=a.replace(/%/g,"\\%"),a=a.replace(/&/g,"\\&"),a=a.replace(/_/g,"\\_"),a=a.replace(/{/g,"\\textbraceleft "),a=a.replace(/}/g,"\\textbraceright "),a=a.replace(/lbrace/g,"\\textbraceleft "),a=a.replace(/rbrace/g,"\\textbraceright "),a=a.replace(/\^/g,"\\textasciicircum "),a=a.replace(/~/g,"\\textasciitilde "),a=a.replace(/£/g,"\\textsterling "),Au(a,{context:y,parseMode:"text"})}new iv;function $c(a){return{value:a.model.getValue(),selectionIsCollapsed:a.model.selectionIsCollapsed,canUndo:a.canUndo(),canRedo:a.canRedo(),style:a.selectionStyle,mode:a.model.mode}}var Dl=4,ac=20,gu=2*(ac+Dl),nh=(a,y)=>`
<line x1="${a+ac}" y1="${y+ac}"
x2="${a>y?a+ac:7*ac+10*Dl}"
y2="${a<y?y+ac:7*ac+10*Dl}"/>
<svg id="plus" viewBox="0 0 40 40" x="${a}" y="${y}" 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>`,G0=(a,y)=>`
<line x1="${a+ac}" y1="${y+ac}"
x2="${a>y?a+ac:7*ac+10*Dl}"
y2="${a<y?y+ac:7*ac+10*Dl}"/>
<svg id="minus" viewBox="0 0 40 40" x="${a}" y="${y}" 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>`,rh=(a,y,b)=>`
<svg id="arrow" viewBox="0 0 40 40" x="${a}" y="${y}" width="40" height="40">
<circle class="cls-2" cx="20" cy="20" r="20"/>
<g transform="rotate(${b})" 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>`,ov=`
<svg class="MLEP__array-buttons" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox=
"-2 -2 ${8*ac+10*Dl+5} ${8*ac+10*Dl+5}">
<rect
class="MLEP__array-insert-background rows"
x="0"
y="${gu+Dl}"
height="${3*gu}"
width="${gu}"
rx="${gu/2}"/>
<rect
class="MLEP__array-insert-background columns"
x="${gu+Dl}"
y="0"
height="${gu}"
width="${3*gu}"
rx="${gu/2}"/>
<g data-command='"moveDown"'>
${rh(2*(Dl+gu),2*Dl+3*gu,0)}
</g>
<g data-command='"moveUp"'>
${rh(2*(Dl+gu),2*Dl+gu,180)}
</g>
<g data-command='"moveToNextWord"'>
${rh(2*Dl+3*gu,2*(Dl+gu),-90)}
</g>
<g data-command='"moveToPreviousWord"'>
${rh(2*Dl+gu,2*(Dl+gu),90)}
</g>
<g>
<g data-command='"addColumnBefore"'>
${nh(2*Dl+gu,Dl)}
</g>
<g data-command='"removeColumn"'>
${G0(2*Dl+2*gu,Dl)}
</g>
<g data-command='"addColumnAfter"'>
${nh(2*Dl+3*gu,Dl)}
</g>
<g data-command='"addRowBefore"'>
${nh(Dl,2*Dl+gu)}
</g>
<g data-command='"removeRow"'>
${G0(Dl,2*Dl+2*gu)}
</g>
<g data-command='"addRowAfter"'>
${nh(Dl,2*Dl+3*gu)}
</g>
</svg>`,sv=a=>`
<svg id="matrix" class="${a}" 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>`,lv=a=>`
<svg id="pmatrix" class="${a}" 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>`,Y0=a=>`
<svg id="Bmatrix" class="${a}" 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>`,uv=a=>`
<svg id="bmatrix" class="${a}" 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>`,cv=a=>`
<svg id="vmatrix" class="${a}" 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>`,dv=a=>`
<svg id="Vmatrix" class="${a}" 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>`,fv=a=>`
<svg id="cases" class="${a}" 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>`,hv=a=>`
<svg id="rcases" class="${a}" 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>`,Bh={matrix:sv,pmatrix:lv,bmatrix:uv,Bmatrix:Y0,vmatrix:cv,Vmatrix:dv},Fh={cases:fv,rcases:hv,Bmatrix:Y0};function pv(a){var y,b;const E=(y=a.model.parentEnvironment)==null?void 0:y.array;if(!E)return;let ee=0;E.forEach(pn=>{(!ee||pn.length>ee)&&(ee=pn.length)});let ie=document.getElementById("mathlive-environment-popover");ie||(ie=Bf("mathlive-environment-popover"),uc("environment-popover"),uc("core"),ie.setAttribute("aria-hidden","true"));let oe;const ve=ie.querySelector(".MLEP__environment-controls");ve?oe=ve:(oe=document.createElement("div"),ie.innerHTML="",ie.appendChild(oe)),oe.className="MLEP__environment-controls",oe.style.display="flex",oe.style.width="100%",oe.style.height="100%",oe.style.boxSizing="border-box",oe.innerHTML=ov;let Ee=[],Te="";const Ke=a.model.parentEnvironment.environmentName;if(Hu(Ke)){const pn=gv(Ke);Te=Bh[pn]("active");const _r=Bh,{[pn]:Ai}=_r,Pr=nt(_r,[Le(pn)]);Ee=Object.values(Pr).map(ui=>ui("inactive"))}else if(Zu(Ke)){const pn=vv(Ke);Te=Fh[pn]("active");const _r=Fh,{[pn]:Ai}=_r,Pr=nt(_r,[Le(pn)]);Ee=Object.values(Pr).map(ui=>ui("inactive"))}else cu(Ke)&&(Te=Bh.matrix("active"),Ee=Object.values(Fh).map(pn=>pn("inactive")));const pt=document.createElement("div");pt.className="MLEP__environment-delimiter-controls",pt.style.display="flex",pt.style.flexDirection="column",pt.innerHTML=`
<div class='MLEP__array-delimiter-options'>
${Te}
${Ee.join("")}
</div>`,Te&&oe.appendChild(pt),oe.querySelectorAll("[data-command]").forEach(pn=>{const _r=pn.dataset.command;let Ai=_r;try{Ai=JSON.parse(_r)}catch(Pr){}pn.addEventListener("mousedown",Pr=>Pr.preventDefault()),Ai&&pn.addEventListener("click",()=>a.executeCommand(Ai))});const rn=(b=a.field)==null?void 0:b.getBoundingClientRect();rn&&(ie.style.top=`${window.scrollY+(rn.top-ie.clientHeight-15)}px`,ie.style.left=`${rn.left+20}px`,ie.classList.add("is-visible"))}function _h(){const a=document.getElementById("mathlive-environment-popover");a==null||a.classList.remove("is-visible")}function mv(){document.getElementById("mathlive-environment-popover")&&(bh("mathlive-environment-popover"),x("environment-popover"),x("core"))}function ih(a){if(!a.hasFocus())return;let y=!1;if(a.model.mode==="math"){const b=a.model.parentEnvironment;if(b!=null&&b.array&&Kl(b.environmentName)){const E=a.options.environmentPopoverPolicy;y=E==="auto"||E==="on"}}y?pv(a):_h()}function gv(a){return a.replace("*","")}function vv(a){return a==="dcases"?"cases":a}function X0(a){const y=getComputedStyle(a).direction;return y==="ltr"||y==="rtl"?y:"ltr"}function Q0(a,y,b){return y==="left"||y==="leading"&&b==="ltr"||y==="trailing"&&b==="rtl"?a.left:a.right}function zh(a,y,b,E){return b==="middle"?a-y/2:b==="start"&&E==="rtl"||b==="end"&&E==="ltr"||b==="top"||b==="right"?Math.max(0,a-y):a}function yv(a,y,b,E){return b==="middle"?a-y/2:b==="start"&&E==="ltr"||b==="end"&&E==="rtl"||b==="top"||b==="right"?a:a-y}function bv(a,y){var b,E,ee;const ie=(b=X0(a))!=null?b:"ltr";a.style.position="fixed",a.style.left="",a.style.top="",a.style.right="",a.style.bottom="",a.style.height="",a.style.width="";const oe=a.getBoundingClientRect(),ve=Number.isFinite(y.maxHeight)?Math.min(y.maxHeight,window.innerHeight):window.innerHeight;let Ee=Math.min(ve,(E=y.height)!=null?E:oe.height),Te=zh(y.location.y,Ee,y.verticalPos,ie);Te+Ee>window.innerHeight-8&&(y.alternateLocation?(Te=zh(y.alternateLocation.y,Ee,y.verticalPos,ie),Te+Ee>window.innerHeight-8&&(Te=void 0)):Te=void 0),Number.isFinite(Te)||(Te=Math.max(8,window.innerHeight-8-Ee),8+Ee>window.innerHeight-8&&(a.style.bottom="8px")),Ee=Math.min(Te+Ee,window.innerHeight-8)-Te;const Ke=Number.isFinite(y.maxWidth)?Math.min(y.maxWidth,window.innerWidth):window.innerWidth;let pt=Math.min(Ke,(ee=y.width)!=null?ee:oe.width),Tt=zh(y.location.x,pt,y.horizontalPos,ie);Tt+pt>window.innerWidth-8&&(y.alternateLocation?(Tt=yv(y.alternateLocation.x,pt,y.verticalPos,ie),Tt+pt>window.innerWidth-8&&(Tt=void 0)):Tt=void 0),Number.isFinite(Tt)||(Tt=Math.max(8,window.innerWidth-8-pt),8+pt>window.innerWidth-8&&(a.style.right="8px")),pt=Math.min(Tt+pt,window.innerWidth-8)-Tt,ie==="rtl"?a.style.right=`${Math.ceil(window.innerWidth-Tt-pt).toString()}px`:a.style.left=`${Math.ceil(Tt).toString()}px`,a.style.top=`${Math.ceil(Te).toString()}px`,Ee!==oe.height&&(a.style.height=`${Math.ceil(Ee).toString()}px`),pt!==oe.width&&(a.style.width=`${Math.ceil(pt).toString()}px`)}function xv(a,y){return Math.hypot(y.x-a.x,y.y-a.y)}function jd(a){return"submenu"in a}function Kc(a){return"type"in a&&a.type==="command"||"onMenuSelect"in a||"id"in a}function $h(a){return"type"in a&&a.type==="divider"}function Kh(a){return"type"in a&&a.type==="heading"}var J0={};function Hh(a){let y=J0[a];if(!y){let b;switch(a){case"checkmark":b=`<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":b='<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":b='<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(b){const E=document.createElement("template");E.innerHTML=b,J0[a]=E,y=E}}if(y){if("content"in y)return y.content.cloneNode(!0);const b=document.createElement("svg");return b.innerHTML=y.innerHTML,b}}var q0=80,ep=class{constructor(a,y){this._element=null;var b;this.parentMenu=y,this._declaration=a,jd(a)?(this.type="submenu",this.submenu=new tp(a.submenu,{parentMenu:y,submenuClass:a.submenuClass,columnCount:a.columnCount})):this.type=(b=a.type)!=null?b:"command",this.hasCheck=Kc(a)&&a.checked!==void 0}get rootMenu(){return this.parentMenu.rootMenu}get abortController(){return this._abortController||(this._abortController=new AbortController),this._abortController}dispose(){var a,y;(a=this._abortController)==null||a.abort(),this._abortController=void 0,(y=this._element)==null||y.remove(),this._element=null,this.submenu&&this.submenu.dispose(),this.submenu=void 0}get menuItem(){return this._declaration}get label(){var a;return(a=this._label)!=null?a:""}set label(a){a===void 0&&(a=""),a!==this._label&&(this._label=a,this.dirty=!0)}get visible(){return this._visible}set visible(a){a!==this._visible&&(this._visible=a,this.dirty=!0)}get enabled(){return this._enabled}set enabled(a){this._enabled=a,this.element&&(a?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")),this.dirty=!0}get checked(){return this._checked}set checked(a){this._checked=a,this.dirty=!0}get tooltip(){return this._tooltip}set tooltip(a){a!==this._tooltip&&(this._tooltip=a,this.dirty=!0)}get ariaLabel(){return this._ariaLabel}set ariaLabel(a){a!==this._ariaLabel&&(this._ariaLabel=a,this.dirty=!0)}get active(){var a,y;return(y=(a=this.element)==null?void 0:a.classList.contains("active"))!=null?y:!1}set active(a){this.element&&this.element.classList.toggle("active",a)}updateState(a){var y,b,E;const ee=this._declaration;if($h(ee)){this.enabled=!1,this.checked=!1;return}Kh(ee)&&(this.enabled=!1,this.checked=!1,this.visible=!0),Kc(ee)&&(this.checked=Kc(ee)&&((y=Gd(ee.checked,a))!=null?y:!1)),(Kc(ee)||jd(ee))&&(this.enabled=(b=Gd(ee.enabled,a))!=null?b:!0,this.visible=(E=Gd(ee.visible,a))!=null?E:!0,this.visible&&this.enabled&&this.submenu&&(this.submenu.updateState(a),this.submenu.visible||(this.visible=!1))),(Kc(ee)||Kh(ee)||jd(ee))&&(this.label=Gd(ee.label,a),this.tooltip=Gd(ee.tooltip,a),this.ariaLabel=Gd(ee.ariaLabel,a)),this._element&&this.updateElement()}set dirty(a){console.assert(a===!0),a&&this.parentMenu&&(this.parentMenu.dirty=!0)}updateElement(){if(!this.visible||!this.element)return;const a=this.element;a.textContent="",this.enabled?a.removeAttribute("aria-disabled"):a.setAttribute("aria-disabled","true"),this.checked===!0?(a.setAttribute("aria-checked","true"),a.append(Hh("checkmark"))):this.checked==="mixed"?(a.setAttribute("aria-checked","mixed"),a.append(Hh("mixedmark"))):a.removeAttribute("aria-checked"),this.ariaLabel&&a.setAttribute("aria-label",this.ariaLabel);const y=document.createElement("span");if(y.className=this.parentMenu.hasCheck?"label indent":"label",this.type==="heading"&&y.classList.add("heading"),y.innerHTML=this.label,a.append(y),this._tooltip&&a.setAttribute("data-tooltip",this._tooltip),Kc(this._declaration)&&this._declaration.keyboardShortcut){const b=document.createElement("kbd");b.innerHTML=vh(this._declaration.keyboardShortcut),a.append(b)}this.type==="submenu"&&a.append(Hh("trailing-chevron"))}get element(){if(this._element)return this._element;if($h(this._declaration)){const b=document.createElement("li");return b.setAttribute("part","menu-divider"),b.setAttribute("role","divider"),this._element=b,b}const a=document.createElement("li");this._element=a,(Kc(this._declaration)||Kh(this._declaration)||jd(this._declaration))&&this._declaration.class&&(a.className=this._declaration.class),a.setAttribute("part","menu-item"),a.setAttribute("tabindex","-1"),this.hasCheck?a.setAttribute("role","menuitemcheckbox"):a.setAttribute("role","menuitem"),this.type==="submenu"&&(a.setAttribute("aria-haspopup","true"),a.setAttribute("aria-expanded","false"));const y=this.abortController.signal;return a.addEventListener("pointerenter",this,{signal:y}),a.addEventListener("pointerleave",this,{signal:y}),a.addEventListener("pointerup",this,{signal:y}),a.addEventListener("click",this,{signal:y}),this._element}dispatchSelect(){if(!Kc(this._declaration))return;const a=new CustomEvent("menu-select",{cancelable:!0,bubbles:!0,detail:{modifiers:this.rootMenu.modifiers,id:this._declaration.id,data:this._declaration.data}});this.parentMenu.dispatchEvent(a)&&typeof this._declaration.onMenuSelect=="function"&&this._declaration.onMenuSelect({modifiers:this.rootMenu.modifiers,id:this._declaration.id,data:this._declaration.data})}handleEvent(a){var y;if(!(!this.visible||!this.enabled)){if(a.type==="click"){this.rootMenu.state==="modal"&&this.select(),a.stopPropagation(),a.preventDefault();return}if(a.type==="pointerenter"){const b=a;this.rootMenu.cancelDelayedOperation(),this.parentMenu.isSubmenuOpen&&((y=this.parentMenu.activeMenuItem)!=null&&y.movingTowardSubmenu(b))?this.rootMenu.scheduleOperation(()=>{this.parentMenu.activeMenuItem=this,this.openSubmenu()}):(this.parentMenu.activeMenuItem=this,this.openSubmenu({withDelay:!0}));return}if(a.type==="pointerleave"){this.rootMenu.activeSubmenu===this.parentMenu&&(this.parentMenu.activeMenuItem=null);return}if(a.type==="pointerup"){this.rootMenu.state!=="modal"&&this.select(),a.stopPropagation(),a.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()},q0)},q0)}openSubmenu(a){var y;if(this.type!=="submenu"||!this.element)return;if((y=a==null?void 0:a.withDelay)!=null&&y){this.rootMenu.scheduleOperation(()=>this.openSubmenu());return}const b=this.element.getBoundingClientRect(),E=X0(this.element);this.submenu.show({container:this.rootMenu.element.parentNode,location:{x:Q0(b,"trailing",E),y:b.top-4},alternateLocation:{x:Q0(b,"leading",E),y:b.top-4}})}movingTowardSubmenu(a){if(!this.element||this.type!=="submenu")return!1;const y=this.rootMenu.lastMoveEvent;if(!y)return!1;const b=a.timeStamp-y.timeStamp;if(b>500)return!1;const E=a.clientX-y.clientX;if(Sv(E,y.clientY-a.clientY,b)<=.2)return!1;let ie="right";if(this.submenu.element){const oe=this.submenu.element.getBoundingClientRect(),ve=this.element.getBoundingClientRect();oe.left<ve.left+ve.width/2&&(ie="left")}return ie==="right"?E>0:E<0}};function Sv(a,y,b){return Math.hypot(a,y)/b}function Gd(a,y){return a===void 0||typeof a!="function"?a:(y!=null||(y={alt:!1,control:!1,shift:!1,meta:!1}),a(y))}var tp=class nf{constructor(y,b){this._element=null,this._activeMenuItem=null,this._dirty=!0;var E,ee;this.parentMenu=(E=b==null?void 0:b.parentMenu)!=null?E:null,this._submenuClass=b==null?void 0:b.submenuClass,this.columnCount=(ee=b==null?void 0:b.columnCount)!=null?ee:1,this.isSubmenuOpen=!1,this.menuItems=y}get children(){return this._menuItems}set menuItems(y){const b=this.parentMenu;this.dispose(),this.parentMenu=b,y=[...y],this._menuItems=y.map(E=>E.onCreate?E.onCreate(E,this):new ep(E,this)),this.hasCheck=void 0,this.dirty=!0}dispose(){var y;this.hide(),this._element&&this._element.remove(),this._abortController&&this._abortController.abort(),(y=this._menuItems)==null||y.forEach(b=>b.dispose()),this._menuItems=[],this._activeMenuItem=null,this.parentMenu=null}handleEvent(y){if(y.type==="wheel"&&this._element){const b=y;this._element.scrollBy(0,b.deltaY),y.stopPropagation()}}dispatchEvent(y){return this.rootMenu.dispatchEvent(y)}get rootMenu(){return this.parentMenu.rootMenu}updateState(y){var b,E,ee;this._menuItems.forEach(Te=>Te.updateState(y));const ie=this.hasCheck;this.hasCheck=this._menuItems.some(Te=>Te.visible&&Te.hasCheck),this.hasCheck!==ie&&this._menuItems.forEach(Te=>Te.updateState(y));let oe,ve=0;for(const Te of this._menuItems)Te.type==="heading"?(oe&&ve===0&&(oe.visible=!1),oe=Te,ve=0):Te.type==="divider"&&oe?(oe.visible=ve>0,oe=void 0,ve=0):oe&&Te.visible&&(ve+=1);oe&&(oe.visible=ve>0);let Ee=!0;for(const Te of this._menuItems)Te.type==="divider"?(Te.visible=!Ee,Ee=!0):Te.visible&&(Ee=!1);(b=this.activeMenuItem)!=null&&b.visible||(this.activeMenuItem=null),!((E=this.activeMenuItem)!=null&&E.enabled)&&((ee=this.activeMenuItem)==null?void 0:ee.type)==="submenu"&&this._activeMenuItem.submenu.hide(),this._dirty=!1}get enabled(){return this.updateIfDirty(),this._menuItems.some(y=>y.type!=="divider"&&y.visible&&y.enabled)}get visible(){return this.updateIfDirty(),this._menuItems.some(y=>y.type!=="divider"&&y.visible)}set dirty(y){console.assert(y===!0),this._dirty!==y&&y&&this.parentMenu&&(this._dirty=!0,this.parentMenu.dirty=!0)}updateIfDirty(){this._dirty&&this.updateState(this.rootMenu.modifiers)}updateElement(){var y;if(this._element){this._element.textContent="";for(const{element:b,visible:E}of this._menuItems)b&&E&&this._element.append(b);(y=this._element.querySelector("li:first-of-type"))==null||y.setAttribute("tabindex","0")}}get element(){if(this._element)return this._element;const y=document.createElement("menu");y.setAttribute("role","menu"),y.setAttribute("tabindex","-1"),y.setAttribute("aria-orientation","vertical"),y.setAttribute("part","ui-menu-container"),this._submenuClass&&y.classList.add(this._submenuClass),y.classList.add("ui-menu-container"),this._abortController||(this._abortController=new AbortController);const b=this._abortController.signal;return y.addEventListener("focus",this,{signal:b}),y.addEventListener("wheel",this,{passive:!0,signal:b}),this._element=y,this.updateElement(),y}get activeMenuItem(){return this._activeMenuItem}set activeMenuItem(y){var b,E,ee,ie;if(this.rootMenu.cancelDelayedOperation(),y!==this._activeMenuItem){if(this.activeMenuItem){const oe=this.activeMenuItem;oe.active=!1,(b=oe.submenu)==null||b.hide()}if(!((E=y==null?void 0:y.visible)==null||E)){this._activeMenuItem=null;return}this._activeMenuItem=y,y&&(y.active=!0)}y?(ee=y.element)==null||ee.focus({preventScroll:!0}):(ie=this._element)==null||ie.focus({preventScroll:!0})}get firstMenuItem(){this.updateIfDirty();let y=0,b=!1;const E=this._menuItems;for(;!b&&y<=E.length-1;){const ee=E[y];b=ee.type!=="divider"&&ee.visible&&ee.enabled,y+=1}return b?E[y-1]:null}get lastMenuItem(){this.updateIfDirty();const y=this._menuItems;let b=y.length-1,E=!1;for(;!E&&b>=0;){const ee=y[b];E=ee.type!=="divider"&&ee.visible&&ee.enabled,b-=1}return E?y[b+1]:null}nextMenuItem(y){if(y===0)return this._activeMenuItem;if(!this._activeMenuItem)return y>0?this.firstMenuItem:this.lastMenuItem;if(!this.firstMenuItem||!this.lastMenuItem||!this._activeMenuItem)return null;this.updateIfDirty();const b=this._menuItems.indexOf(this.firstMenuItem),E=this._menuItems.indexOf(this.lastMenuItem);let ee=this._menuItems.indexOf(this._activeMenuItem),ie=1;for(;ee>=b&&ee<=E;){ee+=y>0?1:-1;const oe=this._menuItems[ee];if(!oe)break;if(oe.visible&&oe.enabled){if(ie===Math.abs(y))return this._menuItems[ee];ie+=1}}return y>0?this.lastMenuItem:this.firstMenuItem}getMenuItemColumn(y){this.updateIfDirty();const E=this._menuItems.filter(ee=>ee.visible&&ee.enabled).indexOf(y);return E<0?-1:E%this.columnCount}static get collator(){return nf._collator||(nf._collator=new Intl.Collator(void 0,{usage:"search",sensitivity:"base"})),nf._collator}findMenuItem(y){var b;this.updateIfDirty();const E=this._menuItems.filter(ve=>ve.type!=="divider"&&ve.visible&&ve.enabled);if(E.length===0)return null;const ee=Math.max(...E.map(ve=>ve.label.length))-y.length;if(ee<0)return null;let ie=null,oe=0;for(;oe<ee&&!ie;)ie=(b=E.find(ve=>nf.collator.compare(y,ve.label.substring(oe,y.length))===0))!=null?b:null,oe++;return ie}show(y){return!this.visible||!y.container?!1:(this.updateElement(),y.container.appendChild(this.element),Pt()&&(this.element.popover="manual",this.element.showPopover()),y.location&&bv(this.element,{location:y.location,alternateLocation:y.alternateLocation,verticalPos:"bottom",horizontalPos:"start"}),this.element.focus({preventScroll:!0}),this.parentMenu&&(this.parentMenu.openSubmenu=this),!0)}hide(){var y,b,E,ee,ie;this.openSubmenu=null,this.activeMenuItem=null,this.parentMenu&&(this.parentMenu.openSubmenu=null),Pt()&&((y=this._element)!=null&&y.popover)&&this.element.hidePopover(),(E=(b=this.parentMenu)==null?void 0:b.element)==null||E.focus(),(ie=(ee=this._element)==null?void 0:ee.parentNode)==null||ie.removeChild(this._element)}set openSubmenu(y){var b,E,ee,ie;const oe=y!==null;((b=this.activeMenuItem)==null?void 0:b.type)==="submenu"&&((E=this.activeMenuItem.element)==null||E.setAttribute("aria-expanded",oe.toString())),(ie=(ee=this.activeMenuItem)==null?void 0:ee.element)==null||ie.classList.toggle("is-submenu-open",oe),this.isSubmenuOpen=oe}},np=class rm extends tp{constructor(y,b){var E;super(y),this.state="closed",this.typingBufferResetTimer=0,this.hysteresisTimer=0,this._updating=!1,this._host=(E=b==null?void 0:b.host)!=null?E:null,this.isDynamic=y.some(rp),this._modifiers={shift:!1,control:!1,alt:!1,meta:!1},this.typingBuffer="",this.state="closed"}get modifiers(){return this._modifiers}set modifiers(y){$m(this._modifiers,y)||(this._modifiers=y,this.dirty=!0)}get activeSubmenu(){let y=this;for(;y.isSubmenuOpen;)y=y.activeMenuItem.submenu;return y}set dirty(y){this._updating||(console.assert(y===!0),this._dirty!==y&&(this._dirty=!0,y&&setTimeout(()=>{this.updateState(this.modifiers),this.updateElement()})))}updateState(y){this._updating=!0,this.modifiers=y!=null?y:this.modifiers,super.updateState(this.modifiers),this._updating=!1}handleKeyupEvent(y){this.isDynamic&&(this.modifiers=Cd(y)),y.stopImmediatePropagation()}handleKeydownEvent(y){var b,E,ee;if(y.key==="Tab"||y.key==="Escape"){this.hide();return}this.isDynamic&&(this.modifiers=Cd(y));let ie=!0;const oe=this.activeSubmenu,ve=oe.activeMenuItem;switch(y.key){case" ":case"Space":case"Return":case"Enter":ve==null||ve.select(Cd(y));break;case"ArrowRight":if((ve==null?void 0:ve.type)==="submenu")ve.select(Cd(y)),this.activeSubmenu.activeMenuItem=this.activeSubmenu.firstMenuItem;else if(!ve)oe.activeMenuItem=oe.firstMenuItem;else{const Ee=(b=oe.getMenuItemColumn(ve))!=null?b:-1;if(Ee>=0&&Ee<((E=oe.columnCount)!=null?E:1)-1){const Te=oe.nextMenuItem(1);Te&&(oe.activeMenuItem=Te)}}break;case"ArrowLeft":if(oe===this.rootMenu)ve||(oe.activeMenuItem=oe.firstMenuItem);else if((ve&&(ee=oe.getMenuItemColumn(ve))!=null?ee:-1)<=0||!ve){oe.hide();const Te=oe.parentMenu.activeMenuItem;if(Te){const{element:Ke}=Te;Ke==null||Ke.focus(),Ke==null||Ke.classList.remove("is-submenu-open")}}else{const Te=oe.nextMenuItem(-1);Te&&(oe.activeMenuItem=Te)}break;case"ArrowDown":oe.activeMenuItem=oe.nextMenuItem(oe.columnCount);break;case"ArrowUp":oe.activeMenuItem=oe.nextMenuItem(-oe.columnCount);break;case"Home":case"PageUp":oe.activeMenuItem=oe.firstMenuItem;break;case"End":case"PageDown":oe.activeMenuItem=oe.lastMenuItem;break;case"Backspace":if(this.typingBuffer&&(this.typingBuffer=this.typingBuffer.slice(0,-1),this.typingBuffer)){clearTimeout(this.typingBufferResetTimer);const Ee=oe.findMenuItem(this.typingBuffer);Ee&&(oe.activeMenuItem=Ee),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}break;default:if(Nf(y)){isFinite(this.typingBufferResetTimer)&&clearTimeout(this.typingBufferResetTimer),this.typingBuffer+=y.key;const Ee=oe.findMenuItem(this.typingBuffer);Ee&&(oe.activeMenuItem=Ee),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}else ie=!1}ie&&(y.preventDefault(),y.stopPropagation())}handleEvent(y){if(y.type==="keydown")this.handleKeydownEvent(y);else if(y.type==="keyup")this.handleKeyupEvent(y);else if(y.type==="pointermove")this.lastMoveEvent=y;else if(y.type==="pointerup"&&y.target===this.scrim)Number.isFinite(this.rootMenu._openTimestamp)&&Date.now()-this.rootMenu._openTimestamp<120?this.state="modal":this.state==="modal"&&this.hide();else if(y.type==="contextmenu"){y.preventDefault(),y.stopPropagation();return}super.handleEvent(y)}dispatchEvent(y){return this._host?this._host.dispatchEvent(y):!0}get scrim(){return Fc.element}connectScrim(y){const b=this.scrim;b.addEventListener("pointerup",this),b.addEventListener("contextmenu",this),b.addEventListener("keydown",this),b.addEventListener("keyup",this),b.addEventListener("pointermove",this),Fc.open({root:y,onDismiss:()=>this.hide()})}disconnectScrim(){const y=this.scrim;y.removeEventListener("pointerup",this),y.removeEventListener("contextmenu",this),y.removeEventListener("keydown",this),y.removeEventListener("keyup",this),y.removeEventListener("pointermove",this),Fc.state==="open"&&Fc.scrim.close()}get rootMenu(){return this}show(y){return this._onDismiss=y==null?void 0:y.onDismiss,y!=null&&y.modifiers&&(this.modifiers=y.modifiers),this.updateState(),this.connectScrim(y==null?void 0:y.target),super.show(pe(we({},y),{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,Fc.element.parentElement.focus(),super.hide(),this.state="closed",this.disconnectScrim()),this._onDismiss&&(this._onDismiss(),this._onDismiss=void 0))}scheduleOperation(y){this.cancelDelayedOperation();const b=rm.SUBMENU_DELAY;if(b<=0){y();return}this.hysteresisTimer=setTimeout(()=>{this.hysteresisTimer=0,y()},b)}cancelDelayedOperation(){this.hysteresisTimer&&(clearTimeout(this.hysteresisTimer),this.hysteresisTimer=0)}};np.SUBMENU_DELAY=120;var wv=np;function rp(a){return $h(a)?!1:typeof a.label=="function"||typeof a.ariaLabel=="function"||typeof a.tooltip=="function"||(Kc(a)||jd(a))&&(typeof a.enabled=="function"||typeof a.visible=="function")||Kc(a)&&typeof a.checked=="function"?!0:jd(a)?a.submenu.some(rp):!1}var ah=class{};ah.DELAY=300,ah.MAX_DISTANCE=10;function Cv(a){return new Promise((y,b)=>{const E=If(a);E||y(!1);let ee=E;const ie=setTimeout(()=>{oe.abort(),y(xv(ee,E)<ah.MAX_DISTANCE)},ah.DELAY),oe=new AbortController,ve=oe.signal;for(const Ee of["pointermove","pointerup","pointercancel"])window.addEventListener(Ee,Te=>{if(Te.type==="pointerup"||Te.type==="pointercancel")clearTimeout(ie),oe.abort(),y(!1);else if(Te.type==="pointermove"){const Ke=If(Te);Ke&&(ee=Ke)}},{passive:!0,signal:ve})})}function ip(a,y,b){return gd(this,null,function*(){if(a.type==="contextmenu"){const E=a;if(b.show({target:y,location:If(E),modifiers:Cd(E)}))return a.preventDefault(),a.stopPropagation(),!0}if(a.type==="keydown"){const E=a;if(E.code==="ContextMenu"||E.code==="F10"&&E.shiftKey){const ee=y==null?void 0:y.getBoundingClientRect();if(ee&&b.show({target:y,location:{x:Math.ceil(ee.left+ee.width/2),y:Math.ceil(ee.top+ee.height/2)},modifiers:Cd(E)}))return a.preventDefault(),a.stopPropagation(),!0}}if(a.type==="pointerdown"&&a.pointerType!=="mouse"&&a.button===0){let E=a.target;for(;E&&y!==E;)E=E.parentNode;if(!E||!b.visible)return!1;const ee=If(a);if(yield Cv(a))return b.state!=="closed"?!1:(b.show({target:y,location:ee}),!0)}return!1})}var ap={acute:714,grave:715,dot:729,ddot:168,mathring:730,tilde:126,bar:713,breve:728,check:711,hat:94,vec:8407};Jt(Object.keys(ap),"{body:auto}",{createAtom:a=>new z(pe(we({},a),{body:Mt(a.args[0]),accentChar:ap[a.command.slice(1)]}))}),Jt(["widehat","widecheck","widetilde"],"{body:auto}",{createAtom:a=>{const y=vn(Mt(a.args[0]));return new z(pe(we({},a),{body:Mt(a.args[0]),svgAccent:a.command.slice(1)+(y.length>5?"4":["1","1","2","2","3","3"][y.length])}))}}),Jt(["overarc","overparen","wideparen"],"{body:auto}",{createAtom:a=>new z(pe(we({},a),{body:Mt(a.args[0]),svgAccent:"overarc"}))}),Jt(["underarc","underparen"],"{body:auto}",{createAtom:a=>new Sc(pe(we({},a),{body:Mt(a.args[0]),svgBelow:"underarc"}))}),Jt("utilde","{body:auto}",{createAtom:a=>{const y=Mt(a.args[0]),b=vn(y),E="widetilde"+(b.length>5?"4":["1","1","2","2","3","3"][b.length]);return new Sc(pe(we({},a),{body:y,svgBelow:E,boxType:wl(y)}))}}),Jt("^","{:string}",{createAtom:a=>{var y;return new Wr(pe(we({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={a:"\xE2",e:"\xEA",i:"\xEE",o:"\xF4",u:"\xFB",A:"\xC2",E:"\xCA",I:"\xCE",O:"\xD4",U:"\xDB"}[a.args[0]])!=null?y:"^"}))}}),Jt("`","{:string}",{createAtom:a=>{var y;return new Wr(pe(we({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={a:"\xE0",e:"\xE8",i:"\xEC",o:"\xF2",u:"\xF9",A:"\xC0",E:"\xC8",I:"\xCC",O:"\xD2",U:"\xD9"}[a.args[0]])!=null?y:"`"}))}}),Jt("'","{:string}",{createAtom:a=>{var y;return new Wr(pe(we({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={a:"\xE1",e:"\xE9",i:"\xED",o:"\xF3",u:"\xFA",A:"\xC1",E:"\xC9",I:"\xCD",O:"\xD3",U:"\xDA"}[a.args[0]])!=null?y:"'"}))}}),Jt('"',"{:string}",{createAtom:a=>{var y,b;return new Wr(pe(we({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:(y=a.args)!=null&&y[0]?(b={a:"\xE4",e:"\xEB",i:"\xEF",o:"\xF6",u:"\xFC",A:"\xC4",E:"\xCB",I:"\xCB",O:"\xD6",U:"\xDC"}[a.args[0]])!=null?b:'"'+a.args[0]:'"'}))}}),Jt(".","{:string}",{createAtom:a=>{var y,b;return new Wr(pe(we({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:(y=a.args)!=null&&y[0]?(b={a:"\u0227",e:"\u0117",i:"\u0307i",o:"\u022F",u:"\u0307u",A:"\u0226",E:"\u0116",I:"\u0130",O:"\u022E",U:"\u0307U"}[a.args[0]])!=null?b:"."+a.args[0]:"."}))}}),Jt("=","{:string}",{createAtom:a=>{var y,b;return new Wr(pe(we({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:(y=a.args)!=null&&y[0]?(b={a:"\u0101",e:"\u0113",i:"\u012B",o:"\u014D",u:"\u016B",A:"\u0100",E:"\u0112",I:"\u012A",O:"\u014C",U:"\u016A"}[a.args[0]])!=null?b:"="+a.args[0]:"="}))}}),Jt("~","{:string}",{createAtom:a=>{var y;return new Wr(pe(we({type:"mord"},a),{isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={n:"\xF1",N:"\xD1",a:"\xE3",o:"\xF5",A:"\xC3",O:"\xD5"}[a.args[0]])!=null?y:"\xB4"}))}}),Jt("c","{:string}",{createAtom:a=>{var y;return new Wr(pe(we({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={c:"\xE7",C:"\xC7"}[a.args[0]])!=null?y:""}))}}),Jt("enclose","{notation:string}[style:string]{body:auto}",{createAtom:a=>{var y,b;const E=a.args,ee={strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",backgroundcolor:"transparent",padding:"auto",shadow:"none",svgStrokeStyle:void 0,borderStyle:void 0,style:(y=a.style)!=null?y:{}};if(E[1]){const oe=E[1].split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const ve of oe){const Ee=ve.match(/\s*(\S+)\s+(\S+)\s+(.*)/);if(Ee)ee.strokeWidth=Ee[1],ee.strokeStyle=Ee[2],ee.strokeColor=Ee[3];else{const Te=ve.match(/\s*([a-z]*)\s*=\s*"(.*)"/);Te&&(Te[1]==="mathbackground"?ee.backgroundcolor=Te[2]:Te[1]==="mathcolor"?ee.strokeColor=Te[2]:Te[1]==="padding"?ee.padding=Te[2]:Te[1]==="shadow"&&(ee.shadow=Te[2]))}}ee.strokeStyle==="dashed"?ee.svgStrokeStyle="5,5":ee.strokeStyle==="dotted"&&(ee.svgStrokeStyle="1,5")}ee.borderStyle=`${ee.strokeWidth} ${ee.strokeStyle} ${ee.strokeColor}`;const ie={};return((b=E[0])!=null?b:"").split(/[, ]/).filter(oe=>oe.length>0).forEach(oe=>{ie[oe.toLowerCase()]=!0}),new rf(a.command,Mt(E[2]),ie,ee)}}),Jt("cancel","{body:auto}",{createAtom:a=>{var y;return new rf(a.command,Mt(a.args[0]),{updiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(y=a.style)!=null?y:{}})}}),Jt("bcancel","{body:auto}",{createAtom:a=>{var y;return new rf(a.command,Mt(a.args[0]),{downdiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(y=a.style)!=null?y:{}})}}),Jt("xcancel","{body:auto}",{createAtom:a=>{var y;return new rf(a.command,Mt(a.args[0]),{updiagonalstrike:!0,downdiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(y=a.style)!=null?y:{}})}}),Jt(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overlinesegment","overgroup"],"{:auto}",{createAtom:a=>{var y;return new Sc(pe(we({},a),{body:Mt((y=a.args)==null?void 0:y[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgAbove:a.command.slice(1)}))}}),Jt("overbrace","{:auto}",{createAtom:a=>new Sc(pe(we({},a),{body:Mt(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgAbove:a.command.slice(1)}))}),Jt(["underrightarrow","underleftarrow","underleftrightarrow","underlinesegment","undergroup"],"{:auto}",{createAtom:a=>new Sc(pe(we({},a),{body:Mt(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgBelow:a.command.slice(1)}))}),Jt(["underbrace"],"{:auto}",{createAtom:a=>new Sc(pe(we({},a),{body:Mt(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgBelow:a.command.slice(1)}))}),Jt(["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:a=>{var y,b,E,ee,ie;return new Sc(pe(we({},a),{svgBody:a.command.slice(1),above:((b=Mt((y=a.args)==null?void 0:y[1]))==null?void 0:b.length)===0?void 0:Mt((E=a.args)==null?void 0:E[1]),below:(ie=Mt((ee=a.args)==null?void 0:ee[0]))!=null?ie:null,skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,paddedLabels:!0,boxType:"rel"}))},serialize:(a,y)=>a.command+(a.hasEmptyBranch("below")?"":`[${a.belowToLatex(y)}]`)+`{${a.aboveToLatex(y)}}${a.supsubToLatex(y)}`}),Jt(["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:a=>new wd(a.command.slice(1),pe(we({},a),{limits:"adjacent",isFunction:!0,variant:"main",variantStyle:"up"}))}),Jt(["liminf","limsup"],"",{ifMode:"math",createAtom:a=>new wd({"\\liminf":"lim inf","\\limsup":"lim sup"}[a.command],pe(we({},a),{limits:"over-under",variant:"main"}))}),Jt(["lim","mod"],"",{ifMode:"math",createAtom:a=>new wd(a.command.slice(1),pe(we({},a),{limits:"over-under",variant:"main"}))}),Jt(["det","max","min"],"",{ifMode:"math",isFunction:!0,createAtom:a=>new wd(a.command.slice(1),pe(we({},a),{limits:"over-under",isFunction:!0,variant:"main"}))}),Jt(["ang"],"{:math}",{ifMode:"math",createAtom:a=>new Wr(pe(we({},a),{body:Mt(a.args[0])})),serialize:(a,y)=>`\\ang{${a.bodyToLatex(y)}}`,render:(a,y)=>{const b=a.createBox(y),E=b.caret;b.caret=void 0;const ee=new oi("\xB0",{style:pe(we({},a.style),{variant:"normal",variantStyle:"up"})});return new oi([b,ee],{type:"inner",isSelected:a.isSelected,caret:E})}}),Jt("sqrt","[index:auto]{radicand:expression}",{ifMode:"math",createAtom:a=>new o0(pe(we({},a),{body:Mt(a.args[1]),index:a.args[0]?Mt(a.args[0]):void 0}))}),Jt(["frac","dfrac","tfrac","cfrac","binom","dbinom","tbinom"],"{:expression}{:expression}",{ifMode:"math",createAtom:a=>{const y=we({},a),b=a.command,E=a.args;switch(b){case"\\dfrac":case"\\frac":case"\\tfrac":y.hasBarLine=!0;break;case"\\atopfrac":y.hasBarLine=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":y.hasBarLine=!1,y.leftDelim="(",y.rightDelim=")";break;case"\\cfrac":y.hasBarLine=!0,y.continuousFraction=!0;break;default:}switch(b){case"\\dfrac":case"\\dbinom":y.mathstyleName="displaystyle";break;case"\\tfrac":case"\\tbinom":y.mathstyleName="textstyle";break;default:}return new _d(E[0]?Mt(E[0]):[new mo],E[1]?Mt(E[1]):[new mo],y)},serialize:(a,y)=>{const b=a.aboveToLatex(y),E=a.belowToLatex(y);return/^[0-9]$/.test(b)&&/^[0-9]$/.test(E)?`${a.command}${b}${E}`:Ki(a.command,b,E)}}),Jt(["brace","brack"],"",{infix:!0,createAtom:a=>new _d(Mt(a.args[0]),Mt(a.args[1]),pe(we({},a),{hasBarLine:!1,leftDelim:a.command==="\\brace"?"\\lbrace":"\\lbrack",rightDelim:a.command==="\\brace"?"\\rbrace":"\\rbrack"})),serialize:(a,y)=>vo([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),Jt(["over","atop","choose"],"",{infix:!0,createAtom:a=>{let y,b;const E=a.args;return a.command==="\\choose"&&(y="(",b=")"),new _d(Mt(E[0]),Mt(E[1]),pe(we({},a),{hasBarLine:a.command==="\\over",leftDelim:y,rightDelim:b}))},serialize:(a,y)=>vo([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),Jt(["overwithdelims","atopwithdelims"],"{numer:auto}{denom:auto}{left-delim:delim}{right-delim:delim}",{infix:!0,createAtom:a=>{var y,b;const E=a.args;return new _d(Mt(E[0]),Mt(E[1]),pe(we({},a),{leftDelim:(y=E[2])!=null?y:".",rightDelim:(b=E[3])!=null?b:".",hasBarLine:!1}))},serialize:(a,y)=>`${a.aboveToLatex(y)} ${a.command}${a.leftDelim}${a.rightDelim}${a.belowToLatex(y)}`}),Jt("pdiff","{numerator}{denominator}",{ifMode:"math",createAtom:a=>new _d(Mt(a.args[0]),Mt(a.args[1]),pe(we({},a),{hasBarLine:!0,numerPrefix:"\u2202",denomPrefix:"\u2202"}))}),Jt(["sum","prod","bigcup","bigcap","coprod","bigvee","bigwedge","biguplus","bigotimes","bigoplus","bigodot","bigsqcup","intop"],"",{ifMode:"math",createAtom:a=>new fh({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"}[a.command.slice(1)],pe(we({},a),{limits:"auto",variant:"main"}))}),Jt("smallint","",{ifMode:"math",createAtom:a=>new wd("\u222B",pe(we({},a),{limits:"adjacent",variant:"main"}))});var op={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"};Jt(Object.keys(op),"",{ifMode:"math",createAtom:a=>{const y=a.command,b=op[y.slice(1)];return new fh(b,pe(we({},a),{limits:"adjacent",variant:{"\u22D2":"ams","\u22D3":"ams"}[b]}))}}),Jt(["Re","Im"],"",{ifMode:"math",createAtom:a=>new wd({"\\Re":"\u211C","\\Im":"\u2111"}[a.command],pe(we({},a),{limits:"adjacent",isFunction:!0,variant:"fraktur"}))}),Jt("middle","{:delim}",{ifMode:"math",createAtom:a=>{var y;return new r0(pe(we({},a),{delim:(y=a.args[0])!=null?y:"|",size:1}))}}),Jt("the","{:value}",{createAtom:a=>new Wr(pe(we({},a),{captureSelection:!0,verbatimLatex:null})),render:(a,y)=>{var b;const E=new Fa({parent:y},a.style);let ee="";a.isSelected&&(ee+=" ML__selected");const ie=E.evaluate(a.args[0]);return new oi(((b=Vs(ie))!=null?b:"").split("").map(oe=>new oi(oe,{type:"ord",classes:ee,mode:a.mode,isSelected:a.isSelected,style:we({variant:"main"},a.style)})),{type:"lift",style:a.style,caret:a.caret,isSelected:a.isSelected,classes:ee}).wrap(E)},serialize:a=>{var y;return`\\the${(y=Vs(a.args[0]))!=null?y:"\\relax"}`}}),Jt("mathtip","{:auto}{:math}",{createAtom:a=>new hh(pe(we({},a),{body:Mt(a.args[0]),tooltip:Mt(a.args[1]),content:"math"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${Wr.serialize([a.tooltip],pe(we({},y),{defaultMode:"math"}))}}`}),Jt("texttip","{:auto}{:text}",{createAtom:a=>new hh(pe(we({},a),{body:Mt(a.args[0]),tooltip:Mt(a.args[1]),content:"text"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${Wr.serialize([a.tooltip],pe(we({},y),{defaultMode:"text"}))}}`}),Jt("error","{:math}",{createAtom:a=>new Wr(pe(we({},a),{body:Mt(a.args[0])})),serialize:(a,y)=>`\\error{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__error"})}),Jt("ensuremath","{:math}",{createAtom:a=>new Wr(pe(we({},a),{body:Mt(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(pe(we({},y),{defaultMode:"math"}))}}`}),Jt("color","{:value}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimColor:(E=Vs(y[0]))!=null?E:void 0,color:b.toColor((ee=y[0])!=null?ee:{string:"red"})}}}),Jt("textcolor","{:value}{content:auto*}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimColor:(E=Vs(y[0]))!=null?E:void 0,color:b.toColor((ee=y[0])!=null?ee:{string:"red"})}}}),Jt("boxed","{content:math}",{createAtom:a=>new tu(pe(we({},a),{body:Mt(a.args[0]),framecolor:{string:"black"}}))}),Jt("colorbox","{:value}{:text*}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimBackgroundColor:(E=Vs(y[0]))!=null?E:void 0,backgroundColor:b.toBackgroundColor((ee=y[0])!=null?ee:{string:"yellow"})}}}),Jt("fcolorbox","{frame-color:value}{background-color:value}{content:text}",{applyMode:"text",createAtom:a=>{var y,b;return new tu(pe(we({},a),{body:Mt(a.args[2]),framecolor:(y=a.args[0])!=null?y:{string:"blue"},backgroundcolor:(b=a.args[1])!=null?b:{string:"yellow"}}))},serialize:(a,y)=>{var b,E;return y.skipStyles?a.bodyToLatex(pe(we({},y),{defaultMode:"text"})):Ki(a.command,(b=Vs(a.framecolor))!=null?b:"",(E=Vs(a.backgroundcolor))!=null?E:"",a.bodyToLatex(pe(we({},y),{defaultMode:"text"})))}}),Jt("bbox","[:bbox]{body:auto}",{createAtom:a=>{var y;const b=a.args[0],E=Mt(a.args[1]);return b?new tu(pe(we({},a),{body:E,padding:b.padding,border:b.border,backgroundcolor:(y=b.backgroundcolor)!=null?y:void 0})):new tu(pe(we({},a),{body:E}))},serialize:(a,y)=>{var b,E;if(y.skipStyles)return a.bodyToLatex(y);let ee=a.command;if(Number.isFinite(a.padding)||a.border!==void 0||a.backgroundcolor!==void 0){const ie=[];a.padding&&ie.push((b=Vs(a.padding))!=null?b:""),a.border&&ie.push(`border: ${a.border}`),a.backgroundcolor&&ie.push((E=Vs(a.backgroundcolor))!=null?E:""),ee+=`[${ie.join(",")}]`}return Ki(ee,a.bodyToLatex(y))}}),Jt(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"{:rest}",{createAtom:a=>new Wr(pe(we({},a),{body:Mt(a.args[0])})),render:(a,y)=>{const b=new Fa({parent:y,mathstyle:a.command.slice(1)},a.style),E=Wr.createBox(b,a.body,{type:"lift"});return a.caret&&(E.caret=a.caret),a.bind(y,E)},serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`{${vo([a.command,a.bodyToLatex(y)])}}`}),Jt(["tiny","scriptsize","footnotesize","small","normalsize","large","Large","LARGE","huge","Huge"],"",{applyStyle:a=>({fontSize:{"\\tiny":1,"\\scriptsize":2,"\\footnotesize":3,"\\small":4,"\\normalsize":5,"\\large":6,"\\Large":7,"\\LARGE":8,"\\huge":9,"\\Huge":10}[a]})}),Jt("fontseries","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontSeries:(b=y[0])!=null?b:"auto"}}}),Jt("fontshape","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontShape:(b=y[0])!=null?b:"auto"}}}),Jt("fontfamily","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontFamily:(b=y[0])!=null?b:"roman"}}}),Jt("selectfont","",{ifMode:"text",applyStyle:()=>({})}),Jt("bf","{:rest}",{applyStyle:()=>({fontSeries:"b",fontShape:"n",fontFamily:"roman"})}),Jt(["boldsymbol","bm"],"{:math}",{applyMode:"math",createAtom:a=>new Wr(pe(we({},a),{body:Mt(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__boldsymbol"})}),Jt("bold","{:math*}",{applyMode:"math",applyStyle:()=>({variantStyle:"bold"})}),Jt("bfseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),Jt("mdseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),Jt("upshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),Jt("slshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),Jt("scshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),Jt("textbf","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),Jt("textmd","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),Jt("textup","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),Jt("textnormal","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n",fontSeries:"m"})}),Jt("textsl","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),Jt("textit","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"it"})}),Jt("textsc","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),Jt("textrm","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"roman"})}),Jt("textsf","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"sans-serif"})}),Jt("texttt","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"monospace"})}),Jt("mathbf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"bold"})}),Jt("mathit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"italic"})}),Jt("mathnormal","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"italic"})}),Jt("mathbfit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"bolditalic"})}),Jt("mathrm","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"up"})}),Jt("mathsf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"sans-serif",variantStyle:"up"})}),Jt("mathtt","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"monospace",variantStyle:"up"})}),Jt("it","{:rest}",{applyStyle:()=>({fontSeries:"m",fontShape:"it",fontFamily:"roman",variantStyle:"italic"})}),Jt("rmfamily","",{applyStyle:()=>({fontFamily:"roman"})}),Jt("sffamily","",{applyStyle:()=>({fontFamily:"sans-serif"})}),Jt("ttfamily","",{applyStyle:()=>({fontFamily:"monospace"})}),Jt(["Bbb","mathbb"],"{:math*}",{applyStyle:()=>({variant:"double-struck",variantStyle:"up"})}),Jt(["frak","mathfrak"],"{:math*}",{applyStyle:()=>({variant:"fraktur",variantStyle:"up"})}),Jt("mathcal","{:math*}",{applyStyle:()=>({variant:"calligraphic",variantStyle:"up"})}),Jt("mathscr","{:math*}",{applyStyle:()=>({variant:"script",variantStyle:"up"})}),Jt("mbox","{:text}",{ifMode:"math",createAtom:a=>new Wr(pe(we({},a),{type:"mord",body:Mt(a.args[0]),mode:"math"})),serialize:(a,y)=>Ki("\\mbox",a.bodyToLatex(pe(we({},y),{defaultMode:"text"})))}),Jt("text","{:text}",{ifMode:"math",applyMode:"text"}),Jt(["class","htmlClass"],"{name:string}{content:auto}",{createAtom:a=>new Wr(pe(we({},a),{body:Mt(a.args[1])})),serialize:(a,y)=>!a.args[0]||y.skipStyles?a.bodyToLatex(y):`${a.command}{${a.args[0]}}{${a.bodyToLatex(y)}}`,render:(a,y)=>{var b;return a.createBox(y,{classes:(b=a.args[0])!=null?b:""})}}),Jt(["cssId","htmlId"],"{id:string}{content:auto}",{createAtom:a=>new Wr(pe(we({},a),{body:Mt(a.args[1])})),serialize:(a,y)=>{var b;return!((b=a.args)!=null&&b[0])||y.skipStyles?a.bodyToLatex(y):`${a.command}{${a.args[0]}}{${a.bodyToLatex(y)}}`},render:(a,y)=>{var b;const E=a.createBox(y);return E.cssId=(b=a.args[0])!=null?b:"",E}}),Jt("htmlData","{data:string}{content:auto}",{createAtom:a=>new Wr(pe(we({},a),{body:Mt(a.args[1])})),serialize:(a,y)=>{var b;return!((b=a.args)!=null&&b[0])||y.skipStyles?a.bodyToLatex(y):`\\htmlData{${a.args[0]}}{${a.bodyToLatex(y)}}`},render:(a,y)=>{var b;const E=a.createBox(y);return E.htmlData=(b=a.args[0])!=null?b:"",E}}),Jt(["style","htmlStyle"],"{data:string}{content:auto}",{createAtom:a=>new Wr(pe(we({},a),{body:Mt(a.args[1])})),serialize:(a,y)=>{var b;return!((b=a.args)!=null&&b[0])||y.skipStyles?a.bodyToLatex(y):`${a.command}{${a.args[0]}}{${a.bodyToLatex(y)}}`},render:(a,y)=>{var b;const E=a.createBox(y);return E.htmlStyle=(b=a.args[0])!=null?b:"",E}}),Jt("em","{:rest}",{createAtom:a=>new Wr(pe(we({},a),{body:Mt(a.args[0])})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`{\\em ${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__emph",boxType:"lift"})}),Jt("emph","{:auto}",{createAtom:a=>new Wr(pe(we({},a),{body:Mt(a.args[1])})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\emph{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__emph",boxType:"lift"})});var sp={"\\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}};Jt(["bigl","Bigl","biggl","Biggl","bigr","Bigr","biggr","Biggr","bigm","Bigm","biggm","Biggm","big","Big","bigg","Bigg"],"{:delim}",{createAtom:a=>{var y;return new i0(pe(we({},a),{delim:(y=a.args[0])!=null?y:".",size:sp[a.command].size,delimType:sp[a.command].mclass}))}}),Jt(["hspace","hspace*"],"{width:value}",{createAtom:a=>{var y;return new sf(pe(we({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),Jt(["mkern","kern","mskip","hskip","mspace"],"{width:value}",{createAtom:a=>{var y;return new sf(pe(we({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),Jt("mathchoice","{:math}{:math}{:math}{:math}",{createAtom:a=>new Wr(a),render:(a,y)=>{let b=0;const E=y.mathstyle.id;(E===Pl||E===Tl)&&(b=1),(E===lu||E===cl)&&(b=2),(E===uu||E===dl)&&(b=3);const ee=Mt(a.args[b]);return Wr.createBox(y,ee)},serialize:(a,y)=>`\\mathchoice{${Wr.serialize(a.args[0],y)}}{${Wr.serialize(a.args[1],y)}}{${Wr.serialize(a.args[2],y)}}{${Wr.serialize(a.args[3],y)}}`}),Jt("mathop","{:auto}",{createAtom:a=>new Wr(pe(we({},a),{type:"mop",body:Mt(a.args[0]),limits:"over-under",isFunction:!0,captureSelection:!0})),render:(a,y)=>{var b;let E=Wr.createBox(y,a.body);if(a.superscript||a.subscript){const ee=(b=a.subsupPlacement)!=null?b:"auto";E=ee==="over-under"||ee==="auto"&&y.isDisplayStyle?a.attachLimits(y,{base:E}):a.attachSupsub(y,{base:E})}return new oi(a.bind(y,E),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[Ki(a.command,a.bodyToLatex(y))];return a.explicitSubsupPlacement&&(a.subsupPlacement==="over-under"&&b.push("\\limits"),a.subsupPlacement==="adjacent"&&b.push("\\nolimits"),a.subsupPlacement==="auto"&&b.push("\\displaylimits")),b.push(a.supsubToLatex(y)),vo(b)}}),Jt(["mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",{createAtom:a=>new Wr(pe(we({},a),{type:{"\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[a.command],body:Mt(a.args[0])}))}),Jt(["operatorname","operatorname*"],"{operator:math}",{createAtom:a=>{const y=Mt(a.args[0]).map(b=>{var E;return b.type!=="first"&&(b.type="mord",b.value=(E={"\u2217":"*","\u2212":"-"}[b.value])!=null?E:b.value,b.isFunction=!1,!b.style.variant&&!b.style.variantStyle&&(b.style.variant="main",b.style.variantStyle="up")),b});return new Wr(pe(we({},a),{type:"mop",body:y,isFunction:!0,limits:a.command==="\\operatorname"?"adjacent":"over-under"}))},render:(a,y)=>{var b;let E=Wr.createBox(y,a.body);if(a.superscript||a.subscript){const ee=(b=a.subsupPlacement)!=null?b:"auto";E=ee==="over-under"||ee==="auto"&&y.isDisplayStyle?a.attachLimits(y,{base:E}):a.attachSupsub(y,{base:E})}return a.caret&&(E.caret=a.caret),new oi(a.bind(y,E),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[Ki(a.command,a.bodyToLatex(y))];return a.explicitSubsupPlacement&&(a.subsupPlacement==="over-under"&&b.push("\\limits"),a.subsupPlacement==="adjacent"&&b.push("\\nolimits"),a.subsupPlacement==="auto"&&b.push("\\displaylimits")),b.push(a.supsubToLatex(y)),vo(b)}}),Jt(["char","unicode"],"{charcode:value}",{createAtom:a=>new Wr(pe(we({},a),{type:a.mode==="text"?"text":"mord"})),serialize:a=>{var y;return`${a.command}${Vs((y=a.args[0])!=null?y:{number:10067,base:"hexadecimal"})}`},render:(a,y)=>{let b=y.evaluate(a.args[0]);return(!b||!("number"in b))&&(b={number:10067,base:"hexadecimal"}),a.value=String.fromCodePoint(b.number),a.createBox(y)}}),Jt("rule","[raise:value]{width:value}{thickness:value}",{createAtom:a=>new Wr(a),render:(a,y)=>{var b,E,ee;const ie=new Fa({parent:y,mathstyle:"textstyle"},a.style),oe=ie.toEm((b=a.args[0])!=null?b:{dimension:0}),ve=ie.toEm((E=a.args[1])!=null?E:{dimension:10}),Ee=ie.toEm((ee=a.args[2])!=null?ee:{dimension:10}),Te=new oi(null,{classes:"rule",type:"ord"});return Te.width=ve,Te.height=Ee+oe,Te.depth=-oe,Te.setStyle("border-right-width",ve,"em"),Te.setStyle("border-top-width",Ee,"em"),Te.setStyle("border-color",a.style.color),Te.setStyle("vertical-align",oe,"em"),a.isSelected&&Te.setStyle("opacity","50%"),a.bind(ie,Te),a.caret&&(Te.caret=a.caret),Te.wrap(y)},serialize:a=>`\\rule${a.args[0]?`[${Vs(a.args[0])}]`:""}{${Vs(a.args[1])}}{${Vs(a.args[2])}}`}),Jt(["overline","underline"],"{:auto}",{createAtom:a=>new Wr(pe(we({},a),{body:Mt(a.args[0])})),render:(a,y)=>{const b=a.command.substring(1),E=new Fa({parent:y,mathstyle:"cramp"},a.style),ee=Wr.createBox(E,a.body);if(!ee)return null;const ie=E.metrics.defaultRuleThickness/E.scalingFactor,oe=new oi(null,{classes:b+"-line"});oe.height=ie,oe.maxFontSize=ie*1.125*E.scalingFactor;let ve;return b==="overline"?ve=new Io({shift:0,children:[{box:ee},3*ie,{box:oe},ie]}):ve=new Io({top:ee.height,children:[ie,{box:oe},3*ie,{box:ee}]}),a.caret&&(ve.caret=a.caret),new oi(ve,{classes:b,type:"ignore"})}}),Jt("overset","{:auto}{base:auto}",{createAtom:a=>{const y=Mt(a.args[1]);return new Sc(pe(we({},a),{above:Mt(a.args[0]),body:y,skipBoundary:!1,boxType:wl(y)}))},serialize:(a,y)=>Ki(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),Jt("underset","{:auto}{base:auto}",{createAtom:a=>{const y=Mt(a.args[1]);return new Sc(pe(we({},a),{below:Mt(a.args[0]),body:y,skipBoundary:!1,boxType:wl(y)}))},serialize:(a,y)=>Ki(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),Jt("overunderset","{above:auto}{below:auto}{base:auto}",{createAtom:a=>{const y=Mt(a.args[2]);return new Sc(pe(we({},a),{above:Mt(a.args[0]),below:Mt(a.args[1]),body:y,skipBoundary:!1,boxType:wl(y)}))},serialize:(a,y)=>Ki(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),Jt(["stackrel","stackbin"],"[below:auto]{above:auto}{base:auto}",{createAtom:a=>new Sc(pe(we({},a),{body:Mt(a.args[2]),above:Mt(a.args[1]),below:Mt(a.args[0]),skipBoundary:!1,boxType:a.command==="\\stackrel"?"rel":"bin"})),serialize:(a,y)=>Ki(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),Jt("smash","[:string]{:auto}",{createAtom:a=>{var y,b,E,ee;return new of(pe(we({},a),{body:Mt(a.args[1]),smashHeight:(b=(y=a.args[0])==null?void 0:y.includes("t"))!=null?b:!0,smashDepth:(ee=(E=a.args[0])==null?void 0:E.includes("b"))!=null?ee:!0}))}}),Jt(["vphantom"],"{:auto}",{createAtom:a=>new of(pe(we({},a),{body:Mt(a.args[0]),isInvisible:!0,smashWidth:!0}))}),Jt(["hphantom"],"{:auto}",{createAtom:a=>new of(pe(we({},a),{body:Mt(a.args[0]),isInvisible:!0,smashHeight:!0,smashDepth:!0}))}),Jt(["phantom"],"{:auto}",{createAtom:a=>new of(pe(we({},a),{body:Mt(a.args[0]),isInvisible:!0}))}),Jt("not","{:math}",{createAtom:a=>{const y=Mt(a.args[0]);return y.length===0?new Wr(pe(we({},a),{type:"mrel",value:"\uE020"})):new Wr(pe(we({},a),{body:[new Sd(pe(we({},a),{body:"\uE020",align:"right"})),...y],captureSelection:!0}))},serialize:(a,y)=>{const b=a.args[0],E=b&&typeof b=="object"&&"group"in b;return a.value!=="\uE020"?E?`\\not{${Wr.serialize(b.group,y)}}`:`\\not${Wr.serialize(b,y)}`:E?"\\not{}":"\\not"},render:(a,y)=>{if(a.value)return a.createBox(y);const E=a.args[0]&&typeof a.args[0]=="object"&&"group"in a.args[0]?"ord":wl(Mt(a.args[0])),ee=Wr.createBox(y,a.body,{type:E});return a.caret&&(ee.caret=a.caret),a.bind(y,ee)}}),Jt(["ne","neq"],"",{createAtom:a=>new Wr(pe(we({},a),{type:"mrel",body:[new Sd(pe(we({},a),{body:"\uE020",align:"right",boxType:"rel"})),new Wr(pe(we({},a),{value:"="}))],captureSelection:!0})),serialize:a=>a.command}),Jt("rlap","{:auto}",{createAtom:a=>new Sd(pe(we({},a),{body:Mt(a.args[0]),align:"right"}))}),Jt("llap","{:auto}",{createAtom:a=>new Sd(pe(we({},a),{body:Mt(a.args[0]),align:"left"}))}),Jt("mathrlap","{:math}",{createAtom:a=>new Sd(pe(we({},a),{body:Mt(a.args[0]),align:"left"}))}),Jt("mathllap","{:math}",{createAtom:a=>new Sd(pe(we({},a),{body:Mt(a.args[0]),align:"left"}))}),Jt("raisebox","{:value}{:text}",{createAtom:a=>{var y;return new tu(pe(we({},a),{body:Mt(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return Ki("\\raisebox",(b=Vs(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),Jt("raise","{:value}{:auto}",{createAtom:a=>{var y;return new tu(pe(we({},a),{body:Mt(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return Ki("\\raise",(b=Vs(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),Jt("lower","{:value}{:auto}",{createAtom:a=>{var y;return new tu(pe(we({},a),{body:Mt(a.args[1]),padding:{dimension:0},offset:(y=jl(a.args[0],-1))!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b,E;return Ki("\\lower",(E=Vs(jl((b=a.offset)!=null?b:{dimension:0},-1)))!=null?E:"0pt",a.bodyToLatex(y))}}),Fe("0123456789/@.?!"),st(65,90),st(97,122),Fe([["\\forall",8704],["\\exists",8707],["\\nexists",8708,"mord","ams"],["\\mid",8739,"mrel"],["\\top",8868],["\\bot",8869]]),Fe([["\\#",35],["\\&",38],["\\parallelogram",9649],["\\spadesuit",9824],["\\heartsuit",9825],["\\diamondsuit",9826],["\\clubsuit",9827],["\\flat",9837],["\\natural",9838],["\\sharp",9839]]),Fe([["\\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]]),Fe([["\\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"),Fe([["\\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"]]),Fe([["\\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"]]),Fe([["\\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"),Fe([["+",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"),Fe([["\\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"),Fe([["\\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]]),Fe([["=",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"),Fe([["\\lnot",172],["\\neg",172],["\\triangle",9651],["\\subsetneq",8842],["\\varsubsetneq",57370],["\\subsetneqq",10955],["\\varsubsetneqq",57367],["\\nsubset",8836],["\\nsupset",8837],["\\nsubseteq",8840],["\\nsupseteq",8841]],"mrel","ams"),Fe([["\\wp",8472],["\\aleph",8501]]),Fe([["\\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"),Fe([["\\ ",160],["~",160]],"space"),Jt(["!",",",":",";",">","enskip","enspace","quad","qquad"],"",{createAtom:a=>new sf(a)}),Jt("space","",{createAtom:a=>new sf(a)}),Fe([["\\colon",58],["\\cdotp",8901],["\\vdots",8942,"mord"],["\\ldotp",46],[",",44],[";",59]],"mpunct"),Fe([["\\cdots",8943],["\\ddots",8945],["\\ldots",8230],["\\mathellipsis",8230]],"minner"),Fe([["\\/",47],["|",8739,"mord"],["\\imath",305],["\\jmath",567],["\\degree",176],["'",8242],['"',8221]]);var lp="<mo>&#x2061;</mo>",oh="<mo>&#8290;</mo>";function sh(a){return a.replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function bl(a,y){return!a||!y.generateID?"":` extid="${a}"`}function Ev(a,y,b){var E,ee,ie,oe,ve,Ee,Te,Ke,pt,Tt,rn;let pn=!1;y=y!=null?y:a.atoms.length;let _r="",Ai="",Pr=a.atoms[a.index];const ui=(ee=(E=Pr.style)==null?void 0:E.variant)!=null?ee:"",Pi=(oe=(ie=Pr.style)==null?void 0:ie.variantStyle)!=null?oe:"";let pi="";if(ui||Pi){const uo=Vn(Pr.value,(ve=Pr.style)==null?void 0:ve.variant,(Ee=Pr.style)==null?void 0:Ee.variantStyle);if(uo!==Pr.value)return a.index+=1,_r=`<mi${bl(Pr.id,b)}>${uo}</mi>`,nd(_r,a,b)||(a.mathML+=_r,a.lastType="mi"),!0;pi=(Te={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"}[Pi+ui])!=null?Te:"",pi=` mathvariant="${pi}"`}const Na={"\\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(Pr.command==="!")return a.index+=1,_r="<mo>!</mo>",nd(_r,a,b)||(a.mathML+=_r,a.lastType="mo"),!0;if(Na[Pr.command]){a.index+=1;let uo=`<mi${bl(Pr.id,b)}${pi}>${Na[Pr.command]}</mi>`;return(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mtext"||a.lastType==="fence")&&(uo=oh+uo),nd(uo,a,b)||(a.mathML+=uo,a.lastType="mi"),!0}if(Pr.command==="\\operatorname")Ai=Yd(Pr.body),a.index+=1;else if(ui||Pi)for(;a.index<y&&(Pr.type==="mord"||Pr.type==="macro")&&!Pr.isDigit()&&ui===((pt=(Ke=Pr.style)==null?void 0:Ke.variant)!=null?pt:"")&&Pi===((rn=(Tt=Pr.style)==null?void 0:Tt.variantStyle)!=null?rn:"");)Ai+=Yd([Pr]),a.index+=1,Pr=a.atoms[a.index];else(Pr.type==="mord"||Pr.type==="macro")&&!Pr.isDigit()&&(Ai+=Yd([Pr]),a.index+=1);if(Ai.length>0){pn=!0,_r=`<mi${pi}>${Ai}</mi>`;const uo=a.lastType;_r.endsWith(">f</mi>")||_r.endsWith(">g</mi>")?(_r+=lp,a.lastType="applyfunction"):a.lastType=/^<mo>(.*)<\/mo>$/.test(_r)?"mo":"mi",nd(_r,a,b)||((uo==="mi"||uo==="mn"||uo==="mtext"||uo==="fence")&&(_r=oh+_r),a.mathML+=_r)}return pn}function Mv(a){return a.index<a.atoms.length&&a.atoms[a.index].superscript&&a.atoms[a.index].type==="subsup"}function kv(a){let y=-1,b=a.index,E=!1,ee=!1;for(;b<a.atoms.length&&!E&&!ee;){const ie=a.atoms[b];E=!ie.isDigit(),ee=!E&&ie.superscript!==void 0,b++}return ee&&(y=b-1),y}function nd(a,y,b){var E;let ee=y.atoms[y.index-1];if(!ee)return!1;if(!ee.superscript&&!ee.subscript)if(((E=y.atoms[y.index])==null?void 0:E.type)==="subsup")ee=y.atoms[y.index],y.index+=1;else return!1;const ie=y.lastType;y.lastType="";const oe=Ys(ee.superscript,b);y.lastType="";const ve=Ys(ee.subscript,b);if(y.lastType=ie,!oe&&!ve)return!1;let Ee="";return oe&&ve?Ee=`<msubsup>${a}${ve}${oe}</msubsup>`:oe?Ee=`<msup>${a}${oe}</msup>`:ve&&(Ee=`<msub>${a}${ve}</msub>`),y.mathML+=Ee,y.lastType="",!0}function Dv(a,y,b){y=y!=null?y:a.atoms.length;const E=a.index;let ee="";for(;a.index<y&&a.atoms[a.index].mode==="text";)ee+=a.atoms[a.index].value?a.atoms[a.index].value:" ",a.index+=1;return ee.length>0?(a.mathML+=`<mtext ${bl(a.atoms[E].id,b)}>${ee}</mtext>`,a.lastType="mtext",!0):!1}function Av(a,y,b){y=y!=null?y:a.atoms.length;const E=a.index;let ee="",ie=kv(a);for(ie>=0&&ie<y&&(y=ie);a.index<y&&a.atoms[a.index].isDigit();)ee+=a.atoms[a.index].asDigit(),a.index+=1;return ee.length<=0?!1:(ee="<mn"+bl(a.atoms[E].id,b)+">"+ee+"</mn>",ie<0&&Mv(a)&&(ie=a.index,a.index+=1),nd(ee,a,b)||(a.mathML+=ee,a.lastType="mn"),!0)}function Lv(a,y,b){let E=!1;y=y!=null?y:a.atoms.length;let ee="",ie="";if(a.index<y&&a.atoms[a.index].type==="mopen"){let oe=!1,ve=0;const Ee=a.index;let Te=-1,Ke=Ee+1;for(;Ke<y&&!oe;)a.atoms[Ke].type==="mopen"?ve+=1:a.atoms[Ke].type==="mclose"&&(ve-=1),ve===-1&&(oe=!0,Te=Ke),Ke+=1;oe&&(ee="<mrow>",ee+=Id(a.atoms[Ee],b),ee+=Ys(a.atoms,b,Ee+1,Te),ee+=Id(a.atoms[Te],b),ee+="</mrow>",a.index=Te+1,(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mfrac"||a.lastType==="fence")&&(a.mathML+=oh),nd(ee,a,b)&&(E=!0,a.lastType="",ee=""),ie="fence")}return ee.length>0&&(E=!0,a.mathML+=ee,a.lastType=ie),E}function Pv(a,y,b){let E=!1;y=y!=null?y:a.atoms.length;let ee="",ie="";const oe=a.atoms[a.index];if(!oe)return!1;const ve={"\\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(ve[oe.command]){a.index+=1;const Ee=`<mo${bl(oe.id,b)}>${ve[oe.command]}</mo>`;return nd(Ee,a,b)||(a.mathML+=Ee,a.lastType="mo"),!0}if(a.index<y&&(oe.type==="mbin"||oe.type==="mrel"))ee+=Zh(a.atoms[a.index],b),a.index+=1,ie="mo";else if(a.index<y&&(oe.type==="mop"||oe.type==="operator"||oe.type==="extensible-symbol")){if(oe.subsupPlacement==="over-under"&&(oe.superscript||oe.subscript)){const Ee=Id(oe,b);return oe.superscript&&oe.subscript?(ee+="<munderover>"+Ee,ee+=Ys(oe.subscript,b),ee+=Ys(oe.superscript,b),ee+="</munderover>"):oe.superscript?(ee+="<mover>"+Ee,ee+=Ys(oe.superscript,b),ee+="</mover>"):oe.subscript&&(ee+="<munder>"+Ee,ee+=Ys(oe.subscript,b),ee+="</munder>"),a.mathML+=ee,a.lastType="mo",a.index+=1,!0}{const Ee=a.atoms[a.index],Te=Ee.value==="\\operatorname",Ke=Te?'<mi class="MathML-Unit"'+bl(Ee.id,b)+">"+Yd(Ee.value)+"</mi>":Id(Ee,b);ee+=Ke,!Te&&!/^<mo>(.*)<\/mo>$/.test(Ke)?(ee+=lp,ie="applyfunction"):ie=Te?"mi":"mo"}(a.lastType==="mi"||a.lastType==="mn")&&!/^<mo>(.*)<\/mo>$/.test(ee)&&(ee=oh+ee),a.index+=1}return ee.length>0&&(E=!0,nd(ee,a,b)||(a.mathML+=ee,a.lastType=ie)),E}function Ys(a,y,b,E){y!=null||(y={});const ee={atoms:[],index:b!=null?b:0,mathML:"",lastType:""};if(typeof a=="number"||typeof a=="boolean")ee.mathML=a.toString();else if(typeof a=="string")ee.mathML=a;else if(a instanceof Wr)ee.mathML=Zh(a,y);else if(Array.isArray(a)){ee.atoms=a;let ie=0;for(E=E||(a?a.length:0);ee.index<E;)if(Dv(ee,E,y)||Av(ee,E,y)||Ev(ee,E,y)||Pv(ee,E,y)||Lv(ee,E,y))ie+=1;else if(ee.index<E){let oe=Zh(ee.atoms[ee.index],y);ee.lastType==="mn"&&oe.length>0&&ee.atoms[ee.index].type==="genfrac"&&(oe="<mo>&#x2064;</mo>"+oe),ee.atoms[ee.index].type==="genfrac"?ee.lastType="mfrac":ee.lastType="",ee.index+=1,nd(oe,ee,y)?ie+=1:oe.length>0&&(ee.mathML+=oe,ie+=1)}ie>1&&(ee.mathML="<mrow>"+ee.mathML+"</mrow>")}return ee.mathML}function Id(a,y){let b="";const E=Yd(a.value);return E&&(b="<mo"+bl(a.id,y)+">"+E+"</mo>"),b}function Yd(a){if(!a)return"";if(typeof a=="string")return sh(a);if(!Array.isArray(a)&&typeof a.body=="string")return sh(a.body);let y="";for(const b of a)typeof b.value=="string"&&(y+=b.value);return sh(y)}function Zh(a,y){var b,E,ee,ie,oe,ve,Ee,Te,Ke,pt,Tt,rn,pn,_r,Ai,Pr,ui,Pi,pi,Na,uo,Ya;if(a.mode==="text")return`<mi${bl(a.id,y)}>${a.value}</mi>`;const Ns={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"},hl={"\\!":-3/18,"\\ ":6/18,"\\,":3/18,"\\:":4/18,"\\>":4/18,"\\;":5/18,"\\enspace":.5,"\\quad":1,"\\qquad":2,"\\enskip":.5};let Wi="",vc="",Zc,Cc,Pu,yc,oc,xl;const{command:ru}=a;if(a.command==="\\error")return`<merror${bl(a.id,y)}>${Ys(a.body,y)}</merror>`;const Tu={"\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\lbrack":"[","\\rbrack":"]","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"},Wc={"\\vec":"&#x20d7;","\\acute":"&#x00b4;","\\grave":"&#x0060;","\\dot":"&#x02d9;","\\ddot":"&#x00a8;","\\tilde":"&#x007e;","\\bar":"&#x00af;","\\breve":"&#x02d8;","\\check":"&#x02c7;","\\hat":"&#x005e;"};switch(a.type){case"first":break;case"group":case"root":Wi=Ys(a.body,y);break;case"array":if((a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(Wi+="<mrow>",a.leftDelim&&a.leftDelim!=="."&&(Wi+="<mo>"+(Tu[a.leftDelim]||a.leftDelim)+"</mo>")),Wi+="<mtable",a.colFormat){for(Wi+=' columnalign="',Pu=0;Pu<a.colFormat.length;Pu++)a.colFormat[Pu].align&&(Wi+={l:"left",c:"center",r:"right"}[a.colFormat[Pu].align]+" ");Wi+='"'}for(Wi+=">",Cc=0;Cc<a.array.length;Cc++){for(Wi+="<mtr>",Zc=0;Zc<a.array[Cc].length;Zc++)Wi+="<mtd>"+Ys(a.array[Cc][Zc],y)+"</mtd>";Wi+="</mtr>"}Wi+="</mtable>",(a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(a.rightDelim&&a.rightDelim!=="."&&(Wi+="<mo>"+(Tu[a.leftDelim]||a.rightDelim)+"</mo>"),Wi+="</mrow>");break;case"genfrac":(a.leftDelim||a.rightDelim)&&(Wi+="<mrow>"),a.leftDelim&&a.leftDelim!=="."&&(Wi+="<mo"+bl(a.id,y)+">"+(Tu[a.leftDelim]||a.leftDelim)+"</mo>"),a.hasBarLine?(Wi+="<mfrac>",Wi+=Ys(a.above,y)||"<mi>&nbsp;</mi>",Wi+=Ys(a.below,y)||"<mi>&nbsp;</mi>",Wi+="</mfrac>"):(Wi+="<mtable"+bl(a.id,y)+">",Wi+="<mtr>"+Ys(a.above,y)+"</mtr>",Wi+="<mtr>"+Ys(a.below,y)+"</mtr>",Wi+="</mtable>"),a.rightDelim&&a.rightDelim!=="."&&(Wi+="<mo"+bl(a.id,y)+">"+(Tu[a.rightDelim]||a.rightDelim)+"</mo>"),(a.leftDelim||a.rightDelim)&&(Wi+="</mrow>");break;case"surd":a.hasEmptyBranch("above")?(Wi+="<msqrt"+bl(a.id,y)+">",Wi+=Ys(a.body,y),Wi+="</msqrt>"):(Wi+="<mroot"+bl(a.id,y)+">",Wi+=Ys(a.body,y),Wi+=Ys(a.above,y),Wi+="</mroot>");break;case"leftright":const Uc=a,Vc=Uc.leftDelim;Wi="<mrow>",Vc&&Vc!=="."&&(Wi+=`<mo${bl(a.id,y)}>${(b=Tu[Vc])!=null?b:Vc}</mo>`),a.body&&(Wi+=Ys(a.body,y));const jc=Uc.matchingRightDelim();jc&&jc!=="."&&(Wi+=`<mo${bl(a.id,y)}>${(E=Tu[jc])!=null?E:jc}</mo>`),Wi+="</mrow>";break;case"sizeddelim":case"delim":Wi+=`<mo${bl(a.id,y)}>${Tu[a.value]||a.value}</mo>`;break;case"accent":Wi+='<mover accent="true"'+bl(a.id,y)+">",Wi+=Ys(a.body,y),Wi+="<mo>"+(Wc[ru]||a.accent)+"</mo>",Wi+="</mover>";break;case"line":case"overlap":break;case"overunder":oc=a.above,yc=a.below,(a.svgAbove||oc)&&(a.svgBelow||yc)?xl=a.body:oc&&oc.length>0?(xl=a.body,(ie=(ee=a.body)==null?void 0:ee[0])!=null&&ie.below?(yc=a.body[0].below,xl=a.body[0].body):((ve=(oe=a.body)==null?void 0:oe[0])==null?void 0:ve.type)==="first"&&((Te=(Ee=a.body)==null?void 0:Ee[1])!=null&&Te.below)&&(yc=a.body[1].below,xl=a.body[1].body)):yc&&yc.length>0&&(xl=a.body,(pt=(Ke=a.body)==null?void 0:Ke[0])!=null&&pt.above?(oc=a.body[0].above,xl=a.body[0].body):((rn=(Tt=a.body)==null?void 0:Tt[0])==null?void 0:rn.type)==="first"&&((_r=(pn=a.body)==null?void 0:pn[1])!=null&&_r.above)&&(oc=a.body[1].overscript,xl=a.body[1].body)),(a.svgAbove||oc)&&(a.svgBelow||yc)?(Wi+=`<munderover ${bl(a.id,y)}>`,Wi+=(Ai=Ns[a.svgBody])!=null?Ai:Ys(xl,y),Wi+=(Pr=Ns[a.svgBelow])!=null?Pr:Ys(yc,y),Wi+=(ui=Ns[a.svgAbove])!=null?ui:Ys(oc,y),Wi+="</munderover>"):a.svgAbove||oc?(Wi+=`<mover ${bl(a.id,y)}>`+((Pi=Ns[a.svgBody])!=null?Pi:Ys(xl,y)),Wi+=(pi=Ns[a.svgAbove])!=null?pi:Ys(oc,y),Wi+="</mover>"):(a.svgBelow||yc)&&(Wi+=`<munder ${bl(a.id,y)}>`+((Na=Ns[a.svgBody])!=null?Na:Ys(xl,y)),Wi+=(uo=Ns[a.svgBelow])!=null?uo:Ys(yc,y),Wi+="</munder>");break;case"placeholder":Wi+="?";break;case"mord":{Wi=typeof a.value=="string"?a.value:ru,ru==="\\char"?Wi="&#x"+("000000"+a.args[0].number.toString(16)).slice(-4)+";":Wi.length>0&&Wi.startsWith("\\")&&(typeof a.value=="string"&&a.value.charCodeAt(0)>255?Wi="&#x"+("000000"+a.value.charCodeAt(0).toString(16)).slice(-4)+";":typeof a.value=="string"?Wi=a.value.charAt(0):(console.error("Did not expect this"),Wi=""));const Ic=/\d/.test(Wi)?"mn":"mi";Wi=`<${Ic}${bl(a.id,y)}>${sh(Wi)}</${Ic}>`;break}case"mbin":case"mrel":case"minner":Wi=Id(a,y);break;case"mpunct":Wi='<mo separator="true"'+bl(a.id,y)+">"+ru+"</mo>";break;case"mop":case"operator":case"extensible-symbol":a.body!=="\u200B"&&(Wi="<mo"+bl(a.id,y)+">",Wi+=ru==="\\operatorname"?a.body:ru||a.body,Wi+="</mo>");break;case"box":Wi='<menclose notation="box"',a.backgroundcolor&&(Wi+=' mathbackground="'+a.backgroundcolor+'"'),Wi+=bl(a.id,y)+">"+Ys(a.body,y)+"</menclose>";break;case"spacing":Wi+='<mspace width="'+((Ya=hl[ru])!=null?Ya:0)+'em"/>';break;case"enclose":Wi='<menclose notation="';for(const Ic in a.notation)Object.prototype.hasOwnProperty.call(a.notation,Ic)&&a.notation[Ic]&&(Wi+=vc+Ic,vc=" ");Wi+=bl(a.id,y)+'">'+Ys(a.body,y)+"</menclose>";break;case"prompt":Wi='<menclose notation="roundexbox""">'+Ys(a.body,y)+"</menclose>";break;case"space":Wi+="&nbsp;";break;case"subsup":break;case"phantom":break;case"composition":break;case"rule":break;case"chem":break;case"mopen":Wi+=Id(a,y);break;case"mclose":Wi+=Id(a,y);break;case"macro":{const Ic=a.command+Yd(a.macroArgs);Ic&&(Wi+=`<mo ${bl(a.id,y)}>${Ic}</mo>`)}break;case"latexgroup":Wi+=Ys(a.body,y);break;case"latex":Wi+="<mtext"+bl(a.id,y)+">"+a.value+"</mtext>";break;case"tooltip":Wi+=Ys(a.body,y);break;case"text":Wi+=`<mtext ${bl(a.id,y)}x>${a.value}</mtext>`;break;default:if(a.command==="\\displaystyle")return`<mrow ${bl(a.id,y)} displaystyle="true">${Ys(a.body,y)}</mrow>`;if(a.command==="\\textstyle")return`<mrow ${bl(a.id,y)} displaystyle="false">${Ys(a.body,y)}</mrow>`;console.info("Unexpected element in conversion to MathML:",a)}return Wi}var Xd={"\\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"},Wh={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 Tv(a){let y="";return a.startsWith("\\")&&(y=" "+a.replace("\\","")+" "),y}function wf(a){let y=0;if(Re(a))for(const b of a)b.type!=="first"&&(y+=1);return y===1}function Iv(a){if(Re(a)){for(const y of a)if(y.type!=="first"&&y.id)return y.id.toString()}return""}function up(a){let y="";if(Re(a))for(const b of a)b.type!=="first"&&typeof b.value=="string"&&(y+=b.value);return y}function Nv(a){return a?a.map(y=>y.value).join(""):""}function Es(a,y){var b,E,ee,ie,oe;function ve(Ke){return window.MathfieldElement.textToSpeechMarkup?/[a-z]/.test(Ke)?` <say-as interpret-as="character">${Ke}</say-as>`:/[A-Z]/.test(Ke)?`capital <say-as interpret-as="character">${Ke.toLowerCase()}</say-as>`:Ke:/[a-z]/.test(Ke)?" '"+Ke.toUpperCase()+"'":/[A-Z]/.test(Ke)?" 'capital "+Ke.toUpperCase()+"'":Ke}function Ee(Ke){return"<emphasis>"+Ke+"</emphasis>"}if(!y)return"";let Te="";if(Re(y)){let Ke=!1,pt=!1;for(let Tt=0;Tt<y.length;Tt++)y[Tt].type!=="first"&&(y[Tt].mode!=="text"&&(pt=!1),Tt<y.length-2&&y[Tt].type==="mopen"&&y[Tt+2].type==="mclose"&&y[Tt+1].type==="mord"?(Te+=" of ",Te+=Ee(Es(a,y[Tt+1])),Tt+=2):y[Tt].mode==="text"?pt?Te+=(b=y[Tt].value)!=null?b:" ":(pt=!0,Te+=Es("text",y[Tt])):y[Tt].isDigit()?Ke?Te+=y[Tt].asDigit():(Ke=!0,Te+=Es(a,y[Tt])):(Ke=!1,Te+=Es(a,y[Tt])))}else if(y.mode==="text")y.id&&a==="math"&&(Te+='<mark name="'+y.id.toString()+'"/>'),Te+=y.value;else{y.id&&a==="math"&&(Te+='<mark name="'+y.id.toString()+'"/>');let Ke="",pt="",Tt="",rn=!1;const{command:pn}=y;switch(pn){case"\\vec":return"vector "+Es(a,y.body);case"\\acute":return Es(a,y.body)+" acute";case"\\grave":return Es(a,y.body)+" grave";case"\\dot":return"dot over"+Es(a,y.body);case"\\ddot":return"double dot over"+Es(a,y.body);case"\\mathring":return"ring over"+Es(a,y.body);case"\\tilde":case"\\widetilde":return"tilde over"+Es(a,y.body);case"\\bar":return Es(a,y.body)+" bar";case"\\breve":return Es(a,y.body)+" breve";case"\\check":case"\\widecheck":return"check over "+Es(a,y.body);case"\\hat":case"\\widehat":return"hat over"+Es(a,y.body);case"\\overarc":case"\\overparen":case"\\wideparen":return"arc over "+Es(a,y.body);case"\\underarc":case"\\underparen":return"arc under "+Es(a,y.body)}switch(y.type){case"prompt":const _r=y.body.length>1?'start input . <break time="500ms"/> '+Es(a,y.body)+'. <break time="500ms"/> end input':"blank";Te+=' <break time="300ms"/> '+_r+'. <break time="700ms"/>'+((E=y.correctness)!=null?E:"")+' . <break time="700ms"/> ';break;case"array":const Ai=y.array,Pr=y.environmentName;if(Object.keys(Wh).includes(Pr)){Te+=` begin ${Wh[Pr]} `;for(let pi=0;pi<Ai.length;pi++){pi>0&&(Te+=","),Te+=` row ${pi+1} `;for(let Na=0;Na<Ai[pi].length;Na++)Na>0&&(Te+=","),Te+=` column ${Na+1}: `,Te+=Es("math",Ai[pi][Na])}Te+=` end ${Wh[Pr]} `}break;case"group":pn==="\\ne"?Te+=" not equal ":(pn==="\\not"&&(Te+=" not "),Te+=Es("math",y.body));break;case"root":Te+=Es("math",y.body);break;case"genfrac":if(Ke=Es("math",y.above),pt=Es("math",y.below),wf(y.above)&&wf(y.below)){const Na={"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 "}[up(y.above)+"/"+up(y.below)];Na?Te=Na:Te+=Ke+" over "+pt}else Te+=' the fraction <break time="150ms"/>'+Ke+' over <break time="150ms"/>'+pt+'.<break time="150ms"/> End fraction.<break time="150ms"/>';break;case"surd":if(Tt=Es("math",y.body),y.hasEmptyBranch("above"))Te+=wf(y.body)?" the square root of "+Tt+" , ":' the square root of <break time="200ms"/>'+Tt+'. <break time="200ms"/> End square root';else{let pi=Es("math",y.above);pi=pi.trim();const Na=pi.replace(/<mark([^/]*)\/>/g,"");Na==="3"?Te+=' the cube root of <break time="200ms"/>'+Tt+'. <break time="200ms"/> End cube root':Na==="n"?Te+=' the nth root of <break time="200ms"/>'+Tt+'. <break time="200ms"/> End root':Te+=' the root with index: <break time="200ms"/>'+pi+', of <break time="200ms"/>'+Tt+'. <break time="200ms"/> End root'}break;case"leftright":{const pi=y;Te+=(ee=pi.leftDelim?Xd[pi.leftDelim]:void 0)!=null?ee:pi.leftDelim,Te+=Es("math",y.body),Te+=(ie=pi.rightDelim?Xd[pi.rightDelim]:void 0)!=null?ie:pi.rightDelim}break;case"rule":break;case"overunder":break;case"overlap":break;case"macro":const ui=pn.replace(/^\\/g,""),Pi=Bt()[ui];Pi&&(Pi!=null&&Pi.expand?Te+=Es("math",y.body):Te+=`${ui} `);break;case"placeholder":Te+="placeholder ";break;case"delim":case"sizeddelim":case"mord":case"minner":case"mbin":case"mrel":case"mpunct":case"mopen":case"mclose":{if(pn==="\\mathbin"||pn==="\\mathrel"||pn==="\\mathopen"||pn==="\\mathclose"||pn==="\\mathpunct"||pn==="\\mathord"||pn==="\\mathinner"){Te=Es(a,y.body);break}let pi=y.isDigit()?y.asDigit():y.value,Na=y.command;if((y.type==="delim"||y.type==="sizeddelim")&&(Na=y.value,pi=Na),a==="text")Te+=pi;else{if(y.type==="mbin"&&(Te+='<break time="150ms"/>'),pi){const uo=Xd[pi]||(Na?Xd[Na.trim()]:"");if(uo)Te+=" "+uo;else{const Ya=Na?Tv(Na.trim()):"";Te+=Ya||ve(pi)}}else Te+=Es("math",y.body);y.type==="mbin"&&(Te+='<break time="150ms"/>')}break}case"mop":case"operator":case"extensible-symbol":if(y.value!=="\u200B"){const pi=y.command;if(pi==="\\sum")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let Na=Es("math",y.superscript);Na=Na.trim();let uo=Es("math",y.subscript);uo=uo.trim(),Te+=' the summation from <break time="200ms"/>'+uo+'<break time="200ms"/> to <break time="200ms"/>'+Na+'<break time="200ms"/> of <break time="150ms"/>',rn=!0}else if(y.hasEmptyBranch("subscript"))Te+=" the summation of";else{let Na=Es("math",y.subscript);Na=Na.trim(),Te+=' the summation from <break time="200ms"/>'+Na+'<break time="200ms"/> of <break time="150ms"/>',rn=!0}else if(pi==="\\prod")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let Na=Es("math",y.superscript);Na=Na.trim();let uo=Es("math",y.subscript);uo=uo.trim(),Te+=' the product from <break time="200ms"/>'+uo+'<break time="200ms"/> to <break time="200ms"/>'+Na+'<break time="200ms"/> of <break time="150ms"/>',rn=!0}else if(y.hasEmptyBranch("subscript"))Te+=" the product of ";else{let Na=Es("math",y.subscript);Na=Na.trim(),Te+=' the product from <break time="200ms"/>'+Na+'<break time="200ms"/> of <break time="150ms"/>',rn=!0}else if(pi==="\\int")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let Na=Es("math",y.superscript);Na=Na.trim();let uo=Es("math",y.subscript);uo=uo.trim(),Te+=' the integral from <break time="200ms"/>'+Ee(uo)+'<break time="200ms"/> to <break time="200ms"/>'+Ee(Na)+' <break time="200ms"/> of ',rn=!0}else Te+=' the integral of <break time="200ms"/> ';else if(typeof y.value=="string"){const Na=(oe=Xd[y.value])!=null?oe:y.command?Xd[y.command]:void 0;Te+=Na||" "+y.value}else y.command&&(y.command==="\\mathop"?Te+=Es("math",y.body):y.command==="\\operatorname"?Te+=Nv(y.body):Te+=y.command.startsWith("\\")?" "+y.command.slice(1):" "+y.command)}break;case"enclose":Tt=Es("math",y.body),Te+=" crossed out "+Tt+". End crossed out.";break;case"space":case"spacing":break}if(!rn&&!y.hasEmptyBranch("superscript")){let _r=Es(a,y.superscript);_r=_r.trim();const Ai=_r.replace(/<[^>]*>/g,"");if(wf(y.superscript)){if(a==="math"){const Pr=Iv(y.superscript);Pr&&(Te+='<mark name="'+Pr+'"/>')}Ai==="\u2032"?Te+=" prime ":Ai==="2"?Te+=" squared ":Ai==="3"?Te+=" cubed ":Number.isNaN(Number.parseInt(Ai))?Te+=" to the "+_r+"; ":Te+=' to the <say-as interpret-as="ordinal">'+Ai+"</say-as> power; "}else Number.isNaN(Number.parseInt(Ai))?Te+=" raised to the "+_r+"; ":Te+=' raised to the <say-as interpret-as="ordinal">'+Ai+"</say-as> power; "}if(!rn&&!y.hasEmptyBranch("subscript")){let _r=Es("math",y.subscript);_r=_r.trim(),Te+=wf(y.subscript)?" sub "+_r:" subscript "+_r+". End subscript. "}}return Te}function Qd(a){var y,b;if(window.MathfieldElement.textToSpeechRules==="sre"&&("sre"in window||"SRE"in window)){const ee=Ys(a);if(ee){window.MathfieldElement.textToSpeechMarkup&&(window.MathfieldElement.textToSpeechRulesOptions=(y=window.MathfieldElement.textToSpeechRulesOptions)!=null?y:{},window.MathfieldElement.textToSpeechRulesOptions=pe(we({},window.MathfieldElement.textToSpeechRulesOptions),{markup:window.MathfieldElement.textToSpeechMarkup}),window.MathfieldElement.textToSpeechRulesOptions.markup==="ssml"&&(window.MathfieldElement.textToSpeechRulesOptions=pe(we({},window.MathfieldElement.textToSpeechRulesOptions),{markup:"ssml_step"})),window.MathfieldElement.textToSpeechRulesOptions=pe(we({},window.MathfieldElement.textToSpeechRulesOptions),{rate:window.MathfieldElement.speechEngineRate}));const ie=(b=window.SRE)!=null?b:window.sre.System.getInstance();window.MathfieldElement.textToSpeechRulesOptions&&ie.setupEngine(window.MathfieldElement.textToSpeechRulesOptions);let oe="";try{oe=ie.toSpeech(ee)}catch(ve){console.error("MathLive 0.98.5: `SRE.toSpeech()` runtime error",ve)}return oe}return""}let E=Es("math",a);if(window.MathfieldElement.textToSpeechMarkup==="ssml"){let ee="";window.MathfieldElement.speechEngineRate&&(ee='<prosody rate="'+window.MathfieldElement.speechEngineRate+'">'),E='<?xml version="1.0"?><speak version="1.1" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US"><amazon:auto-breaths>'+ee+"<p><s>"+E+"</s></p>"+(ee?"</prosody>":"")+"</amazon:auto-breaths></speak>"}else window.MathfieldElement.textToSpeechMarkup==="mac"&&ye()==="macos"?E=E.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,""):E=E.replace(/<[^>]*>/g,"").replace(/\s{2,}/g," ");return E}var Cf={"\\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"},Ef={"\\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 Ov(a){let y="";for(const b of a){const E=y[y.length-1];E!==void 0&&/\d/.test(E)&&/^\d/.test(b)&&(y+=" "),y+=b}return y}function nu(a){var y,b,E,ee,ie,oe,ve,Ee,Te,Ke,pt,Tt,rn;if(!a)return"";if(Re(a)){if(a.length===0)return"";if(a[0].mode==="latex")return a.map(nu).join("");if(a[0].mode==="text"){let Pi=0,pi="";for(;((y=a[Pi])==null?void 0:y.mode)==="text";)pi+=a[Pi].body?nu(a[Pi].body):a[Pi].value,Pi++;return`"${pi}" ${nu(a.slice(Pi))}`}let Pr=0;const ui=[];for(;a[Pr]&&a[Pr].mode==="math";){let Pi="";for(;a[Pr]&&a[Pr].type==="mord"&&/\d/.test(a[Pr].value);)Pi+=a[Pr++].value;Pi?ui.push(Pi):ui.push(nu(a[Pr++]))}return ui.push(nu(a.slice(Pr))),Ov(ui)}if(a.mode==="text")return`"${a.value}"`;let pn="";const{command:_r}=a;let Ai;if(_r==="\\placeholder")return`(${nu(a.body)})`;switch(a.type){case"accent":const Pr={"\\vec":"vec","\\dot":"dot","\\ddot":"ddot","\\bar":"bar","\\hat":"hat","\\acute":"acute;","\\grave":"grave","\\tilde":"tilde","\\breve":"breave","\\check":"check"}[_r];pn=`${Pr!=null?Pr:""} ${nu(a.body)} `;break;case"first":return"";case"latexgroup":return a.body.map(Ya=>Ya.value).join("");case"group":case"root":pn=(b=Cf[_r])!=null?b:nu(a.body);break;case"genfrac":{const Ya=a;(Ya.leftDelim||Ya.rightDelim)&&(pn=Ya.leftDelim==="."||!Ya.leftDelim?"{:":Ya.leftDelim),Ya.hasBarLine?(pn+="(",pn+=nu(Ya.above),pn+=")/(",pn+=nu(Ya.below),pn+=")"):(pn+="("+nu(Ya.above)+"),",pn+="("+nu(Ya.below)+")"),(Ya.leftDelim||Ya.rightDelim)&&(pn+=Ya.rightDelim==="."||!Ya.rightDelim?"{:":Ya.rightDelim)}break;case"surd":pn+=a.hasEmptyBranch("above")?"sqrt("+nu(a.body)+")":"root("+nu(a.above)+")("+nu(a.body)+")";break;case"latex":pn=a.value;break;case"leftright":{const Ya=a,Ns=Ya.leftDelim;pn+=Ns==="."||!Ns?"{:":Ns,pn+=nu(Ya.body);const hl=Ya.matchingRightDelim();pn+=hl==="."||!hl?":}":hl}break;case"sizeddelim":case"delim":pn=a.value;break;case"overlap":break;case"overunder":break;case"mord":pn=(ee=(E=Cf[_r])!=null?E:_r)!=null?ee:typeof a.value=="string"?a.value:"",pn.startsWith("\\")&&(pn+=" "),Ai=_r?_r.match(/{?\\char"([\dabcdefABCDEF]+)}?/):null,Ai?pn=String.fromCodePoint(Number.parseInt("0x"+Ai[1])):pn.length>0&&pn.startsWith("\\")&&(pn=typeof a.value=="string"?a.value.charAt(0):a.command),pn=Rv(pn,a.style);break;case"mbin":case"mrel":case"minner":pn=(oe=(ie=Cf[_r])!=null?ie:Ef[_r])!=null?oe:a.value;break;case"mopen":case"mclose":pn=a.value;break;case"mpunct":pn=(ve=Ef[_r])!=null?ve:_r;break;case"mop":case"operator":case"extensible-symbol":a.value!=="\u200B"&&(Ef[_r]?pn=Ef[_r]:pn=_r==="\\operatorname"?nu(a.body):(Ee=a.value)!=null?Ee:_r,pn+=" ");break;case"array":const ui=a.array,Pi=a.environmentName,pi=(Te={bmatrix:["[","]"],"bmatrix*":["[","]"]}[Pi])!=null?Te:["(",")"],Na=[];for(const Ya of ui){const Ns=[];for(const hl of Ya)Ns.push(pi[0]+nu(hl)+pi[1]);Na.push(Ns.join(","))}const uo=(Ke={bmatrix:["[","]"],"bmatrix*":["[","]"],cases:["{",":}"]}[Pi])!=null?Ke:["(",")"];pn=uo[0]+Na.join(",")+uo[1];break;case"box":break;case"spacing":pn=(pt=Cf[_r])!=null?pt:" ";break;case"enclose":pn="("+nu(a.body)+")";break;case"space":pn=" ";break;case"subsup":pn="";break;case"macro":pn=(rn=(Tt=Cf[_r])!=null?Tt:Ef[_r])!=null?rn:nu(a.body);break}if(!a.hasEmptyBranch("subscript")){pn+="_";const Pr=nu(a.subscript);pn+=Pr.length!==1?`(${Pr})`:Pr}if(!a.hasEmptyBranch("superscript")){pn+="^";const Pr=nu(a.superscript);pn+=Pr.length!==1?`(${Pr})`:Pr}return pn}function Rv(a,y){if(!y)return a;let b=a;return y.variant==="double-struck"&&(b=`bbb "${b}"`),y.variant==="script"&&(b=`cc "${b}"`),y.variant==="fraktur"&&(b=`fr "${b}"`),y.variant==="sans-serif"&&(b=`sf "${b}"`),y.variant==="monospace"&&(b=`tt "${b}"`),y.variantStyle==="bold"&&(b=`bb "${b}"`),y.color?`color({${y.color}})(${b})`:b}function Lu(a,y){var b,E;y!=null||(y={}),y.mathstyle=(b=y.mathstyle)!=null?b:"displaystyle";const ee=new Fa({from:pe(we({},Fo()),{renderPlaceholder:()=>new oi(160,{maxFontSize:1}),letterShapeStyle:(E=y==null?void 0:y.letterShapeStyle)!=null?E:"tex"}),mathstyle:y.mathstyle}),oe=new Wr({mode:"math",type:"root",body:Au(a,{context:ee,parseMode:"math",mathstyle:y.mathstyle})}).render(ee);return oe?(ul(lf(oe,ee)),Vl(oe,{classes:"ML__latex"}).toMarkup()):""}function D1(a){return t0(a,{context:Fo()})}function Bv(a,y={}){return Ys(Au(a,{parseMode:"math",args:()=>"",mathstyle:"displaystyle"}),y)}function Fv(a){const y=Au(a,{parseMode:"math",mathstyle:"displaystyle"});return Qd(y)}var lh;function _v(a){var y,b;if(!lh){const E=(y=globalThis[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:y.ComputeEngine;E?lh=new E: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(b=lh==null?void 0:lh.box(a).latex)!=null?b:""}function A1(a,y="math"){return nu(new Wr({type:"root",body:Au(a,{parseMode:y})}))}function L1(a){return js(a,{format:"ascii-math"})[1]}function Uh(a){if(typeof a=="string"){const y=zv(a);if(!y)throw new Error(`Invalid color: ${a}`);return y}return"C"in a?Kv(a):"a"in a?cp(a):a}function Jd(a){return a<0?0:a>255?255:Math.round(a)}function zv(a){if(!a||a[0]!=="#")return;a=a.slice(1);let y;return a.length<=4?(y={r:parseInt(a[0]+a[0],16),g:parseInt(a[1]+a[1],16),b:parseInt(a[2]+a[2],16)},a.length===4&&(y.a=parseInt(a[3]+a[3],16)/255)):(y={r:parseInt(a[0]+a[1],16),g:parseInt(a[2]+a[3],16),b:parseInt(a[4]+a[5],16)},a.length===8&&(y.a=parseInt(a[6]+a[7],16)/255)),y&&typeof y.a=="undefined"&&(y.a=1),y}function Vh(a){const[y,b,E]=[a.L,a.C,a.H],ee=E*Math.PI/180,ie={L:y,a:b*Math.cos(ee),b:b*Math.sin(ee)};return a.alpha!==void 0&&(ie.alpha=a.alpha),ie}function $v(a){const[y,b,E]=[a.L,a.a,a.b],ee=Math.sqrt(b*b+E*E),oe=Math.atan2(E,b)*180/Math.PI,ve={L:y,C:ee,H:oe};return a.alpha!==void 0&&(ve.alpha=a.alpha),ve}function jh(a){const[y,b,E]=[a.L,a.a,a.b],ee=Math.pow(.9999999984505198*y+.39633779217376786*b+.2158037580607588*E,3),ie=Math.pow(1.00000000888176*y-.10556134232365635*b-.0638541747717059*E,3),oe=Math.pow(y*1.000000054672411-.0894841820949657*b-1.2914855378640917*E,3),ve=4.076741661347994*ee-3.307711590408193*ie+.230969928729428*oe,Ee=-1.2684380040921763*ee+2.6097574006633715*ie-.3413193963102197*oe,Te=-.004196086541837188*ee-.7034186144594493*ie+1.7076147009309444*oe,Ke=pt=>{const Tt=Math.abs(pt);return Tt<=.0031308?pt*12.92:(Math.sign(pt)||1)*(1.055*Math.pow(Tt,1/2.4)-.055)};return[Ke(ve),Ke(Ee),Ke(Te)]}function Gh(a){const[y,b,E]=a;return y>=0&&y<=1&&b>=0&&b<=1&&E>=0&&E<=1}function Yh(a,y){let[b,E,ee]=a;return b=Jd(b*255),E=Jd(E*255),ee=Jd(ee*255),y!==void 0?{r:b,g:E,b:ee,alpha:y}:{r:b,g:E,b:ee}}function cp(a){let[y,b,E]=jh(a);if(Gh([y,b,E]))return Yh([y,b,E],a.alpha);const ee=$v(a);if(ee.C=0,[y,b,E]=jh(Vh(ee)),!Gh([y,b,E]))return Yh([y,b,E],a.alpha);let ie=0,oe=a.L,ve=(ie+oe)/2;ee.C=ve;const Ee=.36/Math.pow(2,12);for(;oe-ie>Ee;)ve=(ie+oe)/2,ee.C=ve,[y,b,E]=jh(Vh(ee)),Gh([y,b,E])?ie=ve:oe=ve;return Yh([y,b,E],a.alpha)}function Kv(a){return cp(Vh(a))}function dp(a,y){const b=Uh(a),E=Uh(y),ee=.56,ie=.57,oe=.62,ve=.65,Ee=.022,Te=1.414,Ke=.1,pt=5e-4,Tt=1.14,rn=.027,pn=1.14,_r=.027;function Ai(Ya){return Ya>=Ee?Ya:Ya+Gc(Ee-Ya,Te)}function Pr(Ya){return(Ya<0?-1:1)*Math.pow(Math.abs(Ya),2.4)}const ui=Ai(Pr(E.r/255)*.2126729+Pr(E.g/255)*.7151522+Pr(E.b/255)*.072175),Pi=Ai(Pr(b.r/255)*.2126729+Pr(b.g/255)*.7151522+Pr(b.b/255)*.072175);let pi,Na,uo;return Math.abs(Pi-ui)<pt?Na=0:Pi>ui?(pi=Gc(Pi,ee)-Gc(ui,ie),Na=pi*Tt):(pi=Gc(Pi,ve)-Gc(ui,oe),Na=pi*pn),Math.abs(Na)<Ke?uo=0:Na>0?uo=Na-_r:uo=Na+rn,uo*100}function fp(a,y,b){b!=null||(b="#fff"),y!=null||(y="#000");const E=dp(a,b),ee=dp(a,y);return Math.abs(E)>Math.abs(ee)?b:y}function Hv(a){const y=Uh(a);let b=((1<<24)+(Jd(y.r)<<16)+(Jd(y.g)<<8)+Jd(y.b)).toString(16).slice(1);return y.alpha!==void 0&&y.alpha<1&&(b+=("00"+Math.round(y.alpha*255).toString(16)).slice(-2)),b[0]===b[1]&&b[2]===b[3]&&b[4]===b[5]&&b[6]===b[7]&&(b=b[0]+b[2]+b[4]+(y.alpha!==void 0&&y.alpha<1?b[6]:"")),"#"+b}function Bl(a){const y=hp(a);let b="";for(const E of y){if(typeof E.value!="string")return"";b+=E.value}return b}function hp(a){const b=a.model.selection.ranges;return b.length!==1?[]:a.model.getAtoms(b[0])}function Zv(a,y){const b=hp(a);if(b.length!==1)return!1;const E=ph[y];return E?!!E.test(b[0].value):!1}function Wv(a,y){return Bl(a).length>0}function Uv(a){return[Xh(a,"double-struck","mathbb","tooltip.blackboard"),Xh(a,"fraktur","mathfrak","tooltip.fraktur"),Xh(a,"calligraphic","mathcal","tooltip.caligraphic"),Qh(a,"up","mathrm","tooltip.roman-upright"),Qh(a,"bold","mathbf","tooltip.bold"),Qh(a,"italic","mathit","tooltip.italic")]}function Vv(a){return[{label:()=>Lu(`\\vec{${Bl(a)}}`),visible:()=>Bl(a).length===1,onMenuSelect:()=>a.insert("\\vec{#@}",{selectionMode:"item"})},{label:()=>Lu(`\\overrightarrow{${Bl(a)}}`),visible:()=>Bl(a).length>0,onMenuSelect:()=>a.insert("\\overrightarrow{#@}",{selectionMode:"item"})},{label:()=>Lu(`\\overleftarrow{${Bl(a)}}`),visible:()=>Bl(a).length>0,onMenuSelect:()=>a.insert("\\overleftarrow{#@}",{selectionMode:"item"})},{label:()=>Lu(`\\dot{${Bl(a)}}`),visible:()=>Bl(a).length===1,onMenuSelect:()=>a.insert("\\dot{#@}",{selectionMode:"item"})},{label:()=>Lu(`\\ddot{${Bl(a)}}`),visible:()=>Bl(a).length===1,onMenuSelect:()=>a.insert("\\ddot{#@}",{selectionMode:"item"})},{label:()=>Lu(`\\bar{${Bl(a)}}`),visible:()=>Bl(a).length===1,onMenuSelect:()=>a.insert("\\bar{#@}",{selectionMode:"item"})},{label:()=>Lu(`\\overline{${Bl(a)}}`),visible:()=>Bl(a).length>0,onMenuSelect:()=>a.insert("\\overline{#@}",{selectionMode:"item"})},{label:()=>Lu(`\\overgroup{${Bl(a)}}`),visible:()=>Bl(a).length>0,onMenuSelect:()=>a.insert("\\overgroup{#@}",{selectionMode:"item"})},{label:()=>Lu(`\\overbrace{${Bl(a)}}`),visible:()=>Bl(a).length>0,onMenuSelect:()=>a.insert("\\overbrace{#@}",{selectionMode:"item"})},{label:()=>Lu(`\\underline{${Bl(a)}}`),visible:()=>Bl(a).length>0,onMenuSelect:()=>a.insert("\\underline{#@}",{selectionMode:"item"})},{label:()=>Lu(`\\undergroup{${Bl(a)}}`),visible:()=>Bl(a).length>0,onMenuSelect:()=>a.insert("\\undergroup{#@}",{selectionMode:"item"})},{label:()=>Lu(`\\underbrace{${Bl(a)}}`),visible:()=>Bl(a).length>0,onMenuSelect:()=>a.insert("\\underbrace{#@}",{selectionMode:"item"})}]}function jv(a){return[{label:()=>Lu(`\\boxed{${a.getValue(a.model.selection)}}}`),onMenuSelect:()=>a.insert("\\boxed{#@}",{selectionMode:"item"})},{label:()=>Lu(`\\bbox[5px, border: 2px solid red]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px solid red]{#@}",{selectionMode:"item"})},{label:()=>Lu(`\\bbox[5px, border: 2px dashed black]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px dashed black]{#@}",{selectionMode:"item"})}]}function Gv(a){const y=[];for(const b of Object.keys(He))y.push({class:(Hv(fp(He[b]))==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${He[b]} "></span>`,ariaLabel:()=>{var E;return(E=ct(b))!=null?E:b},checked:()=>{var E;return{some:"mixed",all:!0}[(E=a.queryStyle({backgroundColor:b}))!=null?E:!1]},onMenuSelect:()=>{a.applyStyle({backgroundColor:b},{operation:"toggle"}),a.adoptStyle="none"}});return y}function Yv(a){const y=[];for(const b of Object.keys(je))y.push({class:(fp(je[b])==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${je[b]} "></span>`,ariaLabel:()=>{var E;return(E=ct(b))!=null?E:b},checked:()=>{var E;return{some:"mixed",all:!0}[(E=a.queryStyle({color:b}))!=null?E:!1]},onMenuSelect:()=>{a.applyStyle({color:b},{operation:"toggle"}),a.adoptStyle="none"}});return y}var Xv=class extends ep{constructor(a,y,b,E){super(a,y),this.row=b,this.col=E}set active(a){const y=this.parentMenu.children;if(a)for(const b of y)b.element.classList.toggle("active",b.row<=this.row&&b.col<=this.col);else for(const b of y)b.element.classList.remove("active")}};function Qv(a){const y=[];for(let b=1;b<=5;b++)for(let E=1;E<=5;E++)y.push({onCreate:(ee,ie)=>new Xv(ee,ie,b,E),label:"\u2610",tooltip:()=>ct("tooltip.row-by-col",b,E),data:{row:b,col:E},onMenuSelect:()=>{a.insert(`\\begin{pmatrix}${Array(b).fill(Array(E).fill("#?").join(" & ")).join("\\\\")}\\end{pmatrix}`,{selectionMode:"item"})}});return y}function Jv(a){return[{label:()=>ct("menu.array.add row above"),id:"add-row-above",onMenuSelect:()=>a.executeCommand("addRowBefore"),visible:()=>Nd(a)},{label:()=>ct("menu.array.add row below"),id:"add-row-below",onMenuSelect:()=>a.executeCommand("addRowAfter"),visible:()=>Nd(a)},{label:()=>ct("menu.array.add column before"),id:"add-column-before",onMenuSelect:()=>a.executeCommand("addColumnBefore"),visible:()=>Nd(a),enabled:()=>{const y=a.model.parentEnvironment;if(!y)return!1;const[b,E]=e1(a);return b<y.maxColumns}},{label:()=>ct("menu.array.add column after"),id:"add-column-after",onMenuSelect:()=>a.executeCommand("addColumnAfter"),visible:()=>Nd(a)},{type:"divider"},{label:()=>ct("menu.array.delete row"),id:"delete-row",onMenuSelect:()=>a.executeCommand("removeRow"),visible:()=>Nd(a)},{label:()=>ct("menu.array.delete column"),id:"delete-column",onMenuSelect:()=>a.executeCommand("removeColumn"),visible:()=>Nd(a)},{type:"divider"},{label:()=>ct("menu.borders"),visible:()=>(qv(a)||Nd(a))&&a.isSelectionEditable,submenu:[{label:" \u22F1 ",id:"environment-no-border",onMenuSelect:()=>Mf(a,"matrix")},{label:"(\u22F1)",id:"environment-parentheses",onMenuSelect:()=>Mf(a,"pmatrix")},{label:"[\u22F1]",id:"environment-brackets",onMenuSelect:()=>Mf(a,"bmatrix")},{label:"|\u22F1|",id:"environment-bar",onMenuSelect:()=>Mf(a,"vmatrix")},{label:"{\u22F1}",id:"environment-braces",onMenuSelect:()=>Mf(a,"Bmatrix")}],submenuClass:"border-submenu"},{type:"divider"},{label:()=>ct("menu.insert matrix"),id:"insert-matrix",visible:()=>a.isSelectionEditable,submenu:Qv(a),submenuClass:"insert-matrix-submenu",columnCount:5},{label:()=>ct("menu.mode"),id:"mode",visible:()=>a.isSelectionEditable&&a.model.selectionIsCollapsed,submenu:[{label:()=>ct("menu.mode-math"),id:"mode-math",onMenuSelect:()=>{Kd(a,"accept-all"),a.executeCommand(["switchMode","math"])},checked:()=>a.model.mode==="math"},{label:()=>ct("menu.mode-text"),id:"mode-text",onMenuSelect:()=>{Kd(a,"accept-all"),a.executeCommand(["switchMode","text"])},checked:()=>a.model.mode==="text"},{label:()=>ct("menu.mode-latex"),id:"mode-latex",onMenuSelect:()=>a.executeCommand(["switchMode","latex"]),checked:()=>a.model.mode==="latex"}]},{type:"divider"},{label:()=>ct("menu.font-style"),id:"variant",visible:()=>a.isSelectionEditable,submenu:Uv(a),submenuClass:"variant-submenu"},{label:()=>ct("menu.color"),id:"color",visible:()=>a.isSelectionEditable,submenu:Yv(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>ct("menu.background-color"),id:"background-color",visible:()=>a.isSelectionEditable,submenu:Gv(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>ct("menu.accent"),id:"accent",visible:()=>a.isSelectionEditable,submenu:Vv(a),submenuClass:"variant-submenu"},{label:()=>ct("menu.decoration"),id:"decoration",visible:()=>a.isSelectionEditable&&Bl(a).length>0,submenu:jv(a),submenuClass:"variant-submenu"},{type:"divider"},{label:()=>ct("menu.evaluate"),id:"ce-evaluate",visible:()=>a.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{const y=t1(a);if(!y){a.model.announce("plonk");return}a.model.selectionIsCollapsed?(a.model.position=a.model.lastOffset,a.insert(`=${y}`,{insertionMode:"insertAfter",selectionMode:"item"})):a.insert(y,{insertionMode:"replaceSelection",selectionMode:"item"})}},{label:()=>ct("menu.simplify"),id:"ce-simplify",visible:()=>a.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{var y,b;if(a.model.selectionIsCollapsed){const E=(y=a.expression)==null?void 0:y.simplify();if(a.model.position=a.model.lastOffset,!E){a.model.announce("plonk");return}a.insert(`=${E.latex}`,{insertionMode:"insertAfter",selectionMode:"item"})}else{const E=(b=window.MathfieldElement.computeEngine)==null?void 0:b.parse(a.getValue(a.model.selection)).simplify();if(!E){a.model.announce("plonk");return}a.insert(E.latex,{insertionMode:"replaceSelection",selectionMode:"item"})}}},{label:()=>{var y;if(window.MathfieldElement.computeEngine===null)return"";const b=(y=a.expression)==null?void 0:y.unknowns[0];return b?ct("menu.solve-for",Lu(b)):ct("menu.solve")},id:"ce-solve",visible:()=>{var y;return a.isSelectionEditable&&window.MathfieldElement.computeEngine!==null&&((y=a.expression)==null?void 0:y.unknowns.length)===1&&a.expression.unknowns[0]!=="Nothing"},onMenuSelect:()=>{var y;const b=a.expression,E=b==null?void 0:b.unknowns[0],ee=(y=b.solve(E))==null?void 0:y.map(ie=>{var oe;return(oe=ie.simplify().latex)!=null?oe:""});if(!ee){a.model.announce("plonk");return}a.insert(`${E}=${ee.length===1?ee[0]:"\\left\\lbrace"+(ee==null?void 0:ee.join(", "))+"\\right\\rbrace"}`,{insertionMode:"replaceAll",selectionMode:"item"})}},{type:"divider"},{label:()=>ct("menu.cut"),onMenuSelect:()=>a.executeCommand("cutToClipboard"),visible:()=>!a.options.readOnly&&a.isSelectionEditable,keyboardShortcut:"meta+X"},{label:()=>ct("menu.copy"),id:"copy",submenu:[{label:()=>ct("menu.copy-as-latex"),id:"copy-latex",onMenuSelect:()=>No.copyToClipboard(a,"latex"),keyboardShortcut:"meta+C"},{label:()=>ct("menu.copy-as-ascii-math"),id:"copy-ascii-math",onMenuSelect:()=>No.copyToClipboard(a,"ascii-math")},{label:()=>ct("menu.copy-as-mathml"),id:"copy-math-ml",onMenuSelect:()=>No.copyToClipboard(a,"math-ml")}]},{label:()=>ct("menu.paste"),id:"paste",onMenuSelect:()=>a.executeCommand("pasteFromClipboard"),visible:()=>a.hasEditableContent,keyboardShortcut:"meta+V"},{label:()=>ct("menu.select-all"),id:"select-all",keyboardShortcut:"meta+A",onMenuSelect:()=>a.executeCommand("selectAll")}]}function Nd(a){var y;return!!((y=a.model.parentEnvironment)!=null&&y.array)}function qv(a){return a.model.at(a.model.position).type==="array"}function e1(a){var y;const b=(y=a.model.parentEnvironment)==null?void 0:y.array;return b?[b.length,b.reduce((E,ee)=>Math.max(E,ee.length),0)]:[0,0]}function Mf(a,y){Rf(a),a.flushInlineShortcutBuffer(),I0(a.model,y),Ql(a)}function t1(a){var y,b;let E;if(a.model.selectionIsCollapsed?E=(y=window.MathfieldElement.computeEngine)==null?void 0:y.parse(a.getValue(),{canonical:!1}):E=(b=window.MathfieldElement.computeEngine)==null?void 0:b.parse(a.getValue(a.model.selection),{canonical:!1}),!E)return"";let ee=E.evaluate();return ee.isSame(E)&&(ee=E.N()),ee.latex}function Xh(a,y,b,E){return{label:()=>Lu(`\\${b}{${Bl(a)}}`),tooltip:()=>{var ee;return(ee=ct(E))!=null?ee:E},visible:()=>Zv(a,y),checked:()=>{var ee;return{some:"mixed",all:!0}[(ee=a.queryStyle({variant:y}))!=null?ee:!1]},onMenuSelect:()=>{a.applyStyle({variant:y},{operation:"toggle"}),a.adoptStyle="none"}}}function Qh(a,y,b,E){return{label:()=>Lu(`\\${b}{${Bl(a)}}`),tooltip:()=>{var ee;return(ee=ct(E))!=null?ee:E},visible:()=>Wv(a,y),checked:()=>{var ee;return{some:"mixed",all:!0}[(ee=a.queryStyle({variantStyle:y}))!=null?ee:!1]},onMenuSelect:()=>{a.applyStyle({variantStyle:y},{operation:"toggle"}),a.adoptStyle="none"}}}function qd(a,y){return a+Qd(y)}cc({speak:(a,y,b)=>n1(a,y,b)},{target:"mathfield"});function n1(a,y,b){var E,ee;b=b!=null?b:{withHighlighting:!1};const{model:ie}=a;function oe(Ke){let pt=null;switch(Ke){case"all":pt=ie.root;break;case"selection":pt=ie.getAtoms(ie.selection);break;case"left":{pt=ie.getAtoms(ie.offsetOf(ie.at(ie.position).leftSibling),ie.position);break}case"right":{pt=ie.getAtoms(ie.position,ie.offsetOf(ie.at(ie.position).rightSibling));break}case"group":pt=ie.getAtoms(ie.getSiblingsRange(ie.position));break;case"parent":{const{parent:Tt}=ie.at(ie.position);Tt!=null&&Tt.parent?pt=Tt:pt=ie.root;break}default:pt=ie.root}return pt}function ve(Ke){let pt="";switch(Ke){case"all":console.log("Internal failure: speak all failed");break;case"selection":pt="no selection";break;case"left":pt="at start";break;case"right":pt="at end";break;case"group":console.log("Internal failure: speak group failed");break;case"parent":pt="no parent";break;default:console.log('unknown speak_ param value: "'+Ke+'"');break}return pt}const Ee=oe(y);if(Ee===null)return(ee=(E=window.MathfieldElement).speakHook)==null||ee.call(E,ve(y)),!1;(b.withHighlighting||window.MathfieldElement.speechEngine==="amazon")&&(window.MathfieldElement.textToSpeechMarkup=window.sre&&window.MathfieldElement.textToSpeechRules==="sre"?"ssml_step":"ssml");const Te=Qd(Ee);return qe()&&b.withHighlighting?(md().readAloudMathfield=a,Ed(a,{forHighlighting:!0}),window.MathfieldElement.readAloudHook&&window.MathfieldElement.readAloudHook(a.field,Te)):window.MathfieldElement.speakHook&&window.MathfieldElement.speakHook(Te),!1}function r1(a){var y,b;if(!qe()){console.log("Speak:",a);return}if(!window.MathfieldElement.speechEngine||window.MathfieldElement.speechEngine==="local"){const E=new SpeechSynthesisUtterance(a);window.speechSynthesis.speak(E)}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 E=new window.AWS.Polly({apiVersion:"2016-06-10"}),ee={OutputFormat:"mp3",VoiceId:(y=window.MathfieldElement.speechEngineVoice)!=null?y:"Joanna",Engine:["Amy","Emma","Brian","Ivy","Joanna","Kendra","Kimberly","Salli","Joey","Justin","Matthew"].includes((b=window.MathfieldElement.speechEngineVoice)!=null?b:"Joanna")?"neural":"standard",Text:a,TextType:"ssml"};E.synthesizeSpeech(ee,(ie,oe)=>{if(ie)console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${ie}`);else if(oe!=null&&oe.AudioStream){const ve=new Uint8Array(oe.AudioStream),Ee=new Blob([ve.buffer],{type:"audio/mpeg"}),Te=URL.createObjectURL(Ee);new Audio(Te).play().catch(pt=>console.log(pt))}else console.log("polly.synthesizeSpeech():",oe)})}else window.MathfieldElement.speechEngine==="google"&&console.error("MathLive 0.98.5: The Google speech engine is not supported yet. Please come again.")}function pp(a){var y;let b;if(a.parent.type==="prompt")a.parentBranch==="body"&&(b="prompt");else if(a.parentBranch==="body")b=a.type&&(y={enclose:"cross out",leftright:"delimiter",surd:"square root",root:"math field",mop:"operator",first:"first"}[a.type])!=null?y:"parent";else if(a.parent.type==="genfrac"){if(a.parentBranch==="above")return"numerator";if(a.parentBranch==="below")return"denominator"}else a.parent.type==="surd"?a.parentBranch==="above"&&(b="index"):a.parentBranch==="superscript"?b="superscript":a.parentBranch==="subscript"&&(b="subscript");return b||console.log("unknown relationship"),b!=null?b:"parent"}function i1(a,y,b,E){let ee="";if(y==="plonk")window.MathfieldElement.playSound("plonk"),a.flushInlineShortcutBuffer();else if(y==="delete")ee=qd("deleted: ",E);else if(y==="focus"||y.includes("move"))ee=a1(a.model,b)+(a.model.selectionIsCollapsed?"":"selected: ")+o1(a.model);else if(y==="replacement")ee=qd("",a.model.at(a.model.position));else if(y==="line"){const ie=qd("",a.model.root);a.keyboardDelegate.setAriaLabel(ie)}else ee=E?qd(y+" ",E):y;if(ee){const ie=a.ariaLiveText.textContent.includes("\xA0")?" \u202F ":" \xA0 ";a.ariaLiveText.textContent=ee+ie}}function a1(a,y){if(Number.isNaN(y))return"";const b=a.at(y);if(!b||b.treeDepth<=a.at(a.position).treeDepth)return"";let E="",ee=b.parent;const ie=a.at(a.position).parent;for(;ee!==a.root&&ee!==ie;)E+=`out of ${pp(ee)};`,ee=ee.parent;return E}function o1(a){if(!a.selectionIsCollapsed)return qd("",a.getAtoms(a.selection));let y="";const b=a.at(a.position),E=pp(b);return b.isFirstSibling&&(y=(E?"start of "+E:"unknown")+": "),b.isLastSibling?b.isFirstSibling||(y+=E?"end of "+E:"unknown"):y+=qd("",b),y}var s1=class{constructor(a,y,b){this.mathfield=a,this.mode=y,this.silenceNotifications=!1,this._selection={ranges:[[0,0]],direction:"none"},this._anchor=0,this._position=0,this.root=b}dispose(){this.mathfield=void 0}getState(){const a={ranges:[...this._selection.ranges]};return this.selection.direction&&this.selection.direction!=="none"&&(a.direction=this.selection.direction),{content:this.root.toJson(),selection:a,mode:this.mode}}setState(a,y){var b;const E=this.silenceNotifications;this.silenceNotifications=(b=y==null?void 0:y.silenceNotifications)!=null?b:!0;let ee={};if((y==null?void 0:y.type)==="undo"&&(ee={inputType:"historyUndo"}),(y==null?void 0:y.type)==="redo"&&(ee={inputType:"historyRedo"}),this.contentWillChange(ee)){const ie=this.silenceNotifications;this.silenceNotifications=!0,this.mode=a.mode,this.root=dd(a.content),this.selection=a.selection,this.silenceNotifications=ie,this.contentDidChange(ee)}this.silenceNotifications=E}get atoms(){return this.root.children}get selection(){return this._selection}set selection(a){this.setSelection(a)}setSelection(a,y){return!this.mathfield.contentEditable&&this.mathfield.userSelect==="none"?!1:this.deferNotifications({selection:!0},()=>{var b,E,ee;const ie=this.normalizeSelection(a,y);if(ie===void 0)throw new TypeError("Invalid selection");if(ie.ranges.length===1&&ie.ranges[0][0]===ie.ranges[0][1]){const Ke=ie.ranges[0][0];if(!this.mathfield.dirty&&!((b=this.at(Ke))!=null&&b.parentPrompt)&&this.mathfield.hasEditablePrompts){if((E=this.at(Ke-1))!=null&&E.parentPrompt){this._anchor=this.normalizeOffset(Ke-1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}if((ee=this.at(Ke+1))!=null&&ee.parentPrompt){this._anchor=this.normalizeOffset(Ke+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=Ke,this._position=Ke,this._selection=ie;return}const oe=kl(ie);ie.direction==="backward"?[this._position,this._anchor]=oe:[this._anchor,this._position]=oe;const ve=this.at(oe[0]+1),Ee=this.at(oe[1]),Te=Wr.commonAncestor(ve,Ee);(Te==null?void 0:Te.type)==="array"&&ve.parent===Te&&Ee.parent===Te?this._selection={ranges:[oe],direction:ie.direction}:this._selection={ranges:[oe],direction:ie.direction},console.assert(this._position>=0&&this._position<=this.lastOffset)})}setPositionHandlingPlaceholder(a){var y;const b=this.at(a);(b==null?void 0:b.type)==="placeholder"?this.setSelection(a-1,a):((y=b==null?void 0:b.rightSibling)==null?void 0:y.type)==="placeholder"?this.setSelection(a,a+1):this.position=a,b instanceof Nu&&b.isSuggestion&&(b.isSuggestion=!1),this.mathfield.stopCoalescingUndo()}get position(){return this._position}set position(a){this.setSelection(a,a)}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(a="forward"){return this._anchor===this._position?!1:(a==="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(a){return this.atoms[a]}offsetOf(a){return this.atoms.indexOf(a)}getSiblingsRange(a){const y=this.at(a),{parent:b}=y;if(!b)return[0,this.lastOffset];const E=y.parent.branch(y.parentBranch);return[this.offsetOf(E[0]),this.offsetOf(E[E.length-1])]}getBranchRange(a,y){const b=this.at(a).branch(y);return[this.offsetOf(b[0]),this.offsetOf(b[b.length-1])]}getAtoms(a,y,b){let E=b!=null?b:{};if(Oc(a)){if(E=y!=null?y:{},a.ranges.length>1)return a.ranges.reduce((Te,Ke)=>[...Te,...this.getAtoms(Ke,E)],[]);a=a.ranges[0]}let ee,ie;if(bu(a)){if(ee=a,!bu(y))return[];ie=y}else[ee,ie]=a,E=y!=null?y:{};if(!Number.isFinite(ee))return[];E.includeChildren===void 0&&(E.includeChildren=!1),ee<0&&(ee=this.lastOffset-ee+1),ie<0&&(ie=this.lastOffset-ie+1);const oe=Math.min(ee,ie)+1,ve=Math.max(ee,ie);if(!E.includeChildren&&oe===1&&ve===this.lastOffset)return[this.root];let Ee=[];for(let Te=oe;Te<=ve;Te++){const Ke=this.atoms[Te];mp(this,Ke,oe,ve)&&Ee.push(Ke)}return E.includeChildren||(Ee=Ee.filter(Te=>{let Ke=!1,{parent:pt}=Te;for(;pt&&!Ke;)Ke=mp(this,pt,oe,ve),pt=pt.parent;return!Ke})),Ee}getAllAtoms(a=0){const y=[],b=this.lastOffset;for(let E=a;E<=b;E++)y.push(this.atoms[E]);for(let E=0;E<a;E++)y.push(this.atoms[E]);return y}findAtom(a,y=0,b="forward"){let E;const ee=this.lastOffset;if(b==="forward"){for(let ie=y;ie<=ee;ie++)if(E=this.atoms[ie],a(E))return E;for(let ie=0;ie<y;ie++)if(E=this.atoms[ie],a(E))return E;return}for(let ie=y;ie>=0;ie--)if(E=this.atoms[ie],a(E))return E;for(let ie=ee;ie>y;ie--)if(E=this.atoms[ie],a(E))return E}extractAtoms(a){let y=this.getAtoms(a);if(y.length===1&&!y[0].parent)if(y[0].type==="root")y=[...y[0].body],y.shift();else return y=this.root.cells.flat(),this.root=new Wr({type:"root",body:[]}),y;for(const b of y)b.parent.removeChild(b);return y}deleteAtoms(a){this.extractAtoms(a),this.position=a[0]}atomToString(a,y){const b=y!=null?y:"latex";if(b.startsWith("latex"))return Wr.serialize([a],{expandMacro:b==="latex-expanded",skipStyles:b==="latex-unstyled",skipPlaceholders:b==="latex-without-placeholders",defaultMode:this.mathfield.options.defaultMode});if(b==="math-ml")return Ys(a);if(b==="spoken")return Qd(a);if(b==="spoken-text"){const E=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="";const ee=Qd(a);return window.MathfieldElement.textToSpeechMarkup=E,ee}if(b==="spoken-ssml"||b==="spoken-ssml-with-highlighting"){const E=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="ssml";const ee=Qd(a);return window.MathfieldElement.textToSpeechMarkup=E,ee}return b==="ascii-math"?nu(a):(console.error(`MathLive 0.98.5: Unexpected format "${b}`),"")}getValue(a,y,b){if(a===void 0)return this.atomToString(this.root,"latex");if(typeof a=="string"&&a!=="math-json")return this.atomToString(this.root,a);let E,ee;if(bu(a)&&bu(y)?(E=[this.normalizeRange([a,y])],ee=b):Dc(a)?(E=[this.normalizeRange(a)],ee=y):Oc(a)?(E=a.ranges,ee=y):(E=[this.normalizeRange([0,-1])],ee=a),ee!=null||(ee="latex"),ee==="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 ie=this.getValue({ranges:E},"latex-unstyled");try{const oe=window.MathfieldElement.computeEngine.parse(ie);return JSON.stringify(oe.json)}catch(oe){return JSON.stringify(["Error",`'${oe.toString()}'`])}}if(ee.startsWith("latex")){const ie={expandMacro:ee==="latex-expanded",skipStyles:ee==="latex-unstyled",skipPlaceholders:ee==="latex-without-placeholders",defaultMode:this.mathfield.options.defaultMode};return vo(E.map(oe=>Wr.serialize(this.getAtoms(oe),ie)))}return E.map(ie=>this.getAtoms(ie).map(oe=>this.atomToString(oe,ee)).join("")).join("")}extendSelectionTo(a,y){return!this.mathfield.contentEditable&&this.mathfield.userSelect==="none"?!1:this.deferNotifications({selection:!0},()=>{const b=this.normalizeRange([a,y]);let[E,ee]=b,{parent:ie}=this.at(ee);if(ie&&(ie.type==="genfrac"||ie.type==="subsup"))for(;ie!==this.root&&Jh(this,ie,[E,ee]);)ee=this.offsetOf(ie),ie=ie.parent;for(ie=this.at(E).parent;ie!==this.root&&Jh(this,ie,[E,ee]);)E=this.offsetOf(ie.leftSibling),ie=ie.parent;if(ie=this.at(ee).parent,(ie==null?void 0:ie.type)==="genfrac")for(;ie!==this.root&&Jh(this,ie,[E,ee]);)ee=this.offsetOf(ie),console.assert(ee>=0),ie=ie.parent;this._position=this.normalizeOffset(y),this._selection={ranges:[[E,ee]],direction:"none"}})}announce(a,y,b=[]){var E,ee;((ee=(E=this.mathfield.host)==null?void 0:E.dispatchEvent(new CustomEvent("announce",{detail:{command:a,previousPosition:y,atoms:b},cancelable:!0,bubbles:!0,composed:!0})))!=null?ee:!0)&&i1(this.mathfield,a,y,b)}deferNotifications(a,y){const b=this._selection,E=this._anchor,ee=this._position,ie=this.silenceNotifications;this.silenceNotifications=!0;const oe=this.root.changeCounter;y();const ve=this.root.changeCounter!==oe,Ee=E!==this._anchor||ee!==this._position||kc(this._selection,b)==="different";return this.silenceNotifications=ie,a.content&&ve&&this.contentDidChange({inputType:a.type}),a.selection&&Ee&&this.selectionDidChange(),ve||Ee}normalizeOffset(a){return a>0?a=Math.min(a,this.lastOffset):a<0&&(a=this.lastOffset+a+1),a}normalizeRange(a){let[y,b]=a;return y=this.normalizeOffset(y),b=this.normalizeOffset(b),y<b?[y,b]:[b,y]}normalizeSelection(a,y){var b;let E;if(bu(a)){const ee=this.normalizeOffset(a);if(bu(y)){const ie=this.normalizeOffset(y);E=ee<=ie?{ranges:[[ee,ie]],direction:"none"}:{ranges:[[ie,ee]],direction:"backward"}}else E={ranges:[[ee,ee]],direction:"none"}}else if(Dc(a)){const ee=this.normalizeOffset(a[0]),ie=this.normalizeOffset(a[1]);E=ee<=ie?{ranges:[[ee,ie]],direction:"none"}:{ranges:[[ie,ee]],direction:"backward"}}else Oc(a)&&(E={ranges:a.ranges.map(ee=>this.normalizeRange(ee)),direction:(b=a.direction)!=null?b:"none"});return console.assert(E!==void 0),E}get parentEnvironment(){let a=this.at(this.position).parent;if(a){for(;a.parent&&a.type!=="array";)a=a.parent;if(a.type==="array")return a}}get cell(){var a;let y=this.at(this.position);if(y){for(;y&&((a=y.parent)==null?void 0:a.type)!=="array";)y=y.parent;if(!(!(y!=null&&y.parent)||y.parent.type!=="array"))return y.parentBranch}}contentWillChange(a={}){if(this.silenceNotifications||!this.mathfield)return!0;const y=this.silenceNotifications;this.silenceNotifications=!0;const b=this.mathfield.onContentWillChange(a);return this.silenceNotifications=y,b}contentDidChange(a){var y;if(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update($c(this.mathfield)),this.silenceNotifications||!this.mathfield.host||!this.mathfield)return;const b=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.host.dispatchEvent(new InputEvent("input",pe(we({},a),{data:a.data?a.data:(y=a.inputType)!=null?y:"",bubbles:!0,composed:!0}))),this.silenceNotifications=b}selectionDidChange(){if(!this.mathfield||(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update($c(this.mathfield)),this.silenceNotifications))return;const a=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.onSelectionDidChange(),this.silenceNotifications=a}};function mp(a,y,b,E){const ee=a.offsetOf(y);if(ee<b||ee>E)return!1;if(!y.hasChildren)return!0;const ie=a.offsetOf(y.firstChild);if(ie>=b&&ie<=E){const oe=a.offsetOf(y.lastChild);if(oe>=b&&oe<=E)return!0}return!1}function Jh(a,y,b){if(!(y!=null&&y.hasChildren))return!1;const[E,ee]=b,ie=a.offsetOf(y.firstChild),oe=a.offsetOf(y.lastChild);return ie>=E&&ie<=ee&&oe>=ie&&oe<=ee}function kf(a,y,b,E){var ee,ie,oe,ve,Ee,Te;const Ke=b.parent;if(Ke&&b instanceof Gs){const pt=!E&&y==="forward"||E==="body"&&y==="backward";let Tt=pt?a.offsetOf(b.firstChild):a.offsetOf(b.lastChild);return pt?b.rightDelim!=="?"&&b.rightDelim!=="."?(b.leftDelim=".",b.isDirty=!0):(Ke.addChildrenAfter(b.removeBranch("body"),b),Ke.removeChild(b),Tt--):b.leftDelim!=="?"&&b.leftDelim!=="."?(b.rightDelim=".",b.isDirty=!0):(Ke.addChildrenAfter(b.removeBranch("body"),b),Ke.removeChild(b),Tt--),a.position=Tt,!0}if(Ke&&b.type==="surd"){if(y==="forward"&&!E||y==="backward"&&E==="body"){const pt=b.leftSibling;b.hasChildren&&Ke.addChildrenAfter(b.removeBranch("body"),b),Ke.removeChild(b),a.position=a.offsetOf(pt)}else y==="forward"&&E==="body"?a.position=a.offsetOf(b):!E&&y==="backward"?b.hasChildren?a.position=a.offsetOf(b.lastChild):(a.position=Math.max(0,a.offsetOf(b)-1),Ke.removeChild(b)):E==="above"&&(b.hasEmptyBranch("above")&&b.removeBranch("above"),y==="backward"?a.position=a.offsetOf(b.leftSibling):a.position=a.offsetOf(b.body[0]));return!0}if(Ke&&(b.type==="box"||b.type==="enclose")){const pt=E&&y==="backward"||!E&&y==="forward"?b.leftSibling:b.lastChild;return Ke.addChildrenAfter(b.removeBranch("body"),b),Ke.removeChild(b),a.position=a.offsetOf(pt),!0}if(b.type==="genfrac"||b.type==="overunder"){if(!E)return b.type==="overunder"&&b.hasEmptyBranch("body")||b.type==="genfrac"&&b.hasEmptyBranch("below")&&b.hasEmptyBranch("above")?!1:(a.position=a.offsetOf(y==="forward"?b.firstChild:b.lastChild),!0);const pt=Df.fractionNavigationOrder==="numerator-denominator"?"above":"below",Tt=pt==="above"?"below":"above";if(Ke&&(y==="forward"&&E===pt||y==="backward"&&E===Tt)){const rn=b.removeBranch(pt),pn=b.removeBranch(Tt);return Ke.addChildrenAfter([...rn,...pn],b),Ke.removeChild(b),a.position=a.offsetOf(rn.length>0?rn[rn.length-1]:pn[0]),!0}return y==="backward"?a.position=a.offsetOf(b.leftSibling):a.position=a.offsetOf(b),!0}if(b.isExtensibleSymbol||b.type==="subsup"){if(!E&&y==="forward")return!1;if(!E){if(b.subscript||b.superscript){const pt=y==="forward"?(oe=(ee=b.superscript)==null?void 0:ee[0])!=null?oe:(ie=b.subscript)==null?void 0:ie[0]:(Te=(ve=b.subscript)==null?void 0:ve[0].lastSibling)!=null?Te:(Ee=b.superscript)==null?void 0:Ee[0].lastSibling;return pt&&(a.position=a.offsetOf(pt)),!0}return!1}if(!b.hasChildren&&b.type==="subsup"){const pt=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);return b.parent.removeChild(b),a.position=pt,!0}if(E==="superscript")if(y==="backward"){const pt=a.offsetOf(b.firstChild)-1;console.assert(pt>=0),a.position=pt}else b.subscript?a.position=a.offsetOf(b.subscript[0]):a.position=a.offsetOf(b);else E==="subscript"&&(y==="backward"&&b.superscript?a.position=a.offsetOf(b.superscript[0].lastSibling):y==="backward"?a.position=a.offsetOf(b.firstChild)-1:a.position=a.offsetOf(b));if(E&&b.hasEmptyBranch(E)&&(b.removeBranch(E),b.type==="subsup"&&!b.subscript&&!b.superscript)){const pt=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);b.parent.removeChild(b),a.position=pt}return!0}if((Ke==null?void 0:Ke.type)==="genfrac"&&!E&&b.type!=="first"){let pt=a.offsetOf(b.leftSibling);return Ke.removeChild(b),Ke.hasEmptyBranch("above")&&Ke.hasEmptyBranch("below")?(pt=a.offsetOf(Ke.leftSibling),Ke.parent.removeChild(Ke),a.announce("delete",void 0,[Ke]),a.position=pt,!0):(a.announce("delete",void 0,[b]),a.position=pt,!0)}if(y==="backward"&&((Ke==null?void 0:Ke.command)==="\\ln"||(Ke==null?void 0:Ke.command)==="\\log")&&b.parentBranch!=="body"){const pt=a.offsetOf(Ke.leftSibling);return Ke.parent.removeChild(Ke),a.announce("delete",void 0,[Ke]),a.position=pt,!0}return!1}function l1(a){return!a.mathfield.isSelectionEditable||!a.contentWillChange({inputType:"deleteContentBackward"})?!1:a.selectionIsCollapsed?a.deferNotifications({content:!0,selection:!0,type:"deleteContentBackward"},()=>{let y=a.at(a.position);if(!(y&&kf(a,"backward",y))){if(y!=null&&y.isFirstSibling){if(kf(a,"backward",y.parent,y.parentBranch))return;y=null}if(!y){a.announce("plonk");return}a.position=a.offsetOf(y.leftSibling),y.parent.removeChild(y),a.announce("delete",void 0,[y])}}):Hc(a,kl(a.selection),"deleteContentBackward")}function u1(a){return!a.mathfield.isSelectionEditable||!a.contentWillChange({inputType:"deleteContentForward"})?!1:a.selectionIsCollapsed?a.deferNotifications({content:!0,selection:!0,type:"deleteContentForward"},()=>{var y,b;let E=a.at(a.position).rightSibling;if(E&&kf(a,"forward",E))return;if(E){if(a.at(a.position).isLastSibling&&kf(a,"forward",E.parent,E.parentBranch))return}else{if(E=a.at(a.position),E.isLastSibling&&kf(a,"forward",E.parent,E.parentBranch))return;E=void 0}if(a.position===a.lastOffset||!E){a.announce("plonk");return}E.parent.removeChild(E);let ee=(y=a.at(a.position))==null?void 0:y.rightSibling;for(;(ee==null?void 0:ee.type)==="subsup";)ee.parent.removeChild(ee),ee=(b=a.at(a.position))==null?void 0:b.rightSibling;a.announce("delete",void 0,[E])}):Hc(a,kl(a.selection),"deleteContentForward")}function Hc(a,y,b){const E=a.getAtoms(y);if(E.length>0&&E[0].parent){let ee=E[0].parent.firstChild;ee.type==="first"&&(ee=ee.rightSibling);const ie=E[E.length-1].parent.lastChild;let oe=E[0];oe.type==="first"&&(oe=oe.rightSibling);const ve=E[E.length-1];if(oe===ee&&ve===ie){const Ee=E[0].parent;Ee.parent&&Ee.type!=="prompt"&&(y=[a.offsetOf(Ee.leftSibling),a.offsetOf(Ee)])}if(E.length===1&&E[0].type==="placeholder"&&E[0].parent.type==="genfrac"){const Ee=E[0].parent,Te=E[0].parentBranch==="below"?"above":"below",Ke=a.offsetOf(Ee.leftSibling);return a.deferNotifications({content:!0,selection:!0,type:b},()=>{var pt,Tt;const rn=Ee.removeBranch(Te);if(rn.length===1&&rn[0].type==="placeholder")(Tt=Ee.parent)==null||Tt.removeChild(Ee),a.position=Math.max(0,Ke);else{const pn=Ee.parent.addChildrenAfter(rn,Ee);(pt=Ee.parent)==null||pt.removeChild(Ee),a.position=a.offsetOf(pn)}})}}return a.deferNotifications({content:!0,selection:!0,type:b},()=>a.deleteAtoms(y))}cc({deleteAll:a=>a.contentWillChange({inputType:"deleteContent"})&&Hc(a,[0,-1],"deleteContent"),deleteForward:a=>u1(a),deleteBackward:a=>l1(a),deleteNextWord:a=>a.contentWillChange({inputType:"deleteWordForward"})&&Hc(a,[a.anchor,Dh(a,a.position,"forward")],"deleteWordForward"),deletePreviousWord:a=>a.contentWillChange({inputType:"deleteWordBackward"})&&Hc(a,[a.anchor,Dh(a,a.position,"backward")],"deleteWordBackward"),deleteToGroupStart:a=>a.contentWillChange({inputType:"deleteSoftLineBackward"})&&Hc(a,[a.anchor,a.offsetOf(a.at(a.position).firstSibling)],"deleteSoftLineBackward"),deleteToGroupEnd:a=>a.contentWillChange({inputType:"deleteSoftLineForward"})&&Hc(a,[a.anchor,a.offsetOf(a.at(a.position).lastSibling)],"deleteSoftLineForward"),deleteToMathFieldStart:a=>a.contentWillChange({inputType:"deleteHardLineBackward"})&&Hc(a,[a.anchor,0],"deleteHardLineBackward"),deleteToMathFieldEnd:a=>a.contentWillChange({inputType:"deleteHardLineForward"})&&Hc(a,[a.anchor,-1],"deleteHardLineForward")},{target:"model",audioFeedback:"delete",canUndo:!0,changeContent:!0,changeSelection:!0});var c1=`<svg xmlns="http://www.w3.org/2000/svg" style="width: 21px;" viewBox="0 0 576 512" role="img" aria-label="${ct("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>`,d1=`<svg xmlns="http://www.w3.org/2000/svg" style="height: 18px;" viewBox="0 0 448 512" role="img" aria-label="${ct("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>`,f1=class{constructor(a,y){this.focusBlurInProgress=!1;var b,E,ee;this.options=we(pe(we({},Vf()),{macros:Bt(),registers:Yu()}),Uf(y)),this.eventController=new AbortController;const ie=this.eventController.signal;y.eventSink&&(this.host=y.eventSink),this.element=a,a.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 oe=(E=(b=y.value)!=null?b:this.element.textContent)!=null?E:"";oe=oe.trim();const ve=L0(this.options),Ee=new Wr({type:"root",mode:ve,body:Au(oe,{context:this.context})});this.model=new s1(this,ve,Ee),this.undoManager=new Fg(this.model);const Te=[];if(Te.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>"),Te.push('<span part=container class=ML__container aria-hidden=true style="visibility:hidden">'),Te.push("<span part=content class=ML__content>"),Te.push(S0(this)),Te.push("</span>"),window.mathVirtualKeyboard&&(Te.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">`),Te.push(c1),Te.push("</div>")),Te.push('<div part=menu-toggle class=ML__menu-toggle role=button data-l10n-tooltip="tooltip.menu">'),Te.push(d1),Te.push("</div>"),Te.push("</span>"),Te.push("<span class=ML__sr-only>"),Te.push("<span role=status aria-live=assertive aria-atomic=true></span>"),Te.push("</span>"),this.element.innerHTML=window.MathfieldElement.createHTML(Te.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=ot.subscribe(()=>ot.update(this.element)),ot.update(this.element),this.field=this.element.querySelector("[part=content]"),this.field.addEventListener("click",pt=>pt.stopImmediatePropagation(),{capture:!1,signal:ie}),this.field.addEventListener("wheel",this,{passive:!1,signal:ie}),"PointerEvent"in window?this.field.addEventListener("pointerdown",this,{signal:ie}):this.field.addEventListener("mousedown",this,{signal:ie}),(ee=this.element.querySelector("[part=virtual-keyboard-toggle]"))==null||ee.addEventListener("click",()=>{window.mathVirtualKeyboard.visible?window.mathVirtualKeyboard.hide():(window.mathVirtualKeyboard.show({animate:!0}),window.mathVirtualKeyboard.update($c(this)))},{signal:ie}),this._menu=new wv(Jv(this),{host:this.host}),this.field.addEventListener("contextmenu",this,{signal:ie});const Ke=this.element.querySelector("[part=menu-toggle]");Ke==null||Ke.addEventListener("pointerdown",pt=>{if(pt.currentTarget!==Ke||this._menu.state!=="closed")return;this.element.classList.add("tracking");const Tt=Ke.getBoundingClientRect();this._menu.modifiers=Cd(pt),this._menu.show({target:Ke,location:{x:Tt.left,y:Tt.bottom},onDismiss:()=>this.element.classList.remove("tracking")}),pt.preventDefault(),pt.stopPropagation()},{signal:ie}),(this.model.atoms.length<=1||this.disabled||this.readOnly&&!this.hasEditableContent||this.userSelect==="none")&&(Ke.style.display="none"),this.ariaLiveText=this.element.querySelector("[role=status]"),this.keyboardDelegate=Hm(this.element.querySelector(".ML__keyboard-sink"),this.element,this),window.addEventListener("resize",this,{signal:ie}),document.addEventListener("scroll",this,{signal:ie}),this.resizeObserver=new ResizeObserver(()=>Ql(this)),this.resizeObserver.observe(this.field),window.mathVirtualKeyboard.addEventListener("virtual-keyboard-toggle",this,{signal:ie}),df&&!ot.locale.startsWith(df.locale)&&_m(ot.locale),gc!=="ready"&&document.fonts.ready.then(()=>$f(this)),a.querySelector("[part=container]").style.removeProperty("visibility"),this.undoManager.startRecording(),this.undoManager.snapshot("set-value")}get defaultStyle(){return this._defaultStyle}set defaultStyle(a){this._defaultStyle=a}get effectiveStyle(){if(this.adoptStyle==="none")return this.defaultStyle;const a=this.model.at(this.model.position),y=this.adoptStyle==="right"?a.rightSibling:a;if(!y)return this.defaultStyle;if(y.type==="group"){const b=y.branch("body");return!b||b.length<2?{}:this.adoptStyle==="right"?b[1].computedStyle:b[b.length-1].computedStyle}return y.computedStyle}connectToVirtualKeyboard(){this.connectedToVirtualKeyboard||(this.connectedToVirtualKeyboard=!0,window.addEventListener("message",this,{signal:this.eventController.signal}),window.mathVirtualKeyboard.connect(),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update($c(this)),ih(this))}disconnectFromVirtualKeyboard(){this.connectedToVirtualKeyboard&&(window.removeEventListener("message",this),window.mathVirtualKeyboard.disconnect(),this.connectedToVirtualKeyboard=!1,_h())}showMenu(a){var y,b;const E=(b=(y=a==null?void 0:a.location)!=null?y:hc(this.field))!=null?b:void 0,ee=a==null?void 0:a.modifiers,ie=this.element.querySelector("[part=container]");return this._menu.show({target:ie,location:E,modifiers:ee})}get colorMap(){return a=>{var y,b,E;return(E=(b=(y=this.options).colorMap)==null?void 0:b.call(y,a))!=null?E:Ge(a)}}get backgroundColorMap(){return a=>{var y,b,E,ee,ie,oe;return(oe=(ie=(b=(y=this.options).backgroundColorMap)==null?void 0:b.call(y,a))!=null?ie:(ee=(E=this.options).colorMap)==null?void 0:ee.call(E,a))!=null?oe:Ae(a)}}get smartFence(){var a;return(a=this.options.smartFence)!=null?a:!1}get readOnly(){var a;return(a=this.options.readOnly)!=null?a:!1}get disabled(){var a,y;return(y=(a=this.host)==null?void 0:a.disabled)!=null?y:!1}get contentEditable(){return this.host?this.host.getAttribute("contenteditable")!=="false":!1}get userSelect(){if(!this.host)return"";const a=getComputedStyle(this.host);return a.getPropertyValue("user-select")||a.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(a=>a.type==="prompt"&&!a.locked)!==void 0}get isSelectionEditable(){if(this.disabled||!this.contentEditable)return!1;if(!this.readOnly)return!0;const a=this.model.at(this.model.anchor),y=this.model.at(this.model.position),b=Wr.commonAncestor(a,y);return!!((b==null?void 0:b.type)==="prompt"||b!=null&&b.parentPrompt)}get letterShapeStyle(){var a;return(a=this.options.letterShapeStyle)!=null?a:"tex"}get minFontScale(){return this.options.minFontScale}get selectionStyle(){if(this.model.selectionIsCollapsed)return this.effectiveStyle;const a=this.model.getAtoms(this.model.selection);if(a.length===0)return{};const y=we({},a[0].style);for(const b of a)for(const[E,ee]of Object.entries(b.style))y[E]!==ee&&delete y[E];return y}queryStyle(a){const y=Nh(this,a);"verbatimColor"in y&&delete y.verbatimColor,"verbatimBackgroundColor"in y&&delete y.verbatimBackgroundColor;const b=Object.keys(y).length;if(b===0)return"all";if(b>1){for(const Ee of Object.keys(y)){const Te=this.queryStyle({[Ee]:y[Ee]});if(Te==="none")return"none";if(Te==="some")return"some"}return"all"}const E=Object.keys(y)[0],ee=y[E];if(this.model.selectionIsCollapsed)return this.effectiveStyle[E]===ee?"all":"none";const ie=this.model.getAtoms(this.model.selection,{includeChildren:!0});let oe=ie.length;if(oe===0)return"none";let ve=0;for(const Ee of ie){if(Ee.type==="first"){oe-=1;continue}Ee.style[E]===ee&&(ve+=1)}return ve===0?"none":ve===oe?"all":"some"}get keybindings(){var a,y;if(this._keybindings)return this._keybindings;const[b,E]=jm(this.options.keybindings,(a=ff())!=null?a:zm());return((y=ff())==null?void 0:y.score)>0&&(this._keybindings=b,E.length>0&&console.error("MathLive 0.98.5: Invalid keybindings for current keyboard layout",E)),b}get menu(){return this._menu}setOptions(a){var y;this.options=we(we({},this.options),Uf(a)),this._keybindings=void 0,this.options.defaultMode==="inline-math"?this.element.classList.add("ML__is-inline"):this.element.classList.remove("ML__is-inline");let b=this.options.defaultMode;b==="inline-math"&&(b="math"),((y=this.model.root.firstChild)==null?void 0:y.mode)!==b&&(this.model.root.firstChild.mode=b),this.options.readOnly&&this.hasFocus()&&window.mathVirtualKeyboard.visible&&this.executeCommand("hideVirtualKeyboard");const E=Wr.serialize([this.model.root],{expandMacro:!1,defaultMode:this.options.defaultMode});("macros"in a||this.model.getValue()!==E)&&No.insert(this.model,E,{insertionMode:"replaceAll",selectionMode:"after",format:"latex",silenceNotifications:!0,mode:"math"}),("value"in a||"macros"in a||"registers"in a||"colorMap"in a||"backgroundColorMap"in a||"letterShapeStyle"in a||"minFontScale"in a||"readOnly"in a||"placeholderSymbol"in a)&&Ql(this)}getOptions(a){return kd(this.options,a)}getOption(a){return kd(this.options,a)}handleEvent(a){return gd(this,null,function*(){var y;if(ec(this)){if(Ch(a)){if(!rl(a.origin,(y=this.options.originValidator)!=null?y:"none"))throw new DOMException(`Message from unknown origin (${a.origin}) cannot be handled`,"SecurityError");const{action:b}=a.data;if(b==="execute-command"){const E=a.data.command;if(Zd(E)==="virtual-keyboard")return;this.executeCommand(E)}else b==="update-state"||(b==="focus"?this.focus({preventScroll:!0}):b==="blur"&&this.blur());return}switch(a.type){case"focus":this.onFocus();break;case"blur":this.onBlur();break;case"mousedown":this.userSelect!=="none"&&W0(this,a);break;case"pointerdown":this.userSelect!=="none"&&(W0(this,a),a.shiftKey===!1&&(yield ip(a,this.element.querySelector("[part=container]"),this._menu))&&eh.stop());break;case"contextmenu":this.userSelect!=="none"&&a.shiftKey===!1&&(yield ip(a,this.element.querySelector("[part=container]"),this._menu))&&eh.stop();break;case"virtual-keyboard-toggle":this.hasFocus()&&ih(this);break;case"resize":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>ec(this)&&this.onGeometryChange());break;case"scroll":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>ec(this)&&this.onGeometryChange());break;case"wheel":this.onWheel(a);break;default:console.warn("Unexpected event type",a.type)}}})}dispose(){if(!ec(this))return;ot.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 a=this.element;delete a.mathfield,this.element=void 0,this.host=void 0,this.field=void 0,this.ariaLiveText=void 0,Gg(),qm(),mv()}flushInlineShortcutBuffer(a){if(a!=null||(a={defer:!1}),!a.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(a){return Zd(a)==="virtual-keyboard"?(this.focus({preventScroll:!0}),window.mathVirtualKeyboard.executeCommand(a),requestAnimationFrame(()=>window.mathVirtualKeyboard.update($c(this))),!1):og(this,a)}get errors(){return t0(this.model.getValue(),{context:this.context})}getValue(a,y,b){return this.model.getValue(a,y,b)}setValue(a,y){var b;y=y!=null?y:{mode:"math"},y.insertionMode===void 0&&(y.insertionMode="replaceAll"),(y.format===void 0||y.format==="auto")&&(y.format="latex"),(y.mode===void 0||y.mode==="auto")&&(y.mode=(b=Cs(this.model,this.model.position))!=null?b:"math");const E=this.undoManager.canUndo();No.insert(this.model,a,y)&&(Ql(this),E||this.undoManager.reset(),this.undoManager.snapshot("set-value"))}get expression(){const a=window.MathfieldElement.computeEngine;return a?a.box(a.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 a;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 E=window.mathVirtualKeyboard.boundingRect,ee=this.host.getBoundingClientRect();ee.bottom>E.top&&((a=window.document.scrollingElement)==null||a.scrollBy(0,ee.bottom-E.top+8))}}this.dirty&&Ed(this,{interactive:!0});const y=this.field.getBoundingClientRect();let b=null;if(this.model.selectionIsCollapsed)b=hc(this.field);else{const E=Ts(this);if(E.length>0){let ee=-1/0,ie=-1/0;for(const oe of E)oe.right>ee&&(ee=oe.right),oe.top<ie&&(ie=oe.top);b={x:ee+y.left-this.field.scrollLeft,y:ie+y.top-this.field.scrollTop,height:0}}}if(this.host&&b){const E=this.host.getBoundingClientRect(),ee=b.y;let ie=this.host.scrollTop;ee<E.top?ie=ee-E.top+this.host.scrollTop:ee>E.bottom&&(ie=ee-E.bottom+this.host.scrollTop+b.height),this.host.scroll({top:ie,left:0})}if(b){const E=b.x-window.scrollX;let ee=this.field.scrollLeft;E<y.left?ee=E-y.left+this.field.scrollLeft-20:E>y.right&&(ee=E-y.right+this.field.scrollLeft+20),this.field.scroll({top:this.field.scrollTop,left:ee})}}insert(a,y){return typeof a!="string"||a.length===0&&((y==null?void 0:y.insertionMode)==="insertBefore"||(y==null?void 0:y.insertionMode)==="insertAfter")||a.length===0&&this.model.selectionIsCollapsed?!1:(this.flushInlineShortcutBuffer(),y=y!=null?y:{mode:"math"},y.focus&&this.focus(),y.feedback&&(window.MathfieldElement.keypressVibration&&Xe()&&navigator.vibrate(w0),window.MathfieldElement.playSound("keypress")),a==="\\\\"?P0(this.model):a==="&"?T0(this.model):this.model.selectionIsCollapsed?No.insert(this.model,a,we({style:this.model.at(this.model.position).computedStyle},y)):No.insert(this.model,a,y),this.snapshot(`insert-${this.model.at(this.model.position).type}`),Ql(this),y.scrollIntoView&&this.scrollIntoView(),!0)}switchMode(a,y="",b=""){var E;if(this.model.mode===a||!this.hasEditableContent||!this.contentEditable||this.disabled)return;const ee=this.model.mode;if(this.model.mode=a,!((E=this.host)!=null&&E.dispatchEvent(new Event("mode-change",{bubbles:!0,composed:!0,cancelable:!0})))){this.model.mode=ee;return}const ie=this.model.mode,{model:oe}=this;oe.deferNotifications({content:!!b||!!y,selection:!0,type:"insertText"},()=>{let ve=!1;if(this.flushInlineShortcutBuffer(),this.stopCoalescingUndo(),y&&a!=="latex"){const Ee=Au(y,{context:this.context,parseMode:a});oe.collapseSelection("forward");const Te=oe.at(oe.position);oe.position=oe.offsetOf(Te.parent.addChildrenAfter(Ee,Te)),ve=!0}if(this.model.mode=a,a==="latex"){let Ee=oe.selectionIsCollapsed;Kd(this,"accept");let Te,Ke=oe.at(oe.position);if(Ee)Te="\\";else{const Tt=kl(oe.selection);Te=this.model.getValue(Tt,"latex");const rn=this.model.extractAtoms(Tt);rn.length===1&&rn[0].type==="placeholder"&&(Te=y,Ee=!0),Ke=oe.at(Tt[0])}const pt=new af(Te);Ke.parent.addChildAfter(pt,Ke),Ee?oe.position=oe.offsetOf(pt.lastChild):oe.setSelection(oe.offsetOf(pt.firstChild),oe.offsetOf(pt.lastChild))}else hf(oe).forEach(Ee=>{Ee.isError=!1});if(b){const Ee=Au(b,{context:this.context,parseMode:ie});oe.collapseSelection("forward");const Te=oe.at(oe.position);oe.position=oe.offsetOf(Te.parent.addChildrenAfter(Ee,Te)),ve=!0}return Ql(this),this.undoManager.snapshot(a==="latex"?"insert-latex":"insert"),ve}),this.model.mode=a,window.mathVirtualKeyboard.update($c(this))}hasFocus(){return!this.blurred}focus(a){var y;this.hasFocus()||(this.keyboardDelegate.focus(),this.connectToVirtualKeyboard(),this.onFocus(),this.model.announce("line")),(y=a==null?void 0:a.preventScroll)!=null&&y||this.scrollIntoView()}blur(){this.disconnectFromVirtualKeyboard(),this.hasFocus()&&this.keyboardDelegate.blur()}select(){this.model.selection={ranges:[[0,this.model.lastOffset]]},this.focus()}applyStyle(a,y={}){var b,E;const ee={operation:"set",silenceNotifications:!1};Dc(y)?ee.range=y:(y.operation==="toggle"&&(ee.operation="toggle"),ee.range=y.range,ee.silenceNotifications=(b=y.silenceNotifications)!=null?b:!1);const ie=Nh(this,a),oe=(E=ee.operation)!=null?E:"set";if(ee.range===void 0&&this.model.selectionIsCollapsed){if(oe==="set"){this.defaultStyle=we(we({},this.defaultStyle),ie);return}const ve=we({},this.defaultStyle);for(const Ee of Object.keys(ie))ve[Ee]===ie[Ee]?(Ee==="color"&&delete ve.verbatimColor,Ee==="backgroundColor"&&delete ve.verbatimBackgroundColor,delete ve[Ee]):ve[Ee]=ie[Ee];this.defaultStyle=ve;return}this.model.deferNotifications({content:!ee.silenceNotifications,type:"insertText"},()=>{if(ee.range===void 0)for(const ve of this.model.selection.ranges)Mh(this.model,ve,ie,{operation:oe});else Mh(this.model,ee.range,ie,{operation:oe})}),Ql(this)}toggleContextMenu(){var a;return this._menu.visible?this._menu.state==="open"?(this._menu.hide(),!0):(this._menu.show({target:this.element.querySelector("[part=container]"),location:(a=this.getCaretPoint())!=null?a:void 0,onDismiss:()=>{var y;return(y=this.element)==null?void 0:y.focus()}}),!0):!1}getCaretPoint(){const a=hc(this.field);return a?{x:a.x,y:a.y}:null}setCaretPoint(a,y){const b=Sf(this,a,y,{bias:0});if(b<0)return!1;const E=this.model.position;return this.model.position=b,this.model.announce("move",E),Ql(this),!0}getPrompt(a){const y=this.model.findAtom(b=>b.type==="prompt"&&b.placeholderId===a);return console.assert(y!==void 0,"MathLive 0.98.5: no prompts with matching ID found"),y}getPromptValue(a,y){const b=this.getPrompt(a);if(!b)return"";const E=this.model.offsetOf(b.firstChild),ee=this.model.offsetOf(b.lastChild);return this.model.getValue(E,ee,y)}getPrompts(a){return this.model.getAllAtoms().filter(y=>y.type!=="prompt"?!1:a?!(a.id&&y.placeholderId!==a.id||a.locked&&y.locked!==a.locked||a.correctness==="undefined"&&y.correctness||a.correctness&&y.correctness!==a.correctness):!0).map(y=>y.placeholderId)}setPromptValue(a,y,b){if(y!==void 0){const E=this.getPrompt(a);if(!E){console.error(`MathLive 0.98.5: unknown prompt ${a}`);return}const ee=this.model.getBranchRange(this.model.offsetOf(E),"body");this.model.setSelection(ee),this.insert(y,pe(we({},b),{insertionMode:"replaceSelection"}))}b!=null&&b.silenceNotifications&&(this.valueOnFocus=this.getValue()),Ql(this)}setPromptState(a,y,b){const E=this.getPrompt(a);if(!E){console.error(`MathLive 0.98.5: unknown prompt ${a}`);return}y==="undefined"?E.correctness=void 0:typeof y=="string"&&(E.correctness=y),typeof b=="boolean"&&(E.locked=b,E.captureSelection=b),Ql(this)}getPromptState(a){const y=this.getPrompt(a);return y?[y.correctness,y.locked]:(console.error(`MathLive 0.98.5: unknown prompt ${a}`),[void 0,!0])}getPromptRange(a){const y=this.getPrompt(a);return y?this.model.getBranchRange(this.model.offsetOf(y),"body"):(console.error(`MathLive 0.98.5: unknown prompt ${a}`),[0,0])}canUndo(){return this.undoManager.canUndo()}canRedo(){return this.undoManager.canRedo()}popUndoStack(){this.undoManager.pop()}snapshot(a){var y;this.undoManager.snapshot(a)&&(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update($c(this)),(y=this.host)==null||y.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 a;this.undoManager.undo()&&(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update($c(this)),(a=this.host)==null||a.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"undo"}})))}redo(){var a;this.undoManager.redo()&&(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update($c(this)),(a=this.host)==null||a.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"undo"}})))}resetUndo(){var a;(a=this.undoManager)==null||a.reset()}onSelectionDidChange(){var a,y;const b=this.model;this.keyboardDelegate.setValue(b.getValue(this.model.selection,"latex-expanded"));{const E=b.at(b.position),ee=(a=E.mode)!=null?a:L0(this.options);this.model.mode!==ee&&(this.model.mode==="latex"?(Kd(this,"accept",{mode:ee}),b.position=b.offsetOf(E)):this.switchMode(ee))}(y=this.host)==null||y.dispatchEvent(new Event("selection-change",{bubbles:!0,composed:!0})),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update($c(this)),ih(this)}onContentWillChange(a){var y,b,E;return(E=(b=this.host)==null?void 0:b.dispatchEvent(new InputEvent("beforeinput",pe(we({},a),{data:a.data?a.data:(y=a.inputType)!=null?y:"",cancelable:!0,bubbles:!0,composed:!0}))))!=null?E:!0}onFocus(){this.focusBlurInProgress||!this.blurred||(this.focusBlurInProgress=!0,this.blurred=!1,this.keyboardDelegate.focus(),this.stopCoalescingUndo(),Ed(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 a,y,b;if(this.focusBlurInProgress||this.blurred)return;this.focusBlurInProgress=!0,this.stopCoalescingUndo(),this.blurred=!0,this.ariaLiveText.textContent="",Hd(this),this.model.getValue()!==this.valueOnFocus&&((a=this.host)==null||a.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),this.disconnectFromVirtualKeyboard(),(y=this.host)==null||y.dispatchEvent(new Event("blur",{bubbles:!1,composed:!0})),(b=this.host)==null||b.dispatchEvent(new UIEvent("focusout",{bubbles:!0,composed:!0})),Ql(this),this.focusBlurInProgress=!1,_h();const E=new AbortController,ee=E.signal;document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&document.addEventListener("visibilitychange",()=>{ec(this)&&document.visibilityState==="visible"&&this.focus({preventScroll:!0})},{once:!0,signal:ee})},{once:!0,signal:ee}),setTimeout(()=>E.abort(),100)}onInput(a){Ph(this,a)}onKeystroke(a){return K0(this,a)}onCompositionStart(a){this.model.deleteAtoms(kl(this.model.selection));const y=hc(this.field);y&&requestAnimationFrame(()=>{Ed(this),this.keyboardDelegate.moveTo(y.x,y.y-y.height)})}onCompositionUpdate(a){Ag(this.model,a),Ql(this)}onCompositionEnd(a){Lg(this.model),Ph(this,a,{simulateKeystroke:!0})}onCut(a){if(!this.isSelectionEditable){this.model.announce("plonk");return}this.model.contentWillChange({inputType:"deleteByCut"})&&(this.stopCoalescingUndo(),No.onCopy(this,a),Hc(this.model,kl(this.model.selection),"deleteByCut"),this.snapshot("cut"),Ql(this))}onCopy(a){No.onCopy(this,a)}onPaste(a){let y=this.isSelectionEditable;return y&&(y=No.onPaste(this.model.at(this.model.position).mode,this,a.clipboardData)),y||this.model.announce("plonk"),a.preventDefault(),a.stopPropagation(),y}onGeometryChange(){this._menu.hide(),Ff(this),ih(this)}onWheel(a){const y=5*a.deltaX;if(!Number.isFinite(y)||y===0)return;const b=this.field;y<0&&b.scrollLeft===0||y>0&&b.offsetWidth+b.scrollLeft>=b.scrollWidth||(b.scrollBy({top:0,left:y}),a.preventDefault(),a.stopPropagation())}getHTMLElement(a){let y=a;for(;!y.id&&y.hasChildren;)y=a.children[0];return this.field.querySelector(`[data-atom-id="${y.id}"]`)}get context(){var a,y;return{registers:(a=this.options.registers)!=null?a:{},smartFence:this.smartFence,letterShapeStyle:this.letterShapeStyle,minFontScale:this.minFontScale,placeholderSymbol:(y=this.options.placeholderSymbol)!=null?y:"\u25A2",colorMap:b=>this.colorMap(b),backgroundColorMap:b=>this.backgroundColorMap(b),getMacro:b=>er(b,this.options.macros),atomIdsSettings:{seed:"random",groupNumbers:!1}}}};function gp(a){if(a&&(a.classList.remove("ML__highlight"),a.children))for(const y of a.children)gp(y)}function qh(a,y){var b;a&&(!y||((b=a.dataset)==null?void 0:b.atomId)===y?(a.classList.add("ML__highlight"),a.children&&a.children.length>0&&[...a.children].forEach(E=>{E instanceof HTMLElement&&qh(E)})):(a.classList.remove("ML__highlight"),a.children&&a.children.length>0&&[...a.children].forEach(E=>{E instanceof HTMLElement&&qh(E,y)})))}function h1(a,y){var b;if(!qe())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(y);return}if(!window.AWS){console.error("MathLive 0.98.5: AWS SDK not loaded. See https://www.npmjs.com/package/aws-sdk");return}const E=new window.AWS.Polly({apiVersion:"2016-06-10"}),ee={OutputFormat:"json",VoiceId:(b=window.MathfieldElement.speechEngineVoice)!=null?b:"Joanna",Engine:"standard",Text:y,TextType:"ssml",SpeechMarkTypes:["ssml"]};md().readAloudElement=a,E.synthesizeSpeech(ee,(ie,oe)=>{if(ie){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${ie}`);return}if(!(oe!=null&&oe.AudioStream)){console.log("polly.synthesizeSpeech():",oe);return}const ve=new TextDecoder("utf-8").decode(new Uint8Array(oe.AudioStream));md().readAloudMarks=ve.split(`
`).map(Ee=>Ee?JSON.parse(Ee):{}),md().readAloudTokens=[];for(const Ee of md().readAloudMarks)Ee.value&&md().readAloudTokens.push(Ee.value);md().readAloudCurrentMark="",ee.OutputFormat="mp3",ee.SpeechMarkTypes=[],E.synthesizeSpeech(ee,(Ee,Te)=>{if(Ee){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech("${y}") error:${Ee}`);return}if(!(Te!=null&&Te.AudioStream))return;const Ke=new Uint8Array(Te.AudioStream),pt=new Blob([Ke.buffer],{type:"audio/mpeg"}),Tt=URL.createObjectURL(pt),rn=md();rn.readAloudAudio?rn.readAloudAudio.pause():(rn.readAloudAudio=new Audio,rn.readAloudAudio.addEventListener("ended",()=>{const pn=rn.readAloudMathfield;rn.readAloudStatus="ended",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),pn?(Ed(pn),rn.readAloudElement=null,rn.readAloudMathfield=null,rn.readAloudTokens=[],rn.readAloudMarks=[],rn.readAloudCurrentMark=""):gp(rn.readAloudElement)}),rn.readAloudAudio.addEventListener("timeupdate",()=>{let pn="";const _r=rn.readAloudAudio.currentTime*1e3+100;for(const Ai of rn.readAloudMarks)Ai.time<_r&&(pn=Ai.value);rn.readAloudCurrentMark!==pn&&(rn.readAloudCurrentToken=pn,pn&&pn===rn.readAloudFinalToken?rn.readAloudAudio.pause():(rn.readAloudCurrentMark=pn,qh(rn.readAloudElement,rn.readAloudCurrentMark)))})),rn.readAloudAudio.src=Tt,rn.readAloudStatus="playing",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),rn.readAloudAudio.play()})})}qe()||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 $s=new WeakMap,p1=.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 = ..."},Ou=class Od extends HTMLElement{static get formAssociated(){return ef()}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(y){y!==this._fontsDirectory&&(this._fontsDirectory=y,ng())}get fontsDirectory(){throw new Error("Use MathfieldElement.fontsDirectory instead")}set fontsDirectory(y){throw new Error("Use MathfieldElement.fontsDirectory instead")}static get soundsDirectory(){return this._soundsDirectory}static set soundsDirectory(y){this._soundsDirectory=y,this.audioBuffers={}}get soundsDirectory(){throw new Error("Use MathfieldElement.soundsDirectory instead")}set soundsDirectory(y){throw new Error("Use MathfieldElement.soundsDirectory instead")}static get keypressSound(){return this._keypressSound}static set keypressSound(y){var b,E,ee;this.audioBuffers={},y===null?this._keypressSound={spacebar:null,return:null,delete:null,default:null}:typeof y=="string"?this._keypressSound={spacebar:y,return:y,delete:y,default:y}:typeof y=="object"&&"default"in y&&(this._keypressSound={spacebar:(b=y.spacebar)!=null?b:y.default,return:(E=y.return)!=null?E:y.default,delete:(ee=y.delete)!=null?ee:y.default,default:y.default})}static get plonkSound(){return this._plonkSound}static set plonkSound(y){this.audioBuffers={},this._plonkSound=y}static get audioContext(){return this._audioContext||(this._audioContext=new AudioContext),this._audioContext}static get speechEngine(){return this._speechEngine}static set speechEngine(y){this._speechEngine=y}static get speechEngineRate(){return this._speechEngineRate}static set speechEngineRate(y){this._speechEngineRate=y}static get speechEngineVoice(){return this._speechEngineVoice}static set speechEngineVoice(y){this._speechEngineVoice=y}static get textToSpeechMarkup(){return this._textToSpeechMarkup}static set textToSpeechMarkup(y){this._textToSpeechMarkup=y}static get textToSpeechRules(){return this._textToSpeechRules}static set textToSpeechRules(y){this._textToSpeechRules=y}static get textToSpeechRulesOptions(){return this._textToSpeechRulesOptions}static set textToSpeechRulesOptions(y){this._textToSpeechRulesOptions=y}static get locale(){return ot.locale}static set locale(y){y==="auto"&&(y=navigator.language.slice(0,5)),ot.locale=y}get locale(){throw new Error("Use MathfieldElement.locale instead")}set locale(y){throw new Error("Use MathfieldElement.locale instead")}static get strings(){return ot.strings}static set strings(y){ot.merge(y)}get strings(){throw new Error("Use MathfieldElement.strings instead")}set strings(y){throw new Error("Use MathfieldElement.strings instead")}static get decimalSeparator(){return this._decimalSeparator}static set decimalSeparator(y){this._decimalSeparator=y,this._computeEngine&&(this._computeEngine.latexOptions.decimalMarker=this.decimalSeparator===","?"{,}":".")}get decimalSeparator(){throw new Error("Use MathfieldElement.decimalSeparator instead")}set decimalSeparator(y){throw new Error("Use MathfieldElement.decimalSeparator instead")}static get computeEngine(){var y,b;if(this._computeEngine===void 0){const E=(y=window[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:y.ComputeEngine;if(!E)return null;this._computeEngine=new E,this._computeEngine&&this.decimalSeparator===","&&(this._computeEngine.latexOptions.decimalMarker="{,}")}return(b=this._computeEngine)!=null?b:null}static set computeEngine(y){this._computeEngine=y}get computeEngine(){throw new Error("Use MathfieldElement.computeEngine instead")}set computeEngine(y){throw new Error("Use MathfieldElement.computeEngine instead")}static get isFunction(){return typeof this._isFunction!="function"?()=>!1:this._isFunction}static set isFunction(y){this._isFunction=y}static loadSound(y){return gd(this,null,function*(){delete this.audioBuffers[y];let b="";switch(y){case"keypress":b=this._keypressSound.default;break;case"return":b=this._keypressSound.return;break;case"spacebar":b=this._keypressSound.spacebar;break;case"delete":b=this._keypressSound.delete;break;case"plonk":b=this.plonkSound;break}if(typeof b!="string")return;b=b.trim();const E=this.soundsDirectory;if(!(E==null||E==="null"||b==="none"||b==="null"))try{const ie=yield(yield fetch(yield x0(`${E}/${b}`))).arrayBuffer(),oe=yield this.audioContext.decodeAudioData(ie);this.audioBuffers[y]=oe}catch(ee){}})}static playSound(y){return gd(this,null,function*(){if((this.audioContext.state==="suspended"||this.audioContext.state==="interrupted")&&(yield this.audioContext.resume()),this.audioBuffers[y]||(yield this.loadSound(y)),!this.audioBuffers[y])return;const b=this.audioContext.createBufferSource();b.buffer=this.audioBuffers[y];const E=this.audioContext.createGain();E.gain.value=p1,b.connect(E).connect(this.audioContext.destination),b.start()})}constructor(y){if(super(),y){const b=[];for(const E of Object.keys(y))if(pd[E])if(pd[E].startsWith("mf."))if(pd[E].startsWith(`mf.${E}`))b.push(`Option \`${E}\` cannot be used as a constructor option. Use ${pd[E]}`);else{const ee=pd[E].match(/([a-zA-Z]+) =/);b.push(`Option \`${E}\` has been renamed \`${ee[1]}\``)}else b.push(`Option \`${E}\` cannot be used as a constructor option. Use ${pd[E]}`);if(b.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 E of b)console.warn(E);console.groupEnd()}}if(ef()&&(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=[cd("core"),cd("mathfield"),cd("mathfield-element"),cd("ui"),cd("menu")],this.shadowRoot.appendChild(document.createElement("span"));const b=document.createElement("slot");b.style.display="none",this.shadowRoot.appendChild(b)}else this.shadowRoot.innerHTML="<style>"+qc("core")+qc("mathfield")+qc("mathfield-element")+qc("ui")+qc("menu")+'</style><span></span><slot style="display:none"></slot>';y&&this._setOptions(y),this.shadowRoot.addEventListener("slotchange",()=>{var b;const E=this.shadowRoot.querySelector("slot:not([name])");this.value=(b=E==null?void 0:E.assignedNodes().map(ee=>ee.nodeType===3?ee.textContent:"").join("").trim())!=null?b:""})}showMenu(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.showMenu(y))!=null?E:!1}get mathVirtualKeyboard(){throw new Error("The `mathVirtualKeyboard` property is not available on the MathfieldElement. Use `window.mathVirtualKeyboard` instead.")}onPointerDown(){window.addEventListener("pointerup",y=>{var b;y.target===this&&!((b=this._mathfield)!=null&&b.disabled)&&this.dispatchEvent(new MouseEvent("click",{altKey:y.altKey,button:y.button,buttons:y.buttons,clientX:y.clientX,clientY:y.clientY,ctrlKey:y.ctrlKey,metaKey:y.metaKey,movementX:y.movementX,movementY:y.movementY,relatedTarget:y.relatedTarget,screenX:y.screenX,screenY:y.screenY,shiftKey:y.shiftKey}))},{once:!0})}getPromptValue(y,b){var E,ee;return(ee=(E=this._mathfield)==null?void 0:E.getPromptValue(y,b))!=null?ee:""}setPromptValue(y,b,E){var ee;(ee=this._mathfield)==null||ee.setPromptValue(y,b,E)}getPromptRange(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.getPromptRange(y))!=null?E:null}getPrompts(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.getPrompts(y))!=null?E:[]}get form(){var y;return(y=this._internals)==null?void 0:y.form}get name(){var y;return(y=this.getAttribute("name"))!=null?y:""}get type(){return this.localName}get mode(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.model.mode)!=null?b:this.defaultMode==="text"?"text":"math"}set mode(y){var b;(b=this._mathfield)==null||b.switchMode(y)}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(y){var b,E;if(!this._mathfield)return;const ee=(E=(b=Od.computeEngine)==null?void 0:b.box(y).latex)!=null?E:null;ee!==null&&this._mathfield.setValue(ee),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 y,b;return(b=(y=this._mathfield)==null?void 0:y.errors)!=null?b:[]}_getOptions(y){return this._mathfield?kd(this._mathfield.options,y):$s.has(this)?we({},kd(we(we({},Vf()),Uf($s.get(this).options)),y)):null}getOptions(y){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?kd(this._mathfield.options,y):$s.has(this)?kd(we(we({},Vf()),Uf($s.get(this).options)),y):null}reflectAttributes(){const y=Vf(),b=this._getOptions();Object.keys(Od.optionsAttributes).forEach(E=>{const ee=rd(E);Od.optionsAttributes[E]==="on/off"?y[ee]!==b[ee]?this.setAttribute(E,b[ee]?"on":"off"):this.removeAttribute(E):y[ee]!==b[ee]&&(Od.optionsAttributes[E]==="boolean"?b[ee]?this.setAttribute(E,""):this.removeAttribute(E):(typeof b[ee]=="string"||typeof b[ee]=="number")&&this.setAttribute(E,b[ee].toString()))})}getOption(y){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([y])[y]}_getOption(y){return this._getOptions([y])[y]}_setOptions(y){if(this._mathfield)this._mathfield.setOptions(y);else if($s.has(this)){const b=we(we({},$s.get(this).options),y);$s.set(this,pe(we({},$s.get(this)),{selection:{ranges:b.readOnly?[[0,0]]:[[0,-1]]},options:b}))}else $s.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:y,menuItems:void 0});this.reflectAttributes()}setOptions(y){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 b of Object.keys(y))pd[b]&&console.warn(`\`mf.setOptions({${b}:...})\` -> ${pd[b]}`);console.groupEnd(),this._setOptions(y)}executeCommand(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.executeCommand(y))!=null?E:!1}getValue(y,b,E){var ee,ie;if(this._mathfield)return this._mathfield.model.getValue(y,b,E);if($s.has(this)){let oe,ve,Ee;if(Oc(y)?([oe,ve]=y.ranges[0],Ee=b):Dc(y)?([oe,ve]=y,Ee=b):bu(y)&&bu(b)?(oe=y,ve=b,Ee=E):(oe=0,ve=-1,Ee=y),(Ee===void 0||Ee==="latex")&&oe===0&&ve===-1)return(ie=(ee=$s.get(this).value)!=null?ee:this.textContent)!=null?ie:""}return""}setValue(y,b){if(this._mathfield&&y!==void 0){b!=null||(b={silenceNotifications:!0,mode:"math"}),this._mathfield.setValue(y,b);return}if($s.has(this)){const ee=$s.get(this).options;$s.set(this,{value:y,selection:{ranges:[[-1,-1]],direction:"forward"},options:ee,menuItems:void 0});return}const E=Af(this);$s.set(this,{value:y,selection:{ranges:[[-1,-1]],direction:"forward"},options:E,menuItems:void 0})}hasFocus(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.hasFocus())!=null?b:!1}focus(){var y;(y=this._mathfield)==null||y.focus()}blur(){var y;(y=this._mathfield)==null||y.blur()}select(){var y;(y=this._mathfield)==null||y.select()}insert(y,b){var E,ee;return(ee=(E=this._mathfield)==null?void 0:E.insert(y,b))!=null?ee:!1}applyStyle(y,b){var E;return(E=this._mathfield)==null?void 0:E.applyStyle(y,b)}queryStyle(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.queryStyle(y))!=null?E:"none"}get caretPoint(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.getCaretPoint())!=null?b:null}set caretPoint(y){var b;y&&((b=this._mathfield)==null||b.setCaretPoint(y.x,y.y))}setCaretPoint(y,b){var E,ee;return(ee=(E=this._mathfield)==null?void 0:E.setCaretPoint(y,b))!=null?ee:!1}offsetFromPoint(y,b,E){return this._mathfield?Sf(this._mathfield,y,b,E):-1}hitboxFromOffset(y){if(!this._mathfield)return null;const b=this._mathfield.model.at(y);if(!b)return null;const E=Ac(this._mathfield,b);return E?new DOMRect(E.left,E.top,E.right-E.left,E.bottom-E.top):null}resetUndo(){var y;(y=this._mathfield)==null||y.resetUndo()}canUndo(){return this._mathfield?this._mathfield.canUndo():!1}canRedo(){return this._mathfield?this._mathfield.canRedo():!1}handleEvent(y){var b,E,ee,ie;Fc.state==="closed"&&((E=(b=this._mathfield)==null?void 0:b.menu)==null?void 0:E.state)==="closed"&&(y.type==="pointerdown"&&this.onPointerDown(),y.type==="focus"&&((ee=this._mathfield)==null||ee.focus()),y.type==="blur"&&((ie=this._mathfield)==null||ie.blur()))}connectedCallback(){var y,b,E,ee;const ie=window.getComputedStyle(this),oe=this.shadowRoot,ve=ie.userSelect!=="none";if(ve)oe.host.addEventListener("pointerdown",this,!0);else{const Ke=oe.querySelector("span");Ke.style.pointerEvents="none"}oe.host.addEventListener("focus",this,!0),oe.host.addEventListener("blur",this,!0),ef()||(this.hasAttribute("role")||this.setAttribute("role","math"),this.hasAttribute("aria-label")||this.setAttribute("aria-label","math input field"),this.setAttribute("aria-multiline","false")),ve&&!this.hasAttribute("contenteditable")&&this.setAttribute("contenteditable","true"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0");const Ee=oe.querySelector("slot:not([name])");if(Ee)try{this._style=Ee.assignedElements().filter(Ke=>Ke.tagName.toLowerCase()==="style").map(Ke=>Ke.textContent).join("")}catch(Ke){console.error(Ke)}if(this._style){const Ke=document.createElement("style");Ke.textContent=this._style,oe.appendChild(Ke)}let Te="";if(this.hasAttribute("value")?Te=this.getAttribute("value"):Te=(y=Ee==null?void 0:Ee.assignedNodes().map(Ke=>Ke.nodeType===3?Ke.textContent:"").join("").trim())!=null?y:"",this._mathfield=new f1(oe.querySelector(":host > span"),pe(we({},(E=(b=$s.get(this))==null?void 0:b.options)!=null?E:Af(this)),{eventSink:this,value:Te})),!$s.has(this)){this.upgradeProperty("disabled"),this.upgradeProperty("readonly");for(const Ke of Object.keys(Od.optionsAttributes))this.upgradeProperty(rd(Ke))}if(!((ee=this._mathfield)!=null&&ee.model)){this._mathfield=null;return}if($s.has(this)){const Ke=this._mathfield,pt=$s.get(this),Tt=pt.menuItems;Ke.model.deferNotifications({content:!1,selection:!1},()=>{const rn=pt.value;rn!==void 0&&Ke.setValue(rn),Ke.model.selection=pt.selection,$s.delete(this)}),Tt&&(this.menuItems=Tt)}window.queueMicrotask(()=>{this.isConnected&&this.dispatchEvent(new Event("mount",{cancelable:!1,bubbles:!0,composed:!0}))}),zf()}disconnectedCallback(){var y,b;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 E=kd(this._mathfield.options,Object.keys(Od.optionsAttributes).map(ee=>rd(ee)));$s.set(this,{value:this._mathfield.getValue(),selection:this._mathfield.model.selection,menuItems:(b=(y=this._mathfield.menu)==null?void 0:y.menuItems)!=null?b:void 0,options:E}),this._mathfield.dispose(),this._mathfield=null}upgradeProperty(y){if(this.hasOwnProperty(y)){const b=this[y];delete this[y],(y==="readonly"||y==="read-only")&&(y="readOnly"),this[y]=b}}attributeChangedCallback(y,b,E){if(b===E)return;const ee=E!==null;switch(y){case"contenteditable":Ql(this._mathfield);break;case"disabled":this.disabled=ee;break;case"read-only":case"readonly":this.readOnly=ee;break;default:}}get readonly(){return this.hasAttribute("readonly")||this.hasAttribute("read-only")}set readonly(y){const b=!!y;b?(this.setAttribute("readonly",""),ef()?this._internals.ariaReadOnly="true":this.setAttribute("aria-readonly","true"),this.setAttribute("aria-readonly","true")):(ef()?this._internals.ariaReadOnly="false":this.removeAttribute("aria-readonly"),this.removeAttribute("readonly"),this.removeAttribute("read-only")),this._setOptions({readOnly:b})}get disabled(){return this.hasAttribute("disabled")}set disabled(y){var b;const E=!!y;E?this.setAttribute("disabled",""):this.removeAttribute("disabled"),ef()?this._internals.ariaDisabled=E?"true":"false":this.setAttribute("aria-disabled",E?"true":"false"),E&&((b=this._mathfield)!=null&&b.hasFocus)&&window.mathVirtualKeyboard.visible&&this._mathfield.executeCommand("hideVirtualKeyboard")}get value(){return this.getValue()}set value(y){this.setValue(y)}get defaultMode(){return this._getOption("defaultMode")}set defaultMode(y){this._setOptions({defaultMode:y})}get macros(){return this._getOption("macros")}set macros(y){this._setOptions({macros:y})}get registers(){const y=this;return new Proxy({},{get:(b,E)=>{if(typeof E=="string")return y._getOption("registers")[E]},set(b,E,ee){return typeof E!="string"?!1:(y._setOptions({registers:pe(we({},y._getOption("registers")),{[E]:ee})}),!0)}})}set registers(y){this._setOptions({registers:y})}get colorMap(){return this._getOption("colorMap")}set colorMap(y){this._setOptions({colorMap:y})}get backgroundColorMap(){return this._getOption("backgroundColorMap")}set backgroundColorMap(y){this._setOptions({backgroundColorMap:y})}get letterShapeStyle(){return this._getOption("letterShapeStyle")}set letterShapeStyle(y){this._setOptions({letterShapeStyle:y})}get minFontScale(){return this._getOption("minFontScale")}set minFontScale(y){this._setOptions({minFontScale:y})}get smartMode(){return this._getOption("smartMode")}set smartMode(y){this._setOptions({smartMode:y})}get smartFence(){return this._getOption("smartFence")}set smartFence(y){this._setOptions({smartFence:y})}get smartSuperscript(){return this._getOption("smartSuperscript")}set smartSuperscript(y){this._setOptions({smartSuperscript:y})}get scriptDepth(){return this._getOption("scriptDepth")}set scriptDepth(y){this._setOptions({scriptDepth:y})}get removeExtraneousParentheses(){return this._getOption("removeExtraneousParentheses")}set removeExtraneousParentheses(y){this._setOptions({removeExtraneousParentheses:y})}get mathModeSpace(){return this._getOption("mathModeSpace")}set mathModeSpace(y){this._setOptions({mathModeSpace:y})}get placeholderSymbol(){return this._getOption("placeholderSymbol")}set placeholderSymbol(y){this._setOptions({placeholderSymbol:y})}get popoverPolicy(){return this._getOption("popoverPolicy")}set popoverPolicy(y){this._setOptions({popoverPolicy:y})}get environmentPopoverPolicy(){return this._getOption("environmentPopoverPolicy")}set environmentPopoverPolicy(y){this._setOptions({environmentPopoverPolicy:y})}get menuItems(){var y,b,E;return this._mathfield?(y=this._mathfield.menu._menuItems.map(ee=>ee.menuItem))!=null?y:[]:(E=(b=$s.get(this))==null?void 0:b.menuItems)!=null?E:[]}set menuItems(y){var b;if(this._mathfield){const E=(b=this._mathfield.element)==null?void 0:b.querySelector("[part=menu-toggle]");E&&(E.style.display=y.length===0?"none":""),this._mathfield.menu.menuItems=y}$s.has(this)?$s.set(this,pe(we({},$s.get(this)),{menuItems:y})):$s.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:Af(this),menuItems:y})}get mathVirtualKeyboardPolicy(){return this._getOption("mathVirtualKeyboardPolicy")}set mathVirtualKeyboardPolicy(y){this._setOptions({mathVirtualKeyboardPolicy:y})}get inlineShortcuts(){return this._getOption("inlineShortcuts")}set inlineShortcuts(y){this._setOptions({inlineShortcuts:y})}get inlineShortcutTimeout(){return this._getOption("inlineShortcutTimeout")}set inlineShortcutTimeout(y){this._setOptions({inlineShortcutTimeout:y})}get keybindings(){return this._getOption("keybindings")}set keybindings(y){this._setOptions({keybindings:y})}get onInlineShortcut(){return this._getOption("onInlineShortcut")}set onInlineShortcut(y){this._setOptions({onInlineShortcut:y})}get onScrollIntoView(){return this._getOption("onScrollIntoView")}set onScrollIntoView(y){this._setOptions({onScrollIntoView:y})}get onExport(){return this._getOption("onExport")}set onExport(y){this._setOptions({onExport:y})}get readOnly(){return this._getOption("readOnly")}set readOnly(y){this._setOptions({readOnly:y})}get isSelectionEditable(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.isSelectionEditable)!=null?b:!1}setPromptState(y,b,E){var ee;(ee=this._mathfield)==null||ee.setPromptState(y,b,E)}getPromptState(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.getPromptState(y))!=null?E:[void 0,!0]}get virtualKeyboardTargetOrigin(){return this._getOption("virtualKeyboardTargetOrigin")}set virtualKeyboardTargetOrigin(y){this._setOptions({virtualKeyboardTargetOrigin:y})}get selection(){return this._mathfield?this._mathfield.model.selection:$s.has(this)?$s.get(this).selection:{ranges:[[0,0]],direction:"forward"}}set selection(y){if(typeof y=="number"&&(y={ranges:[[y,y]]}),this._mathfield){this._mathfield.model.selection=y,Ql(this._mathfield);return}if($s.has(this)){$s.set(this,pe(we({},$s.get(this)),{selection:y}));return}$s.set(this,{value:void 0,selection:y,options:Af(this),menuItems:void 0})}get selectionIsCollapsed(){const y=this.selection;return y.ranges.length===1&&y.ranges[0][0]===y.ranges[0][1]}get position(){return this._mathfield?this._mathfield.model.position:$s.has(this)?$s.get(this).selection.ranges[0][0]:0}set position(y){if(this._mathfield&&(this._mathfield.model.position=y,Ql(this._mathfield)),$s.has(this)){$s.set(this,pe(we({},$s.get(this)),{selection:{ranges:[[y,y]]}}));return}$s.set(this,{value:void 0,selection:{ranges:[[y,y]]},options:Af(this),menuItems:void 0})}getOffsetDepth(y){var b,E;return this._mathfield?((E=(b=this._mathfield.model.at(y))==null?void 0:b.treeDepth)!=null?E:2)-2:0}get lastOffset(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.model.lastOffset)!=null?b:-1}};Ou.version="0.98.5",Ou._fontsDirectory="./fonts",Ou._soundsDirectory="./sounds",Ou.keypressVibration=!0,Ou._keypressSound={spacebar:"keypress-spacebar.wav",return:"keypress-return.wav",delete:"keypress-delete.wav",default:"keypress-standard.wav"},Ou._plonkSound="plonk.wav",Ou.audioBuffers={},Ou.createHTML=a=>a,Ou._speechEngineRate="100%",Ou._speechEngineVoice="Joanna",Ou._textToSpeechMarkup="",Ou._textToSpeechRules="mathlive",Ou._textToSpeechRulesOptions={},Ou.speakHook=r1,Ou.readAloudHook=h1,Ou._decimalSeparator=".",Ou.fractionNavigationOrder="numerator-denominator",Ou._isFunction=a=>{var y,b;const E=window.MathfieldElement.computeEngine;return(b=(y=E==null?void 0:E.parse(a).domain)==null?void 0:y.isFunction)!=null?b:!1};var Df=Ou;function rd(a){return a.replace(/[^a-zA-Z\d]+(.)/g,(y,b)=>b.toUpperCase())}function Af(a){const y={readOnly:!1},b=Df.optionsAttributes;return Object.keys(b).forEach(E=>{if(a.hasAttribute(E)){const ee=a.getAttribute(E);E==="placeholder"?y.contentPlaceholder=ee!=null?ee:"":b[E]==="boolean"?y[rd(E)]=!0:b[E]==="on/off"?ee==="on"?y[rd(E)]=!0:ee==="off"?y[rd(E)]=!1:y[rd(E)]=void 0:b[E]==="number"?y[rd(E)]=Number.parseFloat(ee!=null?ee:"0"):y[rd(E)]=ee}}),y}function ef(){return!(!("ElementInternals"in window)||!HTMLElement.prototype.attachInternals||!("role"in window.ElementInternals.prototype))}var vp=Df,yp,bp,xp,Sp;if(qe()&&!((yp=window.customElements)!=null&&yp.get("math-field"))){(xp=window[bp=Symbol.for("io.cortexjs.mathlive")])!=null||(window[bp]={});const a=window[Symbol.for("io.cortexjs.mathlive")];a.version="0.98.5",window.MathfieldElement=Df,(Sp=window.customElements)==null||Sp.define("math-field",Df)}function m1(a,y,b){let E=b,ee=0;const ie=a.length;for(;E<y.length;){const oe=y[E];if(ee<=0&&y.slice(E,E+ie)===a)return E;oe==="\\"?E++:oe==="{"?ee++:oe==="}"&&ee--,E++}return-1}function uh(a,y,b,E,ee="latex"){const ie=[];for(const oe of a)if(oe.type==="text"){const ve=oe.data;let Ee=!0,Te=0,Ke;Ke=ve.indexOf(y),Ke!==-1&&(Te=Ke,Te>0&&ie.push({type:"text",data:ve.slice(0,Te)}),Ee=!1);let pt=!1;for(;!pt;){if(Ee){if(Ke=ve.indexOf(y,Te),Ke===-1){pt=!0;break}Te!==Ke&&ie.push({type:"text",data:ve.slice(Te,Ke)}),Te=Ke}else{if(Ke=m1(b,ve,Te+y.length),Ke===-1){pt=!0;break}let Tt=ve.slice(Te+y.length,Ke);ee==="ascii-math"&&([,Tt]=js(Tt,{format:"ascii-math"})),ie.push({type:"math",data:Tt,rawData:ve.slice(Te,Ke+b.length),mathstyle:E}),Te=Ke+b.length}Ee=!Ee}Te<ve.length&&ie.push({type:"text",data:ve.slice(Te)})}else ie.push(oe);return ie}function wp(a,y,b){let E=[{type:"text",data:a}];return y!=null&&y.inline&&y.inline.forEach(([ee,ie])=>{E=uh(E,ee,ie,"textstyle")}),y!=null&&y.display&&y.display.forEach(([ee,ie])=>{E=uh(E,ee,ie,"displaystyle")}),b!=null&&b.inline&&b.inline.forEach(([ee,ie])=>{E=uh(E,ee,ie,"textstyle","ascii-math")}),b!=null&&b.display&&b.display.forEach(([ee,ie])=>{E=uh(E,ee,ie,"displaystyle","ascii-math")}),E}function g1(a,y){const b=document.createElement("span");b.setAttribute("translate","no");try{const E="<math xmlns='http://www.w3.org/1998/Math/MathML'>"+y.renderToMathML(a)+"</math>";b.innerHTML=window.MathfieldElement.createHTML(E)}catch(E){console.error(`MathLive 0.98.5: Could not convert "${a}"' to MathML with ${E}`),b.textContent=a}return b.className="ML__sr-only",b}function v1(a,y,b,E){try{const ee=y.renderToMarkup(a,{mathstyle:b,format:"html"}),ie=document.createElement("span");return ie.dataset.latex=a,ie.style.display=b==="displaystyle"?"flex":"inline-flex",ie.setAttribute("aria-hidden","true"),ie.setAttribute("translate","no"),ie.innerHTML=window.MathfieldElement.createHTML(ee),ie}catch(ee){if(console.error("Could not parse'"+a+"' with ",ee),E)return document.createTextNode(a)}return null}function tf(a,y,b,E){var ee;const ie=v1(a,b,y||"textstyle",E),oe=(ee=b.renderAccessibleContent)!=null?ee:"";if(ie&&/\b(mathml|speakable-text)\b/i.test(oe)){const ve=document.createElement("span");if(/\bmathml\b/i.test(oe)&&b.renderToMathML&&ve.append(g1(a,b)),/\bspeakable-text\b/i.test(oe)&&b.renderToSpeakableText){const Ee=document.createElement("span");Ee.setAttribute("translate","no");const Te=b.renderToSpeakableText(a);Ee.innerHTML=window.MathfieldElement.createHTML(Te),Ee.className="ML__sr-only",ve.append(Ee)}return ve.append(ie),ve}return ie}function y1(a,y){var b,E,ee;let ie=null;if((b=y.TeX)!=null&&b.processEnvironments&&/^\s*\\begin/.test(a)){ie=document.createDocumentFragment();const oe=tf(a,"",y,!0);oe&&ie.appendChild(oe)}else{if(!a.trim())return null;const oe=wp(a,(E=y.TeX)==null?void 0:E.delimiters,(ee=y.asciiMath)==null?void 0:ee.delimiters);if(oe.length===1&&oe[0].type==="text")return null;ie=document.createDocumentFragment();for(const ve of oe)if(ve.type==="text")ie.appendChild(document.createTextNode(ve.data));else{const Ee=tf(ve.data,ve.mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);Ee&&ie.appendChild(Ee)}}return ie}function Cp(a,y){var b,E,ee,ie,oe,ve,Ee,Te,Ke,pt,Tt,rn,pn,_r,Ai,Pr;if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const ui=(b=a.childNodes[0].textContent)!=null?b:"";if((E=y.TeX)!=null&&E.processEnvironments&&/^\s*\\begin/.test(ui)){a.textContent="";const pi=tf(ui,"",y,!0);pi&&a.append(pi);return}const Pi=wp(ui,(ee=y.TeX)==null?void 0:ee.delimiters,(ie=y.asciiMath)==null?void 0:ie.delimiters);if(Pi.length===1&&Pi[0].type==="math"){a.textContent="";const pi=tf(Pi[0].data,Pi[0].mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);pi&&a.append(pi);return}if(Pi.length===1&&Pi[0].type==="text")return}for(let ui=a.childNodes.length-1;ui>=0;ui--){const Pi=a.childNodes[ui];if(Pi.nodeType===3){const pi=y1((oe=Pi.textContent)!=null?oe:"",y);pi&&(ui+=pi.childNodes.length-1,Pi.replaceWith(pi))}else if(Pi.nodeType===1){const pi=Pi,Na=Pi.nodeName.toLowerCase();if(Na==="script"){const uo=Pi;let Ya;if((ve=y.processScriptTypePattern)!=null&&ve.test(uo.type))Ya=(Ee=uo.textContent)!=null?Ee:"";else if((Te=y.processMathJSONScriptTypePattern)!=null&&Te.test(uo.type))try{Ya=(pt=y.serializeToLatex)==null?void 0:pt.call(y,JSON.parse((Ke=uo.textContent)!=null?Ke:""))}catch(Ns){console.error(Ns)}if(Ya){let Ns="textstyle";for(const Wi of uo.type.split(";")){const[vc,Zc]=Wi.toLowerCase().split("=");vc.trim()==="mode"&&(Ns=Zc.trim()==="display"?"displaystyle":"textstyle")}const hl=tf(Ya,Ns,y,!0);hl&&uo.parentNode.replaceChild(hl,uo)}}else if(((rn=(Tt=y.processClassPattern)==null?void 0:Tt.test(pi.className))!=null?rn:!1)||!((_r=(pn=y.skipTags)==null?void 0:pn.includes(Na))!=null&&_r||(Pr=(Ai=y.ignoreClassPattern)==null?void 0:Ai.test(pi.className))!=null&&Pr))if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const Ya=a.textContent;a.textContent="";const Ns=tf(Ya!=null?Ya:"","displaystyle",y,!0);Ns&&a.append(Ns)}else Cp(pi,y)}}}var b1={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 x1(a,y){var b,E,ee,ie;try{const oe=we(we({},b1),y);oe.ignoreClassPattern=new RegExp((b=oe.ignoreClass)!=null?b:""),oe.processClassPattern=new RegExp((E=oe.processClass)!=null?E:""),oe.processScriptTypePattern=new RegExp((ee=oe.processScriptType)!=null?ee:""),oe.processMathJSONScriptTypePattern=new RegExp((ie=oe.processMathJSONScriptType)!=null?ie:""),zf(),uc("core"),Cp(a,oe)}catch(oe){oe instanceof Error?console.error("renderMathInElement(): "+oe.message):console.error("renderMathInElement(): Could not render math for element",a)}}function S1(a,y){const b=fd.singleton;return b?(b.show(),gf(),b.currentLayer=y,b.render(),b.focus(),!0):!1}function w1(){const a=window.mathVirtualKeyboard;return a.visible?a.hide({animate:!0}):a.show({animate:!0}),!1}cc({switchKeyboardLayer:S1,toggleVirtualKeyboard:w1,hideVirtualKeyboard:()=>(window.mathVirtualKeyboard.hide({animate:!0}),!1),showVirtualKeyboard:()=>(window.mathVirtualKeyboard.show({animate:!0}),!1)},{target:"virtual-keyboard"});function md(){var a,y;return(y=globalThis[a=Symbol.for("io.cortexjs.mathlive")])!=null||(globalThis[a]={}),globalThis[Symbol.for("io.cortexjs.mathlive")]}function P1(){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 T1(a){E1(document.body,a)}function C1(a){if(typeof a=="string"){const y=document.getElementById(a);if(y===null)throw new Error(`The element with ID "${a}" could not be found.`);return y}return typeof a=="string"?null:a}function E1(a,y){var b,E,ee,ie;const oe=C1(a);if(!oe)return;const ve=y!=null?y:{};(b=ve.renderToMarkup)!=null||(ve.renderToMarkup=Lu),(E=ve.renderToMathML)!=null||(ve.renderToMathML=Bv),(ee=ve.renderToSpeakableText)!=null||(ve.renderToSpeakableText=Fv),(ie=ve.serializeToLatex)!=null||(ve.serializeToLatex=_v),x1(oe,ve)}var I1={mathlive:"0.98.5"}},17423:function(Nn,Nt,te){"use strict";te.d(Nt,{Z:function(){return we}});const le=pe=>typeof pe=="object"&&pe!=null&&pe.nodeType===1,Me=(pe,Le)=>(!Le||pe!=="hidden")&&pe!=="visible"&&pe!=="clip",Ne=(pe,Le)=>{if(pe.clientHeight<pe.scrollHeight||pe.clientWidth<pe.scrollWidth){const nt=getComputedStyle(pe,null);return Me(nt.overflowY,Le)||Me(nt.overflowX,Le)||(Re=>{const We=(qe=>{if(!qe.ownerDocument||!qe.ownerDocument.defaultView)return null;try{return qe.ownerDocument.defaultView.frameElement}catch(lt){return null}})(Re);return!!We&&(We.clientHeight<Re.scrollHeight||We.clientWidth<Re.scrollWidth)})(pe)}return!1},Ue=(pe,Le,nt,Re,We,qe,lt,Xe)=>qe<pe&&lt>Le||qe>pe&&lt<Le?0:qe<=pe&&Xe<=nt||lt>=Le&&Xe>=nt?qe-pe-Re:lt>Le&&Xe<nt||qe<pe&&Xe>nt?lt-Le+We:0,be=pe=>{const Le=pe.parentElement;return Le==null?pe.getRootNode().host||null:Le},ke=(pe,Le)=>{var nt,Re,We,qe;if(typeof document=="undefined")return[];const{scrollMode:lt,block:Xe,inline:ye,boundary:vt,skipOverflowHiddenElements:Pt}=Le,ot=typeof vt=="function"?vt:In=>In!==vt;if(!le(pe))throw new TypeError("Invalid target");const ct=document.scrollingElement||document.documentElement,Se=[];let ce=pe;for(;le(ce)&&ot(ce);){if(ce=be(ce),ce===ct){Se.push(ce);break}ce!=null&&ce===document.body&&Ne(ce)&&!Ne(document.documentElement)||ce!=null&&Ne(ce,Pt)&&Se.push(ce)}const He=(Re=(nt=window.visualViewport)==null?void 0:nt.width)!=null?Re:innerWidth,je=(qe=(We=window.visualViewport)==null?void 0:We.height)!=null?qe:innerHeight,{scrollX:it,scrollY:at}=window,{height:Ge,width:Ae,top:wt,right:dt,bottom:$t,left:bt}=pe.getBoundingClientRect(),{top:Ot,right:Pn,bottom:$n,left:yt}=(In=>{const xt=window.getComputedStyle(In);return{top:parseFloat(xt.scrollMarginTop)||0,right:parseFloat(xt.scrollMarginRight)||0,bottom:parseFloat(xt.scrollMarginBottom)||0,left:parseFloat(xt.scrollMarginLeft)||0}})(pe);let Be=Xe==="start"||Xe==="nearest"?wt-Ot:Xe==="end"?$t+$n:wt+Ge/2-Ot+$n,Rt=ye==="center"?bt+Ae/2-yt+Pn:ye==="end"?dt+Pn:bt-yt;const Vn=[];for(let In=0;In<Se.length;In++){const xt=Se[In],{height:Mt,width:qt,top:an,right:ln,bottom:Yt,left:Cn}=xt.getBoundingClientRect();if(lt==="if-needed"&&wt>=0&&bt>=0&&$t<=je&&dt<=He&&wt>=an&&$t<=Yt&&bt>=Cn&&dt<=ln)return Vn;const pr=getComputedStyle(xt),Xn=parseInt(pr.borderLeftWidth,10),ze=parseInt(pr.borderTopWidth,10),fe=parseInt(pr.borderRightWidth,10),ue=parseInt(pr.borderBottomWidth,10);let xe=0,ge=0;const se="offsetWidth"in xt?xt.offsetWidth-xt.clientWidth-Xn-fe:0,Fe="offsetHeight"in xt?xt.offsetHeight-xt.clientHeight-ze-ue:0,st="offsetWidth"in xt?xt.offsetWidth===0?0:qt/xt.offsetWidth:0,en="offsetHeight"in xt?xt.offsetHeight===0?0:Mt/xt.offsetHeight:0;if(ct===xt)xe=Xe==="start"?Be:Xe==="end"?Be-je:Xe==="nearest"?Ue(at,at+je,je,ze,ue,at+Be,at+Be+Ge,Ge):Be-je/2,ge=ye==="start"?Rt:ye==="center"?Rt-He/2:ye==="end"?Rt-He:Ue(it,it+He,He,Xn,fe,it+Rt,it+Rt+Ae,Ae),xe=Math.max(0,xe+at),ge=Math.max(0,ge+it);else{xe=Xe==="start"?Be-an-ze:Xe==="end"?Be-Yt+ue+Fe:Xe==="nearest"?Ue(an,Yt,Mt,ze,ue+Fe,Be,Be+Ge,Ge):Be-(an+Mt/2)+Fe/2,ge=ye==="start"?Rt-Cn-Xn:ye==="center"?Rt-(Cn+qt/2)+se/2:ye==="end"?Rt-ln+fe+se:Ue(Cn,ln,qt,Xn,fe+se,Rt,Rt+Ae,Ae);const{scrollLeft:Sn,scrollTop:dn}=xt;xe=en===0?0:Math.max(0,Math.min(dn+xe/en,xt.scrollHeight-Mt/en+Fe)),ge=st===0?0:Math.max(0,Math.min(Sn+ge/st,xt.scrollWidth-qt/st+se)),Be+=dn-xe,Rt+=Sn-ge}Vn.push({el:xt,top:xe,left:ge})}return Vn},de=pe=>pe===!1?{block:"end",inline:"nearest"}:(Le=>Le===Object(Le)&&Object.keys(Le).length!==0)(pe)?pe:{block:"start",inline:"nearest"};function we(pe,Le){if(!pe.isConnected||!(We=>{let qe=We;for(;qe&&qe.parentNode;){if(qe.parentNode===document)return!0;qe=qe.parentNode instanceof ShadowRoot?qe.parentNode.host:qe.parentNode}return!1})(pe))return;const nt=(We=>{const qe=window.getComputedStyle(We);return{top:parseFloat(qe.scrollMarginTop)||0,right:parseFloat(qe.scrollMarginRight)||0,bottom:parseFloat(qe.scrollMarginBottom)||0,left:parseFloat(qe.scrollMarginLeft)||0}})(pe);if((We=>typeof We=="object"&&typeof We.behavior=="function")(Le))return Le.behavior(ke(pe,Le));const Re=typeof Le=="boolean"||Le==null?void 0:Le.behavior;for(const{el:We,top:qe,left:lt}of ke(pe,de(Le))){const Xe=qe-nt.top+nt.bottom,ye=lt-nt.left+nt.right;We.scroll({top:Xe,left:ye,behavior:Re})}}}}]);
}());