|
|
!(function(){var zc=Math.pow;var yu=(fn,Wt,oe)=>new Promise((ue,Ae)=>{var ke=Ee=>{try{be(oe.next(Ee))}catch(he){Ae(he)}},nt=Ee=>{try{be(oe.throw(Ee))}catch(he){Ae(he)}},be=Ee=>Ee.done?ue(Ee.value):Promise.resolve(Ee.value).then(ke,nt);be((oe=oe.apply(fn,Wt)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[7207],{89489:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return xe}});var ue=oe(60499),Ae=oe(59301),ke={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"},nt=ke,be=oe(7657),Ee=function(Pe,ct){return Ae.createElement(be.Z,(0,ue.Z)({},Pe,{ref:ct,icon:nt}))},he=Ae.forwardRef(Ee),xe=he},59477:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return xe}});var ue=oe(60499),Ae=oe(59301),ke={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"},nt=ke,be=oe(7657),Ee=function(Pe,ct){return Ae.createElement(be.Z,(0,ue.Z)({},Pe,{ref:ct,icon:nt}))},he=Ae.forwardRef(Ee),xe=he},40001:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return xe}});var ue=oe(60499),Ae=oe(59301),ke={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"},nt=ke,be=oe(7657),Ee=function(Pe,ct){return Ae.createElement(be.Z,(0,ue.Z)({},Pe,{ref:ct,icon:nt}))},he=Ae.forwardRef(Ee),xe=he},49198:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return xe}});var ue=oe(60499),Ae=oe(59301),ke={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"},nt=ke,be=oe(7657),Ee=function(Pe,ct){return Ae.createElement(be.Z,(0,ue.Z)({},Pe,{ref:ct,icon:nt}))},he=Ae.forwardRef(Ee),xe=he},84105:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return xe}});var ue=oe(60499),Ae=oe(59301),ke={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"},nt=ke,be=oe(7657),Ee=function(Pe,ct){return Ae.createElement(be.Z,(0,ue.Z)({},Pe,{ref:ct,icon:nt}))},he=Ae.forwardRef(Ee),xe=he},18785:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return xe}});var ue=oe(60499),Ae=oe(59301),ke={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"},nt=ke,be=oe(7657),Ee=function(Pe,ct){return Ae.createElement(be.Z,(0,ue.Z)({},Pe,{ref:ct,icon:nt}))},he=Ae.forwardRef(Ee),xe=he},73331:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return xe}});var ue=oe(60499),Ae=oe(59301),ke={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"},nt=ke,be=oe(7657),Ee=function(Pe,ct){return Ae.createElement(be.Z,(0,ue.Z)({},Pe,{ref:ct,icon:nt}))},he=Ae.forwardRef(Ee),xe=he},15277:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return xe}});var ue=oe(60499),Ae=oe(59301),ke={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"},nt=ke,be=oe(7657),Ee=function(Pe,ct){return Ae.createElement(be.Z,(0,ue.Z)({},Pe,{ref:ct,icon:nt}))},he=Ae.forwardRef(Ee),xe=he},52671:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return xe}});var ue=oe(60499),Ae=oe(59301),ke={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"},nt=ke,be=oe(7657),Ee=function(Pe,ct){return Ae.createElement(be.Z,(0,ue.Z)({},Pe,{ref:ct,icon:nt}))},he=Ae.forwardRef(Ee),xe=he},8657:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return xe}});var ue=oe(60499),Ae=oe(59301),ke={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"},nt=ke,be=oe(7657),Ee=function(Pe,ct){return Ae.createElement(be.Z,(0,ue.Z)({},Pe,{ref:ct,icon:nt}))},he=Ae.forwardRef(Ee),xe=he},56082:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return xe}});var ue=oe(60499),Ae=oe(59301),ke={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"},nt=ke,be=oe(7657),Ee=function(Pe,ct){return Ae.createElement(be.Z,(0,ue.Z)({},Pe,{ref:ct,icon:nt}))},he=Ae.forwardRef(Ee),xe=he},33853:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return xe}});var ue=oe(60499),Ae=oe(59301),ke={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"},nt=ke,be=oe(7657),Ee=function(Pe,ct){return Ae.createElement(be.Z,(0,ue.Z)({},Pe,{ref:ct,icon:nt}))},he=Ae.forwardRef(Ee),xe=he},15075:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return xe}});var ue=oe(60499),Ae=oe(59301),ke={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"},nt=ke,be=oe(7657),Ee=function(Pe,ct){return Ae.createElement(be.Z,(0,ue.Z)({},Pe,{ref:ct,icon:nt}))},he=Ae.forwardRef(Ee),xe=he},62772:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return xe}});var ue=oe(60499),Ae=oe(59301),ke={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"},nt=ke,be=oe(7657),Ee=function(Pe,ct){return Ae.createElement(be.Z,(0,ue.Z)({},Pe,{ref:ct,icon:nt}))},he=Ae.forwardRef(Ee),xe=he},43531:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return xe}});var ue=oe(60499),Ae=oe(59301),ke={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"},nt=ke,be=oe(7657),Ee=function(Pe,ct){return Ae.createElement(be.Z,(0,ue.Z)({},Pe,{ref:ct,icon:nt}))},he=Ae.forwardRef(Ee),xe=he},61485:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return xe}});var ue=oe(60499),Ae=oe(59301),ke={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"},nt=ke,be=oe(7657),Ee=function(Pe,ct){return Ae.createElement(be.Z,(0,ue.Z)({},Pe,{ref:ct,icon:nt}))},he=Ae.forwardRef(Ee),xe=he},38819:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return xe}});var ue=oe(60499),Ae=oe(59301),ke={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"},nt=ke,be=oe(7657),Ee=function(Pe,ct){return Ae.createElement(be.Z,(0,ue.Z)({},Pe,{ref:ct,icon:nt}))},he=Ae.forwardRef(Ee),xe=he},47472:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return xe}});var ue=oe(60499),Ae=oe(59301),ke={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"},nt=ke,be=oe(7657),Ee=function(Pe,ct){return Ae.createElement(be.Z,(0,ue.Z)({},Pe,{ref:ct,icon:nt}))},he=Ae.forwardRef(Ee),xe=he},87395:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return xe}});var ue=oe(60499),Ae=oe(59301),ke={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"},nt=ke,be=oe(7657),Ee=function(Pe,ct){return Ae.createElement(be.Z,(0,ue.Z)({},Pe,{ref:ct,icon:nt}))},he=Ae.forwardRef(Ee),xe=he},32050:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return xe}});var ue=oe(60499),Ae=oe(59301),ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 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:"upload",theme:"outlined"},nt=ke,be=oe(7657),Ee=function(Pe,ct){return Ae.createElement(be.Z,(0,ue.Z)({},Pe,{ref:ct,icon:nt}))},he=Ae.forwardRef(Ee),xe=he},14618:function(){"use strict"},66552:function(){"use strict"},18760:function(fn,Wt){"use strict";Wt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},3352: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 fn={},Wt="5.0",oe={},ue=null,Ae=!1,ke=!1,nt=null,be=!1,Ee=null,he=null,xe=0;xe<arguments.length;xe++){var Me=arguments[xe];if(Me!==null)switch(typeof Me){case"number":Wt=Me.toFixed(1);break;case"string":Me.match(new RegExp("^[0-9]\\.[0-9]+$"))?Wt=Me:nt=Me;break;case"object":typeof Me.is3D!="undefined"?ue=Me:oe=Me;break;case"boolean":Ae=Me,ke=!0;break}}ue===null&&(ue={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},oe.material_id!==void 0&&!ke&&(Ae=!0)),nt!==null&&oe.id===void 0&&(oe.id=nt);var Pe="",ct="",De=!1,Fe=null,et=null,We=null,je=!1,pt=null,rt=null,kt=null,ft=null,it=null;oe.height!==void 0&&(oe.height=Math.round(oe.height)),oe.width!==void 0&&(oe.width=Math.round(oe.width));var He=function(at){return parseFloat(at)>4?parseFloat(at):5};fn.setHTML5Codebase=function(at,lt){he=at,bt(at,lt)},fn.setJavaCodebase=fn.setJavaCodebaseVersion=fn.isCompiledInstalled=fn.setPreCompiledScriptPath=fn.setPreCompiledResourcePath=function(){},fn.setHTML5CodebaseVersion=function(at,lt){var Dt=parseFloat(at);if(Dt!==NaN&&Dt<5){console.log("The GeoGebra HTML5 codebase version "+Dt+" is deprecated. Using version latest instead.");return}Ee=at,ye(at,lt)},fn.getHTML5CodebaseVersion=function(){return et},fn.getParameters=function(){return oe},fn.setFontsCSSURL=function(at){ft=at},fn.setGiacJSURL=function(at){},fn.setJNLPFile=function(at){Pe=at},fn.setJNLPBaseDir=function(at){},fn.inject=function(){function at(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var lt="auto",Dt=oe.id,yn,$t=!1,hn=0;hn<arguments.length;hn++){var tn=arguments[hn];typeof tn=="string"?(tn=tn.toLowerCase(),tn.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?lt=tn:Dt=arguments[hn]):typeof tn=="boolean"?$t=tn:tn instanceof HTMLElement&&(yn=tn)}en();function en(){if(!be){setTimeout(en,200);return}lt=Tt(lt);var Gt=yn||document.getElementById(Dt);if(!Gt){console.log("possibly bug on ajax loading? ");return}if(fn.removeExistingApplet(Gt,!1),oe.width===void 0&&Gt.clientWidth&&(oe.width=Gt.clientWidth),oe.height===void 0&&Gt.clientHeight&&(oe.height=Gt.clientHeight),!(oe.width&&oe.height)&<==="html5"&&(delete oe.width,delete oe.height),Fe=lt,lt==="screenshot")Ge(Gt,oe);else{var ve=!1;oe.hasOwnProperty("playButton")&&oe.playButton||oe.hasOwnProperty("clickToLoad")&&oe.clickToLoad?ve=!0:oe.hasOwnProperty("playButtonAutoDecide")&&oe.playButtonAutoDecide&&(ve=(!Se()||at())&&Ke()),ve?(Fe="screenshot",wt(Gt,oe,$t,lt)):Mt(Gt,oe,$t)}}};function Se(){try{return window.self!==window.top}catch(at){return!0}}function Ke(){return oe.hasOwnProperty("screenshotGenerator")&&oe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}fn.getViews=function(){return ue},fn.isJavaInstalled=function(){return!1};var Ue=function(at){var lt=function(hn){var tn=JSON.parse(hn),en=function(ce){return ce.type=="G"||ce.type=="E"},Gt=tn.elements?tn.elements.filter(en)[0]:tn;if(!Gt||!Gt.url){Dt();return}oe.fileName=Gt.url,vt(Gt.settings||{}),ue.is3D=!0;var ve="https://www.geogebra.org/images/";fn.setPreviewImage(pt||Gt.previewUrl,ve+"GeoGebra_loading.png",ve+"applet_play.png"),at()},Dt=function(){oe.onError&&oe.onError(),Qt("Error: Fetching material (id "+oe.material_id+") failed.",oe)},yn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",$t="/materials/"+oe.material_id+"?scope=basic";Ye("https://"+yn+"/api/proxy.php?path="+encodeURIComponent($t),lt,Dt)};function vt(at){var lt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Dt){at[Dt]=!!at[Dt]}),lt.forEach(function(Dt){oe[Dt]===void 0&&at[Dt]!==void 0&&(oe[Dt]=at[Dt])}),oe.showToolBarHelp===void 0&&(oe.showToolBarHelp=oe.showToolBar)}function Ye(at,lt,Dt){var yn=new XMLHttpRequest;yn.open("GET",at),yn.onload=function(){lt(yn.responseText)},yn.onerror=Dt,yn.send()}fn.isHTML5Installed=function(){return!0},fn.getLoadedAppletType=function(){return Fe},fn.setPreviewImage=function(at,lt,Dt){pt=at,rt=lt,kt=Dt},fn.removeExistingApplet=function(at,lt){var Dt;typeof at=="string"&&(at=document.getElementById(at)),Fe=null;var yn=null;for(Dt=0;Dt<at.childNodes.length;Dt++){var $t=at.childNodes[Dt],hn=$t.className;hn==="applet_screenshot"?lt?($t.style.display="block",Fe="screenshot"):$t.style.display="none":hn!=="applet_scaler prerender"&&(at.removeChild($t),yn=hn&&hn.indexOf("appletParameters")!=-1?$t.id:null,Dt--)}var tn=oe.id!==void 0?oe.id:yn,en=window[tn];en&&typeof en.getBase64=="function"&&(en.remove(),window[tn]=null)},fn.refreshHitPoints=function(){if(He(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var at=fn.getAppletObject();return at&&typeof at.recalculateEnvironments=="function"?(at.recalculateEnvironments(),!0):!1},fn.startAnimation=function(){var at=fn.getAppletObject();return at&&typeof at.startAnimation=="function"?(at.startAnimation(),!0):!1},fn.stopAnimation=function(){var at=fn.getAppletObject();return at&&typeof at.stopAnimation=="function"?(at.stopAnimation(),!0):!1},fn.getAppletObject=function(){var at=oe.id!==void 0?oe.id:"ggbApplet";return window[at]},fn.resize=function(){};var st=function(at,lt,Dt){var yn=document.createElement("param");yn.setAttribute("name",lt),yn.setAttribute("value",Dt),at.appendChild(yn)},Ie=function(at){return at&&at!=="false"},Mt=function(at,lt,Dt){He(et)<=4.2&&(Dt=!0);var yn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==et||ggbHTML5LoadedCodebaseIsWebSimple&&!je)&&(yn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var $t=document.createElement("div");$t.classList.add("appletParameters","notranslate");var hn=lt.width,tn=lt.height;if(lt.disableAutoScale=lt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():lt.disableAutoScale,lt.width!==void 0)if(He(et)<=4.4)Ie(lt.showToolBar)&&(lt.height-=7),Ie(lt.showAlgebraInput)&&(lt.height-=37),lt.width<605&&Ie(lt.showToolBar)&&(lt.width=605,hn=605);else{var en=100;(Ie(lt.showToolBar)||Ie(lt.showMenuBar))&&(lt.hasOwnProperty("customToolBar")&&(lt.customToolbar=lt.customToolBar),en=Ie(lt.showMenuBar)?245:155),hn<en&&(lt.width=en,hn=en)}$t.style.border="none",$t.style.display="inline-block";for(var Gt in lt)lt.hasOwnProperty(Gt)&&Gt!=="appletOnLoad"&&$t.setAttribute("data-param-"+Gt,lt[Gt]);ft&&$t.setAttribute("data-param-fontscssurl",ft),fn.resize=function(){GGBAppletUtils.responsiveResize(at,lt)},window.addEventListener("resize",function(Qe){fn.resize()});var ve=typeof lt.appletOnLoad=="function"?lt.appletOnLoad:function(){};if(!Dt&<.width!==void 0){lt.hasOwnProperty("showSplash")||$t.setAttribute("data-param-showSplash","false");var ce=at.querySelector(".applet_scaler.prerender"),le=ce!==null;if(le)var de=ce.querySelector(".ggb_preview");else{var de=Nt(hn,tn,lt.borderColor,!1);ce=document.createElement("div"),ce.className="applet_scaler",ce.style.position="relative",ce.style.display="block",ce.style.width=hn+"px",ce.style.height=tn+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ce,"66%"),He(et)>=5?(lt.appletOnLoad=function(Qe){var St=at.querySelector(".ggb_preview");St&&St.parentNode.removeChild(St),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ce),window.GGBT_wsf_view&&$(window).trigger("resize"),ve(Qe)},le||ce.appendChild(de)):$t.appendChild(de),ce.appendChild($t),le||at.appendChild(ce),setTimeout(function(){fn.resize()},1)}else{var pe=document.createElement("div");pe.className="applet_scaler",pe.style.position="relative",pe.style.display="block",pe.appendChild($t),at.appendChild(pe),lt.appletOnLoad=function(Qe){fn.resize(),ve(Qe)}}function ae(Qe,St){St&&typeof St.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Qe,St.appletOnLoad):renderGGBElement(Qe),Qt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",St)}function Te(Qe,St){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Qe,params:St}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Jt){ae(Jt.article,Jt.params)}),html5AppletsToProcess=null)},He(et)<5&&(Qe.className+=" geogebraweb")):ae(Qe,St)}if(yn){scriptLoadStarted=!0;for(var gt=0;gt<$t.childNodes.length;gt++){var Re=$t.childNodes[gt].tagName;Re==="TABLE"&&($t.removeChild($t.childNodes[gt]),gt--)}if(ggbHTML5LoadedScript!==null){var Be=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Be!=null&&Be.parentNode.removeChild(Be)}var yt=document.createElement("script"),ut=function(){Te($t,lt)};yt.src=ct+We,ggbHTML5LoadedCodebaseIsWebSimple=je,ggbHTML5LoadedCodebaseVersion=et,ggbHTML5LoadedScript=yt.src,Qt("GeoGebra HTML5 codebase loaded: '"+ct+"'.",lt),!he&&(!Ee||Ee=="5.0")?(je?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),ut()):ct.requirejs?__webpack_require__.e(7206).then(function(){var Qe=[__webpack_require__(97206)];ut.apply(null,Qe)}.bind(this)).catch(__webpack_require__.oe):(yt.onload=ut,at.appendChild(yt))}else Te($t,lt);lt.height=tn,lt.width=hn},Ge=function(at,lt,Dt){var yn=Nt(lt.width,lt.height,lt.borderColor,Dt),$t=document.createElement("div");$t.style.position="relative",$t.style.display="block",$t.style.width=lt.width+"px",$t.style.height=lt.height+"px",$t.className="applet_screenshot applet_scaler"+(Dt?" applet_screenshot_play":""),$t.appendChild(yn);var hn=GGBAppletUtils.getScale(lt,at,Dt);Dt?(at.appendChild(At()),window.GGBT_wsf_view||(at.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner($t,"66%"),at.appendChild($t),hn!==1&&!isNaN(hn)&&(GGBAppletUtils.scaleElement($t,hn),$t.style.width=lt.width+"px",$t.style.height=lt.height+"px",$t.parentNode.style.width=lt.width*hn+"px",$t.parentNode.style.height=lt.height*hn+"px"),fn.resize=function(){Ot(at,yn,$t,Dt)},window.addEventListener("resize",function(tn){fn.resize()}),fn.resize()};function Ot(at,lt,Dt,yn){if(at.contains(lt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(at.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(at)}var $t=GGBAppletUtils.getScale(oe,at,yn);Dt.parentNode!==null&&(!isNaN($t)&&$t!==1?(GGBAppletUtils.scaleElement(Dt,$t),Dt.parentNode.style.width=oe.width*$t+"px",Dt.parentNode.style.height=oe.height*$t+"px"):(GGBAppletUtils.scaleElement(Dt,1),Dt.parentNode.style.width=oe.width+"px",Dt.parentNode.style.height=oe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(at),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}fn.onExitFullscreen=function(at,lt){lt.appendChild(at)};var wt=function(at,lt,Dt,yn){Ge(at,lt,!0);for(var $t=function(){var en=[];for(tn=0;tn<at.childNodes.length;tn++)en.push(at.childNodes[tn]);if(window.GGBT_wsf_view){var Gt=window.GGBT_wsf_view.renderFullScreen(at,lt.id),ve=document.getElementById("fullscreencontainer"),ce=jQuery(at).find(".fullscreencontent");ce.length>0?(Gt.remove(),ce.attr("id","fullscreencontent").show(),jQuery(ve).append(ce),window.dispatchEvent(new Event("resize"))):Mt(Gt,lt,!1),window.GGBT_wsf_view.launchFullScreen(ve)}else Fe=yn,Mt(at,lt,!1);if(!window.GGBT_wsf_view)for(tn=0;tn<en.length;tn++)at.removeChild(en[tn])},hn=at.getElementsByClassName("ggb_preview_play"),tn=0;tn<hn.length;tn++)hn[tn].addEventListener("click",$t,!1),hn[tn].addEventListener("ontouchstart",$t,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(at),Ke()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},At=function(){var at=document.createElement("div");if(at.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var lt='.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");}',Dt=document.createElement("style");Dt.styleSheet?Dt.styleSheet.cssText=lt:Dt.appendChild(document.createTextNode(lt)),document.getElementsByTagName("head")[0].appendChild(Dt)}return at},Nt=function(at,lt,Dt,yn){var $t=document.createElement("div");$t.className="ggb_preview",$t.style.position="absolute",$t.style.zIndex="90",$t.style.width=at-2+"px",$t.style.height=lt-2+"px",$t.style.top="0px",$t.style.left="0px",$t.style.overflow="hidden",$t.style.backgroundColor="white";var hn="lightgrey";Dt!==void 0&&(Dt==="none"?hn="transparent":hn=Dt),$t.style.border="1px solid "+hn;var tn=document.createElement("img");if(tn.style.position="relative",tn.style.zIndex="1000",tn.style.top="-1px",tn.style.left="-1px",pt!==null&&tn.setAttribute("src",pt),tn.style.opacity=.7,rt!==null){var en,Gt,ve;if(!yn){en=document.createElement("img"),en.style.position="absolute",en.style.zIndex="1001",en.style.opacity=1,tn.style.opacity=.3,Gt=360,Gt>at/4*3&&(Gt=at/4*3),ve=Gt/5.8,en.setAttribute("src",rt),en.setAttribute("width",Gt),en.setAttribute("height",ve);var ce=(at-Gt)/2,le=(lt-ve)/2;en.style.left=ce+"px",en.style.top=le+"px",$t.appendChild(en)}}return $t.appendChild(tn),$t},Tt=function(at){return at=at.toLowerCase(),at==="html5"||at==="screenshot"?at:"html5"},Ve=["web","webSimple","web3d","tablet","tablet3d","phone"],ye=function(at,lt){if(et=at,lt){bt(et,!0);return}var Dt=!Ae;if(Dt){var yn=He(et);!isNaN(yn)&&yn<4.4&&(Dt=!1)}var $t,hn;window.location.protocol.substr(0,4)==="http"?$t=window.location.protocol:$t="http:";var tn=et.indexOf("//");tn>0?hn=et:tn===0?hn=$t+et:hn="https://www.geogebra.org/apps/5.2.814.0/";for(var en in Ve)if(et.slice(Ve[en].length*-1)===Ve[en]||et.slice((Ve[en].length+1)*-1)===Ve[en]+"/"){bt(hn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Dt&&!ue.is3D&&!ue.AV&&!ue.SV&&!ue.CV&&!ue.EV2&&!ue.CP&&!ue.PC&&!ue.DA&&!ue.FI&&!ue.PV&&!Ie(oe.showToolBar)&&!Ie(oe.showMenuBar)&&!Ie(oe.showAlgebraInput)&&!Ie(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?hn+="webSimple/":hn+="web3d/",bt(hn,!1)},bt=function(at,lt){if(at.requirejs){ct=at;return}at.slice(-1)!=="/"&&(at+="/"),ct=at,lt===null&&(lt=at.indexOf("http")===-1),De=lt,We="web.nocache.js",je=!1;var Dt=ct.split("/");Dt.length>1&&(!lt&&Dt[Dt.length-2]==="webSimple"?(We="webSimple.nocache.js",je=!0):Ve.indexOf(Dt[Dt.length-2])>=0&&(We=Dt[Dt.length-2]+".nocache.js")),Dt=at.split("/"),et=Dt[Dt.length-3],et.substr(0,4)==="test"?et=et.substr(4,1)+"."+et.substr(5,1):(et.substr(0,3)==="war"||et.substr(0,4)==="beta")&&(et="5.0");var yn=parseFloat(et);yn!==NaN&&yn<5&&at.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+yn+" is deprecated. Using version latest instead."),ye("5.0",lt))},Qt=function(at,lt){window.console&&window.console.log&&(!lt||typeof lt.showLogging=="undefined"||lt.showLogging&<.showLogging!=="false")&&console.log(at)};oe.material_id!==void 0?Ue(Kt):Kt();function Kt(){var at=Wt;Ee!==null?at=Ee:parseFloat(at)<5&&(at="5.0"),ye(at,!1),he!==null&&bt(he,De),be=!0}return fn},GGBAppletUtils=function(){"use strict";function fn(){return window.GGBT_wsf_edit!==void 0}function Wt(be,Ee){Ee!=1?(be.style.transformOrigin="0% 0% 0px",be.style.webkitTransformOrigin="0% 0% 0px",be.style.transform="scale("+Ee+","+Ee+")",be.style.webkitTransform="scale("+Ee+","+Ee+")",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 oe(be,Ee,he,xe,Me,Pe){var ct=null;if(Pe!=null&&Pe!="")for(var De=be.parentNode;De!=null;)if((" "+De.className+" ").indexOf(" "+Pe+" ")>-1){ct=De;break}else De=De.parentNode;var Fe=0,et=0,We=0,je=0,pt=0,rt=0,kt=0;if(ct)Fe=ct.offsetWidth,et=Math.max(xe?ct.offsetWidth:0,ct.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Fe=Math.min(window.innerWidth,document.documentElement.clientWidth),et=Math.min(window.innerHeight,document.documentElement.clientHeight),We=Fe):(Fe=window.innerWidth,et=window.innerHeight,We=window.innerWidth),be){var ft=be.getBoundingClientRect();ft.left>0&&ft.left<=Fe&&(Me===void 0||!Me)&&(document.dir==="rtl"?(pt=Fe-ft.width-ft.left,rt=We<=480?10:30):(rt=ft.left,pt=We<=480?10:30),je=rt+pt)}if(be&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var it=be.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(je=40,kt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(je=0,kt=40)}}return be&&((he===void 0||!he)&&Ee>0&&Ee+je<Fe?Fe=Ee:Fe-=je,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(he===void 0||!he)&&(et-=kt)),{width:Fe,height:et}}function ue(be,Ee,he,xe,Me){if(be.isScreenshoGenerator)return 1;var Pe=xe!==void 0&&xe,ct=be.noScaleMargin!=null&&be.noScaleMargin,De=function(it){return it&&it!=="false"},Fe=De(be.autoHeight),et=oe(Ee,be.width,he,Fe,Pe&&window.GGBT_wsf_view||ct,Me),We=parseInt(et.width),je=be.width,pt=be.height;if(je===void 0){var rt=Ee.querySelector(".appletParameters");rt&&(je=rt.offsetWidth,pt=rt.offsetHeight)}var kt=We/je,ft=Pe?1:et.height/pt;return he!==void 0&&!he&&(kt=Math.min(1,kt),ft=Math.min(1,ft)),Math.min(kt,ft)}function Ae(be,Ee,he){var xe=1,Me,Pe=!1;if(be.hasOwnProperty("allowUpscale")&&(Pe=be.allowUpscale),be.hasOwnProperty("scale")&&(xe=parseFloat(be.scale),(isNaN(xe)||xe===null||xe===0)&&(xe=1),xe>1&&(Pe=!0)),Ee&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Pe=!0),!(be.hasOwnProperty("disableAutoScale")&&be.disableAutoScale))Me=ue(be,Ee,Pe,he,be.scaleContainerClass);else return xe;return Pe&&(!be.hasOwnProperty("scale")||xe===1)?Me:Math.min(xe,Me)}function ke(be){var Ee=Math.min(window.innerWidth,document.documentElement.clientWidth),he=Math.min(window.innerHeight,document.documentElement.clientHeight),xe=be.getBoundingClientRect(),Me=(Ee-xe.width)/2,Pe=(he-xe.height)/2;Pe<0&&(Pe=0),be.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Me<40?be.style.left="40px":be.style.left=Me+"px",be.style.top=Pe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Pe<40?be.style.top="40px":be.style.top=Pe+"px",be.style.left=Me+"px")}function nt(be,Ee){var he=be.querySelector(".appletParameters");if(he){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ee.id!==he.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(be)}if(he.parentElement&&/fullscreen/.test(he.parentElement.className))return;var xe=Ae(Ee,be);fn()&&he.setAttribute("data-param-scale",xe);for(var Me=null,Pe=0;Pe<be.childNodes.length;Pe++)if(be.childNodes[Pe].className!==void 0&&be.childNodes[Pe].className.match(/^applet_scaler/)){Me=be.childNodes[Pe];break}if(Me!==null&&Me.querySelector(".noscale")!==null)return;var ct=Ee.id!==void 0?Ee.id:"ggbApplet",De=window[ct];(De==null||!De.recalculateEnvironments)&&Me!==null&&!Me.className.match(/fullscreen/)&&(Me.parentNode.style.transform="",!isNaN(xe)&&xe!==1?(Me.parentNode.style.width=Ee.width*xe+"px",Me.parentNode.style.height=Ee.height*xe+"px",Wt(Me,xe)):(Wt(Me,1),Me.parentNode.style.width=Ee.width+"px",Me.parentNode.style.height=Ee.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&ke(be),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(he).parents(".content-added-content"))}}return{responsiveResize:nt,isFlexibleWorksheetEditor:fn,positionCenter:ke,getScale:Ae,scaleElement:Wt}}();__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 fn=n.location.search;return fn.indexOf(J)!=-1||fn.indexOf(K)!=-1}function q(fn,Wt){}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(fn){var Wt=s[L].bindings;s[L].bindings=function(){for(var oe=Wt?Wt():{},ue=fn[webModule.__softPermutationId],Ae=O;Ae<ue.length;Ae++){var ke=ue[Ae];oe[ke[O]]=ke[P]}return oe}};var t;function u(){return v(),t}function v(){if(!t){var fn=o.createElement(Q);if(fn.id=L,fn.style.cssText=R+S,fn.tabIndex=-1,o.body.appendChild(fn),t=fn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Wt=document.compatMode==U?V:W;t.write(Wt+X),t.close()}}}function w(fn){function Wt(ue){function Ae(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var ke=Ae();if(ke){ue();return}function nt(){if(!ke){if(!Ae())return;ke=!0,ue(),o.removeEventListener&&o.removeEventListener(Z,nt,!1),be&&clearInterval(be)}}o.addEventListener&&o.addEventListener(Z,nt,!1);var be=setInterval(function(){nt()},$)}function oe(ue){var Ae=u(),ke=Ae.body,nt=Ae.createElement(_);nt.language=ab,nt.crossOrigin=W,nt.src=ue,webModule.__errFn&&(nt.onerror=function(){webModule.__errFn(L,new Error(bb+ue))}),ke.appendChild(nt)}Wt(function(){oe(fn)})}webModule.__startLoadingFragment=function(fn){return C(fn)},webModule.__installRunAsyncCode=function(fn){var Wt=u(),oe=Wt.body,ue=Wt.createElement(_);ue.language=ab,ue.text=fn,oe.appendChild(ue),oe.removeChild(ue)};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(fn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(fn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(fn){var Wt=c[fn];return Wt==null?null:Wt},r=d,webModule.__errFn=e}function B(){function fn(be){var Ee=be.lastIndexOf(rb);Ee==-1&&(Ee=be.length);var he=be.indexOf(sb);he==-1&&(he=be.length);var xe=be.lastIndexOf(tb,Math.min(he,Ee));return xe>=O?be.substring(O,xe+P):W}function Wt(be){if(!be.match(/^\w+:\/\//)){var Ee=o.createElement(ub);Ee.src=be+vb,be=fn(Ee.src)}return be}function oe(){var be=__gwt_getMetaProperty(wb);return be!=null?be:W}function ue(){for(var be=o.getElementsByTagName(_),Ee=O;Ee<be.length;++Ee)if(be[Ee].src.indexOf(xb)!=-1)return fn(be[Ee].src);return W}function Ae(){var be=o.getElementsByTagName(yb);return be.length>O?be[be.length-P].href:W}function ke(){var be=o.location;return be.href==be.protocol+zb+be.host+be.pathname+be.search+be.hash}var nt=oe();return nt==W&&(nt=ue()),nt==W&&(nt=Ae()),nt==W&&ke()&&(nt=fn(o.location.href)),nt=Wt(nt),nt}function C(fn){return fn.match(/^\//)||fn.match(/^[a-zA-Z]+:\/\//)?fn:webModule.__moduleBase+fn}function D(){var fn=[],Wt=O,oe=[],ue=[];function Ae(be){var Ee=ue[be](),he=oe[be];if(Ee in he)return Ee;var xe=[];for(var Me in he)xe[he[Me]]=Me;throw r&&r(be,xe,Ee),null}if(__gwt_isKnownPropertyValue=function(be,Ee){return Ee in oe[be]},webModule.__getPropMap=function(){var be={};for(var Ee in oe)oe.hasOwnProperty(Ee)&&(be[Ee]=Ae(Ee));return be},webModule.__computePropValue=Ae,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ke;try{ke=Cb;var nt=ke.indexOf(Db);nt!=-1&&(Wt=parseInt(ke.substring(nt+P),$),ke=ke.substring(O,nt))}catch(be){}return webModule.__softPermutationId=Wt,C(ke+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})()},79090:function(fn,Wt,oe){"use strict";oe.d(Wt,{Ax:function(){return nt},Ds:function(){return be},KI:function(){return he},SI:function(){return ke},f1:function(){return Ae}});var ue=oe(6521);function Ae(xe){let Me=!0;if(xe.length>0){for(let Pe=0;Pe<xe.length;Pe++)if(xe[Pe].compile_success==0||!xe[Pe].compile_success){Me=!1;break}}else Me=!1;return Me}function ke(xe,Me=""){let Pe=[];for(let ct=0;ct<xe.length;ct++){let De=xe[ct],Fe=Me?`${Me}/${De.name}`:`${De.name}`;Pe.push({title:De.name,type:De.type,isLeaf:De.type!=="tree",key:Fe})}return Pe}function nt(xe,Me,Pe){for(let ct=0;ct<xe.length;ct++){let De=xe[ct];if(De.key===Me){De.children=Pe;break}De.children&&nt(De.children,Me,Pe)}return xe}function be(xe,Me,Pe){let ct;return function(){let De=this,Fe=arguments,et=function(){ct=null,Pe||xe.apply(De,Fe)},We=Pe&&!ct;clearTimeout(ct),ct=setTimeout(et,Me),We&&xe.apply(De,Fe)}}const Ee=!0,he=ue.Z.API_SERVER},18806:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return be}});var ue=oe(59301),Ae=oe(25544),ke={draggableImage:"draggableImage___vcTso",img:"img___xAyno",close:"close___WUtfj",extraNode:"extraNode___tnBrt"},be=({src:Ee,onClick:he,topPercentage:xe=.62,draggableExtraNode:Me})=>{const Pe=(0,ue.useRef)(null),ct=(0,ue.useRef)(!1),De=(0,ue.useRef)(!1),[Fe,et]=(0,ue.useState)(window.innerHeight*xe),[We,je]=(0,ue.useState)(!1),pt=10;return(0,ue.useEffect)(()=>{if(Pe.current){let rt=function(Se){var Ke;ct.current=!0,He=Se.pageY,it=Se.pageY-(((Ke=Pe.current)==null?void 0:Ke.getBoundingClientRect().top)||0),(0,Ae.kk)("none"),document.onselectstart=function(){return!1}},kt=function(){ct.current&&!De.current&&he&&he(),ct.current=!1,De.current=!1,(0,Ae.kk)("auto"),document.onselectstart=null},ft=function(Se){var Ke;if(ct.current){const vt=Se.pageY-it,Ye=window.innerHeight-(((Ke=Pe.current)==null?void 0:Ke.offsetHeight)||0)-50,st=50;if(!De.current&&Math.abs(He-Se.pageY)>pt&&(De.current=!0),De.current){let Ie=Math.max(st,Math.min(vt,Ye));et(Ie)}}},it=0,He=0;return Pe.current.addEventListener("mousedown",rt),document.addEventListener("mousemove",ft),document.addEventListener("mouseup",kt),()=>{var Se,Ke;(Ke=(Se=Pe==null?void 0:Pe.current)==null?void 0:Se.removeEventListener)==null||Ke.call(Se,"mousedown",rt),document.removeEventListener("mousemove",ft),document.removeEventListener("mouseup",kt)}}},[he]),(0,ue.useEffect)(()=>{const rt=()=>{et(window.innerHeight*xe)};return window.addEventListener("resize",rt),()=>{window.removeEventListener("resize",rt)}},[xe]),ue.createElement("div",{className:ke.draggableImage,style:{top:`${Fe}px`,display:We?"none":"block",cursor:ct.current?"grabbing":"grab"},ref:Pe},Me&&ue.createElement("div",{className:ke.extraNode,onMouseUp:rt=>rt.stopPropagation(),onMouseDownCapture:rt=>rt.stopPropagation()},Me),ue.createElement("img",{className:ke.img,src:Ee,width:60,draggable:"false"}),ue.createElement("i",{className:`iconfont icon-tupianguanbi ${ke.close}`,onMouseUp:rt=>{rt.stopPropagation(),je(!0)}}))}},90660:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return He}});var ue=oe(59301),Ae={select:"select___Kt_GE",box:"box___S5_ly",text:"text___dtZDv",itemWrap:"itemWrap___xmw7x",item:"item___io6Bx",active:"active___nHRTI"},ke=oe(81327),nt=Object.defineProperty,be=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,xe=(Se,Ke,Ue)=>Ke in Se?nt(Se,Ke,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):Se[Ke]=Ue,Me=(Se,Ke)=>{for(var Ue in Ke||(Ke={}))Ee.call(Ke,Ue)&&xe(Se,Ue,Ke[Ue]);if(be)for(var Ue of be(Ke))he.call(Ke,Ue)&&xe(Se,Ue,Ke[Ue]);return Se};const Pe=Se=>React.createElement("svg",Me({className:"logo1_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},Se),React.createElement("path",{d:"M1019.407 620.8 891.834 397.781 946.49 293.12a29.099 29.099 0 0 0 6.4-36.395l-70.187-126.592a30.08 30.08 0 0 0-24.576-13.653H597.519L539.194 14.507a27.35 27.35 0 0 0-20.907-14.55H380.644a29.141 29.141 0 0 0-24.618 14.55v5.546L225.806 243.03H100.923a29.184 29.184 0 0 0-25.515 13.654L3.428 384.085a32.768 32.768 0 0 0 0 29.184L132.836 638.08 74.511 740.053a32.768 32.768 0 0 0 0 29.056l66.517 116.566a29.907 29.907 0 0 0 25.515 14.506H427.15l62.848 109.227A30.08 30.08 0 0 0 512.783 1024H660.41a29.141 29.141 0 0 0 24.576-14.55l128.469-224.853h114.773a31.915 31.915 0 0 0 24.662-15.445l66.474-117.419a28.16 28.16 0 0 0 0-30.976l.043.043zm-161.28 14.592L791.61 512.469 518.287 993.963l-74.752-122.88h-273.28l65.621-119.211h139.392L101.86 272.213h143.062L380.687 30.08l68.352 119.253-70.187 122.88H925.54l-69.205 121.942 137.6 241.194H858.17z",fill:"#605BEC"}),React.createElement("path",{d:"m499.983 699.307 174.379-274.731H324.708z",fill:"#605BEC"}));var ct="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTEwMTkuNDA3IDYyMC44IDg5MS44MzQgMzk3Ljc4MSA5NDYuNDkgMjkzLjEyYTI5LjA5OSAyOS4wOTkgMCAwIDAgNi40LTM2LjM5NWwtNzAuMTg3LTEyNi41OTJhMzAuMDggMzAuMDggMCAwIDAtMjQuNTc2LTEzLjY1M0g1OTcuNTE5TDUzOS4xOTQgMTQuNTA3YTI3LjM1IDI3LjM1IDAgMCAwLTIwLjkwNy0xNC41NUgzODAuNjQ0YTI5LjE0MSAyOS4xNDEgMCAwIDAtMjQuNjE4IDE0LjU1djUuNTQ2TDIyNS44MDYgMjQzLjAzSDEwMC45MjNhMjkuMTg0IDI5LjE4NCAwIDAgMC0yNS41MTUgMTMuNjU0TDMuNDI4IDM4NC4wODVhMzIuNzY4IDMyLjc2OCAwIDAgMCAwIDI5LjE4NEwxMzIuODM2IDYzOC4wOCA3NC41MTEgNzQwLjA1M2EzMi43NjggMzIuNzY4IDAgMCAwIDAgMjkuMDU2bDY2LjUxNyAxMTYuNTY2YTI5LjkwNyAyOS45MDcgMCAwIDAgMjUuNTE1IDE0LjUwNkg0MjcuMTVsNjIuODQ4IDEwOS4yMjdBMzAuMDggMzAuMDggMCAwIDAgNTEyLjc4MyAxMDI0SDY2MC40MWEyOS4xNDEgMjkuMTQxIDAgMCAwIDI0LjU3Ni0xNC41NWwxMjguNDY5LTIyNC44NTNoMTE0Ljc3M2EzMS45MTUgMzEuOTE1IDAgMCAwIDI0LjY2Mi0xNS40NDVsNjYuNDc0LTExNy40MTlhMjguMTYgMjguMTYgMCAwIDAgMC0zMC45NzZsLjA0My4wNDN6bS0xNjEuMjggMTQuNTkyTDc5MS42MSA1MTIuNDY5IDUxOC4yODcgOTkzLjk2M2wtNzQuNzUyLTEyMi44OGgtMjczLjI4bDY1LjYyMS0xMTkuMjExaDEzOS4zOTJMMTAxLjg2IDI3Mi4yMTNoMTQzLjA2MkwzODAuNjg3IDMwLjA4bDY4LjM1MiAxMTkuMjUzLTcwLjE4NyAxMjIuODhIOTI1LjU0bC02OS4yMDUgMTIxLjk0MiAxMzcuNiAyNDEuMTk0SDg1OC4xN3oiIGZpbGw9IiM2MDVCRUMiLz48cGF0aCBkPSJtNDk5Ljk4MyA2OTkuMzA3IDE3NC4zNzktMjc0LjczMUgzMjQuNzA4eiIgZmlsbD0iIzYwNUJFQyIvPjwvc3ZnPg==",De=Object.defineProperty,Fe=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,je=(Se,Ke,Ue)=>Ke in Se?De(Se,Ke,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):Se[Ke]=Ue,pt=(Se,Ke)=>{for(var Ue in Ke||(Ke={}))et.call(Ke,Ue)&&je(Se,Ue,Ke[Ue]);if(Fe)for(var Ue of Fe(Ke))We.call(Ke,Ue)&&je(Se,Ue,Ke[Ue]);return Se};const rt=Se=>React.createElement("svg",pt({className:"logo2_svg__icon",viewBox:"0 0 1417 1024",xmlns:"http://www.w3.org/2000/svg",width:276.758,height:200},Se),React.createElement("path",{d:"M1364.44 118.705c-14.178-6.695-20.322 6.065-28.593 12.525-2.914 2.048-5.277 4.726-7.64 7.246-20.717 21.268-44.899 35.21-76.643 33.556a152.576 152.576 0 0 0-120.674 45.371c-7.404-41.826-32.06-66.875-69.553-82.865-19.693-8.35-39.543-16.7-53.248-34.737-9.61-12.919-12.288-27.333-17.015-41.512-3.15-8.507-6.144-17.25-16.384-18.668-11.185-1.733-15.517 7.247-19.928 14.73a189.125 189.125 0 0 0-23.552 98.461c1.575 76.88 35.446 138.083 102.636 181.642 7.562 4.963 9.531 9.925 7.09 17.25-4.49 14.967-9.926 29.54-14.81 44.584-2.992 9.61-7.561 11.658-18.274 7.483a309.484 309.484 0 0 1-96.886-63.015c-47.813-44.426-91.057-93.342-144.935-131.702a635.825 635.825 0 0 0-38.36-25.207c-54.982-51.2 7.167-93.262 21.582-98.225 14.966-5.199 5.277-23.158-43.402-22.922-48.68.237-93.184 15.833-149.977 36.628-8.428 3.15-17.092 5.514-25.993 7.326a557.844 557.844 0 0 0-160.768-5.436c-105.157 11.264-189.204 58.92-250.96 140.367-74.2 97.832-91.687 208.975-70.261 325.002 22.449 122.25 87.434 223.468 187.47 302.631 103.582 82 222.917 122.172 359.188 114.452 82.708-4.568 174.79-15.202 278.686-99.485 26.151 12.445 53.642 17.486 99.249 21.267 35.131 3.072 69.002-1.733 95.153-6.931 40.96-8.35 38.203-44.741 23.316-51.437-120.202-53.72-93.814-31.822-117.839-49.624 61.125-69.317 153.206-141.312 189.204-374.706 2.835-18.51.472-30.168 0-45.213-.237-9.137 1.969-12.603 12.918-13.706a240.089 240.089 0 0 0 86.173-25.442c77.982-40.803 109.332-107.914 116.736-188.259 1.103-12.288-.236-24.97-13.705-31.429zM685.45 842.043C569.108 754.215 512.55 725.307 489.157 726.49c-21.82 1.26-17.96 25.206-13.155 40.802 5.042 15.439 11.58 26.073 20.717 39.621 6.301 8.9 10.791 22.213-6.302 32.295-37.494 22.213-102.794-7.561-105.787-8.98-76.012-42.929-139.421-99.564-184.241-176.994a523.894 523.894 0 0 1-72.468-239.93c-1.024-20.56 5.278-27.885 26.703-31.587a272.148 272.148 0 0 1 85.307-2.127c118.942 16.699 220.16 67.741 305.073 148.48 48.443 46.001 85.071 100.982 122.88 154.703 40.173 57.029 83.338 111.458 138.32 155.963 19.376 15.675 34.894 27.569 49.781 36.234-44.74 4.805-119.414 5.829-170.456-32.926zm55.926-344.615c0-5.357 2.757-10.398 7.326-13.47a17.723 17.723 0 0 1 22.134 2.048c3.072 2.915 4.805 7.09 4.805 11.422a16.778 16.778 0 0 1-17.25 16.541 17.33 17.33 0 0 1-12.131-4.883 15.911 15.911 0 0 1-4.884-11.658zm173.529 85.464a104.37 104.37 0 0 1-33.005 8.586 71.444 71.444 0 0 1-44.504-13.548c-15.282-12.288-26.23-19.141-30.72-40.645a89.167 89.167 0 0 1 .787-31.429c3.939-17.487-.393-28.75-13.312-38.912-10.476-8.35-23.71-10.634-38.36-10.634a32.06 32.06 0 0 1-14.179-4.175c-6.144-2.914-11.106-10.24-6.301-19.14a60.18 60.18 0 0 1 10.712-11.265c19.85-10.79 42.693-7.246 63.882.788 19.693 7.798 34.501 21.898 55.926 41.905 21.74 24.183 25.68 30.8 38.125 48.916 9.846 14.179 18.747 28.75 24.89 45.45 3.703 10.397-1.102 18.905-13.941 24.103z",fill:"#4D6BFE"}));var kt="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDE0MTcgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjc2Ljc1OCIgaGVpZ2h0PSIyMDAiPjxwYXRoIGQ9Ik0xMzY0LjQ0IDExOC43MDVjLTE0LjE3OC02LjY5NS0yMC4zMjIgNi4wNjUtMjguNTkzIDEyLjUyNS0yLjkxNCAyLjA0OC01LjI3NyA0LjcyNi03LjY0IDcuMjQ2LTIwLjcxNyAyMS4yNjgtNDQuODk5IDM1LjIxLTc2LjY0MyAzMy41NTZhMTUyLjU3NiAxNTIuNTc2IDAgMCAwLTEyMC42NzQgNDUuMzcxYy03LjQwNC00MS44MjYtMzIuMDYtNjYuODc1LTY5LjU1My04Mi44NjUtMTkuNjkzLTguMzUtMzkuNTQzLTE2LjctNTMuMjQ4LTM0LjczNy05LjYxLTEyLjkxOS0xMi4yODgtMjcuMzMzLTE3LjAxNS00MS41MTItMy4xNS04LjUwNy02LjE0NC0xNy4yNS0xNi4zODQtMTguNjY4LTExLjE4NS0xLjczMy0xNS41MTcgNy4yNDctMTkuOTI4IDE0LjczYTE4OS4xMjUgMTg5LjEyNSAwIDAgMC0yMy41NTIgOTguNDYxYzEuNTc1IDc2Ljg4IDM1LjQ0NiAxMzguMDgzIDEwMi42MzYgMTgxLjY0MiA3LjU2MiA0Ljk2MyA5LjUzMSA5LjkyNSA3LjA5IDE3LjI1LTQuNDkgMTQuOTY3LTkuOTI2IDI5LjU0LTE0LjgxIDQ0LjU4NC0yLjk5MiA5LjYxLTcuNTYxIDExLjY1OC0xOC4yNzQgNy40ODNhMzA5LjQ4NCAzMDkuNDg0IDAgMCAxLTk2Ljg4Ni02My4wMTVjLTQ3LjgxMy00NC40MjYtOTEuMDU3LTkzLjM0Mi0xNDQuOTM1LTEzMS43MDJhNjM1LjgyNSA2MzUuODI1IDAgMCAwLTM4LjM2LTI1LjIwN2MtNTQuOTgyLTUxLjIgNy4xNjctOTMuMjYyIDIxLjU4Mi05OC4yMjUgMTQuOTY2LTUuMTk5IDUuMjc3LTIzLjE1OC00My40MDItMjIuOTIyLTQ4LjY4LjIzNy05My4xODQgMTUuODMzLTE0OS45NzcgMzYuNjI4LTguNDI4IDMuMTUtMTcuMDkyIDUuNTE0LTI1Ljk5MyA3LjMyNmE1NTcuODQ0IDU1Ny44NDQgMCAwIDAtMTYwLjc2OC01LjQzNmMtMTA1LjE1NyAxMS4yNjQtMTg5LjIwNCA1OC45Mi0yNTAuOTYgMTQwLjM2Ny03NC4yIDk3LjgzMi05MS42ODcgMjA4Ljk3NS03MC4yNjEgMzI1LjAwMiAyMi40NDkgMTIyLjI1IDg3LjQzNCAyMjMuNDY4IDE4Ny40NyAzMDIuNjMxIDEwMy41ODIgODIgMjIyLjkxNyAxMjIuMTcyIDM1OS4xODggMTE0LjQ1MiA4Mi43MDgtNC41NjggMTc0Ljc5LTE1LjIwMiAyNzguNjg2LTk5LjQ4NSAyNi4xNTEgMTIuNDQ1IDUzLjY0MiAxNy40ODYgOTkuMjQ5IDIxLjI2NyAzNS4xMzEgMy4wNzIgNjkuMDAyLTEuNzMzIDk1LjE1My02LjkzMSA0MC45Ni04LjM1IDM4LjIwMy00NC43NDEgMjMuMzE2LTUxLjQzNy0xMjAuMjAyLTUzLjcyLTkzLjgxNC0zMS44MjItMTE3LjgzOS00OS42MjQgNjEuMTI1LTY5LjMxNyAxNTMuMjA2LTE0MS4zMTIgMTg5LjIwNC0zNzQuNzA2IDIuODM1LTE4LjUxLjQ3Mi0zMC4xNjggMC00NS4yMTMtLjIzNy05LjEzNyAxLjk2OS0xMi42MDMgMTIuOTE4LTEzLjcwNmEyNDAuMDg5IDI0MC4wODkgMCAwIDAgODYuMTczLTI1LjQ0MmM3Ny45ODItNDAuODAzIDEwOS4zMzItMTA3LjkxNCAxMTYuNzM2LTE4OC4yNTkgMS4xMDMtMTIuMjg4LS4yMzYtMjQuOTctMTMuNzA1LTMxLjQyOXpNNjg1LjQ1IDg0Mi4wNDNDNTY5LjEwOCA3NTQuMjE1IDUxMi41NSA3MjUuMzA3IDQ4OS4xNTcgNzI2LjQ5Yy0yMS44MiAxLjI2LTE3Ljk2IDI1LjIwNi0xMy4xNTUgNDAuODAyIDUuMDQyIDE1LjQzOSAxMS41OCAyNi4wNzMgMjAuNzE3IDM5LjYyMSA2LjMwMSA4LjkgMTAuNzkxIDIyLjIxMy02LjMwMiAzMi4yOTUtMzcuNDk0IDIyLjIxMy0xMDIuNzk0LTcuNTYxLTEwNS43ODctOC45OC03Ni4wMTItNDIuOTI5LTEzOS40MjEtOTkuNTY0LTE4NC4yNDEtMTc2Ljk5NGE1MjMuODk0IDUyMy44OTQgMCAwIDEtNzIuNDY4LTIzOS45M2MtMS4wMjQtMjAuNTYgNS4yNzgtMjcuODg1IDI2LjcwMy0zMS41ODdhMjcyLjE0OCAyNzIuMTQ4IDAgMCAxIDg1LjMwNy0yLjEyN2MxMTguOTQyIDE2LjY5OSAyMjAuMTYgNjcuNzQxIDMwNS4wNzMgMTQ4LjQ4IDQ4LjQ0MyA0Ni4wMDEgODUuMDcxIDEwMC45ODIgMTIyLjg4IDE1NC43MDMgNDAuMTczIDU3LjAyOSA4My4zMzggMTExLjQ1OCAxMzguMzIgMTU1Ljk2MyAxOS4zNzYgMTUuNjc1IDM0Ljg5NCAyNy41NjkgNDkuNzgxIDM2LjIzNC00NC43NCA0LjgwNS0xMTkuNDE0IDUuODI5LTE3MC40NTYtMzIuOTI2em01NS45MjYtMzQ0LjYxNWMwLTUuMzU3IDIuNzU3LTEwLjM5OCA3LjMyNi0xMy40N2ExNy43MjMgMTcuNzIzIDAgMCAxIDIyLjEzNCAyLjA0OGMzLjA3MiAyLjkxNSA0LjgwNSA3LjA5IDQuODA1IDExLjQyMmExNi43NzggMTYuNzc4IDAgMCAxLTE3LjI1IDE2LjU0MSAxNy4zMyAxNy4zMyAwIDAgMS0xMi4xMzEtNC44ODMgMTUuOTExIDE1LjkxMSAwIDAgMS00Ljg4NC0xMS42NTh6bTE3My41MjkgODUuNDY0YTEwNC4zNyAxMDQuMzcgMCAwIDEtMzMuMDA1IDguNTg2IDcxLjQ0NCA3MS40NDQgMCAwIDEtNDQuNTA0LTEzLjU0OGMtMTUuMjgyLTEyLjI4OC0yNi4yMy0xOS4xNDEtMzAuNzItNDAuNjQ1YTg5LjE2NyA4OS4xNjcgMCAwIDEgLjc4Ny0zMS40MjljMy45MzktMTcuNDg3LS4zOTMtMjguNzUtMTMuMzEyLTM4LjkxMi0xMC40NzYtOC4zNS0yMy43MS0xMC42MzQtMzguMzYtMTAuNjM0YTMyLjA2IDMyLjA2IDAgMCAxLTE0LjE3OS00LjE3NWMtNi4xNDQtMi45MTQtMTEuMTA2LTEwLjI0LTYuMzAxLTE5LjE0YTYwLjE4IDYwLjE4IDAgMCAxIDEwLjcxMi0xMS4yNjVjMTkuODUtMTAuNzkgNDIuNjkzLTcuMjQ2IDYzLjg4Mi43ODggMTkuNjkzIDcuNzk4IDM0LjUwMSAyMS44OTggNTUuOTI2IDQxLjkwNSAyMS43NCAyNC4xODMgMjUuNjggMzAuOCAzOC4xMjUgNDguOTE2IDkuODQ2IDE0LjE3OSAxOC43NDcgMjguNzUgMjQuODkgNDUuNDUgMy43MDMgMTAuMzk3LTEuMTAyIDE4LjkwNS0xMy45NDEgMjQuMTAzeiIgZmlsbD0iIzRENkJGRSIvPjwvc3ZnPg==",ft=oe(59301),He=({value:Se,onChange:Ke})=>{const[Ue,vt]=(0,ue.useState)(!1),Ye=[{name:"\u901A\u4E49\u5343\u95EE",key:"qwen-max",img:ct},{name:"DeepSeek R1-671B",key:"deepseek-r1",img:kt}],st=Ye.find(Ie=>Ie.key===Se);return ft.createElement("div",{className:Ae.select},ft.createElement(ke.Z,{size:10},ft.createElement("span",{className:"c-grey-333 font16"},"\u6A21\u578B"),ft.createElement("div",{className:Ae.box,onMouseLeave:()=>vt(!1)},ft.createElement("div",{className:Ae.text,onClick:()=>vt(!0)},ft.createElement("img",{src:st.img,width:20}),ft.createElement("span",null,st.name),ft.createElement("b",{className:"iconfont icon-zhankai6"})),Ue&&ft.createElement("div",{className:Ae.itemWrap},ft.createElement("aside",null,Ye.map(Ie=>ft.createElement("div",{key:Ie.key,className:`${Ae.item} ${Ie.key===Se?Ae.active:""}`,onClick:Mt=>{Mt.stopPropagation(),Ke(Ie.key),vt(!1)}},ft.createElement("img",{src:Ie.img,width:20}),ft.createElement("span",null,Ie.name))))))))}},5663:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return he}});var ue=oe(59301),Ae={reasoning:"reasoning___S0mKl",btn:"btn____CIJG",content:"content___CIAh9"},ke=oe(71418),nt=oe(59301),be=(xe,Me,Pe)=>new Promise((ct,De)=>{var Fe=je=>{try{We(Pe.next(je))}catch(pt){De(pt)}},et=je=>{try{We(Pe.throw(je))}catch(pt){De(pt)}},We=je=>je.done?ct(je.value):Promise.resolve(je.value).then(Fe,et);We((Pe=Pe.apply(xe,Me)).next())}),he=({value:xe="",streamingStatus:Me,onFinish:Pe,cancelIndex:ct,time:De,loading:Fe,loadAll:et})=>{const[We,je]=(0,ue.useState)(""),[pt,rt]=(0,ue.useState)(!0),kt=(0,ue.useRef)(xe),ft=(0,ue.useRef)(Me),it=(0,ue.useRef)(0),He=(0,ue.useRef)(null),[Se,Ke]=(0,ue.useState)(!1),Ue=70;(0,ue.useEffect)(()=>{ft.current=Me},[Me]),(0,ue.useEffect)(()=>{kt.current=xe},[xe]),(0,ue.useEffect)(()=>{if(!Me){je(kt.current);return}return Ke(!0),He.current=setInterval(vt,Ue),()=>{clearInterval(He.current)}},[]),(0,ue.useEffect)(()=>{Se&&(je(kt.current),clearInterval(He.current),Ke(!1),Pe())},[ct]);const vt=()=>be(void 0,null,function*(){const Ye=kt.current[it.current];Ye!==void 0?(je(st=>st+Ye),it.current++,clearInterval(He.current),He.current=setInterval(vt,280/(kt.current.length-it.current))):ft.current===!1&&(je(kt.current),clearInterval(He.current),Ke(!1),Pe())});return nt.createElement("div",{className:`${Ae.reasoning} fadeIn animated`},nt.createElement("div",{className:Ae.btn,onClick:()=>rt(!pt)},nt.createElement("i",{className:"iconfont icon-shendusikao"}),De?nt.createElement("span",null,"\u5DF2\u6DF1\u5EA6\u601D\u8003\uFF08\u7528\u65F6 ",De," \u79D2\uFF09"):nt.createElement("span",null,"\u601D\u8003\u4E2D..."),pt?nt.createElement("b",{className:"iconfont icon-shouqi6"}):nt.createElement("b",{className:"iconfont icon-zhankai6"})),Fe&&nt.createElement(ke.Z,{spinning:!0,className:"mt20"}),pt&&!Fe&&nt.createElement("div",{className:Ae.content},We,Se?nt.createElement("span",{className:"aiBlink"},"__"):""))}},11442:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return Kt}});var ue=oe(59301),Ae=oe(43428),ke=oe(8591),nt=oe(54580),be=oe(43418),Ee=oe(6848),he=oe(92832),xe=oe(3113),Me=oe(71418),Pe=oe(64165),ct=oe(14478),De=oe(38854),Fe=oe(92310),et=oe.n(Fe),We=oe(49310),je=oe(5663),pt=oe(90660),rt={loadingPic:"loadingPic___y2kKZ",loading:"loading___UEUk1",dot:"dot___TYXFV","dot-fade":"dot-fade___KWn1a",wrap:"wrap___nU3cS",chatContainer:"chatContainer___PNe3Q",footerContainer:"footerContainer___hQATV",btnWrp:"btnWrp___mS8l6",btn:"btn___3za5U",btnActive:"btnActive____jzfb",inputContainer:"inputContainer___iCQ3u",uploadBtn:"uploadBtn___OHHJF",sendBtn:"sendBtn___ktaQl",sendBtnDisabled:"sendBtnDisabled___DVncF",cancelBtn:"cancelBtn___bzMDI",lineFour:"lineFour___Lhbz5",fullIcon:"fullIcon___YWXTV",footerContainerSelected:"footerContainerSelected___pGBh3",full:"full___dZLXo",li:"li___PjMV3",avatarIcon:"avatarIcon___ztGQ3",img:"img___wZqEA",content:"content___OlYYG",borderBox:"borderBox___tjHwt",text:"text___yWTCV",fileWrap:"fileWrap___IX778",file:"file___fxAKb",fileName:"fileName___RA8nu",source:"source___nkLC0",action:"action___I2zGy",disabledInput:"disabledInput___Buork",backBottom:"backBottom___SMuL2",head:"head___v8Eom",headBtn:"headBtn___IS7xR",menuWarp:"menuWarp___G6yj0",menu:"menu___M8VWP",menuText:"menuText___gRpb5",menuDel:"menuDel___eH_wg",active:"active___KWwPV"},kt=oe(79769),ft=oe(25544),it=oe(18806),He=oe(37166),Se=oe(28984),Ke=oe(71986),Ue=oe(6521),vt=oe(56102),Ye=oe(65218),st=oe(58617),Ie=oe(32050),Mt=Object.defineProperty,Ge=Object.defineProperties,Ot=Object.getOwnPropertyDescriptors,wt=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,Tt=(at,lt,Dt)=>lt in at?Mt(at,lt,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):at[lt]=Dt,Ve=(at,lt)=>{for(var Dt in lt||(lt={}))At.call(lt,Dt)&&Tt(at,Dt,lt[Dt]);if(wt)for(var Dt of wt(lt))Nt.call(lt,Dt)&&Tt(at,Dt,lt[Dt]);return at},ye=(at,lt)=>Ge(at,Ot(lt)),bt=(at,lt,Dt)=>new Promise((yn,$t)=>{var hn=Gt=>{try{en(Dt.next(Gt))}catch(ve){$t(ve)}},tn=Gt=>{try{en(Dt.throw(Gt))}catch(ve){$t(ve)}},en=Gt=>Gt.done?yn(Gt.value):Promise.resolve(Gt.value).then(hn,tn);en((Dt=Dt.apply(at,lt)).next())}),Kt=({title:at="\u5934\u6B4CAI",placeholder:lt,hideUpload:Dt,hideInputBox:yn,aiIcon:$t=He,userIcon:hn=Se,dragIcon:tn=Ke,children:en,fetchUrl:Gt,fetchData:ve={},extraAnswerAction:ce,showDefaultTips:le=!0,onOpen:de,onClose:pe,loadingOption:ae,showPreference:Te=!1,initMessage:gt,customRequest:Re,visible:Be,width:yt=1200,isCheckRestrictNumber:ut=!1,headNode:Qe,headFunctionNode:St,showRedraw:Jt,showEdit:mt,promptPropName:Ft="prompt",topPercentage:nn,showSwitchingModel:ht=!1,showImageGenerator:Le=!1,showLookHistory:dt=!1,fetchListObject:Pt,customPreference:_t,customDataNode:Xt,showAddSession:gn,historyId:En,draggableExtraNode:wn,drawerExtraNode:_n,menuExtraFunctionNode:$n,showSceneAwareness:Dn=!1,ReactComponent:qn=Ae.Z,topFunctionNode:fr,footerContainerStyle:br,chatContainerStyle:Zn={},showCodePreview:ar=!1,showSource:Cr=!0,onSendMessage:jn,onDynamic:Dr=()=>{}})=>{var ei,Fr;const[ai,ti]=(0,ue.useState)(!1),[er,hr]=(0,ue.useState)("qwen-max"),[zn,Hn]=(0,ue.useState)([]),[wr,Bt]=(0,ue.useState)([]),[ze,Xe]=(0,ue.useState)(!1),[Je,qe]=(0,ue.useState)(!1),[Ct,Rt]=(0,ue.useState)(!1),[rn,Vt]=(0,ue.useState)([]),[ln,Cn]=(0,ue.useState)(""),[An,Tn]=(0,ue.useState)(0),[Ut,bn]=(0,ue.useState)(void 0),[Vn,Fn]=(0,ue.useState)(!1),[Jn,Wn]=(0,ue.useState)(null),[mr,Bn]=(0,ue.useState)(""),rr=(0,ue.useRef)(),It=(0,ue.useRef)(null),on=(0,ue.useRef)(null),[un,xn]=(0,ue.useState)(!1),[dn,vn]=(0,ue.useState)(!1),[pn,On]=(0,ue.useState)(!1),[Rn,Gn]=(0,ue.useState)(!1),[Er,Hr]=(0,ue.useState)(!1),[Xr,Lr]=(0,ue.useState)(0),vr=(0,ue.useRef)(null),Jr=(0,ue.useRef)(!1),Gr=(0,ue.useRef)(null),[Zr,xr]=(0,ue.useState)(void 0),[Nr,Qr]=(0,ue.useState)(!0),[Kr,hi]=(0,ue.useState)(yt-28),[Bi,Ur]=(0,ue.useState)(!1),[Xn,Kn]=(0,ue.useState)(!0),[Wr,Tr]=(0,ue.useState)([]),ri=(0,ue.useRef)([]),pi=(0,ue.useRef)(null),li=(0,ue.useRef)(null),$i=(0,ue.useRef)(!1),xi=Kr-22,oa=ln==null?void 0:ln.split(`
|
|
|
`).length,{onAdd:Br,onGetList:Ar,onListClick:fi,onListDelete:mi,onListDealData:la}=Pt||{},Ua=50,Da=10,Wi={maxCount:Ua,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:zn,multiple:!0,accept:".doc,.docx,.md,.txt,.pdf,.xlsx,.xls",beforeUpload:mn=>bt(void 0,null,function*(){var lr,Pr,gi,Ti;const wi=(Ti=(gi=(Pr=(lr=mn==null?void 0:mn.name)==null?void 0:lr.split("."))==null?void 0:Pr.slice(-1))==null?void 0:gi[0])==null?void 0:Ti.toLowerCase(),eo=["doc","docx","md","pdf","txt","xlsx","xls"].includes(wi);return mn.size==0?(ke.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),nt.default.LIST_IGNORE):eo?mn.size/1024/1024>100?(ke.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u5236100MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),nt.default.LIST_IGNORE):!0:(ke.ZP.warning("\u76EE\u524D\u652F\u6301txt\u3001md\u3001doc\u3001docx\u3001pdf\u3001xlsx\u3001xls\u6587\u4EF6"),nt.default.LIST_IGNORE)}),onChange:({fileList:mn})=>{Hn(mn)},action:`${(ei=Ue.Z)==null?void 0:ei.API_SERVER}/api/intelligent_imports/upload_file.json`},ma={maxCount:Da,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:wr,multiple:!0,accept:".jpg,.png,",beforeUpload:mn=>{var lr,Pr,gi,Ti;const wi=(Ti=(gi=(Pr=(lr=mn==null?void 0:mn.name)==null?void 0:lr.split("."))==null?void 0:Pr.slice(-1))==null?void 0:gi[0])==null?void 0:Ti.toLowerCase(),eo=["jpg","png"].includes(wi);return mn.size==0?(ke.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),nt.default.LIST_IGNORE):eo?mn.size/1024/1024>10?(ke.ZP.warning("\u4E0A\u4F20\u7684\u56FE\u7247\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),nt.default.LIST_IGNORE):!0:(ke.ZP.warning("\u76EE\u524D\u652F\u6301jpg\u3001png"),nt.default.LIST_IGNORE)},onChange:({fileList:mn})=>{Bt(mn)},action:`${(Fr=Ue.Z)==null?void 0:Fr.API_SERVER}/api/ai/generals/update_file.json`};(0,ue.useEffect)(()=>{if(!rn.length||!rr.current)return;const mn=rn[rn.length-1];mn!=null&&mn.loading&&(rr.current.scrollTop=rr.current.scrollHeight)},[rn.length]),(0,ue.useEffect)(()=>{if(!rr.current||!vr.current)return;const mn=new IntersectionObserver(([lr])=>{Qr(lr.isIntersecting)},{root:rr.current,rootMargin:"70px",threshold:0});return mn.observe(vr.current),()=>{vr.current&&mn.unobserve(vr.current)}},[rr.current,vr.current]),(0,ue.useEffect)(()=>{if(!un)return;const mn=rr.current,lr=Gr.current;Jr.current=!1;let Pr=mn.scrollTop;const gi=()=>{const{scrollTop:wi,scrollHeight:Ji,clientHeight:eo}=mn;wi>Pr?wi+eo>=Ji-50&&(mn.scrollTop=mn.scrollHeight,Jr.current=!1):wi<Pr&&(Jr.current=!0),Pr=wi};mn.addEventListener("scroll",gi);const Ti=new ResizeObserver(()=>{Jr.current||(mn.scrollTop=mn.scrollHeight)});return Ti.observe(lr),()=>{var wi;Ti.unobserve(lr),(wi=mn==null?void 0:mn.removeEventListener)==null||wi.call(mn,"scroll",gi)}},[un]),(0,ue.useEffect)(()=>{!un&&ri.current.length&&(Vt([...rn,...ri.current]),ri.current=[])},[un]),(0,ue.useEffect)(()=>{if(!rr.current)return;const mn=new ResizeObserver(()=>{var lr;rr.current&&hi((lr=rr.current)==null?void 0:lr.offsetWidth)});return mn.observe(rr.current),()=>{rr.current&&mn.unobserve(rr.current)}},[rr.current]),(0,ue.useEffect)(()=>{typeof Be=="boolean"&&ti(Be)},[Be]),(0,ue.useEffect)(()=>{var mn;if(It.current&&Jn!==null){It.current.focus();const lr=(mn=It.current.resizableTextArea)==null?void 0:mn.textArea;lr&&(lr.selectionStart=lr.selectionEnd=lr.value.length)}},[Jn]),(0,ue.useEffect)(()=>{oa<5&&Fn(!1)},[oa]),(0,ue.useEffect)(()=>{ai&>&&(Vt(na(gt)),Xe(!0),qi(gt,{history:[]})),ai&&(Ki(),En?Za(En):gn&&!Zr&&wo()),ai||sr()},[ai]);const na=(mn="",lr=[],Pr=[])=>{const gi=Date.now();return[{text:mn,key:gi,sender:"user",fileList:lr,imageList:Pr,show:!0},{loading:!0,key:gi,sender:"AI",show:!0,model:er,imageGenerator:Rn,thinkingEnabled:dn,codePreview:pn}]},sr=()=>{Bn(""),Wn(null),Hn([]),Bt([]),Cn("")},ur=()=>{if(de){de({chatData:rn,setChatData:Vt,setLoading:Xe,getData:qi,renderChatItems:na,handleAdd:wo,identifier:Zr});return}ti(!0)},cr=()=>{if(Kn(!0),pe){pe();return}ti(!1)},Or=()=>{Fn(!Vn)},Ki=()=>bt(void 0,null,function*(){if(!ut)return;const mn=yield(0,kt.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});(mn==null?void 0:mn.status)===0&&(mn==null?void 0:mn.total_number)!==-1&&(Tn((mn==null?void 0:mn.total_number)-(mn==null?void 0:mn.remaining_number)),bn(mn==null?void 0:mn.total_number))}),ea=()=>{be.default.info({title:"\u63D0\u793A",icon:null,okText:"\u6211\u77E5\u9053\u4E86",width:510,centered:!0,content:ue.createElement("div",null,ue.createElement("div",{style:{color:"#FA6400"}},"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),ue.createElement("div",{className:"c-grey-333 mt5"},"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F\u7528",Ut,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))})},ra=mn=>mn.reduce((Pr,gi)=>{if(gi.sender==="user"){const Ti=mn.find(wi=>wi.key===gi.key&&wi.sender==="AI");Ti&&(Ti!=null&&Ti.text)&&!(Ti!=null&&Ti.error)&&Pr.push({question:gi.text,answer:Ti.text})}return Pr},[]),qi=(...mn)=>bt(void 0,[...mn],function*(lr="",Pr={},gi=rn){if(Re&&(yield Re({mes:lr,setChatData:Vt,fileList:zn,body:Pr,checkNum:Ki,setLoading:Xe,bodyChatData:gi,setTyping:xn,setImageGenerator:Gn,renderChatItems:na})),!Re){const Ti=zn==null?void 0:zn.map(Ba=>{var ja;return(ja=Ba==null?void 0:Ba.response)==null?void 0:ja.file_id}),wi=wr==null?void 0:wr.map(Ba=>{var ja;return(ja=Ba==null?void 0:Ba.response)==null?void 0:ja.data}),Ji=Pr.history||ra(gi),eo=Ve(Ve({identifier:Zr,response_mode:"streaming",scene_awareness:Er,thinking_enabled:dn,image_generator:Rn,code_preview:pn,file_ids:Ti,image_list:wi,history:Ji,[Ft]:lr},ve),Pr),to=Object.fromEntries(Object.entries(eo).filter(([Ba,ja])=>ja!==void 0));on.current=new Ye.Z(Ue.Z.API_SERVER+Gt,to),yield new Promise((Ba,ja)=>{let sl=null,as=null;on.current.on("data",uo=>{xn(!0);const{chunk:{content:ao,type:fs,created:vs,msg:Ms}}=uo,ll=Ms==="error";fs==="text"&&(as=as||vs,Vt(Fs=>[...Fs].map((No,Ko)=>Ko===Fs.length-1?ye(Ve({},No),{text:(No.text||"")+ao,loading:!1,startTime:sl,endTime:as,error:ll}):No)))}),on.current.on("done",()=>{Ba()}),on.current.on("error",uo=>{let ao="\u62B1\u6B49\uFF0C\u6211\u521A\u521A\u9047\u5230\u4E86\u4E00\u70B9\u95EE\u9898\uFF0C\u6CA1\u80FD\u5B8C\u6210\u60A8\u7684\u8BF7\u6C42\u3002\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\u4E00\u6B21\uFF0C\u6216\u8005\u8054\u7CFB\u6280\u672F\u652F\u6301\u5E2E\u5FD9\u89E3\u51B3!";Object.prototype.toString.call(uo)==="[object Object]"&&uo.status===-9&&(ao=uo==null?void 0:uo.message),Vt(fs=>[...fs].map((vs,Ms)=>Ms===fs.length-1?ye(Ve({},vs),{text:ao,loading:!1,error:!0}):vs)),Ba()}),on.current.on("cancelled",()=>{Ba()}),on.current.startStream()})}Ki(),Xe(!1)}),ia=mn=>{Cn(mn.target.value)},ga=(mn,lr)=>{if(sr(),Xe(!0),mn==="edit"){ri.current=rn.slice(lr+2);const Pr=rn.splice(lr),{fileList:gi=[],imageList:Ti=[]}=(Pr==null?void 0:Pr[0])||{},wi=gi.map(to=>{var Ba;return(Ba=to.response)==null?void 0:Ba.file_id}),Ji=Ti.map(to=>{var Ba;return(Ba=to.response)==null?void 0:Ba.data}),eo={history:ra(rn),file_ids:wi,image_list:Ji,edit:!0};Vt([...rn,...na(mr,gi,Ti)]),qi(mr,eo,rn)}if(mn==="redraw"){ri.current=rn.slice(lr+1);const Pr=rn.splice(lr-1),{text:gi,fileList:Ti=[],imageList:wi=[]}=(Pr==null?void 0:Pr[0])||{},Ji=Ti.map(Ba=>{var ja;return(ja=Ba.response)==null?void 0:ja.file_id}),eo=wi.map(Ba=>{var ja;return(ja=Ba.response)==null?void 0:ja.data}),to={history:ra(rn),file_ids:Ji,image_list:eo,edit:!0};Vt([...rn,...na(gi,Ti,wi)]),qi(gi,to,rn)}},Va=()=>{if(ln.trim()!==""){sr(),Xe(!0);const mn=zn.filter(Pr=>Pr.status==="done"),lr=wr.filter(Pr=>Pr.status==="done");Vt([...rn,...na(ln,mn,lr)]),qi(ln)}},Ra=mn=>{if(mn.shiftKey){if(mn.key==="Enter")return}else if(mn.key==="Enter"){if(mn.preventDefault(),Qi||$i.current)return;Va()}},ko=(mn,lr)=>{let Pr=!1;mt===!0?Pr=!0:mt==="last"&&(Pr=rn.reduce((Ji,eo,to)=>eo.sender==="user"?to:Ji,-1)===lr);const gi=lr===Jn,Ti=[...(mn==null?void 0:mn.fileList)||[],...(mn==null?void 0:mn.imageList)||[]];return ue.createElement("div",{className:rt.li,style:Ve({width:xi},Zn)},ue.createElement("div",{className:rt.avatarIcon},ue.createElement("img",{className:rt.img,src:hn})),ue.createElement("div",{className:rt.content},!!(Ti!=null&&Ti.length)&&ue.createElement("div",{className:rt.fileWrap},Ti==null?void 0:Ti.map((wi,Ji)=>{var eo,to;return ue.createElement("div",{key:Ji,className:rt.file},ue.createElement("img",{src:oe(90034)(`./${((to=(eo=wi==null?void 0:wi.name)==null?void 0:eo.split("."))==null?void 0:to.pop())||"txt"}.png`),width:20,className:"mr10"}),ue.createElement("aside",null,ue.createElement(Ee.Z,{title:wi==null?void 0:wi.name},ue.createElement("div",{className:rt.fileName},wi==null?void 0:wi.name)),ue.createElement("div",{className:"c-grey-999 font12"},(0,ft.RD)(wi==null?void 0:wi.size))))})),ue.createElement("div",{className:rt.borderBox},gi?ue.createElement(he.default.TextArea,{value:mr,ref:It,autoSize:!0,placeholder:"\u8BF7\u8F93\u5165",bordered:!1,onChange:wi=>Bn(wi.target.value)}):ue.createElement("div",{className:rt.text},mn==null?void 0:mn.text)),gi?ue.createElement("div",{className:rt.action},ue.createElement(xe.ZP,{onClick:()=>{Bn(""),Wn(null)},size:"small"},"\u53D6\u6D88"),ue.createElement(xe.ZP,{disabled:!mr.trim(),onClick:()=>ga("edit",lr),type:"primary",size:"small"},"\u786E\u8BA4")):ue.createElement("div",{className:rt.action},ue.createElement(vt.CopyToClipboard,{text:(mn==null?void 0:mn.text)||"",onCopy:()=>ke.ZP.success("\u590D\u5236\u6210\u529F")},ue.createElement(Ee.Z,{title:"\u590D\u5236"},ue.createElement("i",{className:"iconfont icon-fuzhi8 font13"}))),Pr&&!ze&&ue.createElement(Ee.Z,{title:"\u7F16\u8F91"},ue.createElement("i",{onClick:()=>{Wn(lr),Bn((mn==null?void 0:mn.text)||"")},className:"iconfont icon-bianji10 font14"})))))},co=(mn,lr)=>{let Pr=!1;Jt===!0?Pr=!0:Jt==="last"&&(Pr=rn.reduce((wi,Ji,eo)=>Ji.sender==="AI"?eo:wi,-1)===lr);let gi="";return mn!=null&&mn.source?gi=mn==null?void 0:mn.source:(mn==null?void 0:mn.model)==="deepseek-r1"?gi="\u7531deepseek\u751F\u6210":(mn==null?void 0:mn.model)==="qwen-max"&&(gi="\u7531\u901A\u4E49\u5343\u95EE\u751F\u6210"),ue.createElement("div",{className:rt.li,style:Ve({width:xi},Zn)},ue.createElement("div",{className:rt.avatarIcon},ue.createElement("img",{className:rt.img,src:$t})),ue.createElement("div",{className:rt.content},ue.createElement("div",{className:rt.borderBox},mn.loading&&ue.createElement(ue.Fragment,null,mn!=null&&mn.imageGenerator?ue.createElement("div",{className:rt.loadingPic},"\u6B63\u5728\u751F\u6210\u4E2D",ue.createElement("div",{className:"ai-loading"})):!(mn!=null&&mn.thinkingEnabled)&&ue.createElement("div",null,ue.createElement("div",{className:rt.loading},ue.createElement("div",{className:rt.dot}),ue.createElement("div",{className:rt.dot}),ue.createElement("div",{className:rt.dot})),ue.createElement("div",{style:{marginTop:10,color:"#9096A3"}},(ae==null?void 0:ae.text)||"\u8BF7\u8010\u5FC3\u7B49\u5F85\uFF0C\u76EE\u524D\u9AD8\u5CF0\u671F\u4F53\u9A8C\u4EBA\u6570\u8FC7\u591A\uFF0C\u6211\u4EEC\u5DF2\u8BB0\u5F55\u4E0B\u60A8\u7684\u9700\u6C42\uFF0C\u7A0D\u540E\u5C06\u81EA\u52A8\u4E3A\u60A8\u751F\u6210\u7B54\u6848\u3002"))),(mn==null?void 0:mn.thinkingEnabled)&&ue.createElement(je.Z,{time:mn==null?void 0:mn.time,cancelIndex:Xr,loading:mn.loading,streamingStatus:!(mn!=null&&mn.text),onFinish:()=>{Lr(0),Vt(Ti=>[...Ti].map((wi,Ji)=>Ji===Ti.length-1?ye(Ve({},wi),{hideAnswer:!1,time:wi.startTime?wi.endTime-wi.startTime:null}):wi))},value:mn==null?void 0:mn.reasoning}),!!(mn!=null&&mn.text)&&!mn.hideAnswer&&ue.createElement(We.Z,{onDynamic:Dr,cancelIndex:Xr,streamingStatus:ze,loadImage:!!(mn!=null&&mn.imageGenerator),onFinish:()=>bt(void 0,null,function*(){Lr(0),setTimeout(()=>xn(!1),0)}),value:mn==null?void 0:mn.text})),Cr&&!!(mn!=null&&mn.text)&&gi&&ue.createElement("div",{className:rt.source},gi),ue.createElement("div",{className:rt.action},ce==null?void 0:ce(mn,lr,{onMenuClick:Za}),!(mn!=null&&mn.imageGenerator)&&ue.createElement(vt.CopyToClipboard,{text:String((mn==null?void 0:mn.text)||""),onCopy:()=>ke.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},ue.createElement(Ee.Z,{title:"\u590D\u5236"},ue.createElement("i",{className:"iconfot icon-fuzhi8 font13"}))),Te&&!ze&&ue.createElement(ue.Fragment,null,ue.createElement(Ee.Z,{title:"\u559C\u6B22"},ue.createElement("i",{style:mn!=null&&mn.like?{color:"#FA8D30"}:{},onClick:()=>za("like",!(mn!=null&&mn.like),lr),className:"iconfot icon-yijiejue font15"})),ue.createElement(Ee.Z,{title:"\u4E0D\u559C\u6B22"},ue.createElement("i",{style:mn!=null&&mn.dislike?{color:"#e86d7c"}:{},onClick:()=>za("dislike",!(mn!=null&&mn.dislike),lr),className:"iconfot icon-weijiejuezhengchang font15"}))),Pr&&!ze&&ue.createElement(Ee.Z,{title:"\u91CD\u65B0\u751F\u6210"},ue.createElement("i",{onClick:()=>ga("redraw",lr),className:"iconfot icon-gengxin-genghuan-tihuan"})))))},za=(mn,lr,Pr)=>bt(void 0,null,function*(){if(_t){const gi=rn.slice(0,Pr+1),wi=ra(gi).length;yield _t({type:mn,value:lr,index:Pr,identifier:Zr,objectIndex:wi})}Vt(gi=>(gi[Pr][mn]=lr,lr&&(gi[Pr][mn==="like"?"dislike":"like"]=!1),[...gi]))}),ds=()=>{var mn,lr;Lr(1),(lr=(mn=on.current)==null?void 0:mn.cancelRequest)==null||lr.call(mn),Xe(!1),xn(!1)},wo=()=>bt(void 0,null,function*(){var mn,lr,Pr;(lr=(mn=on.current)==null?void 0:mn.cancelRequest)==null||lr.call(mn),sr(),Vt([]),Xe(!0);const gi=yield Br();(gi==null?void 0:gi.status)===0&&xr((Pr=gi==null?void 0:gi.data)==null?void 0:Pr.identifier),Xe(!1),xn(!1)}),xo=()=>bt(void 0,null,function*(){var mn;Rt(!0);const lr=yield Ar();(lr==null?void 0:lr.status)===0&&Tr(((mn=lr==null?void 0:lr.data)==null?void 0:mn.list)||[]),Rt(!1)}),Za=(...mn)=>bt(void 0,[...mn],function*(lr=Zr){var Pr,gi,Ti,wi;(gi=(Pr=on.current)==null?void 0:Pr.cancelRequest)==null||gi.call(Pr),sr(),qe(!0);const Ji=yield fi(lr);if(Ji.status===0){const eo=la(((Ti=Ji==null?void 0:Ji.data)==null?void 0:Ti.messages)||[]);Vt(eo),qe(!1),xr((wi=Ji==null?void 0:Ji.data)==null?void 0:wi.identifier);return}Vt([]),qe(!1)}),va=(mn,lr)=>bt(void 0,null,function*(){(yield mi(mn)).status===0&&(ke.ZP.success("\u5220\u9664\u6210\u529F"),lr===Zr&&wo(),xo())}),di=()=>ue.createElement("div",{className:rt.menuWarp},ue.createElement("h4",null,"\u5386\u53F2\u5BF9\u8BDD"),ue.createElement(Me.Z,{spinning:Ct},!Wr.length&&ue.createElement(Pe.Z,{style:{width:250,paddingBottom:30},image:Pe.Z.PRESENTED_IMAGE_SIMPLE}),!!Wr.length&&ue.createElement("div",{className:rt.menu},Wr.map(function(mn,lr){return ue.createElement("aside",{className:et()(Zr===mn.identifier&&rt.active),key:mn.id,onClick:()=>Za(mn.id)},ue.createElement("div",{className:rt.menuText},ue.createElement(Ee.Z,{title:mn==null?void 0:mn.question},ue.createElement("span",null,mn==null?void 0:mn.question)),$n&&$n(mn)),ue.createElement("div",{className:rt.menuDel,onClick:Pr=>Pr.stopPropagation()},ue.createElement(ct.Z,{title:"\u63D0\u793A",description:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u672C\u6761\u5BF9\u8BDD\u5417\uFF1F",onConfirm:()=>va(mn.id,mn.identifier),okText:"\u786E\u8BA4",zIndex:1100,cancelText:"\u53D6\u6D88"},ue.createElement("i",{className:"iconfont icon-shanchu14 delete-hover font14"}))))})))),Ri=mn=>{if(mn==="file"){if(wr.length){be.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u56FE\u7247\uFF0C\u4E0A\u4F20\u6587\u4EF6\u540E\u56FE\u7247\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{Bt([]),pi.current.upload.uploader.fileInput.click()}});return}pi.current.upload.uploader.fileInput.click()}if(mn==="image"){if(zn.length){be.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u6587\u4EF6\uFF0C\u4E0A\u4F20\u56FE\u7247\u540E\u6587\u4EF6\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{Hn([]),li.current.upload.uploader.fileInput.click()}});return}li.current.upload.uploader.fileInput.click()}},ki=[{key:"file",disabled:zn.length>=Ua,label:ue.createElement(Ee.Z,{placement:"right",title:ue.createElement("div",null,ue.createElement("b",null,"\u4E0A\u4F20\u9644\u4EF6\uFF08\u4EC5\u8BC6\u522B\u6587\u5B57\uFF09"),ue.createElement("div",null,"\u6700\u591A 50 \u4E2A\uFF0C\u6BCF\u4E2A 100 MB\uFF0C\u652F\u6301\u5404\u7C7B\u578B\u6587\u6863"))},ue.createElement("span",null,ue.createElement("i",{className:"iconfont icon-fujian3 font14 mr5"}),"\u4E0A\u4F20\u6587\u6863"))},er!=="deepseek-r1"&&{key:"image",disabled:wr.length>=Da,label:ue.createElement(Ee.Z,{placement:"right",title:"\u652F\u6301\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247\uFF0C\u6700\u591A10\u4E2A"},ue.createElement("span",null,ue.createElement("i",{className:"iconfont icon-tupianshangchuan font14 mr5"}),"\u4E0A\u4F20\u56FE\u7247"))}].filter(Boolean),ci=[...zn,...wr],Qi=ci.some(mn=>mn.status==="uploading")||ze||un,ji=An>=Ut,Pa=Dt||zn.length>=Ua||wr.length>=Da,Wa=Rn||dn||Er||pn||!!ci.length,Na={chatData:rn,stream:on,isDisabledNum:ji,checkNumModal:ea,checkNum:Ki,onClose:cr,setChatData:Vt,setLoading:Xe,getData:qi,clearStatus:sr,typing:un,setImageGenerator:Gn,renderChatItems:na,setSceneAwareness:Hr,setIdentifier:xr,setCodePreview:On,setTyping:xn};return ue.createElement(ue.Fragment,null,en?ue.createElement("div",{onClick:ur},en):en!==null&&ue.createElement(it.Z,{draggableExtraNode:wn,src:tn,onClick:ur,topPercentage:nn}),ue.createElement(qn,{open:ai,width:Bi?"100%":yt,afterOpenChange:mn=>{mn&&Kn(!1)},push:!1,contentWrapperStyle:Xn?{}:{transition:"none"},extra:ue.createElement("div",{className:rt.head},_n,ht&&ue.createElement(pt.Z,{value:er,onChange:mn=>{vn(!1),Gn(!1),hr(mn),Bt([]),Hn([])}}),dt&&ue.createElement(ue.Fragment,null,ue.createElement(De.Z,{dropdownRender:di,onOpenChange:mn=>{mn&&xo()},placement:"bottomLeft",arrow:!0},ue.createElement("div",{className:rt.headBtn},ue.createElement("i",{className:"icon-lishiduihua1 font14 mr10"}),"\u5386\u53F2\u5BF9\u8BDD"))),gn&&ue.createElement(ue.Fragment,null,ue.createElement("div",{className:rt.headBtn,onClick:wo},ue.createElement("i",{className:"icon-xinjianduihua font14 mr10"}),"\u65B0\u5EFA\u5BF9\u8BDD")),ue.createElement(Ee.Z,{title:Bi?"\u9000\u51FA\u5168\u5C4F":"\u5168\u5C4F"},ue.createElement("div",{className:rt.headBtn,style:{padding:"0 12px"},onClick:()=>Ur(!Bi)},Bi&&ue.createElement("i",{className:"iconfont icon-tuichuquanping3"}),!Bi&&ue.createElement("i",{className:"iconfont icon-quanping4"})))),title:ue.createElement("span",{className:"c-grey-333 font16"},at),onClose:cr,bodyStyle:{paddingRight:4}},ue.createElement("div",{className:et()(rt.wrap,ai&&"body-overflow-hidden")},ue.createElement("div",{ref:rr,className:rt.chatContainer},fr==null?void 0:fr(Na),le&&ue.createElement("div",{className:`${rt.li} mb20`,style:Ve({width:xi},Zn)},ue.createElement("div",{className:rt.avatarIcon},ue.createElement("img",{className:rt.img,src:$t})),ue.createElement("div",{className:rt.content},ue.createElement("div",{className:rt.borderBox},Qe,St==null?void 0:St(Na)))),ue.createElement("div",{ref:Gr},ue.createElement(Me.Z,{spinning:Je,className:"mt20"},rn==null?void 0:rn.map((mn,lr)=>ue.createElement(ue.Fragment,{key:mn.key+lr},mn.show&&ue.createElement(ue.Fragment,null,mn.sender==="user"&&ko(mn,lr),mn.sender==="AI"&&co(mn,lr),Xt&&!["AI","user"].includes(mn.sender)&&Xt(mn,lr,{width:xi})))))),!Nr&&ue.createElement("div",{className:rt.backBottom,onClick:()=>{rr.current.scrollTop=rr.current.scrollHeight}},ue.createElement("i",{className:"iconfont icon-huidaodibu"})),ue.createElement("div",{ref:vr})),!yn&&ue.createElement("div",{style:br,className:et()(rt.footerContainer,Vn&&rt.full,Wa&&rt.footerContainerSelected)},ue.createElement("div",{className:rt.btnWrp},ar&&ue.createElement(Ee.Z,{title:"\u66F4\u64C5\u957F\u5904\u7406\u4EE3\u7801\u95EE\u9898\uFF0C\u652F\u6301\u4E00\u53E5\u8BDD\u751F\u6210\u5E94\u7528"},ue.createElement("div",{onClick:()=>On(!pn),className:et()(rt.btn,pn&&rt.btnActive)},ue.createElement("i",{className:"iconfont icon-daimamoshi1 mr10 font12"}),"\u4EE3\u7801\u6A21\u5F0F")),Dn&&ue.createElement(Ee.Z,{title:"\u667A\u80FD\u611F\u77E5\u5F53\u524D\u60C5\u5883\uFF0C\u63D0\u4F9B\u9488\u5BF9\u6027\u89E3\u7B54"},ue.createElement("div",{onClick:()=>Hr(!Er),className:et()(rt.btn,Er&&rt.btnActive)},ue.createElement("i",{className:"iconfont icon-changjingganzhi mr10 font12"}),"\u573A\u666F\u611F\u77E5")),er==="deepseek-r1"&&ue.createElement(Ee.Z,{title:"\u8C03\u7528\u65B0\u6A21\u578B DeepSeek-R1\uFF0C\u89E3\u51B3\u63A8\u7406\u95EE\u9898"},ue.createElement("div",{onClick:()=>vn(!dn),className:et()(rt.btn,dn&&rt.btnActive)},ue.createElement("i",{className:"iconfont icon-shendusikao mr10 font12"}),"\u6DF1\u5EA6\u601D\u8003\uFF08R1\uFF09")),Le&&er==="qwen-max"&&ue.createElement("div",{onClick:()=>Gn(!Rn),className:et()(rt.btn,Rn&&rt.btnActive)},ue.createElement("i",{className:"iconfont icon-shangchuantupian2 mr10 font12"}),"\u56FE\u50CF\u751F\u6210"),ci.map(mn=>ue.createElement("div",{key:mn.uid},(mn==null?void 0:mn.status)==="uploading"&&ue.createElement(Me.Z,{indicator:ue.createElement(st.Z,{rev:"",spin:!0}),className:"mr10",size:"small",spinning:!0}),ue.createElement("span",{title:mn==null?void 0:mn.name,className:"mr10"},(0,ft.Pq)(mn.name,20)),ue.createElement("i",{onClick:()=>{Hn(lr=>lr.filter(Pr=>Pr.uid!==mn.uid)),Bt(lr=>lr.filter(Pr=>Pr.uid!==mn.uid))},className:"iconfont current icon-shanchu15 delete-hover c-red-ee4 font12"})))),ue.createElement(Ee.Z,{title:ji&&ue.createElement("div",null,ue.createElement("div",null,"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),ue.createElement("div",null,"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F",Ut,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))},ue.createElement("div",{className:et()(rt.inputContainer,oa>4&&rt.lineFour,ji&&rt.disabledInput)},ue.createElement(nt.default,Ve({ref:pi},Wi)),ue.createElement(nt.default,Ve({ref:li},ma)),ue.createElement(De.Z,{className:`${Pa&&"hide"}`,menu:{items:ki,onClick:mn=>Ri(mn.key)},placement:"top"},ue.createElement(xe.ZP,{className:rt.uploadBtn,icon:ue.createElement(Ie.Z,{rev:"",style:{fontSize:18,color:"#FFF"}})})),ue.createElement(he.default.TextArea,{rows:oa>4?4:oa,placeholder:lt||"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u7684\u95EE\u9898\u5427\uFF0CShift+Enter\u6362\u884C\uFF5E",value:ln,bordered:!1,style:Pa?{paddingLeft:0,marginLeft:0}:{},onChange:ia,onPressEnter:Ra,onFocus:()=>jn==null?void 0:jn(),onCompositionStart:()=>{$i.current=!0},onCompositionEnd:()=>{$i.current=!1}}),un?ue.createElement(Ee.Z,{title:"\u505C\u6B62\u751F\u6210"},ue.createElement("div",{className:`iconfont icon-tingzhihuida ${rt.cancelBtn}`,onClick:ds})):ue.createElement(xe.ZP,{className:(ln==null?void 0:ln.trim())===""?rt.sendBtnDisabled:rt.sendBtn,icon:ue.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:Qi,onClick:Va}),oa>4&&ue.createElement("span",{className:rt.fullIcon,onClick:Or},Vn&&ue.createElement("span",{className:"iconfont icon-shousuo"}),!Vn&&ue.createElement("span",{className:"iconfont icon-zhankai"}))))))))}},96938:function(fn,Wt,oe){"use strict";oe.d(Wt,{t:function(){return De}});var ue=oe(59301),Ae=oe(3113),ke={buttonFixed:"buttonFixed___vyq30",button:"button___hxmYv",buttonWrap:"buttonWrap___uK8dl"},nt=oe(92310),be=oe.n(nt),Ee=Object.defineProperty,he=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,Pe=(Fe,et,We)=>et in Fe?Ee(Fe,et,{enumerable:!0,configurable:!0,writable:!0,value:We}):Fe[et]=We,ct=(Fe,et)=>{for(var We in et||(et={}))xe.call(et,We)&&Pe(Fe,We,et[We]);if(he)for(var We of he(et))Me.call(et,We)&&Pe(Fe,We,et[We]);return Fe};const De=({cancelText:Fe="\u53D6\u6D88",okText:et="\u786E\u5B9A",loading:We=!1,hasOkBtn:je=!0,hasCancelBtn:pt=!0,okButtonProps:rt={},onCancel:kt=()=>{},onOk:ft=()=>{},className:it=""})=>ue.createElement("div",{className:be()(ke.buttonFixed,it)},ue.createElement("div",{className:ke.buttonWrap},pt&&ue.createElement(Ae.ZP,{size:"middle",className:`${ke.button} mr20`,onClick:kt},Fe),je&&ue.createElement(Ae.ZP,ct({size:"middle",type:"primary",className:`${ke.button} mr20`,loading:We,onClick:ft},rt),et)))},15868:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return ct}});var ue=oe(59301),Ae={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},ke=oe(92310),nt=oe.n(ke),be=oe(71418),Ee=oe(2859),he=oe(79769),xe=oe(25544),Me=(De,Fe,et)=>new Promise((We,je)=>{var pt=ft=>{try{kt(et.next(ft))}catch(it){je(it)}},rt=ft=>{try{kt(et.throw(ft))}catch(it){je(it)}},kt=ft=>ft.done?We(ft.value):Promise.resolve(ft.value).then(pt,rt);kt((et=et.apply(De,Fe)).next())}),ct=({data:De,className:Fe,fullWidth:et,style:We={},onClose:je,onOk:pt,showFullTools:rt,noAssociationId:kt})=>{const ft=(0,ue.useRef)(null),it=(0,ue.useRef)(null),He=(0,ue.useRef)(null),Se=(0,ue.useRef)(null),[Ke,Ue]=(0,ue.useState)(!1),[vt,Ye]=(0,ue.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ue.useEffect)(()=>{He.current||(He.current=document.createElement("style"),document.head.appendChild(He.current)),De!=null&&De.visible?(document.body.setAttribute("data-custom","y-hidden"),He.current.innerHTML=" html { overflow-y: hidden; }",De!=null&&De.src&&st()):(document.body.removeAttribute("data-custom"),He.current&&(document.head.removeChild(He.current),He.current=null))},[De==null?void 0:De.visible]);const st=()=>Me(void 0,null,function*(){Ue(!0),Ye("\u6B63\u5728\u52A0\u8F7D\u4E2D");const wt=yield(0,xe.ZJ)(De==null?void 0:De.src);ft.current.src="",ft.current.src=wt,ft.current.onload=function(){Ot()},Ue(!1),Ye("")}),Ie=()=>{document.body.removeAttribute("data-custom"),He.current.innerHTML=" ",je()},Mt=wt=>Me(void 0,null,function*(){Ue(!0),Ye("\u6B63\u5728\u4FDD\u5B58\u4E2D");const At=yield(0,he.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:De.title,file:wt.dataUrl}});At!=null&&At.id&&!kt?(yield(0,he.ZP)(`/api/attachments/${De.id}/add_subitem.json`,{method:"post",body:{subitem_id:At==null?void 0:At.id,settings:JSON.stringify(wt.state)}})).status===0&&pt():At!=null&&At.id&&pt(At),document.body.removeAttribute("data-custom"),He.current.innerHTML=" ",Ue(!1),Ye("")}),Ge=()=>{const wt=document.querySelector('a[href="https://markerjs.com/"]');wt&&wt.parentNode&&(wt.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(Nt=>{const Tt=document.querySelector(Nt.name);Tt&&Tt.setAttribute("title",Nt.title)})},Ot=()=>{it.current=new Ee.hP(ft.current),it.current.targetRoot=Se.current,it.current.addEventListener("render",Mt),it.current.addEventListener("beforeclose",Ie),rt&&(it.current.availableMarkerTypes=it.current.ALL_MARKER_TYPES,it.current.uiStyleSettings.redoButtonVisible=!0,it.current.uiStyleSettings.notesButtonVisible=!0,it.current.uiStyleSettings.zoomButtonVisible=!0,it.current.uiStyleSettings.zoomOutButtonVisible=!0,it.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=it.current.uiStyleSettings,it.current.show(),De!=null&&De.snapshotData&&it.current.restoreState(De.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ge()},300)};return ue.createElement(ue.Fragment,null,(De==null?void 0:De.visible)&&ue.createElement(be.Z,{spinning:Ke,tip:vt,style:{position:"absolute"}},ue.createElement("div",{ref:Se,className:nt()(Ae.imageDimensions,Fe,et?Ae.fullWidth:""),style:We},ue.createElement("img",{className:Ae.img,ref:ft}))))}},3315:function(fn,Wt,oe){"use strict";var ue=oe(59301),Ae=oe(95237),ke=oe(43604),nt=oe(99313),be=oe(3113),Ee=oe(39655),he=oe(18760),xe=oe(48136),Me=oe(59301);const Pe=(0,ue.forwardRef)(({callback:ct,showSaveButton:De,value:Fe=""},et)=>{const We=(0,ue.useRef)(),je=[{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 "}]}]}],pt=[{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}`}]}]}],rt=it=>{We.current.setValue(We.current.getValue()+" "+it.value+" ")},kt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Me.createElement(Ae.Z,{className:he.Z.lists,gutter:[10,10]},je.map((it,He)=>Me.createElement(ke.Z,{flex:"110px",className:he.Z.item},Me.createElement("div",null,Me.createElement(Ee.Z,{value:`$$${it.value}$$`}),it.name),Me.createElement("div",{className:he.Z.children},it.children.map((Se,Ke)=>Me.createElement("div",{key:Ke},Me.createElement("h1",null,Se.name),Me.createElement(Ae.Z,{gutter:[10,10]},Se.data.map((Ue,vt)=>Me.createElement(ke.Z,{key:vt,onClick:()=>rt(Ue),className:he.Z.diamond},Me.createElement(Ee.Z,{value:"`$$"+Ue.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Me.createElement(Ae.Z,{className:he.Z.lists,gutter:[10,10]},pt.map((it,He)=>Me.createElement(ke.Z,{flex:"110px",className:he.Z.item},Me.createElement("div",null,Me.createElement(Ee.Z,{value:"`$$"+it.value+"$$`"}),it.name),Me.createElement("div",{className:he.Z.children},it.children.map((Se,Ke)=>Me.createElement("div",{key:Ke},Se.name&&Me.createElement("h1",null,Se.name),Me.createElement(Ae.Z,{gutter:[10,10]},Se.data.map((Ue,vt)=>Me.createElement(ke.Z,{key:vt,onClick:()=>rt(Ue),className:he.Z.diamond},Me.createElement(Ee.Z,{value:"`$$"+Ue.value+"$$`"}))))))))))}],ft=()=>{var it=document.createElement("div");it.innerHTML=We.current.getValue();var He=it.innerText;return ct&&ct(He),He};return(0,ue.useImperativeHandle)(et,()=>({getData:ft})),Me.createElement("div",{className:he.Z.mathWrap},Me.createElement(nt.default,{defaultActiveKey:"1",items:kt}),Me.createElement("math-field",{locale:"zh_cn",className:he.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:We,style:{width:800,marginTop:30,fontSize:18}},Fe||""),De&&Me.createElement("div",{className:he.Z.button},Me.createElement(be.ZP,{size:"large",onClick:ft,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Wt.Z=Pe},67831:function(fn,Wt,oe){"use strict";oe.d(Wt,{h:function(){return it}});var ue=oe(59301),Ae=oe(57809),ke=oe(78241),nt=oe(3113),be=oe(89780),Ee=oe.n(be),he=oe(14618),xe=oe(66552),Me=Object.defineProperty,Pe=Object.defineProperties,ct=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,We=(He,Se,Ke)=>Se in He?Me(He,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):He[Se]=Ke,je=(He,Se)=>{for(var Ke in Se||(Se={}))Fe.call(Se,Ke)&&We(He,Ke,Se[Ke]);if(De)for(var Ke of De(Se))et.call(Se,Ke)&&We(He,Ke,Se[Ke]);return He},pt=(He,Se)=>Pe(He,ct(Se));const rt=Ae.default.Option,kt={labelCol:{span:4},wrapperCol:{span:20}},ft={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"]};Wt.Z=({callback:He,onCancel:Se})=>{const[Ke,Ue]=(0,ue.useState)("python");function vt(st){Ue(ft[st][1])}function Ye(st){He(st)}return ue.createElement(ke.default,pt(je({},kt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ye,style:{width:500}}),ue.createElement(ke.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ue.createElement(Ae.default,{getPopupContainer:st=>st.parentNode,onChange:vt},Object.keys(ft).map(st=>ue.createElement(rt,{key:st,value:st},ft[st][0])))),ue.createElement(ke.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ue.createElement(it,{mode:Ke})),ue.createElement("div",{className:"flex-container flex-end"},ue.createElement(nt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ue.createElement(nt.ZP,{type:"ghost",onClick:Se},"\u53D6\u6D88")))};function it({value:He,onChange:Se,mode:Ke,options:Ue={}}){const vt=(0,ue.useRef)(),[Ye,st]=(0,ue.useState)();return(0,ue.useEffect)(()=>{if(Ye){let Ie=function(Mt){const Ge=Mt.getValue();Se&&Se(Ge)};return Ye.on("change",Ie),()=>{Ye.off("change",Ie)}}},[Ye,Se]),(0,ue.useEffect)(()=>{Ye&&Ye.setOption("mode",Ke)},[Ye,Ke]),(0,ue.useEffect)(()=>{Ye&&(He!==Ye.getValue()||He==="")&&setTimeout(()=>{Ye.setValue(He||"")},300)},[Ye,He]),(0,ue.useEffect)(()=>{if(vt.current&&!Ye){const Ie=Ee().fromTextArea(vt.current,je({mode:Ke,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ue));st(Ie)}},[vt.current,Ye]),ue.createElement("div",{className:"my-codemirror-container"},ue.createElement("textarea",{ref:vt}))}},40973:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return ti}});var ue=oe(59301),Ae=oe(89780),ke=oe.n(Ae),nt=oe(76374),be=oe(14618),Ee=oe(6313),he=oe(25717),xe=oe(99498),Me=oe(25419),Pe=oe(67549),ct=oe(39655),De=({value:er="",className:hr,showTextOnly:zn,showLines:Hn,style:wr={}})=>{const Bt=(0,ue.useMemo)(()=>"",[er]);return ue.createElement(ue.Fragment,null,ue.createElement("div",{dangerouslySetInnerHTML:{__html:Bt}}))},Fe=oe(59301),et=Object.defineProperty,We=Object.defineProperties,je=Object.getOwnPropertyDescriptors,pt=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable,ft=(er,hr,zn)=>hr in er?et(er,hr,{enumerable:!0,configurable:!0,writable:!0,value:zn}):er[hr]=zn,it=(er,hr)=>{for(var zn in hr||(hr={}))rt.call(hr,zn)&&ft(er,zn,hr[zn]);if(pt)for(var zn of pt(hr))kt.call(hr,zn)&&ft(er,zn,hr[zn]);return er},He=(er,hr)=>We(er,je(hr));let Se=[{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 Ke({onActionCallback:er,title:hr,icon:zn,actionName:Hn,className:wr="",children:Bt}){function ze(){er(Hn)}return Fe.createElement("a",{title:hr,className:wr,onClick:ze},Fe.createElement("i",{className:`${zn}`}),Bt)}var Ue=({watch:er,showNullButton:hr,showNullProgramButton:zn,onActionCallback:Hn,fullScreen:wr,insertTemp:Bt,hidetoolBar:ze,extraUse:Xe})=>{const Je=[...Se,{title:`${er?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${er?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Fe.createElement("ul",{className:"markdown-toolbar-container"},!ze&&Je.map((qe,Ct)=>Fe.createElement("li",{key:Ct},qe.actionName?Fe.createElement(Ke,He(it({},qe),{onActionCallback:Hn})):Fe.createElement("span",{className:"v-line"}))),hr?Fe.createElement("li",null,Fe.createElement(Ke,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Hn},Fe.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,zn?Fe.createElement(Fe.Fragment,null,Fe.createElement("li",null,Fe.createElement(Ke,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Hn},Fe.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Fe.createElement("li",null,Fe.createElement(Ke,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Hn},Fe.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Bt&&Fe.createElement("li",null,Fe.createElement(Ke,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Bt}`,onActionCallback:Hn},Fe.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Xe&&Fe.createElement("li",null,Xe),Fe.createElement("li",{className:"btn-full-screen"},Fe.createElement(Ke,{icon:`${wr?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:wr?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Hn})))},vt=oe(53531),Ye=oe(78241),st=oe(92832),Ie=oe(3113),Mt=Object.defineProperty,Ge=Object.defineProperties,Ot=Object.getOwnPropertyDescriptors,wt=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,Tt=(er,hr,zn)=>hr in er?Mt(er,hr,{enumerable:!0,configurable:!0,writable:!0,value:zn}):er[hr]=zn,Ve=(er,hr)=>{for(var zn in hr||(hr={}))At.call(hr,zn)&&Tt(er,zn,hr[zn]);if(wt)for(var zn of wt(hr))Nt.call(hr,zn)&&Tt(er,zn,hr[zn]);return er},ye=(er,hr)=>Ge(er,Ot(hr));const bt={labelCol:{span:4},wrapperCol:{span:20}};var Qt=({callback:er,onCancel:hr})=>{function zn(Hn){er(Hn)}return ue.createElement(Ye.default,ye(Ve({},bt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:zn,style:{width:500}}),ue.createElement(Ye.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ue.createElement(st.default,null)),ue.createElement(Ye.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ue.createElement(st.default,null)),ue.createElement("div",{className:"flex-container flex-end"},ue.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ue.createElement(Ie.ZP,{type:"ghost",onClick:hr},"\u53D6\u6D88")))},Kt=oe(67831),at=oe(58448),lt=oe(43418),Dt=oe(95237),yn=oe(15868),$t=oe(59301),hn=({callback:er,onCancel:hr})=>{const zn=document.createElement("canvas"),Hn=zn.getContext("2d");zn.width=1e3,zn.height=800,Hn.fillStyle="#ffffff",Hn.fillRect(0,0,zn.width,zn.height);const wr=zn.toDataURL("image/png");return $t.createElement(lt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},$t.createElement(Dt.Z,{style:{height:"100vh"}},$t.createElement(yn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:wr,visible:!0,title:String(Date.now())},onOk:Bt=>{er({src:Bt.url})},onClose:hr})))},tn=oe(8591),en=oe(43428),Gt=oe(43604),ve={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ce=oe(59301),de=(0,ue.forwardRef)(({onCancel:er,editImgId:hr,callback:zn},Hn)=>{let wr=(0,ue.useRef)(),Bt=(0,ue.useRef)(),ze=(0,ue.useRef)(),Xe=(0,ue.useRef)(!1);const Je=(0,ue.useRef)(!1);console.log("ref:",Hn);const[qe,Ct]=(0,ue.useState)(0),[Rt,rn]=(0,ue.useState)("100vh");(0,ue.useEffect)(()=>{Ct(1);try{indexedDB.databases().then(Cn=>{Cn.forEach(An=>indexedDB.deleteDatabase(An.name))})}catch(Cn){}},[]),(0,ue.useEffect)(()=>(window.addEventListener("message",ln),()=>{window.removeEventListener("message",ln)}),[]),(0,ue.useImperativeHandle)(Hn,()=>({setHeight:rn}));const Vt=Cn=>{window.saveDrawData(An=>{if(An===null&&!Cn){tn.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}tn.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),zn({src:`/api/attachments/${An}`,id:An,disabledClose:!0})})},ln=Cn=>{var An;((An=Cn==null?void 0:Cn.data)==null?void 0:An.type)==="closePop"&&Vt(!0)};return ce.createElement("div",{ref:Je,className:"body-overflow-initial"},ce.createElement(en.Z,{width:"100vw",height:Rt,footer:null,closable:!0,placement:"bottom",open:!!qe,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ve.drawerWrap}`,onClose:()=>{window.saveDrawData(Cn=>{zn({src:`/api/attachments/${Cn}`,id:Cn})})},title:ce.createElement(Dt.Z,{align:"middle"},ce.createElement(Gt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ce.createElement(Gt.Z,{onClick:()=>{rn(Rt==="60px"?"100vh":"60px")}},ce.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),ce.createElement(Gt.Z,{onClick:Vt},ce.createElement(Ie.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},ce.createElement("iframe",{src:`${window.ENV==="build"?"/react/build":""}/drawio/src/main/webapp/?id=${hr||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Bt})))}),pe=oe(6521),ae=oe(5112),Te=oe(5871);const gt=ae.ZP.Group,Re={margin:"0 8px"};var Be=({callback:er,onCancel:hr})=>{function zn(Hn){er(Hn)}return ue.createElement(Ye.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:zn},ue.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ue.createElement("span",{style:Re},"\u5355\u5143\u683C\u6570\uFF1A"),ue.createElement("span",{style:Re},"\u884C\u6570"),ue.createElement(Ye.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ue.createElement(Te.Z,null)),ue.createElement("span",{style:Re},"\u5217\u6570"),ue.createElement(Ye.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ue.createElement(Te.Z,null))),ue.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ue.createElement("span",{style:Re},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ue.createElement(Ye.default.Item,{name:"align"},ue.createElement(gt,null,ue.createElement(ae.ZP,{value:"default"},ue.createElement("i",{className:"fa fa-align-justify"})),ue.createElement(ae.ZP,{value:"left"},ue.createElement("i",{className:"fa fa-align-left"})),ue.createElement(ae.ZP,{value:"center"},ue.createElement("i",{className:"fa fa-align-center"})),ue.createElement(ae.ZP,{value:"right"},ue.createElement("i",{className:"fa fa-align-right"}))))),ue.createElement("div",{className:"flex-container flex-end"},ue.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ue.createElement(Ie.ZP,{type:"ghost",onClick:hr},"\u53D6\u6D88")))},yt=oe(78673),ut=oe(3352),Qe=oe.n(ut),Jt=(0,ue.forwardRef)(({use3d:er,width:hr,height:zn,callback:Hn,showSaveButton:wr},Bt)=>{const ze=(0,ue.useRef)(),Xe=(0,ue.useRef)(),[Je,qe]=(0,ue.useState)(!1),Ct=(0,ue.useRef)({id:ze,appName:"graphing",width:hr||1e3,height:zn||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ue.useEffect)(()=>{Xe.current=new(Qe())(Ct.current,!0),window.onload=function(){Xe.current.inject("applet_container")}},[]);const Rt=()=>{var rn=window.ggbApplet.getPNGBase64(1,!0,72);return Hn&&Hn(rn),rn};return(0,ue.useEffect)(()=>{Ct.current.appName=Je?"3D":"graphing",Xe.current.inject("applet_container")},[Je]),(0,ue.useEffect)(()=>{qe(er)},[er]),(0,ue.useImperativeHandle)(Bt,()=>({getImgData:Rt})),ue.createElement(ue.Fragment,null,ue.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:ze}),ue.createElement(Dt.Z,{align:"middle"},ue.createElement(Gt.Z,{flex:1},ue.createElement(yt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Je,onChange:rn=>qe(rn)})),ue.createElement(Gt.Z,null,ue.createElement(Ie.ZP,{size:"large",onClick:Rt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),mt=oe(3315),Ft=oe(1012);const nn="link",ht="upload-image",Le="add-flowchart",dt="draw-image",Pt="add-flowchart",_t="code-block",Xt="add-table",gn="------------",En={default:gn,left:`:${gn}`,center:`:${gn}:`,right:`${gn}:`};var wn=oe(57649),_n=(er,hr,zn)=>new Promise((Hn,wr)=>{var Bt=Je=>{try{Xe(zn.next(Je))}catch(qe){wr(qe)}},ze=Je=>{try{Xe(zn.throw(Je))}catch(qe){wr(qe)}},Xe=Je=>Je.done?Hn(Je.value):Promise.resolve(Je.value).then(Bt,ze);Xe((zn=zn.apply(er,hr)).next())});function $n(){}let Dn=0;const qn=1e4,fr="\u2581",br="@\u2581\u2581@",Zn="@\u2581@",ar=`
|
|
|
**\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`,Cr=["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 jn(er){return/^\d+$/.test(er)?`${er}px`:er}const ei=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Fr={[ei+"-B"]:"bold",[ei+"-I"]:"italic"},ai={[nn]:"\u6DFB\u52A0\u94FE\u63A5",[_t]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[ht]:"\u6DFB\u52A0\u56FE\u7247",[dt]:"\u6DFB\u52A0\u753B\u56FE",[Le]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Xt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var ti=({defaultValue:er="",onChange:hr,width:zn="100%",height:Hn=400,miniToolbar:wr=!1,isFocus:Bt=!1,watch:ze,insertTemp:Xe,mode:Je="markdown",id:qe="markdown-editor-id",showResizeBar:Ct=!1,noStorage:Rt=!1,showNullButton:rn=!1,showNullProgramButton:Vt=!1,hidetoolBar:ln=!1,fullScreen:Cn=!1,onBlur:An,onCMBeforeChange:Tn,onFullScreen:Ut,className:bn="",disablePaste:Vn=!1,disabled:Fn=!1,disabledFill:Jn=!1,placeholder:Wn="",values:mr="",extraUse:Bn,onAddBlank:rr})=>{const[It,on]=(0,ue.useState)(null),[un,xn]=(0,ue.useState)(er),[dn,vn]=(0,ue.useState)(ze),[pn,On]=(0,ue.useState)(Cn),[Rn,Gn]=(0,ue.useState)(""),[Er,Hr]=(0,ue.useState)(0),[Xr,Lr]=(0,ue.useState)(Hn),[vr,Jr]=(0,ue.useState)(!1),Gr=(0,ue.useRef)((0,Ft.Z)()),Zr=(0,ue.useRef)(!1),xr=(0,ue.useRef)(),[Nr,Qr]=(0,ue.useState)(0),[Kr,hi]=(0,ue.useState)(0),Bi=(0,ue.useRef)(),Ur=(0,ue.useRef)(),Xn=(0,ue.useRef)(),Kn=(0,ue.useRef)(),Wr=(0,ue.useRef)(),Tr=(0,ue.useRef)(),ri=()=>_n(void 0,null,function*(){var sr;const ur=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Gr.current}});(sr=ur==null?void 0:ur.attachments)!=null&&sr.length&&(console.log("cm:",It,Bi),ur.attachments.map(cr=>{cr.content_type.indexOf("image")>-1?It.replaceSelection(``):cr.content_type.indexOf("video")>-1?It.replaceSelection(`<video width="100%" controls src="${pe.Z.API_SERVER}/api/attachments/${data.id}"></video>`):cr.content_type.indexOf("pdf")>-1?It.replaceSelection(`<a href="${pe.Z.API_SERVER}/api/attachments/${cr.id}?type=${cr.content_type}&disposition=inline" target="_blank">${cr.name}</a>`):It.replaceSelection(`[${cr.name}](${pe.Z.API_SERVER}/api/attachments/${cr.id}?type=${cr.content_type})`)}))});(0,ue.useEffect)(()=>{const sr=window.scrollY||window.pageYOffset;xn(mr),It==null||It.setValue(mr),window.scrollTo(0,sr)},[mr]),(0,ue.useEffect)(()=>{Ut==null||Ut(pn)},[pn]),(0,ue.useEffect)(()=>{if(Bi.current){let sr=function(cr,Or){var Ki;if(Vn){Or.preventDefault();return}const ea=Or.clipboardData;if(ea){const ra=ea.types.toString(),qi=ea.items;if(ra==="Files"||ea.types.indexOf("Files")>-1){if(Or.preventDefault(),Je=="stex")return;try{let ia=qi[1];((Ki=qi[0])==null?void 0:Ki.kind)==="file"&&(ia=qi[0]);const ga=ia.getAsFile(),Va=ga.name.split(".").pop();(0,at.I)(ga,Ra=>{var ko,co,za;Ra.id?((ko=ga==null?void 0:ga.type)==null?void 0:ko.indexOf("image"))>-1?ur.replaceSelection(`<img width="100%" src="/api/attachments/${Ra.id}?type=${Ra.content_type})" alt="" />`):((co=ga==null?void 0:ga.type)==null?void 0:co.indexOf("video"))>-1?ur.replaceSelection(`<video width="100%" controls src="/api/attachments/${Ra.id}"></video>`):((za=ga==null?void 0:ga.type)==null?void 0:za.indexOf("pdf"))>-1?ur.replaceSelection(`<a href="/api/attachments/${Ra.id}?type=${ga.type}&disposition=inline" target="_blank">${ga.name}</a>`):Cr.includes(Va)?ur.replaceSelection(`<a href="/api/attachments/${Ra.id}?type=office&disposition=inline" target="_blank">${ga.name}</a>`):ur.replaceSelection(`[${ga.name}](/api/attachments/${Ra.id}?type=${Ra.content_type})`):(Ra==null?void 0:Ra.status)===401&&(tn.ZP.warning((Ra==null?void 0:Ra.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(ia){tn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const ur=ke().fromTextArea(Bi.current,{mode:Je,lineNumbers:!wr,lineWrapping:!0,value:er,autoCloseTags:!Vt,autoCloseBrackets:!0});return ur.on("keyup",function(cr,Or){Or.keyCode===8&&(cr.getValue()==""?ur.setOption("placeholder",Wn):ur.setOption("placeholder",null))}),ur.on("keydown",function(cr,Or){if(Or.keyCode===8){var Ki=li(cr);Ki&&Or.preventDefault()}}),Bt&&ur.focus(),ur.on("paste",sr),ur.on("dragleave",function(cr,Or){Ur.current.classList.remove("mouse-hover-md")}),Fn&&ur.on("beforeChange",function(cr,Or){(Or.origin==="paste"||Or.origin==="+input")&&Or.cancel()}),on(ur),()=>{ur.off("paste",sr)}}},[]);const pi=(0,ue.useCallback)(()=>{if(Ur.current)try{}catch(sr){console.log(sr,"---- to set md editor body height")}},[Xr,Ur,pn]);(0,ue.useEffect)(()=>{function sr(){let ur=new nt.Z(cr=>{for(let Or of cr)(Or.target.offsetHeight>0||Or.target.offsetWidth>0)&&(pi(),It.setSize("100%","100%"),It.refresh())});return ur.observe(Bi.current.parentElement),ur}if(It){const ur=sr();return()=>{var cr,Or;(cr=Bi.current)!=null&&cr.parentElement&&ur.unobserve((Or=Bi.current)==null?void 0:Or.parentElement)}}},[It,pi]),(0,ue.useEffect)(()=>{if(It){let sr=[];for(const[ur,cr]of Object.entries(Fr)){let Or={[ur]:()=>{$i(cr)}};sr.push(Or),It.addKeyMap(Or)}return xr.current=setInterval(()=>{Zr.current&&ri()},4e3),()=>{clearInterval(xr.current);for(let ur of sr)It.removeKeyMap(ur)}}},[It]),(0,ue.useEffect)(()=>{Cn!==pn&&On(Cn)},[Cn]),(0,wn.Z)(()=>{if(!Rt&&Er>0){let sr=new Date().getTime(),ur=window.sessionStorage.getItem(qe);sr>=Er+qn&&(!ur||ur!==un)&&(window.sessionStorage.setItem(qe,un),Jr(!0))}},qn),(0,ue.useEffect)(()=>{vn(ze)},[It,ze]),(0,ue.useEffect)(()=>{It&&Bt&&It.focus()},[It,Bt]),(0,ue.useEffect)(()=>{if(dn&&It){let sr=function(cr){let Or=cr.target;if(Kn.current){let Ki=Or.scrollTop/Or.scrollHeight;Kn.current.scrollTop=Kn.current.scrollHeight*Ki}};const ur=It.getScrollerElement();return ur.addEventListener("scroll",sr),()=>{ur.removeEventListener("scroll",sr)}}},[It,dn]),(0,ue.useEffect)(()=>{if(It&&Tn){let sr=function(ur,cr){Tn(ur,cr)};return It.on("beforeChange",sr),()=>{It.off("beforeChange",sr)}}},[It,Tn]),(0,ue.useEffect)(()=>{if(It&&An){let sr=function(){An(It.getValue())};return It.on("blur",sr),()=>{It.off("blur",sr)}}},[It,An]);function li(sr,ur){var cr=sr.getDoc(),Or=cr.getCursor(),Ki=cr.getLine(Or.line),ea=Ki.charAt(Or.ch-1),ra=Ki.lastIndexOf("@\u2581@",Or.ch),qi=Ki.lastIndexOf("@\u2581\u2581@",Or.ch),ia=ra>qi?ra:qi,ga=ra>qi?3:4;if(br.indexOf(ea)===-1)return null;if(console.log("change1:",ur,sr,Ki,Or,ia,ra,qi,ea),ia>=0&&Or.ch-ia<5){var Va=ia+ga;return cr.replaceRange("",{line:Or.line,ch:ia},{line:Or.line,ch:Va}),{line:Or.line,ch:Va}}return null}(0,ue.useEffect)(()=>{if(It){let sr=function(ur,cr){const Or=ur.getValue();xn(Or),Hr(new Date().getTime()),ur.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),hr&&(Vt?hr(Or,Ua(Or)):hr(Or))};return It.on("change",sr),()=>{It.off("change",sr)}}},[It,hr]),(0,ue.useEffect)(()=>{if(It)if(er==null)It.setValue(""),xn("");else{const sr=window.scrollY||window.pageYOffset;er!==It.getValue()&&(It.setValue(er),xn(er),It.setCursor(Fn?1:It.lineCount(),0),window.scrollTo(0,sr))}},[It,er]);const $i=(0,ue.useCallback)(sr=>{const ur=It.getCursor(),cr=It.getSelection();let Or=cr.split(`
|
|
|
`);switch(sr){case"bold":return It.replaceSelection("**"+cr+"**"),cr===""&&It.setCursor(ur.line,ur.ch+2),It.focus();case"italic":return It.replaceSelection("*"+cr+"*"),cr===""&&It.setCursor(ur.line,ur.ch+1),It.focus();case"code":return It.replaceSelection("`"+cr+"`"),cr===""&&It.setCursor(ur.line,ur.ch+1),It.focus();case"inline-latex":return Gn("inline-latex"),It.focus();case"latex":return It.replaceSelection("```latex\n"+cr+"\n```"),It.setCursor(ur.line+1,cr.length+1),It.focus();case"line-break":return It.replaceSelection(`<br/>
|
|
|
`),It.focus();case"list-ul":return cr===""?It.replaceSelection("- "+cr):It.replaceSelection(Or.map(Ki=>Ki===""?"":`- ${Ki}`).join(`
|
|
|
`)),It.focus();case"list-ol":return cr===""?It.replaceSelection("1. "+cr):It.replaceSelection(Or.map((Ki,ea)=>Ki===""?"":`${ea+1}. ${Ki}`).join(`
|
|
|
`)),It.focus();case"add-null-ch":rr==null||rr();return;case"add-signal":return cr===""&&It.setCursor(ur.line,ur.ch),It.replaceSelection(Zn),It.focus();case"add-multiple":return cr===""&&It.setCursor(ur.line,ur.ch),It.replaceSelection(br),It.focus();case"inster-template-1":return cr===""&&It.setCursor(ur.line,ur.ch),It.replaceSelection(ar),It.focus();case"eraser":return It.setValue(""),It.focus();case"trigger-watch":return vn(!dn),It.focus();case"trigger-full-screen":return On(!pn),It.focus();case nn:Gn(nn);return;case _t:Gn(_t);return;case ht:Gn(ht);return;case dt:Gn(dt);return;case"maths-latex":Gn("maths-latex");return;case Le:Wr.current="",sessionStorage.removeItem("file_id"),Gn(Le);return;case Xt:Gn(Xt);return;default:throw new Error}},[It,dn,pn]),xi=(0,ue.useCallback)((sr,ur)=>{var cr,Or,Ki,ea,ra,qi;Gn("");const{src:ia,alt:ga,id:Va}=sr||{};switch(Rn){case nn:const{title:ds,link:wo}=sr;return It.replaceSelection(`[${ds}](${wo})`),It.focus();case _t:const{language:xo,content:Za}=sr;return It.replaceSelection(["```"+xo,Za,"```"].join(`
|
|
|
`)),It.focus();case"maths-latex":for(var Ra=atob(sr),ko=new Uint8Array(Ra.length),co=0;co<Ra.length;co++)ko[co]=Ra.charCodeAt(co);var za=new Blob([ko],{type:"image/png"});(0,at.I)(za,ji=>{ji.id?It.replaceSelection(``):(ji==null?void 0:ji.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":It.replaceSelection("`$$"+sr+"$$`");break;case Pt:if(!Va)return;It.focus(),It.getValue().indexOf(ia)===-1?It.replaceSelection(`<center><img id="${Va}" width="80%" src="${ia}" class="draw-flowchart" alt="${ga||""}" /></center>`):document.getElementById(Va).src=pe.Z.API_SERVER+ia+"?t="+Date.now();try{setTimeout(()=>{An(It.getValue())},100)}catch(ji){}break;case ht:case dt:const va=ur,di=(Ki=(Or=(cr=va==null?void 0:va.name)==null?void 0:cr.split("."))==null?void 0:Or.pop)==null?void 0:Ki.call(Or);return((ea=va==null?void 0:va.type)==null?void 0:ea.indexOf("image"))>-1||!(va!=null&&va.type)?va!=null&&va.align||va!=null&&va.width?It.replaceSelection(`<p style="text-align:${va.align||"initial"}"><img width="${va.width?va.width+"%":"initial"}" src="${ia}" alt="${ga||""}" /></p>`):It.replaceSelection(`<img width="100%" src="${ia}" alt="${ga||""}" />`):((ra=va==null?void 0:va.type)==null?void 0:ra.indexOf("video"))>-1?It.replaceSelection(`<video width="100%" controls src="${ia}"></video>`):((qi=va==null?void 0:va.type)==null?void 0:qi.indexOf("pdf"))>-1?It.replaceSelection(`<a href="${ia}?type=${va.type}&disposition=inline" target="_blank">${va.name}</a>`):Cr.includes(di)?It.replaceSelection(`<a href="${ia}?type=office&disposition=inline" target="_blank">${va.name}</a>`):It.replaceSelection(`[${va.name}](${ia})`),It.focus();case Xt:const{row:Ri,col:ki,align:ci}=sr;let Qi=`
|
|
|
`;for(let ji=0;ji<Ri;ji++){let Pa=[],Wa=[];for(let Na=0;Na<ki;Na++)ji===1&&Wa.push(En[ci]),Pa.push(" ");ji===1&&(Qi+=`| ${Wa.join(" | ")} |
|
|
|
`),Qi+=`| ${Pa.join(ki===1?"":" | ")} |
|
|
|
`}return It.replaceSelection(Qi+`
|
|
|
`),It.focus();default:throw new Error}},[It,Rn]),oa=(0,ue.useMemo)(()=>{switch(Rn){case nn:return ue.createElement(Qt,{callback:xi,onCancel:Br});case _t:return ue.createElement(Kt.Z,{callback:xi,onCancel:Br});case ht:return ue.createElement(at.Z,{callback:xi,onCancel:Br});case Le:return ue.createElement(de,{editImgId:Wr.current,callback:xi,onCancel:Br});case Xt:return ue.createElement(Be,{callback:xi,onCancel:Br});case"maths-latex":return ue.createElement(Jt,{showSaveButton:!0,callback:xi});case"inline-latex":return ue.createElement(mt.Z,{showSaveButton:!0,callback:xi});default:return null}},[Rn]);function Br(){Gn("")}(0,ue.useEffect)(()=>{if(Xn.current){let sr=function(ra){Ki=!0,ea=ra.pageY},ur=function(){Ki=!1},cr=function(ra){if(Ki){let qi=ra.pageY-ea;qi<0&&(qi=0),qi>300&&(qi=300);let ia=Hn+qi+"px";Lr(ia)}},Or=Xn.current,Ki=!1,ea=0;return Or.addEventListener("mousedown",sr),document.addEventListener("mousemove",cr),document.addEventListener("mouseup",ur),()=>{Or.removeEventListener("mousedown",sr),document.removeEventListener("mousemove",cr),document.removeEventListener("mouseup",ur)}}},[It,Xn]),(0,ue.useEffect)(()=>{Lr(Hn)},[Hn]);const Ar=jn(zn),fi=jn(Xr),mi={width:Ar,height:fi},la=(0,ue.useMemo)(()=>{if(Er){let sr=new Date(Er),ur=sr.getHours(),cr=sr.getMinutes(),Or=sr.getSeconds();return ur=ur<10?"0"+ur:ur,cr=cr<10?"0"+cr:cr,Or=Or<10?"0"+Or:Or,`${ur}:${cr}:${Or}`}return 0},[Er]),Ua=sr=>{const ur=[];if(Vt){let cr=-1;sr=sr.replace(/(@▁▁@|@▁@)/g,function(Or,Ki,ea){ur.push({multiLine:Or!==Zn})})}return ur};function Da(){window.sessionStorage.removeItem(qe),Jr(!1),Hr(0)}function Wi(){Jr(!1),Hr(0),It.setValue(window.sessionStorage.getItem(qe))}(0,ue.useEffect)(()=>{ai[Rn]&&Rn!==dt&&Rn!==Le&&setTimeout(()=>{const sr=document.getElementsByClassName("markdown-popup-form")[0],ur=window.innerWidth/2-sr.offsetWidth/2,cr=window.innerHeight/2-sr.offsetHeight/2;Qr(ur),hi(cr)},0)},[Rn]);const ma=sr=>{sr.preventDefault();const ur=sr.clientX-Nr,cr=sr.clientY-Kr;document.body.onmousemove=Or=>{let Ki=Or.clientX-ur,ea=Or.clientY-cr;const ra=document.getElementsByClassName("markdown-popup-form")[0],qi=window.innerWidth-ra.offsetWidth,ia=window.innerHeight-ra.offsetHeight;Ki=Math.max(0,Math.min(Ki,qi)),ea=Math.max(0,Math.min(ea,ia)),na(Or.clientX,Or.clientY,ur,cr)&&(Qr(Ki),hi(ea))},document.body.onmouseup=function(){document.body.onmousemove=null}},na=(sr,ur,cr,Or)=>{const Ki=document.body.clientHeight,ea=document.body.clientWidth;return sr<20&&cr>sr||sr>ea-20&&cr<sr||ur<20&&Or>ur||ur>Ki-20&&Or<ur?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ue.createElement(ue.Fragment,null,ue.createElement("div",{className:"markdown-editor-wrapper",ref:Ur},ue.createElement("div",{className:`markdown-editor-container ${bn} ${dn?"on-preview":""} ${wr?"mini":""} ${pn?"full-screen":""}`,style:mi},ue.createElement(Ue,{insertTemp:Xe,watch:dn,fullScreen:pn,showNullButton:rn,showNullProgramButton:Vt,onActionCallback:$i,hidetoolBar:ln,extraUse:Bn}),ue.createElement("div",{className:"markdown-editor-body"},ue.createElement("div",{className:"codemirror-container"},ue.createElement("textarea",{ref:Bi,placeholder:Wn})),dn?ue.createElement("div",{ref:Kn,className:"preview-container"},Je==="stex"&&ue.createElement(De,{value:un}),Je!=="stex"&&ue.createElement(ct.Z,{edit:!0,disabledFill:Jn,showProgramFill:Vt,value:un,openEditor:sr=>{var ur;Wr.current=sr,(ur=Tr.current)==null||ur.setHeight("100vh"),setTimeout(()=>{Gn("add-flowchart")},150)}})):null))),Ct?ue.createElement("a",{ref:Xn,className:"editor-resize"}):null,Rn===dt&&ue.createElement(hn,{callback:xi,onCancel:Br}),Rn===Le&&ue.createElement(de,{ref:Tr,editImgId:Wr.current,callback:xi,onCancel:Br}),ue.createElement(vt.Z,null,ai[Rn]&&Rn!==dt&&Rn!==Le?ue.createElement(lt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Nr,top:Kr},title:ue.createElement("div",{style:{cursor:"move"},onMouseDown:ma},ai[Rn]),open:!0,onCancel:Br,footer:null,destroyOnClose:!0,width:Rn===Le?"1200px":null,height:Rn===Le?"80vh":null,className:"markdown-popup-form"},oa):null))}},58448:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return Ke},I:function(){return vt}});var ue=oe(78241),Ae=oe(8591),ke=oe(92832),nt=oe(81327),be=oe(5871),Ee=oe(5112),he=oe(3113),xe=oe(79090),Me=oe(59301),Pe=oe(7544),ct=oe(59301),De=Object.defineProperty,Fe=Object.defineProperties,et=Object.getOwnPropertyDescriptors,We=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,rt=(Ye,st,Ie)=>st in Ye?De(Ye,st,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):Ye[st]=Ie,kt=(Ye,st)=>{for(var Ie in st||(st={}))je.call(st,Ie)&&rt(Ye,Ie,st[Ie]);if(We)for(var Ie of We(st))pt.call(st,Ie)&&rt(Ye,Ie,st[Ie]);return Ye},ft=(Ye,st)=>Fe(Ye,et(st));const{useForm:it}=ue.default,He={width:280,marginRight:10},Se={labelCol:{span:5},wrapperCol:{span:19}};var Ke=({callback:Ye,onCancel:st})=>{const[Ie]=it();let Mt=(0,Me.useRef)();function Ge(At){Mt.current.width=Ie.getFieldValue("width"),Mt.current.align=Ie.getFieldValue("align"),Ye(At,Mt.current)}function Ot(At,Nt){if(At.status===-1){Ae.ZP.error(At.message);return}Ie.setFieldsValue({src:`/api/attachments/${At.id}`,type:Nt.type})}function wt(At){let Nt=At.target.files[0];Mt.current=Nt,vt(Nt,Ot)}return ct.createElement(ue.default,ft(kt({form:Ie},Se),{className:"upload-image-panel",onFinish:Ge,style:{width:470,overflow:"hidden"}}),ct.createElement(ue.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ct.createElement("div",{className:"flex-container"},ct.createElement(ue.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},ct.createElement(ke.default,{style:He})),ct.createElement(Ue,{onFileChange:wt}))),ct.createElement(ue.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ct.createElement(ke.default,{style:{width:264}})),ct.createElement(ue.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ct.createElement(nt.Z,null,ct.createElement(ue.default.Item,{name:"width",style:{margin:0}},ct.createElement(be.Z,{style:{width:264}})),ct.createElement("span",{className:"ml8"},"%"))),ct.createElement(ue.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ct.createElement(Ee.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"}]})),ct.createElement("aside",null,ct.createElement(ue.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ct.createElement(he.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ct.createElement(he.ZP,{type:"default",onClick:st},"\u53D6\u6D88"))))};function Ue({onFileChange:Ye}){return ct.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ct.createElement("input",{type:"file",onChange:Ye}))}function vt(Ye,st){if(!Ye)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Pe.bg)())throw Ae.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Ie=new FormData;Ie.append("editormd-image-file",Ye),Ie.append("file_param_name","editormd-image-file"),Ie.append("byxhr","true");var Mt=new window.XMLHttpRequest;Mt.withCredentials=!0,Mt.addEventListener("load",function(Ge){st(JSON.parse(Ge.target.responseText),Ye)},!1),Mt.addEventListener("error",function(Ge){console.error(Ge)},!1),Mt.open("POST",`${xe.KI}/api/attachments.json`),Mt.send(Ie)}},53531:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return ke}});var ue=oe(59301),Ae=oe(4676);class ke extends ue.Component{constructor(be){super(be);const Ee=window.document;this.node=Ee.createElement("div"),Ee.body.appendChild(this.node)}render(){const{children:be}=this.props;return(0,Ae.createPortal)(be,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},57649:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return Ae}});var ue=oe(59301);function Ae(ke,nt){const be=(0,ue.useRef)();(0,ue.useEffect)(()=>{be.current=ke}),(0,ue.useEffect)(()=>{function Ee(){be.current()}if(nt!==null){let he=setInterval(Ee,nt);return()=>clearInterval(he)}},[nt])}},29166:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return be}});var ue=oe(59301),Ae=oe(71418),ke={loading:"loading___lueiN"},be=({loading:Ee})=>Ee?ue.createElement("div",{className:ke.loading},ue.createElement(Ae.Z,null)):ue.createElement(ue.Fragment,null)},98627:function(fn,Wt,oe){"use strict";var ue=oe(59301),Ae=oe(43418),ke=oe(1710),nt=oe(79769),be=oe(18540),Ee=oe(66649),he=oe.n(Ee),xe=oe(40973),Me=Object.defineProperty,Pe=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,Fe=(pt,rt,kt)=>rt in pt?Me(pt,rt,{enumerable:!0,configurable:!0,writable:!0,value:kt}):pt[rt]=kt,et=(pt,rt)=>{for(var kt in rt||(rt={}))ct.call(rt,kt)&&Fe(pt,kt,rt[kt]);if(Pe)for(var kt of Pe(rt))De.call(rt,kt)&&Fe(pt,kt,rt[kt]);return pt},We=(pt,rt,kt)=>new Promise((ft,it)=>{var He=Ue=>{try{Ke(kt.next(Ue))}catch(vt){it(vt)}},Se=Ue=>{try{Ke(kt.throw(Ue))}catch(vt){it(vt)}},Ke=Ue=>Ue.done?ft(Ue.value):Promise.resolve(Ue.value).then(He,Se);Ke((kt=kt.apply(pt,rt)).next())});const je=({visible:pt,identifier:rt,challenge_id:kt,onCancle:ft,onOK:it})=>{const[He,Se]=(0,ue.useState)(0),[Ke,Ue]=(0,ue.useState)([]),[vt,Ye]=(0,ue.useState)(!1),[st,Ie]=(0,ue.useState)({page:1,limit:10}),Mt=()=>We(void 0,null,function*(){var Ge,Ot;Ye(!0);const wt=yield(0,nt.ZP)(`/api/shixuns/${rt}/challenges/${kt}/task_pass_histories.json`,{method:"get",params:et({},st)});(wt==null?void 0:wt.status)===0&&(Se((Ge=wt==null?void 0:wt.data)==null?void 0:Ge.size),Ue(((Ot=wt==null?void 0:wt.data)==null?void 0:Ot.list)||[])),Ye(!1)});return(0,ue.useEffect)(()=>{pt&&Mt()},[pt]),ue.createElement(Ae.default,{centered:!0,destroyOnClose:!0,open:pt,title:"\u7248\u672C\u7BA1\u7406",footer:null,width:620,onCancel:()=>{st.page=1,st.limit=10,Ie(et({},st)),ft()}},ue.createElement(ke.default,{scroll:{y:47*10},loading:vt,dataSource:Ke,locale:{emptyText:ue.createElement(be.Z,null)},columns:[{title:"\u7248\u672C\u4FDD\u5B58\u65F6\u95F4",dataIndex:"updated_at",ellipsis:!0,render:(Ge,Ot,wt)=>he()(Ge).format("YYYY-MM-DD hh:mm:ss")},{title:"\u4FDD\u5B58\u4EBA",dataIndex:"user_name",width:110,ellipsis:!0,render:Ge=>Ge},{title:"\u64CD\u4F5C",dataIndex:"task_pass",align:"right",render(Ge,Ot,wt){return ue.createElement("div",null,ue.createElement("a",{onClick:()=>{Ae.default.confirm({icon:null,width:800,centered:!0,closable:!0,title:"\u4EFB\u52A1\u8981\u6C42\u8BE6\u60C5",content:ue.createElement("div",{className:"mb10"},ue.createElement(xe.Z,{key:kt||"3",watch:!0,defaultValue:Ot==null?void 0:Ot.task_pass})),footer:null})}},"\u67E5\u770B"),ue.createElement("a",{onClick:()=>We(this,null,function*(){Ae.default.confirm({icon:null,width:500,centered:!0,closable:!0,title:"\u7248\u672C\u5207\u6362\u786E\u8BA4",content:ue.createElement("div",null,ue.createElement("div",null,"\u8BF7\u786E\u8BA4\u662F\u5426\u5C06\u4EFB\u52A1\u8981\u6C42\u5185\u5BB9\u5207\u6362\u81F3 ",he()(Ot==null?void 0:Ot.updated_at).format("YYYY-MM-DD hh:mm:ss")," \u7248\u672C\uFF1F"),ue.createElement("div",null,"\u7248\u672C\u5207\u6362\u4F1A\u5C06\u5F53\u524D\u4EFB\u52A1\u8981\u6C42\u5185\u5BB9\u5B8C\u5168\u8986\u76D6\uFF0C\u5EFA\u8BAE\u5C06\u6700\u65B0\u4EFB\u52A1\u8981\u6C42\u5185\u5BB9\u4FDD\u5B58\u540E\uFF0C\u518D\u8FDB\u884C\u5207\u6362\u3002")),okText:"\u786E\u8BA4\u5207\u6362",cancelText:"\u53D6\u6D88",onOk:()=>We(this,null,function*(){yield it(Ot==null?void 0:Ot.task_pass),ft()})})}),className:"ml20"},"\u5207\u6362\u81F3\u8BE5\u7248\u672C"))}}],onChange:Ge=>{st.page=Ge==null?void 0:Ge.current,st.limit=Ge==null?void 0:Ge.pageSize,Mt(),Ie(et({},st))},pagination:{pageSize:st.limit,total:He,current:st.page,showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!0,showTotal:Ge=>ue.createElement("span",{className:"mr10"},"\u5171",ue.createElement("span",{className:"c-orange"},Ge),"\u6761\u6570\u636E")}}))};Wt.Z=je},90420:function(fn,Wt,oe){"use strict";oe.d(Wt,{S:function(){return Ee},m:function(){return he}});var ue=oe(25544),Ae=oe(8591),ke=oe(43418),nt=oe(59301),be=(xe,Me,Pe)=>new Promise((ct,De)=>{var Fe=je=>{try{We(Pe.next(je))}catch(pt){De(pt)}},et=je=>{try{We(Pe.throw(je))}catch(pt){De(pt)}},We=je=>je.done?ct(je.value):Promise.resolve(je.value).then(Fe,et);We((Pe=Pe.apply(xe,Me)).next())});const Ee=xe=>{let Me=document.createElement("textarea");return Me.value=xe,Me.value},he=(xe,Me,Pe,ct,De)=>be(void 0,null,function*(){var Fe,et;const We=yield xe({type:"shixunsDetail/saveCopyForExercise",payload:{id:Pe,save_type:ct}});ct===1?((We==null?void 0:We.status)==0&&Ae.ZP.success("\u4FDD\u5B58\u6210\u529F"),(Fe=We==null?void 0:We.data)!=null&&Fe.exists_same_shixun_name?xe({type:"classroomList/setActionTabs",payload:{key:"\u91CD\u540D\u4FEE\u6539",name:(et=We==null?void 0:We.data)==null?void 0:et.shixun_name}}):xe({type:"classroomList/setActionTabs",payload:{}})):(xe({type:"classroomList/setActionTabs",payload:{}}),(We==null?void 0:We.status)===0&&ke.default.info({title:"\u63D0\u793A",width:460,icon:null,centered:!0,content:nt.createElement("div",null,nt.createElement("div",null,"\u5B9E\u8BAD\u540C\u6B65\u4FEE\u6539\u5B8C\u6210\uFF0C\u8BF7\u9A8C\u8BC1\u5B9E\u8BAD\u662F\u5426\u53EF\u4EE5\u6B63\u5E38\u4F7F\u7528\u3002")),okText:"\u524D\u5F80\u539F\u5B9E\u8BAD",onOk:()=>{var je,pt;(0,ue.xg)(`/shixuns/${(pt=(je=Me==null?void 0:Me.detail)==null?void 0:je.fork_from)==null?void 0:pt.fork_identifier}/challenges`)}}))})},50371:function(fn,Wt){"use strict";function oe(){const ue=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Ae=1;Ae<arguments.length;Ae++){const ke=Ae<0||arguments.length<=Ae?void 0:arguments[Ae];ke&&Object.keys(ke).forEach(nt=>{const be=ke[nt];be!==void 0&&(ue[nt]=be)})}return ue}Wt.Z=oe},77578:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return ue}});const ue=Ae=>Ae?typeof Ae=="function"?Ae():Ae:null},13845:function(fn,Wt,oe){"use strict";oe.d(Wt,{F:function(){return ue},Z:function(){return Ae}});function ue(ke){return ke!=null&&ke===ke.window}function Ae(ke,nt){var be,Ee;if(typeof window=="undefined")return 0;const he=nt?"scrollTop":"scrollLeft";let xe=0;return ue(ke)?xe=ke[nt?"pageYOffset":"pageXOffset"]:ke instanceof Document?xe=ke.documentElement[he]:(ke instanceof HTMLElement||ke)&&(xe=ke[he]),ke&&!ue(ke)&&typeof xe!="number"&&(xe=(Ee=((be=ke.ownerDocument)!==null&&be!==void 0?be:ke).documentElement)===null||Ee===void 0?void 0:Ee[he]),xe}},56762:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return Ae}});var ue=oe(59301);function Ae(){const[,ke]=ue.useReducer(nt=>nt+1,0);return ke}},68031:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return nt}});var ue=oe(16089);function Ae(be,Ee,he,xe){const Me=he-Ee;return be/=xe/2,be<1?Me/2*be*be*be+Ee:Me/2*((be-=2)*be*be+2)+Ee}var ke=oe(13845);function nt(be){let Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:he=()=>window,callback:xe,duration:Me=450}=Ee,Pe=he(),ct=(0,ke.Z)(Pe,!0),De=Date.now(),Fe=()=>{const We=Date.now()-De,je=Ae(We>Me?Me:We,ct,be,Me);(0,ke.F)(Pe)?Pe.scrollTo(window.pageXOffset,je):Pe instanceof Document||Pe.constructor.name==="HTMLDocument"?Pe.documentElement.scrollTop=je:Pe.scrollTop=je,We<Me?(0,ue.Z)(Fe):typeof xe=="function"&&xe()};(0,ue.Z)(Fe)}},19080:function(fn,Wt,oe){"use strict";oe.d(Wt,{F:function(){return be},Z:function(){return nt}});var ue=oe(92310),Ae=oe.n(ue);const ke=null;function nt(Ee,he,xe){return Ae()({[`${Ee}-status-success`]:he==="success",[`${Ee}-status-warning`]:he==="warning",[`${Ee}-status-error`]:he==="error",[`${Ee}-status-validating`]:he==="validating",[`${Ee}-has-feedback`]:xe})}const be=(Ee,he)=>he||Ee},24905:function(fn,Wt,oe){"use strict";oe.d(Wt,{default:function(){return Ke}});var ue=oe(92310),Ae=oe.n(ue),ke=oe(5630),nt=oe(59301),be=oe(36355),Ee=oe(1684),he=oe(32441),Me=nt.createContext(null),Pe=oe(98447),ct=oe(14088),De=oe(4572),Fe=function(Ue,vt){var Ye={};for(var st in Ue)Object.prototype.hasOwnProperty.call(Ue,st)&&vt.indexOf(st)<0&&(Ye[st]=Ue[st]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,st=Object.getOwnPropertySymbols(Ue);Ie<st.length;Ie++)vt.indexOf(st[Ie])<0&&Object.prototype.propertyIsEnumerable.call(Ue,st[Ie])&&(Ye[st[Ie]]=Ue[st[Ie]]);return Ye};const et=(Ue,vt)=>{var Ye;const{prefixCls:st,className:Ie,rootClassName:Mt,children:Ge,indeterminate:Ot=!1,style:wt,onMouseEnter:At,onMouseLeave:Nt,skipGroup:Tt=!1,disabled:Ve}=Ue,ye=Fe(Ue,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:bt,direction:Qt,checkbox:Kt}=nt.useContext(be.E_),at=nt.useContext(Me),{isFormItemInput:lt}=nt.useContext(he.aM),Dt=nt.useContext(Ee.Z),yn=(Ye=(at==null?void 0:at.disabled)||Ve)!==null&&Ye!==void 0?Ye:Dt,$t=nt.useRef(ye.value);nt.useEffect(()=>{at==null||at.registerValue(ye.value)},[]),nt.useEffect(()=>{if(!Tt)return ye.value!==$t.current&&(at==null||at.cancelValue($t.current),at==null||at.registerValue(ye.value),$t.current=ye.value),()=>at==null?void 0:at.cancelValue(ye.value)},[ye.value]);const hn=bt("checkbox",st),[tn,en]=(0,Pe.ZP)(hn),Gt=Object.assign({},ye);at&&!Tt&&(Gt.onChange=function(){ye.onChange&&ye.onChange.apply(ye,arguments),at.toggleOption&&at.toggleOption({label:Ge,value:ye.value})},Gt.name=at.name,Gt.checked=at.value.includes(ye.value));const ve=Ae()(`${hn}-wrapper`,{[`${hn}-rtl`]:Qt==="rtl",[`${hn}-wrapper-checked`]:Gt.checked,[`${hn}-wrapper-disabled`]:yn,[`${hn}-wrapper-in-form-item`]:lt},Kt==null?void 0:Kt.className,Ie,Mt,en),ce=Ae()({[`${hn}-indeterminate`]:Ot},De.A,en),le=Ot?"mixed":void 0;return tn(nt.createElement(ct.Z,{component:"Checkbox",disabled:yn},nt.createElement("label",{className:ve,style:Object.assign(Object.assign({},Kt==null?void 0:Kt.style),wt),onMouseEnter:At,onMouseLeave:Nt},nt.createElement(ke.Z,Object.assign({"aria-checked":le},Gt,{prefixCls:hn,className:ce,disabled:yn,ref:vt})),Ge!==void 0&&nt.createElement("span",null,Ge))))};var je=nt.forwardRef(et),pt=oe(77654),rt=oe(2738),kt=function(Ue,vt){var Ye={};for(var st in Ue)Object.prototype.hasOwnProperty.call(Ue,st)&&vt.indexOf(st)<0&&(Ye[st]=Ue[st]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,st=Object.getOwnPropertySymbols(Ue);Ie<st.length;Ie++)vt.indexOf(st[Ie])<0&&Object.prototype.propertyIsEnumerable.call(Ue,st[Ie])&&(Ye[st[Ie]]=Ue[st[Ie]]);return Ye};const ft=(Ue,vt)=>{const{defaultValue:Ye,children:st,options:Ie=[],prefixCls:Mt,className:Ge,rootClassName:Ot,style:wt,onChange:At}=Ue,Nt=kt(Ue,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Tt,direction:Ve}=nt.useContext(be.E_),[ye,bt]=nt.useState(Nt.value||Ye||[]),[Qt,Kt]=nt.useState([]);nt.useEffect(()=>{"value"in Nt&&bt(Nt.value||[])},[Nt.value]);const at=nt.useMemo(()=>Ie.map(de=>typeof de=="string"||typeof de=="number"?{label:de,value:de}:de),[Ie]),lt=de=>{Kt(pe=>pe.filter(ae=>ae!==de))},Dt=de=>{Kt(pe=>[].concat((0,pt.Z)(pe),[de]))},yn=de=>{const pe=ye.indexOf(de.value),ae=(0,pt.Z)(ye);pe===-1?ae.push(de.value):ae.splice(pe,1),"value"in Nt||bt(ae),At==null||At(ae.filter(Te=>Qt.includes(Te)).sort((Te,gt)=>{const Re=at.findIndex(yt=>yt.value===Te),Be=at.findIndex(yt=>yt.value===gt);return Re-Be}))},$t=Tt("checkbox",Mt),hn=`${$t}-group`,[tn,en]=(0,Pe.ZP)($t),Gt=(0,rt.Z)(Nt,["value","disabled"]),ve=Ie.length?at.map(de=>nt.createElement(je,{prefixCls:$t,key:de.value.toString(),disabled:"disabled"in de?de.disabled:Nt.disabled,value:de.value,checked:ye.includes(de.value),onChange:de.onChange,className:`${hn}-item`,style:de.style,title:de.title},de.label)):st,ce={toggleOption:yn,value:ye,disabled:Nt.disabled,name:Nt.name,registerValue:Dt,cancelValue:lt},le=Ae()(hn,{[`${hn}-rtl`]:Ve==="rtl"},Ge,Ot,en);return tn(nt.createElement("div",Object.assign({className:le,style:wt},Gt,{ref:vt}),nt.createElement(Me.Provider,{value:ce},ve)))},it=nt.forwardRef(ft);var He=nt.memo(it);const Se=je;Se.Group=He,Se.__ANT_CHECKBOX=!0;var Ke=Se},98447:function(fn,Wt,oe){"use strict";oe.d(Wt,{C2:function(){return be}});var ue=oe(17313),Ae=oe(37613),ke=oe(83116);const nt=Ee=>{const{checkboxCls:he}=Ee,xe=`${he}-wrapper`;return[{[`${he}-group`]:Object.assign(Object.assign({},(0,ue.Wf)(Ee)),{display:"inline-flex",flexWrap:"wrap",columnGap:Ee.marginXS,[`> ${Ee.antCls}-row`]:{flex:1}}),[xe]:Object.assign(Object.assign({},(0,ue.Wf)(Ee)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${xe}`]:{marginInlineStart:0},[`&${xe}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[he]:Object.assign(Object.assign({},(0,ue.Wf)(Ee)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Ee.borderRadiusSM,alignSelf:"center",[`${he}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${he}-inner`]:Object.assign({},(0,ue.oN)(Ee))},[`${he}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Ee.checkboxSize,height:Ee.checkboxSize,direction:"ltr",backgroundColor:Ee.colorBgContainer,border:`${Ee.lineWidth}px ${Ee.lineType} ${Ee.colorBorder}`,borderRadius:Ee.borderRadiusSM,borderCollapse:"separate",transition:`all ${Ee.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Ee.checkboxSize/14*5,height:Ee.checkboxSize/14*8,border:`${Ee.lineWidthBold}px solid ${Ee.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Ee.motionDurationFast} ${Ee.motionEaseInBack}, opacity ${Ee.motionDurationFast}`}},"& + span":{paddingInlineStart:Ee.paddingXS,paddingInlineEnd:Ee.paddingXS}})},{[`
|
|
|
${xe}:not(${xe}-disabled),
|
|
|
${he}:not(${he}-disabled)
|
|
|
`]:{[`&:hover ${he}-inner`]:{borderColor:Ee.colorPrimary}},[`${xe}:not(${xe}-disabled)`]:{[`&:hover ${he}-checked:not(${he}-disabled) ${he}-inner`]:{backgroundColor:Ee.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${he}-checked:not(${he}-disabled):after`]:{borderColor:Ee.colorPrimaryHover}}},{[`${he}-checked`]:{[`${he}-inner`]:{backgroundColor:Ee.colorPrimary,borderColor:Ee.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Ee.motionDurationMid} ${Ee.motionEaseOutBack} ${Ee.motionDurationFast}`}}},[`
|
|
|
${xe}-checked:not(${xe}-disabled),
|
|
|
${he}-checked:not(${he}-disabled)
|
|
|
`]:{[`&:hover ${he}-inner`]:{backgroundColor:Ee.colorPrimaryHover,borderColor:"transparent"}}},{[he]:{"&-indeterminate":{[`${he}-inner`]:{backgroundColor:Ee.colorBgContainer,borderColor:Ee.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Ee.fontSizeLG/2,height:Ee.fontSizeLG/2,backgroundColor:Ee.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${xe}-disabled`]:{cursor:"not-allowed"},[`${he}-disabled`]:{[`&, ${he}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${he}-inner`]:{background:Ee.colorBgContainerDisabled,borderColor:Ee.colorBorder,"&:after":{borderColor:Ee.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Ee.colorTextDisabled},[`&${he}-indeterminate ${he}-inner::after`]:{background:Ee.colorTextDisabled}}}]};function be(Ee,he){const xe=(0,Ae.TS)(he,{checkboxCls:`.${Ee}`,checkboxSize:he.controlInteractiveSize});return[nt(xe)]}Wt.ZP=(0,ke.Z)("Checkbox",(Ee,he)=>{let{prefixCls:xe}=he;return[be(xe,Ee)]})},93891:function(fn,Wt,oe){"use strict";var ue=oe(59301),Ae=oe(36355),ke=oe(64165);const nt=be=>{const{componentName:Ee}=be,{getPrefixCls:he}=(0,ue.useContext)(Ae.E_),xe=he("empty");switch(Ee){case"Table":case"List":return ue.createElement(ke.Z,{image:ke.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ue.createElement(ke.Z,{image:ke.Z.PRESENTED_IMAGE_SIMPLE,className:`${xe}-small`});default:return ue.createElement(ke.Z,null)}};Wt.Z=nt},43428:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return tn}});var ue=oe(92310),Ae=oe.n(ue),ke=oe(85899),nt=oe(72190),be=oe(43403),Ee=oe(34280),he=oe(59301),xe=he.createContext(null),Me=he.createContext({}),Pe=xe,ct=oe(18642),De=oe(60499),Fe=oe(77900),et=oe(10228),We=oe(26112),je=oe(70425),pt=function(Gt){var ve=Gt.prefixCls,ce=Gt.className,le=Gt.style,de=Gt.children,pe=Gt.containerRef,ae=Gt.id,Te=Gt.onMouseEnter,gt=Gt.onMouseOver,Re=Gt.onMouseLeave,Be=Gt.onClick,yt=Gt.onKeyDown,ut=Gt.onKeyUp,Qe={onMouseEnter:Te,onMouseOver:gt,onMouseLeave:Re,onClick:Be,onKeyDown:yt,onKeyUp:ut},St=he.useContext(Me),Jt=St.panel,mt=(0,je.useComposeRef)(Jt,pe);return he.createElement(he.Fragment,null,he.createElement("div",(0,De.Z)({id:ae,className:Ae()("".concat(ve,"-content"),ce),style:(0,ke.Z)({},le),"aria-modal":"true",role:"dialog",ref:mt},Qe),de))},rt=pt,kt=oe(48736);function ft(en){return typeof en=="string"&&String(Number(en))===en?((0,kt.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(en)):en}function it(en){warning(!("wrapperClassName"in en),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!en.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var He={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Se(en,Gt){var ve,ce,le,de,pe=en.prefixCls,ae=en.open,Te=en.placement,gt=en.inline,Re=en.push,Be=en.forceRender,yt=en.autoFocus,ut=en.keyboard,Qe=en.rootClassName,St=en.rootStyle,Jt=en.zIndex,mt=en.className,Ft=en.id,nn=en.style,ht=en.motion,Le=en.width,dt=en.height,Pt=en.children,_t=en.contentWrapperStyle,Xt=en.mask,gn=en.maskClosable,En=en.maskMotion,wn=en.maskClassName,_n=en.maskStyle,$n=en.afterOpenChange,Dn=en.onClose,qn=en.onMouseEnter,fr=en.onMouseOver,br=en.onMouseLeave,Zn=en.onClick,ar=en.onKeyDown,Cr=en.onKeyUp,jn=he.useRef(),Dr=he.useRef(),ei=he.useRef();he.useImperativeHandle(Gt,function(){return jn.current});var Fr=function(Vt){var ln=Vt.keyCode,Cn=Vt.shiftKey;switch(ln){case et.Z.TAB:{if(ln===et.Z.TAB){if(!Cn&&document.activeElement===ei.current){var An;(An=Dr.current)===null||An===void 0||An.focus({preventScroll:!0})}else if(Cn&&document.activeElement===Dr.current){var Tn;(Tn=ei.current)===null||Tn===void 0||Tn.focus({preventScroll:!0})}}break}case et.Z.ESC:{Dn&&ut&&(Vt.stopPropagation(),Dn(Vt));break}}};he.useEffect(function(){if(ae&&yt){var rn;(rn=jn.current)===null||rn===void 0||rn.focus({preventScroll:!0})}},[ae]);var ai=he.useState(!1),ti=(0,nt.Z)(ai,2),er=ti[0],hr=ti[1],zn=he.useContext(Pe),Hn;Re===!1?Hn={distance:0}:Re===!0?Hn={}:Hn=Re||{};var wr=(ve=(ce=(le=Hn)===null||le===void 0?void 0:le.distance)!==null&&ce!==void 0?ce:zn==null?void 0:zn.pushDistance)!==null&&ve!==void 0?ve:180,Bt=he.useMemo(function(){return{pushDistance:wr,push:function(){hr(!0)},pull:function(){hr(!1)}}},[wr]);he.useEffect(function(){if(ae){var rn;zn==null||(rn=zn.push)===null||rn===void 0||rn.call(zn)}else{var Vt;zn==null||(Vt=zn.pull)===null||Vt===void 0||Vt.call(zn)}},[ae]),he.useEffect(function(){return function(){var rn;zn==null||(rn=zn.pull)===null||rn===void 0||rn.call(zn)}},[]);var ze=Xt&&he.createElement(Fe.default,(0,De.Z)({key:"mask"},En,{visible:ae}),function(rn,Vt){var ln=rn.className,Cn=rn.style;return he.createElement("div",{className:Ae()("".concat(pe,"-mask"),ln,wn),style:(0,ke.Z)((0,ke.Z)({},Cn),_n),onClick:gn&&ae?Dn:void 0,ref:Vt})}),Xe=typeof ht=="function"?ht(Te):ht,Je={};if(er&&wr)switch(Te){case"top":Je.transform="translateY(".concat(wr,"px)");break;case"bottom":Je.transform="translateY(".concat(-wr,"px)");break;case"left":Je.transform="translateX(".concat(wr,"px)");break;default:Je.transform="translateX(".concat(-wr,"px)");break}Te==="left"||Te==="right"?Je.width=ft(Le):Je.height=ft(dt);var qe={onMouseEnter:qn,onMouseOver:fr,onMouseLeave:br,onClick:Zn,onKeyDown:ar,onKeyUp:Cr},Ct=he.createElement(Fe.default,(0,De.Z)({key:"panel"},Xe,{visible:ae,forceRender:Be,onVisibleChanged:function(Vt){$n==null||$n(Vt)},removeOnLeave:!1,leavedClassName:"".concat(pe,"-content-wrapper-hidden")}),function(rn,Vt){var ln=rn.className,Cn=rn.style;return he.createElement("div",(0,De.Z)({className:Ae()("".concat(pe,"-content-wrapper"),ln),style:(0,ke.Z)((0,ke.Z)((0,ke.Z)({},Je),Cn),_t)},(0,We.Z)(en,{data:!0})),he.createElement(rt,(0,De.Z)({id:Ft,containerRef:Vt,prefixCls:pe,className:mt,style:nn},qe),Pt))}),Rt=(0,ke.Z)({},St);return Jt&&(Rt.zIndex=Jt),he.createElement(Pe.Provider,{value:Bt},he.createElement("div",{className:Ae()(pe,"".concat(pe,"-").concat(Te),Qe,(de={},(0,ct.Z)(de,"".concat(pe,"-open"),ae),(0,ct.Z)(de,"".concat(pe,"-inline"),gt),de)),style:Rt,tabIndex:-1,ref:jn,onKeyDown:Fr},ze,he.createElement("div",{tabIndex:0,ref:Dr,style:He,"aria-hidden":"true","data-sentinel":"start"}),Ct,he.createElement("div",{tabIndex:0,ref:ei,style:He,"aria-hidden":"true","data-sentinel":"end"})))}var Ke=he.forwardRef(Se),Ue=Ke,vt=function(Gt){var ve=Gt.open,ce=ve===void 0?!1:ve,le=Gt.prefixCls,de=le===void 0?"rc-drawer":le,pe=Gt.placement,ae=pe===void 0?"right":pe,Te=Gt.autoFocus,gt=Te===void 0?!0:Te,Re=Gt.keyboard,Be=Re===void 0?!0:Re,yt=Gt.width,ut=yt===void 0?378:yt,Qe=Gt.mask,St=Qe===void 0?!0:Qe,Jt=Gt.maskClosable,mt=Jt===void 0?!0:Jt,Ft=Gt.getContainer,nn=Gt.forceRender,ht=Gt.afterOpenChange,Le=Gt.destroyOnClose,dt=Gt.onMouseEnter,Pt=Gt.onMouseOver,_t=Gt.onMouseLeave,Xt=Gt.onClick,gn=Gt.onKeyDown,En=Gt.onKeyUp,wn=Gt.panelRef,_n=he.useState(!1),$n=(0,nt.Z)(_n,2),Dn=$n[0],qn=$n[1],fr=he.useState(!1),br=(0,nt.Z)(fr,2),Zn=br[0],ar=br[1];(0,Ee.Z)(function(){ar(!0)},[]);var Cr=Zn?ce:!1,jn=he.useRef(),Dr=he.useRef();(0,Ee.Z)(function(){Cr&&(Dr.current=document.activeElement)},[Cr]);var ei=function(hr){var zn;if(qn(hr),ht==null||ht(hr),!hr&&Dr.current&&!((zn=jn.current)!==null&&zn!==void 0&&zn.contains(Dr.current))){var Hn;(Hn=Dr.current)===null||Hn===void 0||Hn.focus({preventScroll:!0})}},Fr=he.useMemo(function(){return{panel:wn}},[wn]);if(!nn&&!Dn&&!Cr&&Le)return null;var ai={onMouseEnter:dt,onMouseOver:Pt,onMouseLeave:_t,onClick:Xt,onKeyDown:gn,onKeyUp:En},ti=(0,ke.Z)((0,ke.Z)({},Gt),{},{open:Cr,prefixCls:de,placement:ae,autoFocus:gt,keyboard:Be,width:ut,mask:St,maskClosable:mt,inline:Ft===!1,afterOpenChange:ei,ref:jn},ai);return he.createElement(Me.Provider,{value:Fr},he.createElement(be.Z,{open:Cr||nn||Dn,autoDestroy:!1,getContainer:Ft,autoLock:St&&(Cr||Dn)},he.createElement(Ue,ti)))},Ye=vt,st=Ye,Ie=oe(62892),Mt=oe(36355),Ge=oe(32441),Ot=oe(47729),At=en=>{const{prefixCls:Gt,title:ve,footer:ce,extra:le,closeIcon:de,closable:pe,onClose:ae,headerStyle:Te,drawerStyle:gt,bodyStyle:Re,footerStyle:Be,children:yt}=en,ut=he.useCallback(Ft=>he.createElement("button",{type:"button",onClick:ae,"aria-label":"Close",className:`${Gt}-close`},Ft),[ae]),[Qe,St]=(0,Ot.Z)(pe,de,ut,void 0,!0),Jt=he.useMemo(()=>!ve&&!Qe?null:he.createElement("div",{style:Te,className:Ae()(`${Gt}-header`,{[`${Gt}-header-close-only`]:Qe&&!ve&&!le})},he.createElement("div",{className:`${Gt}-header-title`},St,ve&&he.createElement("div",{className:`${Gt}-title`},ve)),le&&he.createElement("div",{className:`${Gt}-extra`},le)),[Qe,St,le,Te,Gt,ve]),mt=he.useMemo(()=>{if(!ce)return null;const Ft=`${Gt}-footer`;return he.createElement("div",{className:Ft,style:Be},ce)},[ce,Be,Gt]);return he.createElement("div",{className:`${Gt}-wrapper-body`,style:gt},Jt,he.createElement("div",{className:`${Gt}-body`,style:Re},yt),mt)},Nt=oe(33234),Tt=oe(83116),Ve=oe(37613),bt=en=>{const{componentCls:Gt,motionDurationSlow:ve}=en,ce={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${ve}`}}};return{[Gt]:{[`${Gt}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${ve}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${Gt}-panel-motion`]:{"&-left":[ce,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[ce,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[ce,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[ce,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const Qt=en=>{const{componentCls:Gt,zIndexPopup:ve,colorBgMask:ce,colorBgElevated:le,motionDurationSlow:de,motionDurationMid:pe,padding:ae,paddingLG:Te,fontSizeLG:gt,lineHeightLG:Re,lineWidth:Be,lineType:yt,colorSplit:ut,marginSM:Qe,colorIcon:St,colorIconHover:Jt,colorText:mt,fontWeightStrong:Ft,footerPaddingBlock:nn,footerPaddingInline:ht}=en,Le=`${Gt}-content-wrapper`;return{[Gt]:{position:"fixed",inset:0,zIndex:ve,pointerEvents:"none","&-pure":{position:"relative",background:le,[`&${Gt}-left`]:{boxShadow:en.boxShadowDrawerLeft},[`&${Gt}-right`]:{boxShadow:en.boxShadowDrawerRight},[`&${Gt}-top`]:{boxShadow:en.boxShadowDrawerUp},[`&${Gt}-bottom`]:{boxShadow:en.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${Gt}-mask`]:{position:"absolute",inset:0,zIndex:ve,background:ce,pointerEvents:"auto"},[Le]:{position:"absolute",zIndex:ve,maxWidth:"100vw",transition:`all ${de}`,"&-hidden":{display:"none"}},[`&-left > ${Le}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:en.boxShadowDrawerLeft},[`&-right > ${Le}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:en.boxShadowDrawerRight},[`&-top > ${Le}`]:{top:0,insetInline:0,boxShadow:en.boxShadowDrawerUp},[`&-bottom > ${Le}`]:{bottom:0,insetInline:0,boxShadow:en.boxShadowDrawerDown},[`${Gt}-content`]:{width:"100%",height:"100%",overflow:"auto",background:le,pointerEvents:"auto"},[`${Gt}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${Gt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${ae}px ${Te}px`,fontSize:gt,lineHeight:Re,borderBottom:`${Be}px ${yt} ${ut}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${Gt}-extra`]:{flex:"none"},[`${Gt}-close`]:{display:"inline-block",marginInlineEnd:Qe,color:St,fontWeight:Ft,fontSize:gt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${pe}`,textRendering:"auto","&:focus, &:hover":{color:Jt,textDecoration:"none"}},[`${Gt}-title`]:{flex:1,margin:0,color:mt,fontWeight:en.fontWeightStrong,fontSize:gt,lineHeight:Re},[`${Gt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Te,overflow:"auto"},[`${Gt}-footer`]:{flexShrink:0,padding:`${nn}px ${ht}px`,borderTop:`${Be}px ${yt} ${ut}`},"&-rtl":{direction:"rtl"}}}};var Kt=(0,Tt.Z)("Drawer",en=>{const Gt=(0,Ve.TS)(en,{});return[Qt(Gt),bt(Gt)]},en=>({zIndexPopup:en.zIndexPopupBase,footerPaddingBlock:en.paddingXS,footerPaddingInline:en.padding})),at=oe(11575),lt=function(en,Gt){var ve={};for(var ce in en)Object.prototype.hasOwnProperty.call(en,ce)&&Gt.indexOf(ce)<0&&(ve[ce]=en[ce]);if(en!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,ce=Object.getOwnPropertySymbols(en);le<ce.length;le++)Gt.indexOf(ce[le])<0&&Object.prototype.propertyIsEnumerable.call(en,ce[le])&&(ve[ce[le]]=en[ce[le]]);return ve};const Dt=null,yn={distance:180},$t=en=>{var Gt;const{rootClassName:ve,width:ce,height:le,size:de="default",mask:pe=!0,push:ae=yn,open:Te,afterOpenChange:gt,onClose:Re,prefixCls:Be,getContainer:yt,style:ut,className:Qe,visible:St,afterVisibleChange:Jt}=en,mt=lt(en,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:Ft,getPrefixCls:nn,direction:ht,drawer:Le}=he.useContext(Mt.E_),dt=nn("drawer",Be),[Pt,_t]=Kt(dt),Xt=yt===void 0&&Ft?()=>Ft(document.body):yt,gn=Ae()({"no-mask":!pe,[`${dt}-rtl`]:ht==="rtl"},ve,_t),En=he.useMemo(()=>ce!=null?ce:de==="large"?736:378,[ce,de]),wn=he.useMemo(()=>le!=null?le:de==="large"?736:378,[le,de]),_n={motionName:(0,Ie.m)(dt,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},$n=qn=>({motionName:(0,Ie.m)(dt,`panel-motion-${qn}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Dn=(0,at.H)();return Pt(he.createElement(Nt.BR,null,he.createElement(Ge.Ux,{status:!0,override:!0},he.createElement(st,Object.assign({prefixCls:dt,onClose:Re,maskMotion:_n,motion:$n},mt,{open:Te!=null?Te:St,mask:pe,push:ae,width:En,height:wn,style:Object.assign(Object.assign({},Le==null?void 0:Le.style),ut),className:Ae()(Le==null?void 0:Le.className,Qe),rootClassName:gn,getContainer:Xt,afterOpenChange:gt!=null?gt:Jt,panelRef:Dn}),he.createElement(At,Object.assign({prefixCls:dt},mt,{onClose:Re}))))))},hn=en=>{const{prefixCls:Gt,style:ve,className:ce,placement:le="right"}=en,de=lt(en,["prefixCls","style","className","placement"]),{getPrefixCls:pe}=he.useContext(Mt.E_),ae=pe("drawer",Gt),[Te,gt]=Kt(ae),Re=Ae()(ae,`${ae}-pure`,`${ae}-${le}`,gt,ce);return Te(he.createElement("div",{className:Re,style:ve},he.createElement(At,Object.assign({prefixCls:ae},de))))};$t._InternalPanelDoNotUseOrYouWillBeFired=hn;var tn=$t},91857:function(fn,Wt,oe){"use strict";var ue=oe(59301),Ae=oe(38819),ke=oe(92310),nt=oe.n(ke),be=oe(31561),Ee=oe(70425),he=oe(18929),xe=oe(2738),Me=oe(79676),Pe=oe(53487),ct=oe(92343),De=oe(36355),Fe=oe(20834),et=oe(40875),We=oe(88088),je=oe(47211);const pt=null,rt=He=>{const{menu:Se,arrow:Ke,prefixCls:Ue,children:vt,trigger:Ye,disabled:st,dropdownRender:Ie,getPopupContainer:Mt,overlayClassName:Ge,rootClassName:Ot,open:wt,onOpenChange:At,visible:Nt,onVisibleChange:Tt,mouseEnterDelay:Ve=.15,mouseLeaveDelay:ye=.1,autoAdjustOverflow:bt=!0,placement:Qt="",overlay:Kt,transitionName:at}=He,{getPopupContainer:lt,getPrefixCls:Dt,direction:yn}=ue.useContext(De.E_),$t=ue.useMemo(()=>{const Qe=Dt();return at!==void 0?at:Qt.includes("top")?`${Qe}-slide-down`:`${Qe}-slide-up`},[Dt,Qt,at]),hn=ue.useMemo(()=>Qt?Qt.includes("Center")?Qt.slice(0,Qt.indexOf("Center")):Qt:yn==="rtl"?"bottomRight":"bottomLeft",[Qt,yn]),tn=Dt("dropdown",Ue),[en,Gt]=(0,je.Z)(tn),[,ve]=(0,We.Z)(),ce=ue.Children.only(vt),le=(0,ct.Tm)(ce,{className:nt()(`${tn}-trigger`,{[`${tn}-rtl`]:yn==="rtl"},ce.props.className),disabled:st}),de=st?[]:Ye;let pe;de&&de.includes("contextMenu")&&(pe=!0);const[ae,Te]=(0,he.Z)(!1,{value:wt!=null?wt:Nt}),gt=(0,Ee.useEvent)(Qe=>{At==null||At(Qe),Tt==null||Tt(Qe),Te(Qe)}),Re=nt()(Ge,Ot,Gt,{[`${tn}-rtl`]:yn==="rtl"}),Be=(0,Me.Z)({arrowPointAtCenter:typeof Ke=="object"&&Ke.pointAtCenter,autoAdjustOverflow:bt,offset:ve.marginXXS,arrowWidth:Ke?ve.sizePopupArrow:0,borderRadius:ve.borderRadius}),yt=ue.useCallback(()=>{Te(!1)},[]),ut=()=>{let Qe;return Se!=null&&Se.items?Qe=ue.createElement(Fe.default,Object.assign({},Se)):typeof Kt=="function"?Qe=Kt():Qe=Kt,Ie&&(Qe=Ie(Qe)),Qe=ue.Children.only(typeof Qe=="string"?ue.createElement("span",null,Qe):Qe),ue.createElement(et.J,{prefixCls:`${tn}-menu`,expandIcon:ue.createElement("span",{className:`${tn}-menu-submenu-arrow`},ue.createElement(Ae.Z,{className:`${tn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:yt,validator:St=>{let{mode:Jt}=St}},Qe)};return en(ue.createElement(be.Z,Object.assign({alignPoint:pe},(0,xe.Z)(He,["rootClassName"]),{mouseEnterDelay:Ve,mouseLeaveDelay:ye,visible:ae,builtinPlacements:Be,arrow:!!Ke,overlayClassName:Re,prefixCls:tn,getPopupContainer:Mt||lt,transitionName:$t,trigger:de,overlay:ut,placement:hn,onVisibleChange:gt}),le))};function kt(He){return Object.assign(Object.assign({},He),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ft=(0,Pe.Z)(rt,"dropdown",He=>He,kt),it=He=>ue.createElement(ft,Object.assign({},He),ue.createElement("span",null));rt._InternalPanelDoNotUseOrYouWillBeFired=it,Wt.Z=rt},38854:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return We}});var ue=oe(91857),Ae=oe(92310),ke=oe.n(Ae),nt=oe(59301),be=oe(18785),Ee=oe(3113),he=oe(36355),xe=oe(81327),Me=oe(33234),Pe=oe(47211),ct=function(je,pt){var rt={};for(var kt in je)Object.prototype.hasOwnProperty.call(je,kt)&&pt.indexOf(kt)<0&&(rt[kt]=je[kt]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,kt=Object.getOwnPropertySymbols(je);ft<kt.length;ft++)pt.indexOf(kt[ft])<0&&Object.prototype.propertyIsEnumerable.call(je,kt[ft])&&(rt[kt[ft]]=je[kt[ft]]);return rt};const De=je=>{const{getPopupContainer:pt,getPrefixCls:rt,direction:kt}=nt.useContext(he.E_),{prefixCls:ft,type:it="default",danger:He,disabled:Se,loading:Ke,onClick:Ue,htmlType:vt,children:Ye,className:st,menu:Ie,arrow:Mt,autoFocus:Ge,overlay:Ot,trigger:wt,align:At,open:Nt,onOpenChange:Tt,placement:Ve,getPopupContainer:ye,href:bt,icon:Qt=nt.createElement(be.Z,null),title:Kt,buttonsRender:at=ut=>ut,mouseEnterDelay:lt,mouseLeaveDelay:Dt,overlayClassName:yn,overlayStyle:$t,destroyPopupOnHide:hn,dropdownRender:tn}=je,en=ct(je,["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"]),Gt=rt("dropdown",ft),ve=`${Gt}-button`,[ce,le]=(0,Pe.Z)(Gt),de={menu:Ie,arrow:Mt,autoFocus:Ge,align:At,disabled:Se,trigger:Se?[]:wt,onOpenChange:Tt,getPopupContainer:ye||pt,mouseEnterDelay:lt,mouseLeaveDelay:Dt,overlayClassName:yn,overlayStyle:$t,destroyPopupOnHide:hn,dropdownRender:tn},{compactSize:pe,compactItemClassnames:ae}=(0,Me.ri)(Gt,kt),Te=ke()(ve,ae,st,le);"overlay"in je&&(de.overlay=Ot),"open"in je&&(de.open=Nt),"placement"in je?de.placement=Ve:de.placement=kt==="rtl"?"bottomLeft":"bottomRight";const gt=nt.createElement(Ee.ZP,{type:it,danger:He,disabled:Se,loading:Ke,onClick:Ue,htmlType:vt,href:bt,title:Kt},Ye),Re=nt.createElement(Ee.ZP,{type:it,danger:He,icon:Qt}),[Be,yt]=at([gt,Re]);return ce(nt.createElement(xe.Z.Compact,Object.assign({className:Te,size:pe,block:!0},en),Be,nt.createElement(ue.Z,Object.assign({},de),yt)))};De.__ANT_BUTTON=!0;var Fe=De;const et=ue.Z;et.Button=Fe;var We=et},47211:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return ct}});var ue=oe(17313),Ae=oe(13826),ke=oe(92899),nt=oe(29878),be=oe(19447),Ee=oe(83116),he=oe(37613),Me=De=>{const{componentCls:Fe,menuCls:et,colorError:We,colorTextLightSolid:je}=De,pt=`${et}-item`;return{[`${Fe}, ${Fe}-menu-submenu`]:{[`${et} ${pt}`]:{[`&${pt}-danger:not(${pt}-disabled)`]:{color:We,"&:hover":{color:je,backgroundColor:We}}}}}};const Pe=De=>{const{componentCls:Fe,menuCls:et,zIndexPopup:We,dropdownArrowDistance:je,sizePopupArrow:pt,antCls:rt,iconCls:kt,motionDurationMid:ft,dropdownPaddingVertical:it,fontSize:He,dropdownEdgeChildPadding:Se,colorTextDisabled:Ke,fontSizeIcon:Ue,controlPaddingHorizontal:vt,colorBgElevated:Ye}=De;return[{[Fe]:Object.assign(Object.assign({},(0,ue.Wf)(De)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:We,display:"block","&::before":{position:"absolute",insetBlock:-je+pt/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${rt}-btn`]:{[`& > ${kt}-down, & > ${rt}-btn-icon > ${kt}-down`]:{fontSize:Ue}},[`${Fe}-wrap`]:{position:"relative",[`${rt}-btn > ${kt}-down`]:{fontSize:Ue},[`${kt}-down::before`]:{transition:`transform ${ft}`}},[`${Fe}-wrap-open`]:{[`${kt}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${rt}-slide-down-enter${rt}-slide-down-enter-active${Fe}-placement-bottomLeft,
|
|
|
&${rt}-slide-down-appear${rt}-slide-down-appear-active${Fe}-placement-bottomLeft,
|
|
|
&${rt}-slide-down-enter${rt}-slide-down-enter-active${Fe}-placement-bottom,
|
|
|
&${rt}-slide-down-appear${rt}-slide-down-appear-active${Fe}-placement-bottom,
|
|
|
&${rt}-slide-down-enter${rt}-slide-down-enter-active${Fe}-placement-bottomRight,
|
|
|
&${rt}-slide-down-appear${rt}-slide-down-appear-active${Fe}-placement-bottomRight`]:{animationName:Ae.fJ},[`&${rt}-slide-up-enter${rt}-slide-up-enter-active${Fe}-placement-topLeft,
|
|
|
&${rt}-slide-up-appear${rt}-slide-up-appear-active${Fe}-placement-topLeft,
|
|
|
&${rt}-slide-up-enter${rt}-slide-up-enter-active${Fe}-placement-top,
|
|
|
&${rt}-slide-up-appear${rt}-slide-up-appear-active${Fe}-placement-top,
|
|
|
&${rt}-slide-up-enter${rt}-slide-up-enter-active${Fe}-placement-topRight,
|
|
|
&${rt}-slide-up-appear${rt}-slide-up-appear-active${Fe}-placement-topRight`]:{animationName:Ae.Qt},[`&${rt}-slide-down-leave${rt}-slide-down-leave-active${Fe}-placement-bottomLeft,
|
|
|
&${rt}-slide-down-leave${rt}-slide-down-leave-active${Fe}-placement-bottom,
|
|
|
&${rt}-slide-down-leave${rt}-slide-down-leave-active${Fe}-placement-bottomRight`]:{animationName:Ae.Uw},[`&${rt}-slide-up-leave${rt}-slide-up-leave-active${Fe}-placement-topLeft,
|
|
|
&${rt}-slide-up-leave${rt}-slide-up-leave-active${Fe}-placement-top,
|
|
|
&${rt}-slide-up-leave${rt}-slide-up-leave-active${Fe}-placement-topRight`]:{animationName:Ae.ly}})},(0,be.ZP)(De,{colorBg:Ye,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Fe} ${et}`]:{position:"relative",margin:0},[`${et}-submenu-popup`]:{position:"absolute",zIndex:We,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Fe}, ${Fe}-menu-submenu`]:{[et]:Object.assign(Object.assign({padding:Se,listStyleType:"none",backgroundColor:Ye,backgroundClip:"padding-box",borderRadius:De.borderRadiusLG,outline:"none",boxShadow:De.boxShadowSecondary},(0,ue.Qy)(De)),{[`${et}-item-group-title`]:{padding:`${it}px ${vt}px`,color:De.colorTextDescription,transition:`all ${ft}`},[`${et}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${et}-item-icon`]:{minWidth:He,marginInlineEnd:De.marginXS,fontSize:De.fontSizeSM},[`${et}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${ft}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${et}-item, ${et}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${it}px ${vt}px`,color:De.colorText,fontWeight:"normal",fontSize:He,lineHeight:De.lineHeight,cursor:"pointer",transition:`all ${ft}`,borderRadius:De.borderRadiusSM,"&:hover, &-active":{backgroundColor:De.controlItemBgHover}},(0,ue.Qy)(De)),{"&-selected":{color:De.colorPrimary,backgroundColor:De.controlItemBgActive,"&:hover, &-active":{backgroundColor:De.controlItemBgActiveHover}},"&-disabled":{color:Ke,cursor:"not-allowed","&:hover":{color:Ke,backgroundColor:Ye,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${De.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:De.colorSplit},[`${Fe}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:De.paddingXS,[`${Fe}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:De.colorTextDescription,fontSize:Ue,fontStyle:"normal"}}}),[`${et}-item-group-list`]:{margin:`0 ${De.marginXS}px`,padding:0,listStyle:"none"},[`${et}-submenu-title`]:{paddingInlineEnd:vt+De.fontSizeSM},[`${et}-submenu-vertical`]:{position:"relative"},[`${et}-submenu${et}-submenu-disabled ${Fe}-menu-submenu-title`]:{[`&, ${Fe}-menu-submenu-arrow-icon`]:{color:Ke,backgroundColor:Ye,cursor:"not-allowed"}},[`${et}-submenu-selected ${Fe}-menu-submenu-title`]:{color:De.colorPrimary}})}},[(0,Ae.oN)(De,"slide-up"),(0,Ae.oN)(De,"slide-down"),(0,ke.Fm)(De,"move-up"),(0,ke.Fm)(De,"move-down"),(0,nt._y)(De,"zoom-big")]]};var ct=(0,Ee.Z)("Dropdown",(De,Fe)=>{let{rootPrefixCls:et}=Fe;const{marginXXS:We,sizePopupArrow:je,controlHeight:pt,fontSize:rt,lineHeight:kt,paddingXXS:ft,componentCls:it,borderRadiusLG:He}=De,Se=(pt-rt*kt)/2,{dropdownArrowOffset:Ke}=(0,be.fS)({contentRadius:He}),Ue=(0,he.TS)(De,{menuCls:`${it}-menu`,rootPrefixCls:et,dropdownArrowDistance:je/2+We,dropdownArrowOffset:Ke,dropdownPaddingVertical:Se,dropdownEdgeChildPadding:ft});return[Pe(Ue),Me(Ue)]},De=>({zIndexPopup:De.zIndexPopupBase+50}))},64165:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return ft}});var ue=oe(92310),Ae=oe.n(ue),ke=oe(59301),nt=oe(36355),be=oe(9763),Ee=oe(64993),he=oe(88088),Me=()=>{const[,it]=(0,he.Z)(),Se=new Ee.C(it.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return ke.createElement("svg",{style:Se,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},ke.createElement("g",{fill:"none",fillRule:"evenodd"},ke.createElement("g",{transform:"translate(24 31.67)"},ke.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),ke.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"}),ke.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)"}),ke.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"}),ke.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"})),ke.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"}),ke.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},ke.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),ke.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},ct=()=>{const[,it]=(0,he.Z)(),{colorFill:He,colorFillTertiary:Se,colorFillQuaternary:Ke,colorBgContainer:Ue}=it,{borderColor:vt,shadowColor:Ye,contentColor:st}=(0,ke.useMemo)(()=>({borderColor:new Ee.C(He).onBackground(Ue).toHexShortString(),shadowColor:new Ee.C(Se).onBackground(Ue).toHexShortString(),contentColor:new Ee.C(Ke).onBackground(Ue).toHexShortString()}),[He,Se,Ke,Ue]);return ke.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},ke.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},ke.createElement("ellipse",{fill:Ye,cx:"32",cy:"33",rx:"32",ry:"7"}),ke.createElement("g",{fillRule:"nonzero",stroke:vt},ke.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"}),ke.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:st}))))},De=oe(83116),Fe=oe(37613);const et=it=>{const{componentCls:He,margin:Se,marginXS:Ke,marginXL:Ue,fontSize:vt,lineHeight:Ye}=it;return{[He]:{marginInline:Ke,fontSize:vt,lineHeight:Ye,textAlign:"center",[`${He}-image`]:{height:it.emptyImgHeight,marginBottom:Ke,opacity:it.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${He}-description`]:{color:it.colorText},[`${He}-footer`]:{marginTop:Se},"&-normal":{marginBlock:Ue,color:it.colorTextDisabled,[`${He}-description`]:{color:it.colorTextDisabled},[`${He}-image`]:{height:it.emptyImgHeightMD}},"&-small":{marginBlock:Ke,color:it.colorTextDisabled,[`${He}-image`]:{height:it.emptyImgHeightSM}}}}};var We=(0,De.Z)("Empty",it=>{const{componentCls:He,controlHeightLG:Se}=it,Ke=(0,Fe.TS)(it,{emptyImgCls:`${He}-img`,emptyImgHeight:Se*2.5,emptyImgHeightMD:Se,emptyImgHeightSM:Se*.875});return[et(Ke)]}),je=function(it,He){var Se={};for(var Ke in it)Object.prototype.hasOwnProperty.call(it,Ke)&&He.indexOf(Ke)<0&&(Se[Ke]=it[Ke]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,Ke=Object.getOwnPropertySymbols(it);Ue<Ke.length;Ue++)He.indexOf(Ke[Ue])<0&&Object.prototype.propertyIsEnumerable.call(it,Ke[Ue])&&(Se[Ke[Ue]]=it[Ke[Ue]]);return Se};const pt=ke.createElement(Me,null),rt=ke.createElement(ct,null),kt=it=>{var{className:He,rootClassName:Se,prefixCls:Ke,image:Ue=pt,description:vt,children:Ye,imageStyle:st,style:Ie}=it,Mt=je(it,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Ge,direction:Ot,empty:wt}=ke.useContext(nt.E_),At=Ge("empty",Ke),[Nt,Tt]=We(At),[Ve]=(0,be.Z)("Empty"),ye=typeof vt!="undefined"?vt:Ve==null?void 0:Ve.description,bt=typeof ye=="string"?ye:"empty";let Qt=null;return typeof Ue=="string"?Qt=ke.createElement("img",{alt:bt,src:Ue}):Qt=Ue,Nt(ke.createElement("div",Object.assign({className:Ae()(Tt,At,wt==null?void 0:wt.className,{[`${At}-normal`]:Ue===rt,[`${At}-rtl`]:Ot==="rtl"},He,Se),style:Object.assign(Object.assign({},wt==null?void 0:wt.style),Ie)},Mt),ke.createElement("div",{className:`${At}-image`,style:st},Qt),ye&&ke.createElement("div",{className:`${At}-description`},ye),Ye&&ke.createElement("div",{className:`${At}-footer`},Ye)))};kt.PRESENTED_IMAGE_DEFAULT=pt,kt.PRESENTED_IMAGE_SIMPLE=rt;var ft=kt},78241:function(fn,Wt,oe){"use strict";oe.d(Wt,{default:function(){return wr}});var ue=oe(77654),Ae=oe(92310),ke=oe.n(Ae),nt=oe(77900),be=oe(59301),Ee=oe(62892),he=oe(32441);function xe(Bt){const[ze,Xe]=be.useState(Bt);return be.useEffect(()=>{const Je=setTimeout(()=>{Xe(Bt)},Bt.length?0:10);return()=>{clearTimeout(Je)}},[Bt]),ze}var Me=oe(17313),Pe=oe(29878),ct=oe(8378),De=oe(37613),Fe=oe(83116),We=Bt=>{const{componentCls:ze}=Bt,Xe=`${ze}-show-help`,Je=`${ze}-show-help-item`;return{[Xe]:{transition:`opacity ${Bt.motionDurationSlow} ${Bt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Je]:{overflow:"hidden",transition:`height ${Bt.motionDurationSlow} ${Bt.motionEaseInOut},
|
|
|
opacity ${Bt.motionDurationSlow} ${Bt.motionEaseInOut},
|
|
|
transform ${Bt.motionDurationSlow} ${Bt.motionEaseInOut} !important`,[`&${Je}-appear, &${Je}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Je}-leave-active`]:{transform:"translateY(-5px)"}}}}};const je=Bt=>({legend:{display:"block",width:"100%",marginBottom:Bt.marginLG,padding:0,color:Bt.colorTextDescription,fontSize:Bt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Bt.lineWidth}px ${Bt.lineType} ${Bt.colorBorder}`},label:{fontSize:Bt.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 ${Bt.controlOutlineWidth}px ${Bt.controlOutline}`},output:{display:"block",paddingTop:15,color:Bt.colorText,fontSize:Bt.fontSize,lineHeight:Bt.lineHeight}}),pt=(Bt,ze)=>{const{formItemCls:Xe}=Bt;return{[Xe]:{[`${Xe}-label > label`]:{height:ze},[`${Xe}-control-input`]:{minHeight:ze}}}},rt=Bt=>{const{componentCls:ze}=Bt;return{[Bt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Me.Wf)(Bt)),je(Bt)),{[`${ze}-text`]:{display:"inline-block",paddingInlineEnd:Bt.paddingSM},"&-small":Object.assign({},pt(Bt,Bt.controlHeightSM)),"&-large":Object.assign({},pt(Bt,Bt.controlHeightLG))})}},kt=Bt=>{const{formItemCls:ze,iconCls:Xe,componentCls:Je,rootPrefixCls:qe,labelRequiredMarkColor:Ct,labelColor:Rt,labelFontSize:rn,labelHeight:Vt,labelColonMarginInlineStart:ln,labelColonMarginInlineEnd:Cn,itemMarginBottom:An}=Bt;return{[ze]:Object.assign(Object.assign({},(0,Me.Wf)(Bt)),{marginBottom:An,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${qe}-row`]:{display:"none"},"&-has-warning":{[`${ze}-split`]:{color:Bt.colorError}},"&-has-error":{[`${ze}-split`]:{color:Bt.colorWarning}},[`${ze}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Bt.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Vt,color:Rt,fontSize:rn,[`> ${Xe}`]:{fontSize:Bt.fontSize,verticalAlign:"top"},[`&${ze}-required:not(${ze}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Bt.marginXXS,color:Ct,fontSize:Bt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Je}-hide-required-mark &`]:{display:"none"}},[`${ze}-optional`]:{display:"inline-block",marginInlineStart:Bt.marginXXS,color:Bt.colorTextDescription,[`${Je}-hide-required-mark &`]:{display:"none"}},[`${ze}-tooltip`]:{color:Bt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Bt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:ln,marginInlineEnd:Cn},[`&${ze}-no-colon::after`]:{content:'"\\a0"'}}},[`${ze}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${qe}-col-'"]):not([class*="' ${qe}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Bt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[ze]:{"&-explain, &-extra":{clear:"both",color:Bt.colorTextDescription,fontSize:Bt.fontSize,lineHeight:Bt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Bt.controlHeightSM,transition:`color ${Bt.motionDurationMid} ${Bt.motionEaseOut}`},"&-explain":{"&-error":{color:Bt.colorError},"&-warning":{color:Bt.colorWarning}}},[`&-with-help ${ze}-explain`]:{height:"auto",opacity:1},[`${ze}-feedback-icon`]:{fontSize:Bt.fontSize,textAlign:"center",visibility:"visible",animationName:Pe.kr,animationDuration:Bt.motionDurationMid,animationTimingFunction:Bt.motionEaseOutBack,pointerEvents:"none","&-success":{color:Bt.colorSuccess},"&-error":{color:Bt.colorError},"&-warning":{color:Bt.colorWarning},"&-validating":{color:Bt.colorPrimary}}})}},ft=Bt=>{const{componentCls:ze,formItemCls:Xe}=Bt;return{[`${ze}-horizontal`]:{[`${Xe}-label`]:{flexGrow:0},[`${Xe}-control`]:{flex:"1 1 0",minWidth:0},[`${Xe}-label[class$='-24'], ${Xe}-label[class*='-24 ']`]:{[`& + ${Xe}-control`]:{minWidth:"unset"}}}}},it=Bt=>{const{componentCls:ze,formItemCls:Xe}=Bt;return{[`${ze}-inline`]:{display:"flex",flexWrap:"wrap",[Xe]:{flex:"none",marginInlineEnd:Bt.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Xe}-label,
|
|
|
> ${Xe}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Xe}-label`]:{flex:"none"},[`${ze}-text`]:{display:"inline-block"},[`${Xe}-has-feedback`]:{display:"inline-block"}}}}},He=Bt=>({padding:Bt.verticalLabelPadding,margin:Bt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Se=Bt=>{const{componentCls:ze,formItemCls:Xe,rootPrefixCls:Je}=Bt;return{[`${Xe} ${Xe}-label`]:He(Bt),[ze]:{[Xe]:{flexWrap:"wrap",[`${Xe}-label, ${Xe}-control`]:{[`&:not([class*=" ${Je}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ke=Bt=>{const{componentCls:ze,formItemCls:Xe,rootPrefixCls:Je}=Bt;return{[`${ze}-vertical`]:{[Xe]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${ze}-item-control`]:{width:"100%"}}},[`${ze}-vertical ${Xe}-label,
|
|
|
.${Je}-col-24${Xe}-label,
|
|
|
.${Je}-col-xl-24${Xe}-label`]:He(Bt),[`@media (max-width: ${Bt.screenXSMax}px)`]:[Se(Bt),{[ze]:{[`.${Je}-col-xs-24${Xe}-label`]:He(Bt)}}],[`@media (max-width: ${Bt.screenSMMax}px)`]:{[ze]:{[`.${Je}-col-sm-24${Xe}-label`]:He(Bt)}},[`@media (max-width: ${Bt.screenMDMax}px)`]:{[ze]:{[`.${Je}-col-md-24${Xe}-label`]:He(Bt)}},[`@media (max-width: ${Bt.screenLGMax}px)`]:{[ze]:{[`.${Je}-col-lg-24${Xe}-label`]:He(Bt)}}}},Ue=(Bt,ze)=>(0,De.TS)(Bt,{formItemCls:`${Bt.componentCls}-item`,rootPrefixCls:ze});var vt=(0,Fe.Z)("Form",(Bt,ze)=>{let{rootPrefixCls:Xe}=ze;const Je=Ue(Bt,Xe);return[rt(Je),kt(Je),We(Je),ft(Je),it(Je),Ke(Je),(0,ct.Z)(Je),Pe.kr]},Bt=>({labelRequiredMarkColor:Bt.colorError,labelColor:Bt.colorTextHeading,labelFontSize:Bt.fontSize,labelHeight:Bt.controlHeight,labelColonMarginInlineStart:Bt.marginXXS/2,labelColonMarginInlineEnd:Bt.marginXS,itemMarginBottom:Bt.marginLG,verticalLabelPadding:`0 0 ${Bt.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Ye=[];function st(Bt,ze,Xe){let Je=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Bt=="string"?Bt:`${ze}-${Je}`,error:Bt,errorStatus:Xe}}var Mt=Bt=>{let{help:ze,helpStatus:Xe,errors:Je=Ye,warnings:qe=Ye,className:Ct,fieldId:Rt,onVisibleChanged:rn}=Bt;const{prefixCls:Vt}=be.useContext(he.Rk),ln=`${Vt}-item-explain`,[,Cn]=vt(Vt),An=(0,be.useMemo)(()=>(0,Ee.Z)(Vt),[Vt]),Tn=xe(Je),Ut=xe(qe),bn=be.useMemo(()=>ze!=null?[st(ze,"help",Xe)]:[].concat((0,ue.Z)(Tn.map((Fn,Jn)=>st(Fn,"error","error",Jn))),(0,ue.Z)(Ut.map((Fn,Jn)=>st(Fn,"warning","warning",Jn)))),[ze,Xe,Tn,Ut]),Vn={};return Rt&&(Vn.id=`${Rt}_help`),be.createElement(nt.default,{motionDeadline:An.motionDeadline,motionName:`${Vt}-show-help`,visible:!!bn.length,onVisibleChanged:rn},Fn=>{const{className:Jn,style:Wn}=Fn;return be.createElement("div",Object.assign({},Vn,{className:ke()(ln,Jn,Ct,Cn),style:Wn,role:"alert"}),be.createElement(nt.CSSMotionList,Object.assign({keys:bn},(0,Ee.Z)(Vt),{motionName:`${Vt}-show-help-item`,component:!1}),mr=>{const{key:Bn,error:rr,errorStatus:It,className:on,style:un}=mr;return be.createElement("div",{key:Bn,className:ke()(on,{[`${ln}-${It}`]:It}),style:un},rr)}))})},Ge=oe(95013),Ot=oe(36355),wt=oe(1684),At=oe(52946),Nt=oe(19716),Tt=oe(16722);const Ve=["parentNode"],ye="form_item";function bt(Bt){return Bt===void 0||Bt===!1?[]:Array.isArray(Bt)?Bt:[Bt]}function Qt(Bt,ze){if(!Bt.length)return;const Xe=Bt.join("_");return ze?`${ze}_${Xe}`:Ve.includes(Xe)?`${ye}_${Xe}`:Xe}function Kt(Bt,ze,Xe,Je,qe,Ct){let Rt=Je;return Ct!==void 0?Rt=Ct:Xe.validating?Rt="validating":Bt.length?Rt="error":ze.length?Rt="warning":(Xe.touched||qe&&Xe.validated)&&(Rt="success"),Rt}function at(Bt){return bt(Bt).join("_")}function lt(Bt){const[ze]=(0,Ge.useForm)(),Xe=be.useRef({}),Je=be.useMemo(()=>Bt!=null?Bt:Object.assign(Object.assign({},ze),{__INTERNAL__:{itemRef:qe=>Ct=>{const Rt=at(qe);Ct?Xe.current[Rt]=Ct:delete Xe.current[Rt]}},scrollToField:function(qe){let Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Rt=bt(qe),rn=Qt(Rt,Je.__INTERNAL__.name),Vt=rn?document.getElementById(rn):null;Vt&&(0,Tt.Z)(Vt,Object.assign({scrollMode:"if-needed",block:"nearest"},Ct))},getFieldInstance:qe=>{const Ct=at(qe);return Xe.current[Ct]}}),[Bt,ze]);return[Je]}var Dt=oe(28726),yn=function(Bt,ze){var Xe={};for(var Je in Bt)Object.prototype.hasOwnProperty.call(Bt,Je)&&ze.indexOf(Je)<0&&(Xe[Je]=Bt[Je]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,Je=Object.getOwnPropertySymbols(Bt);qe<Je.length;qe++)ze.indexOf(Je[qe])<0&&Object.prototype.propertyIsEnumerable.call(Bt,Je[qe])&&(Xe[Je[qe]]=Bt[Je[qe]]);return Xe};const $t=(Bt,ze)=>{const Xe=be.useContext(wt.Z),{getPrefixCls:Je,direction:qe,form:Ct}=be.useContext(Ot.E_),{prefixCls:Rt,className:rn,rootClassName:Vt,size:ln,disabled:Cn=Xe,form:An,colon:Tn,labelAlign:Ut,labelWrap:bn,labelCol:Vn,wrapperCol:Fn,hideRequiredMark:Jn,layout:Wn="horizontal",scrollToFirstError:mr,requiredMark:Bn,onFinishFailed:rr,name:It,style:on,feedbackIcons:un}=Bt,xn=yn(Bt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),dn=(0,Nt.Z)(ln),vn=be.useContext(Dt.Z),pn=(0,be.useMemo)(()=>Bn!==void 0?Bn:Ct&&Ct.requiredMark!==void 0?Ct.requiredMark:!Jn,[Jn,Bn,Ct]),On=Tn!=null?Tn:Ct==null?void 0:Ct.colon,Rn=Je("form",Rt),[Gn,Er]=vt(Rn),Hr=ke()(Rn,`${Rn}-${Wn}`,{[`${Rn}-hide-required-mark`]:pn===!1,[`${Rn}-rtl`]:qe==="rtl",[`${Rn}-${dn}`]:dn},Er,Ct==null?void 0:Ct.className,rn,Vt),[Xr]=lt(An),{__INTERNAL__:Lr}=Xr;Lr.name=It;const vr=(0,be.useMemo)(()=>({name:It,labelAlign:Ut,labelCol:Vn,labelWrap:bn,wrapperCol:Fn,vertical:Wn==="vertical",colon:On,requiredMark:pn,itemRef:Lr.itemRef,form:Xr,feedbackIcons:un}),[It,Ut,Vn,Fn,Wn,On,pn,Xr,un]);be.useImperativeHandle(ze,()=>Xr);const Jr=(Zr,xr)=>{if(Zr){let Nr={block:"nearest"};typeof Zr=="object"&&(Nr=Zr),Xr.scrollToField(xr,Nr)}},Gr=Zr=>{if(rr==null||rr(Zr),Zr.errorFields.length){const xr=Zr.errorFields[0].name;if(mr!==void 0){Jr(mr,xr);return}Ct&&Ct.scrollToFirstError!==void 0&&Jr(Ct.scrollToFirstError,xr)}};return Gn(be.createElement(wt.n,{disabled:Cn},be.createElement(At.q,{size:dn},be.createElement(he.RV,Object.assign({},{validateMessages:vn}),be.createElement(he.q3.Provider,{value:vr},be.createElement(Ge.default,Object.assign({id:It},xn,{name:It,onFinishFailed:Gr,form:Xr,style:Object.assign(Object.assign({},Ct==null?void 0:Ct.style),on),className:Hr})))))))};var tn=be.forwardRef($t),en=oe(41799),Gt=oe(8654),ve=oe(92343),ce=oe(11592);function le(Bt){if(typeof Bt=="function")return Bt;const ze=(0,ce.Z)(Bt);return ze.length<=1?ze[0]:ze}const de=()=>{const{status:Bt,errors:ze=[],warnings:Xe=[]}=(0,be.useContext)(he.aM);return{status:Bt,errors:ze,warnings:Xe}};de.Context=he.aM;var pe=de,ae=oe(16089);function Te(Bt){const[ze,Xe]=be.useState(Bt),Je=(0,be.useRef)(null),qe=(0,be.useRef)([]),Ct=(0,be.useRef)(!1);be.useEffect(()=>(Ct.current=!1,()=>{Ct.current=!0,ae.Z.cancel(Je.current),Je.current=null}),[]);function Rt(rn){Ct.current||(Je.current===null&&(qe.current=[],Je.current=(0,ae.Z)(()=>{Je.current=null,Xe(Vt=>{let ln=Vt;return qe.current.forEach(Cn=>{ln=Cn(ln)}),ln})})),qe.current.push(rn))}return[ze,Rt]}function gt(){const{itemRef:Bt}=be.useContext(he.q3),ze=be.useRef({});function Xe(Je,qe){const Ct=qe&&typeof qe=="object"&&qe.ref,Rt=Je.join("_");return(ze.current.name!==Rt||ze.current.originRef!==Ct)&&(ze.current.name=Rt,ze.current.originRef=Ct,ze.current.ref=(0,Gt.sQ)(Bt(Je),Ct)),ze.current.ref}return Xe}var Re=oe(29194),Be=oe(34280),yt=oe(2738),ut=oe(27382),Qe=oe(37028);const St=Bt=>{const{formItemCls:ze}=Bt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${ze}-control`]:{display:"flex"}}}};var Jt=(0,Fe.b)(["Form","item-item"],(Bt,ze)=>{let{rootPrefixCls:Xe}=ze;const Je=Ue(Bt,Xe);return[St(Je)]}),Ft=Bt=>{const{prefixCls:ze,status:Xe,wrapperCol:Je,children:qe,errors:Ct,warnings:Rt,_internalItemRender:rn,extra:Vt,help:ln,fieldId:Cn,marginBottom:An,onErrorVisibleChanged:Tn}=Bt,Ut=`${ze}-item`,bn=be.useContext(he.q3),Vn=Je||bn.wrapperCol||{},Fn=ke()(`${Ut}-control`,Vn.className),Jn=be.useMemo(()=>Object.assign({},bn),[bn]);delete Jn.labelCol,delete Jn.wrapperCol;const Wn=be.createElement("div",{className:`${Ut}-control-input`},be.createElement("div",{className:`${Ut}-control-input-content`},qe)),mr=be.useMemo(()=>({prefixCls:ze,status:Xe}),[ze,Xe]),Bn=An!==null||Ct.length||Rt.length?be.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},be.createElement(he.Rk.Provider,{value:mr},be.createElement(Mt,{fieldId:Cn,errors:Ct,warnings:Rt,help:ln,helpStatus:Xe,className:`${Ut}-explain-connected`,onVisibleChanged:Tn})),!!An&&be.createElement("div",{style:{width:0,height:An}})):null,rr={};Cn&&(rr.id=`${Cn}_extra`);const It=Vt?be.createElement("div",Object.assign({},rr,{className:`${Ut}-extra`}),Vt):null,on=rn&&rn.mark==="pro_table_render"&&rn.render?rn.render(Bt,{input:Wn,errorList:Bn,extra:It}):be.createElement(be.Fragment,null,Wn,Bn,It);return be.createElement(he.q3.Provider,{value:Jn},be.createElement(Qe.Z,Object.assign({},Vn,{className:Fn}),on),be.createElement(Jt,{prefixCls:ze}))},nn=oe(61485),ht=oe(31724),Le=oe(9763),dt=oe(6848),Pt=function(Bt,ze){var Xe={};for(var Je in Bt)Object.prototype.hasOwnProperty.call(Bt,Je)&&ze.indexOf(Je)<0&&(Xe[Je]=Bt[Je]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,Je=Object.getOwnPropertySymbols(Bt);qe<Je.length;qe++)ze.indexOf(Je[qe])<0&&Object.prototype.propertyIsEnumerable.call(Bt,Je[qe])&&(Xe[Je[qe]]=Bt[Je[qe]]);return Xe};function _t(Bt){return Bt?typeof Bt=="object"&&!be.isValidElement(Bt)?Bt:{title:Bt}:null}var gn=Bt=>{let{prefixCls:ze,label:Xe,htmlFor:Je,labelCol:qe,labelAlign:Ct,colon:Rt,required:rn,requiredMark:Vt,tooltip:ln}=Bt;var Cn;const[An]=(0,Le.Z)("Form"),{vertical:Tn,labelAlign:Ut,labelCol:bn,labelWrap:Vn,colon:Fn}=be.useContext(he.q3);if(!Xe)return null;const Jn=qe||bn||{},Wn=Ct||Ut,mr=`${ze}-item-label`,Bn=ke()(mr,Wn==="left"&&`${mr}-left`,Jn.className,{[`${mr}-wrap`]:!!Vn});let rr=Xe;const It=Rt===!0||Fn!==!1&&Rt!==!1;It&&!Tn&&typeof Xe=="string"&&Xe.trim()!==""&&(rr=Xe.replace(/[:|:]\s*$/,""));const un=_t(ln);if(un){const{icon:pn=be.createElement(nn.Z,null)}=un,On=Pt(un,["icon"]),Rn=be.createElement(dt.Z,Object.assign({},On),be.cloneElement(pn,{className:`${ze}-item-tooltip`,title:""}));rr=be.createElement(be.Fragment,null,rr,Rn)}const xn=Vt==="optional",dn=typeof Vt=="function";dn?rr=Vt(rr,{required:!!rn}):xn&&!rn&&(rr=be.createElement(be.Fragment,null,rr,be.createElement("span",{className:`${ze}-item-optional`,title:""},(An==null?void 0:An.optional)||((Cn=ht.Z.Form)===null||Cn===void 0?void 0:Cn.optional))));const vn=ke()({[`${ze}-item-required`]:rn,[`${ze}-item-required-mark-optional`]:xn||dn,[`${ze}-item-no-colon`]:!It});return be.createElement(Qe.Z,Object.assign({},Jn,{className:Bn}),be.createElement("label",{htmlFor:Je,className:vn,title:typeof Xe=="string"?Xe:""},rr))},En=oe(29679),wn=oe(19248),_n=oe(96512),$n=oe(58617);const Dn={success:En.Z,warning:_n.Z,error:wn.Z,validating:$n.Z};function qn(Bt){let{children:ze,errors:Xe,warnings:Je,hasFeedback:qe,validateStatus:Ct,prefixCls:Rt,meta:rn,noStyle:Vt}=Bt;const ln=`${Rt}-item`,{feedbackIcons:Cn}=be.useContext(he.q3),An=Kt(Xe,Je,rn,null,!!qe,Ct),{isFormItemInput:Tn,status:Ut}=be.useContext(he.aM),bn=be.useMemo(()=>{var Vn;let Fn;if(qe){const mr=qe!==!0&&qe.icons||Cn,Bn=An&&((Vn=mr==null?void 0:mr({status:An,errors:Xe,warnings:Je}))===null||Vn===void 0?void 0:Vn[An]),rr=An&&Dn[An];Fn=Bn!==!1&&rr?be.createElement("span",{className:ke()(`${ln}-feedback-icon`,`${ln}-feedback-icon-${An}`)},Bn||be.createElement(rr,null)):null}let Jn=!0,Wn=An||"";return Vt&&(Jn=Tn,Wn=(An!=null?An:Ut)||""),{status:Wn,errors:Xe,warnings:Je,hasFeedback:!!qe,feedbackIcon:Fn,isFormItemInput:Jn}},[An,qe,Vt,Tn,Ut]);return be.createElement(he.aM.Provider,{value:bn},ze)}var fr=function(Bt,ze){var Xe={};for(var Je in Bt)Object.prototype.hasOwnProperty.call(Bt,Je)&&ze.indexOf(Je)<0&&(Xe[Je]=Bt[Je]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,Je=Object.getOwnPropertySymbols(Bt);qe<Je.length;qe++)ze.indexOf(Je[qe])<0&&Object.prototype.propertyIsEnumerable.call(Bt,Je[qe])&&(Xe[Je[qe]]=Bt[Je[qe]]);return Xe};function br(Bt){const{prefixCls:ze,className:Xe,rootClassName:Je,style:qe,help:Ct,errors:Rt,warnings:rn,validateStatus:Vt,meta:ln,hasFeedback:Cn,hidden:An,children:Tn,fieldId:Ut,required:bn,isRequired:Vn,onSubItemMetaChange:Fn}=Bt,Jn=fr(Bt,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),Wn=`${ze}-item`,{requiredMark:mr}=be.useContext(he.q3),Bn=be.useRef(null),rr=xe(Rt),It=xe(rn),on=Ct!=null,un=!!(on||Rt.length||rn.length),xn=!!Bn.current&&(0,Re.Z)(Bn.current),[dn,vn]=be.useState(null);(0,Be.Z)(()=>{if(un&&Bn.current){const Er=getComputedStyle(Bn.current);vn(parseInt(Er.marginBottom,10))}},[un,xn]);const pn=Er=>{Er||vn(null)},Rn=function(){let Er=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Hr=Er?rr:ln.errors,Xr=Er?It:ln.warnings;return Kt(Hr,Xr,ln,"",!!Cn,Vt)}(),Gn=ke()(Wn,Xe,Je,{[`${Wn}-with-help`]:on||rr.length||It.length,[`${Wn}-has-feedback`]:Rn&&Cn,[`${Wn}-has-success`]:Rn==="success",[`${Wn}-has-warning`]:Rn==="warning",[`${Wn}-has-error`]:Rn==="error",[`${Wn}-is-validating`]:Rn==="validating",[`${Wn}-hidden`]:An});return be.createElement("div",{className:Gn,style:qe,ref:Bn},be.createElement(ut.Z,Object.assign({className:`${Wn}-row`},(0,yt.Z)(Jn,["_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(gn,Object.assign({htmlFor:Ut},Bt,{requiredMark:mr,required:bn!=null?bn:Vn,prefixCls:ze})),be.createElement(Ft,Object.assign({},Bt,ln,{errors:rr,warnings:It,prefixCls:ze,status:Rn,help:Ct,marginBottom:dn,onErrorVisibleChanged:pn}),be.createElement(he.qI.Provider,{value:Fn},be.createElement(qn,{prefixCls:ze,meta:ln,errors:ln.errors,warnings:ln.warnings,hasFeedback:Cn,validateStatus:Rn},Tn)))),!!dn&&be.createElement("div",{className:`${Wn}-margin-offset`,style:{marginBottom:-dn}}))}const Zn="__SPLIT__",ar=null,Cr=be.memo(Bt=>{let{children:ze}=Bt;return ze},(Bt,ze)=>Bt.value===ze.value&&Bt.update===ze.update&&Bt.childProps.length===ze.childProps.length&&Bt.childProps.every((Xe,Je)=>Xe===ze.childProps[Je]));function jn(Bt){return Bt!=null}function Dr(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function ei(Bt){const{name:ze,noStyle:Xe,className:Je,dependencies:qe,prefixCls:Ct,shouldUpdate:Rt,rules:rn,children:Vt,required:ln,label:Cn,messageVariables:An,trigger:Tn="onChange",validateTrigger:Ut,hidden:bn,help:Vn}=Bt,{getPrefixCls:Fn}=be.useContext(Ot.E_),{name:Jn}=be.useContext(he.q3),Wn=le(Vt),mr=typeof Wn=="function",Bn=be.useContext(he.qI),{validateTrigger:rr}=be.useContext(Ge.FieldContext),It=Ut!==void 0?Ut:rr,on=jn(ze),un=Fn("form",Ct),[xn,dn]=vt(un),vn=be.useContext(Ge.ListContext),pn=be.useRef(),[On,Rn]=Te({}),[Gn,Er]=(0,en.Z)(()=>Dr()),Hr=xr=>{const Nr=vn==null?void 0:vn.getKey(xr.name);if(Er(xr.destroy?Dr():xr,!0),Xe&&Vn!==!1&&Bn){let Qr=xr.name;if(xr.destroy)Qr=pn.current||Qr;else if(Nr!==void 0){const[Kr,hi]=Nr;Qr=[Kr].concat((0,ue.Z)(hi)),pn.current=Qr}Bn(xr,Qr)}},Xr=(xr,Nr)=>{Rn(Qr=>{const Kr=Object.assign({},Qr),Bi=[].concat((0,ue.Z)(xr.name.slice(0,-1)),(0,ue.Z)(Nr)).join(Zn);return xr.destroy?delete Kr[Bi]:Kr[Bi]=xr,Kr})},[Lr,vr]=be.useMemo(()=>{const xr=(0,ue.Z)(Gn.errors),Nr=(0,ue.Z)(Gn.warnings);return Object.values(On).forEach(Qr=>{xr.push.apply(xr,(0,ue.Z)(Qr.errors||[])),Nr.push.apply(Nr,(0,ue.Z)(Qr.warnings||[]))}),[xr,Nr]},[On,Gn.errors,Gn.warnings]),Jr=gt();function Gr(xr,Nr,Qr){return Xe&&!bn?be.createElement(qn,{prefixCls:un,hasFeedback:Bt.hasFeedback,validateStatus:Bt.validateStatus,meta:Gn,errors:Lr,warnings:vr,noStyle:!0},xr):be.createElement(br,Object.assign({key:"row"},Bt,{className:ke()(Je,dn),prefixCls:un,fieldId:Nr,isRequired:Qr,errors:Lr,warnings:vr,meta:Gn,onSubItemMetaChange:Xr}),xr)}if(!on&&!mr&&!qe)return xn(Gr(Wn));let Zr={};return typeof Cn=="string"?Zr.label=Cn:ze&&(Zr.label=String(ze)),An&&(Zr=Object.assign(Object.assign({},Zr),An)),xn(be.createElement(Ge.Field,Object.assign({},Bt,{messageVariables:Zr,trigger:Tn,validateTrigger:It,onMetaChange:Hr}),(xr,Nr,Qr)=>{const Kr=bt(ze).length&&Nr?Nr.name:[],hi=Qt(Kr,Jn),Bi=ln!==void 0?ln:!!(rn&&rn.some(Kn=>{if(Kn&&typeof Kn=="object"&&Kn.required&&!Kn.warningOnly)return!0;if(typeof Kn=="function"){const Wr=Kn(Qr);return Wr&&Wr.required&&!Wr.warningOnly}return!1})),Ur=Object.assign({},xr);let Xn=null;if(Array.isArray(Wn)&&on)Xn=Wn;else if(!(mr&&(!(Rt||qe)||on))){if(!(qe&&!mr&&!on))if((0,ve.l$)(Wn)){const Kn=Object.assign(Object.assign({},Wn.props),Ur);if(Kn.id||(Kn.id=hi),Vn||Lr.length>0||vr.length>0||Bt.extra){const ri=[];(Vn||Lr.length>0)&&ri.push(`${hi}_help`),Bt.extra&&ri.push(`${hi}_extra`),Kn["aria-describedby"]=ri.join(" ")}Lr.length>0&&(Kn["aria-invalid"]="true"),Bi&&(Kn["aria-required"]="true"),(0,Gt.Yr)(Wn)&&(Kn.ref=Jr(Kr,Wn)),new Set([].concat((0,ue.Z)(bt(Tn)),(0,ue.Z)(bt(It)))).forEach(ri=>{Kn[ri]=function(){for(var pi,li,$i,xi,oa,Br=arguments.length,Ar=new Array(Br),fi=0;fi<Br;fi++)Ar[fi]=arguments[fi];($i=Ur[ri])===null||$i===void 0||(pi=$i).call.apply(pi,[Ur].concat(Ar)),(oa=(xi=Wn.props)[ri])===null||oa===void 0||(li=oa).call.apply(li,[xi].concat(Ar))}});const Tr=[Kn["aria-required"],Kn["aria-invalid"],Kn["aria-describedby"]];Xn=be.createElement(Cr,{value:Ur[Bt.valuePropName||"value"],update:Wn,childProps:Tr},(0,ve.Tm)(Wn,Kn))}else mr&&(Rt||qe)&&!on?Xn=Wn(Qr):Xn=Wn}return Gr(Xn,hi,Bi)}))}const Fr=ei;Fr.useStatus=pe;var ai=Fr,ti=function(Bt,ze){var Xe={};for(var Je in Bt)Object.prototype.hasOwnProperty.call(Bt,Je)&&ze.indexOf(Je)<0&&(Xe[Je]=Bt[Je]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,Je=Object.getOwnPropertySymbols(Bt);qe<Je.length;qe++)ze.indexOf(Je[qe])<0&&Object.prototype.propertyIsEnumerable.call(Bt,Je[qe])&&(Xe[Je[qe]]=Bt[Je[qe]]);return Xe},hr=Bt=>{var{prefixCls:ze,children:Xe}=Bt,Je=ti(Bt,["prefixCls","children"]);const{getPrefixCls:qe}=be.useContext(Ot.E_),Ct=qe("form",ze),Rt=be.useMemo(()=>({prefixCls:Ct,status:"error"}),[Ct]);return be.createElement(Ge.List,Object.assign({},Je),(rn,Vt,ln)=>be.createElement(he.Rk.Provider,{value:Rt},Xe(rn.map(Cn=>Object.assign(Object.assign({},Cn),{fieldKey:Cn.key})),Vt,{errors:ln.errors,warnings:ln.warnings})))};function zn(){const{form:Bt}=(0,be.useContext)(he.q3);return Bt}const Hn=tn;Hn.Item=ai,Hn.List=hr,Hn.ErrorList=Mt,Hn.useForm=lt,Hn.useFormInstance=zn,Hn.useWatch=Ge.useWatch,Hn.Provider=he.RV,Hn.create=()=>{};var wr=Hn},8628:function(fn,Wt,oe){"use strict";var ue=oe(59301),Ae=oe(34280),ke=oe(56762),nt=oe(69507);function be(){let Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const he=(0,ue.useRef)({}),xe=(0,ke.Z)(),Me=(0,nt.ZP)();return(0,Ae.Z)(()=>{const Pe=Me.subscribe(ct=>{he.current=ct,Ee&&xe()});return()=>Me.unsubscribe(Pe)},[]),he.current}Wt.Z=be},5871:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return nn}});var ue=oe(84105),Ae=oe(87395),ke=oe(92310),nt=oe.n(ke),be=oe(60499),Ee=oe(18642),he=oe(43749),xe=oe(72190),Me=oe(42244),Pe=oe(38705),ct=oe(17212);function De(){return typeof BigInt=="function"}function Fe(ht){return!ht&&ht!==0&&!Number.isNaN(ht)||!String(ht).trim()}function et(ht){var Le=ht.trim(),dt=Le.startsWith("-");dt&&(Le=Le.slice(1)),Le=Le.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Le.startsWith(".")&&(Le="0".concat(Le));var Pt=Le||"0",_t=Pt.split("."),Xt=_t[0]||"0",gn=_t[1]||"0";Xt==="0"&&gn==="0"&&(dt=!1);var En=dt?"-":"";return{negative:dt,negativeStr:En,trimStr:Pt,integerStr:Xt,decimalStr:gn,fullStr:"".concat(En).concat(Pt)}}function We(ht){var Le=String(ht);return!Number.isNaN(Number(Le))&&Le.includes("e")}function je(ht){var Le=String(ht);if(We(ht)){var dt=Number(Le.slice(Le.indexOf("e-")+2)),Pt=Le.match(/\.(\d+)/);return Pt!=null&&Pt[1]&&(dt+=Pt[1].length),dt}return Le.includes(".")&&rt(Le)?Le.length-Le.indexOf(".")-1:0}function pt(ht){var Le=String(ht);if(We(ht)){if(ht>Number.MAX_SAFE_INTEGER)return String(De()?BigInt(ht).toString():Number.MAX_SAFE_INTEGER);if(ht<Number.MIN_SAFE_INTEGER)return String(De()?BigInt(ht).toString():Number.MIN_SAFE_INTEGER);Le=ht.toFixed(je(Le))}return et(Le).fullStr}function rt(ht){return typeof ht=="number"?!Number.isNaN(ht):ht?/^\s*-?\d+(\.\d+)?\s*$/.test(ht)||/^\s*-?\d+\.\s*$/.test(ht)||/^\s*-?\.\d+\s*$/.test(ht):!1}var kt=function(){function ht(Le){if((0,Pe.Z)(this,ht),(0,Ee.Z)(this,"origin",""),(0,Ee.Z)(this,"negative",void 0),(0,Ee.Z)(this,"integer",void 0),(0,Ee.Z)(this,"decimal",void 0),(0,Ee.Z)(this,"decimalLen",void 0),(0,Ee.Z)(this,"empty",void 0),(0,Ee.Z)(this,"nan",void 0),Fe(Le)){this.empty=!0;return}if(this.origin=String(Le),Le==="-"||Number.isNaN(Le)){this.nan=!0;return}var dt=Le;if(We(dt)&&(dt=Number(dt)),dt=typeof dt=="string"?dt:pt(dt),rt(dt)){var Pt=et(dt);this.negative=Pt.negative;var _t=Pt.trimStr.split(".");this.integer=BigInt(_t[0]);var Xt=_t[1]||"0";this.decimal=BigInt(Xt),this.decimalLen=Xt.length}else this.nan=!0}return(0,ct.Z)(ht,[{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(dt){var Pt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(dt,"0"));return BigInt(Pt)}},{key:"negate",value:function(){var dt=new ht(this.toString());return dt.negative=!dt.negative,dt}},{key:"cal",value:function(dt,Pt,_t){var Xt=Math.max(this.getDecimalStr().length,dt.getDecimalStr().length),gn=this.alignDecimal(Xt),En=dt.alignDecimal(Xt),wn=Pt(gn,En).toString(),_n=_t(Xt),$n=et(wn),Dn=$n.negativeStr,qn=$n.trimStr,fr="".concat(Dn).concat(qn.padStart(_n+1,"0"));return new ht("".concat(fr.slice(0,-_n),".").concat(fr.slice(-_n)))}},{key:"add",value:function(dt){if(this.isInvalidate())return new ht(dt);var Pt=new ht(dt);return Pt.isInvalidate()?this:this.cal(Pt,function(_t,Xt){return _t+Xt},function(_t){return _t})}},{key:"multi",value:function(dt){var Pt=new ht(dt);return this.isInvalidate()||Pt.isInvalidate()?new ht(NaN):this.cal(Pt,function(_t,Xt){return _t*Xt},function(_t){return _t*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(dt){return this.toString()===(dt==null?void 0:dt.toString())}},{key:"lessEquals",value:function(dt){return this.add(dt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return dt?this.isInvalidate()?"":et("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),ht}(),ft=function(){function ht(Le){if((0,Pe.Z)(this,ht),(0,Ee.Z)(this,"origin",""),(0,Ee.Z)(this,"number",void 0),(0,Ee.Z)(this,"empty",void 0),Fe(Le)){this.empty=!0;return}this.origin=String(Le),this.number=Number(Le)}return(0,ct.Z)(ht,[{key:"negate",value:function(){return new ht(-this.toNumber())}},{key:"add",value:function(dt){if(this.isInvalidate())return new ht(dt);var Pt=Number(dt);if(Number.isNaN(Pt))return this;var _t=this.number+Pt;if(_t>Number.MAX_SAFE_INTEGER)return new ht(Number.MAX_SAFE_INTEGER);if(_t<Number.MIN_SAFE_INTEGER)return new ht(Number.MIN_SAFE_INTEGER);var Xt=Math.max(je(this.number),je(Pt));return new ht(_t.toFixed(Xt))}},{key:"multi",value:function(dt){var Pt=Number(dt);if(this.isInvalidate()||Number.isNaN(Pt))return new ht(NaN);var _t=this.number*Pt;if(_t>Number.MAX_SAFE_INTEGER)return new ht(Number.MAX_SAFE_INTEGER);if(_t<Number.MIN_SAFE_INTEGER)return new ht(Number.MIN_SAFE_INTEGER);var Xt=Math.max(je(this.number),je(Pt));return new ht(_t.toFixed(Xt))}},{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(dt){return this.toNumber()===(dt==null?void 0:dt.toNumber())}},{key:"lessEquals",value:function(dt){return this.add(dt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return dt?this.isInvalidate()?"":pt(this.number):this.origin}}]),ht}();function it(ht){return De()?new kt(ht):new ft(ht)}function He(ht,Le,dt){var Pt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(ht==="")return"";var _t=et(ht),Xt=_t.negativeStr,gn=_t.integerStr,En=_t.decimalStr,wn="".concat(Le).concat(En),_n="".concat(Xt).concat(gn);if(dt>=0){var $n=Number(En[dt]);if($n>=5&&!Pt){var Dn=it(ht).add("".concat(Xt,"0.").concat("0".repeat(dt)).concat(10-$n));return He(Dn.toString(),Le,dt,Pt)}return dt===0?_n:"".concat(_n).concat(Le).concat(En.padEnd(dt,"0").slice(0,dt))}return wn===".0"?_n:"".concat(_n).concat(wn)}var Se=it,Ke=oe(93681),Ue=oe(34280),vt=oe(8654),Ye=oe(59301),st=oe(48736);function Ie(ht,Le){var dt=(0,Ye.useRef)(null);function Pt(){try{var Xt=ht.selectionStart,gn=ht.selectionEnd,En=ht.value,wn=En.substring(0,Xt),_n=En.substring(gn);dt.current={start:Xt,end:gn,value:En,beforeTxt:wn,afterTxt:_n}}catch($n){}}function _t(){if(ht&&dt.current&&Le)try{var Xt=ht.value,gn=dt.current,En=gn.beforeTxt,wn=gn.afterTxt,_n=gn.start,$n=Xt.length;if(Xt.endsWith(wn))$n=Xt.length-dt.current.afterTxt.length;else if(Xt.startsWith(En))$n=En.length;else{var Dn=En[_n-1],qn=Xt.indexOf(Dn,_n-1);qn!==-1&&($n=qn+1)}ht.setSelectionRange($n,$n)}catch(fr){(0,st.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(fr.message))}}return[Pt,_t]}var Mt=oe(49658),Ge=function(){var Le=(0,Ye.useState)(!1),dt=(0,xe.Z)(Le,2),Pt=dt[0],_t=dt[1];return(0,Ue.Z)(function(){_t((0,Mt.Z)())},[]),Pt},Ot=Ge,wt=oe(16089),At=200,Nt=600;function Tt(ht){var Le=ht.prefixCls,dt=ht.upNode,Pt=ht.downNode,_t=ht.upDisabled,Xt=ht.downDisabled,gn=ht.onStep,En=Ye.useRef(),wn=Ye.useRef([]),_n=Ye.useRef();_n.current=gn;var $n=function(){clearTimeout(En.current)},Dn=function(Dr,ei){Dr.preventDefault(),$n(),_n.current(ei);function Fr(){_n.current(ei),En.current=setTimeout(Fr,At)}En.current=setTimeout(Fr,Nt)};Ye.useEffect(function(){return function(){$n(),wn.current.forEach(function(jn){return wt.Z.cancel(jn)})}},[]);var qn=Ot();if(qn)return null;var fr="".concat(Le,"-handler"),br=nt()(fr,"".concat(fr,"-up"),(0,Ee.Z)({},"".concat(fr,"-up-disabled"),_t)),Zn=nt()(fr,"".concat(fr,"-down"),(0,Ee.Z)({},"".concat(fr,"-down-disabled"),Xt)),ar=function(){return wn.current.push((0,wt.Z)($n))},Cr={unselectable:"on",role:"button",onMouseUp:ar,onMouseLeave:ar};return Ye.createElement("div",{className:"".concat(fr,"-wrap")},Ye.createElement("span",(0,be.Z)({},Cr,{onMouseDown:function(Dr){Dn(Dr,!0)},"aria-label":"Increase Value","aria-disabled":_t,className:br}),dt||Ye.createElement("span",{unselectable:"on",className:"".concat(Le,"-handler-up-inner")})),Ye.createElement("span",(0,be.Z)({},Cr,{onMouseDown:function(Dr){Dn(Dr,!1)},"aria-label":"Decrease Value","aria-disabled":Xt,className:Zn}),Pt||Ye.createElement("span",{unselectable:"on",className:"".concat(Le,"-handler-down-inner")})))}function Ve(ht){var Le=typeof ht=="number"?pt(ht):et(ht).fullStr,dt=Le.includes(".");return dt?et(Le.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:ht+"0"}var ye=oe(5643),bt=function(){var ht=(0,Ye.useRef)(0),Le=function(){wt.Z.cancel(ht.current)};return(0,Ye.useEffect)(function(){return Le},[]),function(dt){Le(),ht.current=(0,wt.Z)(function(){dt()})}},Qt=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],Kt=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],at=function(Le,dt){return Le||dt.isEmpty()?dt.toString():dt.toNumber()},lt=function(Le){var dt=Se(Le);return dt.isInvalidate()?null:dt},Dt=Ye.forwardRef(function(ht,Le){var dt,Pt=ht.prefixCls,_t=Pt===void 0?"rc-input-number":Pt,Xt=ht.className,gn=ht.style,En=ht.min,wn=ht.max,_n=ht.step,$n=_n===void 0?1:_n,Dn=ht.defaultValue,qn=ht.value,fr=ht.disabled,br=ht.readOnly,Zn=ht.upHandler,ar=ht.downHandler,Cr=ht.keyboard,jn=ht.controls,Dr=jn===void 0?!0:jn,ei=ht.classNames,Fr=ht.stringMode,ai=ht.parser,ti=ht.formatter,er=ht.precision,hr=ht.decimalSeparator,zn=ht.onChange,Hn=ht.onInput,wr=ht.onPressEnter,Bt=ht.onStep,ze=(0,Me.Z)(ht,Qt),Xe="".concat(_t,"-input"),Je=Ye.useRef(null),qe=Ye.useState(!1),Ct=(0,xe.Z)(qe,2),Rt=Ct[0],rn=Ct[1],Vt=Ye.useRef(!1),ln=Ye.useRef(!1),Cn=Ye.useRef(!1),An=Ye.useState(function(){return Se(qn!=null?qn:Dn)}),Tn=(0,xe.Z)(An,2),Ut=Tn[0],bn=Tn[1];function Vn(Xn){qn===void 0&&bn(Xn)}var Fn=Ye.useCallback(function(Xn,Kn){if(!Kn)return er>=0?er:Math.max(je(Xn),je($n))},[er,$n]),Jn=Ye.useCallback(function(Xn){var Kn=String(Xn);if(ai)return ai(Kn);var Wr=Kn;return hr&&(Wr=Wr.replace(hr,".")),Wr.replace(/[^\w.-]+/g,"")},[ai,hr]),Wn=Ye.useRef(""),mr=Ye.useCallback(function(Xn,Kn){if(ti)return ti(Xn,{userTyping:Kn,input:String(Wn.current)});var Wr=typeof Xn=="number"?pt(Xn):Xn;if(!Kn){var Tr=Fn(Wr,Kn);if(rt(Wr)&&(hr||Tr>=0)){var ri=hr||".";Wr=He(Wr,ri,Tr)}}return Wr},[ti,Fn,hr]),Bn=Ye.useState(function(){var Xn=Dn!=null?Dn:qn;return Ut.isInvalidate()&&["string","number"].includes((0,he.Z)(Xn))?Number.isNaN(Xn)?"":Xn:mr(Ut.toString(),!1)}),rr=(0,xe.Z)(Bn,2),It=rr[0],on=rr[1];Wn.current=It;function un(Xn,Kn){on(mr(Xn.isInvalidate()?Xn.toString(!1):Xn.toString(!Kn),Kn))}var xn=Ye.useMemo(function(){return lt(wn)},[wn,er]),dn=Ye.useMemo(function(){return lt(En)},[En,er]),vn=Ye.useMemo(function(){return!xn||!Ut||Ut.isInvalidate()?!1:xn.lessEquals(Ut)},[xn,Ut]),pn=Ye.useMemo(function(){return!dn||!Ut||Ut.isInvalidate()?!1:Ut.lessEquals(dn)},[dn,Ut]),On=Ie(Je.current,Rt),Rn=(0,xe.Z)(On,2),Gn=Rn[0],Er=Rn[1],Hr=function(Kn){return xn&&!Kn.lessEquals(xn)?xn:dn&&!dn.lessEquals(Kn)?dn:null},Xr=function(Kn){return!Hr(Kn)},Lr=function(Kn,Wr){var Tr=Kn,ri=Xr(Tr)||Tr.isEmpty();if(!Tr.isEmpty()&&!Wr&&(Tr=Hr(Tr)||Tr,ri=!0),!br&&!fr&&ri){var pi=Tr.toString(),li=Fn(pi,Wr);return li>=0&&(Tr=Se(He(pi,".",li)),Xr(Tr)||(Tr=Se(He(pi,".",li,!0)))),Tr.equals(Ut)||(Vn(Tr),zn==null||zn(Tr.isEmpty()?null:at(Fr,Tr)),qn===void 0&&un(Tr,Wr)),Tr}return Ut},vr=bt(),Jr=function Xn(Kn){if(Gn(),Wn.current=Kn,on(Kn),!ln.current){var Wr=Jn(Kn),Tr=Se(Wr);Tr.isNaN()||Lr(Tr,!0)}Hn==null||Hn(Kn),vr(function(){var ri=Kn;ai||(ri=Kn.replace(/。/g,".")),ri!==Kn&&Xn(ri)})},Gr=function(){ln.current=!0},Zr=function(){ln.current=!1,Jr(Je.current.value)},xr=function(Kn){Jr(Kn.target.value)},Nr=function(Kn){var Wr;if(!(Kn&&vn||!Kn&&pn)){Vt.current=!1;var Tr=Se(Cn.current?Ve($n):$n);Kn||(Tr=Tr.negate());var ri=(Ut||Se(0)).add(Tr.toString()),pi=Lr(ri,!1);Bt==null||Bt(at(Fr,pi),{offset:Cn.current?Ve($n):$n,type:Kn?"up":"down"}),(Wr=Je.current)===null||Wr===void 0||Wr.focus()}},Qr=function(Kn){var Wr=Se(Jn(It)),Tr=Wr;Wr.isNaN()?Tr=Lr(Ut,Kn):Tr=Lr(Wr,Kn),qn!==void 0?un(Ut,!1):Tr.isNaN()||un(Tr,!1)},Kr=function(){Vt.current=!0},hi=function(Kn){var Wr=Kn.key,Tr=Kn.shiftKey;Vt.current=!0,Cn.current=Tr,Wr==="Enter"&&(ln.current||(Vt.current=!1),Qr(!1),wr==null||wr(Kn)),Cr!==!1&&!ln.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Wr)&&(Nr(Wr==="Up"||Wr==="ArrowUp"),Kn.preventDefault())},Bi=function(){Vt.current=!1,Cn.current=!1},Ur=function(){Qr(!1),rn(!1),Vt.current=!1};return(0,Ue.o)(function(){Ut.isInvalidate()||un(Ut,!1)},[er]),(0,Ue.o)(function(){var Xn=Se(qn);bn(Xn);var Kn=Se(Jn(It));(!Xn.equals(Kn)||!Vt.current||ti)&&un(Xn,Vt.current)},[qn]),(0,Ue.o)(function(){ti&&Er()},[It]),Ye.createElement("div",{className:nt()(_t,ei==null?void 0:ei.input,Xt,(dt={},(0,Ee.Z)(dt,"".concat(_t,"-focused"),Rt),(0,Ee.Z)(dt,"".concat(_t,"-disabled"),fr),(0,Ee.Z)(dt,"".concat(_t,"-readonly"),br),(0,Ee.Z)(dt,"".concat(_t,"-not-a-number"),Ut.isNaN()),(0,Ee.Z)(dt,"".concat(_t,"-out-of-range"),!Ut.isInvalidate()&&!Xr(Ut)),dt)),style:gn,onFocus:function(){rn(!0)},onBlur:Ur,onKeyDown:hi,onKeyUp:Bi,onCompositionStart:Gr,onCompositionEnd:Zr,onBeforeInput:Kr},Dr&&Ye.createElement(Tt,{prefixCls:_t,upNode:Zn,downNode:ar,upDisabled:vn,downDisabled:pn,onStep:Nr}),Ye.createElement("div",{className:"".concat(Xe,"-wrap")},Ye.createElement("input",(0,be.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":En,"aria-valuemax":wn,"aria-valuenow":Ut.isInvalidate()?null:Ut.toString(),step:$n},ze,{ref:(0,vt.sQ)(Je,Le),className:Xe,value:It,onChange:xr,disabled:fr,readOnly:br}))))}),yn=Ye.forwardRef(function(ht,Le){var dt=ht.disabled,Pt=ht.style,_t=ht.prefixCls,Xt=ht.value,gn=ht.prefix,En=ht.suffix,wn=ht.addonBefore,_n=ht.addonAfter,$n=ht.classes,Dn=ht.className,qn=ht.classNames,fr=(0,Me.Z)(ht,Kt),br=Ye.useRef(null),Zn=function(Cr){br.current&&(0,ye.nH)(br.current,Cr)};return Ye.createElement(Ke.BaseInput,{inputElement:Ye.createElement(Dt,(0,be.Z)({prefixCls:_t,disabled:dt,classNames:qn,ref:(0,vt.sQ)(br,Le)},fr)),className:Dn,triggerFocus:Zn,prefixCls:_t,value:Xt,disabled:dt,style:Pt,prefix:gn,suffix:En,addonAfter:_n,addonBefore:wn,classes:$n,classNames:qn,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});yn.displayName="InputNumber";var $t=yn,hn=$t,tn=oe(19080),en=oe(36355),Gt=oe(92736),ve=oe(1684),ce=oe(19716),le=oe(32441),de=oe(33234),pe=oe(9937),ae=oe(17313),Te=oe(74207),gt=oe(83116),Re=oe(37613);const Be=(ht,Le)=>{let{componentCls:dt,borderRadiusSM:Pt,borderRadiusLG:_t}=ht;const Xt=Le==="lg"?_t:Pt;return{[`&-${Le}`]:{[`${dt}-handler-wrap`]:{borderStartEndRadius:Xt,borderEndEndRadius:Xt},[`${dt}-handler-up`]:{borderStartEndRadius:Xt},[`${dt}-handler-down`]:{borderEndEndRadius:Xt}}}},yt=ht=>{const{componentCls:Le,lineWidth:dt,lineType:Pt,colorBorder:_t,borderRadius:Xt,fontSizeLG:gn,controlHeightLG:En,controlHeightSM:wn,colorError:_n,paddingInlineSM:$n,colorTextDescription:Dn,motionDurationMid:qn,handleHoverColor:fr,paddingInline:br,paddingBlock:Zn,handleBg:ar,handleActiveBg:Cr,colorTextDisabled:jn,borderRadiusSM:Dr,borderRadiusLG:ei,controlWidth:Fr,handleVisible:ai,handleBorderColor:ti}=ht;return[{[Le]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ae.Wf)(ht)),(0,pe.ik)(ht)),(0,pe.bi)(ht,Le)),{display:"inline-block",width:Fr,margin:0,padding:0,border:`${dt}px ${Pt} ${_t}`,borderRadius:Xt,"&-rtl":{direction:"rtl",[`${Le}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:gn,borderRadius:ei,[`input${Le}-input`]:{height:En-2*dt}},"&-sm":{padding:0,borderRadius:Dr,[`input${Le}-input`]:{height:wn-2*dt,padding:`0 ${$n}px`}},"&:hover":Object.assign({},(0,pe.pU)(ht)),"&-focused":Object.assign({},(0,pe.M1)(ht)),"&-out-of-range":{[`${Le}-input-wrap`]:{input:{color:_n}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,ae.Wf)(ht)),(0,pe.s7)(ht)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Le}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Le}-group-addon`]:{borderRadius:ei,fontSize:ht.fontSizeLG}},"&-sm":{[`${Le}-group-addon`]:{borderRadius:Dr}},[`${Le}-wrapper-disabled > ${Le}-group-addon`]:Object.assign({},(0,pe.Xy)(ht))}}),[`&-disabled ${Le}-input`]:{cursor:"not-allowed"},[Le]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,ae.Wf)(ht)),{width:"100%",padding:`${Zn}px ${br}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Xt,outline:0,transition:`all ${qn} linear`,appearance:"textfield",fontSize:"inherit"}),(0,pe.nz)(ht.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[Le]:Object.assign(Object.assign(Object.assign({[`&:hover ${Le}-handler-wrap, &-focused ${Le}-handler-wrap`]:{opacity:1},[`${Le}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:ht.handleWidth,height:"100%",background:ar,borderStartStartRadius:0,borderStartEndRadius:Xt,borderEndEndRadius:Xt,borderEndStartRadius:0,opacity:ai===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${qn} linear ${qn}`,[`${Le}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${Le}-handler-up-inner,
|
|
|
${Le}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:ht.handleFontSize}}},[`${Le}-handler`]:{height:"50%",overflow:"hidden",color:Dn,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${dt}px ${Pt} ${ti}`,transition:`all ${qn} linear`,"&:active":{background:Cr},"&:hover":{height:"60%",[`
|
|
|
${Le}-handler-up-inner,
|
|
|
${Le}-handler-down-inner
|
|
|
`]:{color:fr}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,ae.Ro)()),{color:Dn,transition:`all ${qn} linear`,userSelect:"none"})},[`${Le}-handler-up`]:{borderStartEndRadius:Xt},[`${Le}-handler-down`]:{borderBlockStart:`${dt}px ${Pt} ${ti}`,borderEndEndRadius:Xt}},Be(ht,"lg")),Be(ht,"sm")),{"&-disabled, &-readonly":{[`${Le}-handler-wrap`]:{display:"none"},[`${Le}-input`]:{color:"inherit"}},[`
|
|
|
${Le}-handler-up-disabled,
|
|
|
${Le}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${Le}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${Le}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:jn}})},{[`${Le}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${Le}-handler-down`]:{borderBlockStartWidth:0}}}]},ut=ht=>{const{componentCls:Le,paddingBlock:dt,paddingInline:Pt,inputAffixPadding:_t,controlWidth:Xt,borderRadiusLG:gn,borderRadiusSM:En}=ht;return{[`${Le}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,pe.ik)(ht)),(0,pe.bi)(ht,`${Le}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:Xt,padding:0,paddingInlineStart:Pt,"&-lg":{borderRadius:gn},"&-sm":{borderRadius:En},[`&:not(${Le}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,pe.pU)(ht)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Le}-disabled`]:{background:"transparent"},[`> div${Le}`]:{width:"100%",border:"none",outline:"none",[`&${Le}-focused`]:{boxShadow:"none !important"}},[`input${Le}-input`]:{padding:`${dt}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Le}-handler-wrap`]:{zIndex:2},[Le]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:_t},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:Pt,marginInlineStart:_t}}})}};var Qe=(0,gt.Z)("InputNumber",ht=>{const Le=(0,Re.TS)(ht,(0,pe.e5)(ht));return[yt(Le),ut(Le),(0,Te.c)(Le)]},ht=>Object.assign(Object.assign({},(0,pe.TM)(ht)),{controlWidth:90,handleWidth:ht.controlHeightSM-ht.lineWidth*2,handleFontSize:ht.fontSize/2,handleVisible:"auto",handleActiveBg:ht.colorFillAlter,handleBg:ht.colorBgContainer,handleHoverColor:ht.colorPrimary,handleBorderColor:ht.colorBorder})),St=function(ht,Le){var dt={};for(var Pt in ht)Object.prototype.hasOwnProperty.call(ht,Pt)&&Le.indexOf(Pt)<0&&(dt[Pt]=ht[Pt]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _t=0,Pt=Object.getOwnPropertySymbols(ht);_t<Pt.length;_t++)Le.indexOf(Pt[_t])<0&&Object.prototype.propertyIsEnumerable.call(ht,Pt[_t])&&(dt[Pt[_t]]=ht[Pt[_t]]);return dt};const Jt=Ye.forwardRef((ht,Le)=>{const{getPrefixCls:dt,direction:Pt}=Ye.useContext(en.E_),_t=Ye.useRef(null);Ye.useImperativeHandle(Le,()=>_t.current);const{className:Xt,rootClassName:gn,size:En,disabled:wn,prefixCls:_n,addonBefore:$n,addonAfter:Dn,prefix:qn,bordered:fr=!0,readOnly:br,status:Zn,controls:ar}=ht,Cr=St(ht,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),jn=dt("input-number",_n),[Dr,ei]=Qe(jn),{compactSize:Fr,compactItemClassnames:ai}=(0,de.ri)(jn,Pt);let ti=Ye.createElement(Ae.Z,{className:`${jn}-handler-up-inner`}),er=Ye.createElement(ue.Z,{className:`${jn}-handler-down-inner`});const hr=typeof ar=="boolean"?ar:void 0;typeof ar=="object"&&(ti=typeof ar.upIcon=="undefined"?ti:Ye.createElement("span",{className:`${jn}-handler-up-inner`},ar.upIcon),er=typeof ar.downIcon=="undefined"?er:Ye.createElement("span",{className:`${jn}-handler-down-inner`},ar.downIcon));const{hasFeedback:zn,status:Hn,isFormItemInput:wr,feedbackIcon:Bt}=Ye.useContext(le.aM),ze=(0,tn.F)(Hn,Zn),Xe=(0,ce.Z)(Vt=>{var ln;return(ln=En!=null?En:Fr)!==null&&ln!==void 0?ln:Vt}),Je=Ye.useContext(ve.Z),qe=wn!=null?wn:Je,Ct=nt()({[`${jn}-lg`]:Xe==="large",[`${jn}-sm`]:Xe==="small",[`${jn}-rtl`]:Pt==="rtl",[`${jn}-borderless`]:!fr,[`${jn}-in-form-item`]:wr},(0,tn.Z)(jn,ze),ai,ei),Rt=`${jn}-group`,rn=Ye.createElement(hn,Object.assign({ref:_t,disabled:qe,className:nt()(Xt,gn),upHandler:ti,downHandler:er,prefixCls:jn,readOnly:br,controls:hr,prefix:qn,suffix:zn&&Bt,addonAfter:Dn&&Ye.createElement(de.BR,null,Ye.createElement(le.Ux,{override:!0,status:!0},Dn)),addonBefore:$n&&Ye.createElement(de.BR,null,Ye.createElement(le.Ux,{override:!0,status:!0},$n)),classNames:{input:Ct},classes:{affixWrapper:nt()((0,tn.Z)(`${jn}-affix-wrapper`,ze,zn),{[`${jn}-affix-wrapper-sm`]:Xe==="small",[`${jn}-affix-wrapper-lg`]:Xe==="large",[`${jn}-affix-wrapper-rtl`]:Pt==="rtl",[`${jn}-affix-wrapper-borderless`]:!fr},ei),wrapper:nt()({[`${Rt}-rtl`]:Pt==="rtl",[`${jn}-wrapper-disabled`]:qe},ei),group:nt()({[`${jn}-group-wrapper-sm`]:Xe==="small",[`${jn}-group-wrapper-lg`]:Xe==="large",[`${jn}-group-wrapper-rtl`]:Pt==="rtl"},(0,tn.Z)(`${jn}-group-wrapper`,ze,zn),ei)}},Cr));return Dr(rn)}),mt=Jt,Ft=ht=>Ye.createElement(Gt.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},Ye.createElement(Jt,Object.assign({},ht)));mt._InternalPanelDoNotUseOrYouWillBeFired=Ft;var nn=mt},9432:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return kt},n:function(){return pt}});var ue=oe(19248),Ae=oe(92310),ke=oe.n(Ae),nt=oe(93681),be=oe(8654),Ee=oe(59301),he=oe(19080),xe=oe(36355),Me=oe(1684),Pe=oe(19716),ct=oe(32441),De=oe(33234),Fe=oe(59412),et=oe(9937);function We(ft){return!!(ft.prefix||ft.suffix||ft.allowClear)}var je=function(ft,it){var He={};for(var Se in ft)Object.prototype.hasOwnProperty.call(ft,Se)&&it.indexOf(Se)<0&&(He[Se]=ft[Se]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,Se=Object.getOwnPropertySymbols(ft);Ke<Se.length;Ke++)it.indexOf(Se[Ke])<0&&Object.prototype.propertyIsEnumerable.call(ft,Se[Ke])&&(He[Se[Ke]]=ft[Se[Ke]]);return He};function pt(ft,it){if(!ft)return;ft.focus(it);const{cursor:He}=it||{};if(He){const Se=ft.value.length;switch(He){case"start":ft.setSelectionRange(0,0);break;case"end":ft.setSelectionRange(Se,Se);break;default:ft.setSelectionRange(0,Se);break}}}var kt=(0,Ee.forwardRef)((ft,it)=>{var He;const{prefixCls:Se,bordered:Ke=!0,status:Ue,size:vt,disabled:Ye,onBlur:st,onFocus:Ie,suffix:Mt,allowClear:Ge,addonAfter:Ot,addonBefore:wt,className:At,style:Nt,styles:Tt,rootClassName:Ve,onChange:ye,classNames:bt}=ft,Qt=je(ft,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Kt,direction:at,input:lt}=Ee.useContext(xe.E_),Dt=Kt("input",Se),yn=(0,Ee.useRef)(null),[$t,hn]=(0,et.ZP)(Dt),{compactSize:tn,compactItemClassnames:en}=(0,De.ri)(Dt,at),Gt=(0,Pe.Z)(Jt=>{var mt;return(mt=vt!=null?vt:tn)!==null&&mt!==void 0?mt:Jt}),ve=Ee.useContext(Me.Z),ce=Ye!=null?Ye:ve,{status:le,hasFeedback:de,feedbackIcon:pe}=(0,Ee.useContext)(ct.aM),ae=(0,he.F)(le,Ue),Te=We(ft)||!!de,gt=(0,Ee.useRef)(Te);(0,Ee.useEffect)(()=>{var Jt;Te&>.current,gt.current=Te},[Te]);const Re=(0,Fe.Z)(yn,!0),Be=Jt=>{Re(),st==null||st(Jt)},yt=Jt=>{Re(),Ie==null||Ie(Jt)},ut=Jt=>{Re(),ye==null||ye(Jt)},Qe=(de||Mt)&&Ee.createElement(Ee.Fragment,null,Mt,de&&pe);let St;return typeof Ge=="object"&&(Ge!=null&&Ge.clearIcon)?St=Ge:Ge&&(St={clearIcon:Ee.createElement(ue.Z,null)}),$t(Ee.createElement(nt.default,Object.assign({ref:(0,be.sQ)(it,yn),prefixCls:Dt,autoComplete:lt==null?void 0:lt.autoComplete},Qt,{disabled:ce,onBlur:Be,onFocus:yt,style:Object.assign(Object.assign({},lt==null?void 0:lt.style),Nt),styles:Object.assign(Object.assign({},lt==null?void 0:lt.styles),Tt),suffix:Qe,allowClear:St,className:ke()(At,Ve,en,lt==null?void 0:lt.className),onChange:ut,addonAfter:Ot&&Ee.createElement(De.BR,null,Ee.createElement(ct.Ux,{override:!0,status:!0},Ot)),addonBefore:wt&&Ee.createElement(De.BR,null,Ee.createElement(ct.Ux,{override:!0,status:!0},wt)),classNames:Object.assign(Object.assign(Object.assign({},bt),lt==null?void 0:lt.classNames),{input:ke()({[`${Dt}-sm`]:Gt==="small",[`${Dt}-lg`]:Gt==="large",[`${Dt}-rtl`]:at==="rtl",[`${Dt}-borderless`]:!Ke},!Te&&(0,he.Z)(Dt,ae),bt==null?void 0:bt.input,(He=lt==null?void 0:lt.classNames)===null||He===void 0?void 0:He.input,hn)}),classes:{affixWrapper:ke()({[`${Dt}-affix-wrapper-sm`]:Gt==="small",[`${Dt}-affix-wrapper-lg`]:Gt==="large",[`${Dt}-affix-wrapper-rtl`]:at==="rtl",[`${Dt}-affix-wrapper-borderless`]:!Ke},(0,he.Z)(`${Dt}-affix-wrapper`,ae,de),hn),wrapper:ke()({[`${Dt}-group-rtl`]:at==="rtl"},hn),group:ke()({[`${Dt}-group-wrapper-sm`]:Gt==="small",[`${Dt}-group-wrapper-lg`]:Gt==="large",[`${Dt}-group-wrapper-rtl`]:at==="rtl",[`${Dt}-group-wrapper-disabled`]:ce},(0,he.Z)(`${Dt}-group-wrapper`,ae,de),hn)}})))})},1643:function(fn,Wt,oe){"use strict";var ue=oe(19248),Ae=oe(92310),ke=oe.n(Ae),nt=oe(9296),be=oe(59301),Ee=oe(19080),he=oe(36355),xe=oe(1684),Me=oe(19716),Pe=oe(32441),ct=oe(9432),De=oe(9937),Fe=function(We,je){var pt={};for(var rt in We)Object.prototype.hasOwnProperty.call(We,rt)&&je.indexOf(rt)<0&&(pt[rt]=We[rt]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,rt=Object.getOwnPropertySymbols(We);kt<rt.length;kt++)je.indexOf(rt[kt])<0&&Object.prototype.propertyIsEnumerable.call(We,rt[kt])&&(pt[rt[kt]]=We[rt[kt]]);return pt};const et=(0,be.forwardRef)((We,je)=>{const{prefixCls:pt,bordered:rt=!0,size:kt,disabled:ft,status:it,allowClear:He,showCount:Se,classNames:Ke,rootClassName:Ue,className:vt}=We,Ye=Fe(We,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:st,direction:Ie}=be.useContext(he.E_),Mt=(0,Me.Z)(kt),Ge=be.useContext(xe.Z),Ot=ft!=null?ft:Ge,{status:wt,hasFeedback:At,feedbackIcon:Nt}=be.useContext(Pe.aM),Tt=(0,Ee.F)(wt,it),Ve=be.useRef(null);be.useImperativeHandle(je,()=>{var at;return{resizableTextArea:(at=Ve.current)===null||at===void 0?void 0:at.resizableTextArea,focus:lt=>{var Dt,yn;(0,ct.n)((yn=(Dt=Ve.current)===null||Dt===void 0?void 0:Dt.resizableTextArea)===null||yn===void 0?void 0:yn.textArea,lt)},blur:()=>{var lt;return(lt=Ve.current)===null||lt===void 0?void 0:lt.blur()}}});const ye=st("input",pt);let bt;typeof He=="object"&&(He!=null&&He.clearIcon)?bt=He:He&&(bt={clearIcon:be.createElement(ue.Z,null)});const[Qt,Kt]=(0,De.ZP)(ye);return Qt(be.createElement(nt.default,Object.assign({},Ye,{disabled:Ot,allowClear:bt,className:ke()(vt,Ue),classes:{affixWrapper:ke()(`${ye}-textarea-affix-wrapper`,{[`${ye}-affix-wrapper-rtl`]:Ie==="rtl",[`${ye}-affix-wrapper-borderless`]:!rt,[`${ye}-affix-wrapper-sm`]:Mt==="small",[`${ye}-affix-wrapper-lg`]:Mt==="large",[`${ye}-textarea-show-count`]:Se},(0,Ee.Z)(`${ye}-affix-wrapper`,Tt),Kt)},classNames:Object.assign(Object.assign({},Ke),{textarea:ke()({[`${ye}-borderless`]:!rt,[`${ye}-sm`]:Mt==="small",[`${ye}-lg`]:Mt==="large"},(0,Ee.Z)(ye,Tt),Kt,Ke==null?void 0:Ke.textarea)}),prefixCls:ye,suffix:At&&be.createElement("span",{className:`${ye}-textarea-suffix`},Nt),showCount:Se,ref:Ve})))});Wt.Z=et},59412:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return Ae}});var ue=oe(59301);function Ae(ke,nt){const be=(0,ue.useRef)([]),Ee=()=>{be.current.push(setTimeout(()=>{var he,xe,Me,Pe;!((he=ke.current)===null||he===void 0)&&he.input&&((xe=ke.current)===null||xe===void 0?void 0:xe.input.getAttribute("type"))==="password"&&(!((Me=ke.current)===null||Me===void 0)&&Me.input.hasAttribute("value"))&&((Pe=ke.current)===null||Pe===void 0||Pe.input.removeAttribute("value"))}))};return(0,ue.useEffect)(()=>(nt&&Ee(),()=>be.current.forEach(he=>{he&&clearTimeout(he)})),[]),Ee}},92832:function(fn,Wt,oe){"use strict";oe.d(Wt,{default:function(){return Mt}});var ue=oe(92310),Ae=oe.n(ue),ke=oe(59301),nt=oe(36355),be=oe(32441),Ee=oe(9937),xe=Ge=>{const{getPrefixCls:Ot,direction:wt}=(0,ke.useContext)(nt.E_),{prefixCls:At,className:Nt}=Ge,Tt=Ot("input-group",At),Ve=Ot("input"),[ye,bt]=(0,Ee.ZP)(Ve),Qt=Ae()(Tt,{[`${Tt}-lg`]:Ge.size==="large",[`${Tt}-sm`]:Ge.size==="small",[`${Tt}-compact`]:Ge.compact,[`${Tt}-rtl`]:wt==="rtl"},bt,Nt),Kt=(0,ke.useContext)(be.aM),at=(0,ke.useMemo)(()=>Object.assign(Object.assign({},Kt),{isFormItemInput:!1}),[Kt]);return ye(ke.createElement("span",{className:Qt,style:Ge.style,onMouseEnter:Ge.onMouseEnter,onMouseLeave:Ge.onMouseLeave,onFocus:Ge.onFocus,onBlur:Ge.onBlur},ke.createElement(be.aM.Provider,{value:at},Ge.children)))},Me=oe(9432),Pe=oe(73331),ct=oe(15277),De=oe(2738),Fe=oe(8654),et=oe(59412),We=function(Ge,Ot){var wt={};for(var At in Ge)Object.prototype.hasOwnProperty.call(Ge,At)&&Ot.indexOf(At)<0&&(wt[At]=Ge[At]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,At=Object.getOwnPropertySymbols(Ge);Nt<At.length;Nt++)Ot.indexOf(At[Nt])<0&&Object.prototype.propertyIsEnumerable.call(Ge,At[Nt])&&(wt[At[Nt]]=Ge[At[Nt]]);return wt};const je=Ge=>Ge?ke.createElement(ct.Z,null):ke.createElement(Pe.Z,null),pt={click:"onClick",hover:"onMouseOver"};var kt=ke.forwardRef((Ge,Ot)=>{const{visibilityToggle:wt=!0}=Ge,At=typeof wt=="object"&&wt.visible!==void 0,[Nt,Tt]=(0,ke.useState)(()=>At?wt.visible:!1),Ve=(0,ke.useRef)(null);ke.useEffect(()=>{At&&Tt(wt.visible)},[At,wt]);const ye=(0,et.Z)(Ve),bt=()=>{const{disabled:ce}=Ge;ce||(Nt&&ye(),Tt(le=>{var de;const pe=!le;return typeof wt=="object"&&((de=wt.onVisibleChange)===null||de===void 0||de.call(wt,pe)),pe}))},Qt=ce=>{const{action:le="click",iconRender:de=je}=Ge,pe=pt[le]||"",ae=de(Nt),Te={[pe]:bt,className:`${ce}-icon`,key:"passwordIcon",onMouseDown:gt=>{gt.preventDefault()},onMouseUp:gt=>{gt.preventDefault()}};return ke.cloneElement(ke.isValidElement(ae)?ae:ke.createElement("span",null,ae),Te)},{className:Kt,prefixCls:at,inputPrefixCls:lt,size:Dt}=Ge,yn=We(Ge,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:$t}=ke.useContext(nt.E_),hn=$t("input",lt),tn=$t("input-password",at),en=wt&&Qt(tn),Gt=Ae()(tn,Kt,{[`${tn}-${Dt}`]:!!Dt}),ve=Object.assign(Object.assign({},(0,De.Z)(yn,["suffix","iconRender","visibilityToggle"])),{type:Nt?"text":"password",className:Gt,prefixCls:hn,suffix:en});return Dt&&(ve.size=Dt),ke.createElement(Me.Z,Object.assign({ref:(0,Fe.sQ)(Ot,Ve)},ve))}),ft=oe(47472),it=oe(92343),He=oe(3113),Se=oe(19716),Ke=oe(33234),Ue=function(Ge,Ot){var wt={};for(var At in Ge)Object.prototype.hasOwnProperty.call(Ge,At)&&Ot.indexOf(At)<0&&(wt[At]=Ge[At]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,At=Object.getOwnPropertySymbols(Ge);Nt<At.length;Nt++)Ot.indexOf(At[Nt])<0&&Object.prototype.propertyIsEnumerable.call(Ge,At[Nt])&&(wt[At[Nt]]=Ge[At[Nt]]);return wt},Ye=ke.forwardRef((Ge,Ot)=>{const{prefixCls:wt,inputPrefixCls:At,className:Nt,size:Tt,suffix:Ve,enterButton:ye=!1,addonAfter:bt,loading:Qt,disabled:Kt,onSearch:at,onChange:lt,onCompositionStart:Dt,onCompositionEnd:yn}=Ge,$t=Ue(Ge,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:hn,direction:tn}=ke.useContext(nt.E_),en=ke.useRef(!1),Gt=hn("input-search",wt),ve=hn("input",At),{compactSize:ce}=(0,Ke.ri)(Gt,tn),le=(0,Se.Z)(Ft=>{var nn;return(nn=Tt!=null?Tt:ce)!==null&&nn!==void 0?nn:Ft}),de=ke.useRef(null),pe=Ft=>{Ft&&Ft.target&&Ft.type==="click"&&at&&at(Ft.target.value,Ft,{source:"clear"}),lt&<(Ft)},ae=Ft=>{var nn;document.activeElement===((nn=de.current)===null||nn===void 0?void 0:nn.input)&&Ft.preventDefault()},Te=Ft=>{var nn,ht;at&&at((ht=(nn=de.current)===null||nn===void 0?void 0:nn.input)===null||ht===void 0?void 0:ht.value,Ft,{source:"input"})},gt=Ft=>{en.current||Qt||Te(Ft)},Re=typeof ye=="boolean"?ke.createElement(ft.Z,null):null,Be=`${Gt}-button`;let yt;const ut=ye||{},Qe=ut.type&&ut.type.__ANT_BUTTON===!0;Qe||ut.type==="button"?yt=(0,it.Tm)(ut,Object.assign({onMouseDown:ae,onClick:Ft=>{var nn,ht;(ht=(nn=ut==null?void 0:ut.props)===null||nn===void 0?void 0:nn.onClick)===null||ht===void 0||ht.call(nn,Ft),Te(Ft)},key:"enterButton"},Qe?{className:Be,size:le}:{})):yt=ke.createElement(He.ZP,{className:Be,type:ye?"primary":void 0,size:le,disabled:Kt,key:"enterButton",onMouseDown:ae,onClick:Te,loading:Qt,icon:Re},ye),bt&&(yt=[yt,(0,it.Tm)(bt,{key:"addonAfter"})]);const St=Ae()(Gt,{[`${Gt}-rtl`]:tn==="rtl",[`${Gt}-${le}`]:!!le,[`${Gt}-with-button`]:!!ye},Nt),Jt=Ft=>{en.current=!0,Dt==null||Dt(Ft)},mt=Ft=>{en.current=!1,yn==null||yn(Ft)};return ke.createElement(Me.Z,Object.assign({ref:(0,Fe.sQ)(de,Ot),onPressEnter:gt},$t,{size:le,onCompositionStart:Jt,onCompositionEnd:mt,prefixCls:ve,addonAfter:yt,suffix:Ve,onChange:pe,className:St,disabled:Kt}))}),st=oe(1643);const Ie=Me.Z;Ie.Group=xe,Ie.Search=Ye,Ie.TextArea=st.Z,Ie.Password=kt;var Mt=Ie},9937:function(fn,Wt,oe){"use strict";oe.d(Wt,{M1:function(){return he},TM:function(){return it},Xy:function(){return xe},bi:function(){return ct},e5:function(){return ft},ik:function(){return De},nz:function(){return be},pU:function(){return Ee},s7:function(){return Fe},x0:function(){return Pe}});var ue=oe(17313),Ae=oe(74207),ke=oe(37613),nt=oe(83116);const be=He=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:He,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Ee=He=>({borderColor:He.hoverBorderColor}),he=He=>({borderColor:He.activeBorderColor,boxShadow:He.activeShadow,outline:0}),xe=He=>({color:He.colorTextDisabled,backgroundColor:He.colorBgContainerDisabled,borderColor:He.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},Ee((0,ke.TS)(He,{hoverBorderColor:He.colorBorder})))}),Me=He=>{const{paddingBlockLG:Se,fontSizeLG:Ke,lineHeightLG:Ue,borderRadiusLG:vt,paddingInlineLG:Ye}=He;return{padding:`${Se}px ${Ye}px`,fontSize:Ke,lineHeight:Ue,borderRadius:vt}},Pe=He=>({padding:`${He.paddingBlockSM}px ${He.paddingInlineSM}px`,borderRadius:He.borderRadiusSM}),ct=(He,Se)=>{const{componentCls:Ke,colorError:Ue,colorWarning:vt,errorActiveShadow:Ye,warningActiveShadow:st,colorErrorBorderHover:Ie,colorWarningBorderHover:Mt}=He;return{[`&-status-error:not(${Se}-disabled):not(${Se}-borderless)${Se}`]:{borderColor:Ue,"&:hover":{borderColor:Ie},"&:focus, &-focused":Object.assign({},he((0,ke.TS)(He,{activeBorderColor:Ue,activeShadow:Ye}))),[`${Ke}-prefix, ${Ke}-suffix`]:{color:Ue}},[`&-status-warning:not(${Se}-disabled):not(${Se}-borderless)${Se}`]:{borderColor:vt,"&:hover":{borderColor:Mt},"&:focus, &-focused":Object.assign({},he((0,ke.TS)(He,{activeBorderColor:vt,activeShadow:st}))),[`${Ke}-prefix, ${Ke}-suffix`]:{color:vt}}}},De=He=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${He.paddingBlock}px ${He.paddingInline}px`,color:He.colorText,fontSize:He.fontSize,lineHeight:He.lineHeight,backgroundColor:He.colorBgContainer,backgroundImage:"none",borderWidth:He.lineWidth,borderStyle:He.lineType,borderColor:He.colorBorder,borderRadius:He.borderRadius,transition:`all ${He.motionDurationMid}`},be(He.colorTextPlaceholder)),{"&:hover":Object.assign({},Ee(He)),"&:focus, &-focused":Object.assign({},he(He)),"&-disabled, &[disabled]":Object.assign({},xe(He)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:He.controlHeight,lineHeight:He.lineHeight,verticalAlign:"bottom",transition:`all ${He.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},Me(He)),"&-sm":Object.assign({},Pe(He)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),Fe=He=>{const{componentCls:Se,antCls:Ke}=He;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:He.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${Se}, &-lg > ${Se}-group-addon`]:Object.assign({},Me(He)),[`&-sm ${Se}, &-sm > ${Se}-group-addon`]:Object.assign({},Pe(He)),[`&-lg ${Ke}-select-single ${Ke}-select-selector`]:{height:He.controlHeightLG},[`&-sm ${Ke}-select-single ${Ke}-select-selector`]:{height:He.controlHeightSM},[`> ${Se}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${Se}-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 ${He.paddingInline}px`,color:He.colorText,fontWeight:"normal",fontSize:He.fontSize,textAlign:"center",backgroundColor:He.colorFillAlter,border:`${He.lineWidth}px ${He.lineType} ${He.colorBorder}`,borderRadius:He.borderRadius,transition:`all ${He.motionDurationSlow}`,lineHeight:1,[`${Ke}-select`]:{margin:`-${He.paddingBlock+1}px -${He.paddingInline}px`,[`&${Ke}-select-single:not(${Ke}-select-customize-input)`]:{[`${Ke}-select-selector`]:{backgroundColor:"inherit",border:`${He.lineWidth}px ${He.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${Ke}-select-selector`]:{color:He.colorPrimary}}},[`${Ke}-cascader-picker`]:{margin:`-9px -${He.paddingInline}px`,backgroundColor:"transparent",[`${Ke}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${Se}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${Se}-search-with-button &`]:{zIndex:0}}},[`> ${Se}:first-child, ${Se}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${Ke}-select ${Ke}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Se}-affix-wrapper`]:{[`&:not(:first-child) ${Se}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${Se}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Se}:last-child, ${Se}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${Ke}-select ${Ke}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${Se}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${Se}-search &`]:{borderStartStartRadius:He.borderRadius,borderEndStartRadius:He.borderRadius}},[`&:not(:first-child), ${Se}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${Se}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,ue.dF)()),{[`${Se}-group-addon, ${Se}-group-wrap, > ${Se}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:He.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
|
& > ${Se}-affix-wrapper,
|
|
|
& > ${Se}-number-affix-wrapper,
|
|
|
& > ${Ke}-picker-range
|
|
|
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-He.lineWidth,borderInlineEndWidth:He.lineWidth},[`${Se}`]:{float:"none"},[`& > ${Ke}-select > ${Ke}-select-selector,
|
|
|
& > ${Ke}-select-auto-complete ${Se},
|
|
|
& > ${Ke}-cascader-picker ${Se},
|
|
|
& > ${Se}-group-wrapper ${Se}`]:{borderInlineEndWidth:He.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${Ke}-select-focused`]:{zIndex:1},[`& > ${Ke}-select > ${Ke}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
|
& > ${Ke}-select:first-child > ${Ke}-select-selector,
|
|
|
& > ${Ke}-select-auto-complete:first-child ${Se},
|
|
|
& > ${Ke}-cascader-picker:first-child ${Se}`]:{borderStartStartRadius:He.borderRadius,borderEndStartRadius:He.borderRadius},[`& > *:last-child,
|
|
|
& > ${Ke}-select:last-child > ${Ke}-select-selector,
|
|
|
& > ${Ke}-cascader-picker:last-child ${Se},
|
|
|
& > ${Ke}-cascader-picker-focused:last-child ${Se}`]:{borderInlineEndWidth:He.lineWidth,borderStartEndRadius:He.borderRadius,borderEndEndRadius:He.borderRadius},[`& > ${Ke}-select-auto-complete ${Se}`]:{verticalAlign:"top"},[`${Se}-group-wrapper + ${Se}-group-wrapper`]:{marginInlineStart:-He.lineWidth,[`${Se}-affix-wrapper`]:{borderRadius:0}},[`${Se}-group-wrapper:not(:last-child)`]:{[`&${Se}-search > ${Se}-group`]:{[`& > ${Se}-group-addon > ${Se}-search-button`]:{borderRadius:0},[`& > ${Se}`]:{borderStartStartRadius:He.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:He.borderRadius}}}})}},et=He=>{const{componentCls:Se,controlHeightSM:Ke,lineWidth:Ue}=He,Ye=(Ke-Ue*2-16)/2;return{[Se]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ue.Wf)(He)),De(He)),ct(He,Se)),{'&[type="color"]':{height:He.controlHeight,[`&${Se}-lg`]:{height:He.controlHeightLG},[`&${Se}-sm`]:{height:Ke,paddingTop:Ye,paddingBottom:Ye}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},We=He=>{const{componentCls:Se}=He;return{[`${Se}-clear-icon`]:{margin:0,color:He.colorTextQuaternary,fontSize:He.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${He.motionDurationSlow}`,"&:hover":{color:He.colorTextTertiary},"&:active":{color:He.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${He.inputAffixPadding}px`}}}},je=He=>{const{componentCls:Se,inputAffixPadding:Ke,colorTextDescription:Ue,motionDurationSlow:vt,colorIcon:Ye,colorIconHover:st,iconCls:Ie}=He;return{[`${Se}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},De(He)),{display:"inline-flex",[`&:not(${Se}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Ee(He)),{zIndex:1,[`${Se}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${Se}[disabled]`]:{background:"transparent"}},[`> input${Se}`]:{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"'},[`${Se}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:He.paddingXS}},"&-show-count-suffix":{color:Ue},"&-show-count-has-suffix":{marginInlineEnd:He.paddingXXS},"&-prefix":{marginInlineEnd:Ke},"&-suffix":{marginInlineStart:Ke}}}),We(He)),{[`${Ie}${Se}-password-icon`]:{color:Ye,cursor:"pointer",transition:`all ${vt}`,"&:hover":{color:st}}}),ct(He,`${Se}-affix-wrapper`))}},pt=He=>{const{componentCls:Se,colorError:Ke,colorWarning:Ue,borderRadiusLG:vt,borderRadiusSM:Ye}=He;return{[`${Se}-group`]:Object.assign(Object.assign(Object.assign({},(0,ue.Wf)(He)),Fe(He)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${Se}-group-addon`]:{borderRadius:vt,fontSize:He.fontSizeLG}},"&-sm":{[`${Se}-group-addon`]:{borderRadius:Ye}},"&-status-error":{[`${Se}-group-addon`]:{color:Ke,borderColor:Ke}},"&-status-warning":{[`${Se}-group-addon`]:{color:Ue,borderColor:Ue}},"&-disabled":{[`${Se}-group-addon`]:Object.assign({},xe(He))},[`&:not(${Se}-compact-first-item):not(${Se}-compact-last-item)${Se}-compact-item`]:{[`${Se}, ${Se}-group-addon`]:{borderRadius:0}},[`&:not(${Se}-compact-last-item)${Se}-compact-first-item`]:{[`${Se}, ${Se}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Se}-compact-first-item)${Se}-compact-last-item`]:{[`${Se}, ${Se}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},rt=He=>{const{componentCls:Se,antCls:Ke}=He,Ue=`${Se}-search`;return{[Ue]:{[`${Se}`]:{"&:hover, &:focus":{borderColor:He.colorPrimaryHover,[`+ ${Se}-group-addon ${Ue}-button:not(${Ke}-btn-primary)`]:{borderInlineStartColor:He.colorPrimaryHover}}},[`${Se}-affix-wrapper`]:{borderRadius:0},[`${Se}-lg`]:{lineHeight:He.lineHeightLG-2e-4},[`> ${Se}-group`]:{[`> ${Se}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${Ue}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:He.borderRadius,borderEndEndRadius:He.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${Ue}-button:not(${Ke}-btn-primary)`]:{color:He.colorTextDescription,"&:hover":{color:He.colorPrimaryHover},"&:active":{color:He.colorPrimaryActive},[`&${Ke}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${Ue}-button`]:{height:He.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${Ue}-button`]:{height:He.controlHeightLG},[`&-small ${Ue}-button`]:{height:He.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${Se}-compact-item`]:{[`&:not(${Se}-compact-last-item)`]:{[`${Se}-group-addon`]:{[`${Se}-search-button`]:{marginInlineEnd:-He.lineWidth,borderRadius:0}}},[`&:not(${Se}-compact-first-item)`]:{[`${Se},${Se}-affix-wrapper`]:{borderRadius:0}},[`> ${Se}-group-addon ${Se}-search-button,
|
|
|
> ${Se},
|
|
|
${Se}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${Se}-affix-wrapper-focused`]:{zIndex:2}}}}},kt=He=>{const{componentCls:Se,paddingLG:Ke}=He,Ue=`${Se}-textarea`;return{[Ue]:{position:"relative","&-show-count":{[`> ${Se}`]:{height:"100%"},[`${Se}-data-count`]:{position:"absolute",bottom:-He.fontSize*He.lineHeight,insetInlineEnd:0,color:He.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${Se}`]:{paddingInlineEnd:Ke}},[`&-affix-wrapper${Ue}-has-feedback`]:{[`${Se}`]:{paddingInlineEnd:Ke}},[`&-affix-wrapper${Se}-affix-wrapper`]:{padding:0,[`> textarea${Se}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${Se}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Se}-clear-icon`]:{position:"absolute",insetInlineEnd:He.paddingXS,insetBlockStart:He.paddingXS},[`${Ue}-suffix`]:{position:"absolute",top:0,insetInlineEnd:He.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function ft(He){return(0,ke.TS)(He,{inputAffixPadding:He.paddingXXS})}const it=He=>{const{controlHeight:Se,fontSize:Ke,lineHeight:Ue,lineWidth:vt,controlHeightSM:Ye,controlHeightLG:st,fontSizeLG:Ie,lineHeightLG:Mt,paddingSM:Ge,controlPaddingHorizontalSM:Ot,controlPaddingHorizontal:wt,colorFillAlter:At,colorPrimaryHover:Nt,controlOutlineWidth:Tt,controlOutline:Ve,colorErrorOutline:ye,colorWarningOutline:bt}=He;return{paddingBlock:Math.max(Math.round((Se-Ke*Ue)/2*10)/10-vt,3),paddingBlockSM:Math.max(Math.round((Ye-Ke*Ue)/2*10)/10-vt,0),paddingBlockLG:Math.ceil((st-Ie*Mt)/2*10)/10-vt,paddingInline:Ge-vt,paddingInlineSM:Ot-vt,paddingInlineLG:wt-vt,addonBg:At,activeBorderColor:Nt,hoverBorderColor:Nt,activeShadow:`0 0 0 ${Tt}px ${Ve}`,errorActiveShadow:`0 0 0 ${Tt}px ${ye}`,warningActiveShadow:`0 0 0 ${Tt}px ${bt}`}};Wt.ZP=(0,nt.Z)("Input",He=>{const Se=(0,ke.TS)(He,ft(He));return[et(Se),kt(Se),je(Se),pt(Se),rt(Se),(0,Ae.c)(Se)]},it)},45818:function(fn,Wt,oe){"use strict";oe.d(Wt,{D:function(){return ft},Z:function(){return Se}});var ue=oe(60499),Ae=oe(59301),ke={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"},nt=ke,be=oe(7657),Ee=function(Ue,vt){return Ae.createElement(be.Z,(0,ue.Z)({},Ue,{ref:vt,icon:nt}))},he=Ae.forwardRef(Ee),xe=he,Me=oe(33853),Pe=oe(38819),ct=oe(92310),De=oe.n(ct),Fe=oe(2738),We=Ke=>!isNaN(parseFloat(Ke))&&isFinite(Ke),je=oe(36355),pt=oe(84966),rt=function(Ke,Ue){var vt={};for(var Ye in Ke)Object.prototype.hasOwnProperty.call(Ke,Ye)&&Ue.indexOf(Ye)<0&&(vt[Ye]=Ke[Ye]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,Ye=Object.getOwnPropertySymbols(Ke);st<Ye.length;st++)Ue.indexOf(Ye[st])<0&&Object.prototype.propertyIsEnumerable.call(Ke,Ye[st])&&(vt[Ye[st]]=Ke[Ye[st]]);return vt};const kt={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ft=Ae.createContext({}),it=(()=>{let Ke=0;return function(){let Ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ke+=1,`${Ue}${Ke}`}})();var Se=Ae.forwardRef((Ke,Ue)=>{const{prefixCls:vt,className:Ye,trigger:st,children:Ie,defaultCollapsed:Mt=!1,theme:Ge="dark",style:Ot={},collapsible:wt=!1,reverseArrow:At=!1,width:Nt=200,collapsedWidth:Tt=80,zeroWidthTriggerStyle:Ve,breakpoint:ye,onCollapse:bt,onBreakpoint:Qt}=Ke,Kt=rt(Ke,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:at}=(0,Ae.useContext)(pt.Gs),[lt,Dt]=(0,Ae.useState)("collapsed"in Ke?Ke.collapsed:Mt),[yn,$t]=(0,Ae.useState)(!1);(0,Ae.useEffect)(()=>{"collapsed"in Ke&&Dt(Ke.collapsed)},[Ke.collapsed]);const hn=(le,de)=>{"collapsed"in Ke||Dt(le),bt==null||bt(le,de)},tn=(0,Ae.useRef)();tn.current=le=>{$t(le.matches),Qt==null||Qt(le.matches),lt!==le.matches&&hn(le.matches,"responsive")},(0,Ae.useEffect)(()=>{function le(pe){return tn.current(pe)}let de;if(typeof window!="undefined"){const{matchMedia:pe}=window;if(pe&&ye&&ye in kt){de=pe(`(max-width: ${kt[ye]})`);try{de.addEventListener("change",le)}catch(ae){de.addListener(le)}le(de)}}return()=>{try{de==null||de.removeEventListener("change",le)}catch(pe){de==null||de.removeListener(le)}}},[ye]),(0,Ae.useEffect)(()=>{const le=it("ant-sider-");return at.addSider(le),()=>at.removeSider(le)},[]);const en=()=>{hn(!lt,"clickTrigger")},{getPrefixCls:Gt}=(0,Ae.useContext)(je.E_),ve=()=>{const le=Gt("layout-sider",vt),de=(0,Fe.Z)(Kt,["collapsed"]),pe=lt?Tt:Nt,ae=We(pe)?`${pe}px`:String(pe),Te=parseFloat(String(Tt||0))===0?Ae.createElement("span",{onClick:en,className:De()(`${le}-zero-width-trigger`,`${le}-zero-width-trigger-${At?"right":"left"}`),style:Ve},st||Ae.createElement(xe,null)):null,Be={expanded:At?Ae.createElement(Pe.Z,null):Ae.createElement(Me.Z,null),collapsed:At?Ae.createElement(Me.Z,null):Ae.createElement(Pe.Z,null)}[lt?"collapsed":"expanded"],yt=st!==null?Te||Ae.createElement("div",{className:`${le}-trigger`,onClick:en,style:{width:ae}},st||Be):null,ut=Object.assign(Object.assign({},Ot),{flex:`0 0 ${ae}`,maxWidth:ae,minWidth:ae,width:ae}),Qe=De()(le,`${le}-${Ge}`,{[`${le}-collapsed`]:!!lt,[`${le}-has-trigger`]:wt&&st!==null&&!Te,[`${le}-below`]:!!yn,[`${le}-zero-width`]:parseFloat(ae)===0},Ye);return Ae.createElement("aside",Object.assign({className:Qe},de,{style:ut,ref:Ue}),Ae.createElement("div",{className:`${le}-children`},Ie),wt||yn&&Te?yt:null)},ce=Ae.useMemo(()=>({siderCollapsed:lt}),[lt]);return Ae.createElement(ft.Provider,{value:ce},ve())})},84966:function(fn,Wt,oe){"use strict";oe.d(Wt,{VY:function(){return ft},$_:function(){return kt},h4:function(){return rt},Gs:function(){return Fe},ZP:function(){return it}});var ue=oe(77654),Ae=oe(92310),ke=oe.n(Ae),nt=oe(2738),be=oe(59301),Ee=oe(36355),he=oe(83116),Me=He=>{const{componentCls:Se,bodyBg:Ke,lightSiderBg:Ue,lightTriggerBg:vt,lightTriggerColor:Ye}=He;return{[`${Se}-sider-light`]:{background:Ue,[`${Se}-sider-trigger`]:{color:Ye,background:vt},[`${Se}-sider-zero-width-trigger`]:{color:Ye,background:vt,border:`1px solid ${Ke}`,borderInlineStart:0}}}};const Pe=He=>{const{antCls:Se,componentCls:Ke,colorText:Ue,triggerColor:vt,footerBg:Ye,triggerBg:st,headerHeight:Ie,headerPadding:Mt,headerColor:Ge,footerPadding:Ot,triggerHeight:wt,zeroTriggerHeight:At,zeroTriggerWidth:Nt,motionDurationMid:Tt,motionDurationSlow:Ve,fontSize:ye,borderRadius:bt,bodyBg:Qt,headerBg:Kt,siderBg:at}=He;return{[Ke]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Qt,"&, *":{boxSizing:"border-box"},[`&${Ke}-has-sider`]:{flexDirection:"row",[`> ${Ke}, > ${Ke}-content`]:{width:0}},[`${Ke}-header, &${Ke}-footer`]:{flex:"0 0 auto"},[`${Ke}-sider`]:{position:"relative",minWidth:0,background:at,transition:`all ${Tt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Se}-menu${Se}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:wt},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:wt,color:vt,lineHeight:`${wt}px`,textAlign:"center",background:st,cursor:"pointer",transition:`all ${Tt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ie,insetInlineEnd:-Nt,zIndex:1,width:Nt,height:At,color:vt,fontSize:He.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:at,borderStartStartRadius:0,borderStartEndRadius:bt,borderEndEndRadius:bt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Ve} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Ve}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Nt,borderStartStartRadius:bt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:bt}}}}},Me(He)),{"&-rtl":{direction:"rtl"}}),[`${Ke}-header`]:{height:Ie,padding:Mt,color:Ge,lineHeight:`${Ie}px`,background:Kt,[`${Se}-menu`]:{lineHeight:"inherit"}},[`${Ke}-footer`]:{padding:Ot,color:Ue,fontSize:ye,background:Ye},[`${Ke}-content`]:{flex:"auto",minHeight:0}}};var ct=(0,he.Z)("Layout",He=>[Pe(He)],He=>{const{colorBgLayout:Se,controlHeight:Ke,controlHeightLG:Ue,colorText:vt,controlHeightSM:Ye,marginXXS:st,colorTextLightSolid:Ie,colorBgContainer:Mt}=He,Ge=Ue*1.25;return{colorBgHeader:"#001529",colorBgBody:Se,colorBgTrigger:"#002140",bodyBg:Se,headerBg:"#001529",headerHeight:Ke*2,headerPadding:`0 ${Ge}px`,headerColor:vt,footerPadding:`${Ye}px ${Ge}px`,footerBg:Se,siderBg:"#001529",triggerHeight:Ue+st*2,triggerBg:"#002140",triggerColor:Ie,zeroTriggerWidth:Ue,zeroTriggerHeight:Ue,lightSiderBg:Mt,lightTriggerBg:Mt,lightTriggerColor:vt}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),De=function(He,Se){var Ke={};for(var Ue in He)Object.prototype.hasOwnProperty.call(He,Ue)&&Se.indexOf(Ue)<0&&(Ke[Ue]=He[Ue]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,Ue=Object.getOwnPropertySymbols(He);vt<Ue.length;vt++)Se.indexOf(Ue[vt])<0&&Object.prototype.propertyIsEnumerable.call(He,Ue[vt])&&(Ke[Ue[vt]]=He[Ue[vt]]);return Ke};const Fe=be.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function et(He){let{suffixCls:Se,tagName:Ke,displayName:Ue}=He;return vt=>be.forwardRef((st,Ie)=>be.createElement(vt,Object.assign({ref:Ie,suffixCls:Se,tagName:Ke},st)))}const We=be.forwardRef((He,Se)=>{const{prefixCls:Ke,suffixCls:Ue,className:vt,tagName:Ye}=He,st=De(He,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ie}=be.useContext(Ee.E_),Mt=Ie("layout",Ke),[Ge,Ot]=ct(Mt),wt=Ue?`${Mt}-${Ue}`:Mt;return Ge(be.createElement(Ye,Object.assign({className:ke()(Ke||wt,vt,Ot),ref:Se},st)))}),je=be.forwardRef((He,Se)=>{const{direction:Ke}=be.useContext(Ee.E_),[Ue,vt]=be.useState([]),{prefixCls:Ye,className:st,rootClassName:Ie,children:Mt,hasSider:Ge,tagName:Ot,style:wt}=He,At=De(He,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Nt=(0,nt.Z)(At,["suffixCls"]),{getPrefixCls:Tt,layout:Ve}=be.useContext(Ee.E_),ye=Tt("layout",Ye),[bt,Qt]=ct(ye),Kt=ke()(ye,{[`${ye}-has-sider`]:typeof Ge=="boolean"?Ge:Ue.length>0,[`${ye}-rtl`]:Ke==="rtl"},Ve==null?void 0:Ve.className,st,Ie,Qt),at=be.useMemo(()=>({siderHook:{addSider:lt=>{vt(Dt=>[].concat((0,ue.Z)(Dt),[lt]))},removeSider:lt=>{vt(Dt=>Dt.filter(yn=>yn!==lt))}}}),[]);return bt(be.createElement(Fe.Provider,{value:at},be.createElement(Ot,Object.assign({ref:Se,className:Kt,style:Object.assign(Object.assign({},Ve==null?void 0:Ve.style),wt)},Nt),Mt)))}),pt=et({tagName:"div",displayName:"Layout"})(je),rt=et({suffixCls:"header",tagName:"header",displayName:"Header"})(We),kt=et({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(We),ft=et({suffixCls:"content",tagName:"main",displayName:"Content"})(We);var it=pt},40875:function(fn,Wt,oe){"use strict";oe.d(Wt,{J:function(){return Ee}});var ue=oe(59301),Ae=oe(33234),ke=oe(70425),nt=function(he,xe){var Me={};for(var Pe in he)Object.prototype.hasOwnProperty.call(he,Pe)&&xe.indexOf(Pe)<0&&(Me[Pe]=he[Pe]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,Pe=Object.getOwnPropertySymbols(he);ct<Pe.length;ct++)xe.indexOf(Pe[ct])<0&&Object.prototype.propertyIsEnumerable.call(he,Pe[ct])&&(Me[Pe[ct]]=he[Pe[ct]]);return Me};const be=ue.createContext(null),Ee=ue.forwardRef((he,xe)=>{const{children:Me}=he,Pe=nt(he,["children"]),ct=ue.useContext(be),De=ue.useMemo(()=>Object.assign(Object.assign({},ct),Pe),[ct,Pe.prefixCls,Pe.mode,Pe.selectable]);return ue.createElement(be.Provider,{value:De},ue.createElement(Ae.BR,null,(0,ke.supportNodeRef)(Me)?ue.cloneElement(Me,{ref:xe}):Me))});Wt.Z=be},20834:function(fn,Wt,oe){"use strict";oe.d(Wt,{default:function(){return ce}});var ue=oe(15285),Ae=oe(59301),ke=oe(45818),nt=oe(92310),be=oe.n(nt),Ee=oe(36355),he=function(le,de){var pe={};for(var ae in le)Object.prototype.hasOwnProperty.call(le,ae)&&de.indexOf(ae)<0&&(pe[ae]=le[ae]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,ae=Object.getOwnPropertySymbols(le);Te<ae.length;Te++)de.indexOf(ae[Te])<0&&Object.prototype.propertyIsEnumerable.call(le,ae[Te])&&(pe[ae[Te]]=le[ae[Te]]);return pe},Me=le=>{const{prefixCls:de,className:pe,dashed:ae}=le,Te=he(le,["prefixCls","className","dashed"]),{getPrefixCls:gt}=Ae.useContext(Ee.E_),Re=gt("menu",de),Be=be()({[`${Re}-item-divider-dashed`]:!!ae},pe);return Ae.createElement(ue.iz,Object.assign({className:Be},Te))},Pe=oe(11592),ct=oe(2738),De=oe(6848),Fe=oe(92343),We=(0,Ae.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),pt=le=>{var de;const{className:pe,children:ae,icon:Te,title:gt,danger:Re}=le,{prefixCls:Be,firstLevel:yt,direction:ut,disableMenuItemTitleTooltip:Qe,inlineCollapsed:St}=Ae.useContext(We),Jt=dt=>{const Pt=Ae.createElement("span",{className:`${Be}-title-content`},ae);return(!Te||(0,Fe.l$)(ae)&&ae.type==="span")&&ae&&dt&&yt&&typeof ae=="string"?Ae.createElement("div",{className:`${Be}-inline-collapsed-noicon`},ae.charAt(0)):Pt},{siderCollapsed:mt}=Ae.useContext(ke.D);let Ft=gt;typeof gt=="undefined"?Ft=yt?ae:"":gt===!1&&(Ft="");const nn={title:Ft};!mt&&!St&&(nn.title=null,nn.open=!1);const ht=(0,Pe.Z)(ae).length;let Le=Ae.createElement(ue.ck,Object.assign({},(0,ct.Z)(le,["title","icon","danger"]),{className:be()({[`${Be}-item-danger`]:Re,[`${Be}-item-only-child`]:(Te?ht+1:ht)===1},pe),title:typeof gt=="string"?gt:void 0}),(0,Fe.Tm)(Te,{className:be()((0,Fe.l$)(Te)?(de=Te.props)===null||de===void 0?void 0:de.className:"",`${Be}-item-icon`)}),Jt(St));return Qe||(Le=Ae.createElement(De.Z,Object.assign({},nn,{placement:ut==="rtl"?"left":"right",overlayClassName:`${Be}-inline-collapsed-tooltip`}),Le)),Le},kt=le=>{var de;const{popupClassName:pe,icon:ae,title:Te,theme:gt}=le,Re=Ae.useContext(We),{prefixCls:Be,inlineCollapsed:yt,theme:ut}=Re,Qe=(0,ue.Xl)();let St;if(!ae)St=yt&&!Qe.length&&Te&&typeof Te=="string"?Ae.createElement("div",{className:`${Be}-inline-collapsed-noicon`},Te.charAt(0)):Ae.createElement("span",{className:`${Be}-title-content`},Te);else{const mt=(0,Fe.l$)(Te)&&Te.type==="span";St=Ae.createElement(Ae.Fragment,null,(0,Fe.Tm)(ae,{className:be()((0,Fe.l$)(ae)?(de=ae.props)===null||de===void 0?void 0:de.className:"",`${Be}-item-icon`)}),mt?Te:Ae.createElement("span",{className:`${Be}-title-content`},Te))}const Jt=Ae.useMemo(()=>Object.assign(Object.assign({},Re),{firstLevel:!1}),[Re]);return Ae.createElement(We.Provider,{value:Jt},Ae.createElement(ue.Wd,Object.assign({},(0,ct.Z)(le,["icon"]),{title:St,popupClassName:be()(Be,pe,`${Be}-${gt||ut}`)})))},ft=oe(18785),it=oe(70425),He=oe(62892),Se=oe(40875),Ke=function(le,de){var pe={};for(var ae in le)Object.prototype.hasOwnProperty.call(le,ae)&&de.indexOf(ae)<0&&(pe[ae]=le[ae]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,ae=Object.getOwnPropertySymbols(le);Te<ae.length;Te++)de.indexOf(ae[Te])<0&&Object.prototype.propertyIsEnumerable.call(le,ae[Te])&&(pe[ae[Te]]=le[ae[Te]]);return pe};function Ue(le){return(le||[]).map((de,pe)=>{if(de&&typeof de=="object"){const ae=de,{label:Te,children:gt,key:Re,type:Be}=ae,yt=Ke(ae,["label","children","key","type"]),ut=Re!=null?Re:`tmp-${pe}`;return gt||Be==="group"?Be==="group"?Ae.createElement(ue.BW,Object.assign({key:ut},yt,{title:Te}),Ue(gt)):Ae.createElement(kt,Object.assign({key:ut},yt,{title:Te}),Ue(gt)):Be==="divider"?Ae.createElement(Me,Object.assign({key:ut},yt)):Ae.createElement(pt,Object.assign({key:ut},yt),Te)}return null}).filter(de=>de)}function vt(le){return Ae.useMemo(()=>le&&Ue(le),[le])}var Ye=oe(64993),st=oe(17313),Ie=oe(8378),Mt=oe(13826),Ge=oe(29878),Ot=oe(83116),wt=oe(37613),Nt=le=>{const{componentCls:de,motionDurationSlow:pe,horizontalLineHeight:ae,colorSplit:Te,lineWidth:gt,lineType:Re,itemPaddingInline:Be}=le;return{[`${de}-horizontal`]:{lineHeight:ae,border:0,borderBottom:`${gt}px ${Re} ${Te}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${de}-item, ${de}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Be},[`> ${de}-item:hover,
|
|
|
> ${de}-item-active,
|
|
|
> ${de}-submenu ${de}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${de}-item, ${de}-submenu-title`]:{transition:[`border-color ${pe}`,`background ${pe}`].join(",")},[`${de}-submenu-arrow`]:{display:"none"}}}},Ve=le=>{let{componentCls:de,menuArrowOffset:pe}=le;return{[`${de}-rtl`]:{direction:"rtl"},[`${de}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${de}-rtl${de}-vertical,
|
|
|
${de}-submenu-rtl ${de}-vertical`]:{[`${de}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${pe})`},"&::after":{transform:`rotate(45deg) translateY(${pe})`}}}}};const ye=le=>Object.assign({},(0,st.oN)(le));var Qt=(le,de)=>{const{componentCls:pe,itemColor:ae,itemSelectedColor:Te,groupTitleColor:gt,itemBg:Re,subMenuItemBg:Be,itemSelectedBg:yt,activeBarHeight:ut,activeBarWidth:Qe,activeBarBorderWidth:St,motionDurationSlow:Jt,motionEaseInOut:mt,motionEaseOut:Ft,itemPaddingInline:nn,motionDurationMid:ht,itemHoverColor:Le,lineType:dt,colorSplit:Pt,itemDisabledColor:_t,dangerItemColor:Xt,dangerItemHoverColor:gn,dangerItemSelectedColor:En,dangerItemActiveBg:wn,dangerItemSelectedBg:_n,itemHoverBg:$n,itemActiveBg:Dn,menuSubMenuBg:qn,horizontalItemSelectedColor:fr,horizontalItemSelectedBg:br,horizontalItemBorderRadius:Zn,horizontalItemHoverBg:ar,popupBg:Cr}=le;return{[`${pe}-${de}, ${pe}-${de} > ${pe}`]:{color:ae,background:Re,[`&${pe}-root:focus-visible`]:Object.assign({},ye(le)),[`${pe}-item-group-title`]:{color:gt},[`${pe}-submenu-selected`]:{[`> ${pe}-submenu-title`]:{color:Te}},[`${pe}-item-disabled, ${pe}-submenu-disabled`]:{color:`${_t} !important`},[`${pe}-item:not(${pe}-item-selected):not(${pe}-submenu-selected)`]:{[`&:hover, > ${pe}-submenu-title:hover`]:{color:Le}},[`&:not(${pe}-horizontal)`]:{[`${pe}-item:not(${pe}-item-selected)`]:{"&:hover":{backgroundColor:$n},"&:active":{backgroundColor:Dn}},[`${pe}-submenu-title`]:{"&:hover":{backgroundColor:$n},"&:active":{backgroundColor:Dn}}},[`${pe}-item-danger`]:{color:Xt,[`&${pe}-item:hover`]:{[`&:not(${pe}-item-selected):not(${pe}-submenu-selected)`]:{color:gn}},[`&${pe}-item:active`]:{background:wn}},[`${pe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${pe}-item-selected`]:{color:Te,[`&${pe}-item-danger`]:{color:En},"a, a:hover":{color:"inherit"}},[`& ${pe}-item-selected`]:{backgroundColor:yt,[`&${pe}-item-danger`]:{backgroundColor:_n}},[`${pe}-item, ${pe}-submenu-title`]:{[`&:not(${pe}-item-disabled):focus-visible`]:Object.assign({},ye(le))},[`&${pe}-submenu > ${pe}`]:{backgroundColor:qn},[`&${pe}-popup > ${pe}`]:{backgroundColor:Cr},[`&${pe}-horizontal`]:Object.assign(Object.assign({},de==="dark"?{borderBottom:0}:{}),{[`> ${pe}-item, > ${pe}-submenu`]:{top:St,marginTop:-St,marginBottom:0,borderRadius:Zn,"&::after":{position:"absolute",insetInline:nn,bottom:0,borderBottom:`${ut}px solid transparent`,transition:`border-color ${Jt} ${mt}`,content:'""'},"&:hover, &-active, &-open":{background:ar,"&::after":{borderBottomWidth:ut,borderBottomColor:fr}},"&-selected":{color:fr,backgroundColor:br,"&:hover":{backgroundColor:br},"&::after":{borderBottomWidth:ut,borderBottomColor:fr}}}}),[`&${pe}-root`]:{[`&${pe}-inline, &${pe}-vertical`]:{borderInlineEnd:`${St}px ${dt} ${Pt}`}},[`&${pe}-inline`]:{[`${pe}-sub${pe}-inline`]:{background:Be},[`${pe}-item, ${pe}-submenu-title`]:St&&Qe?{width:`calc(100% + ${St}px)`}:{},[`${pe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Qe}px solid ${Te}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${ht} ${Ft}`,`opacity ${ht} ${Ft}`].join(","),content:'""'},[`&${pe}-item-danger`]:{"&::after":{borderInlineEndColor:En}}},[`${pe}-selected, ${pe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${ht} ${mt}`,`opacity ${ht} ${mt}`].join(",")}}}}}};const Kt=le=>{const{componentCls:de,itemHeight:pe,itemMarginInline:ae,padding:Te,menuArrowSize:gt,marginXS:Re,itemMarginBlock:Be}=le,yt=Te+gt+Re;return{[`${de}-item`]:{position:"relative",overflow:"hidden"},[`${de}-item, ${de}-submenu-title`]:{height:pe,lineHeight:`${pe}px`,paddingInline:Te,overflow:"hidden",textOverflow:"ellipsis",marginInline:ae,marginBlock:Be,width:`calc(100% - ${ae*2}px)`},[`> ${de}-item,
|
|
|
> ${de}-submenu > ${de}-submenu-title`]:{height:pe,lineHeight:`${pe}px`},[`${de}-item-group-list ${de}-submenu-title,
|
|
|
${de}-submenu-title`]:{paddingInlineEnd:yt}}};var lt=le=>{const{componentCls:de,iconCls:pe,itemHeight:ae,colorTextLightSolid:Te,dropdownWidth:gt,controlHeightLG:Re,motionDurationMid:Be,motionEaseOut:yt,paddingXL:ut,itemMarginInline:Qe,fontSizeLG:St,motionDurationSlow:Jt,paddingXS:mt,boxShadowSecondary:Ft,collapsedWidth:nn,collapsedIconSize:ht}=le,Le={height:ae,lineHeight:`${ae}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[de]:{"&-inline, &-vertical":Object.assign({[`&${de}-root`]:{boxShadow:"none"}},Kt(le))},[`${de}-submenu-popup`]:{[`${de}-vertical`]:Object.assign(Object.assign({},Kt(le)),{boxShadow:Ft})}},{[`${de}-submenu-popup ${de}-vertical${de}-sub`]:{minWidth:gt,maxHeight:`calc(100vh - ${Re*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${de}-inline`]:{width:"100%",[`&${de}-root`]:{[`${de}-item, ${de}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Jt}`,`background ${Jt}`,`padding ${Be} ${yt}`].join(","),[`> ${de}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${de}-sub${de}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${de}-submenu > ${de}-submenu-title`]:Le,[`& ${de}-item-group-title`]:{paddingInlineStart:ut}},[`${de}-item`]:Le}},{[`${de}-inline-collapsed`]:{width:nn,[`&${de}-root`]:{[`${de}-item, ${de}-submenu ${de}-submenu-title`]:{[`> ${de}-inline-collapsed-noicon`]:{fontSize:St,textAlign:"center"}}},[`> ${de}-item,
|
|
|
> ${de}-item-group > ${de}-item-group-list > ${de}-item,
|
|
|
> ${de}-item-group > ${de}-item-group-list > ${de}-submenu > ${de}-submenu-title,
|
|
|
> ${de}-submenu > ${de}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${St/2}px - ${Qe}px)`,textOverflow:"clip",[`
|
|
|
${de}-submenu-arrow,
|
|
|
${de}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${de}-item-icon, ${pe}`]:{margin:0,fontSize:ht,lineHeight:`${ae}px`,"+ span":{display:"inline-block",opacity:0}}},[`${de}-item-icon, ${pe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${de}-item-icon, ${pe}`]:{display:"none"},"a, a:hover":{color:Te}},[`${de}-item-group-title`]:Object.assign(Object.assign({},st.vS),{paddingInline:mt})}}]};const Dt=le=>{const{componentCls:de,motionDurationSlow:pe,motionDurationMid:ae,motionEaseInOut:Te,motionEaseOut:gt,iconCls:Re,iconSize:Be,iconMarginInlineEnd:yt}=le;return{[`${de}-item, ${de}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${pe}`,`background ${pe}`,`padding ${pe} ${Te}`].join(","),[`${de}-item-icon, ${Re}`]:{minWidth:Be,fontSize:Be,transition:[`font-size ${ae} ${gt}`,`margin ${pe} ${Te}`,`color ${pe}`].join(","),"+ span":{marginInlineStart:yt,opacity:1,transition:[`opacity ${pe} ${Te}`,`margin ${pe}`,`color ${pe}`].join(",")}},[`${de}-item-icon`]:Object.assign({},(0,st.Ro)()),[`&${de}-item-only-child`]:{[`> ${Re}, > ${de}-item-icon`]:{marginInlineEnd:0}}},[`${de}-item-disabled, ${de}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${de}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},yn=le=>{const{componentCls:de,motionDurationSlow:pe,motionEaseInOut:ae,borderRadius:Te,menuArrowSize:gt,menuArrowOffset:Re}=le;return{[`${de}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:le.margin,width:gt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${pe} ${ae}, opacity ${pe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:gt*.6,height:gt*.15,backgroundColor:"currentcolor",borderRadius:Te,transition:[`background ${pe} ${ae}`,`transform ${pe} ${ae}`,`top ${pe} ${ae}`,`color ${pe} ${ae}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Re})`},"&::after":{transform:`rotate(-45deg) translateY(${Re})`}}}}},$t=le=>{const{antCls:de,componentCls:pe,fontSize:ae,motionDurationSlow:Te,motionDurationMid:gt,motionEaseInOut:Re,paddingXS:Be,padding:yt,colorSplit:ut,lineWidth:Qe,zIndexPopup:St,borderRadiusLG:Jt,subMenuItemBorderRadius:mt,menuArrowSize:Ft,menuArrowOffset:nn,lineType:ht,menuPanelMaskInset:Le,groupTitleLineHeight:dt,groupTitleFontSize:Pt}=le;return[{"":{[`${pe}`]:Object.assign(Object.assign({},(0,st.dF)()),{"&-hidden":{display:"none"}})},[`${pe}-submenu-hidden`]:{display:"none"}},{[pe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,st.Wf)(le)),(0,st.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ae,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Te} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${pe}-item`]:{flex:"none"}},[`${pe}-item, ${pe}-submenu, ${pe}-submenu-title`]:{borderRadius:le.itemBorderRadius},[`${pe}-item-group-title`]:{padding:`${Be}px ${yt}px`,fontSize:Pt,lineHeight:dt,transition:`all ${Te}`},[`&-horizontal ${pe}-submenu`]:{transition:[`border-color ${Te} ${Re}`,`background ${Te} ${Re}`].join(",")},[`${pe}-submenu, ${pe}-submenu-inline`]:{transition:[`border-color ${Te} ${Re}`,`background ${Te} ${Re}`,`padding ${gt} ${Re}`].join(",")},[`${pe}-submenu ${pe}-sub`]:{cursor:"initial",transition:[`background ${Te} ${Re}`,`padding ${Te} ${Re}`].join(",")},[`${pe}-title-content`]:{transition:`color ${Te}`},[`${pe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${pe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:ut,borderStyle:ht,borderWidth:0,borderTopWidth:Qe,marginBlock:Qe,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Dt(le)),{[`${pe}-item-group`]:{[`${pe}-item-group-list`]:{margin:0,padding:0,[`${pe}-item, ${pe}-submenu-title`]:{paddingInline:`${ae*2}px ${yt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:St,borderRadius:Jt,boxShadow:"none",transformOrigin:"0 0",[`&${pe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Le}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Le},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:le.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:le.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:le.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:le.paddingXS},[`> ${pe}`]:Object.assign(Object.assign(Object.assign({borderRadius:Jt},Dt(le)),yn(le)),{[`${pe}-item, ${pe}-submenu > ${pe}-submenu-title`]:{borderRadius:mt},[`${pe}-submenu-title::after`]:{transition:`transform ${Te} ${Re}`}})}}),yn(le)),{[`&-inline-collapsed ${pe}-submenu-arrow,
|
|
|
&-inline ${pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${nn})`},"&::after":{transform:`rotate(45deg) translateX(-${nn})`}},[`${pe}-submenu-open${pe}-submenu-inline > ${pe}-submenu-title > ${pe}-submenu-arrow`]:{transform:`translateY(-${Ft*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${nn})`},"&::before":{transform:`rotate(45deg) translateX(${nn})`}}})},{[`${de}-layout-header`]:{[pe]:{lineHeight:"inherit"}}}]};var hn=(le,de)=>(0,Ot.Z)("Menu",ae=>{if(de===!1)return[];const{colorBgElevated:Te,colorPrimary:gt,colorTextLightSolid:Re,controlHeightLG:Be,fontSize:yt,darkItemColor:ut,darkDangerItemColor:Qe,darkItemBg:St,darkSubMenuItemBg:Jt,darkItemSelectedColor:mt,darkItemSelectedBg:Ft,darkDangerItemSelectedBg:nn,darkItemHoverBg:ht,darkGroupTitleColor:Le,darkItemHoverColor:dt,darkItemDisabledColor:Pt,darkDangerItemHoverColor:_t,darkDangerItemSelectedColor:Xt,darkDangerItemActiveBg:gn}=ae,En=yt/7*5,wn=(0,wt.TS)(ae,{menuArrowSize:En,menuHorizontalHeight:Be*1.15,menuArrowOffset:`${En*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Te}),_n=(0,wt.TS)(wn,{itemColor:ut,itemHoverColor:dt,groupTitleColor:Le,itemSelectedColor:mt,itemBg:St,popupBg:St,subMenuItemBg:Jt,itemActiveBg:"transparent",itemSelectedBg:Ft,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:ht,itemDisabledColor:Pt,dangerItemColor:Qe,dangerItemHoverColor:_t,dangerItemSelectedColor:Xt,dangerItemActiveBg:gn,dangerItemSelectedBg:nn,menuSubMenuBg:Jt,horizontalItemSelectedColor:Re,horizontalItemSelectedBg:gt});return[$t(wn),Nt(wn),lt(wn),Qt(wn,"light"),Qt(_n,"dark"),Ve(wn),(0,Ie.Z)(wn),(0,Mt.oN)(wn,"slide-up"),(0,Mt.oN)(wn,"slide-down"),(0,Ge._y)(wn,"zoom-big")]},ae=>{const{colorPrimary:Te,colorError:gt,colorTextDisabled:Re,colorErrorBg:Be,colorText:yt,colorTextDescription:ut,colorBgContainer:Qe,colorFillAlter:St,colorFillContent:Jt,lineWidth:mt,lineWidthBold:Ft,controlItemBgActive:nn,colorBgTextHover:ht,controlHeightLG:Le,lineHeight:dt,colorBgElevated:Pt,marginXXS:_t,padding:Xt,fontSize:gn,controlHeightSM:En,fontSizeLG:wn,colorTextLightSolid:_n,colorErrorHover:$n}=ae,Dn=new Ye.C(_n).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ae.zIndexPopupBase+50,radiusItem:ae.borderRadiusLG,itemBorderRadius:ae.borderRadiusLG,radiusSubMenuItem:ae.borderRadiusSM,subMenuItemBorderRadius:ae.borderRadiusSM,colorItemText:yt,itemColor:yt,colorItemTextHover:yt,itemHoverColor:yt,colorItemTextHoverHorizontal:Te,horizontalItemHoverColor:Te,colorGroupTitle:ut,groupTitleColor:ut,colorItemTextSelected:Te,itemSelectedColor:Te,colorItemTextSelectedHorizontal:Te,horizontalItemSelectedColor:Te,colorItemBg:Qe,itemBg:Qe,colorItemBgHover:ht,itemHoverBg:ht,colorItemBgActive:Jt,itemActiveBg:nn,colorSubItemBg:St,subMenuItemBg:St,colorItemBgSelected:nn,itemSelectedBg:nn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Ft,activeBarHeight:Ft,colorActiveBarBorderSize:mt,activeBarBorderWidth:mt,colorItemTextDisabled:Re,itemDisabledColor:Re,colorDangerItemText:gt,dangerItemColor:gt,colorDangerItemTextHover:gt,dangerItemHoverColor:gt,colorDangerItemTextSelected:gt,dangerItemSelectedColor:gt,colorDangerItemBgActive:Be,dangerItemActiveBg:Be,colorDangerItemBgSelected:Be,dangerItemSelectedBg:Be,itemMarginInline:ae.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Le,groupTitleLineHeight:dt,collapsedWidth:Le*2,popupBg:Pt,itemMarginBlock:_t,itemPaddingInline:Xt,horizontalLineHeight:`${Le*1.15}px`,iconSize:gn,iconMarginInlineEnd:En-gn,collapsedIconSize:wn,groupTitleFontSize:gn,darkItemDisabledColor:new Ye.C(_n).setAlpha(.25).toRgbString(),darkItemColor:Dn,darkDangerItemColor:gt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:_n,darkItemSelectedBg:Te,darkDangerItemSelectedBg:gt,darkItemHoverBg:"transparent",darkGroupTitleColor:Dn,darkItemHoverColor:_n,darkDangerItemHoverColor:$n,darkDangerItemSelectedColor:_n,darkDangerItemActiveBg:gt}},{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"]]})(le),tn=function(le,de){var pe={};for(var ae in le)Object.prototype.hasOwnProperty.call(le,ae)&&de.indexOf(ae)<0&&(pe[ae]=le[ae]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,ae=Object.getOwnPropertySymbols(le);Te<ae.length;Te++)de.indexOf(ae[Te])<0&&Object.prototype.propertyIsEnumerable.call(le,ae[Te])&&(pe[ae[Te]]=le[ae[Te]]);return pe},Gt=(0,Ae.forwardRef)((le,de)=>{var pe,ae;const Te=Ae.useContext(Se.Z),gt=Te||{},{getPrefixCls:Re,getPopupContainer:Be,direction:yt,menu:ut}=Ae.useContext(Ee.E_),Qe=Re(),{prefixCls:St,className:Jt,style:mt,theme:Ft="light",expandIcon:nn,_internalDisableMenuItemTitleTooltip:ht,inlineCollapsed:Le,siderCollapsed:dt,items:Pt,children:_t,rootClassName:Xt,mode:gn,selectable:En,onClick:wn,overflowedIndicatorPopupClassName:_n}=le,$n=tn(le,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Dn=(0,ct.Z)($n,["collapsedWidth"]),qn=vt(Pt)||_t;(pe=gt.validator)===null||pe===void 0||pe.call(gt,{mode:gn});const fr=(0,it.useEvent)(function(){var er;wn==null||wn.apply(void 0,arguments),(er=gt.onClick)===null||er===void 0||er.call(gt)}),br=gt.mode||gn,Zn=En!=null?En:gt.selectable,ar=Ae.useMemo(()=>dt!==void 0?dt:Le,[Le,dt]),Cr={horizontal:{motionName:`${Qe}-slide-up`},inline:(0,He.Z)(Qe),other:{motionName:`${Qe}-zoom-big`}},jn=Re("menu",St||gt.prefixCls),[Dr,ei]=hn(jn,!Te),Fr=be()(`${jn}-${Ft}`,ut==null?void 0:ut.className,Jt);let ai;if(typeof nn=="function")ai=nn;else if(nn===null||nn===!1)ai=null;else if(gt.expandIcon===null||gt.expandIcon===!1)ai=null;else{const er=nn!=null?nn:gt.expandIcon;ai=(0,Fe.Tm)(er,{className:be()(`${jn}-submenu-expand-icon`,(0,Fe.l$)(er)?(ae=er.props)===null||ae===void 0?void 0:ae.className:"")})}const ti=Ae.useMemo(()=>({prefixCls:jn,inlineCollapsed:ar||!1,direction:yt,firstLevel:!0,theme:Ft,mode:br,disableMenuItemTitleTooltip:ht}),[jn,ar,yt,ht,Ft]);return Dr(Ae.createElement(Se.Z.Provider,{value:null},Ae.createElement(We.Provider,{value:ti},Ae.createElement(ue.ZP,Object.assign({getPopupContainer:Be,overflowedIndicator:Ae.createElement(ft.Z,null),overflowedIndicatorPopupClassName:be()(jn,`${jn}-${Ft}`,_n),mode:br,selectable:Zn,onClick:fr},Dn,{inlineCollapsed:ar,style:Object.assign(Object.assign({},ut==null?void 0:ut.style),mt),className:Fr,prefixCls:jn,direction:yt,defaultMotions:Cr,expandIcon:ai,ref:de,rootClassName:be()(Xt,ei)}),qn))))});const ve=(0,Ae.forwardRef)((le,de)=>{const pe=(0,Ae.useRef)(null),ae=Ae.useContext(ke.D);return(0,Ae.useImperativeHandle)(de,()=>({menu:pe.current,focus:Te=>{var gt;(gt=pe.current)===null||gt===void 0||gt.focus(Te)}})),Ae.createElement(Gt,Object.assign({ref:pe},le,ae))});ve.Item=pt,ve.SubMenu=kt,ve.Divider=Me,ve.ItemGroup=ue.BW;var ce=ve},58421:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return gt}});var ue=oe(60499),Ae=oe(59301),ke={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"},nt=ke,be=oe(7657),Ee=function(Be,yt){return Ae.createElement(be.Z,(0,ue.Z)({},Be,{ref:yt,icon:nt}))},he=Ae.forwardRef(Ee),xe=he,Me=oe(49198),Pe=oe(33853),ct=oe(38819),De=oe(92310),Fe=oe.n(De),et=oe(18642),We=oe(85899),je=oe(38705),pt=oe(17212),rt=oe(39153),kt=oe(55401),ft=oe(26112),it={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},He=it,Se=oe(91735),Ke=function(Re){(0,rt.Z)(yt,Re);var Be=(0,kt.Z)(yt);function yt(){var ut;(0,je.Z)(this,yt);for(var Qe=arguments.length,St=new Array(Qe),Jt=0;Jt<Qe;Jt++)St[Jt]=arguments[Jt];return ut=Be.call.apply(Be,[this].concat(St)),ut.state={goInputText:""},ut.getValidValue=function(){var mt=ut.state.goInputText;return!mt||Number.isNaN(mt)?void 0:Number(mt)},ut.buildOptionText=function(mt){return"".concat(mt," ").concat(ut.props.locale.items_per_page)},ut.changeSize=function(mt){ut.props.changeSize(Number(mt))},ut.handleChange=function(mt){ut.setState({goInputText:mt.target.value})},ut.handleBlur=function(mt){var Ft=ut.props,nn=Ft.goButton,ht=Ft.quickGo,Le=Ft.rootPrefixCls,dt=ut.state.goInputText;nn||dt===""||(ut.setState({goInputText:""}),!(mt.relatedTarget&&(mt.relatedTarget.className.indexOf("".concat(Le,"-item-link"))>=0||mt.relatedTarget.className.indexOf("".concat(Le,"-item"))>=0))&&ht(ut.getValidValue()))},ut.go=function(mt){var Ft=ut.state.goInputText;Ft!==""&&(mt.keyCode===He.ENTER||mt.type==="click")&&(ut.setState({goInputText:""}),ut.props.quickGo(ut.getValidValue()))},ut}return(0,pt.Z)(yt,[{key:"getPageSizeOptions",value:function(){var Qe=this.props,St=Qe.pageSize,Jt=Qe.pageSizeOptions;return Jt.some(function(mt){return mt.toString()===St.toString()})?Jt:Jt.concat([St.toString()]).sort(function(mt,Ft){var nn=Number.isNaN(Number(mt))?0:Number(mt),ht=Number.isNaN(Number(Ft))?0:Number(Ft);return nn-ht})}},{key:"render",value:function(){var Qe=this,St=this.props,Jt=St.pageSize,mt=St.locale,Ft=St.rootPrefixCls,nn=St.changeSize,ht=St.quickGo,Le=St.goButton,dt=St.selectComponentClass,Pt=St.buildOptionText,_t=St.selectPrefixCls,Xt=St.disabled,gn=this.state.goInputText,En="".concat(Ft,"-options"),wn=dt,_n=null,$n=null,Dn=null;if(!nn&&!ht)return null;var qn=this.getPageSizeOptions();if(nn&&wn){var fr=qn.map(function(br,Zn){return Ae.createElement(wn.Option,{key:Zn,value:br.toString()},(Pt||Qe.buildOptionText)(br))});_n=Ae.createElement(wn,{disabled:Xt,prefixCls:_t,showSearch:!1,className:"".concat(En,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Jt||qn[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Zn){return Zn.parentNode},"aria-label":mt.page_size,defaultOpen:!1},fr)}return ht&&(Le&&(Dn=typeof Le=="boolean"?Ae.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Xt,className:"".concat(En,"-quick-jumper-button")},mt.jump_to_confirm):Ae.createElement("span",{onClick:this.go,onKeyUp:this.go},Le)),$n=Ae.createElement("div",{className:"".concat(En,"-quick-jumper")},mt.jump_to,Ae.createElement("input",{disabled:Xt,type:"text",value:gn,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":mt.page}),mt.page,Dn)),Ae.createElement("li",{className:"".concat(En)},_n,$n)}}]),yt}(Ae.Component);Ke.defaultProps={pageSizeOptions:["10","20","50","100"]};var Ue=Ke,vt=function(Be){var yt,ut=Be.rootPrefixCls,Qe=Be.page,St=Be.active,Jt=Be.className,mt=Be.showTitle,Ft=Be.onClick,nn=Be.onKeyPress,ht=Be.itemRender,Le="".concat(ut,"-item"),dt=Fe()(Le,"".concat(Le,"-").concat(Qe),(yt={},(0,et.Z)(yt,"".concat(Le,"-active"),St),(0,et.Z)(yt,"".concat(Le,"-disabled"),!Qe),(0,et.Z)(yt,Be.className,Jt),yt)),Pt=function(){Ft(Qe)},_t=function(En){nn(En,Ft,Qe)},Xt=ht(Qe,"page",Ae.createElement("a",{rel:"nofollow"},Qe));return Xt?Ae.createElement("li",{title:mt?Qe.toString():null,className:dt,onClick:Pt,onKeyPress:_t,tabIndex:0},Xt):null},Ye=vt;function st(){}function Ie(Re){var Be=Number(Re);return typeof Be=="number"&&!Number.isNaN(Be)&&isFinite(Be)&&Math.floor(Be)===Be}var Mt=function(Be,yt,ut){return ut};function Ge(Re,Be,yt){var ut=typeof Re=="undefined"?Be.pageSize:Re;return Math.floor((yt.total-1)/ut)+1}var Ot=function(Re){(0,rt.Z)(yt,Re);var Be=(0,kt.Z)(yt);function yt(ut){var Qe;(0,je.Z)(this,yt),Qe=Be.call(this,ut),Qe.paginationNode=Ae.createRef(),Qe.getJumpPrevPage=function(){return Math.max(1,Qe.state.current-(Qe.props.showLessItems?3:5))},Qe.getJumpNextPage=function(){return Math.min(Ge(void 0,Qe.state,Qe.props),Qe.state.current+(Qe.props.showLessItems?3:5))},Qe.getItemIcon=function(nn,ht){var Le=Qe.props.prefixCls,dt=nn||Ae.createElement("button",{type:"button","aria-label":ht,className:"".concat(Le,"-item-link")});return typeof nn=="function"&&(dt=Ae.createElement(nn,(0,We.Z)({},Qe.props))),dt},Qe.isValid=function(nn){var ht=Qe.props.total;return Ie(nn)&&nn!==Qe.state.current&&Ie(ht)&&ht>0},Qe.shouldDisplayQuickJumper=function(){var nn=Qe.props,ht=nn.showQuickJumper,Le=nn.total,dt=Qe.state.pageSize;return Le<=dt?!1:ht},Qe.handleKeyDown=function(nn){(nn.keyCode===He.ARROW_UP||nn.keyCode===He.ARROW_DOWN)&&nn.preventDefault()},Qe.handleKeyUp=function(nn){var ht=Qe.getValidValue(nn),Le=Qe.state.currentInputValue;ht!==Le&&Qe.setState({currentInputValue:ht}),nn.keyCode===He.ENTER?Qe.handleChange(ht):nn.keyCode===He.ARROW_UP?Qe.handleChange(ht-1):nn.keyCode===He.ARROW_DOWN&&Qe.handleChange(ht+1)},Qe.handleBlur=function(nn){var ht=Qe.getValidValue(nn);Qe.handleChange(ht)},Qe.changePageSize=function(nn){var ht=Qe.state.current,Le=Ge(nn,Qe.state,Qe.props);ht=ht>Le?Le:ht,Le===0&&(ht=Qe.state.current),typeof nn=="number"&&("pageSize"in Qe.props||Qe.setState({pageSize:nn}),"current"in Qe.props||Qe.setState({current:ht,currentInputValue:ht})),Qe.props.onShowSizeChange(ht,nn),"onChange"in Qe.props&&Qe.props.onChange&&Qe.props.onChange(ht,nn)},Qe.handleChange=function(nn){var ht=Qe.props,Le=ht.disabled,dt=ht.onChange,Pt=Qe.state,_t=Pt.pageSize,Xt=Pt.current,gn=Pt.currentInputValue;if(Qe.isValid(nn)&&!Le){var En=Ge(void 0,Qe.state,Qe.props),wn=nn;return nn>En?wn=En:nn<1&&(wn=1),"current"in Qe.props||Qe.setState({current:wn}),wn!==gn&&Qe.setState({currentInputValue:wn}),dt(wn,_t),wn}return Xt},Qe.prev=function(){Qe.hasPrev()&&Qe.handleChange(Qe.state.current-1)},Qe.next=function(){Qe.hasNext()&&Qe.handleChange(Qe.state.current+1)},Qe.jumpPrev=function(){Qe.handleChange(Qe.getJumpPrevPage())},Qe.jumpNext=function(){Qe.handleChange(Qe.getJumpNextPage())},Qe.hasPrev=function(){return Qe.state.current>1},Qe.hasNext=function(){return Qe.state.current<Ge(void 0,Qe.state,Qe.props)},Qe.runIfEnter=function(nn,ht){if(nn.key==="Enter"||nn.charCode===13){for(var Le=arguments.length,dt=new Array(Le>2?Le-2:0),Pt=2;Pt<Le;Pt++)dt[Pt-2]=arguments[Pt];ht.apply(void 0,dt)}},Qe.runIfEnterPrev=function(nn){Qe.runIfEnter(nn,Qe.prev)},Qe.runIfEnterNext=function(nn){Qe.runIfEnter(nn,Qe.next)},Qe.runIfEnterJumpPrev=function(nn){Qe.runIfEnter(nn,Qe.jumpPrev)},Qe.runIfEnterJumpNext=function(nn){Qe.runIfEnter(nn,Qe.jumpNext)},Qe.handleGoTO=function(nn){(nn.keyCode===He.ENTER||nn.type==="click")&&Qe.handleChange(Qe.state.currentInputValue)},Qe.renderPrev=function(nn){var ht=Qe.props,Le=ht.prevIcon,dt=ht.itemRender,Pt=dt(nn,"prev",Qe.getItemIcon(Le,"prev page")),_t=!Qe.hasPrev();return(0,Ae.isValidElement)(Pt)?(0,Ae.cloneElement)(Pt,{disabled:_t}):Pt},Qe.renderNext=function(nn){var ht=Qe.props,Le=ht.nextIcon,dt=ht.itemRender,Pt=dt(nn,"next",Qe.getItemIcon(Le,"next page")),_t=!Qe.hasNext();return(0,Ae.isValidElement)(Pt)?(0,Ae.cloneElement)(Pt,{disabled:_t}):Pt};var St=ut.onChange!==st,Jt="current"in ut;Jt&&!St&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var mt=ut.defaultCurrent;"current"in ut&&(mt=ut.current);var Ft=ut.defaultPageSize;return"pageSize"in ut&&(Ft=ut.pageSize),mt=Math.min(mt,Ge(Ft,void 0,ut)),Qe.state={current:mt,currentInputValue:mt,pageSize:Ft},Qe}return(0,pt.Z)(yt,[{key:"componentDidUpdate",value:function(Qe,St){var Jt=this.props.prefixCls;if(St.current!==this.state.current&&this.paginationNode.current){var mt=this.paginationNode.current.querySelector(".".concat(Jt,"-item-").concat(St.current));if(mt&&document.activeElement===mt){var Ft;mt==null||(Ft=mt.blur)===null||Ft===void 0||Ft.call(mt)}}}},{key:"getValidValue",value:function(Qe){var St=Qe.target.value,Jt=Ge(void 0,this.state,this.props),mt=this.state.currentInputValue,Ft;return St===""?Ft=St:Number.isNaN(Number(St))?Ft=mt:St>=Jt?Ft=Jt:Ft=Number(St),Ft}},{key:"getShowSizeChanger",value:function(){var Qe=this.props,St=Qe.showSizeChanger,Jt=Qe.total,mt=Qe.totalBoundaryShowSizeChanger;return typeof St!="undefined"?St:Jt>mt}},{key:"render",value:function(){var Qe=this.props,St=Qe.prefixCls,Jt=Qe.className,mt=Qe.style,Ft=Qe.disabled,nn=Qe.hideOnSinglePage,ht=Qe.total,Le=Qe.locale,dt=Qe.showQuickJumper,Pt=Qe.showLessItems,_t=Qe.showTitle,Xt=Qe.showTotal,gn=Qe.simple,En=Qe.itemRender,wn=Qe.showPrevNextJumpers,_n=Qe.jumpPrevIcon,$n=Qe.jumpNextIcon,Dn=Qe.selectComponentClass,qn=Qe.selectPrefixCls,fr=Qe.pageSizeOptions,br=this.state,Zn=br.current,ar=br.pageSize,Cr=br.currentInputValue;if(nn===!0&&ht<=ar)return null;var jn=Ge(void 0,this.state,this.props),Dr=[],ei=null,Fr=null,ai=null,ti=null,er=null,hr=dt&&dt.goButton,zn=Pt?1:2,Hn=Zn-1>0?Zn-1:0,wr=Zn+1<jn?Zn+1:jn,Bt=(0,ft.Z)(this.props,{aria:!0,data:!0}),ze=Xt&&Ae.createElement("li",{className:"".concat(St,"-total-text")},Xt(ht,[ht===0?0:(Zn-1)*ar+1,Zn*ar>ht?ht:Zn*ar]));if(gn){hr&&(typeof hr=="boolean"?er=Ae.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Le.jump_to_confirm):er=Ae.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},hr),er=Ae.createElement("li",{title:_t?"".concat(Le.jump_to).concat(Zn,"/").concat(jn):null,className:"".concat(St,"-simple-pager")},er));var Xe=this.renderPrev(Hn);return Ae.createElement("ul",(0,ue.Z)({className:Fe()(St,"".concat(St,"-simple"),(0,et.Z)({},"".concat(St,"-disabled"),Ft),Jt),style:mt,ref:this.paginationNode},Bt),ze,Xe?Ae.createElement("li",{title:_t?Le.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Fe()("".concat(St,"-prev"),(0,et.Z)({},"".concat(St,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Xe):null,Ae.createElement("li",{title:_t?"".concat(Zn,"/").concat(jn):null,className:"".concat(St,"-simple-pager")},Ae.createElement("input",{type:"text",value:Cr,disabled:Ft,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),Ae.createElement("span",{className:"".concat(St,"-slash")},"/"),jn),Ae.createElement("li",{title:_t?Le.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Fe()("".concat(St,"-next"),(0,et.Z)({},"".concat(St,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(wr)),er)}if(jn<=3+zn*2){var Je={locale:Le,rootPrefixCls:St,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:_t,itemRender:En};jn||Dr.push(Ae.createElement(Ye,(0,ue.Z)({},Je,{key:"noPager",page:1,className:"".concat(St,"-item-disabled")})));for(var qe=1;qe<=jn;qe+=1){var Ct=Zn===qe;Dr.push(Ae.createElement(Ye,(0,ue.Z)({},Je,{key:qe,page:qe,active:Ct})))}}else{var Rt=Pt?Le.prev_3:Le.prev_5,rn=Pt?Le.next_3:Le.next_5,Vt=En(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(_n,"prev page")),ln=En(this.getJumpNextPage(),"jump-next",this.getItemIcon($n,"next page"));wn&&(ei=Vt?Ae.createElement("li",{title:_t?Rt:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Fe()("".concat(St,"-jump-prev"),(0,et.Z)({},"".concat(St,"-jump-prev-custom-icon"),!!_n))},Vt):null,Fr=ln?Ae.createElement("li",{title:_t?rn:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Fe()("".concat(St,"-jump-next"),(0,et.Z)({},"".concat(St,"-jump-next-custom-icon"),!!$n))},ln):null),ti=Ae.createElement(Ye,{locale:Le,last:!0,rootPrefixCls:St,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:jn,page:jn,active:!1,showTitle:_t,itemRender:En}),ai=Ae.createElement(Ye,{locale:Le,rootPrefixCls:St,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:_t,itemRender:En});var Cn=Math.max(1,Zn-zn),An=Math.min(Zn+zn,jn);Zn-1<=zn&&(An=1+zn*2),jn-Zn<=zn&&(Cn=jn-zn*2);for(var Tn=Cn;Tn<=An;Tn+=1){var Ut=Zn===Tn;Dr.push(Ae.createElement(Ye,{locale:Le,rootPrefixCls:St,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Tn,page:Tn,active:Ut,showTitle:_t,itemRender:En}))}Zn-1>=zn*2&&Zn!==3&&(Dr[0]=(0,Ae.cloneElement)(Dr[0],{className:"".concat(St,"-item-after-jump-prev")}),Dr.unshift(ei)),jn-Zn>=zn*2&&Zn!==jn-2&&(Dr[Dr.length-1]=(0,Ae.cloneElement)(Dr[Dr.length-1],{className:"".concat(St,"-item-before-jump-next")}),Dr.push(Fr)),Cn!==1&&Dr.unshift(ai),An!==jn&&Dr.push(ti)}var bn=!this.hasPrev()||!jn,Vn=!this.hasNext()||!jn,Fn=this.renderPrev(Hn),Jn=this.renderNext(wr);return Ae.createElement("ul",(0,ue.Z)({className:Fe()(St,Jt,(0,et.Z)({},"".concat(St,"-disabled"),Ft)),style:mt,ref:this.paginationNode},Bt),ze,Fn?Ae.createElement("li",{title:_t?Le.prev_page:null,onClick:this.prev,tabIndex:bn?null:0,onKeyPress:this.runIfEnterPrev,className:Fe()("".concat(St,"-prev"),(0,et.Z)({},"".concat(St,"-disabled"),bn)),"aria-disabled":bn},Fn):null,Dr,Jn?Ae.createElement("li",{title:_t?Le.next_page:null,onClick:this.next,tabIndex:Vn?null:0,onKeyPress:this.runIfEnterNext,className:Fe()("".concat(St,"-next"),(0,et.Z)({},"".concat(St,"-disabled"),Vn)),"aria-disabled":Vn},Jn):null,Ae.createElement(Ue,{disabled:Ft,locale:Le,rootPrefixCls:St,selectComponentClass:Dn,selectPrefixCls:qn,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Zn,pageSize:ar,pageSizeOptions:fr,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:hr}))}}],[{key:"getDerivedStateFromProps",value:function(Qe,St){var Jt={};if("current"in Qe&&(Jt.current=Qe.current,Qe.current!==St.current&&(Jt.currentInputValue=Jt.current)),"pageSize"in Qe&&Qe.pageSize!==St.pageSize){var mt=St.current,Ft=Ge(Qe.pageSize,St,Qe);mt=mt>Ft?Ft:mt,"current"in Qe||(Jt.current=mt,Jt.currentInputValue=mt),Jt.pageSize=Qe.pageSize}return Jt}}]),yt}(Ae.Component);Ot.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:st,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:st,locale:Se.Z,style:{},itemRender:Mt,totalBoundaryShowSizeChanger:50};var wt=Ot,At=oe(22075),Nt=oe(36355),Tt=oe(19716),Ve=oe(8628),ye=oe(9763),bt=oe(57809);const Qt=Re=>Ae.createElement(bt.default,Object.assign({},Re,{showSearch:!0,size:"small"})),Kt=Re=>Ae.createElement(bt.default,Object.assign({},Re,{showSearch:!0,size:"middle"}));Qt.Option=bt.default.Option,Kt.Option=bt.default.Option;var at=oe(9937),lt=oe(17313),Dt=oe(83116),yn=oe(37613);const $t=Re=>{const{componentCls:Be}=Re;return{[`${Be}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Be}-item-link`]:{color:Re.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Be}-item-link`]:{color:Re.colorTextDisabled,cursor:"not-allowed"}}},[`&${Be}-disabled`]:{cursor:"not-allowed",[`${Be}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Re.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Re.colorBorder,backgroundColor:Re.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Re.itemActiveBgDisabled},a:{color:Re.itemActiveColorDisabled}}},[`${Be}-item-link`]:{color:Re.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Be}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Be}-simple-pager`]:{color:Re.colorTextDisabled},[`${Be}-jump-prev, ${Be}-jump-next`]:{[`${Be}-item-link-icon`]:{opacity:0},[`${Be}-item-ellipsis`]:{opacity:1}}},[`&${Be}-simple`]:{[`${Be}-prev, ${Be}-next`]:{[`&${Be}-disabled ${Be}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},hn=Re=>{const{componentCls:Be}=Re;return{[`&${Be}-mini ${Be}-total-text, &${Be}-mini ${Be}-simple-pager`]:{height:Re.itemSizeSM,lineHeight:`${Re.itemSizeSM}px`},[`&${Be}-mini ${Be}-item`]:{minWidth:Re.itemSizeSM,height:Re.itemSizeSM,margin:0,lineHeight:`${Re.itemSizeSM-2}px`},[`&${Be}-mini:not(${Be}-disabled) ${Be}-item:not(${Be}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Re.colorBgTextHover},"&:active":{backgroundColor:Re.colorBgTextActive}},[`&${Be}-mini ${Be}-prev, &${Be}-mini ${Be}-next`]:{minWidth:Re.itemSizeSM,height:Re.itemSizeSM,margin:0,lineHeight:`${Re.itemSizeSM}px`},[`&${Be}-mini:not(${Be}-disabled)`]:{[`${Be}-prev, ${Be}-next`]:{[`&:hover ${Be}-item-link`]:{backgroundColor:Re.colorBgTextHover},[`&:active ${Be}-item-link`]:{backgroundColor:Re.colorBgTextActive},[`&${Be}-disabled:hover ${Be}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${Be}-mini ${Be}-prev ${Be}-item-link,
|
|
|
&${Be}-mini ${Be}-next ${Be}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Re.itemSizeSM,lineHeight:`${Re.itemSizeSM}px`}},[`&${Be}-mini ${Be}-jump-prev, &${Be}-mini ${Be}-jump-next`]:{height:Re.itemSizeSM,marginInlineEnd:0,lineHeight:`${Re.itemSizeSM}px`},[`&${Be}-mini ${Be}-options`]:{marginInlineStart:Re.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Re.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Re.itemSizeSM,lineHeight:`${Re.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,at.x0)(Re)),{width:Re.paginationMiniQuickJumperInputWidth,height:Re.controlHeightSM})}}}},tn=Re=>{const{componentCls:Be}=Re;return{[`
|
|
|
&${Be}-simple ${Be}-prev,
|
|
|
&${Be}-simple ${Be}-next
|
|
|
`]:{height:Re.itemSizeSM,lineHeight:`${Re.itemSizeSM}px`,verticalAlign:"top",[`${Be}-item-link`]:{height:Re.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Re.colorBgTextHover},"&:active":{backgroundColor:Re.colorBgTextActive},"&::after":{height:Re.itemSizeSM,lineHeight:`${Re.itemSizeSM}px`}}},[`&${Be}-simple ${Be}-simple-pager`]:{display:"inline-block",height:Re.itemSizeSM,marginInlineEnd:Re.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Re.marginXS,padding:`0 ${Re.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:Re.itemInputBg,border:`${Re.lineWidth}px ${Re.lineType} ${Re.colorBorder}`,borderRadius:Re.borderRadius,outline:"none",transition:`border-color ${Re.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Re.colorPrimary},"&:focus":{borderColor:Re.colorPrimaryHover,boxShadow:`${Re.inputOutlineOffset}px 0 ${Re.controlOutlineWidth}px ${Re.controlOutline}`},"&[disabled]":{color:Re.colorTextDisabled,backgroundColor:Re.colorBgContainerDisabled,borderColor:Re.colorBorder,cursor:"not-allowed"}}}}},en=Re=>{const{componentCls:Be}=Re;return{[`${Be}-jump-prev, ${Be}-jump-next`]:{outline:0,[`${Be}-item-container`]:{position:"relative",[`${Be}-item-link-icon`]:{color:Re.colorPrimary,fontSize:Re.fontSizeSM,opacity:0,transition:`all ${Re.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Be}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Re.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Re.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Re.paginationEllipsisTextIndent,opacity:1,transition:`all ${Re.motionDurationMid}`}},"&:hover":{[`${Be}-item-link-icon`]:{opacity:1},[`${Be}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${Be}-prev,
|
|
|
${Be}-jump-prev,
|
|
|
${Be}-jump-next
|
|
|
`]:{marginInlineEnd:Re.marginXS},[`
|
|
|
${Be}-prev,
|
|
|
${Be}-next,
|
|
|
${Be}-jump-prev,
|
|
|
${Be}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:Re.itemSize,height:Re.itemSize,color:Re.colorText,fontFamily:Re.fontFamily,lineHeight:`${Re.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Re.borderRadius,cursor:"pointer",transition:`all ${Re.motionDurationMid}`},[`${Be}-prev, ${Be}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Re.colorText,cursor:"pointer",userSelect:"none"},[`${Be}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Re.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Re.lineWidth}px ${Re.lineType} transparent`,borderRadius:Re.borderRadius,outline:"none",transition:`all ${Re.motionDurationMid}`},[`&:hover ${Be}-item-link`]:{backgroundColor:Re.colorBgTextHover},[`&:active ${Be}-item-link`]:{backgroundColor:Re.colorBgTextActive},[`&${Be}-disabled:hover`]:{[`${Be}-item-link`]:{backgroundColor:"transparent"}}},[`${Be}-slash`]:{marginInlineEnd:Re.paginationSlashMarginInlineEnd,marginInlineStart:Re.paginationSlashMarginInlineStart},[`${Be}-options`]:{display:"inline-block",marginInlineStart:Re.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Re.controlHeight,marginInlineStart:Re.marginXS,lineHeight:`${Re.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,at.ik)(Re)),{width:Re.controlHeightLG*1.25,height:Re.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Re.marginXS,marginInlineEnd:Re.marginXS})}}}},Gt=Re=>{const{componentCls:Be}=Re;return{[`${Be}-item`]:{display:"inline-block",minWidth:Re.itemSize,height:Re.itemSize,marginInlineEnd:Re.marginXS,fontFamily:Re.fontFamily,lineHeight:`${Re.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${Re.lineWidth}px ${Re.lineType} transparent`,borderRadius:Re.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Re.paginationItemPaddingInline}px`,color:Re.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Be}-item-active)`]:{"&:hover":{transition:`all ${Re.motionDurationMid}`,backgroundColor:Re.colorBgTextHover},"&:active":{backgroundColor:Re.colorBgTextActive}},"&-active":{fontWeight:Re.fontWeightStrong,backgroundColor:Re.itemActiveBg,borderColor:Re.colorPrimary,a:{color:Re.colorPrimary},"&:hover":{borderColor:Re.colorPrimaryHover},"&:hover a":{color:Re.colorPrimaryHover}}}}},ve=Re=>{const{componentCls:Be}=Re;return{[Be]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,lt.Wf)(Re)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Be}-total-text`]:{display:"inline-block",height:Re.itemSize,marginInlineEnd:Re.marginXS,lineHeight:`${Re.itemSize-2}px`,verticalAlign:"middle"}}),Gt(Re)),en(Re)),tn(Re)),hn(Re)),$t(Re)),{[`@media only screen and (max-width: ${Re.screenLG}px)`]:{[`${Be}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Re.screenSM}px)`]:{[`${Be}-options`]:{display:"none"}}}),[`&${Re.componentCls}-rtl`]:{direction:"rtl"}}},ce=Re=>{const{componentCls:Be}=Re;return{[`${Be}${Be}-disabled:not(${Be}-mini)`]:{"&, &:hover":{[`${Be}-item-link`]:{borderColor:Re.colorBorder}},"&:focus-visible":{[`${Be}-item-link`]:{borderColor:Re.colorBorder}},[`${Be}-item, ${Be}-item-link`]:{backgroundColor:Re.colorBgContainerDisabled,borderColor:Re.colorBorder,[`&:hover:not(${Be}-item-active)`]:{backgroundColor:Re.colorBgContainerDisabled,borderColor:Re.colorBorder,a:{color:Re.colorTextDisabled}},[`&${Be}-item-active`]:{backgroundColor:Re.itemActiveBgDisabled}},[`${Be}-prev, ${Be}-next`]:{"&:hover button":{backgroundColor:Re.colorBgContainerDisabled,borderColor:Re.colorBorder,color:Re.colorTextDisabled},[`${Be}-item-link`]:{backgroundColor:Re.colorBgContainerDisabled,borderColor:Re.colorBorder}}},[`${Be}:not(${Be}-mini)`]:{[`${Be}-prev, ${Be}-next`]:{"&:hover button":{borderColor:Re.colorPrimaryHover,backgroundColor:Re.itemBg},[`${Be}-item-link`]:{backgroundColor:Re.itemLinkBg,borderColor:Re.colorBorder},[`&:hover ${Be}-item-link`]:{borderColor:Re.colorPrimary,backgroundColor:Re.itemBg,color:Re.colorPrimary},[`&${Be}-disabled`]:{[`${Be}-item-link`]:{borderColor:Re.colorBorder,color:Re.colorTextDisabled}}},[`${Be}-item`]:{backgroundColor:Re.itemBg,border:`${Re.lineWidth}px ${Re.lineType} ${Re.colorBorder}`,[`&:hover:not(${Be}-item-active)`]:{borderColor:Re.colorPrimary,backgroundColor:Re.itemBg,a:{color:Re.colorPrimary}},"&-active":{borderColor:Re.colorPrimary}}}}},le=Re=>{const{componentCls:Be}=Re;return{[`${Be}:not(${Be}-disabled)`]:{[`${Be}-item`]:Object.assign({},(0,lt.Qy)(Re)),[`${Be}-jump-prev, ${Be}-jump-next`]:{"&:focus-visible":Object.assign({[`${Be}-item-link-icon`]:{opacity:1},[`${Be}-item-ellipsis`]:{opacity:0}},(0,lt.oN)(Re))},[`${Be}-prev, ${Be}-next`]:{[`&:focus-visible ${Be}-item-link`]:Object.assign({},(0,lt.oN)(Re))}}}};var de=(0,Dt.Z)("Pagination",Re=>{const Be=(0,yn.TS)(Re,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Re.marginXXS/2,paginationMiniQuickJumperInputWidth:Re.controlHeightLG*1.1,paginationItemPaddingInline:Re.marginXXS*1.5,paginationEllipsisLetterSpacing:Re.marginXXS/2,paginationSlashMarginInlineStart:Re.marginXXS,paginationSlashMarginInlineEnd:Re.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,at.e5)(Re),(0,at.TM)(Re));return[ve(Be),le(Be),Re.wireframe&&ce(Be)]},Re=>({itemBg:Re.colorBgContainer,itemSize:Re.controlHeight,itemSizeSM:Re.controlHeightSM,itemActiveBg:Re.colorBgContainer,itemLinkBg:Re.colorBgContainer,itemActiveColorDisabled:Re.colorTextDisabled,itemActiveBgDisabled:Re.controlItemBgActiveDisabled,itemInputBg:Re.colorBgContainer,miniOptionsSizeChangerTop:0})),pe=function(Re,Be){var yt={};for(var ut in Re)Object.prototype.hasOwnProperty.call(Re,ut)&&Be.indexOf(ut)<0&&(yt[ut]=Re[ut]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,ut=Object.getOwnPropertySymbols(Re);Qe<ut.length;Qe++)Be.indexOf(ut[Qe])<0&&Object.prototype.propertyIsEnumerable.call(Re,ut[Qe])&&(yt[ut[Qe]]=Re[ut[Qe]]);return yt},Te=Re=>{const{prefixCls:Be,selectPrefixCls:yt,className:ut,rootClassName:Qe,style:St,size:Jt,locale:mt,selectComponentClass:Ft,responsive:nn,showSizeChanger:ht}=Re,Le=pe(Re,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:dt}=(0,Ve.Z)(nn),{getPrefixCls:Pt,direction:_t,pagination:Xt={}}=Ae.useContext(Nt.E_),gn=Pt("pagination",Be),[En,wn]=de(gn),_n=ht!=null?ht:Xt.showSizeChanger,$n=Ae.useMemo(()=>{const jn=Ae.createElement("span",{className:`${gn}-item-ellipsis`},"\u2022\u2022\u2022"),Dr=Ae.createElement("button",{className:`${gn}-item-link`,type:"button",tabIndex:-1},_t==="rtl"?Ae.createElement(ct.Z,null):Ae.createElement(Pe.Z,null)),ei=Ae.createElement("button",{className:`${gn}-item-link`,type:"button",tabIndex:-1},_t==="rtl"?Ae.createElement(Pe.Z,null):Ae.createElement(ct.Z,null)),Fr=Ae.createElement("a",{className:`${gn}-item-link`},Ae.createElement("div",{className:`${gn}-item-container`},_t==="rtl"?Ae.createElement(Me.Z,{className:`${gn}-item-link-icon`}):Ae.createElement(xe,{className:`${gn}-item-link-icon`}),jn)),ai=Ae.createElement("a",{className:`${gn}-item-link`},Ae.createElement("div",{className:`${gn}-item-container`},_t==="rtl"?Ae.createElement(xe,{className:`${gn}-item-link-icon`}):Ae.createElement(Me.Z,{className:`${gn}-item-link-icon`}),jn));return{prevIcon:Dr,nextIcon:ei,jumpPrevIcon:Fr,jumpNextIcon:ai}},[_t,gn]),[Dn]=(0,ye.Z)("Pagination",At.Z),qn=Object.assign(Object.assign({},Dn),mt),fr=(0,Tt.Z)(Jt),br=fr==="small"||!!(dt&&!fr&&nn),Zn=Pt("select",yt),ar=Fe()({[`${gn}-mini`]:br,[`${gn}-rtl`]:_t==="rtl"},Xt==null?void 0:Xt.className,ut,Qe,wn),Cr=Object.assign(Object.assign({},Xt==null?void 0:Xt.style),St);return En(Ae.createElement(wt,Object.assign({},$n,Le,{style:Cr,prefixCls:gn,selectPrefixCls:Zn,className:ar,selectComponentClass:Ft||(br?Qt:Kt),locale:qn,showSizeChanger:_n})))},gt=Te},14478:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return Ye}});var ue=oe(96512),Ae=oe(92310),ke=oe.n(Ae),nt=oe(10228),be=oe(18929),Ee=oe(2738),he=oe(59301),xe=oe(92343),Me=oe(36355),Pe=oe(60324),ct=oe(92806),De=oe(77578),Fe=oe(3113),et=oe(67797),We=oe(9763),je=oe(31724),pt=oe(39722),rt=oe(83116);const kt=st=>{const{componentCls:Ie,iconCls:Mt,antCls:Ge,zIndexPopup:Ot,colorText:wt,colorWarning:At,marginXXS:Nt,marginXS:Tt,fontSize:Ve,fontWeightStrong:ye,colorTextHeading:bt}=st;return{[Ie]:{zIndex:Ot,[`&${Ge}-popover`]:{fontSize:Ve},[`${Ie}-message`]:{marginBottom:Tt,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${Ie}-message-icon ${Mt}`]:{color:At,fontSize:Ve,lineHeight:1,marginInlineEnd:Tt},[`${Ie}-title`]:{fontWeight:ye,color:bt,"&:only-child":{fontWeight:"normal"}},[`${Ie}-description`]:{marginTop:Nt,color:wt}},[`${Ie}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:Tt}}}}};var ft=(0,rt.Z)("Popconfirm",st=>kt(st),st=>{const{zIndexPopupBase:Ie}=st;return{zIndexPopup:Ie+60}},{resetStyle:!1}),it=function(st,Ie){var Mt={};for(var Ge in st)Object.prototype.hasOwnProperty.call(st,Ge)&&Ie.indexOf(Ge)<0&&(Mt[Ge]=st[Ge]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ot=0,Ge=Object.getOwnPropertySymbols(st);Ot<Ge.length;Ot++)Ie.indexOf(Ge[Ot])<0&&Object.prototype.propertyIsEnumerable.call(st,Ge[Ot])&&(Mt[Ge[Ot]]=st[Ge[Ot]]);return Mt};const He=st=>{const{prefixCls:Ie,okButtonProps:Mt,cancelButtonProps:Ge,title:Ot,description:wt,cancelText:At,okText:Nt,okType:Tt="primary",icon:Ve=he.createElement(ue.Z,null),showCancel:ye=!0,close:bt,onConfirm:Qt,onCancel:Kt,onPopupClick:at}=st,{getPrefixCls:lt}=he.useContext(Me.E_),[Dt]=(0,We.Z)("Popconfirm",je.Z.Popconfirm),yn=(0,De.Z)(Ot),$t=(0,De.Z)(wt);return he.createElement("div",{className:`${Ie}-inner-content`,onClick:at},he.createElement("div",{className:`${Ie}-message`},Ve&&he.createElement("span",{className:`${Ie}-message-icon`},Ve),he.createElement("div",{className:`${Ie}-message-text`},yn&&he.createElement("div",{className:ke()(`${Ie}-title`)},yn),$t&&he.createElement("div",{className:`${Ie}-description`},$t))),he.createElement("div",{className:`${Ie}-buttons`},ye&&he.createElement(Fe.ZP,Object.assign({onClick:Kt,size:"small"},Ge),At!=null?At:Dt==null?void 0:Dt.cancelText),he.createElement(ct.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,et.n)(Tt)),Mt),actionFn:Qt,close:bt,prefixCls:lt("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},Nt!=null?Nt:Dt==null?void 0:Dt.okText)))};var Ke=st=>{const{prefixCls:Ie,placement:Mt,className:Ge,style:Ot}=st,wt=it(st,["prefixCls","placement","className","style"]),{getPrefixCls:At}=he.useContext(Me.E_),Nt=At("popconfirm",Ie),[Tt]=ft(Nt);return Tt(he.createElement(pt.ZP,{placement:Mt,className:ke()(Nt,Ge),style:Ot,content:he.createElement(He,Object.assign({prefixCls:Nt},wt))}))},Ue=function(st,Ie){var Mt={};for(var Ge in st)Object.prototype.hasOwnProperty.call(st,Ge)&&Ie.indexOf(Ge)<0&&(Mt[Ge]=st[Ge]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ot=0,Ge=Object.getOwnPropertySymbols(st);Ot<Ge.length;Ot++)Ie.indexOf(Ge[Ot])<0&&Object.prototype.propertyIsEnumerable.call(st,Ge[Ot])&&(Mt[Ge[Ot]]=st[Ge[Ot]]);return Mt};const vt=he.forwardRef((st,Ie)=>{const{prefixCls:Mt,placement:Ge="top",trigger:Ot="click",okType:wt="primary",icon:At=he.createElement(ue.Z,null),children:Nt,overlayClassName:Tt,onOpenChange:Ve,onVisibleChange:ye}=st,bt=Ue(st,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:Qt}=he.useContext(Me.E_),[Kt,at]=(0,be.Z)(!1,{value:st.open,defaultValue:st.defaultOpen}),lt=(ce,le)=>{at(ce,!0),ye==null||ye(ce),Ve==null||Ve(ce,le)},Dt=ce=>{lt(!1,ce)},yn=ce=>{var le;return(le=st.onConfirm)===null||le===void 0?void 0:le.call(void 0,ce)},$t=ce=>{var le;lt(!1,ce),(le=st.onCancel)===null||le===void 0||le.call(void 0,ce)},hn=ce=>{ce.keyCode===nt.Z.ESC&&Kt&<(!1,ce)},tn=ce=>{const{disabled:le=!1}=st;le||lt(ce)},en=Qt("popconfirm",Mt),Gt=ke()(en,Tt),[ve]=ft(en);return ve(he.createElement(Pe.Z,Object.assign({},(0,Ee.Z)(bt,["title"]),{trigger:Ot,placement:Ge,onOpenChange:tn,open:Kt,ref:Ie,overlayClassName:Gt,content:he.createElement(He,Object.assign({okType:wt,icon:At},st,{prefixCls:en,close:Dt,onConfirm:yn,onCancel:$t})),"data-popover-inject":!0}),(0,xe.Tm)(Nt,{onKeyDown:ce=>{var le,de;he.isValidElement(Nt)&&((de=Nt==null?void 0:(le=Nt.props).onKeyDown)===null||de===void 0||de.call(le,ce)),hn(ce)}})))});vt._InternalPanelDoNotUseOrYouWillBeFired=Ke;var Ye=vt},39722:function(fn,Wt,oe){"use strict";oe.d(Wt,{t5:function(){return Pe}});var ue=oe(92310),Ae=oe.n(ue),ke=oe(55477),nt=oe(59301),be=oe(36355),Ee=oe(77578),he=oe(17356),xe=function(De,Fe){var et={};for(var We in De)Object.prototype.hasOwnProperty.call(De,We)&&Fe.indexOf(We)<0&&(et[We]=De[We]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,We=Object.getOwnPropertySymbols(De);je<We.length;je++)Fe.indexOf(We[je])<0&&Object.prototype.propertyIsEnumerable.call(De,We[je])&&(et[We[je]]=De[We[je]]);return et};const Me=(De,Fe,et)=>{if(!(!Fe&&!et))return nt.createElement(nt.Fragment,null,Fe&&nt.createElement("div",{className:`${De}-title`},(0,Ee.Z)(Fe)),nt.createElement("div",{className:`${De}-inner-content`},(0,Ee.Z)(et)))},Pe=De=>{const{hashId:Fe,prefixCls:et,className:We,style:je,placement:pt="top",title:rt,content:kt,children:ft}=De;return nt.createElement("div",{className:Ae()(Fe,et,`${et}-pure`,`${et}-placement-${pt}`,We),style:je},nt.createElement("div",{className:`${et}-arrow`}),nt.createElement(ke.G,Object.assign({},De,{className:Fe,prefixCls:et}),ft||Me(et,rt,kt)))},ct=De=>{const{prefixCls:Fe}=De,et=xe(De,["prefixCls"]),{getPrefixCls:We}=nt.useContext(be.E_),je=We("popover",Fe),[pt,rt]=(0,he.Z)(je);return pt(nt.createElement(Pe,Object.assign({},et,{prefixCls:je,hashId:rt})))};Wt.ZP=ct},60324:function(fn,Wt,oe){"use strict";var ue=oe(92310),Ae=oe.n(ue),ke=oe(59301),nt=oe(77578),be=oe(62892),Ee=oe(36355),he=oe(6848),xe=oe(39722),Me=oe(17356),Pe=function(Fe,et){var We={};for(var je in Fe)Object.prototype.hasOwnProperty.call(Fe,je)&&et.indexOf(je)<0&&(We[je]=Fe[je]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,je=Object.getOwnPropertySymbols(Fe);pt<je.length;pt++)et.indexOf(je[pt])<0&&Object.prototype.propertyIsEnumerable.call(Fe,je[pt])&&(We[je[pt]]=Fe[je[pt]]);return We};const ct=Fe=>{let{title:et,content:We,prefixCls:je}=Fe;return ke.createElement(ke.Fragment,null,et&&ke.createElement("div",{className:`${je}-title`},(0,nt.Z)(et)),ke.createElement("div",{className:`${je}-inner-content`},(0,nt.Z)(We)))},De=ke.forwardRef((Fe,et)=>{const{prefixCls:We,title:je,content:pt,overlayClassName:rt,placement:kt="top",trigger:ft="hover",mouseEnterDelay:it=.1,mouseLeaveDelay:He=.1,overlayStyle:Se={}}=Fe,Ke=Pe(Fe,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:Ue}=ke.useContext(Ee.E_),vt=Ue("popover",We),[Ye,st]=(0,Me.Z)(vt),Ie=Ue(),Mt=Ae()(rt,st);return Ye(ke.createElement(he.Z,Object.assign({placement:kt,trigger:ft,mouseEnterDelay:it,mouseLeaveDelay:He,overlayStyle:Se},Ke,{prefixCls:vt,overlayClassName:Mt,ref:et,overlay:je||pt?ke.createElement(ct,{prefixCls:vt,title:je,content:pt}):null,transitionName:(0,be.m)(Ie,"zoom-big",Ke.transitionName),"data-popover-inject":!0})))});De._InternalPanelDoNotUseOrYouWillBeFired=xe.ZP,Wt.Z=De},17356:function(fn,Wt,oe){"use strict";var ue=oe(17313),Ae=oe(29878),ke=oe(19447),nt=oe(33166),be=oe(83116),Ee=oe(37613);const he=Pe=>{const{componentCls:ct,popoverColor:De,minWidth:Fe,fontWeightStrong:et,popoverPadding:We,boxShadowSecondary:je,colorTextHeading:pt,borderRadiusLG:rt,zIndexPopup:kt,marginXS:ft,colorBgElevated:it,popoverBg:He}=Pe;return[{[ct]:Object.assign(Object.assign({},(0,ue.Wf)(Pe)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:kt,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":it,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${ct}-content`]:{position:"relative"},[`${ct}-inner`]:{backgroundColor:He,backgroundClip:"padding-box",borderRadius:rt,boxShadow:je,padding:We},[`${ct}-title`]:{minWidth:Fe,marginBottom:ft,color:pt,fontWeight:et},[`${ct}-inner-content`]:{color:De}})},(0,ke.ZP)(Pe,{colorBg:"var(--antd-arrow-background-color)"}),{[`${ct}-pure`]:{position:"relative",maxWidth:"none",margin:Pe.sizePopupArrow,display:"inline-block",[`${ct}-content`]:{display:"inline-block"}}}]},xe=Pe=>{const{componentCls:ct}=Pe;return{[ct]:nt.i.map(De=>{const Fe=Pe[`${De}6`];return{[`&${ct}-${De}`]:{"--antd-arrow-background-color":Fe,[`${ct}-inner`]:{backgroundColor:Fe},[`${ct}-arrow`]:{background:"transparent"}}}})}},Me=Pe=>{const{componentCls:ct,lineWidth:De,lineType:Fe,colorSplit:et,paddingSM:We,controlHeight:je,fontSize:pt,lineHeight:rt,padding:kt}=Pe,ft=je-Math.round(pt*rt),it=ft/2,He=ft/2-De,Se=kt;return{[ct]:{[`${ct}-inner`]:{padding:0},[`${ct}-title`]:{margin:0,padding:`${it}px ${Se}px ${He}px`,borderBottom:`${De}px ${Fe} ${et}`},[`${ct}-inner-content`]:{padding:`${We}px ${Se}px`}}}};Wt.Z=(0,be.Z)("Popover",Pe=>{const{colorBgElevated:ct,colorText:De,wireframe:Fe}=Pe,et=(0,Ee.TS)(Pe,{popoverPadding:12,popoverBg:ct,popoverColor:De});return[he(et),xe(et),Fe&&Me(et),(0,Ae._y)(et,"zoom-big")]},Pe=>({width:177,minWidth:177,zIndexPopup:Pe.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},93948:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return ht}});var ue=oe(59301),Ae=oe(29679),ke=oe(40001),nt=oe(19248),be=oe(99267),Ee=oe(92310),he=oe.n(Ee),xe=oe(2738),Me=oe(36355),Pe=oe(60499),ct=oe(85899),De=oe(42244),Fe={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},et=function(){var dt=(0,ue.useRef)([]),Pt=(0,ue.useRef)(null);return(0,ue.useEffect)(function(){var _t=Date.now(),Xt=!1;dt.current.forEach(function(gn){if(gn){Xt=!0;var En=gn.style;En.transitionDuration=".3s, .3s, .3s, .06s",Pt.current&&_t-Pt.current<100&&(En.transitionDuration="0s, 0s")}}),Xt&&(Pt.current=Date.now())}),dt.current},We=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],je=function(dt){var Pt=(0,ct.Z)((0,ct.Z)({},Fe),dt),_t=Pt.className,Xt=Pt.percent,gn=Pt.prefixCls,En=Pt.strokeColor,wn=Pt.strokeLinecap,_n=Pt.strokeWidth,$n=Pt.style,Dn=Pt.trailColor,qn=Pt.trailWidth,fr=Pt.transition,br=(0,De.Z)(Pt,We);delete br.gapPosition;var Zn=Array.isArray(Xt)?Xt:[Xt],ar=Array.isArray(En)?En:[En],Cr=et(),jn=_n/2,Dr=100-_n/2,ei="M ".concat(wn==="round"?jn:0,",").concat(jn,`
|
|
|
L `).concat(wn==="round"?Dr:100,",").concat(jn),Fr="0 0 100 ".concat(_n),ai=0;return ue.createElement("svg",(0,Pe.Z)({className:he()("".concat(gn,"-line"),_t),viewBox:Fr,preserveAspectRatio:"none",style:$n},br),ue.createElement("path",{className:"".concat(gn,"-line-trail"),d:ei,strokeLinecap:wn,stroke:Dn,strokeWidth:qn||_n,fillOpacity:"0"}),Zn.map(function(ti,er){var hr=1;switch(wn){case"round":hr=1-_n/100;break;case"square":hr=1-_n/2/100;break;default:hr=1;break}var zn={strokeDasharray:"".concat(ti*hr,"px, 100px"),strokeDashoffset:"-".concat(ai,"px"),transition:fr||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Hn=ar[er]||ar[ar.length-1];return ai+=ti,ue.createElement("path",{key:er,className:"".concat(gn,"-line-path"),d:ei,strokeLinecap:wn,stroke:Hn,strokeWidth:_n,fillOpacity:"0",ref:function(Bt){Cr[er]=Bt},style:zn})}))},pt=je,rt=oe(43749),kt=oe(72190),ft=oe(47273),it=0,He=(0,ft.Z)();function Se(){var Le;return He?(Le=it,it+=1):Le="TEST_OR_SSR",Le}var Ke=function(Le){var dt=ue.useState(),Pt=(0,kt.Z)(dt,2),_t=Pt[0],Xt=Pt[1];return ue.useEffect(function(){Xt("rc_progress_".concat(Se()))},[]),Le||_t},Ue=function(dt){var Pt=dt.bg,_t=dt.children;return ue.createElement("div",{style:{width:"100%",height:"100%",background:Pt}},_t)};function vt(Le,dt){return Object.keys(Le).map(function(Pt){var _t=parseFloat(Pt),Xt="".concat(Math.floor(_t*dt),"%");return"".concat(Le[Pt]," ").concat(Xt)})}var Ye=ue.forwardRef(function(Le,dt){var Pt=Le.prefixCls,_t=Le.color,Xt=Le.gradientId,gn=Le.radius,En=Le.style,wn=Le.ptg,_n=Le.strokeLinecap,$n=Le.strokeWidth,Dn=Le.size,qn=Le.gapDegree,fr=_t&&(0,rt.Z)(_t)==="object",br=fr?"#FFF":void 0,Zn=Dn/2,ar=ue.createElement("circle",{className:"".concat(Pt,"-circle-path"),r:gn,cx:Zn,cy:Zn,stroke:br,strokeLinecap:_n,strokeWidth:$n,opacity:wn===0?0:1,style:En,ref:dt});if(!fr)return ar;var Cr="".concat(Xt,"-conic"),jn=qn?"".concat(180+qn/2,"deg"):"0deg",Dr=vt(_t,(360-qn)/360),ei=vt(_t,1),Fr="conic-gradient(from ".concat(jn,", ").concat(Dr.join(", "),")"),ai="linear-gradient(to ".concat(qn?"bottom":"top",", ").concat(ei.join(", "),")");return ue.createElement(ue.Fragment,null,ue.createElement("mask",{id:Cr},ar),ue.createElement("foreignObject",{x:0,y:0,width:Dn,height:Dn,mask:"url(#".concat(Cr,")")},ue.createElement(Ue,{bg:ai},ue.createElement(Ue,{bg:Fr}))))}),st=Ye,Ie=100,Mt=function(dt,Pt,_t,Xt,gn,En,wn,_n,$n,Dn){var qn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,fr=_t/100*360*((360-En)/360),br=En===0?0:{bottom:0,top:180,left:90,right:-90}[wn],Zn=(100-Xt)/100*Pt;$n==="round"&&Xt!==100&&(Zn+=Dn/2,Zn>=Pt&&(Zn=Pt-.01));var ar=Ie/2;return{stroke:typeof _n=="string"?_n:void 0,strokeDasharray:"".concat(Pt,"px ").concat(dt),strokeDashoffset:Zn+qn,transform:"rotate(".concat(gn+fr+br,"deg)"),transformOrigin:"".concat(ar,"px ").concat(ar,"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}},Ge=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Ot(Le){var dt=Le!=null?Le:[];return Array.isArray(dt)?dt:[dt]}var wt=function(dt){var Pt=(0,ct.Z)((0,ct.Z)({},Fe),dt),_t=Pt.id,Xt=Pt.prefixCls,gn=Pt.steps,En=Pt.strokeWidth,wn=Pt.trailWidth,_n=Pt.gapDegree,$n=_n===void 0?0:_n,Dn=Pt.gapPosition,qn=Pt.trailColor,fr=Pt.strokeLinecap,br=Pt.style,Zn=Pt.className,ar=Pt.strokeColor,Cr=Pt.percent,jn=(0,De.Z)(Pt,Ge),Dr=Ie/2,ei=Ke(_t),Fr="".concat(ei,"-gradient"),ai=Dr-En/2,ti=Math.PI*2*ai,er=$n>0?90+$n/2:-90,hr=ti*((360-$n)/360),zn=(0,rt.Z)(gn)==="object"?gn:{count:gn,space:2},Hn=zn.count,wr=zn.space,Bt=Ot(Cr),ze=Ot(ar),Xe=ze.find(function(ln){return ln&&(0,rt.Z)(ln)==="object"}),Je=Xe&&(0,rt.Z)(Xe)==="object",qe=Je?"butt":fr,Ct=Mt(ti,hr,0,100,er,$n,Dn,qn,qe,En),Rt=et(),rn=function(){var Cn=0;return Bt.map(function(An,Tn){var Ut=ze[Tn]||ze[ze.length-1],bn=Mt(ti,hr,Cn,An,er,$n,Dn,Ut,qe,En);return Cn+=An,ue.createElement(st,{key:Tn,color:Ut,ptg:An,radius:ai,prefixCls:Xt,gradientId:Fr,style:bn,strokeLinecap:qe,strokeWidth:En,gapDegree:$n,ref:function(Fn){Rt[Tn]=Fn},size:Ie})}).reverse()},Vt=function(){var Cn=Math.round(Hn*(Bt[0]/100)),An=100/Hn,Tn=0;return new Array(Hn).fill(null).map(function(Ut,bn){var Vn=bn<=Cn-1?ze[0]:qn,Fn=Vn&&(0,rt.Z)(Vn)==="object"?"url(#".concat(Fr,")"):void 0,Jn=Mt(ti,hr,Tn,An,er,$n,Dn,Vn,"butt",En,wr);return Tn+=(hr-Jn.strokeDashoffset+wr)*100/hr,ue.createElement("circle",{key:bn,className:"".concat(Xt,"-circle-path"),r:ai,cx:Dr,cy:Dr,stroke:Fn,strokeWidth:En,opacity:1,style:Jn,ref:function(mr){Rt[bn]=mr}})})};return ue.createElement("svg",(0,Pe.Z)({className:he()("".concat(Xt,"-circle"),Zn),viewBox:"0 0 ".concat(Ie," ").concat(Ie),style:br,id:_t,role:"presentation"},jn),!Hn&&ue.createElement("circle",{className:"".concat(Xt,"-circle-trail"),r:ai,cx:Dr,cy:Dr,stroke:qn,strokeLinecap:qe,strokeWidth:wn||En,style:Ct}),Hn?Vt():rn())},At=wt,Nt={Line:pt,Circle:At},Tt=oe(6848),Ve=oe(30071);function ye(Le){return!Le||Le<0?0:Le>100?100:Le}function bt(Le){let{success:dt,successPercent:Pt}=Le,_t=Pt;return dt&&"progress"in dt&&(_t=dt.progress),dt&&"percent"in dt&&(_t=dt.percent),_t}const Qt=Le=>{let{percent:dt,success:Pt,successPercent:_t}=Le;const Xt=ye(bt({success:Pt,successPercent:_t}));return[Xt,ye(ye(dt)-Xt)]},Kt=Le=>{let{success:dt={},strokeColor:Pt}=Le;const{strokeColor:_t}=dt;return[_t||Ve.presetPrimaryColors.green,Pt||null]},at=(Le,dt,Pt)=>{var _t,Xt,gn,En;let wn=-1,_n=-1;if(dt==="step"){const $n=Pt.steps,Dn=Pt.strokeWidth;typeof Le=="string"||typeof Le=="undefined"?(wn=Le==="small"?2:14,_n=Dn!=null?Dn:8):typeof Le=="number"?[wn,_n]=[Le,Le]:[wn=14,_n=8]=Le,wn*=$n}else if(dt==="line"){const $n=Pt==null?void 0:Pt.strokeWidth;typeof Le=="string"||typeof Le=="undefined"?_n=$n||(Le==="small"?6:8):typeof Le=="number"?[wn,_n]=[Le,Le]:[wn=-1,_n=8]=Le}else(dt==="circle"||dt==="dashboard")&&(typeof Le=="string"||typeof Le=="undefined"?[wn,_n]=Le==="small"?[60,60]:[120,120]:typeof Le=="number"?[wn,_n]=[Le,Le]:(wn=(Xt=(_t=Le[0])!==null&&_t!==void 0?_t:Le[1])!==null&&Xt!==void 0?Xt:120,_n=(En=(gn=Le[0])!==null&&gn!==void 0?gn:Le[1])!==null&&En!==void 0?En:120));return[wn,_n]},lt=3,Dt=Le=>lt/Le*100;var $t=Le=>{const{prefixCls:dt,trailColor:Pt=null,strokeLinecap:_t="round",gapPosition:Xt,gapDegree:gn,width:En=120,type:wn,children:_n,success:$n,size:Dn=En}=Le,[qn,fr]=at(Dn,"circle");let{strokeWidth:br}=Le;br===void 0&&(br=Math.max(Dt(qn),6));const Zn={width:qn,height:fr,fontSize:qn*.15+6},ar=ue.useMemo(()=>{if(gn||gn===0)return gn;if(wn==="dashboard")return 75},[gn,wn]),Cr=Xt||wn==="dashboard"&&"bottom"||void 0,jn=Object.prototype.toString.call(Le.strokeColor)==="[object Object]",Dr=Kt({success:$n,strokeColor:Le.strokeColor}),ei=he()(`${dt}-inner`,{[`${dt}-circle-gradient`]:jn}),Fr=ue.createElement(At,{percent:Qt(Le),strokeWidth:br,trailWidth:br,strokeColor:Dr,strokeLinecap:_t,trailColor:Pt,prefixCls:dt,gapDegree:ar,gapPosition:Cr});return ue.createElement("div",{className:ei,style:Zn},qn<=20?ue.createElement(Tt.Z,{title:_n},ue.createElement("span",null,Fr)):ue.createElement(ue.Fragment,null,Fr,_n))},hn=function(Le,dt){var Pt={};for(var _t in Le)Object.prototype.hasOwnProperty.call(Le,_t)&&dt.indexOf(_t)<0&&(Pt[_t]=Le[_t]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xt=0,_t=Object.getOwnPropertySymbols(Le);Xt<_t.length;Xt++)dt.indexOf(_t[Xt])<0&&Object.prototype.propertyIsEnumerable.call(Le,_t[Xt])&&(Pt[_t[Xt]]=Le[_t[Xt]]);return Pt};const tn=Le=>{let dt=[];return Object.keys(Le).forEach(Pt=>{const _t=parseFloat(Pt.replace(/%/g,""));isNaN(_t)||dt.push({key:_t,value:Le[Pt]})}),dt=dt.sort((Pt,_t)=>Pt.key-_t.key),dt.map(Pt=>{let{key:_t,value:Xt}=Pt;return`${Xt} ${_t}%`}).join(", ")},en=(Le,dt)=>{const{from:Pt=Ve.presetPrimaryColors.blue,to:_t=Ve.presetPrimaryColors.blue,direction:Xt=dt==="rtl"?"to left":"to right"}=Le,gn=hn(Le,["from","to","direction"]);if(Object.keys(gn).length!==0){const En=tn(gn);return{backgroundImage:`linear-gradient(${Xt}, ${En})`}}return{backgroundImage:`linear-gradient(${Xt}, ${Pt}, ${_t})`}};var ve=Le=>{const{prefixCls:dt,direction:Pt,percent:_t,size:Xt,strokeWidth:gn,strokeColor:En,strokeLinecap:wn="round",children:_n,trailColor:$n=null,success:Dn}=Le,qn=En&&typeof En!="string"?en(En,Pt):{backgroundColor:En},fr=wn==="square"||wn==="butt"?0:void 0,br={backgroundColor:$n||void 0,borderRadius:fr},Zn=Xt!=null?Xt:[-1,gn||(Xt==="small"?6:8)],[ar,Cr]=at(Zn,"line",{strokeWidth:gn}),jn=Object.assign({width:`${ye(_t)}%`,height:Cr,borderRadius:fr},qn),Dr=bt(Le),ei={width:`${ye(Dr)}%`,height:Cr,borderRadius:fr,backgroundColor:Dn==null?void 0:Dn.strokeColor},Fr={width:ar<0?"100%":ar,height:Cr};return ue.createElement(ue.Fragment,null,ue.createElement("div",{className:`${dt}-outer`,style:Fr},ue.createElement("div",{className:`${dt}-inner`,style:br},ue.createElement("div",{className:`${dt}-bg`,style:jn}),Dr!==void 0?ue.createElement("div",{className:`${dt}-success-bg`,style:ei}):null)),_n)},le=Le=>{const{size:dt,steps:Pt,percent:_t=0,strokeWidth:Xt=8,strokeColor:gn,trailColor:En=null,prefixCls:wn,children:_n}=Le,$n=Math.round(Pt*(_t/100)),Dn=dt==="small"?2:14,qn=dt!=null?dt:[Dn,Xt],[fr,br]=at(qn,"step",{steps:Pt,strokeWidth:Xt}),Zn=fr/Pt,ar=new Array(Pt);for(let Cr=0;Cr<Pt;Cr++){const jn=Array.isArray(gn)?gn[Cr]:gn;ar[Cr]=ue.createElement("div",{key:Cr,className:he()(`${wn}-steps-item`,{[`${wn}-steps-item-active`]:Cr<=$n-1}),style:{backgroundColor:Cr<=$n-1?jn:En,width:Zn,height:br}})}return ue.createElement("div",{className:`${wn}-steps-outer`},ar,_n)},de=oe(36237),pe=oe(17313),ae=oe(83116),Te=oe(37613);const gt=Le=>{const dt=Le?"100%":"-100%";return new de.Keyframes(`antProgress${Le?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${dt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${dt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Re=Le=>{const{componentCls:dt,iconCls:Pt}=Le;return{[dt]:Object.assign(Object.assign({},(0,pe.Wf)(Le)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Le.fontSize,marginInlineEnd:Le.marginXS,marginBottom:Le.marginXS},[`${dt}-outer`]:{display:"inline-block",width:"100%"},[`&${dt}-show-info`]:{[`${dt}-outer`]:{marginInlineEnd:`calc(-2em - ${Le.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Le.paddingXS}px)`}},[`${dt}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Le.remainingColor,borderRadius:Le.lineBorderRadius},[`${dt}-inner:not(${dt}-circle-gradient)`]:{[`${dt}-circle-path`]:{stroke:Le.defaultColor}},[`${dt}-success-bg, ${dt}-bg`]:{position:"relative",backgroundColor:Le.defaultColor,borderRadius:Le.lineBorderRadius,transition:`all ${Le.motionDurationSlow} ${Le.motionEaseInOutCirc}`},[`${dt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Le.colorSuccess},[`${dt}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Le.marginXS,color:Le.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Pt]:{fontSize:Le.fontSize}},[`&${dt}-status-active`]:{[`${dt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Le.colorBgContainer,borderRadius:Le.lineBorderRadius,opacity:0,animationName:gt(),animationDuration:Le.progressActiveMotionDuration,animationTimingFunction:Le.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${dt}-rtl${dt}-status-active`]:{[`${dt}-bg::before`]:{animationName:gt(!0)}},[`&${dt}-status-exception`]:{[`${dt}-bg`]:{backgroundColor:Le.colorError},[`${dt}-text`]:{color:Le.colorError}},[`&${dt}-status-exception ${dt}-inner:not(${dt}-circle-gradient)`]:{[`${dt}-circle-path`]:{stroke:Le.colorError}},[`&${dt}-status-success`]:{[`${dt}-bg`]:{backgroundColor:Le.colorSuccess},[`${dt}-text`]:{color:Le.colorSuccess}},[`&${dt}-status-success ${dt}-inner:not(${dt}-circle-gradient)`]:{[`${dt}-circle-path`]:{stroke:Le.colorSuccess}}})}},Be=Le=>{const{componentCls:dt,iconCls:Pt}=Le;return{[dt]:{[`${dt}-circle-trail`]:{stroke:Le.remainingColor},[`&${dt}-circle ${dt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${dt}-circle ${dt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Le.circleTextColor,fontSize:Le.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Pt]:{fontSize:`${Le.fontSize/Le.fontSizeSM}em`}},[`${dt}-circle&-status-exception`]:{[`${dt}-text`]:{color:Le.colorError}},[`${dt}-circle&-status-success`]:{[`${dt}-text`]:{color:Le.colorSuccess}}},[`${dt}-inline-circle`]:{lineHeight:1,[`${dt}-inner`]:{verticalAlign:"bottom"}}}},yt=Le=>{const{componentCls:dt}=Le;return{[dt]:{[`${dt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Le.progressStepMinWidth,marginInlineEnd:Le.progressStepMarginInlineEnd,backgroundColor:Le.remainingColor,transition:`all ${Le.motionDurationSlow}`,"&-active":{backgroundColor:Le.defaultColor}}}}}},ut=Le=>{const{componentCls:dt,iconCls:Pt}=Le;return{[dt]:{[`${dt}-small&-line, ${dt}-small&-line ${dt}-text ${Pt}`]:{fontSize:Le.fontSizeSM}}}};var Qe=(0,ae.Z)("Progress",Le=>{const dt=Le.marginXXS/2,Pt=(0,Te.TS)(Le,{progressStepMarginInlineEnd:dt,progressStepMinWidth:dt,progressActiveMotionDuration:"2.4s"});return[Re(Pt),Be(Pt),yt(Pt),ut(Pt)]},Le=>({circleTextColor:Le.colorText,defaultColor:Le.colorInfo,remainingColor:Le.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),St=function(Le,dt){var Pt={};for(var _t in Le)Object.prototype.hasOwnProperty.call(Le,_t)&&dt.indexOf(_t)<0&&(Pt[_t]=Le[_t]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xt=0,_t=Object.getOwnPropertySymbols(Le);Xt<_t.length;Xt++)dt.indexOf(_t[Xt])<0&&Object.prototype.propertyIsEnumerable.call(Le,_t[Xt])&&(Pt[_t[Xt]]=Le[_t[Xt]]);return Pt};const Jt=null,mt=["normal","exception","active","success"];var nn=ue.forwardRef((Le,dt)=>{const{prefixCls:Pt,className:_t,rootClassName:Xt,steps:gn,strokeColor:En,percent:wn=0,size:_n="default",showInfo:$n=!0,type:Dn="line",status:qn,format:fr,style:br}=Le,Zn=St(Le,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),ar=ue.useMemo(()=>{var Bt,ze;const Xe=bt(Le);return parseInt(Xe!==void 0?(Bt=Xe!=null?Xe:0)===null||Bt===void 0?void 0:Bt.toString():(ze=wn!=null?wn:0)===null||ze===void 0?void 0:ze.toString(),10)},[wn,Le.success,Le.successPercent]),Cr=ue.useMemo(()=>!mt.includes(qn)&&ar>=100?"success":qn||"normal",[qn,ar]),{getPrefixCls:jn,direction:Dr,progress:ei}=ue.useContext(Me.E_),Fr=jn("progress",Pt),[ai,ti]=Qe(Fr),er=ue.useMemo(()=>{if(!$n)return null;const Bt=bt(Le);let ze;const Xe=fr||(qe=>`${qe}%`),Je=Dn==="line";return fr||Cr!=="exception"&&Cr!=="success"?ze=Xe(ye(wn),ye(Bt)):Cr==="exception"?ze=Je?ue.createElement(nt.Z,null):ue.createElement(be.Z,null):Cr==="success"&&(ze=Je?ue.createElement(Ae.Z,null):ue.createElement(ke.Z,null)),ue.createElement("span",{className:`${Fr}-text`,title:typeof ze=="string"?ze:void 0},ze)},[$n,wn,ar,Cr,Dn,Fr,fr]),hr=Array.isArray(En)?En[0]:En,zn=typeof En=="string"||Array.isArray(En)?En:void 0;let Hn;Dn==="line"?Hn=gn?ue.createElement(le,Object.assign({},Le,{strokeColor:zn,prefixCls:Fr,steps:gn}),er):ue.createElement(ve,Object.assign({},Le,{strokeColor:hr,prefixCls:Fr,direction:Dr}),er):(Dn==="circle"||Dn==="dashboard")&&(Hn=ue.createElement($t,Object.assign({},Le,{strokeColor:hr,prefixCls:Fr,progressStatus:Cr}),er));const wr=he()(Fr,`${Fr}-status-${Cr}`,`${Fr}-${Dn==="dashboard"&&"circle"||gn&&"steps"||Dn}`,{[`${Fr}-inline-circle`]:Dn==="circle"&&at(_n,"circle")[0]<=20,[`${Fr}-show-info`]:$n,[`${Fr}-${_n}`]:typeof _n=="string",[`${Fr}-rtl`]:Dr==="rtl"},ei==null?void 0:ei.className,_t,Xt,ti);return ai(ue.createElement("div",Object.assign({ref:dt,style:Object.assign(Object.assign({},ei==null?void 0:ei.style),br),className:wr,role:"progressbar","aria-valuenow":ar},(0,xe.Z)(Zn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Hn))}),ht=nn},5112:function(fn,Wt,oe){"use strict";oe.d(Wt,{ZP:function(){return Ve}});var ue=oe(92310),Ae=oe.n(ue),ke=oe(18929),nt=oe(26112),be=oe(59301),Ee=oe(36355),he=oe(19716);const xe=be.createContext(null),Me=xe.Provider;var Pe=xe;const ct=be.createContext(null),De=ct.Provider;var Fe=oe(5630),et=oe(8654),We=oe(1684),je=oe(32441),pt=oe(17313),rt=oe(83116),kt=oe(37613);const ft=ye=>{const{componentCls:bt,antCls:Qt}=ye,Kt=`${bt}-group`;return{[Kt]:Object.assign(Object.assign({},(0,pt.Wf)(ye)),{display:"inline-block",fontSize:0,[`&${Kt}-rtl`]:{direction:"rtl"},[`${Qt}-badge ${Qt}-badge-count`]:{zIndex:1},[`> ${Qt}-badge:not(:first-child) > ${Qt}-button-wrapper`]:{borderInlineStart:"none"}})}},it=ye=>{const{componentCls:bt,wrapperMarginInlineEnd:Qt,colorPrimary:Kt,radioSize:at,motionDurationSlow:lt,motionDurationMid:Dt,motionEaseInOutCirc:yn,colorBgContainer:$t,colorBorder:hn,lineWidth:tn,dotSize:en,colorBgContainerDisabled:Gt,colorTextDisabled:ve,paddingXS:ce,dotColorDisabled:le,lineType:de,radioDotDisabledSize:pe,wireframe:ae,colorWhite:Te}=ye,gt=`${bt}-inner`;return{[`${bt}-wrapper`]:Object.assign(Object.assign({},(0,pt.Wf)(ye)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:Qt,cursor:"pointer",[`&${bt}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:ye.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${bt}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${tn}px ${de} ${Kt}`,borderRadius:"50%",visibility:"hidden",content:'""'},[bt]:Object.assign(Object.assign({},(0,pt.Wf)(ye)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${bt}-wrapper:hover &,
|
|
|
&:hover ${gt}`]:{borderColor:Kt},[`${bt}-input:focus-visible + ${gt}`]:Object.assign({},(0,pt.oN)(ye)),[`${bt}:hover::after, ${bt}-wrapper:hover &::after`]:{visibility:"visible"},[`${bt}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:at,height:at,marginBlockStart:at/-2,marginInlineStart:at/-2,backgroundColor:ae?Kt:Te,borderBlockStart:0,borderInlineStart:0,borderRadius:at,transform:"scale(0)",opacity:0,transition:`all ${lt} ${yn}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:at,height:at,backgroundColor:$t,borderColor:hn,borderStyle:"solid",borderWidth:tn,borderRadius:"50%",transition:`all ${Dt}`},[`${bt}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${bt}-checked`]:{[gt]:{borderColor:Kt,backgroundColor:ae?$t:Kt,"&::after":{transform:`scale(${en/at})`,opacity:1,transition:`all ${lt} ${yn}`}}},[`${bt}-disabled`]:{cursor:"not-allowed",[gt]:{backgroundColor:Gt,borderColor:hn,cursor:"not-allowed","&::after":{backgroundColor:le}},[`${bt}-input`]:{cursor:"not-allowed"},[`${bt}-disabled + span`]:{color:ve,cursor:"not-allowed"},[`&${bt}-checked`]:{[gt]:{"&::after":{transform:`scale(${pe/at})`}}}},[`span${bt} + *`]:{paddingInlineStart:ce,paddingInlineEnd:ce}})}},He=ye=>{const{buttonColor:bt,controlHeight:Qt,componentCls:Kt,lineWidth:at,lineType:lt,colorBorder:Dt,motionDurationSlow:yn,motionDurationMid:$t,buttonPaddingInline:hn,fontSize:tn,buttonBg:en,fontSizeLG:Gt,controlHeightLG:ve,controlHeightSM:ce,paddingXS:le,borderRadius:de,borderRadiusSM:pe,borderRadiusLG:ae,buttonCheckedBg:Te,buttonSolidCheckedColor:gt,colorTextDisabled:Re,colorBgContainerDisabled:Be,buttonCheckedBgDisabled:yt,buttonCheckedColorDisabled:ut,colorPrimary:Qe,colorPrimaryHover:St,colorPrimaryActive:Jt,buttonSolidCheckedBg:mt,buttonSolidCheckedHoverBg:Ft,buttonSolidCheckedActiveBg:nn}=ye;return{[`${Kt}-button-wrapper`]:{position:"relative",display:"inline-block",height:Qt,margin:0,paddingInline:hn,paddingBlock:0,color:bt,fontSize:tn,lineHeight:`${Qt-at*2}px`,background:en,border:`${at}px ${lt} ${Dt}`,borderBlockStartWidth:at+.02,borderInlineStartWidth:0,borderInlineEndWidth:at,cursor:"pointer",transition:[`color ${$t}`,`background ${$t}`,`box-shadow ${$t}`].join(","),a:{color:bt},[`> ${Kt}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-at,insetInlineStart:-at,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:at,paddingInline:0,backgroundColor:Dt,transition:`background-color ${yn}`,content:'""'}},"&:first-child":{borderInlineStart:`${at}px ${lt} ${Dt}`,borderStartStartRadius:de,borderEndStartRadius:de},"&:last-child":{borderStartEndRadius:de,borderEndEndRadius:de},"&:first-child:last-child":{borderRadius:de},[`${Kt}-group-large &`]:{height:ve,fontSize:Gt,lineHeight:`${ve-at*2}px`,"&:first-child":{borderStartStartRadius:ae,borderEndStartRadius:ae},"&:last-child":{borderStartEndRadius:ae,borderEndEndRadius:ae}},[`${Kt}-group-small &`]:{height:ce,paddingInline:le-at,paddingBlock:0,lineHeight:`${ce-at*2}px`,"&:first-child":{borderStartStartRadius:pe,borderEndStartRadius:pe},"&:last-child":{borderStartEndRadius:pe,borderEndEndRadius:pe}},"&:hover":{position:"relative",color:Qe},"&:has(:focus-visible)":Object.assign({},(0,pt.oN)(ye)),[`${Kt}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${Kt}-button-wrapper-disabled)`]:{zIndex:1,color:Qe,background:Te,borderColor:Qe,"&::before":{backgroundColor:Qe},"&:first-child":{borderColor:Qe},"&:hover":{color:St,borderColor:St,"&::before":{backgroundColor:St}},"&:active":{color:Jt,borderColor:Jt,"&::before":{backgroundColor:Jt}}},[`${Kt}-group-solid &-checked:not(${Kt}-button-wrapper-disabled)`]:{color:gt,background:mt,borderColor:mt,"&:hover":{color:gt,background:Ft,borderColor:Ft},"&:active":{color:gt,background:nn,borderColor:nn}},"&-disabled":{color:Re,backgroundColor:Be,borderColor:Dt,cursor:"not-allowed","&:first-child, &:hover":{color:Re,backgroundColor:Be,borderColor:Dt}},[`&-disabled${Kt}-button-wrapper-checked`]:{color:ut,backgroundColor:yt,borderColor:Dt,boxShadow:"none"}}}},Se=ye=>ye-4*2;var Ke=(0,rt.Z)("Radio",ye=>{const{controlOutline:bt,controlOutlineWidth:Qt,radioSize:Kt}=ye,at=`0 0 0 ${Qt}px ${bt}`,lt=at,Dt=Se(Kt),yn=(0,kt.TS)(ye,{radioDotDisabledSize:Dt,radioFocusShadow:at,radioButtonFocusShadow:lt});return[ft(yn),it(yn),He(yn)]},ye=>{const{wireframe:bt,padding:Qt,marginXS:Kt,lineWidth:at,fontSizeLG:lt,colorText:Dt,colorBgContainer:yn,colorTextDisabled:$t,controlItemBgActiveDisabled:hn,colorTextLightSolid:tn,colorPrimary:en,colorPrimaryHover:Gt,colorPrimaryActive:ve}=ye,ce=4,le=lt,de=bt?Se(le):le-(ce+at)*2;return{radioSize:le,dotSize:de,dotColorDisabled:$t,buttonSolidCheckedColor:tn,buttonSolidCheckedBg:en,buttonSolidCheckedHoverBg:Gt,buttonSolidCheckedActiveBg:ve,buttonBg:yn,buttonCheckedBg:yn,buttonColor:Dt,buttonCheckedBgDisabled:hn,buttonCheckedColorDisabled:$t,buttonPaddingInline:Qt-at,wrapperMarginInlineEnd:Kt}}),Ue=oe(14088),vt=oe(4572),Ye=function(ye,bt){var Qt={};for(var Kt in ye)Object.prototype.hasOwnProperty.call(ye,Kt)&&bt.indexOf(Kt)<0&&(Qt[Kt]=ye[Kt]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,Kt=Object.getOwnPropertySymbols(ye);at<Kt.length;at++)bt.indexOf(Kt[at])<0&&Object.prototype.propertyIsEnumerable.call(ye,Kt[at])&&(Qt[Kt[at]]=ye[Kt[at]]);return Qt};const st=(ye,bt)=>{var Qt,Kt;const at=be.useContext(Pe),lt=be.useContext(ct),{getPrefixCls:Dt,direction:yn,radio:$t}=be.useContext(Ee.E_),hn=be.useRef(null),tn=(0,et.sQ)(bt,hn),{isFormItemInput:en}=be.useContext(je.aM),Gt=Jt=>{var mt,Ft;(mt=ye.onChange)===null||mt===void 0||mt.call(ye,Jt),(Ft=at==null?void 0:at.onChange)===null||Ft===void 0||Ft.call(at,Jt)},{prefixCls:ve,className:ce,rootClassName:le,children:de,style:pe}=ye,ae=Ye(ye,["prefixCls","className","rootClassName","children","style"]),Te=Dt("radio",ve),gt=((at==null?void 0:at.optionType)||lt)==="button",Re=gt?`${Te}-button`:Te,[Be,yt]=Ke(Te),ut=Object.assign({},ae),Qe=be.useContext(We.Z);at&&(ut.name=at.name,ut.onChange=Gt,ut.checked=ye.value===at.value,ut.disabled=(Qt=ut.disabled)!==null&&Qt!==void 0?Qt:at.disabled),ut.disabled=(Kt=ut.disabled)!==null&&Kt!==void 0?Kt:Qe;const St=Ae()(`${Re}-wrapper`,{[`${Re}-wrapper-checked`]:ut.checked,[`${Re}-wrapper-disabled`]:ut.disabled,[`${Re}-wrapper-rtl`]:yn==="rtl",[`${Re}-wrapper-in-form-item`]:en},$t==null?void 0:$t.className,ce,le,yt);return Be(be.createElement(Ue.Z,{component:"Radio",disabled:ut.disabled},be.createElement("label",{className:St,style:Object.assign(Object.assign({},$t==null?void 0:$t.style),pe),onMouseEnter:ye.onMouseEnter,onMouseLeave:ye.onMouseLeave},be.createElement(Fe.Z,Object.assign({},ut,{className:Ae()(ut.className,!gt&&vt.A),type:"radio",prefixCls:Re,ref:tn})),de!==void 0?be.createElement("span",null,de):null)))};var Mt=be.forwardRef(st);const Ge=be.forwardRef((ye,bt)=>{const{getPrefixCls:Qt,direction:Kt}=be.useContext(Ee.E_),[at,lt]=(0,ke.Z)(ye.defaultValue,{value:ye.value}),Dt=mt=>{const Ft=at,nn=mt.target.value;"value"in ye||lt(nn);const{onChange:ht}=ye;ht&&nn!==Ft&&ht(mt)},{prefixCls:yn,className:$t,rootClassName:hn,options:tn,buttonStyle:en="outline",disabled:Gt,children:ve,size:ce,style:le,id:de,onMouseEnter:pe,onMouseLeave:ae,onFocus:Te,onBlur:gt}=ye,Re=Qt("radio",yn),Be=`${Re}-group`,[yt,ut]=Ke(Re);let Qe=ve;tn&&tn.length>0&&(Qe=tn.map(mt=>typeof mt=="string"||typeof mt=="number"?be.createElement(Mt,{key:mt.toString(),prefixCls:Re,disabled:Gt,value:mt,checked:at===mt},mt):be.createElement(Mt,{key:`radio-group-value-options-${mt.value}`,prefixCls:Re,disabled:mt.disabled||Gt,value:mt.value,checked:at===mt.value,title:mt.title,style:mt.style},mt.label)));const St=(0,he.Z)(ce),Jt=Ae()(Be,`${Be}-${en}`,{[`${Be}-${St}`]:St,[`${Be}-rtl`]:Kt==="rtl"},$t,hn,ut);return yt(be.createElement("div",Object.assign({},(0,nt.Z)(ye,{aria:!0,data:!0}),{className:Jt,style:le,onMouseEnter:pe,onMouseLeave:ae,onFocus:Te,onBlur:gt,id:de,ref:bt}),be.createElement(Me,{value:{onChange:Dt,value:at,disabled:ye.disabled,name:ye.name,optionType:ye.optionType}},Qe)))});var Ot=be.memo(Ge),wt=function(ye,bt){var Qt={};for(var Kt in ye)Object.prototype.hasOwnProperty.call(ye,Kt)&&bt.indexOf(Kt)<0&&(Qt[Kt]=ye[Kt]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,Kt=Object.getOwnPropertySymbols(ye);at<Kt.length;at++)bt.indexOf(Kt[at])<0&&Object.prototype.propertyIsEnumerable.call(ye,Kt[at])&&(Qt[Kt[at]]=ye[Kt[at]]);return Qt};const At=(ye,bt)=>{const{getPrefixCls:Qt}=be.useContext(Ee.E_),{prefixCls:Kt}=ye,at=wt(ye,["prefixCls"]),lt=Qt("radio",Kt);return be.createElement(De,{value:"button"},be.createElement(Mt,Object.assign({prefixCls:lt},at,{type:"radio",ref:bt})))};var Nt=be.forwardRef(At);const Tt=Mt;Tt.Button=Nt,Tt.Group=Ot,Tt.__ANT_RADIO=!0;var Ve=Tt},57809:function(fn,Wt,oe){"use strict";var ue=oe(92310),Ae=oe.n(ue),ke=oe(77861),nt=oe(2738),be=oe(59301),Ee=oe(53487),he=oe(62892),xe=oe(19080),Me=oe(36355),Pe=oe(1684),ct=oe(93891),De=oe(19716),Fe=oe(32441),et=oe(33234),We=oe(14154),je=oe(58582),pt=oe(84443),rt=oe(66339),kt=function(Ke,Ue){var vt={};for(var Ye in Ke)Object.prototype.hasOwnProperty.call(Ke,Ye)&&Ue.indexOf(Ye)<0&&(vt[Ye]=Ke[Ye]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,Ye=Object.getOwnPropertySymbols(Ke);st<Ye.length;st++)Ue.indexOf(Ye[st])<0&&Object.prototype.propertyIsEnumerable.call(Ke,Ye[st])&&(vt[Ye[st]]=Ke[Ye[st]]);return vt};const ft="SECRET_COMBOBOX_MODE_DO_NOT_USE",it=(Ke,Ue)=>{var vt,{prefixCls:Ye,bordered:st=!0,className:Ie,rootClassName:Mt,getPopupContainer:Ge,popupClassName:Ot,dropdownClassName:wt,listHeight:At=256,placement:Nt,listItemHeight:Tt=24,size:Ve,disabled:ye,notFoundContent:bt,status:Qt,builtinPlacements:Kt,dropdownMatchSelectWidth:at,popupMatchSelectWidth:lt,direction:Dt,style:yn,allowClear:$t}=Ke,hn=kt(Ke,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:tn,getPrefixCls:en,renderEmpty:Gt,direction:ve,virtual:ce,popupMatchSelectWidth:le,popupOverflow:de,select:pe}=be.useContext(Me.E_),ae=en("select",Ye),Te=en(),gt=Dt!=null?Dt:ve,{compactSize:Re,compactItemClassnames:Be}=(0,et.ri)(ae,gt),[yt,ut]=(0,We.Z)(ae),Qe=be.useMemo(()=>{const{mode:Cr}=hn;if(Cr!=="combobox")return Cr===ft?"combobox":Cr},[hn.mode]),St=Qe==="multiple"||Qe==="tags",Jt=(0,pt.Z)(hn.suffixIcon,hn.showArrow),mt=(vt=lt!=null?lt:at)!==null&&vt!==void 0?vt:le,{status:Ft,hasFeedback:nn,isFormItemInput:ht,feedbackIcon:Le}=be.useContext(Fe.aM),dt=(0,xe.F)(Ft,Qt);let Pt;bt!==void 0?Pt=bt:Qe==="combobox"?Pt=null:Pt=(Gt==null?void 0:Gt("Select"))||be.createElement(ct.Z,{componentName:"Select"});const{suffixIcon:_t,itemIcon:Xt,removeIcon:gn,clearIcon:En}=(0,rt.Z)(Object.assign(Object.assign({},hn),{multiple:St,hasFeedback:nn,feedbackIcon:Le,showSuffixIcon:Jt,prefixCls:ae,showArrow:hn.showArrow,componentName:"Select"})),wn=$t===!0?{clearIcon:En}:$t,_n=(0,nt.Z)(hn,["suffixIcon","itemIcon"]),$n=Ae()(Ot||wt,{[`${ae}-dropdown-${gt}`]:gt==="rtl"},Mt,ut),Dn=(0,De.Z)(Cr=>{var jn;return(jn=Ve!=null?Ve:Re)!==null&&jn!==void 0?jn:Cr}),qn=be.useContext(Pe.Z),fr=ye!=null?ye:qn,br=Ae()({[`${ae}-lg`]:Dn==="large",[`${ae}-sm`]:Dn==="small",[`${ae}-rtl`]:gt==="rtl",[`${ae}-borderless`]:!st,[`${ae}-in-form-item`]:ht},(0,xe.Z)(ae,dt,nn),Be,pe==null?void 0:pe.className,Ie,Mt,ut),Zn=be.useMemo(()=>Nt!==void 0?Nt:gt==="rtl"?"bottomRight":"bottomLeft",[Nt,gt]),ar=(0,je.Z)(Kt,de);return yt(be.createElement(ke.ZP,Object.assign({ref:Ue,virtual:ce,showSearch:pe==null?void 0:pe.showSearch},_n,{style:Object.assign(Object.assign({},pe==null?void 0:pe.style),yn),dropdownMatchSelectWidth:mt,builtinPlacements:ar,transitionName:(0,he.m)(Te,"slide-up",hn.transitionName),listHeight:At,listItemHeight:Tt,mode:Qe,prefixCls:ae,placement:Zn,direction:gt,suffixIcon:_t,menuItemSelectedIcon:Xt,removeIcon:gn,allowClear:wn,notFoundContent:Pt,className:br,getPopupContainer:Ge||tn,dropdownClassName:$n,disabled:fr})))},He=be.forwardRef(it),Se=(0,Ee.Z)(He);He.SECRET_COMBOBOX_MODE_DO_NOT_USE=ft,He.Option=ke.Wx,He.OptGroup=ke.Xo,He._InternalPanelDoNotUseOrYouWillBeFired=Se,Wt.default=He},14154:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return He}});var ue=oe(17313),Ae=oe(74207),ke=oe(37613),nt=oe(83116),be=oe(13826),Ee=oe(92899);const he=Se=>{const{optionHeight:Ke,optionFontSize:Ue,optionLineHeight:vt,optionPadding:Ye}=Se;return{position:"relative",display:"block",minHeight:Ke,padding:Ye,color:Se.colorText,fontWeight:"normal",fontSize:Ue,lineHeight:vt,boxSizing:"border-box"}};var Me=Se=>{const{antCls:Ke,componentCls:Ue}=Se,vt=`${Ue}-item`,Ye=`&${Ke}-slide-up-enter${Ke}-slide-up-enter-active`,st=`&${Ke}-slide-up-appear${Ke}-slide-up-appear-active`,Ie=`&${Ke}-slide-up-leave${Ke}-slide-up-leave-active`,Mt=`${Ue}-dropdown-placement-`;return[{[`${Ue}-dropdown`]:Object.assign(Object.assign({},(0,ue.Wf)(Se)),{position:"absolute",top:-9999,zIndex:Se.zIndexPopup,boxSizing:"border-box",padding:Se.paddingXXS,overflow:"hidden",fontSize:Se.fontSize,fontVariant:"initial",backgroundColor:Se.colorBgElevated,borderRadius:Se.borderRadiusLG,outline:"none",boxShadow:Se.boxShadowSecondary,[`
|
|
|
${Ye}${Mt}bottomLeft,
|
|
|
${st}${Mt}bottomLeft
|
|
|
`]:{animationName:be.fJ},[`
|
|
|
${Ye}${Mt}topLeft,
|
|
|
${st}${Mt}topLeft,
|
|
|
${Ye}${Mt}topRight,
|
|
|
${st}${Mt}topRight
|
|
|
`]:{animationName:be.Qt},[`${Ie}${Mt}bottomLeft`]:{animationName:be.Uw},[`
|
|
|
${Ie}${Mt}topLeft,
|
|
|
${Ie}${Mt}topRight
|
|
|
`]:{animationName:be.ly},"&-hidden":{display:"none"},[`${vt}`]:Object.assign(Object.assign({},he(Se)),{cursor:"pointer",transition:`background ${Se.motionDurationSlow} ease`,borderRadius:Se.borderRadiusSM,"&-group":{color:Se.colorTextDescription,fontSize:Se.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},ue.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${vt}-option-disabled)`]:{backgroundColor:Se.optionActiveBg},[`&-selected:not(${vt}-option-disabled)`]:{color:Se.optionSelectedColor,fontWeight:Se.optionSelectedFontWeight,backgroundColor:Se.optionSelectedBg,[`${vt}-option-state`]:{color:Se.colorPrimary}},"&-disabled":{[`&${vt}-option-selected`]:{backgroundColor:Se.colorBgContainerDisabled},color:Se.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Se.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,be.oN)(Se,"slide-up"),(0,be.oN)(Se,"slide-down"),(0,Ee.Fm)(Se,"move-up"),(0,Ee.Fm)(Se,"move-down")]};const Pe=2,ct=Se=>{let{controlHeightSM:Ke,controlHeight:Ue,lineWidth:vt}=Se;const Ye=(Ue-Ke)/2-vt,st=Math.ceil(Ye/2);return[Ye,st]};function De(Se,Ke){const{componentCls:Ue,iconCls:vt}=Se,Ye=`${Ue}-selection-overflow`,st=Se.multipleSelectItemHeight,[Ie]=ct(Se),Mt=Ke?`${Ue}-${Ke}`:"";return{[`${Ue}-multiple${Mt}`]:{fontSize:Se.fontSize,[Ye]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Ue}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${Ie-Pe}px ${Pe*2}px`,borderRadius:Se.borderRadius,[`${Ue}-show-search&`]:{cursor:"text"},[`${Ue}-disabled&`]:{background:Se.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Pe}px 0`,lineHeight:`${st}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${Ue}-show-arrow ${Ue}-selector,
|
|
|
&${Ue}-allow-clear ${Ue}-selector
|
|
|
`]:{paddingInlineEnd:Se.fontSizeIcon+Se.controlPaddingHorizontal},[`${Ue}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:st,marginTop:Pe,marginBottom:Pe,lineHeight:`${st-Se.lineWidth*2}px`,background:Se.multipleItemBg,border:`${Se.lineWidth}px ${Se.lineType} ${Se.multipleItemBorderColor}`,borderRadius:Se.borderRadiusSM,cursor:"default",transition:`font-size ${Se.motionDurationSlow}, line-height ${Se.motionDurationSlow}, height ${Se.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Pe*2,paddingInlineStart:Se.paddingXS,paddingInlineEnd:Se.paddingXS/2,[`${Ue}-disabled&`]:{color:Se.multipleItemColorDisabled,borderColor:Se.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Se.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,ue.Ro)()),{display:"inline-flex",alignItems:"center",color:Se.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${vt}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Se.colorIconHover}})},[`${Ye}-item + ${Ye}-item`]:{[`${Ue}-selection-search`]:{marginInlineStart:0}},[`${Ue}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Se.inputPaddingHorizontalBase-Ie,"\n &-input,\n &-mirror\n ":{height:st,fontFamily:Se.fontFamily,lineHeight:`${st}px`,transition:`all ${Se.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Ue}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Se.inputPaddingHorizontalBase,insetInlineEnd:Se.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Se.motionDurationSlow}`}}}}var et=Se=>{const{componentCls:Ke}=Se,Ue=(0,ke.TS)(Se,{controlHeight:Se.controlHeightSM,multipleSelectItemHeight:Se.controlHeightXS,borderRadius:Se.borderRadiusSM,borderRadiusSM:Se.borderRadiusXS}),vt=(0,ke.TS)(Se,{fontSize:Se.fontSizeLG,controlHeight:Se.controlHeightLG,multipleSelectItemHeight:Se.multipleItemHeightLG,borderRadius:Se.borderRadiusLG,borderRadiusSM:Se.borderRadius}),[,Ye]=ct(Se);return[De(Se),De(Ue,"sm"),{[`${Ke}-multiple${Ke}-sm`]:{[`${Ke}-selection-placeholder`]:{insetInline:Se.controlPaddingHorizontalSM-Se.lineWidth},[`${Ke}-selection-search`]:{marginInlineStart:Ye}}},De(vt,"lg")]};function We(Se,Ke){const{componentCls:Ue,inputPaddingHorizontalBase:vt,borderRadius:Ye}=Se,st=Se.controlHeight-Se.lineWidth*2,Ie=Math.ceil(Se.fontSize*1.25),Mt=Ke?`${Ue}-${Ke}`:"";return{[`${Ue}-single${Mt}`]:{fontSize:Se.fontSize,[`${Ue}-selector`]:Object.assign(Object.assign({},(0,ue.Wf)(Se)),{display:"flex",borderRadius:Ye,[`${Ue}-selection-search`]:{position:"absolute",top:0,insetInlineStart:vt,insetInlineEnd:vt,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${Ue}-selection-item,
|
|
|
${Ue}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${st}px`,transition:`all ${Se.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${st}px`}},[`${Ue}-selection-item`]:{position:"relative",userSelect:"none"},[`${Ue}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Ue}-selection-item:after`,`${Ue}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${Ue}-show-arrow ${Ue}-selection-item,
|
|
|
&${Ue}-show-arrow ${Ue}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Ie},[`&${Ue}-open ${Ue}-selection-item`]:{color:Se.colorTextPlaceholder},[`&:not(${Ue}-customize-input)`]:{[`${Ue}-selector`]:{width:"100%",height:Se.controlHeight,padding:`0 ${vt}px`,[`${Ue}-selection-search-input`]:{height:st},"&:after":{lineHeight:`${st}px`}}},[`&${Ue}-customize-input`]:{[`${Ue}-selector`]:{"&:after":{display:"none"},[`${Ue}-selection-search`]:{position:"static",width:"100%"},[`${Ue}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${vt}px`,"&:after":{display:"none"}}}}}}}function je(Se){const{componentCls:Ke}=Se,Ue=Se.controlPaddingHorizontalSM-Se.lineWidth;return[We(Se),We((0,ke.TS)(Se,{controlHeight:Se.controlHeightSM,borderRadius:Se.borderRadiusSM}),"sm"),{[`${Ke}-single${Ke}-sm`]:{[`&:not(${Ke}-customize-input)`]:{[`${Ke}-selection-search`]:{insetInlineStart:Ue,insetInlineEnd:Ue},[`${Ke}-selector`]:{padding:`0 ${Ue}px`},[`&${Ke}-show-arrow ${Ke}-selection-search`]:{insetInlineEnd:Ue+Se.fontSize*1.5},[`
|
|
|
&${Ke}-show-arrow ${Ke}-selection-item,
|
|
|
&${Ke}-show-arrow ${Ke}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Se.fontSize*1.5}}}},We((0,ke.TS)(Se,{controlHeight:Se.singleItemHeightLG,fontSize:Se.fontSizeLG,borderRadius:Se.borderRadiusLG}),"lg")]}const pt=Se=>{const{componentCls:Ke,selectorBg:Ue}=Se;return{position:"relative",backgroundColor:Ue,border:`${Se.lineWidth}px ${Se.lineType} ${Se.colorBorder}`,transition:`all ${Se.motionDurationMid} ${Se.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ke}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Ke}-disabled&`]:{color:Se.colorTextDisabled,background:Se.colorBgContainerDisabled,cursor:"not-allowed",[`${Ke}-multiple&`]:{background:Se.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},rt=function(Se,Ke){let Ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:vt,borderHoverColor:Ye,outlineColor:st,antCls:Ie}=Ke,Mt=Ue?{[`${vt}-selector`]:{borderColor:Ye}}:{};return{[Se]:{[`&:not(${vt}-disabled):not(${vt}-customize-input):not(${Ie}-pagination-size-changer)`]:Object.assign(Object.assign({},Mt),{[`${vt}-focused& ${vt}-selector`]:{borderColor:Ye,boxShadow:`0 0 0 ${Ke.controlOutlineWidth}px ${st}`,outline:0},[`&:hover ${vt}-selector`]:{borderColor:Ye}})}}},kt=Se=>{const{componentCls:Ke}=Se;return{[`${Ke}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},ft=Se=>{const{componentCls:Ke,inputPaddingHorizontalBase:Ue,iconCls:vt}=Se;return{[Ke]:Object.assign(Object.assign({},(0,ue.Wf)(Se)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Ke}-customize-input) ${Ke}-selector`]:Object.assign(Object.assign({},pt(Se)),kt(Se)),[`${Ke}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},ue.vS),[`${Ke}-selection-placeholder`]:Object.assign(Object.assign({},ue.vS),{flex:1,color:Se.colorTextPlaceholder,pointerEvents:"none"}),[`${Ke}-arrow`]:Object.assign(Object.assign({},(0,ue.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ue,height:Se.fontSizeIcon,marginTop:-Se.fontSizeIcon/2,color:Se.colorTextQuaternary,fontSize:Se.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[vt]:{verticalAlign:"top",transition:`transform ${Se.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Ke}-suffix)`]:{pointerEvents:"auto"}},[`${Ke}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Ke}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ue,zIndex:1,display:"inline-block",width:Se.fontSizeIcon,height:Se.fontSizeIcon,marginTop:-Se.fontSizeIcon/2,color:Se.colorTextQuaternary,fontSize:Se.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Se.clearBg,cursor:"pointer",opacity:0,transition:`color ${Se.motionDurationMid} ease, opacity ${Se.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Se.colorTextTertiary}},"&:hover":{[`${Ke}-clear`]:{opacity:1}}}),[`${Ke}-has-feedback`]:{[`${Ke}-clear`]:{insetInlineEnd:Ue+Se.fontSize+Se.paddingXS}}}},it=Se=>{const{componentCls:Ke}=Se;return[{[Ke]:{[`&-borderless ${Ke}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Ke}-in-form-item`]:{width:"100%"}}},ft(Se),je(Se),et(Se),Me(Se),{[`${Ke}-rtl`]:{direction:"rtl"}},rt(Ke,(0,ke.TS)(Se,{borderHoverColor:Se.colorPrimaryHover,outlineColor:Se.controlOutline})),rt(`${Ke}-status-error`,(0,ke.TS)(Se,{borderHoverColor:Se.colorErrorHover,outlineColor:Se.colorErrorOutline}),!0),rt(`${Ke}-status-warning`,(0,ke.TS)(Se,{borderHoverColor:Se.colorWarningHover,outlineColor:Se.colorWarningOutline}),!0),(0,Ae.c)(Se,{borderElCls:`${Ke}-selector`,focusElCls:`${Ke}-focused`})]};var He=(0,nt.Z)("Select",(Se,Ke)=>{let{rootPrefixCls:Ue}=Ke;const vt=(0,ke.TS)(Se,{rootPrefixCls:Ue,inputPaddingHorizontalBase:Se.paddingSM-1,multipleSelectItemHeight:Se.multipleItemHeight});return[it(vt)]},Se=>{const{fontSize:Ke,lineHeight:Ue,controlHeight:vt,controlPaddingHorizontal:Ye,zIndexPopupBase:st,colorText:Ie,fontWeightStrong:Mt,controlItemBgActive:Ge,controlItemBgHover:Ot,colorBgContainer:wt,colorFillSecondary:At,controlHeightLG:Nt,controlHeightSM:Tt,colorBgContainerDisabled:Ve,colorTextDisabled:ye}=Se;return{zIndexPopup:st+50,optionSelectedColor:Ie,optionSelectedFontWeight:Mt,optionSelectedBg:Ge,optionActiveBg:Ot,optionPadding:`${(vt-Ke*Ue)/2}px ${Ye}px`,optionFontSize:Ke,optionLineHeight:Ue,optionHeight:vt,selectorBg:wt,clearBg:wt,singleItemHeightLG:Nt,multipleItemBg:At,multipleItemBorderColor:"transparent",multipleItemHeight:Tt,multipleItemHeightLG:vt,multipleSelectorBgDisabled:Ve,multipleItemColorDisabled:ye,multipleItemBorderColorDisabled:"transparent"}})},58582:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return Ae}});const ue=ke=>{const be={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:ke==="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 Ae(ke,nt){return ke||ue(nt)}},84443:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return ue}});function ue(Ae,ke){return ke!==void 0?ke:Ae!==null}},66339:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return xe}});var ue=oe(40001),Ae=oe(19248),ke=oe(99267),nt=oe(84105),be=oe(58617),Ee=oe(47472),he=oe(59301);function xe(Me){let{suffixIcon:Pe,clearIcon:ct,menuItemSelectedIcon:De,removeIcon:Fe,loading:et,multiple:We,hasFeedback:je,prefixCls:pt,showSuffixIcon:rt,feedbackIcon:kt,showArrow:ft,componentName:it}=Me;const He=ct!=null?ct:he.createElement(Ae.Z,null),Se=Ye=>Pe===null&&!je&&!ft?null:he.createElement(he.Fragment,null,rt!==!1&&Ye,je&&kt);let Ke=null;if(Pe!==void 0)Ke=Se(Pe);else if(et)Ke=Se(he.createElement(be.Z,{spin:!0}));else{const Ye=`${pt}-suffix`;Ke=st=>{let{open:Ie,showSearch:Mt}=st;return Se(Ie&&Mt?he.createElement(Ee.Z,{className:Ye}):he.createElement(nt.Z,{className:Ye}))}}let Ue=null;De!==void 0?Ue=De:We?Ue=he.createElement(ue.Z,null):Ue=null;let vt=null;return Fe!==void 0?vt=Fe:vt=he.createElement(ke.Z,null),{clearIcon:He,suffixIcon:Ke,itemIcon:Ue,removeIcon:vt}}},61621:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return de}});var ue=oe(92310),Ae=oe.n(ue),ke=oe(59301),nt=oe(36355),be=oe(2738),he=pe=>{const{prefixCls:ae,className:Te,style:gt,size:Re,shape:Be}=pe,yt=Ae()({[`${ae}-lg`]:Re==="large",[`${ae}-sm`]:Re==="small"}),ut=Ae()({[`${ae}-circle`]:Be==="circle",[`${ae}-square`]:Be==="square",[`${ae}-round`]:Be==="round"}),Qe=ke.useMemo(()=>typeof Re=="number"?{width:Re,height:Re,lineHeight:`${Re}px`}:{},[Re]);return ke.createElement("span",{className:Ae()(ae,yt,ut,Te),style:Object.assign(Object.assign({},Qe),gt)})},xe=oe(36237),Me=oe(83116),Pe=oe(37613);const ct=new xe.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),De=pe=>({height:pe,lineHeight:`${pe}px`}),Fe=pe=>Object.assign({width:pe},De(pe)),et=pe=>({background:pe.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:ct,animationDuration:pe.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),We=pe=>Object.assign({width:pe*5,minWidth:pe*5},De(pe)),je=pe=>{const{skeletonAvatarCls:ae,gradientFromColor:Te,controlHeight:gt,controlHeightLG:Re,controlHeightSM:Be}=pe;return{[`${ae}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Te},Fe(gt)),[`${ae}${ae}-circle`]:{borderRadius:"50%"},[`${ae}${ae}-lg`]:Object.assign({},Fe(Re)),[`${ae}${ae}-sm`]:Object.assign({},Fe(Be))}},pt=pe=>{const{controlHeight:ae,borderRadiusSM:Te,skeletonInputCls:gt,controlHeightLG:Re,controlHeightSM:Be,gradientFromColor:yt}=pe;return{[`${gt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:yt,borderRadius:Te},We(ae)),[`${gt}-lg`]:Object.assign({},We(Re)),[`${gt}-sm`]:Object.assign({},We(Be))}},rt=pe=>Object.assign({width:pe},De(pe)),kt=pe=>{const{skeletonImageCls:ae,imageSizeBase:Te,gradientFromColor:gt,borderRadiusSM:Re}=pe;return{[`${ae}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:gt,borderRadius:Re},rt(Te*2)),{[`${ae}-path`]:{fill:"#bfbfbf"},[`${ae}-svg`]:Object.assign(Object.assign({},rt(Te)),{maxWidth:Te*4,maxHeight:Te*4}),[`${ae}-svg${ae}-svg-circle`]:{borderRadius:"50%"}}),[`${ae}${ae}-circle`]:{borderRadius:"50%"}}},ft=(pe,ae,Te)=>{const{skeletonButtonCls:gt}=pe;return{[`${Te}${gt}-circle`]:{width:ae,minWidth:ae,borderRadius:"50%"},[`${Te}${gt}-round`]:{borderRadius:ae}}},it=pe=>Object.assign({width:pe*2,minWidth:pe*2},De(pe)),He=pe=>{const{borderRadiusSM:ae,skeletonButtonCls:Te,controlHeight:gt,controlHeightLG:Re,controlHeightSM:Be,gradientFromColor:yt}=pe;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Te}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:yt,borderRadius:ae,width:gt*2,minWidth:gt*2},it(gt))},ft(pe,gt,Te)),{[`${Te}-lg`]:Object.assign({},it(Re))}),ft(pe,Re,`${Te}-lg`)),{[`${Te}-sm`]:Object.assign({},it(Be))}),ft(pe,Be,`${Te}-sm`))},Se=pe=>{const{componentCls:ae,skeletonAvatarCls:Te,skeletonTitleCls:gt,skeletonParagraphCls:Re,skeletonButtonCls:Be,skeletonInputCls:yt,skeletonImageCls:ut,controlHeight:Qe,controlHeightLG:St,controlHeightSM:Jt,gradientFromColor:mt,padding:Ft,marginSM:nn,borderRadius:ht,titleHeight:Le,blockRadius:dt,paragraphLiHeight:Pt,controlHeightXS:_t,paragraphMarginTop:Xt}=pe;return{[`${ae}`]:{display:"table",width:"100%",[`${ae}-header`]:{display:"table-cell",paddingInlineEnd:Ft,verticalAlign:"top",[`${Te}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:mt},Fe(Qe)),[`${Te}-circle`]:{borderRadius:"50%"},[`${Te}-lg`]:Object.assign({},Fe(St)),[`${Te}-sm`]:Object.assign({},Fe(Jt))},[`${ae}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${gt}`]:{width:"100%",height:Le,background:mt,borderRadius:dt,[`+ ${Re}`]:{marginBlockStart:Jt}},[`${Re}`]:{padding:0,"> li":{width:"100%",height:Pt,listStyle:"none",background:mt,borderRadius:dt,"+ li":{marginBlockStart:_t}}},[`${Re}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${ae}-content`]:{[`${gt}, ${Re} > li`]:{borderRadius:ht}}},[`${ae}-with-avatar ${ae}-content`]:{[`${gt}`]:{marginBlockStart:nn,[`+ ${Re}`]:{marginBlockStart:Xt}}},[`${ae}${ae}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},He(pe)),je(pe)),pt(pe)),kt(pe)),[`${ae}${ae}-block`]:{width:"100%",[`${Be}`]:{width:"100%"},[`${yt}`]:{width:"100%"}},[`${ae}${ae}-active`]:{[`
|
|
|
${gt},
|
|
|
${Re} > li,
|
|
|
${Te},
|
|
|
${Be},
|
|
|
${yt},
|
|
|
${ut}
|
|
|
`]:Object.assign({},et(pe))}}};var Ke=(0,Me.Z)("Skeleton",pe=>{const{componentCls:ae}=pe,Te=(0,Pe.TS)(pe,{skeletonAvatarCls:`${ae}-avatar`,skeletonTitleCls:`${ae}-title`,skeletonParagraphCls:`${ae}-paragraph`,skeletonButtonCls:`${ae}-button`,skeletonInputCls:`${ae}-input`,skeletonImageCls:`${ae}-image`,imageSizeBase:pe.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${pe.gradientFromColor} 25%, ${pe.gradientToColor} 37%, ${pe.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Se(Te)]},pe=>{const{colorFillContent:ae,colorFill:Te}=pe,gt=ae,Re=Te;return{color:gt,colorGradientEnd:Re,gradientFromColor:gt,gradientToColor:Re,titleHeight:pe.controlHeight/2,blockRadius:pe.borderRadiusSM,paragraphMarginTop:pe.marginLG+pe.marginXXS,paragraphLiHeight:pe.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),vt=pe=>{const{prefixCls:ae,className:Te,rootClassName:gt,active:Re,shape:Be="circle",size:yt="default"}=pe,{getPrefixCls:ut}=ke.useContext(nt.E_),Qe=ut("skeleton",ae),[St,Jt]=Ke(Qe),mt=(0,be.Z)(pe,["prefixCls","className"]),Ft=Ae()(Qe,`${Qe}-element`,{[`${Qe}-active`]:Re},Te,gt,Jt);return St(ke.createElement("div",{className:Ft},ke.createElement(he,Object.assign({prefixCls:`${Qe}-avatar`,shape:Be,size:yt},mt))))},st=pe=>{const{prefixCls:ae,className:Te,rootClassName:gt,active:Re,block:Be=!1,size:yt="default"}=pe,{getPrefixCls:ut}=ke.useContext(nt.E_),Qe=ut("skeleton",ae),[St,Jt]=Ke(Qe),mt=(0,be.Z)(pe,["prefixCls"]),Ft=Ae()(Qe,`${Qe}-element`,{[`${Qe}-active`]:Re,[`${Qe}-block`]:Be},Te,gt,Jt);return St(ke.createElement("div",{className:Ft},ke.createElement(he,Object.assign({prefixCls:`${Qe}-button`,size:yt},mt))))};const Ie="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var Ge=pe=>{const{prefixCls:ae,className:Te,rootClassName:gt,style:Re,active:Be}=pe,{getPrefixCls:yt}=ke.useContext(nt.E_),ut=yt("skeleton",ae),[Qe,St]=Ke(ut),Jt=Ae()(ut,`${ut}-element`,{[`${ut}-active`]:Be},Te,gt,St);return Qe(ke.createElement("div",{className:Jt},ke.createElement("div",{className:Ae()(`${ut}-image`,Te),style:Re},ke.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${ut}-image-svg`},ke.createElement("path",{d:Ie,className:`${ut}-image-path`})))))},wt=pe=>{const{prefixCls:ae,className:Te,rootClassName:gt,active:Re,block:Be,size:yt="default"}=pe,{getPrefixCls:ut}=ke.useContext(nt.E_),Qe=ut("skeleton",ae),[St,Jt]=Ke(Qe),mt=(0,be.Z)(pe,["prefixCls"]),Ft=Ae()(Qe,`${Qe}-element`,{[`${Qe}-active`]:Re,[`${Qe}-block`]:Be},Te,gt,Jt);return St(ke.createElement("div",{className:Ft},ke.createElement(he,Object.assign({prefixCls:`${Qe}-input`,size:yt},mt))))},At=oe(60499),Nt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},Tt=Nt,Ve=oe(7657),ye=function(ae,Te){return ke.createElement(Ve.Z,(0,At.Z)({},ae,{ref:Te,icon:Tt}))},bt=ke.forwardRef(ye),Qt=bt,at=pe=>{const{prefixCls:ae,className:Te,rootClassName:gt,style:Re,active:Be,children:yt}=pe,{getPrefixCls:ut}=ke.useContext(nt.E_),Qe=ut("skeleton",ae),[St,Jt]=Ke(Qe),mt=Ae()(Qe,`${Qe}-element`,{[`${Qe}-active`]:Be},Jt,Te,gt),Ft=yt!=null?yt:ke.createElement(Qt,null);return St(ke.createElement("div",{className:mt},ke.createElement("div",{className:Ae()(`${Qe}-image`,Te),style:Re},Ft)))},lt=oe(77654),yn=pe=>{const ae=ut=>{const{width:Qe,rows:St=2}=pe;if(Array.isArray(Qe))return Qe[ut];if(St-1===ut)return Qe},{prefixCls:Te,className:gt,style:Re,rows:Be}=pe,yt=(0,lt.Z)(Array(Be)).map((ut,Qe)=>ke.createElement("li",{key:Qe,style:{width:ae(Qe)}}));return ke.createElement("ul",{className:Ae()(Te,gt),style:Re},yt)},hn=pe=>{let{prefixCls:ae,className:Te,width:gt,style:Re}=pe;return ke.createElement("h3",{className:Ae()(ae,Te),style:Object.assign({width:gt},Re)})};function tn(pe){return pe&&typeof pe=="object"?pe:{}}function en(pe,ae){return pe&&!ae?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Gt(pe,ae){return!pe&&ae?{width:"38%"}:pe&&ae?{width:"50%"}:{}}function ve(pe,ae){const Te={};return(!pe||!ae)&&(Te.width="61%"),!pe&&ae?Te.rows=3:Te.rows=2,Te}const ce=pe=>{const{prefixCls:ae,loading:Te,className:gt,rootClassName:Re,style:Be,children:yt,avatar:ut=!1,title:Qe=!0,paragraph:St=!0,active:Jt,round:mt}=pe,{getPrefixCls:Ft,direction:nn,skeleton:ht}=ke.useContext(nt.E_),Le=Ft("skeleton",ae),[dt,Pt]=Ke(Le);if(Te||!("loading"in pe)){const _t=!!ut,Xt=!!Qe,gn=!!St;let En;if(_t){const $n=Object.assign(Object.assign({prefixCls:`${Le}-avatar`},en(Xt,gn)),tn(ut));En=ke.createElement("div",{className:`${Le}-header`},ke.createElement(he,Object.assign({},$n)))}let wn;if(Xt||gn){let $n;if(Xt){const qn=Object.assign(Object.assign({prefixCls:`${Le}-title`},Gt(_t,gn)),tn(Qe));$n=ke.createElement(hn,Object.assign({},qn))}let Dn;if(gn){const qn=Object.assign(Object.assign({prefixCls:`${Le}-paragraph`},ve(_t,Xt)),tn(St));Dn=ke.createElement(yn,Object.assign({},qn))}wn=ke.createElement("div",{className:`${Le}-content`},$n,Dn)}const _n=Ae()(Le,{[`${Le}-with-avatar`]:_t,[`${Le}-active`]:Jt,[`${Le}-rtl`]:nn==="rtl",[`${Le}-round`]:mt},ht==null?void 0:ht.className,gt,Re,Pt);return dt(ke.createElement("div",{className:_n,style:Object.assign(Object.assign({},ht==null?void 0:ht.style),Be)},En,wn))}return typeof yt!="undefined"?yt:null};ce.Button=st,ce.Avatar=vt,ce.Input=wt,ce.Image=Ge,ce.Node=at;var le=ce,de=le},31797:function(fn,Wt,oe){"use strict";oe.d(Wt,{default:function(){return Ke}});var ue=oe(59301),Ae=oe(56762),ke=oe(92343),nt=oe(92310),be=oe.n(nt),Ee=oe(36355),he=oe(61621),Me=Ue=>{const{value:vt,formatter:Ye,precision:st,decimalSeparator:Ie,groupSeparator:Mt="",prefixCls:Ge}=Ue;let Ot;if(typeof Ye=="function")Ot=Ye(vt);else{const wt=String(vt),At=wt.match(/^(-?)(\d*)(\.(\d+))?$/);if(!At||wt==="-")Ot=wt;else{const Nt=At[1];let Tt=At[2]||"0",Ve=At[4]||"";Tt=Tt.replace(/\B(?=(\d{3})+(?!\d))/g,Mt),typeof st=="number"&&(Ve=Ve.padEnd(st,"0").slice(0,st>0?st:0)),Ve&&(Ve=`${Ie}${Ve}`),Ot=[ue.createElement("span",{key:"int",className:`${Ge}-content-value-int`},Nt,Tt),Ve&&ue.createElement("span",{key:"decimal",className:`${Ge}-content-value-decimal`},Ve)]}}return ue.createElement("span",{className:`${Ge}-content-value`},Ot)},Pe=oe(17313),ct=oe(83116),De=oe(37613);const Fe=Ue=>{const{componentCls:vt,marginXXS:Ye,padding:st,colorTextDescription:Ie,titleFontSize:Mt,colorTextHeading:Ge,contentFontSize:Ot,fontFamily:wt}=Ue;return{[`${vt}`]:Object.assign(Object.assign({},(0,Pe.Wf)(Ue)),{[`${vt}-title`]:{marginBottom:Ye,color:Ie,fontSize:Mt},[`${vt}-skeleton`]:{paddingTop:st},[`${vt}-content`]:{color:Ge,fontSize:Ot,fontFamily:wt,[`${vt}-content-value`]:{display:"inline-block",direction:"ltr"},[`${vt}-content-prefix, ${vt}-content-suffix`]:{display:"inline-block"},[`${vt}-content-prefix`]:{marginInlineEnd:Ye},[`${vt}-content-suffix`]:{marginInlineStart:Ye}}})}};var et=(0,ct.Z)("Statistic",Ue=>{const vt=(0,De.TS)(Ue,{});return[Fe(vt)]},Ue=>{const{fontSizeHeading3:vt,fontSize:Ye}=Ue;return{titleFontSize:Ye,contentFontSize:vt}}),je=Ue=>{const{prefixCls:vt,className:Ye,rootClassName:st,style:Ie,valueStyle:Mt,value:Ge=0,title:Ot,valueRender:wt,prefix:At,suffix:Nt,loading:Tt=!1,onMouseEnter:Ve,onMouseLeave:ye,decimalSeparator:bt=".",groupSeparator:Qt=","}=Ue,{getPrefixCls:Kt,direction:at,statistic:lt}=ue.useContext(Ee.E_),Dt=Kt("statistic",vt),[yn,$t]=et(Dt),hn=ue.createElement(Me,Object.assign({decimalSeparator:bt,groupSeparator:Qt,prefixCls:Dt},Ue,{value:Ge})),tn=be()(Dt,{[`${Dt}-rtl`]:at==="rtl"},lt==null?void 0:lt.className,Ye,st,$t);return yn(ue.createElement("div",{className:tn,style:Object.assign(Object.assign({},lt==null?void 0:lt.style),Ie),onMouseEnter:Ve,onMouseLeave:ye},Ot&&ue.createElement("div",{className:`${Dt}-title`},Ot),ue.createElement(he.Z,{paragraph:!1,loading:Tt,className:`${Dt}-skeleton`},ue.createElement("div",{style:Mt,className:`${Dt}-content`},At&&ue.createElement("span",{className:`${Dt}-content-prefix`},At),wt?wt(hn):hn,Nt&&ue.createElement("span",{className:`${Dt}-content-suffix`},Nt)))))};const pt=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function rt(Ue,vt){let Ye=Ue;const st=/\[[^\]]*]/g,Ie=(vt.match(st)||[]).map(wt=>wt.slice(1,-1)),Mt=vt.replace(st,"[]"),Ge=pt.reduce((wt,At)=>{let[Nt,Tt]=At;if(wt.includes(Nt)){const Ve=Math.floor(Ye/Tt);return Ye-=Ve*Tt,wt.replace(new RegExp(`${Nt}+`,"g"),ye=>{const bt=ye.length;return Ve.toString().padStart(bt,"0")})}return wt},Mt);let Ot=0;return Ge.replace(st,()=>{const wt=Ie[Ot];return Ot+=1,wt})}function kt(Ue,vt){const{format:Ye=""}=vt,st=new Date(Ue).getTime(),Ie=Date.now(),Mt=Math.max(st-Ie,0);return rt(Mt,Ye)}const ft=1e3/30;function it(Ue){return new Date(Ue).getTime()}const He=Ue=>{const{value:vt,format:Ye="HH:mm:ss",onChange:st,onFinish:Ie}=Ue,Mt=(0,Ae.Z)(),Ge=ue.useRef(null),Ot=()=>{Ie==null||Ie(),Ge.current&&(clearInterval(Ge.current),Ge.current=null)},wt=()=>{const Tt=it(vt);Tt>=Date.now()&&(Ge.current=setInterval(()=>{Mt(),st==null||st(Tt-Date.now()),Tt<Date.now()&&Ot()},ft))};ue.useEffect(()=>(wt(),()=>{Ge.current&&(clearInterval(Ge.current),Ge.current=null)}),[vt]);const At=(Tt,Ve)=>kt(Tt,Object.assign(Object.assign({},Ve),{format:Ye})),Nt=Tt=>(0,ke.Tm)(Tt,{title:void 0});return ue.createElement(je,Object.assign({},Ue,{valueRender:Nt,formatter:At}))};var Se=ue.memo(He);je.Countdown=Se;var Ke=je},8378:function(fn,Wt){"use strict";const oe=ue=>({[ue.componentCls]:{[`${ue.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${ue.motionDurationMid} ${ue.motionEaseInOut},
|
|
|
opacity ${ue.motionDurationMid} ${ue.motionEaseInOut} !important`}},[`${ue.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${ue.motionDurationMid} ${ue.motionEaseInOut},
|
|
|
opacity ${ue.motionDurationMid} ${ue.motionEaseInOut} !important`}}});Wt.Z=oe},92899:function(fn,Wt,oe){"use strict";oe.d(Wt,{Fm:function(){return De}});var ue=oe(36237),Ae=oe(95406);const ke=new ue.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),nt=new ue.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 ue.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ee=new ue.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),he=new ue.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),xe=new ue.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Me=new ue.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Pe=new ue.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),ct={"move-up":{inKeyframes:Me,outKeyframes:Pe},"move-down":{inKeyframes:ke,outKeyframes:nt},"move-left":{inKeyframes:be,outKeyframes:Ee},"move-right":{inKeyframes:he,outKeyframes:xe}},De=(Fe,et)=>{const{antCls:We}=Fe,je=`${We}-${et}`,{inKeyframes:pt,outKeyframes:rt}=ct[et];return[(0,Ae.R)(je,pt,rt,Fe.motionDurationMid),{[`
|
|
|
${je}-enter,
|
|
|
${je}-appear
|
|
|
`]:{opacity:0,animationTimingFunction:Fe.motionEaseOutCirc},[`${je}-leave`]:{animationTimingFunction:Fe.motionEaseInOutCirc}}]}},13826:function(fn,Wt,oe){"use strict";oe.d(Wt,{Qt:function(){return be},Uw:function(){return nt},fJ:function(){return ke},ly:function(){return Ee},oN:function(){return De}});var ue=oe(36237),Ae=oe(95406);const ke=new ue.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),nt=new ue.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),be=new ue.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Ee=new ue.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),he=new ue.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),xe=new ue.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Me=new ue.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Pe=new ue.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),ct={"slide-up":{inKeyframes:ke,outKeyframes:nt},"slide-down":{inKeyframes:be,outKeyframes:Ee},"slide-left":{inKeyframes:he,outKeyframes:xe},"slide-right":{inKeyframes:Me,outKeyframes:Pe}},De=(Fe,et)=>{const{antCls:We}=Fe,je=`${We}-${et}`,{inKeyframes:pt,outKeyframes:rt}=ct[et];return[(0,Ae.R)(je,pt,rt,Fe.motionDurationMid),{[`
|
|
|
${je}-enter,
|
|
|
${je}-appear
|
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:Fe.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${je}-leave`]:{animationTimingFunction:Fe.motionEaseInQuint}}]}},15969:function(fn,Wt,oe){"use strict";oe.d(Wt,{N:function(){return ue}});const ue=Ae=>({color:Ae.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${Ae.motionDurationSlow}`,"&:focus, &:hover":{color:Ae.colorLinkHover},"&:active":{color:Ae.colorLinkActive}})},78673:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return Mt}});var ue=oe(58617),Ae=oe(92310),ke=oe.n(Ae),nt=oe(60499),be=oe(18642),Ee=oe(72190),he=oe(42244),xe=oe(59301),Me=oe(18929),Pe=oe(10228),ct=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],De=xe.forwardRef(function(Ge,Ot){var wt,At=Ge.prefixCls,Nt=At===void 0?"rc-switch":At,Tt=Ge.className,Ve=Ge.checked,ye=Ge.defaultChecked,bt=Ge.disabled,Qt=Ge.loadingIcon,Kt=Ge.checkedChildren,at=Ge.unCheckedChildren,lt=Ge.onClick,Dt=Ge.onChange,yn=Ge.onKeyDown,$t=(0,he.Z)(Ge,ct),hn=(0,Me.Z)(!1,{value:Ve,defaultValue:ye}),tn=(0,Ee.Z)(hn,2),en=tn[0],Gt=tn[1];function ve(pe,ae){var Te=en;return bt||(Te=pe,Gt(Te),Dt==null||Dt(Te,ae)),Te}function ce(pe){pe.which===Pe.Z.LEFT?ve(!1,pe):pe.which===Pe.Z.RIGHT&&ve(!0,pe),yn==null||yn(pe)}function le(pe){var ae=ve(!en,pe);lt==null||lt(ae,pe)}var de=ke()(Nt,Tt,(wt={},(0,be.Z)(wt,"".concat(Nt,"-checked"),en),(0,be.Z)(wt,"".concat(Nt,"-disabled"),bt),wt));return xe.createElement("button",(0,nt.Z)({},$t,{type:"button",role:"switch","aria-checked":en,disabled:bt,className:de,ref:Ot,onKeyDown:ce,onClick:le}),Qt,xe.createElement("span",{className:"".concat(Nt,"-inner")},xe.createElement("span",{className:"".concat(Nt,"-inner-checked")},Kt),xe.createElement("span",{className:"".concat(Nt,"-inner-unchecked")},at)))});De.displayName="Switch";var Fe=De,et=oe(14088),We=oe(36355),je=oe(1684),pt=oe(19716),rt=oe(64993),kt=oe(17313),ft=oe(83116),it=oe(37613);const He=Ge=>{const{componentCls:Ot,trackHeightSM:wt,trackPadding:At,trackMinWidthSM:Nt,innerMinMarginSM:Tt,innerMaxMarginSM:Ve,handleSizeSM:ye}=Ge,bt=`${Ot}-inner`;return{[Ot]:{[`&${Ot}-small`]:{minWidth:Nt,height:wt,lineHeight:`${wt}px`,[`${Ot}-inner`]:{paddingInlineStart:Ve,paddingInlineEnd:Tt,[`${bt}-checked`]:{marginInlineStart:`calc(-100% + ${ye+At*2}px - ${Ve*2}px)`,marginInlineEnd:`calc(100% - ${ye+At*2}px + ${Ve*2}px)`},[`${bt}-unchecked`]:{marginTop:-wt,marginInlineStart:0,marginInlineEnd:0}},[`${Ot}-handle`]:{width:ye,height:ye},[`${Ot}-loading-icon`]:{top:(ye-Ge.switchLoadingIconSize)/2,fontSize:Ge.switchLoadingIconSize},[`&${Ot}-checked`]:{[`${Ot}-inner`]:{paddingInlineStart:Tt,paddingInlineEnd:Ve,[`${bt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${bt}-unchecked`]:{marginInlineStart:`calc(100% - ${ye+At*2}px + ${Ve*2}px)`,marginInlineEnd:`calc(-100% + ${ye+At*2}px - ${Ve*2}px)`}},[`${Ot}-handle`]:{insetInlineStart:`calc(100% - ${ye+At}px)`}},[`&:not(${Ot}-disabled):active`]:{[`&:not(${Ot}-checked) ${bt}`]:{[`${bt}-unchecked`]:{marginInlineStart:Ge.marginXXS/2,marginInlineEnd:-Ge.marginXXS/2}},[`&${Ot}-checked ${bt}`]:{[`${bt}-checked`]:{marginInlineStart:-Ge.marginXXS/2,marginInlineEnd:Ge.marginXXS/2}}}}}}},Se=Ge=>{const{componentCls:Ot,handleSize:wt}=Ge;return{[Ot]:{[`${Ot}-loading-icon${Ge.iconCls}`]:{position:"relative",top:(wt-Ge.fontSize)/2,color:Ge.switchLoadingIconColor,verticalAlign:"top"},[`&${Ot}-checked ${Ot}-loading-icon`]:{color:Ge.switchColor}}}},Ke=Ge=>{const{componentCls:Ot,motion:wt,trackPadding:At,handleBg:Nt,handleShadow:Tt,handleSize:Ve}=Ge,ye=`${Ot}-handle`;return{[Ot]:{[ye]:{position:"absolute",top:At,insetInlineStart:At,width:Ve,height:Ve,transition:`all ${Ge.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Nt,borderRadius:Ve/2,boxShadow:Tt,transition:`all ${Ge.switchDuration} ease-in-out`,content:'""'}},[`&${Ot}-checked ${ye}`]:{insetInlineStart:`calc(100% - ${Ve+At}px)`},[`&:not(${Ot}-disabled):active`]:wt?{[`${ye}::before`]:{insetInlineEnd:Ge.switchHandleActiveInset,insetInlineStart:0},[`&${Ot}-checked ${ye}::before`]:{insetInlineEnd:0,insetInlineStart:Ge.switchHandleActiveInset}}:{}}}},Ue=Ge=>{const{componentCls:Ot,trackHeight:wt,trackPadding:At,innerMinMargin:Nt,innerMaxMargin:Tt,handleSize:Ve}=Ge,ye=`${Ot}-inner`;return{[Ot]:{[ye]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Tt,paddingInlineEnd:Nt,transition:`padding-inline-start ${Ge.switchDuration} ease-in-out, padding-inline-end ${Ge.switchDuration} ease-in-out`,[`${ye}-checked, ${ye}-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"},[`${ye}-checked`]:{marginInlineStart:`calc(-100% + ${Ve+At*2}px - ${Tt*2}px)`,marginInlineEnd:`calc(100% - ${Ve+At*2}px + ${Tt*2}px)`},[`${ye}-unchecked`]:{marginTop:-wt,marginInlineStart:0,marginInlineEnd:0}},[`&${Ot}-checked ${ye}`]:{paddingInlineStart:Nt,paddingInlineEnd:Tt,[`${ye}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ye}-unchecked`]:{marginInlineStart:`calc(100% - ${Ve+At*2}px + ${Tt*2}px)`,marginInlineEnd:`calc(-100% + ${Ve+At*2}px - ${Tt*2}px)`}},[`&:not(${Ot}-disabled):active`]:{[`&:not(${Ot}-checked) ${ye}`]:{[`${ye}-unchecked`]:{marginInlineStart:At*2,marginInlineEnd:-At*2}},[`&${Ot}-checked ${ye}`]:{[`${ye}-checked`]:{marginInlineStart:-At*2,marginInlineEnd:At*2}}}}}},vt=Ge=>{const{componentCls:Ot,trackHeight:wt,trackMinWidth:At}=Ge;return{[Ot]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,kt.Wf)(Ge)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:At,height:wt,lineHeight:`${wt}px`,verticalAlign:"middle",background:Ge.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Ge.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Ot}-disabled)`]:{background:Ge.colorTextTertiary}}),(0,kt.Qy)(Ge)),{[`&${Ot}-checked`]:{background:Ge.switchColor,[`&:hover:not(${Ot}-disabled)`]:{background:Ge.colorPrimaryHover}},[`&${Ot}-loading, &${Ot}-disabled`]:{cursor:"not-allowed",opacity:Ge.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Ot}-rtl`]:{direction:"rtl"}})}};var Ye=(0,ft.Z)("Switch",Ge=>{const Ot=(0,it.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[vt(Ot),Ue(Ot),Ke(Ot),Se(Ot),He(Ot)]},Ge=>{const{fontSize:Ot,lineHeight:wt,controlHeight:At,colorWhite:Nt}=Ge,Tt=Ot*wt,Ve=At/2,ye=2,bt=Tt-ye*2,Qt=Ve-ye*2;return{trackHeight:Tt,trackHeightSM:Ve,trackMinWidth:bt*2+ye*4,trackMinWidthSM:Qt*2+ye*2,trackPadding:ye,handleBg:Nt,handleSize:bt,handleSizeSM:Qt,handleShadow:`0 2px 4px 0 ${new rt.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:bt/2,innerMaxMargin:bt+ye+ye*2,innerMinMarginSM:Qt/2,innerMaxMarginSM:Qt+ye+ye*2}}),st=function(Ge,Ot){var wt={};for(var At in Ge)Object.prototype.hasOwnProperty.call(Ge,At)&&Ot.indexOf(At)<0&&(wt[At]=Ge[At]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,At=Object.getOwnPropertySymbols(Ge);Nt<At.length;Nt++)Ot.indexOf(At[Nt])<0&&Object.prototype.propertyIsEnumerable.call(Ge,At[Nt])&&(wt[At[Nt]]=Ge[At[Nt]]);return wt};const Ie=xe.forwardRef((Ge,Ot)=>{const{prefixCls:wt,size:At,disabled:Nt,loading:Tt,className:Ve,rootClassName:ye,style:bt}=Ge,Qt=st(Ge,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Kt,direction:at,switch:lt}=xe.useContext(We.E_),Dt=xe.useContext(je.Z),yn=(Nt!=null?Nt:Dt)||Tt,$t=Kt("switch",wt),hn=xe.createElement("div",{className:`${$t}-handle`},Tt&&xe.createElement(ue.Z,{className:`${$t}-loading-icon`})),[tn,en]=Ye($t),Gt=(0,pt.Z)(At),ve=ke()(lt==null?void 0:lt.className,{[`${$t}-small`]:Gt==="small",[`${$t}-loading`]:Tt,[`${$t}-rtl`]:at==="rtl"},Ve,ye,en),ce=Object.assign(Object.assign({},lt==null?void 0:lt.style),bt);return tn(xe.createElement(et.Z,{component:"Switch"},xe.createElement(Fe,Object.assign({},Qt,{prefixCls:$t,className:ve,style:ce,disabled:yn,ref:Ot,loadingIcon:hn}))))});Ie.__ANT_SWITCH=!0;var Mt=Ie},1710:function(fn,Wt,oe){"use strict";oe.d(Wt,{default:function(){return Ju}});var ue={},Ae="rc-table-internal-hook",ke=oe(72190),nt=oe(6089),be=oe(34280),Ee=oe(13697),he=oe(59301),xe=oe(4676);function Me(_e){var Ze=he.createContext(void 0),xt=function(jt){var zt=jt.value,cn=jt.children,sn=he.useRef(zt);sn.current=zt;var an=he.useState(function(){return{getValue:function(){return sn.current},listeners:new Set}}),Mn=(0,ke.Z)(an,1),Nn=Mn[0];return(0,be.Z)(function(){(0,xe.unstable_batchedUpdates)(function(){Nn.listeners.forEach(function(In){In(zt)})})},[zt]),he.createElement(Ze.Provider,{value:Nn},cn)};return{Context:Ze,Provider:xt,defaultValue:_e}}function Pe(_e,Ze){var xt=(0,nt.Z)(typeof Ze=="function"?Ze:function(In){if(Ze===void 0)return In;if(!Array.isArray(Ze))return In[Ze];var nr={};return Ze.forEach(function(Yn){nr[Yn]=In[Yn]}),nr}),Lt=he.useContext(_e==null?void 0:_e.Context),jt=Lt||{},zt=jt.listeners,cn=jt.getValue,sn=he.useRef();sn.current=xt(Lt?cn():_e==null?void 0:_e.defaultValue);var an=he.useState({}),Mn=(0,ke.Z)(an,2),Nn=Mn[1];return(0,be.Z)(function(){if(!Lt)return;function In(nr){var Yn=xt(nr);(0,Ee.Z)(sn.current,Yn,!0)||Nn({})}return zt.add(In),function(){zt.delete(In)}},[Lt]),sn.current}var ct=oe(60499),De=oe(8654);function Fe(){var _e=he.createContext(null);function Ze(){return he.useContext(_e)}function xt(jt,zt){var cn=(0,De.Yr)(jt),sn=function(Mn,Nn){var In=cn?{ref:Nn}:{},nr=he.useRef(0),Yn=he.useRef(Mn),tr=Ze();return tr!==null?he.createElement(jt,(0,ct.Z)({},Mn,In)):((!zt||zt(Yn.current,Mn))&&(nr.current+=1),Yn.current=Mn,he.createElement(_e.Provider,{value:nr.current},he.createElement(jt,(0,ct.Z)({},Mn,In))))};return cn?he.forwardRef(sn):sn}function Lt(jt,zt){var cn=(0,De.Yr)(jt),sn=function(Mn,Nn){var In=cn?{ref:Nn}:{};return Ze(),he.createElement(jt,(0,ct.Z)({},Mn,In))};return cn?he.memo(he.forwardRef(sn),zt):he.memo(sn,zt)}return{makeImmutable:xt,responseImmutable:Lt,useImmutableMark:Ze}}var et=Fe(),We=et.makeImmutable,je=et.responseImmutable,pt=et.useImmutableMark,rt=Fe(),kt=rt.makeImmutable,ft=rt.responseImmutable,it=rt.useImmutableMark,He=Me(),Se=He;function Ke(_e,Ze){var xt=he.useRef(0);xt.current+=1;var Lt=he.useRef(_e),jt=[];Object.keys(_e||{}).map(function(cn){var sn;(_e==null?void 0:_e[cn])!==((sn=Lt.current)===null||sn===void 0?void 0:sn[cn])&&jt.push(cn)}),Lt.current=_e;var zt=he.useRef([]);return jt.length&&(zt.current=jt),he.useDebugValue(xt.current),he.useDebugValue(zt.current.join(", ")),Ze&&console.log("".concat(Ze,":"),xt.current,zt.current),xt.current}var Ue=null,vt=he.memo(function(){var _e=Ke();return he.createElement("h1",null,"Render Times: ",_e)});vt.displayName="RenderBlock";var Ye=oe(43749),st=oe(85899),Ie=oe(18642),Mt=oe(92310),Ge=oe.n(Mt),Ot=oe(80547),wt=oe(97938),At=oe(48736),Nt=he.createContext({renderWithProps:!1}),Tt=Nt,Ve="RC_TABLE_KEY";function ye(_e){return _e==null?[]:Array.isArray(_e)?_e:[_e]}function bt(_e){var Ze=[],xt={};return _e.forEach(function(Lt){for(var jt=Lt||{},zt=jt.key,cn=jt.dataIndex,sn=zt||ye(cn).join("-")||Ve;xt[sn];)sn="".concat(sn,"_next");xt[sn]=!0,Ze.push(sn)}),Ze}function Qt(_e){return _e!=null}function Kt(_e){return _e&&(0,Ye.Z)(_e)==="object"&&!Array.isArray(_e)&&!he.isValidElement(_e)}function at(_e,Ze,xt,Lt,jt,zt){var cn=he.useContext(Tt),sn=it(),an=(0,Ot.Z)(function(){if(Qt(Lt))return[Lt];var Mn=Ze==null||Ze===""?[]:Array.isArray(Ze)?Ze:[Ze],Nn=(0,wt.Z)(_e,Mn),In=Nn,nr=void 0;if(jt){var Yn=jt(Nn,_e,xt);Kt(Yn)?(In=Yn.children,nr=Yn.props,cn.renderWithProps=!0):In=Yn}return[In,nr]},[sn,_e,Lt,Ze,jt,xt],function(Mn,Nn){if(zt){var In=(0,ke.Z)(Mn,2),nr=In[1],Yn=(0,ke.Z)(Nn,2),tr=Yn[1];return zt(tr,nr)}return cn.renderWithProps?!0:!(0,Ee.Z)(Mn,Nn,!0)});return an}function lt(_e,Ze,xt,Lt){var jt=_e+Ze-1;return _e<=Lt&&jt>=xt}function Dt(_e,Ze){return Pe(Se,function(xt){var Lt=lt(_e,Ze||1,xt.hoverStartRow,xt.hoverEndRow);return[Lt,xt.onHover]})}var yn=function(Ze){var xt=Ze.ellipsis,Lt=Ze.rowType,jt=Ze.children,zt,cn=xt===!0?{showTitle:!0}:xt;return cn&&(cn.showTitle||Lt==="header")&&(typeof jt=="string"||typeof jt=="number"?zt=jt.toString():he.isValidElement(jt)&&typeof jt.props.children=="string"&&(zt=jt.props.children)),zt};function $t(_e){var Ze,xt,Lt,jt,zt,cn,sn,an,Mn=_e.component,Nn=_e.children,In=_e.ellipsis,nr=_e.scope,Yn=_e.prefixCls,tr=_e.className,_r=_e.align,Sr=_e.record,Rr=_e.render,Mr=_e.dataIndex,Yr=_e.renderIndex,Ei=_e.shouldCellUpdate,Ai=_e.index,ui=_e.rowType,zi=_e.colSpan,Yi=_e.rowSpan,ni=_e.fixLeft,yi=_e.fixRight,ii=_e.firstFixLeft,gr=_e.lastFixLeft,oi=_e.firstFixRight,_i=_e.lastFixRight,aa=_e.appendNode,Oi=_e.additionalProps,$r=Oi===void 0?{}:Oi,Ui=_e.isSticky,Xi="".concat(Yn,"-cell"),Ea=Pe(Se,["supportSticky","allColumnsFixedLeft"]),ba=Ea.supportSticky,oo=Ea.allColumnsFixedLeft,Ya=at(Sr,Mr,Yr,Nn,Rr,Ei),Gi=(0,ke.Z)(Ya,2),So=Gi[0],da=Gi[1],ro={},Xa=typeof ni=="number"&&ba,Do=typeof yi=="number"&&ba;Xa&&(ro.position="sticky",ro.left=ni),Do&&(ro.position="sticky",ro.right=yi);var Pi=(Ze=(xt=(Lt=da==null?void 0:da.colSpan)!==null&&Lt!==void 0?Lt:$r.colSpan)!==null&&xt!==void 0?xt:zi)!==null&&Ze!==void 0?Ze:1,Ii=(jt=(zt=(cn=da==null?void 0:da.rowSpan)!==null&&cn!==void 0?cn:$r.rowSpan)!==null&&zt!==void 0?zt:Yi)!==null&&jt!==void 0?jt:1,Di=Dt(Ai,Ii),Si=(0,ke.Z)(Di,2),xa=Si[0],Mi=Si[1],Vi=function(Eo){var Zo;Sr&&Mi(Ai,Ai+Ii-1),$r==null||(Zo=$r.onMouseEnter)===null||Zo===void 0||Zo.call($r,Eo)},fa=function(Eo){var Zo;Sr&&Mi(-1,-1),$r==null||(Zo=$r.onMouseLeave)===null||Zo===void 0||Zo.call($r,Eo)};if(Pi===0||Ii===0)return null;var ua=(sn=$r.title)!==null&&sn!==void 0?sn:yn({rowType:ui,ellipsis:In,children:So}),Jo=Ge()(Xi,tr,(an={},(0,Ie.Z)(an,"".concat(Xi,"-fix-left"),Xa&&ba),(0,Ie.Z)(an,"".concat(Xi,"-fix-left-first"),ii&&ba),(0,Ie.Z)(an,"".concat(Xi,"-fix-left-last"),gr&&ba),(0,Ie.Z)(an,"".concat(Xi,"-fix-left-all"),gr&&oo&&ba),(0,Ie.Z)(an,"".concat(Xi,"-fix-right"),Do&&ba),(0,Ie.Z)(an,"".concat(Xi,"-fix-right-first"),oi&&ba),(0,Ie.Z)(an,"".concat(Xi,"-fix-right-last"),_i&&ba),(0,Ie.Z)(an,"".concat(Xi,"-ellipsis"),In),(0,Ie.Z)(an,"".concat(Xi,"-with-append"),aa),(0,Ie.Z)(an,"".concat(Xi,"-fix-sticky"),(Xa||Do)&&Ui&&ba),(0,Ie.Z)(an,"".concat(Xi,"-row-hover"),!da&&xa),an),$r.className,da==null?void 0:da.className),Lo={};_r&&(Lo.textAlign=_r);var Hs=(0,st.Z)((0,st.Z)((0,st.Z)((0,st.Z)({},ro),$r.style),Lo),da==null?void 0:da.style),Co=So;return(0,Ye.Z)(Co)==="object"&&!Array.isArray(Co)&&!he.isValidElement(Co)&&(Co=null),In&&(gr||oi)&&(Co=he.createElement("span",{className:"".concat(Xi,"-content")},Co)),he.createElement(Mn,(0,ct.Z)({},da,$r,{className:Jo,style:Hs,title:ua,scope:nr,onMouseEnter:Vi,onMouseLeave:fa,colSpan:Pi!==1?Pi:null,rowSpan:Ii!==1?Ii:null}),aa,Co)}var hn=he.memo($t);function tn(_e,Ze,xt,Lt,jt,zt){var cn=xt[_e]||{},sn=xt[Ze]||{},an,Mn;cn.fixed==="left"?an=Lt.left[jt==="rtl"?Ze:_e]:sn.fixed==="right"&&(Mn=Lt.right[jt==="rtl"?_e:Ze]);var Nn=!1,In=!1,nr=!1,Yn=!1,tr=xt[Ze+1],_r=xt[_e-1],Sr=!(zt!=null&&zt.children);if(jt==="rtl"){if(an!==void 0){var Rr=_r&&_r.fixed==="left";Yn=!Rr&&Sr}else if(Mn!==void 0){var Mr=tr&&tr.fixed==="right";nr=!Mr&&Sr}}else if(an!==void 0){var Yr=tr&&tr.fixed==="left";Nn=!Yr&&Sr}else if(Mn!==void 0){var Ei=_r&&_r.fixed==="right";In=!Ei&&Sr}return{fixLeft:an,fixRight:Mn,lastFixLeft:Nn,firstFixRight:In,lastFixRight:nr,firstFixLeft:Yn,isSticky:Lt.isSticky}}var en=he.createContext({}),Gt=en;function ve(_e){var Ze=_e.className,xt=_e.index,Lt=_e.children,jt=_e.colSpan,zt=jt===void 0?1:jt,cn=_e.rowSpan,sn=_e.align,an=Pe(Se,["prefixCls","direction"]),Mn=an.prefixCls,Nn=an.direction,In=he.useContext(Gt),nr=In.scrollColumnIndex,Yn=In.stickyOffsets,tr=In.flattenColumns,_r=In.columns,Sr=xt+zt-1,Rr=Sr+1===nr?zt+1:zt,Mr=tn(xt,xt+Rr-1,tr,Yn,Nn,_r==null?void 0:_r[xt]);return he.createElement(hn,(0,ct.Z)({className:Ze,index:xt,component:"td",prefixCls:Mn,record:null,dataIndex:null,align:sn,colSpan:Rr,rowSpan:cn,render:function(){return Lt}},Mr))}var ce=oe(42244),le=["children"];function de(_e){var Ze=_e.children,xt=(0,ce.Z)(_e,le);return he.createElement("tr",xt,Ze)}function pe(_e){var Ze=_e.children;return Ze}pe.Row=de,pe.Cell=ve;var ae=pe;function Te(_e){var Ze=_e.children,xt=_e.stickyOffsets,Lt=_e.flattenColumns,jt=_e.columns,zt=Pe(Se,"prefixCls"),cn=Lt.length-1,sn=Lt[cn],an=he.useMemo(function(){return{stickyOffsets:xt,flattenColumns:Lt,scrollColumnIndex:sn!=null&&sn.scrollbar?cn:null,columns:jt}},[sn,Lt,cn,xt,jt]);return he.createElement(Gt.Provider,{value:an},he.createElement("tfoot",{className:"".concat(zt,"-summary")},Ze))}var gt=ft(Te),Re=ae,Be=oe(70425),yt=oe(29301),ut=oe(29194),Qe=oe(24514),St=oe(75152),Jt=oe(26112);function mt(_e,Ze,xt,Lt,jt,zt,cn){_e.push({record:Ze,indent:xt,index:cn});var sn=zt(Ze),an=jt==null?void 0:jt.has(sn);if(Ze&&Array.isArray(Ze[Lt])&&an)for(var Mn=0;Mn<Ze[Lt].length;Mn+=1)mt(_e,Ze[Lt][Mn],xt+1,Lt,jt,zt,Mn)}function Ft(_e,Ze,xt,Lt){var jt=he.useMemo(function(){if(xt!=null&&xt.size){for(var zt=[],cn=0;cn<(_e==null?void 0:_e.length);cn+=1){var sn=_e[cn];mt(zt,sn,0,Ze,xt,Lt,cn)}return zt}return _e==null?void 0:_e.map(function(an,Mn){return{record:an,indent:0,index:Mn}})},[_e,Ze,xt,Lt]);return jt}function nn(_e){var Ze=_e.prefixCls,xt=_e.children,Lt=_e.component,jt=_e.cellComponent,zt=_e.className,cn=_e.expanded,sn=_e.colSpan,an=_e.isEmpty,Mn=Pe(Se,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Nn=Mn.scrollbarSize,In=Mn.fixHeader,nr=Mn.fixColumn,Yn=Mn.componentWidth,tr=Mn.horizonScroll,_r=xt;return(an?tr&&Yn:nr)&&(_r=he.createElement("div",{style:{width:Yn-(In?Nn:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Ze,"-expanded-row-fixed")},_r)),he.createElement(Lt,{className:zt,style:{display:cn?null:"none"}},he.createElement(hn,{component:jt,prefixCls:Ze,colSpan:sn},_r))}var ht=nn;function Le(_e,Ze,xt,Lt){var jt=Pe(Se,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),zt=jt.flattenColumns,cn=jt.expandableType,sn=jt.expandedKeys,an=jt.childrenColumnName,Mn=jt.onTriggerExpand,Nn=jt.rowExpandable,In=jt.onRow,nr=jt.expandRowByClick,Yn=jt.rowClassName,tr=cn==="nest",_r=cn==="row"&&(!Nn||Nn(_e)),Sr=_r||tr,Rr=sn&&sn.has(Ze),Mr=an&&_e&&_e[an],Yr=(0,Be.useEvent)(Mn),Ei=In==null?void 0:In(_e,xt),Ai=Ei==null?void 0:Ei.onClick,ui=function(yi){nr&&Sr&&Mn(_e,yi);for(var ii=arguments.length,gr=new Array(ii>1?ii-1:0),oi=1;oi<ii;oi++)gr[oi-1]=arguments[oi];Ai==null||Ai.apply(void 0,[yi].concat(gr))},zi;typeof Yn=="string"?zi=Yn:typeof Yn=="function"&&(zi=Yn(_e,xt,Lt));var Yi=bt(zt);return(0,st.Z)((0,st.Z)({},jt),{},{columnsKey:Yi,nestExpandable:tr,expanded:Rr,hasNestChildren:Mr,record:_e,onTriggerExpand:Yr,rowSupportExpand:_r,expandable:Sr,rowProps:(0,st.Z)((0,st.Z)({},Ei),{},{className:Ge()(zi,Ei==null?void 0:Ei.className),onClick:ui})})}function dt(_e,Ze,xt,Lt,jt){var zt=_e.record,cn=_e.prefixCls,sn=_e.columnsKey,an=_e.fixedInfoList,Mn=_e.expandIconColumnIndex,Nn=_e.nestExpandable,In=_e.indentSize,nr=_e.expandIcon,Yn=_e.expanded,tr=_e.hasNestChildren,_r=_e.onTriggerExpand,Sr=sn[xt],Rr=an[xt],Mr;xt===(Mn||0)&&Nn&&(Mr=he.createElement(he.Fragment,null,he.createElement("span",{style:{paddingLeft:"".concat(In*Lt,"px")},className:"".concat(cn,"-row-indent indent-level-").concat(Lt)}),nr({prefixCls:cn,expanded:Yn,expandable:tr,record:zt,onExpand:_r})));var Yr;return Ze.onCell&&(Yr=Ze.onCell(zt,jt)),{key:Sr,fixedInfo:Rr,appendCellNode:Mr,additionalCellProps:Yr||{}}}function Pt(_e){var Ze=_e.className,xt=_e.style,Lt=_e.record,jt=_e.index,zt=_e.renderIndex,cn=_e.rowKey,sn=_e.indent,an=sn===void 0?0:sn,Mn=_e.rowComponent,Nn=_e.cellComponent,In=_e.scopeCellComponent,nr=Le(Lt,cn,jt,an),Yn=nr.prefixCls,tr=nr.flattenColumns,_r=nr.expandedRowClassName,Sr=nr.expandedRowRender,Rr=nr.rowProps,Mr=nr.expanded,Yr=nr.rowSupportExpand,Ei=he.useState(!1),Ai=(0,ke.Z)(Ei,2),ui=Ai[0],zi=Ai[1];he.useEffect(function(){Mr&&zi(!0)},[Mr]);var Yi=he.createElement(Mn,(0,ct.Z)({},Rr,{"data-row-key":cn,className:Ge()(Ze,"".concat(Yn,"-row"),"".concat(Yn,"-row-level-").concat(an),Rr==null?void 0:Rr.className),style:(0,st.Z)((0,st.Z)({},xt),Rr==null?void 0:Rr.style)}),tr.map(function(gr,oi){var _i=gr.render,aa=gr.dataIndex,Oi=gr.className,$r=dt(nr,gr,oi,an,jt),Ui=$r.key,Xi=$r.fixedInfo,Ea=$r.appendCellNode,ba=$r.additionalCellProps;return he.createElement(hn,(0,ct.Z)({className:Oi,ellipsis:gr.ellipsis,align:gr.align,scope:gr.rowScope,component:gr.rowScope?In:Nn,prefixCls:Yn,key:Ui,record:Lt,index:jt,renderIndex:zt,dataIndex:aa,render:_i,shouldCellUpdate:gr.shouldCellUpdate},Xi,{appendNode:Ea,additionalProps:ba}))})),ni;if(Yr&&(ui||Mr)){var yi=Sr(Lt,jt,an+1,Mr),ii=_r&&_r(Lt,jt,an);ni=he.createElement(ht,{expanded:Mr,className:Ge()("".concat(Yn,"-expanded-row"),"".concat(Yn,"-expanded-row-level-").concat(an+1),ii),prefixCls:Yn,component:Mn,cellComponent:Nn,colSpan:tr.length,isEmpty:!1},yi)}return he.createElement(he.Fragment,null,Yi,ni)}Pt.displayName="BodyRow";var _t=ft(Pt);function Xt(_e){var Ze=_e.columnKey,xt=_e.onColumnResize,Lt=he.useRef();return he.useEffect(function(){Lt.current&&xt(Ze,Lt.current.offsetWidth)},[]),he.createElement(yt.Z,{data:Ze},he.createElement("td",{ref:Lt,style:{padding:0,border:0,height:0}},he.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function gn(_e){var Ze=_e.prefixCls,xt=_e.columnsKey,Lt=_e.onColumnResize;return he.createElement("tr",{"aria-hidden":"true",className:"".concat(Ze,"-measure-row"),style:{height:0,fontSize:0}},he.createElement(yt.Z.Collection,{onBatchResize:function(zt){zt.forEach(function(cn){var sn=cn.data,an=cn.size;Lt(sn,an.offsetWidth)})}},xt.map(function(jt){return he.createElement(Xt,{key:jt,columnKey:jt,onColumnResize:Lt})})))}function En(_e){var Ze=_e.data,xt=_e.measureColumnWidth,Lt=Pe(Se,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),jt=Lt.prefixCls,zt=Lt.getComponent,cn=Lt.onColumnResize,sn=Lt.flattenColumns,an=Lt.getRowKey,Mn=Lt.expandedKeys,Nn=Lt.childrenColumnName,In=Lt.emptyNode,nr=Ft(Ze,Nn,Mn,an),Yn=he.useRef({renderWithProps:!1}),tr=zt(["body","wrapper"],"tbody"),_r=zt(["body","row"],"tr"),Sr=zt(["body","cell"],"td"),Rr=zt(["body","cell"],"th"),Mr;Ze.length?Mr=nr.map(function(Ei,Ai){var ui=Ei.record,zi=Ei.indent,Yi=Ei.index,ni=an(ui,Ai);return he.createElement(_t,{key:ni,rowKey:ni,record:ui,index:Ai,renderIndex:Yi,rowComponent:_r,cellComponent:Sr,scopeCellComponent:Rr,getRowKey:an,indent:zi})}):Mr=he.createElement(ht,{expanded:!0,className:"".concat(jt,"-placeholder"),prefixCls:jt,component:_r,cellComponent:Sr,colSpan:sn.length,isEmpty:!0},In);var Yr=bt(sn);return he.createElement(Tt.Provider,{value:Yn.current},he.createElement(tr,{className:"".concat(jt,"-tbody")},xt&&he.createElement(gn,{prefixCls:jt,columnsKey:Yr,onColumnResize:cn}),Mr))}En.displayName="Body";var wn=ft(En),_n=["expandable"],$n="RC_TABLE_INTERNAL_COL_DEFINE";function Dn(_e){var Ze=_e.expandable,xt=(0,ce.Z)(_e,_n),Lt;return"expandable"in _e?Lt=(0,st.Z)((0,st.Z)({},xt),Ze):Lt=xt,Lt.showExpandColumn===!1&&(Lt.expandIconColumnIndex=-1),Lt}var qn=["columnType"];function fr(_e){for(var Ze=_e.colWidths,xt=_e.columns,Lt=_e.columCount,jt=[],zt=Lt||xt.length,cn=!1,sn=zt-1;sn>=0;sn-=1){var an=Ze[sn],Mn=xt&&xt[sn],Nn=Mn&&Mn[$n];if(an||Nn||cn){var In=Nn||{},nr=In.columnType,Yn=(0,ce.Z)(In,qn);jt.unshift(he.createElement("col",(0,ct.Z)({key:sn,style:{width:an}},Yn))),cn=!0}}return he.createElement("colgroup",null,jt)}var br=fr,Zn=oe(77654),ar=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Cr(_e,Ze){return(0,he.useMemo)(function(){for(var xt=[],Lt=0;Lt<Ze;Lt+=1){var jt=_e[Lt];if(jt!==void 0)xt[Lt]=jt;else return null}return xt},[_e.join("_"),Ze])}var jn=he.forwardRef(function(_e,Ze){var xt=_e.className,Lt=_e.noData,jt=_e.columns,zt=_e.flattenColumns,cn=_e.colWidths,sn=_e.columCount,an=_e.stickyOffsets,Mn=_e.direction,Nn=_e.fixHeader,In=_e.stickyTopOffset,nr=_e.stickyBottomOffset,Yn=_e.stickyClassName,tr=_e.onScroll,_r=_e.maxContentScroll,Sr=_e.children,Rr=(0,ce.Z)(_e,ar),Mr=Pe(Se,["prefixCls","scrollbarSize","isSticky"]),Yr=Mr.prefixCls,Ei=Mr.scrollbarSize,Ai=Mr.isSticky,ui=Ai&&!Nn?0:Ei,zi=he.useRef(null),Yi=he.useCallback(function(Oi){(0,De.mH)(Ze,Oi),(0,De.mH)(zi,Oi)},[]);he.useEffect(function(){var Oi;function $r(Ui){var Xi=Ui,Ea=Xi.currentTarget,ba=Xi.deltaX;ba&&(tr({currentTarget:Ea,scrollLeft:Ea.scrollLeft+ba}),Ui.preventDefault())}return(Oi=zi.current)===null||Oi===void 0||Oi.addEventListener("wheel",$r),function(){var Ui;(Ui=zi.current)===null||Ui===void 0||Ui.removeEventListener("wheel",$r)}},[]);var ni=he.useMemo(function(){return zt.every(function(Oi){return Oi.width})},[zt]),yi=zt[zt.length-1],ii={fixed:yi?yi.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Yr,"-cell-scrollbar")}}},gr=(0,he.useMemo)(function(){return ui?[].concat((0,Zn.Z)(jt),[ii]):jt},[ui,jt]),oi=(0,he.useMemo)(function(){return ui?[].concat((0,Zn.Z)(zt),[ii]):zt},[ui,zt]),_i=(0,he.useMemo)(function(){var Oi=an.right,$r=an.left;return(0,st.Z)((0,st.Z)({},an),{},{left:Mn==="rtl"?[].concat((0,Zn.Z)($r.map(function(Ui){return Ui+ui})),[0]):$r,right:Mn==="rtl"?Oi:[].concat((0,Zn.Z)(Oi.map(function(Ui){return Ui+ui})),[0]),isSticky:Ai})},[ui,an,Ai]),aa=Cr(cn,sn);return he.createElement("div",{style:(0,st.Z)({overflow:"hidden"},Ai?{top:In,bottom:nr}:{}),ref:Yi,className:Ge()(xt,(0,Ie.Z)({},Yn,!!Yn))},he.createElement("table",{style:{tableLayout:"fixed",visibility:Lt||aa?null:"hidden"}},(!Lt||!_r||ni)&&he.createElement(br,{colWidths:aa?[].concat((0,Zn.Z)(aa),[ui]):[],columCount:sn+1,columns:oi}),Sr((0,st.Z)((0,st.Z)({},Rr),{},{stickyOffsets:_i,columns:gr,flattenColumns:oi}))))});jn.displayName="FixedHolder";var Dr=he.memo(jn);function ei(_e){var Ze=_e.cells,xt=_e.stickyOffsets,Lt=_e.flattenColumns,jt=_e.rowComponent,zt=_e.cellComponent,cn=_e.tdCellComponent,sn=_e.onHeaderRow,an=_e.index,Mn=Pe(Se,["prefixCls","direction"]),Nn=Mn.prefixCls,In=Mn.direction,nr;sn&&(nr=sn(Ze.map(function(tr){return tr.column}),an));var Yn=bt(Ze.map(function(tr){return tr.column}));return he.createElement(jt,nr,Ze.map(function(tr,_r){var Sr=tr.column,Rr=tn(tr.colStart,tr.colEnd,Lt,xt,In,Sr),Mr;return Sr&&Sr.onHeaderCell&&(Mr=tr.column.onHeaderCell(Sr)),he.createElement(hn,(0,ct.Z)({},tr,{scope:Sr.title?tr.colSpan>1?"colgroup":"col":null,ellipsis:Sr.ellipsis,align:Sr.align,component:Sr.title?zt:cn,prefixCls:Nn,key:Yn[_r]},Rr,{additionalProps:Mr,rowType:"header"}))}))}ei.displayName="HeaderRow";var Fr=ei;function ai(_e){var Ze=[];function xt(cn,sn){var an=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ze[an]=Ze[an]||[];var Mn=sn,Nn=cn.filter(Boolean).map(function(In){var nr={key:In.key,className:In.className||"",children:In.title,column:In,colStart:Mn},Yn=1,tr=In.children;return tr&&tr.length>0&&(Yn=xt(tr,Mn,an+1).reduce(function(_r,Sr){return _r+Sr},0),nr.hasSubColumns=!0),"colSpan"in In&&(Yn=In.colSpan),"rowSpan"in In&&(nr.rowSpan=In.rowSpan),nr.colSpan=Yn,nr.colEnd=nr.colStart+Yn-1,Ze[an].push(nr),Mn+=Yn,Yn});return Nn}xt(_e,0);for(var Lt=Ze.length,jt=function(sn){Ze[sn].forEach(function(an){!("rowSpan"in an)&&!an.hasSubColumns&&(an.rowSpan=Lt-sn)})},zt=0;zt<Lt;zt+=1)jt(zt);return Ze}function ti(_e){var Ze=_e.stickyOffsets,xt=_e.columns,Lt=_e.flattenColumns,jt=_e.onHeaderRow,zt=Pe(Se,["prefixCls","getComponent"]),cn=zt.prefixCls,sn=zt.getComponent,an=he.useMemo(function(){return ai(xt)},[xt]),Mn=sn(["header","wrapper"],"thead"),Nn=sn(["header","row"],"tr"),In=sn(["header","cell"],"th"),nr=sn(["header","cell"],"td");return he.createElement(Mn,{className:"".concat(cn,"-thead")},an.map(function(Yn,tr){var _r=he.createElement(Fr,{key:tr,flattenColumns:Lt,cells:Yn,stickyOffsets:Ze,rowComponent:Nn,cellComponent:In,tdCellComponent:nr,onHeaderRow:jt,index:tr});return _r}))}var er=ft(ti),hr=oe(11592);function zn(_e){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Ze=="number"?Ze:Ze.endsWith("%")?_e*parseFloat(Ze)/100:null}function Hn(_e,Ze){return he.useMemo(function(){if(Ze&&Ze>0){var xt=0,Lt=0;_e.forEach(function(Mn){var Nn=zn(Ze,Mn.width);Nn?xt+=Nn:Lt+=1});var jt=Ze-xt,zt=Lt,cn=jt/Lt,sn=0,an=_e.map(function(Mn){var Nn=(0,st.Z)({},Mn),In=zn(Ze,Nn.width);if(In)Nn.width=In;else{var nr=Math.floor(cn);Nn.width=zt===1?jt:nr,jt-=nr,zt-=1}return sn+=Nn.width,Nn});return[an,sn]}return[_e,Ze]},[_e,Ze])}var wr=["children"],Bt=["fixed"];function ze(_e){return(0,hr.Z)(_e).filter(function(Ze){return he.isValidElement(Ze)}).map(function(Ze){var xt=Ze.key,Lt=Ze.props,jt=Lt.children,zt=(0,ce.Z)(Lt,wr),cn=(0,st.Z)({key:xt},zt);return jt&&(cn.children=ze(jt)),cn})}function Xe(_e){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return _e.filter(function(xt){return xt&&(0,Ye.Z)(xt)==="object"}).reduce(function(xt,Lt,jt){var zt=Lt.fixed,cn=zt===!0?"left":zt,sn="".concat(Ze,"-").concat(jt),an=Lt.children;return an&&an.length>0?[].concat((0,Zn.Z)(xt),(0,Zn.Z)(Xe(an,sn).map(function(Mn){return(0,st.Z)({fixed:cn},Mn)}))):[].concat((0,Zn.Z)(xt),[(0,st.Z)((0,st.Z)({key:sn},Lt),{},{fixed:cn})])},[])}function Je(_e){for(var Ze=!0,xt=0;xt<_e.length;xt+=1){var Lt=_e[xt];if(Ze&&Lt.fixed!=="left")Ze=!1;else if(!Ze&&Lt.fixed==="left"){warning(!1,"Index ".concat(xt-1," of `columns` missing `fixed='left'` prop."));break}}for(var jt=!0,zt=_e.length-1;zt>=0;zt-=1){var cn=_e[zt];if(jt&&cn.fixed!=="right")jt=!1;else if(!jt&&cn.fixed==="right"){warning(!1,"Index ".concat(zt+1," of `columns` missing `fixed='right'` prop."));break}}}function qe(_e){return _e.map(function(Ze){var xt=Ze.fixed,Lt=(0,ce.Z)(Ze,Bt),jt=xt;return xt==="left"?jt="right":xt==="right"&&(jt="left"),(0,st.Z)({fixed:jt},Lt)})}function Ct(_e,Ze){var xt=_e.prefixCls,Lt=_e.columns,jt=_e.children,zt=_e.expandable,cn=_e.expandedKeys,sn=_e.columnTitle,an=_e.getRowKey,Mn=_e.onTriggerExpand,Nn=_e.expandIcon,In=_e.rowExpandable,nr=_e.expandIconColumnIndex,Yn=_e.direction,tr=_e.expandRowByClick,_r=_e.columnWidth,Sr=_e.fixed,Rr=_e.scrollWidth,Mr=he.useMemo(function(){return Lt||ze(jt)},[Lt,jt]),Yr=he.useMemo(function(){if(zt){var yi,ii=Mr.slice();if(!ii.includes(ue)){var gr=nr||0;gr>=0&&ii.splice(gr,0,ue)}var oi=ii.indexOf(ue);ii=ii.filter(function($r,Ui){return $r!==ue||Ui===oi});var _i=Mr[oi],aa;(Sr==="left"||Sr)&&!nr?aa="left":(Sr==="right"||Sr)&&nr===Mr.length?aa="right":aa=_i?_i.fixed:null;var Oi=(yi={},(0,Ie.Z)(yi,$n,{className:"".concat(xt,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Ie.Z)(yi,"title",sn),(0,Ie.Z)(yi,"fixed",aa),(0,Ie.Z)(yi,"className","".concat(xt,"-row-expand-icon-cell")),(0,Ie.Z)(yi,"width",_r),(0,Ie.Z)(yi,"render",function(Ui,Xi,Ea){var ba=an(Xi,Ea),oo=cn.has(ba),Ya=In?In(Xi):!0,Gi=Nn({prefixCls:xt,expanded:oo,expandable:Ya,record:Xi,onExpand:Mn});return tr?he.createElement("span",{onClick:function(da){return da.stopPropagation()}},Gi):Gi}),yi);return ii.map(function($r){return $r===ue?Oi:$r})}return Mr.filter(function($r){return $r!==ue})},[zt,Mr,an,cn,Nn,Yn]),Ei=he.useMemo(function(){var yi=Yr;return Ze&&(yi=Ze(yi)),yi.length||(yi=[{render:function(){return null}}]),yi},[Ze,Yr,Yn]),Ai=he.useMemo(function(){return Yn==="rtl"?qe(Xe(Ei)):Xe(Ei)},[Ei,Yn,Rr]),ui=Hn(Ai,Rr),zi=(0,ke.Z)(ui,2),Yi=zi[0],ni=zi[1];return[Ei,Yi,ni]}var Rt=Ct;function rn(_e){var Ze,xt=_e.prefixCls,Lt=_e.record,jt=_e.onExpand,zt=_e.expanded,cn=_e.expandable,sn="".concat(xt,"-row-expand-icon");if(!cn)return he.createElement("span",{className:Ge()(sn,"".concat(xt,"-row-spaced"))});var an=function(Nn){jt(Lt,Nn),Nn.stopPropagation()};return he.createElement("span",{className:Ge()(sn,(Ze={},(0,Ie.Z)(Ze,"".concat(xt,"-row-expanded"),zt),(0,Ie.Z)(Ze,"".concat(xt,"-row-collapsed"),!zt),Ze)),onClick:an})}function Vt(_e,Ze,xt){var Lt=[];function jt(zt){(zt||[]).forEach(function(cn,sn){Lt.push(Ze(cn,sn)),jt(cn[xt])})}return jt(_e),Lt}function ln(_e,Ze,xt){var Lt=Dn(_e),jt=Lt.expandIcon,zt=Lt.expandedRowKeys,cn=Lt.defaultExpandedRowKeys,sn=Lt.defaultExpandAllRows,an=Lt.expandedRowRender,Mn=Lt.onExpand,Nn=Lt.onExpandedRowsChange,In=Lt.childrenColumnName,nr=jt||rn,Yn=In||"children",tr=he.useMemo(function(){return an?"row":_e.expandable&&_e.internalHooks===Ae&&_e.expandable.__PARENT_RENDER_ICON__||Ze.some(function(Ai){return Ai&&(0,Ye.Z)(Ai)==="object"&&Ai[Yn]})?"nest":!1},[!!an,Ze]),_r=he.useState(function(){return cn||(sn?Vt(Ze,xt,Yn):[])}),Sr=(0,ke.Z)(_r,2),Rr=Sr[0],Mr=Sr[1],Yr=he.useMemo(function(){return new Set(zt||Rr||[])},[zt,Rr]),Ei=he.useCallback(function(Ai){var ui=xt(Ai,Ze.indexOf(Ai)),zi,Yi=Yr.has(ui);Yi?(Yr.delete(ui),zi=(0,Zn.Z)(Yr)):zi=[].concat((0,Zn.Z)(Yr),[ui]),Mr(zi),Mn&&Mn(!Yi,Ai),Nn&&Nn(zi)},[xt,Yr,Ze,Mn,Nn]);return[Lt,tr,Yr,nr,Yn,Ei]}function Cn(_e,Ze,xt,Lt){var jt=_e.map(function(zt,cn){return tn(cn,cn,_e,Ze,xt,Lt==null?void 0:Lt[cn])});return(0,Ot.Z)(function(){return jt},[jt],function(zt,cn){return!(0,Ee.Z)(zt,cn)})}function An(_e){var Ze=(0,he.useRef)(_e),xt=(0,he.useState)({}),Lt=(0,ke.Z)(xt,2),jt=Lt[1],zt=(0,he.useRef)(null),cn=(0,he.useRef)([]);function sn(an){cn.current.push(an);var Mn=Promise.resolve();zt.current=Mn,Mn.then(function(){if(zt.current===Mn){var Nn=cn.current,In=Ze.current;cn.current=[],Nn.forEach(function(nr){Ze.current=nr(Ze.current)}),zt.current=null,In!==Ze.current&&jt({})}})}return(0,he.useEffect)(function(){return function(){zt.current=null}},[]),[Ze.current,sn]}function Tn(_e){var Ze=(0,he.useRef)(_e||null),xt=(0,he.useRef)();function Lt(){window.clearTimeout(xt.current)}function jt(cn){Ze.current=cn,Lt(),xt.current=window.setTimeout(function(){Ze.current=null,xt.current=void 0},100)}function zt(){return Ze.current}return(0,he.useEffect)(function(){return Lt},[]),[jt,zt]}function Ut(){var _e=he.useState(-1),Ze=(0,ke.Z)(_e,2),xt=Ze[0],Lt=Ze[1],jt=he.useState(-1),zt=(0,ke.Z)(jt,2),cn=zt[0],sn=zt[1],an=he.useCallback(function(Mn,Nn){Lt(Mn),sn(Nn)},[]);return[xt,cn,an]}var bn=oe(47273),Vn=(0,bn.Z)()?window:null;function Fn(_e,Ze){var xt=(0,Ye.Z)(_e)==="object"?_e:{},Lt=xt.offsetHeader,jt=Lt===void 0?0:Lt,zt=xt.offsetSummary,cn=zt===void 0?0:zt,sn=xt.offsetScroll,an=sn===void 0?0:sn,Mn=xt.getContainer,Nn=Mn===void 0?function(){return Vn}:Mn,In=Nn()||Vn;return he.useMemo(function(){var nr=!!_e;return{isSticky:nr,stickyClassName:nr?"".concat(Ze,"-sticky-holder"):"",offsetHeader:jt,offsetSummary:cn,offsetScroll:an,container:In}},[an,jt,cn,Ze,In])}function Jn(_e,Ze,xt){var Lt=(0,he.useMemo)(function(){for(var jt=[],zt=[],cn=0,sn=0,an=0;an<Ze;an+=1)if(xt==="rtl"){zt[an]=sn,sn+=_e[an]||0;var Mn=Ze-an-1;jt[Mn]=cn,cn+=_e[Mn]||0}else{jt[an]=cn,cn+=_e[an]||0;var Nn=Ze-an-1;zt[Nn]=sn,sn+=_e[Nn]||0}return{left:jt,right:zt}},[_e,Ze,xt]);return Lt}var Wn=Jn;function mr(_e){var Ze=_e.className,xt=_e.children;return he.createElement("div",{className:Ze},xt)}var Bn=mr,rr=oe(8224),It=oe(55468),on=function(Ze,xt){var Lt,jt,zt=Ze.scrollBodyRef,cn=Ze.onScroll,sn=Ze.offsetScroll,an=Ze.container,Mn=Pe(Se,"prefixCls"),Nn=((Lt=zt.current)===null||Lt===void 0?void 0:Lt.scrollWidth)||0,In=((jt=zt.current)===null||jt===void 0?void 0:jt.clientWidth)||0,nr=Nn&&In*(In/Nn),Yn=he.useRef(),tr=An({scrollLeft:0,isHiddenScrollBar:!1}),_r=(0,ke.Z)(tr,2),Sr=_r[0],Rr=_r[1],Mr=he.useRef({delta:0,x:0}),Yr=he.useState(!1),Ei=(0,ke.Z)(Yr,2),Ai=Ei[0],ui=Ei[1],zi=function(){ui(!1)},Yi=function(oi){oi.persist(),Mr.current.delta=oi.pageX-Sr.scrollLeft,Mr.current.x=0,ui(!0),oi.preventDefault()},ni=function(oi){var _i,aa=oi||((_i=window)===null||_i===void 0?void 0:_i.event),Oi=aa.buttons;if(!Ai||Oi===0){Ai&&ui(!1);return}var $r=Mr.current.x+oi.pageX-Mr.current.x-Mr.current.delta;$r<=0&&($r=0),$r+nr>=In&&($r=In-nr),cn({scrollLeft:$r/In*(Nn+2)}),Mr.current.x=oi.pageX},yi=function(){if(zt.current){var oi=(0,It.os)(zt.current).top,_i=oi+zt.current.offsetHeight,aa=an===window?document.documentElement.scrollTop+window.innerHeight:(0,It.os)(an).top+an.clientHeight;_i-(0,St.Z)()<=aa||oi>=aa-sn?Rr(function(Oi){return(0,st.Z)((0,st.Z)({},Oi),{},{isHiddenScrollBar:!0})}):Rr(function(Oi){return(0,st.Z)((0,st.Z)({},Oi),{},{isHiddenScrollBar:!1})})}},ii=function(oi){Rr(function(_i){return(0,st.Z)((0,st.Z)({},_i),{},{scrollLeft:oi/Nn*In||0})})};return he.useImperativeHandle(xt,function(){return{setScrollLeft:ii}}),he.useEffect(function(){var gr=(0,rr.Z)(document.body,"mouseup",zi,!1),oi=(0,rr.Z)(document.body,"mousemove",ni,!1);return yi(),function(){gr.remove(),oi.remove()}},[nr,Ai]),he.useEffect(function(){var gr=(0,rr.Z)(an,"scroll",yi,!1),oi=(0,rr.Z)(window,"resize",yi,!1);return function(){gr.remove(),oi.remove()}},[an]),he.useEffect(function(){Sr.isHiddenScrollBar||Rr(function(gr){var oi=zt.current;return oi?(0,st.Z)((0,st.Z)({},gr),{},{scrollLeft:oi.scrollLeft/oi.scrollWidth*oi.clientWidth}):gr})},[Sr.isHiddenScrollBar]),Nn<=In||!nr||Sr.isHiddenScrollBar?null:he.createElement("div",{style:{height:(0,St.Z)(),width:In,bottom:sn},className:"".concat(Mn,"-sticky-scroll")},he.createElement("div",{onMouseDown:Yi,ref:Yn,className:Ge()("".concat(Mn,"-sticky-scroll-bar"),(0,Ie.Z)({},"".concat(Mn,"-sticky-scroll-bar-active"),Ai)),style:{width:"".concat(nr,"px"),transform:"translate3d(".concat(Sr.scrollLeft,"px, 0, 0)")}}))},un=he.forwardRef(on);function xn(_e){return null}var dn=xn;function vn(_e){return null}var pn=vn,On="rc-table",Rn=[],Gn={};function Er(){return"No Data"}function Hr(_e){var Ze,xt=(0,st.Z)({rowKey:"key",prefixCls:On,emptyText:Er},_e),Lt=xt.prefixCls,jt=xt.className,zt=xt.rowClassName,cn=xt.style,sn=xt.data,an=xt.rowKey,Mn=xt.scroll,Nn=xt.tableLayout,In=xt.direction,nr=xt.title,Yn=xt.footer,tr=xt.summary,_r=xt.caption,Sr=xt.id,Rr=xt.showHeader,Mr=xt.components,Yr=xt.emptyText,Ei=xt.onRow,Ai=xt.onHeaderRow,ui=xt.internalHooks,zi=xt.transformColumns,Yi=xt.internalRefs,ni=xt.tailor,yi=xt.sticky,ii=sn||Rn,gr=!!ii.length,oi=ui===Ae,_i=he.useCallback(function(Ca,La){return(0,wt.Z)(Mr,Ca)||La},[Mr]),aa=he.useMemo(function(){return typeof an=="function"?an:function(Ca){var La=Ca&&Ca[an];return La}},[an]),Oi=_i(["body"]),$r=Ut(),Ui=(0,ke.Z)($r,3),Xi=Ui[0],Ea=Ui[1],ba=Ui[2],oo=ln(xt,ii,aa),Ya=(0,ke.Z)(oo,6),Gi=Ya[0],So=Ya[1],da=Ya[2],ro=Ya[3],Xa=Ya[4],Do=Ya[5],Pi=Mn==null?void 0:Mn.x,Ii=he.useState(0),Di=(0,ke.Z)(Ii,2),Si=Di[0],xa=Di[1],Mi=Rt((0,st.Z)((0,st.Z)((0,st.Z)({},xt),Gi),{},{expandable:!!Gi.expandedRowRender,columnTitle:Gi.columnTitle,expandedKeys:da,getRowKey:aa,onTriggerExpand:Do,expandIcon:ro,expandIconColumnIndex:Gi.expandIconColumnIndex,direction:In,scrollWidth:oi&&ni&&typeof Pi=="number"?Pi:null}),oi?zi:null),Vi=(0,ke.Z)(Mi,3),fa=Vi[0],ua=Vi[1],Jo=Vi[2],Lo=Jo!=null?Jo:Pi,Hs=he.useMemo(function(){return{columns:fa,flattenColumns:ua}},[fa,ua]),Co=he.useRef(),Gs=he.useRef(),Eo=he.useRef(),Zo=he.useRef(),bl=he.useRef(),ya=he.useState(!1),pr=(0,ke.Z)(ya,2),Ma=pr[0],Ao=pr[1],To=he.useState(!1),Hi=(0,ke.Z)(To,2),Oa=Hi[0],Wo=Hi[1],Ns=An(new Map),dl=(0,ke.Z)(Ns,2),xs=dl[0],qo=dl[1],nl=bt(ua),es=nl.map(function(Ca){return xs.get(Ca)}),Ss=he.useMemo(function(){return es},[es.join("_")]),ss=Wn(Ss,ua.length,In),so=Mn&&Qt(Mn.y),lo=Mn&&Qt(Lo)||!!Gi.fixed,ps=lo&&ua.some(function(Ca){var La=Ca.fixed;return La}),xl=he.useRef(),Zs=Fn(yi,Lt),fl=Zs.isSticky,_l=Zs.offsetHeader,ru=Zs.offsetSummary,Sa=Zs.offsetScroll,Ka=Zs.stickyClassName,_o=Zs.container,$a=he.useMemo(function(){return tr==null?void 0:tr(ii)},[tr,ii]),Ro=(so||fl)&&he.isValidElement($a)&&$a.type===ae&&$a.props.fixed,ts,As,Sl;so&&(As={overflowY:"scroll",maxHeight:Mn.y}),lo&&(ts={overflowX:"auto"},so||(As={overflowY:"hidden"}),Sl={width:Lo===!0?"auto":Lo,minWidth:"100%"});var Mu=he.useCallback(function(Ca,La){(0,ut.Z)(Co.current)&&qo(function(ws){if(ws.get(Ca)!==La){var Ml=new Map(ws);return Ml.set(Ca,La),Ml}return ws})},[]),Gl=Tn(null),Cl=(0,ke.Z)(Gl,2),pa=Cl[0],fo=Cl[1];function hl(Ca,La){La&&(typeof La=="function"?La(Ca):La.scrollLeft!==Ca&&(La.scrollLeft=Ca,La.scrollLeft!==Ca&&setTimeout(function(){La.scrollLeft=Ca},0)))}var sc=(0,nt.Z)(function(Ca){var La=Ca.currentTarget,ws=Ca.scrollLeft,Ml=In==="rtl",kl=typeof ws=="number"?ws:La.scrollLeft,Iu=La||Gn;if(!fo()||fo()===Iu){var Oo;pa(Iu),hl(kl,Gs.current),hl(kl,Eo.current),hl(kl,bl.current),hl(kl,(Oo=xl.current)===null||Oo===void 0?void 0:Oo.setScrollLeft)}var il=La||Gs.current;if(il){var Du=il.scrollWidth,Yl=il.clientWidth;if(Du===Yl){Ao(!1),Wo(!1);return}Ml?(Ao(-kl<Du-Yl),Wo(-kl>0)):(Ao(kl>0),Wo(kl<Du-Yl))}}),Ws=function(){lo&&Eo.current?sc({currentTarget:Eo.current}):(Ao(!1),Wo(!1))},qu=function(La){var ws=La.width;ws!==Si&&(Ws(),xa(Co.current?Co.current.offsetWidth:ws))},Bo=he.useRef(!1);he.useEffect(function(){Bo.current&&Ws()},[lo,sn,fa.length]),he.useEffect(function(){Bo.current=!0},[]);var ku=he.useState(0),ed=(0,ke.Z)(ku,2),iu=ed[0],au=ed[1],xc=he.useState(!0),lc=(0,ke.Z)(xc,2),kr=lc[0],Au=lc[1];he.useEffect(function(){(!ni||!oi)&&(Eo.current instanceof Element?au((0,St.o)(Eo.current).width):au((0,St.o)(Zo.current).width)),Au((0,Qe.G)("position","sticky"))},[]),he.useEffect(function(){oi&&Yi&&(Yi.body.current=Eo.current)});var ou=he.useCallback(function(Ca){return he.createElement(he.Fragment,null,he.createElement(er,Ca),Ro==="top"&&he.createElement(gt,Ca,$a))},[Ro,$a]),su=he.useCallback(function(Ca){return he.createElement(gt,Ca,$a)},[$a]),rl=_i(["table"],"table"),Ql=he.useMemo(function(){return Nn||(ps?Lo==="max-content"?"auto":"fixed":so||fl||ua.some(function(Ca){var La=Ca.ellipsis;return La})?"fixed":"auto")},[so,ps,ua,Nn,fl]),Sc,cc={colWidths:Ss,columCount:ua.length,stickyOffsets:ss,onHeaderRow:Ai,fixHeader:so,scroll:Mn},io=he.useMemo(function(){return gr?null:typeof Yr=="function"?Yr():Yr},[gr,Yr]),td=he.createElement(wn,{data:ii,measureColumnWidth:so||lo||fl}),lu=he.createElement(br,{colWidths:ua.map(function(Ca){var La=Ca.width;return La}),columns:ua}),wl=_r!=null?he.createElement("caption",{className:"".concat(Lt,"-caption")},_r):void 0,Hc=(0,Jt.Z)(xt,{data:!0}),Rl=(0,Jt.Z)(xt,{aria:!0});if(so||fl){var zl;typeof Oi=="function"?(zl=Oi(ii,{scrollbarSize:iu,ref:Eo,onScroll:sc}),cc.colWidths=ua.map(function(Ca,La){var ws=Ca.width,Ml=La===ua.length-1?ws-iu:ws;return typeof Ml=="number"&&!Number.isNaN(Ml)?Ml:0})):zl=he.createElement("div",{style:(0,st.Z)((0,st.Z)({},ts),As),onScroll:sc,ref:Eo,className:Ge()("".concat(Lt,"-body"))},he.createElement(rl,(0,ct.Z)({style:(0,st.Z)((0,st.Z)({},Sl),{},{tableLayout:Ql})},Rl),wl,lu,td,!Ro&&$a&&he.createElement(gt,{stickyOffsets:ss,flattenColumns:ua,columns:fa},$a)));var Cs=(0,st.Z)((0,st.Z)((0,st.Z)({noData:!ii.length,maxContentScroll:lo&&Lo==="max-content"},cc),Hs),{},{direction:In,stickyClassName:Ka,onScroll:sc});Sc=he.createElement(he.Fragment,null,Rr!==!1&&he.createElement(Dr,(0,ct.Z)({},Cs,{stickyTopOffset:_l,className:"".concat(Lt,"-header"),ref:Gs}),ou),zl,Ro&&Ro!=="top"&&he.createElement(Dr,(0,ct.Z)({},Cs,{stickyBottomOffset:ru,className:"".concat(Lt,"-summary"),ref:bl}),su),fl&&he.createElement(un,{ref:xl,offsetScroll:Sa,scrollBodyRef:Eo,onScroll:sc,container:_o}))}else Sc=he.createElement("div",{style:(0,st.Z)((0,st.Z)({},ts),As),className:Ge()("".concat(Lt,"-content")),onScroll:sc,ref:Eo},he.createElement(rl,(0,ct.Z)({style:(0,st.Z)((0,st.Z)({},Sl),{},{tableLayout:Ql})},Rl),wl,lu,Rr!==!1&&he.createElement(er,(0,ct.Z)({},cc,Hs)),td,$a&&he.createElement(gt,{stickyOffsets:ss,flattenColumns:ua,columns:fa},$a)));var js=he.createElement("div",(0,ct.Z)({className:Ge()(Lt,jt,(Ze={},(0,Ie.Z)(Ze,"".concat(Lt,"-rtl"),In==="rtl"),(0,Ie.Z)(Ze,"".concat(Lt,"-ping-left"),Ma),(0,Ie.Z)(Ze,"".concat(Lt,"-ping-right"),Oa),(0,Ie.Z)(Ze,"".concat(Lt,"-layout-fixed"),Nn==="fixed"),(0,Ie.Z)(Ze,"".concat(Lt,"-fixed-header"),so),(0,Ie.Z)(Ze,"".concat(Lt,"-fixed-column"),ps),(0,Ie.Z)(Ze,"".concat(Lt,"-scroll-horizontal"),lo),(0,Ie.Z)(Ze,"".concat(Lt,"-has-fix-left"),ua[0]&&ua[0].fixed),(0,Ie.Z)(Ze,"".concat(Lt,"-has-fix-right"),ua[ua.length-1]&&ua[ua.length-1].fixed==="right"),Ze)),style:cn,id:Sr,ref:Co},Hc),nr&&he.createElement(Bn,{className:"".concat(Lt,"-title")},nr(ii)),he.createElement("div",{ref:Zo,className:"".concat(Lt,"-container")},Sc),Yn&&he.createElement(Bn,{className:"".concat(Lt,"-footer")},Yn(ii)));lo&&(js=he.createElement(yt.Z,{onResize:qu},js));var ls=Cn(ua,ss,In,fa),El=he.useMemo(function(){return{scrollX:Lo,prefixCls:Lt,getComponent:_i,scrollbarSize:iu,direction:In,fixedInfoList:ls,isSticky:fl,supportSticky:kr,componentWidth:Si,fixHeader:so,fixColumn:ps,horizonScroll:lo,tableLayout:Ql,rowClassName:zt,expandedRowClassName:Gi.expandedRowClassName,expandIcon:ro,expandableType:So,expandRowByClick:Gi.expandRowByClick,expandedRowRender:Gi.expandedRowRender,onTriggerExpand:Do,expandIconColumnIndex:Gi.expandIconColumnIndex,indentSize:Gi.indentSize,allColumnsFixedLeft:ua.every(function(Ca){return Ca.fixed==="left"}),emptyNode:io,columns:fa,flattenColumns:ua,onColumnResize:Mu,hoverStartRow:Xi,hoverEndRow:Ea,onHover:ba,rowExpandable:Gi.rowExpandable,onRow:Ei,getRowKey:aa,expandedKeys:da,childrenColumnName:Xa}},[Lo,Lt,_i,iu,In,ls,fl,kr,Si,so,ps,lo,Ql,zt,Gi.expandedRowClassName,ro,So,Gi.expandRowByClick,Gi.expandedRowRender,Do,Gi.expandIconColumnIndex,Gi.indentSize,io,fa,ua,Mu,Xi,Ea,ba,Gi.rowExpandable,Ei,aa,da,Xa]);return he.createElement(Se.Provider,{value:El},js)}function Xr(_e){return kt(Hr,_e)}var Lr=Xr();Lr.EXPAND_COLUMN=ue,Lr.INTERNAL_HOOKS=Ae,Lr.Column=dn,Lr.ColumnGroup=pn,Lr.Summary=Re;var vr=Lr,Jr=oe(48911),Gr=Me(null),Zr=Me(null);function xr(_e,Ze,xt){var Lt=Ze||1;return xt[_e+Lt]-(xt[_e]||0)}function Nr(_e){var Ze=_e.rowInfo,xt=_e.column,Lt=_e.colIndex,jt=_e.indent,zt=_e.index,cn=_e.renderIndex,sn=_e.record,an=_e.style,Mn=_e.className,Nn=_e.inverse,In=_e.getHeight,nr=xt.render,Yn=xt.dataIndex,tr=xt.className,_r=xt.width,Sr=Pe(Zr,["columnsOffset"]),Rr=Sr.columnsOffset,Mr=dt(Ze,xt,Lt,jt,zt),Yr=Mr.key,Ei=Mr.fixedInfo,Ai=Mr.appendCellNode,ui=Mr.additionalCellProps,zi=ui.style,Yi=ui.colSpan,ni=Yi===void 0?1:Yi,yi=ui.rowSpan,ii=yi===void 0?1:yi,gr=Lt-1,oi=xr(gr,ni,Rr),_i=ni>1?_r-oi:0,aa=(0,st.Z)((0,st.Z)((0,st.Z)({},zi),an),{},{flex:"0 0 ".concat(oi,"px"),width:"".concat(oi,"px"),marginRight:_i,pointerEvents:"auto"}),Oi=he.useMemo(function(){return Nn?ii<=1:ni===0||ii===0||ii>1},[ii,ni,Nn]);Oi?aa.visibility="hidden":Nn&&(aa.height=In==null?void 0:In(ii));var $r=Oi?function(){return null}:nr,Ui={};return(ii===0||ni===0)&&(Ui.rowSpan=1,Ui.colSpan=1),he.createElement(hn,(0,ct.Z)({className:Ge()(tr,Mn),ellipsis:xt.ellipsis,align:xt.align,scope:xt.rowScope,component:"div",prefixCls:Ze.prefixCls,key:Yr,record:sn,index:zt,renderIndex:cn,dataIndex:Yn,render:$r,shouldCellUpdate:xt.shouldCellUpdate},Ei,{appendNode:Ai,additionalProps:(0,st.Z)((0,st.Z)({},ui),{},{style:aa},Ui)}))}var Qr=Nr,Kr=["data","index","className","rowKey","style","extra","getHeight"],hi=he.forwardRef(function(_e,Ze){var xt=_e.data,Lt=_e.index,jt=_e.className,zt=_e.rowKey,cn=_e.style,sn=_e.extra,an=_e.getHeight,Mn=(0,ce.Z)(_e,Kr),Nn=xt.record,In=xt.indent,nr=xt.index,Yn=Pe(Se,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),tr=Yn.scrollX,_r=Yn.flattenColumns,Sr=Yn.prefixCls,Rr=Yn.fixColumn,Mr=Yn.componentWidth,Yr=Le(Nn,zt,Lt,In),Ei=Yr.rowSupportExpand,Ai=Yr.expanded,ui=Yr.rowProps,zi=Yr.expandedRowRender,Yi=Yr.expandedRowClassName,ni;if(Ei&&Ai){var yi=zi(Nn,Lt,In+1,Ai),ii=Yi==null?void 0:Yi(Nn,Lt,In),gr={};Rr&&(gr={style:(0,Ie.Z)({},"--virtual-width","".concat(Mr,"px"))});var oi="".concat(Sr,"-expanded-row-cell");ni=he.createElement("div",{className:Ge()("".concat(Sr,"-expanded-row"),"".concat(Sr,"-expanded-row-level-").concat(In+1),ii)},he.createElement(hn,{component:"div",prefixCls:Sr,className:Ge()(oi,(0,Ie.Z)({},"".concat(oi,"-fixed"),Rr)),additionalProps:gr},yi))}var _i=(0,st.Z)((0,st.Z)({},cn),{},{width:tr});sn&&(_i.position="absolute",_i.pointerEvents="none");var aa=he.createElement("div",(0,ct.Z)({},ui,Mn,{ref:Ei?null:Ze,className:Ge()(jt,"".concat(Sr,"-row"),ui==null?void 0:ui.className,(0,Ie.Z)({},"".concat(Sr,"-row-extra"),sn)),style:(0,st.Z)((0,st.Z)({},_i),ui==null?void 0:ui.style)}),_r.map(function(Oi,$r){return he.createElement(Qr,{key:$r,rowInfo:Yr,column:Oi,colIndex:$r,indent:In,index:Lt,renderIndex:nr,record:Nn,inverse:sn,getHeight:an})}));return Ei?he.createElement("div",{ref:Ze},aa,ni):aa}),Bi=ft(hi),Ur=Bi,Xn=he.forwardRef(function(_e,Ze){var xt=_e.data,Lt=_e.onScroll,jt=Pe(Se,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),zt=jt.flattenColumns,cn=jt.onColumnResize,sn=jt.getRowKey,an=jt.expandedKeys,Mn=jt.prefixCls,Nn=jt.childrenColumnName,In=jt.emptyNode,nr=jt.scrollX,Yn=Pe(Gr),tr=Yn.scrollY,_r=Yn.listItemHeight,Sr=he.useRef(),Rr=Ft(xt,Nn,an,sn),Mr=he.useMemo(function(){var ni=0;return zt.map(function(yi){var ii=yi.width,gr=yi.key;return ni+=ii,[gr,ii,ni]})},[zt]),Yr=he.useMemo(function(){return Mr.map(function(ni){return ni[2]})},[Mr]);he.useEffect(function(){Mr.forEach(function(ni){var yi=(0,ke.Z)(ni,2),ii=yi[0],gr=yi[1];cn(ii,gr)})},[Mr]),he.useImperativeHandle(Ze,function(){var ni={};return Object.defineProperty(ni,"scrollLeft",{get:function(){var ii;return((ii=Sr.current)===null||ii===void 0?void 0:ii.getScrollInfo().x)||0},set:function(ii){var gr;(gr=Sr.current)===null||gr===void 0||gr.scrollTo({left:ii})}}),ni});var Ei=function(yi,ii){var gr,oi=(gr=Rr[ii])===null||gr===void 0?void 0:gr.record,_i=yi.onCell;if(_i){var aa,Oi=_i(oi,ii);return(aa=Oi==null?void 0:Oi.rowSpan)!==null&&aa!==void 0?aa:1}return 1},Ai=function(yi){var ii=yi.start,gr=yi.end,oi=yi.getSize,_i=yi.offsetY;if(gr<0)return null;for(var aa=zt.filter(function(Pi){return Ei(Pi,ii)===0}),Oi=ii,$r=function(Ii){if(aa=aa.filter(function(Di){return Ei(Di,Ii)===0}),!aa.length)return Oi=Ii,"break"},Ui=ii;Ui>=0;Ui-=1){var Xi=$r(Ui);if(Xi==="break")break}for(var Ea=zt.filter(function(Pi){return Ei(Pi,gr)!==1}),ba=gr,oo=function(Ii){if(Ea=Ea.filter(function(Di){return Ei(Di,Ii)!==1}),!Ea.length)return ba=Math.max(Ii-1,gr),"break"},Ya=gr;Ya<Rr.length;Ya+=1){var Gi=oo(Ya);if(Gi==="break")break}for(var So=[],da=function(Ii){var Di=Rr[Ii];if(!Di)return"continue";zt.some(function(Si){return Ei(Si,Ii)>1})&&So.push(Ii)},ro=Oi;ro<=ba;ro+=1)var Xa=da(ro);var Do=So.map(function(Pi){var Ii=Rr[Pi],Di=sn(Ii.record,Pi),Si=function(Vi){var fa=Pi+Vi-1,ua=sn(Rr[fa].record,fa),Jo=oi(Di,ua);return Jo.bottom-Jo.top},xa=oi(Di);return he.createElement(Ur,{key:Pi,data:Ii,rowKey:Di,index:Pi,style:{top:-_i+xa.top},extra:!0,getHeight:Si})});return Do},ui=he.useMemo(function(){return{columnsOffset:Yr}},[Yr]),zi="".concat(Mn,"-tbody"),Yi;return Rr.length?Yi=he.createElement(Jr.Z,{fullHeight:!1,ref:Sr,className:Ge()(zi,"".concat(zi,"-virtual")),height:tr,itemHeight:_r||24,data:Rr,itemKey:function(yi){return sn(yi.record)},scrollWidth:nr,onVirtualScroll:function(yi){var ii=yi.x;Lt({scrollLeft:ii})},extraRender:Ai},function(ni,yi,ii){var gr=sn(ni.record,yi);return he.createElement(Ur,(0,ct.Z)({data:ni,rowKey:gr,index:yi},ii))}):Yi=he.createElement("div",{className:Ge()("".concat(Mn,"-placeholder"))},he.createElement(hn,{component:"div",prefixCls:Mn},In)),he.createElement(Zr.Provider,{value:ui},Yi)}),Kn=ft(Xn),Wr=Kn,Tr=function(Ze,xt){var Lt=xt.ref,jt=xt.onScroll;return he.createElement(Wr,{ref:Lt,data:Ze,onScroll:jt})},ri=100;function pi(_e){var Ze=_e.columns,xt=_e.scroll,Lt=_e.prefixCls,jt=Lt===void 0?On:Lt,zt=_e.className,cn=_e.listItemHeight,sn=xt||{},an=sn.x,Mn=sn.y;typeof an!="number"&&(an=((Ze||[]).length+1)*ri),typeof Mn!="number"&&(Mn=500);var Nn=he.useMemo(function(){return{scrollY:Mn,listItemHeight:cn}},[Mn,cn]);return he.createElement(Gr.Provider,{value:Nn},he.createElement(vr,(0,ct.Z)({},_e,{className:Ge()(zt,"".concat(jt,"-virtual")),scroll:(0,st.Z)((0,st.Z)({},xt),{},{x:an}),components:{body:Tr},columns:Ze,internalHooks:Ae,tailor:!0})))}function li(_e){return kt(pi,_e)}var $i=li(),xi=null;function oa(_e){return null}var Br=oa;function Ar(_e){return null}var fi=Ar,mi=oe(2738),la=oe(68031),Ua=oe(36355),Da=oe(93891),Wi=oe(19716),ma=oe(8628),na=oe(31724),sr=oe(58421),ur=oe(71418),cr=oe(88088);function Or(_e){return function(xt){let{prefixCls:Lt,onExpand:jt,record:zt,expanded:cn,expandable:sn}=xt;const an=`${Lt}-row-expand-icon`;return he.createElement("button",{type:"button",onClick:Mn=>{jt(zt,Mn),Mn.stopPropagation()},className:Ge()(an,{[`${an}-spaced`]:!sn,[`${an}-expanded`]:sn&&cn,[`${an}-collapsed`]:sn&&!cn}),"aria-label":cn?_e.collapse:_e.expand,"aria-expanded":cn})}}var Ki=Or;function ea(_e,Ze){return"key"in _e&&_e.key!==void 0&&_e.key!==null?_e.key:_e.dataIndex?Array.isArray(_e.dataIndex)?_e.dataIndex.join("."):_e.dataIndex:Ze}function ra(_e,Ze){return Ze?`${Ze}-${_e}`:`${_e}`}function qi(_e,Ze){return typeof _e=="function"?_e(Ze):_e}function ia(_e,Ze){const xt=qi(_e,Ze);return Object.prototype.toString.call(xt)==="[object Object]"?"":xt}var ga={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"},Va=ga,Ra=oe(7657),ko=function(Ze,xt){return he.createElement(Ra.Z,(0,ct.Z)({},Ze,{ref:xt,icon:Va}))},co=he.forwardRef(ko),za=co,ds=oe(56762);function wo(_e){const Ze=he.useRef(_e),xt=(0,ds.Z)();return[()=>Ze.current,Lt=>{Ze.current=Lt,xt()}]}var xo=oe(3113),Za=oe(24905),va=oe(38854),di=oe(64165),Ri=oe(20834),ki=oe(40875),ci=oe(5112),Qi=oe(17574),ji=oe(47472),Pa=oe(92832);function Wa(_e){let{value:Ze,onChange:xt,filterSearch:Lt,tablePrefixCls:jt,locale:zt}=_e;return Lt?he.createElement("div",{className:`${jt}-filter-dropdown-search`},he.createElement(Pa.default,{prefix:he.createElement(ji.Z,null),placeholder:zt.filterSearchPlaceholder,onChange:xt,value:Ze,htmlSize:1,className:`${jt}-filter-dropdown-search-input`})):null}var Na=Wa,mn=oe(10228);const lr=_e=>{const{keyCode:Ze}=_e;Ze===mn.Z.ENTER&&_e.stopPropagation()};var gi=he.forwardRef((_e,Ze)=>he.createElement("div",{className:_e.className,onClick:xt=>xt.stopPropagation(),onKeyDown:lr,ref:Ze},_e.children));function Ti(_e){let Ze=[];return(_e||[]).forEach(xt=>{let{value:Lt,children:jt}=xt;Ze.push(Lt),jt&&(Ze=[].concat((0,Zn.Z)(Ze),(0,Zn.Z)(Ti(jt))))}),Ze}function wi(_e){return _e.some(Ze=>{let{children:xt}=Ze;return xt})}function Ji(_e,Ze){return typeof Ze=="string"||typeof Ze=="number"?Ze==null?void 0:Ze.toString().toLowerCase().includes(_e.trim().toLowerCase()):!1}function eo(_e){let{filters:Ze,prefixCls:xt,filteredKeys:Lt,filterMultiple:jt,searchValue:zt,filterSearch:cn}=_e;return Ze.map((sn,an)=>{const Mn=String(sn.value);if(sn.children)return{key:Mn||an,label:sn.text,popupClassName:`${xt}-dropdown-submenu`,children:eo({filters:sn.children,prefixCls:xt,filteredKeys:Lt,filterMultiple:jt,searchValue:zt,filterSearch:cn})};const Nn=jt?Za.default:ci.ZP,In={key:sn.value!==void 0?Mn:an,label:he.createElement(he.Fragment,null,he.createElement(Nn,{checked:Lt.includes(Mn)}),he.createElement("span",null,sn.text))};return zt.trim()?typeof cn=="function"?cn(zt,sn)?In:null:Ji(zt,sn.text)?In:null:In})}function to(_e){var Ze,xt;const{tablePrefixCls:Lt,prefixCls:jt,column:zt,dropdownPrefixCls:cn,columnKey:sn,filterMultiple:an,filterMode:Mn="menu",filterSearch:Nn=!1,filterState:In,triggerFilter:nr,locale:Yn,children:tr,getPopupContainer:_r}=_e,{filterDropdownOpen:Sr,onFilterDropdownOpenChange:Rr,filterResetToDefaultFilteredValue:Mr,defaultFilteredValue:Yr,filterDropdownVisible:Ei,onFilterDropdownVisibleChange:Ai}=zt,[ui,zi]=he.useState(!1),Yi=!!(In&&(!((Ze=In.filteredKeys)===null||Ze===void 0)&&Ze.length||In.forceFiltered)),ni=Mi=>{zi(Mi),Rr==null||Rr(Mi),Ai==null||Ai(Mi)},yi=(xt=Sr!=null?Sr:Ei)!==null&&xt!==void 0?xt:ui,ii=In==null?void 0:In.filteredKeys,[gr,oi]=wo(ii||[]),_i=Mi=>{let{selectedKeys:Vi}=Mi;oi(Vi)},aa=(Mi,Vi)=>{let{node:fa,checked:ua}=Vi;_i(an?{selectedKeys:Mi}:{selectedKeys:ua&&fa.key?[fa.key]:[]})};he.useEffect(()=>{ui&&_i({selectedKeys:ii||[]})},[ii]);const[Oi,$r]=he.useState([]),Ui=Mi=>{$r(Mi)},[Xi,Ea]=he.useState(""),ba=Mi=>{const{value:Vi}=Mi.target;Ea(Vi)};he.useEffect(()=>{ui||Ea("")},[ui]);const oo=Mi=>{const Vi=Mi&&Mi.length?Mi:null;if(Vi===null&&(!In||!In.filteredKeys)||(0,Ee.Z)(Vi,In==null?void 0:In.filteredKeys,!0))return null;nr({column:zt,key:sn,filteredKeys:Vi})},Ya=()=>{ni(!1),oo(gr())},Gi=function(){let{confirm:Mi,closeDropdown:Vi}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Mi&&oo([]),Vi&&ni(!1),Ea(""),oi(Mr?(Yr||[]).map(fa=>String(fa)):[])},So=function(){let{closeDropdown:Mi}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Mi&&ni(!1),oo(gr())},da=Mi=>{Mi&&ii!==void 0&&oi(ii||[]),ni(Mi),!Mi&&!zt.filterDropdown&&Ya()},ro=Ge()({[`${cn}-menu-without-submenu`]:!wi(zt.filters||[])}),Xa=Mi=>{if(Mi.target.checked){const Vi=Ti(zt==null?void 0:zt.filters).map(fa=>String(fa));oi(Vi)}else oi([])},Do=Mi=>{let{filters:Vi}=Mi;return(Vi||[]).map((fa,ua)=>{const Jo=String(fa.value),Lo={title:fa.text,key:fa.value!==void 0?Jo:ua};return fa.children&&(Lo.children=Do({filters:fa.children})),Lo})},Pi=Mi=>{var Vi;return Object.assign(Object.assign({},Mi),{text:Mi.title,value:Mi.key,children:((Vi=Mi.children)===null||Vi===void 0?void 0:Vi.map(fa=>Pi(fa)))||[]})};let Ii;if(typeof zt.filterDropdown=="function")Ii=zt.filterDropdown({prefixCls:`${cn}-custom`,setSelectedKeys:Mi=>_i({selectedKeys:Mi}),selectedKeys:gr(),confirm:So,clearFilters:Gi,filters:zt.filters,visible:yi,close:()=>{ni(!1)}});else if(zt.filterDropdown)Ii=zt.filterDropdown;else{const Mi=gr()||[],Vi=()=>(zt.filters||[]).length===0?he.createElement(di.Z,{image:di.Z.PRESENTED_IMAGE_SIMPLE,description:Yn.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):Mn==="tree"?he.createElement(he.Fragment,null,he.createElement(Na,{filterSearch:Nn,value:Xi,onChange:ba,tablePrefixCls:Lt,locale:Yn}),he.createElement("div",{className:`${Lt}-filter-dropdown-tree`},an?he.createElement(Za.default,{checked:Mi.length===Ti(zt.filters).length,indeterminate:Mi.length>0&&Mi.length<Ti(zt.filters).length,className:`${Lt}-filter-dropdown-checkall`,onChange:Xa},Yn.filterCheckall):null,he.createElement(Qi.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:an,checkStrictly:!an,className:`${cn}-menu`,onCheck:aa,checkedKeys:Mi,selectedKeys:Mi,showIcon:!1,treeData:Do({filters:zt.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Xi.trim()?ua=>typeof Nn=="function"?Nn(Xi,Pi(ua)):Ji(Xi,ua.title):void 0}))):he.createElement(he.Fragment,null,he.createElement(Na,{filterSearch:Nn,value:Xi,onChange:ba,tablePrefixCls:Lt,locale:Yn}),he.createElement(Ri.default,{selectable:!0,multiple:an,prefixCls:`${cn}-menu`,className:ro,onSelect:_i,onDeselect:_i,selectedKeys:Mi,getPopupContainer:_r,openKeys:Oi,onOpenChange:Ui,items:eo({filters:zt.filters||[],filterSearch:Nn,prefixCls:jt,filteredKeys:gr(),filterMultiple:an,searchValue:Xi})})),fa=()=>Mr?(0,Ee.Z)((Yr||[]).map(ua=>String(ua)),Mi,!0):Mi.length===0;Ii=he.createElement(he.Fragment,null,Vi(),he.createElement("div",{className:`${jt}-dropdown-btns`},he.createElement(xo.ZP,{type:"link",size:"small",disabled:fa(),onClick:()=>Gi()},Yn.filterReset),he.createElement(xo.ZP,{type:"primary",size:"small",onClick:Ya},Yn.filterConfirm)))}zt.filterDropdown&&(Ii=he.createElement(ki.J,{selectable:void 0},Ii));const Di=()=>he.createElement(gi,{className:`${jt}-dropdown`},Ii);let Si;typeof zt.filterIcon=="function"?Si=zt.filterIcon(Yi):zt.filterIcon?Si=zt.filterIcon:Si=he.createElement(za,null);const{direction:xa}=he.useContext(Ua.E_);return he.createElement("div",{className:`${jt}-column`},he.createElement("span",{className:`${Lt}-column-title`},tr),he.createElement(va.Z,{dropdownRender:Di,trigger:["click"],open:yi,onOpenChange:da,getPopupContainer:_r,placement:xa==="rtl"?"bottomLeft":"bottomRight"},he.createElement("span",{role:"button",tabIndex:-1,className:Ge()(`${jt}-trigger`,{active:Yi}),onClick:Mi=>{Mi.stopPropagation()}},Si)))}var Ba=to;function ja(_e,Ze,xt){let Lt=[];return(_e||[]).forEach((jt,zt)=>{var cn;const sn=ra(zt,xt);if(jt.filters||"filterDropdown"in jt||"onFilter"in jt)if("filteredValue"in jt){let an=jt.filteredValue;"filterDropdown"in jt||(an=(cn=an==null?void 0:an.map(String))!==null&&cn!==void 0?cn:an),Lt.push({column:jt,key:ea(jt,sn),filteredKeys:an,forceFiltered:jt.filtered})}else Lt.push({column:jt,key:ea(jt,sn),filteredKeys:Ze&&jt.defaultFilteredValue?jt.defaultFilteredValue:void 0,forceFiltered:jt.filtered});"children"in jt&&(Lt=[].concat((0,Zn.Z)(Lt),(0,Zn.Z)(ja(jt.children,Ze,sn))))}),Lt}function sl(_e,Ze,xt,Lt,jt,zt,cn,sn){return xt.map((an,Mn)=>{const Nn=ra(Mn,sn),{filterMultiple:In=!0,filterMode:nr,filterSearch:Yn}=an;let tr=an;if(tr.filters||tr.filterDropdown){const _r=ea(tr,Nn),Sr=Lt.find(Rr=>{let{key:Mr}=Rr;return _r===Mr});tr=Object.assign(Object.assign({},tr),{title:Rr=>he.createElement(Ba,{tablePrefixCls:_e,prefixCls:`${_e}-filter`,dropdownPrefixCls:Ze,column:tr,columnKey:_r,filterState:Sr,filterMultiple:In,filterMode:nr,filterSearch:Yn,triggerFilter:zt,locale:jt,getPopupContainer:cn},qi(an.title,Rr))})}return"children"in tr&&(tr=Object.assign(Object.assign({},tr),{children:sl(_e,Ze,tr.children,Lt,jt,zt,cn,Nn)})),tr})}function as(_e){const Ze={};return _e.forEach(xt=>{let{key:Lt,filteredKeys:jt,column:zt}=xt;const{filters:cn,filterDropdown:sn}=zt;if(sn)Ze[Lt]=jt||null;else if(Array.isArray(jt)){const an=Ti(cn);Ze[Lt]=an.filter(Mn=>jt.includes(String(Mn)))}else Ze[Lt]=null}),Ze}function uo(_e,Ze){return Ze.reduce((xt,Lt)=>{const{column:{onFilter:jt,filters:zt},filteredKeys:cn}=Lt;return jt&&cn&&cn.length?xt.filter(sn=>cn.some(an=>{const Mn=Ti(zt),Nn=Mn.findIndex(nr=>String(nr)===String(an)),In=Nn!==-1?Mn[Nn]:an;return jt(In,sn)})):xt},_e)}const ao=_e=>_e.flatMap(Ze=>"children"in Ze?[Ze].concat((0,Zn.Z)(ao(Ze.children||[]))):[Ze]);function fs(_e){let{prefixCls:Ze,dropdownPrefixCls:xt,mergedColumns:Lt,onFilterChange:jt,getPopupContainer:zt,locale:cn}=_e;const sn=he.useMemo(()=>ao(Lt||[]),[Lt]),[an,Mn]=he.useState(()=>ja(sn,!0)),Nn=he.useMemo(()=>{const tr=ja(sn,!1);if(tr.length===0)return tr;let _r=!0,Sr=!0;if(tr.forEach(Rr=>{let{filteredKeys:Mr}=Rr;Mr!==void 0?_r=!1:Sr=!1}),_r){const Rr=(sn||[]).map((Mr,Yr)=>ea(Mr,ra(Yr)));return an.filter(Mr=>{let{key:Yr}=Mr;return Rr.includes(Yr)}).map(Mr=>{const Yr=sn[Rr.findIndex(Ei=>Ei===Mr.key)];return Object.assign(Object.assign({},Mr),{column:Object.assign(Object.assign({},Mr.column),Yr),forceFiltered:Yr.filtered})})}return tr},[sn,an]),In=he.useMemo(()=>as(Nn),[Nn]),nr=tr=>{const _r=Nn.filter(Sr=>{let{key:Rr}=Sr;return Rr!==tr.key});_r.push(tr),Mn(_r),jt(as(_r),_r)};return[tr=>sl(Ze,xt,tr,Nn,cn,nr,zt),Nn,In]}var vs=fs;function Ms(_e,Ze,xt){const Lt=he.useRef({});function jt(zt){if(!Lt.current||Lt.current.data!==_e||Lt.current.childrenColumnName!==Ze||Lt.current.getRowKey!==xt){let sn=function(an){an.forEach((Mn,Nn)=>{const In=xt(Mn,Nn);cn.set(In,Mn),Mn&&typeof Mn=="object"&&Ze in Mn&&sn(Mn[Ze]||[])})};const cn=new Map;sn(_e),Lt.current={data:_e,childrenColumnName:Ze,kvMap:cn,getRowKey:xt}}return Lt.current.kvMap.get(zt)}return[jt]}var ll=oe(50371),Fs=function(_e,Ze){var xt={};for(var Lt in _e)Object.prototype.hasOwnProperty.call(_e,Lt)&&Ze.indexOf(Lt)<0&&(xt[Lt]=_e[Lt]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var jt=0,Lt=Object.getOwnPropertySymbols(_e);jt<Lt.length;jt++)Ze.indexOf(Lt[jt])<0&&Object.prototype.propertyIsEnumerable.call(_e,Lt[jt])&&(xt[Lt[jt]]=_e[Lt[jt]]);return xt};const No=10;function Ko(_e,Ze){const xt={current:_e.current,pageSize:_e.pageSize};return Object.keys(Ze&&typeof Ze=="object"?Ze:{}).forEach(jt=>{const zt=_e[jt];typeof zt!="function"&&(xt[jt]=zt)}),xt}function Fa(_e,Ze,xt){const Lt=xt&&typeof xt=="object"?xt:{},{total:jt=0}=Lt,zt=Fs(Lt,["total"]),[cn,sn]=(0,he.useState)(()=>({current:"defaultCurrent"in zt?zt.defaultCurrent:1,pageSize:"defaultPageSize"in zt?zt.defaultPageSize:No})),an=(0,ll.Z)(cn,zt,{total:jt>0?jt:_e}),Mn=Math.ceil((jt||_e)/an.pageSize);an.current>Mn&&(an.current=Mn||1);const Nn=(nr,Yn)=>{sn({current:nr!=null?nr:1,pageSize:Yn||an.pageSize})},In=(nr,Yn)=>{var tr;xt&&((tr=xt.onChange)===null||tr===void 0||tr.call(xt,nr,Yn)),Nn(nr,Yn),Ze(nr,Yn||(an==null?void 0:an.pageSize))};return xt===!1?[{},()=>{}]:[Object.assign(Object.assign({},an),{onChange:In}),Nn]}var Js=Fa,Dl=oe(84105),Us=oe(35654),ha=oe(90782),ca=oe(71430),Ga=oe(18929);const mo={},no="SELECT_ALL",$o="SELECT_INVERT",Go="SELECT_NONE",ys=[],Qo=(_e,Ze)=>{let xt=[];return(Ze||[]).forEach(Lt=>{xt.push(Lt),Lt&&typeof Lt=="object"&&_e in Lt&&(xt=[].concat((0,Zn.Z)(xt),(0,Zn.Z)(Qo(_e,Lt[_e]))))}),xt};var Ps=(_e,Ze)=>{const{preserveSelectedRowKeys:xt,selectedRowKeys:Lt,defaultSelectedRowKeys:jt,getCheckboxProps:zt,onChange:cn,onSelect:sn,onSelectAll:an,onSelectInvert:Mn,onSelectNone:Nn,onSelectMultiple:In,columnWidth:nr,type:Yn,selections:tr,fixed:_r,renderCell:Sr,hideSelectAll:Rr,checkStrictly:Mr=!0}=Ze||{},{prefixCls:Yr,data:Ei,pageData:Ai,getRecordByKey:ui,getRowKey:zi,expandType:Yi,childrenColumnName:ni,locale:yi,getPopupContainer:ii}=_e,[gr,oi]=(0,Ga.Z)(Lt||jt||ys,{value:Lt}),_i=he.useRef(new Map),aa=(0,he.useCallback)(Pi=>{if(xt){const Ii=new Map;Pi.forEach(Di=>{let Si=ui(Di);!Si&&_i.current.has(Di)&&(Si=_i.current.get(Di)),Ii.set(Di,Si)}),_i.current=Ii}},[ui,xt]);he.useEffect(()=>{aa(gr)},[gr]);const{keyEntities:Oi}=(0,he.useMemo)(()=>{if(Mr)return{keyEntities:null};let Pi=Ei;if(xt){const Ii=new Set(Ei.map((Si,xa)=>zi(Si,xa))),Di=Array.from(_i.current).reduce((Si,xa)=>{let[Mi,Vi]=xa;return Ii.has(Mi)?Si:Si.concat(Vi)},[]);Pi=[].concat((0,Zn.Z)(Pi),(0,Zn.Z)(Di))}return(0,ca.I8)(Pi,{externalGetKey:zi,childrenPropName:ni})},[Ei,zi,Mr,ni,xt]),$r=(0,he.useMemo)(()=>Qo(ni,Ai),[ni,Ai]),Ui=(0,he.useMemo)(()=>{const Pi=new Map;return $r.forEach((Ii,Di)=>{const Si=zi(Ii,Di),xa=(zt?zt(Ii):null)||{};Pi.set(Si,xa)}),Pi},[$r,zi,zt]),Xi=(0,he.useCallback)(Pi=>{var Ii;return!!(!((Ii=Ui.get(zi(Pi)))===null||Ii===void 0)&&Ii.disabled)},[Ui,zi]),[Ea,ba]=(0,he.useMemo)(()=>{if(Mr)return[gr||[],[]];const{checkedKeys:Pi,halfCheckedKeys:Ii}=(0,ha.S)(gr,!0,Oi,Xi);return[Pi||[],Ii]},[gr,Mr,Oi,Xi]),oo=(0,he.useMemo)(()=>{const Pi=Yn==="radio"?Ea.slice(0,1):Ea;return new Set(Pi)},[Ea,Yn]),Ya=(0,he.useMemo)(()=>Yn==="radio"?new Set:new Set(ba),[ba,Yn]),[Gi,So]=(0,he.useState)(null);he.useEffect(()=>{Ze||oi(ys)},[!!Ze]);const da=(0,he.useCallback)((Pi,Ii)=>{let Di,Si;aa(Pi),xt?(Di=Pi,Si=Pi.map(xa=>_i.current.get(xa))):(Di=[],Si=[],Pi.forEach(xa=>{const Mi=ui(xa);Mi!==void 0&&(Di.push(xa),Si.push(Mi))})),oi(Di),cn==null||cn(Di,Si,{type:Ii})},[oi,ui,cn,xt]),ro=(0,he.useCallback)((Pi,Ii,Di,Si)=>{if(sn){const xa=Di.map(Mi=>ui(Mi));sn(ui(Pi),Ii,xa,Si)}da(Di,"single")},[sn,ui,da]),Xa=(0,he.useMemo)(()=>!tr||Rr?null:(tr===!0?[no,$o,Go]:tr).map(Ii=>Ii===no?{key:"all",text:yi.selectionAll,onSelect(){da(Ei.map((Di,Si)=>zi(Di,Si)).filter(Di=>{const Si=Ui.get(Di);return!(Si!=null&&Si.disabled)||oo.has(Di)}),"all")}}:Ii===$o?{key:"invert",text:yi.selectInvert,onSelect(){const Di=new Set(oo);Ai.forEach((xa,Mi)=>{const Vi=zi(xa,Mi),fa=Ui.get(Vi);fa!=null&&fa.disabled||(Di.has(Vi)?Di.delete(Vi):Di.add(Vi))});const Si=Array.from(Di);Mn&&Mn(Si),da(Si,"invert")}}:Ii===Go?{key:"none",text:yi.selectNone,onSelect(){Nn==null||Nn(),da(Array.from(oo).filter(Di=>{const Si=Ui.get(Di);return Si==null?void 0:Si.disabled}),"none")}}:Ii).map(Ii=>Object.assign(Object.assign({},Ii),{onSelect:function(){for(var Di,Si,xa=arguments.length,Mi=new Array(xa),Vi=0;Vi<xa;Vi++)Mi[Vi]=arguments[Vi];(Si=Ii.onSelect)===null||Si===void 0||(Di=Si).call.apply(Di,[Ii].concat(Mi)),So(null)}})),[tr,oo,Ai,zi,Mn,da]);return[(0,he.useCallback)(Pi=>{var Ii;if(!Ze)return Pi.filter(ya=>ya!==mo);let Di=(0,Zn.Z)(Pi);const Si=new Set(oo),xa=$r.map(zi).filter(ya=>!Ui.get(ya).disabled),Mi=xa.every(ya=>Si.has(ya)),Vi=xa.some(ya=>Si.has(ya)),fa=()=>{const ya=[];Mi?xa.forEach(Ma=>{Si.delete(Ma),ya.push(Ma)}):xa.forEach(Ma=>{Si.has(Ma)||(Si.add(Ma),ya.push(Ma))});const pr=Array.from(Si);an==null||an(!Mi,pr.map(Ma=>ui(Ma)),ya.map(Ma=>ui(Ma))),da(pr,"all"),So(null)};let ua;if(Yn!=="radio"){let ya;if(Xa){const Hi={getPopupContainer:ii,items:Xa.map((Oa,Wo)=>{const{key:Ns,text:dl,onSelect:xs}=Oa;return{key:Ns!=null?Ns:Wo,onClick:()=>{xs==null||xs(xa)},label:dl}})};ya=he.createElement("div",{className:`${Yr}-selection-extra`},he.createElement(va.Z,{menu:Hi,getPopupContainer:ii},he.createElement("span",null,he.createElement(Dl.Z,null))))}const pr=$r.map((Hi,Oa)=>{const Wo=zi(Hi,Oa),Ns=Ui.get(Wo)||{};return Object.assign({checked:Si.has(Wo)},Ns)}).filter(Hi=>{let{disabled:Oa}=Hi;return Oa}),Ma=!!pr.length&&pr.length===$r.length,Ao=Ma&&pr.every(Hi=>{let{checked:Oa}=Hi;return Oa}),To=Ma&&pr.some(Hi=>{let{checked:Oa}=Hi;return Oa});ua=!Rr&&he.createElement("div",{className:`${Yr}-selection`},he.createElement(Za.default,{checked:Ma?Ao:!!$r.length&&Mi,indeterminate:Ma?!Ao&&To:!Mi&&Vi,onChange:fa,disabled:$r.length===0||Ma,"aria-label":ya?"Custom selection":"Select all",skipGroup:!0}),ya)}let Jo;Yn==="radio"?Jo=(ya,pr,Ma)=>{const Ao=zi(pr,Ma),To=Si.has(Ao);return{node:he.createElement(ci.ZP,Object.assign({},Ui.get(Ao),{checked:To,onClick:Hi=>Hi.stopPropagation(),onChange:Hi=>{Si.has(Ao)||ro(Ao,!0,[Ao],Hi.nativeEvent)}})),checked:To}}:Jo=(ya,pr,Ma)=>{var Ao;const To=zi(pr,Ma),Hi=Si.has(To),Oa=Ya.has(To),Wo=Ui.get(To);let Ns;return Yi==="nest"?Ns=Oa:Ns=(Ao=Wo==null?void 0:Wo.indeterminate)!==null&&Ao!==void 0?Ao:Oa,{node:he.createElement(Za.default,Object.assign({},Wo,{indeterminate:Ns,checked:Hi,skipGroup:!0,onClick:dl=>dl.stopPropagation(),onChange:dl=>{let{nativeEvent:xs}=dl;const{shiftKey:qo}=xs;let nl=-1,es=-1;if(qo&&Mr){const Ss=new Set([Gi,To]);xa.some((ss,so)=>{if(Ss.has(ss))if(nl===-1)nl=so;else return es=so,!0;return!1})}if(es!==-1&&nl!==es&&Mr){const Ss=xa.slice(nl,es+1),ss=[];Hi?Ss.forEach(lo=>{Si.has(lo)&&(ss.push(lo),Si.delete(lo))}):Ss.forEach(lo=>{Si.has(lo)||(ss.push(lo),Si.add(lo))});const so=Array.from(Si);In==null||In(!Hi,so.map(lo=>ui(lo)),ss.map(lo=>ui(lo))),da(so,"multiple")}else{const Ss=Ea;if(Mr){const ss=Hi?(0,Us._5)(Ss,To):(0,Us.L0)(Ss,To);ro(To,!Hi,ss,xs)}else{const ss=(0,ha.S)([].concat((0,Zn.Z)(Ss),[To]),!0,Oi,Xi),{checkedKeys:so,halfCheckedKeys:lo}=ss;let ps=so;if(Hi){const xl=new Set(so);xl.delete(To),ps=(0,ha.S)(Array.from(xl),{checked:!1,halfCheckedKeys:lo},Oi,Xi).checkedKeys}ro(To,!Hi,ps,xs)}}So(Hi?null:To)}})),checked:Hi}};const Lo=(ya,pr,Ma)=>{const{node:Ao,checked:To}=Jo(ya,pr,Ma);return Sr?Sr(To,pr,Ma,Ao):Ao};if(!Di.includes(mo))if(Di.findIndex(ya=>{var pr;return((pr=ya[$n])===null||pr===void 0?void 0:pr.columnType)==="EXPAND_COLUMN"})===0){const[ya,...pr]=Di;Di=[ya,mo].concat((0,Zn.Z)(pr))}else Di=[mo].concat((0,Zn.Z)(Di));const Hs=Di.indexOf(mo);Di=Di.filter((ya,pr)=>ya!==mo||pr===Hs);const Co=Di[Hs-1],Gs=Di[Hs+1];let Eo=_r;Eo===void 0&&((Gs==null?void 0:Gs.fixed)!==void 0?Eo=Gs.fixed:(Co==null?void 0:Co.fixed)!==void 0&&(Eo=Co.fixed)),Eo&&Co&&((Ii=Co[$n])===null||Ii===void 0?void 0:Ii.columnType)==="EXPAND_COLUMN"&&Co.fixed===void 0&&(Co.fixed=Eo);const Zo=Ge()(`${Yr}-selection-col`,{[`${Yr}-selection-col-with-dropdown`]:tr&&Yn==="checkbox"}),bl={fixed:Eo,width:nr,className:`${Yr}-selection-column`,title:Ze.columnTitle||ua,render:Lo,onCell:Ze.onCell,[$n]:{className:Zo}};return Di.map(ya=>ya===mo?bl:ya)},[zi,$r,Ze,Ea,oo,Ya,nr,Xa,Yi,Gi,Ui,In,ro,Xi]),oo]},Yo=oe(89489),gc=oe(59477),gl=oe(6848);const vl="ascend",nc="descend";function jl(_e){return typeof _e.sorter=="object"&&typeof _e.sorter.multiple=="number"?_e.sorter.multiple:!1}function Ll(_e){return typeof _e=="function"?_e:_e&&typeof _e=="object"&&_e.compare?_e.compare:!1}function Yc(_e,Ze){return Ze?_e[_e.indexOf(Ze)+1]:_e[0]}function cl(_e,Ze,xt){let Lt=[];function jt(zt,cn){Lt.push({column:zt,key:ea(zt,cn),multiplePriority:jl(zt),sortOrder:zt.sortOrder})}return(_e||[]).forEach((zt,cn)=>{const sn=ra(cn,xt);zt.children?("sortOrder"in zt&&jt(zt,sn),Lt=[].concat((0,Zn.Z)(Lt),(0,Zn.Z)(cl(zt.children,Ze,sn)))):zt.sorter&&("sortOrder"in zt?jt(zt,sn):Ze&&zt.defaultSortOrder&&Lt.push({column:zt,key:ea(zt,sn),multiplePriority:jl(zt),sortOrder:zt.defaultSortOrder}))}),Lt}function rc(_e,Ze,xt,Lt,jt,zt,cn,sn){return(Ze||[]).map((an,Mn)=>{const Nn=ra(Mn,sn);let In=an;if(In.sorter){const nr=In.sortDirections||jt,Yn=In.showSorterTooltip===void 0?cn:In.showSorterTooltip,tr=ea(In,Nn),_r=xt.find(Yi=>{let{key:ni}=Yi;return ni===tr}),Sr=_r?_r.sortOrder:null,Rr=Yc(nr,Sr);let Mr;if(an.sortIcon)Mr=an.sortIcon({sortOrder:Sr});else{const Yi=nr.includes(vl)&&he.createElement(gc.Z,{className:Ge()(`${_e}-column-sorter-up`,{active:Sr===vl})}),ni=nr.includes(nc)&&he.createElement(Yo.Z,{className:Ge()(`${_e}-column-sorter-down`,{active:Sr===nc})});Mr=he.createElement("span",{className:Ge()(`${_e}-column-sorter`,{[`${_e}-column-sorter-full`]:!!(Yi&&ni)})},he.createElement("span",{className:`${_e}-column-sorter-inner`,"aria-hidden":"true"},Yi,ni))}const{cancelSort:Yr,triggerAsc:Ei,triggerDesc:Ai}=zt||{};let ui=Yr;Rr===nc?ui=Ai:Rr===vl&&(ui=Ei);const zi=typeof Yn=="object"?Yn:{title:ui};In=Object.assign(Object.assign({},In),{className:Ge()(In.className,{[`${_e}-column-sort`]:Sr}),title:Yi=>{const ni=he.createElement("div",{className:`${_e}-column-sorters`},he.createElement("span",{className:`${_e}-column-title`},qi(an.title,Yi)),Mr);return Yn?he.createElement(gl.Z,Object.assign({},zi),ni):ni},onHeaderCell:Yi=>{const ni=an.onHeaderCell&&an.onHeaderCell(Yi)||{},yi=ni.onClick,ii=ni.onKeyDown;ni.onClick=_i=>{Lt({column:an,key:tr,sortOrder:Rr,multiplePriority:jl(an)}),yi==null||yi(_i)},ni.onKeyDown=_i=>{_i.keyCode===mn.Z.ENTER&&(Lt({column:an,key:tr,sortOrder:Rr,multiplePriority:jl(an)}),ii==null||ii(_i))};const gr=ia(an.title,{}),oi=gr==null?void 0:gr.toString();return Sr?ni["aria-sort"]=Sr==="ascend"?"ascending":"descending":ni["aria-label"]=oi||"",ni.className=Ge()(ni.className,`${_e}-column-has-sorters`),ni.tabIndex=0,an.ellipsis&&(ni.title=(gr!=null?gr:"").toString()),ni}})}return"children"in In&&(In=Object.assign(Object.assign({},In),{children:rc(_e,In.children,xt,Lt,jt,zt,cn,Nn)})),In})}function ul(_e){const{column:Ze,sortOrder:xt}=_e;return{column:Ze,order:xt,field:Ze.dataIndex,columnKey:Ze.key}}function yl(_e){const Ze=_e.filter(xt=>{let{sortOrder:Lt}=xt;return Lt}).map(ul);return Ze.length===0&&_e.length?Object.assign(Object.assign({},ul(_e[_e.length-1])),{column:void 0}):Ze.length<=1?Ze[0]||{}:Ze}function Aa(_e,Ze,xt){const Lt=Ze.slice().sort((cn,sn)=>sn.multiplePriority-cn.multiplePriority),jt=_e.slice(),zt=Lt.filter(cn=>{let{column:{sorter:sn},sortOrder:an}=cn;return Ll(sn)&&an});return zt.length?jt.sort((cn,sn)=>{for(let an=0;an<zt.length;an+=1){const Mn=zt[an],{column:{sorter:Nn},sortOrder:In}=Mn,nr=Ll(Nn);if(nr&&In){const Yn=nr(cn,sn,In);if(Yn!==0)return In===vl?Yn:-Yn}}return 0}).map(cn=>{const sn=cn[xt];return sn?Object.assign(Object.assign({},cn),{[xt]:Aa(sn,Ze,xt)}):cn}):jt}function _a(_e){let{prefixCls:Ze,mergedColumns:xt,onSorterChange:Lt,sortDirections:jt,tableLocale:zt,showSorterTooltip:cn}=_e;const[sn,an]=he.useState(cl(xt,!0)),Mn=he.useMemo(()=>{let tr=!0;const _r=cl(xt,!1);if(!_r.length)return sn;const Sr=[];function Rr(Yr){tr?Sr.push(Yr):Sr.push(Object.assign(Object.assign({},Yr),{sortOrder:null}))}let Mr=null;return _r.forEach(Yr=>{Mr===null?(Rr(Yr),Yr.sortOrder&&(Yr.multiplePriority===!1?tr=!1:Mr=!0)):(Mr&&Yr.multiplePriority!==!1||(tr=!1),Rr(Yr))}),Sr},[xt,sn]),Nn=he.useMemo(()=>{const tr=Mn.map(_r=>{let{column:Sr,sortOrder:Rr}=_r;return{column:Sr,order:Rr}});return{sortColumns:tr,sortColumn:tr[0]&&tr[0].column,sortOrder:tr[0]&&tr[0].order}},[Mn]);function In(tr){let _r;tr.multiplePriority===!1||!Mn.length||Mn[0].multiplePriority===!1?_r=[tr]:_r=[].concat((0,Zn.Z)(Mn.filter(Sr=>{let{key:Rr}=Sr;return Rr!==tr.key})),[tr]),an(_r),Lt(yl(_r),_r)}return[tr=>rc(Ze,tr,Mn,In,jt,zt,cn),Mn,Nn,()=>yl(Mn)]}function Qa(_e,Ze){return _e.map(xt=>{const Lt=Object.assign({},xt);return Lt.title=qi(xt.title,Ze),"children"in Lt&&(Lt.children=Qa(Lt.children,Ze)),Lt})}function bs(_e){return[he.useCallback(xt=>Qa(xt,_e),[_e])]}var Xo=Xr((_e,Ze)=>{const{_renderTimes:xt}=_e,{_renderTimes:Lt}=Ze;return xt!==Lt}),Vs=li((_e,Ze)=>{const{_renderTimes:xt}=_e,{_renderTimes:Lt}=Ze;return xt!==Lt}),hs=oe(64993),Ho=oe(17313),qs=oe(83116),el=oe(37613),Tl=_e=>{const{componentCls:Ze}=_e,xt=`${_e.lineWidth}px ${_e.lineType} ${_e.tableBorderColor}`,Lt=(jt,zt,cn)=>({[`&${Ze}-${jt}`]:{[`> ${Ze}-container`]:{[`> ${Ze}-content, > ${Ze}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Ze}-expanded-row-fixed`]:{margin:`-${zt}px -${cn+_e.lineWidth}px`}}}}}});return{[`${Ze}-wrapper`]:{[`${Ze}${Ze}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Ze}-title`]:{border:xt,borderBottom:0},[`> ${Ze}-container`]:{borderInlineStart:xt,borderTop:xt,[`
|
|
|
> ${Ze}-content,
|
|
|
> ${Ze}-header,
|
|
|
> ${Ze}-body,
|
|
|
> ${Ze}-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:xt},"> thead":{"> tr:not(:last-child) > th":{borderBottom:xt},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${Ze}-cell-fix-right-first::after`]:{borderInlineEnd:xt}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Ze}-expanded-row-fixed`]:{margin:`-${_e.tablePaddingVertical}px -${_e.tablePaddingHorizontal+_e.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:_e.lineWidth,bottom:0,borderInlineEnd:xt,content:'""'}}}}}},[`&${Ze}-scroll-horizontal`]:{[`> ${Ze}-container > ${Ze}-body`]:{"> table > tbody":{[`
|
|
|
> tr${Ze}-expanded-row,
|
|
|
> tr${Ze}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Lt("middle",_e.tablePaddingVerticalMiddle,_e.tablePaddingHorizontalMiddle)),Lt("small",_e.tablePaddingVerticalSmall,_e.tablePaddingHorizontalSmall)),{[`> ${Ze}-footer`]:{border:xt,borderTop:0}}),[`${Ze}-cell`]:{[`${Ze}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${_e.lineWidth}px 0 ${_e.lineWidth}px ${_e.tableHeaderBg}`}},[`${Ze}-bordered ${Ze}-cell-scrollbar`]:{borderInlineEnd:xt}}}},vc=_e=>{const{componentCls:Ze}=_e;return{[`${Ze}-wrapper`]:{[`${Ze}-cell-ellipsis`]:Object.assign(Object.assign({},Ho.vS),{wordBreak:"keep-all",[`
|
|
|
&${Ze}-cell-fix-left-last,
|
|
|
&${Ze}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${Ze}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Ze}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},bu=_e=>{const{componentCls:Ze}=_e;return{[`${Ze}-wrapper`]:{[`${Ze}-tbody > tr${Ze}-placeholder`]:{textAlign:"center",color:_e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:_e.colorBgContainer}}}}},Fc=oe(15969),Jc=_e=>{const{componentCls:Ze,antCls:xt,controlInteractiveSize:Lt,motionDurationSlow:jt,lineWidth:zt,paddingXS:cn,lineType:sn,tableBorderColor:an,tableExpandIconBg:Mn,tableExpandColumnWidth:Nn,borderRadius:In,fontSize:nr,fontSizeSM:Yn,lineHeight:tr,tablePaddingVertical:_r,tablePaddingHorizontal:Sr,tableExpandedRowBg:Rr,paddingXXS:Mr}=_e,Yr=Lt/2-zt,Ei=Yr*2+zt*3,Ai=`${zt}px ${sn} ${an}`,ui=Mr-zt;return{[`${Ze}-wrapper`]:{[`${Ze}-expand-icon-col`]:{width:Nn},[`${Ze}-row-expand-icon-cell`]:{textAlign:"center",[`${Ze}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Ze}-row-indent`]:{height:1,float:"left"},[`${Ze}-row-expand-icon`]:Object.assign(Object.assign({},(0,Fc.N)(_e)),{position:"relative",float:"left",boxSizing:"border-box",width:Ei,height:Ei,padding:0,color:"inherit",lineHeight:`${Ei}px`,background:Mn,border:Ai,borderRadius:In,transform:`scale(${Lt/Ei})`,transition:`all ${jt}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${jt} ease-out`,content:'""'},"&::before":{top:Yr,insetInlineEnd:ui,insetInlineStart:ui,height:zt},"&::after":{top:ui,bottom:ui,insetInlineStart:Yr,width:zt,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"}}),[`${Ze}-row-indent + ${Ze}-row-expand-icon`]:{marginTop:(nr*tr-zt*3)/2-Math.ceil((Yn*1.4-zt*3)/2),marginInlineEnd:cn},[`tr${Ze}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Rr}},[`${xt}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Ze}-expanded-row-fixed`]:{position:"relative",margin:`-${_r}px -${Sr}px`,padding:`${_r}px ${Sr}px`}}}},xu=_e=>{const{componentCls:Ze,antCls:xt,iconCls:Lt,tableFilterDropdownWidth:jt,tableFilterDropdownSearchWidth:zt,paddingXXS:cn,paddingXS:sn,colorText:an,lineWidth:Mn,lineType:Nn,tableBorderColor:In,tableHeaderIconColor:nr,fontSizeSM:Yn,tablePaddingHorizontal:tr,borderRadius:_r,motionDurationSlow:Sr,colorTextDescription:Rr,colorPrimary:Mr,tableHeaderFilterActiveBg:Yr,colorTextDisabled:Ei,tableFilterDropdownBg:Ai,tableFilterDropdownHeight:ui,controlItemBgHover:zi,controlItemBgActive:Yi,boxShadowSecondary:ni,filterDropdownMenuBg:yi}=_e,ii=`${xt}-dropdown`,gr=`${Ze}-filter-dropdown`,oi=`${xt}-tree`,_i=`${Mn}px ${Nn} ${In}`;return[{[`${Ze}-wrapper`]:{[`${Ze}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Ze}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-cn,marginInline:`${cn}px ${-tr/2}px`,padding:`0 ${cn}px`,color:nr,fontSize:Yn,borderRadius:_r,cursor:"pointer",transition:`all ${Sr}`,"&:hover":{color:Rr,background:Yr},"&.active":{color:Mr}}}},{[`${xt}-dropdown`]:{[gr]:Object.assign(Object.assign({},(0,Ho.Wf)(_e)),{minWidth:jt,backgroundColor:Ai,borderRadius:_r,boxShadow:ni,overflow:"hidden",[`${ii}-menu`]:{maxHeight:ui,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:yi,"&:empty::after":{display:"block",padding:`${sn}px 0`,color:Ei,fontSize:Yn,textAlign:"center",content:'"Not Found"'}},[`${gr}-tree`]:{paddingBlock:`${sn}px 0`,paddingInline:sn,[oi]:{padding:0},[`${oi}-treenode ${oi}-node-content-wrapper:hover`]:{backgroundColor:zi},[`${oi}-treenode-checkbox-checked ${oi}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Yi}}},[`${gr}-search`]:{padding:sn,borderBottom:_i,"&-input":{input:{minWidth:zt},[Lt]:{color:Ei}}},[`${gr}-checkall`]:{width:"100%",marginBottom:cn,marginInlineStart:cn},[`${gr}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${sn-Mn}px ${sn}px`,overflow:"hidden",borderTop:_i}})}},{[`${xt}-dropdown ${gr}, ${gr}-submenu`]:{[`${xt}-checkbox-wrapper + span`]:{paddingInlineStart:sn,color:an},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},ic=_e=>{const{componentCls:Ze,lineWidth:xt,colorSplit:Lt,motionDurationSlow:jt,zIndexTableFixed:zt,tableBg:cn,zIndexTableSticky:sn}=_e,an=Lt;return{[`${Ze}-wrapper`]:{[`
|
|
|
${Ze}-cell-fix-left,
|
|
|
${Ze}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:zt,background:cn},[`
|
|
|
${Ze}-cell-fix-left-first::after,
|
|
|
${Ze}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-xt,width:30,transform:"translateX(100%)",transition:`box-shadow ${jt}`,content:'""',pointerEvents:"none"},[`${Ze}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${Ze}-cell-fix-right-first::after,
|
|
|
${Ze}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-xt,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${jt}`,content:'""',pointerEvents:"none"},[`${Ze}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:sn+1,width:30,transition:`box-shadow ${jt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Ze}-ping-left`]:{[`&:not(${Ze}-has-fix-left) ${Ze}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${an}`}},[`
|
|
|
${Ze}-cell-fix-left-first::after,
|
|
|
${Ze}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${an}`},[`${Ze}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Ze}-ping-right`]:{[`&:not(${Ze}-has-fix-right) ${Ze}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${an}`}},[`
|
|
|
${Ze}-cell-fix-right-first::after,
|
|
|
${Ze}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${an}`}}}}},Cu=_e=>{const{componentCls:Ze,antCls:xt}=_e;return{[`${Ze}-wrapper`]:{[`${Ze}-pagination${xt}-pagination`]:{margin:`${_e.margin}px 0`},[`${Ze}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:_e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Bl=_e=>{const{componentCls:Ze,tableRadius:xt}=_e;return{[`${Ze}-wrapper`]:{[Ze]:{[`${Ze}-title, ${Ze}-header`]:{borderRadius:`${xt}px ${xt}px 0 0`},[`${Ze}-title + ${Ze}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Ze}-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:xt,borderStartEndRadius:xt,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:xt},"> *:last-child":{borderStartEndRadius:xt}}},"&-footer":{borderRadius:`0 0 ${xt}px ${xt}px`}}}}},Gu=_e=>{const{componentCls:Ze}=_e;return{[`${Ze}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Ze}-pagination-left`]:{justifyContent:"flex-end"},[`${Ze}-pagination-right`]:{justifyContent:"flex-start"},[`${Ze}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Ze}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Ze}-row-indent`]:{float:"right"}}}}},tu=_e=>{const{componentCls:Ze,antCls:xt,iconCls:Lt,fontSizeIcon:jt,padding:zt,paddingXS:cn,tableHeaderIconColor:sn,tableHeaderIconColorHover:an,tableSelectionColumnWidth:Mn}=_e;return{[`${Ze}-wrapper`]:{[`${Ze}-selection-col`]:{width:Mn,[`&${Ze}-selection-col-with-dropdown`]:{width:Mn+jt+zt/4}},[`${Ze}-bordered ${Ze}-selection-col`]:{width:Mn+cn*2,[`&${Ze}-selection-col-with-dropdown`]:{width:Mn+jt+zt/4+cn*2}},[`
|
|
|
table tr th${Ze}-selection-column,
|
|
|
table tr td${Ze}-selection-column
|
|
|
`]:{paddingInlineEnd:_e.paddingXS,paddingInlineStart:_e.paddingXS,textAlign:"center",[`${xt}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Ze}-selection-column${Ze}-cell-fix-left`]:{zIndex:_e.zIndexTableFixed+1},[`table tr th${Ze}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Ze}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Ze}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${_e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${_e.tablePaddingHorizontal/4}px`,[Lt]:{color:sn,fontSize:jt,verticalAlign:"baseline","&:hover":{color:an}}}}}},oc=_e=>{const{componentCls:Ze}=_e,xt=(Lt,jt,zt,cn)=>({[`${Ze}${Ze}-${Lt}`]:{fontSize:cn,[`
|
|
|
${Ze}-title,
|
|
|
${Ze}-footer,
|
|
|
${Ze}-cell,
|
|
|
${Ze}-thead > tr > th,
|
|
|
${Ze}-tbody > tr > th,
|
|
|
${Ze}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${jt}px ${zt}px`},[`${Ze}-filter-trigger`]:{marginInlineEnd:`-${zt/2}px`},[`${Ze}-expanded-row-fixed`]:{margin:`-${jt}px -${zt}px`},[`${Ze}-tbody`]:{[`${Ze}-wrapper:only-child ${Ze}`]:{marginBlock:`-${jt}px`,marginInline:`${_e.tableExpandColumnWidth-zt}px -${zt}px`}},[`${Ze}-selection-column`]:{paddingInlineStart:`${zt/4}px`}}});return{[`${Ze}-wrapper`]:Object.assign(Object.assign({},xt("middle",_e.tablePaddingVerticalMiddle,_e.tablePaddingHorizontalMiddle,_e.tableFontSizeMiddle)),xt("small",_e.tablePaddingVerticalSmall,_e.tablePaddingHorizontalSmall,_e.tableFontSizeSmall))}},$c=_e=>{const{componentCls:Ze,marginXXS:xt,fontSizeIcon:Lt,tableHeaderIconColor:jt,tableHeaderIconColorHover:zt}=_e;return{[`${Ze}-wrapper`]:{[`${Ze}-thead th${Ze}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${_e.motionDurationSlow}`,"&:hover":{background:_e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:_e.colorPrimary},[`
|
|
|
&${Ze}-cell-fix-left:hover,
|
|
|
&${Ze}-cell-fix-right:hover
|
|
|
`]:{background:_e.tableFixedHeaderSortActiveBg}},[`${Ze}-thead th${Ze}-column-sort`]:{background:_e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Ze}-column-sort`]:{background:_e.tableBodySortBg},[`${Ze}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${Ze}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Ze}-column-sorter`]:{marginInlineStart:xt,color:jt,fontSize:0,transition:`color ${_e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Lt,"&.active":{color:_e.colorPrimary}},[`${Ze}-column-sorter-up + ${Ze}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Ze}-column-sorters:hover ${Ze}-column-sorter`]:{color:zt}}}},Ul=_e=>{const{componentCls:Ze,opacityLoading:xt,tableScrollThumbBg:Lt,tableScrollThumbBgHover:jt,tableScrollThumbSize:zt,tableScrollBg:cn,zIndexTableSticky:sn,stickyScrollBarBorderRadius:an}=_e,Mn=`${_e.lineWidth}px ${_e.lineType} ${_e.tableBorderColor}`;return{[`${Ze}-wrapper`]:{[`${Ze}-sticky`]:{"&-holder":{position:"sticky",zIndex:sn,background:_e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${zt}px !important`,zIndex:sn,display:"flex",alignItems:"center",background:cn,borderTop:Mn,opacity:xt,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:zt,backgroundColor:Lt,borderRadius:an,transition:`all ${_e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:jt}}}}}}},Ol=_e=>{const{componentCls:Ze,lineWidth:xt,tableBorderColor:Lt}=_e,jt=`${xt}px ${_e.lineType} ${Lt}`;return{[`${Ze}-wrapper`]:{[`${Ze}-summary`]:{position:"relative",zIndex:_e.zIndexTableFixed,background:_e.tableBg,"> tr":{"> th, > td":{borderBottom:jt}}},[`div${Ze}-summary`]:{boxShadow:`0 -${xt}px 0 ${Lt}`}}}},Pl=_e=>{const{componentCls:Ze}=_e,xt=`${_e.lineWidth}px ${_e.lineType} ${_e.tableBorderColor}`,Lt=`${Ze}-expanded-row-cell`;return{[`${Ze}-wrapper`]:{[`${Ze}-tbody-virtual`]:{[`${Ze}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${Ze}-cell`]:{borderBottom:xt},[`${Ze}-expanded-row`]:{[`${Lt}${Lt}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${_e.lineWidth}px)`,borderInlineEnd:"none"}}},[`${Ze}-bordered`]:{[`${Ze}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:xt,position:"absolute"},[`${Ze}-cell`]:{borderInlineEnd:xt,[`&${Ze}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-_e.lineWidth,borderInlineStart:xt}}}}}}};const $s=_e=>{const{componentCls:Ze,fontWeightStrong:xt,tablePaddingVertical:Lt,tablePaddingHorizontal:jt,lineWidth:zt,lineType:cn,tableBorderColor:sn,tableFontSize:an,tableBg:Mn,tableRadius:Nn,tableHeaderTextColor:In,motionDurationMid:nr,tableHeaderBg:Yn,tableHeaderCellSplitColor:tr,tableRowHoverBg:_r,tableSelectedRowBg:Sr,tableSelectedRowHoverBg:Rr,tableFooterTextColor:Mr,tableFooterBg:Yr,paddingContentVerticalLG:Ei}=_e,Ai=`${zt}px ${cn} ${sn}`;return{[`${Ze}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Ho.dF)()),{[Ze]:Object.assign(Object.assign({},(0,Ho.Wf)(_e)),{fontSize:an,background:Mn,borderRadius:`${Nn}px ${Nn}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Nn}px ${Nn}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${Ze}-cell,
|
|
|
${Ze}-thead > tr > th,
|
|
|
${Ze}-tbody > tr > th,
|
|
|
${Ze}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${Ei}px ${jt}px`,overflowWrap:"break-word"},[`${Ze}-title`]:{padding:`${Lt}px ${jt}px`},[`${Ze}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:In,fontWeight:xt,textAlign:"start",background:Yn,borderBottom:Ai,transition:`background ${nr} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Ze}-selection-column):not(${Ze}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:tr,transform:"translateY(-50%)",transition:`background-color ${nr}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Ze}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${nr}, border-color ${nr}`,borderBottom:Ai,[`
|
|
|
> ${Ze}-wrapper:only-child,
|
|
|
> ${Ze}-expanded-row-fixed > ${Ze}-wrapper:only-child
|
|
|
`]:{[Ze]:{marginBlock:`-${Lt}px`,marginInline:`${_e.tableExpandColumnWidth-jt}px -${jt}px`,[`${Ze}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:In,fontWeight:xt,textAlign:"start",background:Yn,borderBottom:Ai,transition:`background ${nr} ease`},[`
|
|
|
&${Ze}-row:hover > th,
|
|
|
&${Ze}-row:hover > td,
|
|
|
> th${Ze}-cell-row-hover,
|
|
|
> td${Ze}-cell-row-hover
|
|
|
`]:{background:_r},[`&${Ze}-row-selected`]:{"> th, > td":{background:Sr},"&:hover > th, &:hover > td":{background:Rr}}}},[`${Ze}-footer`]:{padding:`${Lt}px ${jt}px`,color:Mr,background:Yr}})}};var Vl=(0,qs.Z)("Table",_e=>{const{colorTextHeading:Ze,colorSplit:xt,colorIcon:Lt,colorIconHover:jt,opacityLoading:zt,colorBgContainer:cn,controlInteractiveSize:sn,headerBg:an,headerColor:Mn,headerSortActiveBg:Nn,headerSortHoverBg:In,bodySortBg:nr,rowHoverBg:Yn,rowSelectedBg:tr,rowSelectedHoverBg:_r,rowExpandedBg:Sr,cellPaddingBlock:Rr,cellPaddingInline:Mr,cellPaddingBlockMD:Yr,cellPaddingInlineMD:Ei,cellPaddingBlockSM:Ai,cellPaddingInlineSM:ui,borderColor:zi,footerBg:Yi,footerColor:ni,headerBorderRadius:yi,cellFontSize:ii,cellFontSizeMD:gr,cellFontSizeSM:oi,headerSplitColor:_i,fixedHeaderSortActiveBg:aa,headerFilterHoverBg:Oi,filterDropdownBg:$r,expandIconBg:Ui,selectionColumnWidth:Xi,stickyScrollBarBg:Ea}=_e,ba=new hs.C(Lt),oo=new hs.C(jt),Ya=2,Gi=(0,el.TS)(_e,{tableFontSize:ii,tableBg:cn,tableRadius:yi,tablePaddingVertical:Rr,tablePaddingHorizontal:Mr,tablePaddingVerticalMiddle:Yr,tablePaddingHorizontalMiddle:Ei,tablePaddingVerticalSmall:Ai,tablePaddingHorizontalSmall:ui,tableBorderColor:zi,tableHeaderTextColor:Mn,tableHeaderBg:an,tableFooterTextColor:ni,tableFooterBg:Yi,tableHeaderCellSplitColor:_i,tableHeaderSortBg:Nn,tableHeaderSortHoverBg:In,tableHeaderIconColor:ba.clone().setAlpha(ba.getAlpha()*zt).toRgbString(),tableHeaderIconColorHover:oo.clone().setAlpha(oo.getAlpha()*zt).toRgbString(),tableBodySortBg:nr,tableFixedHeaderSortActiveBg:aa,tableHeaderFilterActiveBg:Oi,tableFilterDropdownBg:$r,tableRowHoverBg:Yn,tableSelectedRowBg:tr,tableSelectedRowHoverBg:_r,zIndexTableFixed:Ya,zIndexTableSticky:Ya+1,tableFontSizeMiddle:gr,tableFontSizeSmall:oi,tableSelectionColumnWidth:Xi,tableExpandIconBg:Ui,tableExpandColumnWidth:sn+2*_e.padding,tableExpandedRowBg:Sr,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Ea,tableScrollThumbBgHover:Ze,tableScrollBg:xt});return[$s(Gi),Cu(Gi),Ol(Gi),$c(Gi),xu(Gi),Tl(Gi),Bl(Gi),Jc(Gi),Ol(Gi),bu(Gi),tu(Gi),ic(Gi),Ul(Gi),vc(Gi),oc(Gi),Gu(Gi),Pl(Gi)]},_e=>{const{colorFillAlter:Ze,colorBgContainer:xt,colorTextHeading:Lt,colorFillSecondary:jt,colorFillContent:zt,controlItemBgActive:cn,controlItemBgActiveHover:sn,padding:an,paddingSM:Mn,paddingXS:Nn,colorBorderSecondary:In,borderRadiusLG:nr,fontSize:Yn,controlHeight:tr,colorTextPlaceholder:_r}=_e,Sr=new hs.C(jt).onBackground(xt).toHexShortString(),Rr=new hs.C(zt).onBackground(xt).toHexShortString(),Mr=new hs.C(Ze).onBackground(xt).toHexShortString();return{headerBg:Mr,headerColor:Lt,headerSortActiveBg:Sr,headerSortHoverBg:Rr,bodySortBg:Mr,rowHoverBg:Mr,rowSelectedBg:cn,rowSelectedHoverBg:sn,rowExpandedBg:Ze,cellPaddingBlock:an,cellPaddingInline:an,cellPaddingBlockMD:Mn,cellPaddingInlineMD:Nn,cellPaddingBlockSM:Nn,cellPaddingInlineSM:Nn,borderColor:In,headerBorderRadius:nr,footerBg:Mr,footerColor:Lt,cellFontSize:Yn,cellFontSizeMD:Yn,cellFontSizeSM:Yn,headerSplitColor:In,fixedHeaderSortActiveBg:Sr,headerFilterHoverBg:zt,filterDropdownMenuBg:xt,filterDropdownBg:xt,expandIconBg:xt,selectionColumnWidth:tr,stickyScrollBarBg:_r,stickyScrollBarBorderRadius:100}});const nu=[],wu=(_e,Ze)=>{const{prefixCls:xt,className:Lt,rootClassName:jt,style:zt,size:cn,bordered:sn,dropdownPrefixCls:an,dataSource:Mn,pagination:Nn,rowSelection:In,rowKey:nr="key",rowClassName:Yn,columns:tr,children:_r,childrenColumnName:Sr,onChange:Rr,getPopupContainer:Mr,loading:Yr,expandIcon:Ei,expandable:Ai,expandedRowRender:ui,expandIconColumnIndex:zi,indentSize:Yi,scroll:ni,sortDirections:yi,locale:ii,showSorterTooltip:gr=!0,virtual:oi}=_e,_i=he.useMemo(()=>tr||ze(_r),[tr,_r]),aa=he.useMemo(()=>_i.some(Sa=>Sa.responsive),[_i]),Oi=(0,ma.Z)(aa),$r=he.useMemo(()=>{const Sa=new Set(Object.keys(Oi).filter(Ka=>Oi[Ka]));return _i.filter(Ka=>!Ka.responsive||Ka.responsive.some(_o=>Sa.has(_o)))},[_i,Oi]),Ui=(0,mi.Z)(_e,["className","style","columns"]),{locale:Xi=na.Z,direction:Ea,table:ba,renderEmpty:oo,getPrefixCls:Ya,getPopupContainer:Gi}=he.useContext(Ua.E_),So=(0,Wi.Z)(cn),da=Object.assign(Object.assign({},Xi.Table),ii),ro=Mn||nu,Xa=Ya("table",xt),Do=Ya("dropdown",an),Pi=Object.assign({childrenColumnName:Sr,expandIconColumnIndex:zi},Ai),{childrenColumnName:Ii="children"}=Pi,Di=he.useMemo(()=>ro.some(Sa=>Sa==null?void 0:Sa[Ii])?"nest":ui||Ai&&Ai.expandedRowRender?"row":null,[ro]),Si={body:he.useRef()},xa=he.useMemo(()=>typeof nr=="function"?nr:Sa=>Sa==null?void 0:Sa[nr],[nr]),[Mi]=Ms(ro,Ii,xa),Vi={},fa=function(Sa,Ka){let _o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var $a,Ro,ts;const As=Object.assign(Object.assign({},Vi),Sa);_o&&(($a=Vi.resetPagination)===null||$a===void 0||$a.call(Vi),!((Ro=As.pagination)===null||Ro===void 0)&&Ro.current&&(As.pagination.current=1),Nn&&Nn.onChange&&Nn.onChange(1,(ts=As.pagination)===null||ts===void 0?void 0:ts.pageSize)),ni&&ni.scrollToFirstRowOnChange!==!1&&Si.body.current&&(0,la.Z)(0,{getContainer:()=>Si.body.current}),Rr==null||Rr(As.pagination,As.filters,As.sorter,{currentDataSource:uo(Aa(ro,As.sorterStates,Ii),As.filterStates),action:Ka})},ua=(Sa,Ka)=>{fa({sorter:Sa,sorterStates:Ka},"sort",!1)},[Jo,Lo,Hs,Co]=_a({prefixCls:Xa,mergedColumns:$r,onSorterChange:ua,sortDirections:yi||["ascend","descend"],tableLocale:da,showSorterTooltip:gr}),Gs=he.useMemo(()=>Aa(ro,Lo,Ii),[ro,Lo]);Vi.sorter=Co(),Vi.sorterStates=Lo;const Eo=(Sa,Ka)=>{fa({filters:Sa,filterStates:Ka},"filter",!0)},[Zo,bl,ya]=vs({prefixCls:Xa,locale:da,dropdownPrefixCls:Do,mergedColumns:$r,onFilterChange:Eo,getPopupContainer:Mr||Gi}),pr=uo(Gs,bl);Vi.filters=ya,Vi.filterStates=bl;const Ma=he.useMemo(()=>{const Sa={};return Object.keys(ya).forEach(Ka=>{ya[Ka]!==null&&(Sa[Ka]=ya[Ka])}),Object.assign(Object.assign({},Hs),{filters:Sa})},[Hs,ya]),[Ao]=bs(Ma),To=(Sa,Ka)=>{fa({pagination:Object.assign(Object.assign({},Vi.pagination),{current:Sa,pageSize:Ka})},"paginate")},[Hi,Oa]=Js(pr.length,To,Nn);Vi.pagination=Nn===!1?{}:Ko(Hi,Nn),Vi.resetPagination=Oa;const Wo=he.useMemo(()=>{if(Nn===!1||!Hi.pageSize)return pr;const{current:Sa=1,total:Ka,pageSize:_o=No}=Hi;return pr.length<Ka?pr.length>_o?pr.slice((Sa-1)*_o,Sa*_o):pr:pr.slice((Sa-1)*_o,Sa*_o)},[!!Nn,pr,Hi&&Hi.current,Hi&&Hi.pageSize,Hi&&Hi.total]),[Ns,dl]=Ps({prefixCls:Xa,data:pr,pageData:Wo,getRowKey:xa,getRecordByKey:Mi,expandType:Di,childrenColumnName:Ii,locale:da,getPopupContainer:Mr||Gi},In),xs=(Sa,Ka,_o)=>{let $a;return typeof Yn=="function"?$a=Ge()(Yn(Sa,Ka,_o)):$a=Ge()(Yn),Ge()({[`${Xa}-row-selected`]:dl.has(xa(Sa,Ka))},$a)};Pi.__PARENT_RENDER_ICON__=Pi.expandIcon,Pi.expandIcon=Pi.expandIcon||Ei||Ki(da),Di==="nest"&&Pi.expandIconColumnIndex===void 0?Pi.expandIconColumnIndex=In?1:0:Pi.expandIconColumnIndex>0&&In&&(Pi.expandIconColumnIndex-=1),typeof Pi.indentSize!="number"&&(Pi.indentSize=typeof Yi=="number"?Yi:15);const qo=he.useCallback(Sa=>Ao(Ns(Zo(Jo(Sa)))),[Jo,Zo,Ns]);let nl,es;if(Nn!==!1&&(Hi!=null&&Hi.total)){let Sa;Hi.size?Sa=Hi.size:Sa=So==="small"||So==="middle"?"small":void 0;const Ka=Ro=>he.createElement(sr.Z,Object.assign({},Hi,{className:Ge()(`${Xa}-pagination ${Xa}-pagination-${Ro}`,Hi.className),size:Sa})),_o=Ea==="rtl"?"left":"right",{position:$a}=Hi;if($a!==null&&Array.isArray($a)){const Ro=$a.find(Sl=>Sl.includes("top")),ts=$a.find(Sl=>Sl.includes("bottom")),As=$a.every(Sl=>`${Sl}`=="none");!Ro&&!ts&&!As&&(es=Ka(_o)),Ro&&(nl=Ka(Ro.toLowerCase().replace("top",""))),ts&&(es=Ka(ts.toLowerCase().replace("bottom","")))}else es=Ka(_o)}let Ss;typeof Yr=="boolean"?Ss={spinning:Yr}:typeof Yr=="object"&&(Ss=Object.assign({spinning:!0},Yr));const[ss,so]=Vl(Xa),[,lo]=(0,cr.Z)(),ps=Ge()(`${Xa}-wrapper`,ba==null?void 0:ba.className,{[`${Xa}-wrapper-rtl`]:Ea==="rtl"},Lt,jt,so),xl=Object.assign(Object.assign({},ba==null?void 0:ba.style),zt),Zs=ii&&ii.emptyText||(oo==null?void 0:oo("Table"))||he.createElement(Da.Z,{componentName:"Table"}),fl=oi?Vs:Xo,_l={},ru=he.useMemo(()=>{const{fontSize:Sa,lineHeight:Ka,padding:_o,paddingXS:$a,paddingSM:Ro}=lo,ts=Math.floor(Sa*Ka);switch(So){case"large":return _o*2+ts;case"small":return $a*2+ts;default:return Ro*2+ts}},[lo,So]);return oi&&(_l.listItemHeight=ru),ss(he.createElement("div",{ref:Ze,className:ps,style:xl},he.createElement(ur.Z,Object.assign({spinning:!1},Ss),nl,he.createElement(fl,Object.assign({},_l,Ui,{columns:$r,direction:Ea,expandable:Pi,prefixCls:Xa,className:Ge()({[`${Xa}-middle`]:So==="middle",[`${Xa}-small`]:So==="small",[`${Xa}-bordered`]:sn,[`${Xa}-empty`]:ro.length===0}),data:Wo,rowKey:xa,rowClassName:xs,emptyText:Zs,internalHooks:Ae,internalRefs:Si,transformColumns:qo})),es)))};var Eu=he.forwardRef(wu);const Xu=(_e,Ze)=>{const xt=he.useRef(0);return xt.current+=1,he.createElement(Eu,Object.assign({},_e,{ref:Ze,_renderTimes:xt.current}))},ks=he.forwardRef(Xu);ks.SELECTION_COLUMN=mo,ks.EXPAND_COLUMN=ue,ks.SELECTION_ALL=no,ks.SELECTION_INVERT=$o,ks.SELECTION_NONE=Go,ks.Column=Br,ks.ColumnGroup=fi,ks.Summary=Re;var Nl=ks,Ju=Nl},99313:function(fn,Wt,oe){"use strict";oe.d(Wt,{default:function(){return Bt}});var ue=oe(99267),Ae=oe(18785),ke=oe(62772),nt=oe(92310),be=oe.n(nt),Ee=oe(60499),he=oe(18642),xe=oe(85899),Me=oe(72190),Pe=oe(43749),ct=oe(42244),De=oe(59301),Fe=oe(49658),et=oe(18929),We=oe(77900),je=(0,De.createContext)(null),pt=De.forwardRef(function(ze,Xe){var Je=ze.prefixCls,qe=ze.className,Ct=ze.style,Rt=ze.id,rn=ze.active,Vt=ze.tabKey,ln=ze.children;return De.createElement("div",{id:Rt&&"".concat(Rt,"-panel-").concat(Vt),role:"tabpanel",tabIndex:rn?0:-1,"aria-labelledby":Rt&&"".concat(Rt,"-tab-").concat(Vt),"aria-hidden":!rn,style:Ct,className:be()(Je,rn&&"".concat(Je,"-active"),qe),ref:Xe},ln)}),rt=pt,kt=["key","forceRender","style","className"];function ft(ze){var Xe=ze.id,Je=ze.activeKey,qe=ze.animated,Ct=ze.tabPosition,Rt=ze.destroyInactiveTabPane,rn=De.useContext(je),Vt=rn.prefixCls,ln=rn.tabs,Cn=qe.tabPane,An="".concat(Vt,"-tabpane");return De.createElement("div",{className:be()("".concat(Vt,"-content-holder"))},De.createElement("div",{className:be()("".concat(Vt,"-content"),"".concat(Vt,"-content-").concat(Ct),(0,he.Z)({},"".concat(Vt,"-content-animated"),Cn))},ln.map(function(Tn){var Ut=Tn.key,bn=Tn.forceRender,Vn=Tn.style,Fn=Tn.className,Jn=(0,ct.Z)(Tn,kt),Wn=Ut===Je;return De.createElement(We.default,(0,Ee.Z)({key:Ut,visible:Wn,forceRender:bn,removeOnLeave:!!Rt,leavedClassName:"".concat(An,"-hidden")},qe.tabPaneMotion),function(mr,Bn){var rr=mr.style,It=mr.className;return De.createElement(rt,(0,Ee.Z)({},Jn,{prefixCls:An,id:Xe,tabKey:Ut,animated:Cn,active:Wn,style:(0,xe.Z)((0,xe.Z)({},Vn),rr),className:be()(Fn,It),ref:Bn}))})})))}var it=oe(77654),He=oe(29301),Se=oe(6089),Ke=oe(8654),Ue={width:0,height:0,left:0,top:0};function vt(ze,Xe,Je){return(0,De.useMemo)(function(){for(var qe,Ct=new Map,Rt=Xe.get((qe=ze[0])===null||qe===void 0?void 0:qe.key)||Ue,rn=Rt.left+Rt.width,Vt=0;Vt<ze.length;Vt+=1){var ln=ze[Vt].key,Cn=Xe.get(ln);if(!Cn){var An;Cn=Xe.get((An=ze[Vt-1])===null||An===void 0?void 0:An.key)||Ue}var Tn=Ct.get(ln)||(0,xe.Z)({},Cn);Tn.right=rn-Tn.left-Tn.width,Ct.set(ln,Tn)}return Ct},[ze.map(function(qe){return qe.key}).join("_"),Xe,Je])}function Ye(ze,Xe){var Je=De.useRef(ze),qe=De.useState({}),Ct=(0,Me.Z)(qe,2),Rt=Ct[1];function rn(Vt){var ln=typeof Vt=="function"?Vt(Je.current):Vt;ln!==Je.current&&Xe(ln,Je.current),Je.current=ln,Rt({})}return[Je.current,rn]}var st=.1,Ie=.01,Mt=20,Ge=Math.pow(.995,Mt);function Ot(ze,Xe){var Je=(0,De.useState)(),qe=(0,Me.Z)(Je,2),Ct=qe[0],Rt=qe[1],rn=(0,De.useState)(0),Vt=(0,Me.Z)(rn,2),ln=Vt[0],Cn=Vt[1],An=(0,De.useState)(0),Tn=(0,Me.Z)(An,2),Ut=Tn[0],bn=Tn[1],Vn=(0,De.useState)(),Fn=(0,Me.Z)(Vn,2),Jn=Fn[0],Wn=Fn[1],mr=(0,De.useRef)();function Bn(dn){var vn=dn.touches[0],pn=vn.screenX,On=vn.screenY;Rt({x:pn,y:On}),window.clearInterval(mr.current)}function rr(dn){if(Ct){dn.preventDefault();var vn=dn.touches[0],pn=vn.screenX,On=vn.screenY;Rt({x:pn,y:On});var Rn=pn-Ct.x,Gn=On-Ct.y;Xe(Rn,Gn);var Er=Date.now();Cn(Er),bn(Er-ln),Wn({x:Rn,y:Gn})}}function It(){if(Ct&&(Rt(null),Wn(null),Jn)){var dn=Jn.x/Ut,vn=Jn.y/Ut,pn=Math.abs(dn),On=Math.abs(vn);if(Math.max(pn,On)<st)return;var Rn=dn,Gn=vn;mr.current=window.setInterval(function(){if(Math.abs(Rn)<Ie&&Math.abs(Gn)<Ie){window.clearInterval(mr.current);return}Rn*=Ge,Gn*=Ge,Xe(Rn*Mt,Gn*Mt)},Mt)}}var on=(0,De.useRef)();function un(dn){var vn=dn.deltaX,pn=dn.deltaY,On=0,Rn=Math.abs(vn),Gn=Math.abs(pn);Rn===Gn?On=on.current==="x"?vn:pn:Rn>Gn?(On=vn,on.current="x"):(On=pn,on.current="y"),Xe(-On,-On)&&dn.preventDefault()}var xn=(0,De.useRef)(null);xn.current={onTouchStart:Bn,onTouchMove:rr,onTouchEnd:It,onWheel:un},De.useEffect(function(){function dn(Rn){xn.current.onTouchStart(Rn)}function vn(Rn){xn.current.onTouchMove(Rn)}function pn(Rn){xn.current.onTouchEnd(Rn)}function On(Rn){xn.current.onWheel(Rn)}return document.addEventListener("touchmove",vn,{passive:!1}),document.addEventListener("touchend",pn,{passive:!1}),ze.current.addEventListener("touchstart",dn,{passive:!1}),ze.current.addEventListener("wheel",On),function(){document.removeEventListener("touchmove",vn),document.removeEventListener("touchend",pn)}},[])}var wt=oe(34280);function At(ze){var Xe=(0,De.useState)(0),Je=(0,Me.Z)(Xe,2),qe=Je[0],Ct=Je[1],Rt=(0,De.useRef)(0),rn=(0,De.useRef)();return rn.current=ze,(0,wt.o)(function(){var Vt;(Vt=rn.current)===null||Vt===void 0||Vt.call(rn)},[qe]),function(){Rt.current===qe&&(Rt.current+=1,Ct(Rt.current))}}function Nt(ze){var Xe=(0,De.useRef)([]),Je=(0,De.useState)({}),qe=(0,Me.Z)(Je,2),Ct=qe[1],Rt=(0,De.useRef)(typeof ze=="function"?ze():ze),rn=At(function(){var ln=Rt.current;Xe.current.forEach(function(Cn){ln=Cn(ln)}),Xe.current=[],Rt.current=ln,Ct({})});function Vt(ln){Xe.current.push(ln),rn()}return[Rt.current,Vt]}var Tt={width:0,height:0,left:0,top:0,right:0};function Ve(ze,Xe,Je,qe,Ct,Rt,rn){var Vt=rn.tabs,ln=rn.tabPosition,Cn=rn.rtl,An,Tn,Ut;return["top","bottom"].includes(ln)?(An="width",Tn=Cn?"right":"left",Ut=Math.abs(Je)):(An="height",Tn="top",Ut=-Je),(0,De.useMemo)(function(){if(!Vt.length)return[0,0];for(var bn=Vt.length,Vn=bn,Fn=0;Fn<bn;Fn+=1){var Jn=ze.get(Vt[Fn].key)||Tt;if(Jn[Tn]+Jn[An]>Ut+Xe){Vn=Fn-1;break}}for(var Wn=0,mr=bn-1;mr>=0;mr-=1){var Bn=ze.get(Vt[mr].key)||Tt;if(Bn[Tn]<Ut){Wn=mr+1;break}}return Wn>=Vn?[0,0]:[Wn,Vn]},[ze,Xe,qe,Ct,Rt,Ut,ln,Vt.map(function(bn){return bn.key}).join("_"),Cn])}function ye(ze){var Xe;return ze instanceof Map?(Xe={},ze.forEach(function(Je,qe){Xe[qe]=Je})):Xe=ze,JSON.stringify(Xe)}var bt="TABS_DQ";function Qt(ze){return String(ze).replace(/"/g,bt)}function Kt(ze,Xe,Je,qe){return!(!Je||qe||ze===!1||ze===void 0&&(Xe===!1||Xe===null))}function at(ze,Xe){var Je=ze.prefixCls,qe=ze.editable,Ct=ze.locale,Rt=ze.style;return!qe||qe.showAdd===!1?null:De.createElement("button",{ref:Xe,type:"button",className:"".concat(Je,"-nav-add"),style:Rt,"aria-label":(Ct==null?void 0:Ct.addAriaLabel)||"Add tab",onClick:function(Vt){qe.onEdit("add",{event:Vt})}},qe.addIcon||"+")}var lt=De.forwardRef(at),Dt=De.forwardRef(function(ze,Xe){var Je=ze.position,qe=ze.prefixCls,Ct=ze.extra;if(!Ct)return null;var Rt,rn={};return(0,Pe.Z)(Ct)==="object"&&!De.isValidElement(Ct)?rn=Ct:rn.right=Ct,Je==="right"&&(Rt=rn.right),Je==="left"&&(Rt=rn.left),Rt?De.createElement("div",{className:"".concat(qe,"-extra-content"),ref:Xe},Rt):null}),yn=Dt,$t=oe(31561),hn=oe(15285),tn=oe(10228);function en(ze,Xe){var Je=ze.prefixCls,qe=ze.id,Ct=ze.tabs,Rt=ze.locale,rn=ze.mobile,Vt=ze.moreIcon,ln=Vt===void 0?"More":Vt,Cn=ze.moreTransitionName,An=ze.style,Tn=ze.className,Ut=ze.editable,bn=ze.tabBarGutter,Vn=ze.rtl,Fn=ze.removeAriaLabel,Jn=ze.onTabClick,Wn=ze.getPopupContainer,mr=ze.popupClassName,Bn=(0,De.useState)(!1),rr=(0,Me.Z)(Bn,2),It=rr[0],on=rr[1],un=(0,De.useState)(null),xn=(0,Me.Z)(un,2),dn=xn[0],vn=xn[1],pn="".concat(qe,"-more-popup"),On="".concat(Je,"-dropdown"),Rn=dn!==null?"".concat(pn,"-").concat(dn):null,Gn=Rt==null?void 0:Rt.dropdownAriaLabel;function Er(Zr,xr){Zr.preventDefault(),Zr.stopPropagation(),Ut.onEdit("remove",{key:xr,event:Zr})}var Hr=De.createElement(hn.ZP,{onClick:function(xr){var Nr=xr.key,Qr=xr.domEvent;Jn(Nr,Qr),on(!1)},prefixCls:"".concat(On,"-menu"),id:pn,tabIndex:-1,role:"listbox","aria-activedescendant":Rn,selectedKeys:[dn],"aria-label":Gn!==void 0?Gn:"expanded dropdown"},Ct.map(function(Zr){var xr=Zr.closable,Nr=Zr.disabled,Qr=Zr.closeIcon,Kr=Zr.key,hi=Zr.label,Bi=Kt(xr,Qr,Ut,Nr);return De.createElement(hn.sN,{key:Kr,id:"".concat(pn,"-").concat(Kr),role:"option","aria-controls":qe&&"".concat(qe,"-panel-").concat(Kr),disabled:Nr},De.createElement("span",null,hi),Bi&&De.createElement("button",{type:"button","aria-label":Fn||"remove",tabIndex:0,className:"".concat(On,"-menu-item-remove"),onClick:function(Xn){Xn.stopPropagation(),Er(Xn,Kr)}},Qr||Ut.removeIcon||"\xD7"))}));function Xr(Zr){for(var xr=Ct.filter(function(Bi){return!Bi.disabled}),Nr=xr.findIndex(function(Bi){return Bi.key===dn})||0,Qr=xr.length,Kr=0;Kr<Qr;Kr+=1){Nr=(Nr+Zr+Qr)%Qr;var hi=xr[Nr];if(!hi.disabled){vn(hi.key);return}}}function Lr(Zr){var xr=Zr.which;if(!It){[tn.Z.DOWN,tn.Z.SPACE,tn.Z.ENTER].includes(xr)&&(on(!0),Zr.preventDefault());return}switch(xr){case tn.Z.UP:Xr(-1),Zr.preventDefault();break;case tn.Z.DOWN:Xr(1),Zr.preventDefault();break;case tn.Z.ESC:on(!1);break;case tn.Z.SPACE:case tn.Z.ENTER:dn!==null&&Jn(dn,Zr);break}}(0,De.useEffect)(function(){var Zr=document.getElementById(Rn);Zr&&Zr.scrollIntoView&&Zr.scrollIntoView(!1)},[dn]),(0,De.useEffect)(function(){It||vn(null)},[It]);var vr=(0,he.Z)({},Vn?"marginRight":"marginLeft",bn);Ct.length||(vr.visibility="hidden",vr.order=1);var Jr=be()((0,he.Z)({},"".concat(On,"-rtl"),Vn)),Gr=rn?null:De.createElement($t.Z,{prefixCls:On,overlay:Hr,trigger:["hover"],visible:Ct.length?It:!1,transitionName:Cn,onVisibleChange:on,overlayClassName:be()(Jr,mr),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:Wn},De.createElement("button",{type:"button",className:"".concat(Je,"-nav-more"),style:vr,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":pn,id:"".concat(qe,"-more"),"aria-expanded":It,onKeyDown:Lr},ln));return De.createElement("div",{className:be()("".concat(Je,"-nav-operations"),Tn),style:An,ref:Xe},Gr,De.createElement(lt,{prefixCls:Je,locale:Rt,editable:Ut}))}var Gt=De.memo(De.forwardRef(en),function(ze,Xe){return Xe.tabMoving});function ve(ze){var Xe,Je=ze.prefixCls,qe=ze.id,Ct=ze.active,Rt=ze.tab,rn=Rt.key,Vt=Rt.label,ln=Rt.disabled,Cn=Rt.closeIcon,An=ze.closable,Tn=ze.renderWrapper,Ut=ze.removeAriaLabel,bn=ze.editable,Vn=ze.onClick,Fn=ze.onFocus,Jn=ze.style,Wn="".concat(Je,"-tab"),mr=Kt(An,Cn,bn,ln);function Bn(on){ln||Vn(on)}function rr(on){on.preventDefault(),on.stopPropagation(),bn.onEdit("remove",{key:rn,event:on})}var It=De.createElement("div",{key:rn,"data-node-key":Qt(rn),className:be()(Wn,(Xe={},(0,he.Z)(Xe,"".concat(Wn,"-with-remove"),mr),(0,he.Z)(Xe,"".concat(Wn,"-active"),Ct),(0,he.Z)(Xe,"".concat(Wn,"-disabled"),ln),Xe)),style:Jn,onClick:Bn},De.createElement("div",{role:"tab","aria-selected":Ct,id:qe&&"".concat(qe,"-tab-").concat(rn),className:"".concat(Wn,"-btn"),"aria-controls":qe&&"".concat(qe,"-panel-").concat(rn),"aria-disabled":ln,tabIndex:ln?null:0,onClick:function(un){un.stopPropagation(),Bn(un)},onKeyDown:function(un){[tn.Z.SPACE,tn.Z.ENTER].includes(un.which)&&(un.preventDefault(),Bn(un))},onFocus:Fn},Vt),mr&&De.createElement("button",{type:"button","aria-label":Ut||"remove",tabIndex:0,className:"".concat(Wn,"-remove"),onClick:function(un){un.stopPropagation(),rr(un)}},Cn||bn.removeIcon||"\xD7"));return Tn?Tn(It):It}var ce=ve,le=oe(16089),de=function(Xe){var Je=Xe.activeTabOffset,qe=Xe.horizontal,Ct=Xe.rtl,Rt=Xe.indicatorSize,rn=(0,De.useState)(),Vt=(0,Me.Z)(rn,2),ln=Vt[0],Cn=Vt[1],An=(0,De.useRef)(),Tn=function(Vn){return typeof Rt=="function"?Rt(Vn):typeof Rt=="number"?Rt:Vn};function Ut(){le.Z.cancel(An.current)}return(0,De.useEffect)(function(){var bn={};return Je&&(qe?(Ct?(bn.right=Je.right+Je.width/2,bn.transform="translateX(50%)"):(bn.left=Je.left+Je.width/2,bn.transform="translateX(-50%)"),bn.width=Tn(Je.width)):(bn.top=Je.top+Je.height/2,bn.transform="translateY(-50%)",bn.height=Tn(Je.height))),Ut(),An.current=(0,le.Z)(function(){Cn(bn)}),Ut},[Je,qe,Ct,Rt]),{style:ln}},pe=de,ae=function(Xe){var Je=Xe.current||{},qe=Je.offsetWidth,Ct=qe===void 0?0:qe,Rt=Je.offsetHeight,rn=Rt===void 0?0:Rt;return[Ct,rn]},Te=function(Xe,Je){return Xe[Je?0:1]};function gt(ze,Xe){var Je,qe=De.useContext(je),Ct=qe.prefixCls,Rt=qe.tabs,rn=ze.className,Vt=ze.style,ln=ze.id,Cn=ze.animated,An=ze.activeKey,Tn=ze.rtl,Ut=ze.extra,bn=ze.editable,Vn=ze.locale,Fn=ze.tabPosition,Jn=ze.tabBarGutter,Wn=ze.children,mr=ze.onTabClick,Bn=ze.onTabScroll,rr=ze.indicatorSize,It=(0,De.useRef)(),on=(0,De.useRef)(),un=(0,De.useRef)(),xn=(0,De.useRef)(),dn=(0,De.useRef)(),vn=(0,De.useRef)(),pn=(0,De.useRef)(),On=Fn==="top"||Fn==="bottom",Rn=Ye(0,function(lr,Pr){On&&Bn&&Bn({direction:lr>Pr?"left":"right"})}),Gn=(0,Me.Z)(Rn,2),Er=Gn[0],Hr=Gn[1],Xr=Ye(0,function(lr,Pr){!On&&Bn&&Bn({direction:lr>Pr?"top":"bottom"})}),Lr=(0,Me.Z)(Xr,2),vr=Lr[0],Jr=Lr[1],Gr=(0,De.useState)([0,0]),Zr=(0,Me.Z)(Gr,2),xr=Zr[0],Nr=Zr[1],Qr=(0,De.useState)([0,0]),Kr=(0,Me.Z)(Qr,2),hi=Kr[0],Bi=Kr[1],Ur=(0,De.useState)([0,0]),Xn=(0,Me.Z)(Ur,2),Kn=Xn[0],Wr=Xn[1],Tr=(0,De.useState)([0,0]),ri=(0,Me.Z)(Tr,2),pi=ri[0],li=ri[1],$i=Nt(new Map),xi=(0,Me.Z)($i,2),oa=xi[0],Br=xi[1],Ar=vt(Rt,oa,hi[0]),fi=Te(xr,On),mi=Te(hi,On),la=Te(Kn,On),Ua=Te(pi,On),Da=fi<mi+la,Wi=Da?fi-Ua:fi-la,ma="".concat(Ct,"-nav-operations-hidden"),na=0,sr=0;On&&Tn?(na=0,sr=Math.max(0,mi-Wi)):(na=Math.min(0,Wi-mi),sr=0);function ur(lr){return lr<na?na:lr>sr?sr:lr}var cr=(0,De.useRef)(),Or=(0,De.useState)(),Ki=(0,Me.Z)(Or,2),ea=Ki[0],ra=Ki[1];function qi(){ra(Date.now())}function ia(){window.clearTimeout(cr.current)}Ot(xn,function(lr,Pr){function gi(Ti,wi){Ti(function(Ji){var eo=ur(Ji+wi);return eo})}return Da?(On?gi(Hr,lr):gi(Jr,Pr),ia(),qi(),!0):!1}),(0,De.useEffect)(function(){return ia(),ea&&(cr.current=window.setTimeout(function(){ra(0)},100)),ia},[ea]);var ga=Ve(Ar,Wi,On?Er:vr,mi,la,Ua,(0,xe.Z)((0,xe.Z)({},ze),{},{tabs:Rt})),Va=(0,Me.Z)(ga,2),Ra=Va[0],ko=Va[1],co=(0,Se.Z)(function(){var lr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:An,Pr=Ar.get(lr)||{width:0,height:0,left:0,right:0,top:0};if(On){var gi=Er;Tn?Pr.right<Er?gi=Pr.right:Pr.right+Pr.width>Er+Wi&&(gi=Pr.right+Pr.width-Wi):Pr.left<-Er?gi=-Pr.left:Pr.left+Pr.width>-Er+Wi&&(gi=-(Pr.left+Pr.width-Wi)),Jr(0),Hr(ur(gi))}else{var Ti=vr;Pr.top<-vr?Ti=-Pr.top:Pr.top+Pr.height>-vr+Wi&&(Ti=-(Pr.top+Pr.height-Wi)),Hr(0),Jr(ur(Ti))}}),za={};Fn==="top"||Fn==="bottom"?za[Tn?"marginRight":"marginLeft"]=Jn:za.marginTop=Jn;var ds=Rt.map(function(lr,Pr){var gi=lr.key;return De.createElement(ce,{id:ln,prefixCls:Ct,key:gi,tab:lr,style:Pr===0?void 0:za,closable:lr.closable,editable:bn,active:gi===An,renderWrapper:Wn,removeAriaLabel:Vn==null?void 0:Vn.removeAriaLabel,onClick:function(wi){mr(gi,wi)},onFocus:function(){co(gi),qi(),xn.current&&(Tn||(xn.current.scrollLeft=0),xn.current.scrollTop=0)}})}),wo=function(){return Br(function(){var Pr=new Map;return Rt.forEach(function(gi){var Ti,wi=gi.key,Ji=(Ti=dn.current)===null||Ti===void 0?void 0:Ti.querySelector('[data-node-key="'.concat(Qt(wi),'"]'));Ji&&Pr.set(wi,{width:Ji.offsetWidth,height:Ji.offsetHeight,left:Ji.offsetLeft,top:Ji.offsetTop})}),Pr})};(0,De.useEffect)(function(){wo()},[Rt.map(function(lr){return lr.key}).join("_")]);var xo=At(function(){var lr=ae(It),Pr=ae(on),gi=ae(un);Nr([lr[0]-Pr[0]-gi[0],lr[1]-Pr[1]-gi[1]]);var Ti=ae(pn);Wr(Ti);var wi=ae(vn);li(wi);var Ji=ae(dn);Bi([Ji[0]-Ti[0],Ji[1]-Ti[1]]),wo()}),Za=Rt.slice(0,Ra),va=Rt.slice(ko+1),di=[].concat((0,it.Z)(Za),(0,it.Z)(va)),Ri=Ar.get(An),ki=pe({activeTabOffset:Ri,horizontal:On,rtl:Tn,indicatorSize:rr}),ci=ki.style;(0,De.useEffect)(function(){co()},[An,na,sr,ye(Ri),ye(Ar),On]),(0,De.useEffect)(function(){xo()},[Tn]);var Qi=!!di.length,ji="".concat(Ct,"-nav-wrap"),Pa,Wa,Na,mn;return On?Tn?(Wa=Er>0,Pa=Er!==sr):(Pa=Er<0,Wa=Er!==na):(Na=vr<0,mn=vr!==na),De.createElement(He.Z,{onResize:xo},De.createElement("div",{ref:(0,Ke.x1)(Xe,It),role:"tablist",className:be()("".concat(Ct,"-nav"),rn),style:Vt,onKeyDown:function(){qi()}},De.createElement(yn,{ref:on,position:"left",extra:Ut,prefixCls:Ct}),De.createElement(He.Z,{onResize:xo},De.createElement("div",{className:be()(ji,(Je={},(0,he.Z)(Je,"".concat(ji,"-ping-left"),Pa),(0,he.Z)(Je,"".concat(ji,"-ping-right"),Wa),(0,he.Z)(Je,"".concat(ji,"-ping-top"),Na),(0,he.Z)(Je,"".concat(ji,"-ping-bottom"),mn),Je)),ref:xn},De.createElement(He.Z,{onResize:xo},De.createElement("div",{ref:dn,className:"".concat(Ct,"-nav-list"),style:{transform:"translate(".concat(Er,"px, ").concat(vr,"px)"),transition:ea?"none":void 0}},ds,De.createElement(lt,{ref:pn,prefixCls:Ct,locale:Vn,editable:bn,style:(0,xe.Z)((0,xe.Z)({},ds.length===0?void 0:za),{},{visibility:Qi?"hidden":null})}),De.createElement("div",{className:be()("".concat(Ct,"-ink-bar"),(0,he.Z)({},"".concat(Ct,"-ink-bar-animated"),Cn.inkBar)),style:ci}))))),De.createElement(Gt,(0,Ee.Z)({},ze,{removeAriaLabel:Vn==null?void 0:Vn.removeAriaLabel,ref:vn,prefixCls:Ct,tabs:di,className:!Qi&&ma,tabMoving:!!ea})),De.createElement(yn,{ref:un,position:"right",extra:Ut,prefixCls:Ct})))}var Re=De.forwardRef(gt),Be=["renderTabBar"],yt=["label","key"];function ut(ze){var Xe=ze.renderTabBar,Je=(0,ct.Z)(ze,Be),qe=De.useContext(je),Ct=qe.tabs;if(Xe){var Rt=(0,xe.Z)((0,xe.Z)({},Je),{},{panes:Ct.map(function(rn){var Vt=rn.label,ln=rn.key,Cn=(0,ct.Z)(rn,yt);return De.createElement(rt,(0,Ee.Z)({tab:Vt,key:ln,tabKey:ln},Cn))})});return Xe(Rt,Re)}return De.createElement(Re,Je)}var Qe=oe(48736);function St(){var ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},Xe;return ze===!1?Xe={inkBar:!1,tabPane:!1}:ze===!0?Xe={inkBar:!0,tabPane:!1}:Xe=(0,xe.Z)({inkBar:!0},(0,Pe.Z)(ze)==="object"?ze:{}),Xe.tabPaneMotion&&Xe.tabPane===void 0&&(Xe.tabPane=!0),!Xe.tabPaneMotion&&Xe.tabPane&&(Xe.tabPane=!1),Xe}var Jt=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],mt=0;function Ft(ze,Xe){var Je,qe=ze.id,Ct=ze.prefixCls,Rt=Ct===void 0?"rc-tabs":Ct,rn=ze.className,Vt=ze.items,ln=ze.direction,Cn=ze.activeKey,An=ze.defaultActiveKey,Tn=ze.editable,Ut=ze.animated,bn=ze.tabPosition,Vn=bn===void 0?"top":bn,Fn=ze.tabBarGutter,Jn=ze.tabBarStyle,Wn=ze.tabBarExtraContent,mr=ze.locale,Bn=ze.moreIcon,rr=ze.moreTransitionName,It=ze.destroyInactiveTabPane,on=ze.renderTabBar,un=ze.onChange,xn=ze.onTabClick,dn=ze.onTabScroll,vn=ze.getPopupContainer,pn=ze.popupClassName,On=ze.indicatorSize,Rn=(0,ct.Z)(ze,Jt),Gn=De.useMemo(function(){return(Vt||[]).filter(function(li){return li&&(0,Pe.Z)(li)==="object"&&"key"in li})},[Vt]),Er=ln==="rtl",Hr=St(Ut),Xr=(0,De.useState)(!1),Lr=(0,Me.Z)(Xr,2),vr=Lr[0],Jr=Lr[1];(0,De.useEffect)(function(){Jr((0,Fe.Z)())},[]);var Gr=(0,et.Z)(function(){var li;return(li=Gn[0])===null||li===void 0?void 0:li.key},{value:Cn,defaultValue:An}),Zr=(0,Me.Z)(Gr,2),xr=Zr[0],Nr=Zr[1],Qr=(0,De.useState)(function(){return Gn.findIndex(function(li){return li.key===xr})}),Kr=(0,Me.Z)(Qr,2),hi=Kr[0],Bi=Kr[1];(0,De.useEffect)(function(){var li=Gn.findIndex(function(xi){return xi.key===xr});if(li===-1){var $i;li=Math.max(0,Math.min(hi,Gn.length-1)),Nr(($i=Gn[li])===null||$i===void 0?void 0:$i.key)}Bi(li)},[Gn.map(function(li){return li.key}).join("_"),xr,hi]);var Ur=(0,et.Z)(null,{value:qe}),Xn=(0,Me.Z)(Ur,2),Kn=Xn[0],Wr=Xn[1];(0,De.useEffect)(function(){qe||(Wr("rc-tabs-".concat(mt)),mt+=1)},[]);function Tr(li,$i){xn==null||xn(li,$i);var xi=li!==xr;Nr(li),xi&&(un==null||un(li))}var ri={id:Kn,activeKey:xr,animated:Hr,tabPosition:Vn,rtl:Er,mobile:vr},pi=(0,xe.Z)((0,xe.Z)({},ri),{},{editable:Tn,locale:mr,moreIcon:Bn,moreTransitionName:rr,tabBarGutter:Fn,onTabClick:Tr,onTabScroll:dn,extra:Wn,style:Jn,panes:null,getPopupContainer:vn,popupClassName:pn,indicatorSize:On});return De.createElement(je.Provider,{value:{tabs:Gn,prefixCls:Rt}},De.createElement("div",(0,Ee.Z)({ref:Xe,id:qe,className:be()(Rt,"".concat(Rt,"-").concat(Vn),(Je={},(0,he.Z)(Je,"".concat(Rt,"-mobile"),vr),(0,he.Z)(Je,"".concat(Rt,"-editable"),Tn),(0,he.Z)(Je,"".concat(Rt,"-rtl"),Er),Je),rn)},Rn),De.createElement(ut,(0,Ee.Z)({},pi,{renderTabBar:on})),De.createElement(ft,(0,Ee.Z)({destroyInactiveTabPane:It},ri,{animated:Hr}))))}var nn=De.forwardRef(Ft),ht=nn,Le=ht,dt=oe(36355),Pt=oe(19716),Xt=()=>null,gn=oe(62892);const En={motionAppear:!1,motionEnter:!0,motionLeave:!0};function wn(ze){let Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},Je;return Xe===!1?Je={inkBar:!1,tabPane:!1}:Xe===!0?Je={inkBar:!0,tabPane:!0}:Je=Object.assign({inkBar:!0},typeof Xe=="object"?Xe:{}),Je.tabPane&&(Je.tabPaneMotion=Object.assign(Object.assign({},En),{motionName:(0,gn.m)(ze,"switch")})),Je}var _n=oe(11592),$n=function(ze,Xe){var Je={};for(var qe in ze)Object.prototype.hasOwnProperty.call(ze,qe)&&Xe.indexOf(qe)<0&&(Je[qe]=ze[qe]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,qe=Object.getOwnPropertySymbols(ze);Ct<qe.length;Ct++)Xe.indexOf(qe[Ct])<0&&Object.prototype.propertyIsEnumerable.call(ze,qe[Ct])&&(Je[qe[Ct]]=ze[qe[Ct]]);return Je};function Dn(ze){return ze.filter(Xe=>Xe)}function qn(ze,Xe){if(ze)return ze;const Je=(0,_n.Z)(Xe).map(qe=>{if(De.isValidElement(qe)){const{key:Ct,props:Rt}=qe,rn=Rt||{},{tab:Vt}=rn,ln=$n(rn,["tab"]);return Object.assign(Object.assign({key:String(Ct)},ln),{label:Vt})}return null});return Dn(Je)}var fr=oe(17313),br=oe(83116),Zn=oe(37613),ar=oe(13826),jn=ze=>{const{componentCls:Xe,motionDurationSlow:Je}=ze;return[{[Xe]:{[`${Xe}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${Je}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${Je}`}}}}},[(0,ar.oN)(ze,"slide-up"),(0,ar.oN)(ze,"slide-down")]]};const Dr=ze=>{const{componentCls:Xe,tabsCardPadding:Je,cardBg:qe,cardGutter:Ct,colorBorderSecondary:Rt,itemSelectedColor:rn}=ze;return{[`${Xe}-card`]:{[`> ${Xe}-nav, > div > ${Xe}-nav`]:{[`${Xe}-tab`]:{margin:0,padding:Je,background:qe,border:`${ze.lineWidth}px ${ze.lineType} ${Rt}`,transition:`all ${ze.motionDurationSlow} ${ze.motionEaseInOut}`},[`${Xe}-tab-active`]:{color:rn,background:ze.colorBgContainer},[`${Xe}-ink-bar`]:{visibility:"hidden"}},[`&${Xe}-top, &${Xe}-bottom`]:{[`> ${Xe}-nav, > div > ${Xe}-nav`]:{[`${Xe}-tab + ${Xe}-tab`]:{marginLeft:{_skip_check_:!0,value:`${Ct}px`}}}},[`&${Xe}-top`]:{[`> ${Xe}-nav, > div > ${Xe}-nav`]:{[`${Xe}-tab`]:{borderRadius:`${ze.borderRadiusLG}px ${ze.borderRadiusLG}px 0 0`},[`${Xe}-tab-active`]:{borderBottomColor:ze.colorBgContainer}}},[`&${Xe}-bottom`]:{[`> ${Xe}-nav, > div > ${Xe}-nav`]:{[`${Xe}-tab`]:{borderRadius:`0 0 ${ze.borderRadiusLG}px ${ze.borderRadiusLG}px`},[`${Xe}-tab-active`]:{borderTopColor:ze.colorBgContainer}}},[`&${Xe}-left, &${Xe}-right`]:{[`> ${Xe}-nav, > div > ${Xe}-nav`]:{[`${Xe}-tab + ${Xe}-tab`]:{marginTop:`${Ct}px`}}},[`&${Xe}-left`]:{[`> ${Xe}-nav, > div > ${Xe}-nav`]:{[`${Xe}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ze.borderRadiusLG}px 0 0 ${ze.borderRadiusLG}px`}},[`${Xe}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:ze.colorBgContainer}}}},[`&${Xe}-right`]:{[`> ${Xe}-nav, > div > ${Xe}-nav`]:{[`${Xe}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ze.borderRadiusLG}px ${ze.borderRadiusLG}px 0`}},[`${Xe}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:ze.colorBgContainer}}}}}}},ei=ze=>{const{componentCls:Xe,itemHoverColor:Je,dropdownEdgeChildVerticalPadding:qe}=ze;return{[`${Xe}-dropdown`]:Object.assign(Object.assign({},(0,fr.Wf)(ze)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:ze.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${Xe}-dropdown-menu`]:{maxHeight:ze.tabsDropdownHeight,margin:0,padding:`${qe}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:ze.colorBgContainer,backgroundClip:"padding-box",borderRadius:ze.borderRadiusLG,outline:"none",boxShadow:ze.boxShadowSecondary,"&-item":Object.assign(Object.assign({},fr.vS),{display:"flex",alignItems:"center",minWidth:ze.tabsDropdownWidth,margin:0,padding:`${ze.paddingXXS}px ${ze.paddingSM}px`,color:ze.colorText,fontWeight:"normal",fontSize:ze.fontSize,lineHeight:ze.lineHeight,cursor:"pointer",transition:`all ${ze.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:ze.marginSM},color:ze.colorTextDescription,fontSize:ze.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:Je}},"&:hover":{background:ze.controlItemBgHover},"&-disabled":{"&, &:hover":{color:ze.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Fr=ze=>{const{componentCls:Xe,margin:Je,colorBorderSecondary:qe,horizontalMargin:Ct,verticalItemPadding:Rt,verticalItemMargin:rn}=ze;return{[`${Xe}-top, ${Xe}-bottom`]:{flexDirection:"column",[`> ${Xe}-nav, > div > ${Xe}-nav`]:{margin:Ct,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${ze.lineWidth}px ${ze.lineType} ${qe}`,content:"''"},[`${Xe}-ink-bar`]:{height:ze.lineWidthBold,"&-animated":{transition:`width ${ze.motionDurationSlow}, left ${ze.motionDurationSlow},
|
|
|
right ${ze.motionDurationSlow}`}},[`${Xe}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:ze.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:ze.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:ze.boxShadowTabsOverflowRight},[`&${Xe}-nav-wrap-ping-left::before`]:{opacity:1},[`&${Xe}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${Xe}-top`]:{[`> ${Xe}-nav,
|
|
|
> div > ${Xe}-nav`]:{"&::before":{bottom:0},[`${Xe}-ink-bar`]:{bottom:0}}},[`${Xe}-bottom`]:{[`> ${Xe}-nav, > div > ${Xe}-nav`]:{order:1,marginTop:`${Je}px`,marginBottom:0,"&::before":{top:0},[`${Xe}-ink-bar`]:{top:0}},[`> ${Xe}-content-holder, > div > ${Xe}-content-holder`]:{order:0}},[`${Xe}-left, ${Xe}-right`]:{[`> ${Xe}-nav, > div > ${Xe}-nav`]:{flexDirection:"column",minWidth:ze.controlHeight*1.25,[`${Xe}-tab`]:{padding:Rt,textAlign:"center"},[`${Xe}-tab + ${Xe}-tab`]:{margin:rn},[`${Xe}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:ze.controlHeight},"&::before":{top:0,boxShadow:ze.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:ze.boxShadowTabsOverflowBottom},[`&${Xe}-nav-wrap-ping-top::before`]:{opacity:1},[`&${Xe}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${Xe}-ink-bar`]:{width:ze.lineWidthBold,"&-animated":{transition:`height ${ze.motionDurationSlow}, top ${ze.motionDurationSlow}`}},[`${Xe}-nav-list, ${Xe}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${Xe}-left`]:{[`> ${Xe}-nav, > div > ${Xe}-nav`]:{[`${Xe}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${Xe}-content-holder, > div > ${Xe}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${ze.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${ze.lineWidth}px ${ze.lineType} ${ze.colorBorder}`},[`> ${Xe}-content > ${Xe}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:ze.paddingLG}}}},[`${Xe}-right`]:{[`> ${Xe}-nav, > div > ${Xe}-nav`]:{order:1,[`${Xe}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${Xe}-content-holder, > div > ${Xe}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-ze.lineWidth},borderRight:{_skip_check_:!0,value:`${ze.lineWidth}px ${ze.lineType} ${ze.colorBorder}`},[`> ${Xe}-content > ${Xe}-tabpane`]:{paddingRight:{_skip_check_:!0,value:ze.paddingLG}}}}}},ai=ze=>{const{componentCls:Xe,cardPaddingSM:Je,cardPaddingLG:qe,horizontalItemPaddingSM:Ct,horizontalItemPaddingLG:Rt}=ze;return{[Xe]:{"&-small":{[`> ${Xe}-nav`]:{[`${Xe}-tab`]:{padding:Ct,fontSize:ze.titleFontSizeSM}}},"&-large":{[`> ${Xe}-nav`]:{[`${Xe}-tab`]:{padding:Rt,fontSize:ze.titleFontSizeLG}}}},[`${Xe}-card`]:{[`&${Xe}-small`]:{[`> ${Xe}-nav`]:{[`${Xe}-tab`]:{padding:Je}},[`&${Xe}-bottom`]:{[`> ${Xe}-nav ${Xe}-tab`]:{borderRadius:`0 0 ${ze.borderRadius}px ${ze.borderRadius}px`}},[`&${Xe}-top`]:{[`> ${Xe}-nav ${Xe}-tab`]:{borderRadius:`${ze.borderRadius}px ${ze.borderRadius}px 0 0`}},[`&${Xe}-right`]:{[`> ${Xe}-nav ${Xe}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ze.borderRadius}px ${ze.borderRadius}px 0`}}},[`&${Xe}-left`]:{[`> ${Xe}-nav ${Xe}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ze.borderRadius}px 0 0 ${ze.borderRadius}px`}}}},[`&${Xe}-large`]:{[`> ${Xe}-nav`]:{[`${Xe}-tab`]:{padding:qe}}}}}},ti=ze=>{const{componentCls:Xe,itemActiveColor:Je,itemHoverColor:qe,iconCls:Ct,tabsHorizontalItemMargin:Rt,horizontalItemPadding:rn,itemSelectedColor:Vt,itemColor:ln}=ze,Cn=`${Xe}-tab`;return{[Cn]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:rn,fontSize:ze.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:ln,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:Je}},(0,fr.Qy)(ze)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-ze.marginXXS},marginLeft:{_skip_check_:!0,value:ze.marginXS},color:ze.colorTextDescription,fontSize:ze.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${ze.motionDurationSlow}`,"&:hover":{color:ze.colorTextHeading}},"&:hover":{color:qe},[`&${Cn}-active ${Cn}-btn`]:{color:Vt,textShadow:ze.tabsActiveTextShadow},[`&${Cn}-disabled`]:{color:ze.colorTextDisabled,cursor:"not-allowed"},[`&${Cn}-disabled ${Cn}-btn, &${Cn}-disabled ${Xe}-remove`]:{"&:focus, &:active":{color:ze.colorTextDisabled}},[`& ${Cn}-remove ${Ct}`]:{margin:0},[Ct]:{marginRight:{_skip_check_:!0,value:ze.marginSM}}},[`${Cn} + ${Cn}`]:{margin:{_skip_check_:!0,value:Rt}}}},er=ze=>{const{componentCls:Xe,tabsHorizontalItemMarginRTL:Je,iconCls:qe,cardGutter:Ct}=ze;return{[`${Xe}-rtl`]:{direction:"rtl",[`${Xe}-nav`]:{[`${Xe}-tab`]:{margin:{_skip_check_:!0,value:Je},[`${Xe}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[qe]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${ze.marginSM}px`}},[`${Xe}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${ze.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${ze.marginXXS}px`},[qe]:{margin:0}}}},[`&${Xe}-left`]:{[`> ${Xe}-nav`]:{order:1},[`> ${Xe}-content-holder`]:{order:0}},[`&${Xe}-right`]:{[`> ${Xe}-nav`]:{order:0},[`> ${Xe}-content-holder`]:{order:1}},[`&${Xe}-card${Xe}-top, &${Xe}-card${Xe}-bottom`]:{[`> ${Xe}-nav, > div > ${Xe}-nav`]:{[`${Xe}-tab + ${Xe}-tab`]:{marginRight:{_skip_check_:!0,value:Ct},marginLeft:{_skip_check_:!0,value:0}}}}},[`${Xe}-dropdown-rtl`]:{direction:"rtl"},[`${Xe}-menu-item`]:{[`${Xe}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},hr=ze=>{const{componentCls:Xe,tabsCardPadding:Je,cardHeight:qe,cardGutter:Ct,itemHoverColor:Rt,itemActiveColor:rn,colorBorderSecondary:Vt}=ze;return{[Xe]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,fr.Wf)(ze)),{display:"flex",[`> ${Xe}-nav, > div > ${Xe}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${Xe}-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 ${ze.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${Xe}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${ze.motionDurationSlow}`},[`${Xe}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${Xe}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${Xe}-nav-more`]:{position:"relative",padding:Je,background:"transparent",border:0,color:ze.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:ze.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${Xe}-nav-add`]:Object.assign({minWidth:qe,marginLeft:{_skip_check_:!0,value:Ct},padding:`0 ${ze.paddingXS}px`,background:"transparent",border:`${ze.lineWidth}px ${ze.lineType} ${Vt}`,borderRadius:`${ze.borderRadiusLG}px ${ze.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:ze.colorText,transition:`all ${ze.motionDurationSlow} ${ze.motionEaseInOut}`,"&:hover":{color:Rt},"&:active, &:focus:not(:focus-visible)":{color:rn}},(0,fr.Qy)(ze))},[`${Xe}-extra-content`]:{flex:"none"},[`${Xe}-ink-bar`]:{position:"absolute",background:ze.inkBarColor,pointerEvents:"none"}}),ti(ze)),{[`${Xe}-content`]:{position:"relative",width:"100%"},[`${Xe}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${Xe}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${Xe}-centered`]:{[`> ${Xe}-nav, > div > ${Xe}-nav`]:{[`${Xe}-nav-wrap`]:{[`&:not([class*='${Xe}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var zn=(0,br.Z)("Tabs",ze=>{const Xe=(0,Zn.TS)(ze,{tabsCardPadding:ze.cardPadding||`${(ze.cardHeight-Math.round(ze.fontSize*ze.lineHeight))/2-ze.lineWidth}px ${ze.padding}px`,dropdownEdgeChildVerticalPadding:ze.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${ze.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${ze.horizontalItemGutter}px`});return[ai(Xe),er(Xe),Fr(Xe),ei(Xe),Dr(Xe),hr(Xe),jn(Xe)]},ze=>{const Xe=ze.controlHeightLG;return{zIndexPopup:ze.zIndexPopupBase+50,cardBg:ze.colorFillAlter,cardHeight:Xe,cardPadding:"",cardPaddingSM:`${ze.paddingXXS*1.5}px ${ze.padding}px`,cardPaddingLG:`${ze.paddingXS}px ${ze.padding}px ${ze.paddingXXS*1.5}px`,titleFontSize:ze.fontSize,titleFontSizeLG:ze.fontSizeLG,titleFontSizeSM:ze.fontSize,inkBarColor:ze.colorPrimary,horizontalMargin:`0 0 ${ze.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${ze.paddingSM}px 0`,horizontalItemPaddingSM:`${ze.paddingXS}px 0`,horizontalItemPaddingLG:`${ze.padding}px 0`,verticalItemPadding:`${ze.paddingXS}px ${ze.paddingLG}px`,verticalItemMargin:`${ze.margin}px 0 0 0`,itemColor:ze.colorText,itemSelectedColor:ze.colorPrimary,itemHoverColor:ze.colorPrimaryHover,itemActiveColor:ze.colorPrimaryActive,cardGutter:ze.marginXXS/2}}),Hn=function(ze,Xe){var Je={};for(var qe in ze)Object.prototype.hasOwnProperty.call(ze,qe)&&Xe.indexOf(qe)<0&&(Je[qe]=ze[qe]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,qe=Object.getOwnPropertySymbols(ze);Ct<qe.length;Ct++)Xe.indexOf(qe[Ct])<0&&Object.prototype.propertyIsEnumerable.call(ze,qe[Ct])&&(Je[qe[Ct]]=ze[qe[Ct]]);return Je};const wr=ze=>{const{type:Xe,className:Je,rootClassName:qe,size:Ct,onEdit:Rt,hideAdd:rn,centered:Vt,addIcon:ln,popupClassName:Cn,children:An,items:Tn,animated:Ut,style:bn,indicatorSize:Vn}=ze,Fn=Hn(ze,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:Jn,moreIcon:Wn=De.createElement(Ae.Z,null)}=Fn,{direction:mr,tabs:Bn,getPrefixCls:rr,getPopupContainer:It}=De.useContext(dt.E_),on=rr("tabs",Jn),[un,xn]=zn(on);let dn;Xe==="editable-card"&&(dn={onEdit:(Er,Hr)=>{let{key:Xr,event:Lr}=Hr;Rt==null||Rt(Er==="add"?Lr:Xr,Er)},removeIcon:De.createElement(ue.Z,null),addIcon:ln||De.createElement(ke.Z,null),showAdd:rn!==!0});const vn=rr(),pn=qn(Tn,An),On=wn(on,Ut),Rn=(0,Pt.Z)(Ct),Gn=Object.assign(Object.assign({},Bn==null?void 0:Bn.style),bn);return un(De.createElement(Le,Object.assign({direction:mr,getPopupContainer:It,moreTransitionName:`${vn}-slide-up`},Fn,{items:pn,className:be()({[`${on}-${Rn}`]:Rn,[`${on}-card`]:["card","editable-card"].includes(Xe),[`${on}-editable-card`]:Xe==="editable-card",[`${on}-centered`]:Vt},Bn==null?void 0:Bn.className,Je,qe,xn),popupClassName:be()(Cn,xn),style:Gn,editable:dn,moreIcon:Wn,prefixCls:on,animated:On,indicatorSize:Vn!=null?Vn:Bn==null?void 0:Bn.indicatorSize})))};wr.TabPane=Xt;var Bt=wr},17574:function(fn,Wt,oe){"use strict";oe.d(Wt,{default:function(){return Ve}});var ue=oe(38028),Ae=oe(77654),ke=oe(52671),nt=oe(8657),be=oe(60499),Ee=oe(59301),he={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"},xe=he,Me=oe(7657),Pe=function(bt,Qt){return Ee.createElement(Me.Z,(0,be.Z)({},bt,{ref:Qt,icon:xe}))},ct=Ee.forwardRef(Pe),De=ct,Fe=oe(92310),et=oe.n(Fe),We=oe(35654),je=oe(71430),pt=oe(36355),rt=oe(56082),kt=oe(62892),ft=oe(20648);const it=4;function He(ye){const{dropPosition:bt,dropLevelOffset:Qt,prefixCls:Kt,indent:at,direction:lt="ltr"}=ye,Dt=lt==="ltr"?"left":"right",yn=lt==="ltr"?"right":"left",$t={[Dt]:-Qt*at+it,[yn]:0};switch(bt){case-1:$t.top=-3;break;case 1:$t.bottom=-3;break;default:$t.bottom=-3,$t[Dt]=at+it;break}return Ee.createElement("div",{style:$t,className:`${Kt}-drop-indicator`})}var Se=oe(71997),Ue=Ee.forwardRef((ye,bt)=>{const{getPrefixCls:Qt,direction:Kt,virtual:at,tree:lt}=Ee.useContext(pt.E_),{prefixCls:Dt,className:yn,showIcon:$t=!1,showLine:hn,switcherIcon:tn,blockNode:en=!1,children:Gt,checkable:ve=!1,selectable:ce=!0,draggable:le,motion:de,style:pe}=ye,ae=Qt("tree",Dt),Te=Qt(),gt=de!=null?de:Object.assign(Object.assign({},(0,kt.Z)(Te)),{motionAppear:!1}),Re=Object.assign(Object.assign({},ye),{checkable:ve,selectable:ce,showIcon:$t,motion:gt,blockNode:en,showLine:!!hn,dropIndicatorRender:He}),[Be,yt]=(0,ft.ZP)(ae),ut=Ee.useMemo(()=>{if(!le)return!1;let St={};switch(typeof le){case"function":St.nodeDraggable=le;break;case"object":St=Object.assign({},le);break;default:break}return St.icon!==!1&&(St.icon=St.icon||Ee.createElement(rt.Z,null)),St},[le]),Qe=St=>Ee.createElement(Se.Z,{prefixCls:ae,switcherIcon:tn,treeNodeProps:St,showLine:hn});return Be(Ee.createElement(ue.Z,Object.assign({itemHeight:20,ref:bt,virtual:at},Re,{style:Object.assign(Object.assign({},lt==null?void 0:lt.style),pe),prefixCls:ae,className:et()({[`${ae}-icon-hide`]:!$t,[`${ae}-block-node`]:en,[`${ae}-unselectable`]:!ce,[`${ae}-rtl`]:Kt==="rtl"},lt==null?void 0:lt.className,yn,yt),direction:Kt,checkable:ve&&Ee.createElement("span",{className:`${ae}-checkbox-inner`}),selectable:ce,switcherIcon:Qe,draggable:ut}),Gt))}),vt;(function(ye){ye[ye.None=0]="None",ye[ye.Start=1]="Start",ye[ye.End=2]="End"})(vt||(vt={}));function Ye(ye,bt){function Qt(Kt){const{key:at,children:lt}=Kt;bt(at,Kt)!==!1&&Ye(lt||[],bt)}ye.forEach(Qt)}function st(ye){let{treeData:bt,expandedKeys:Qt,startKey:Kt,endKey:at}=ye;const lt=[];let Dt=vt.None;if(Kt&&Kt===at)return[Kt];if(!Kt||!at)return[];function yn($t){return $t===Kt||$t===at}return Ye(bt,$t=>{if(Dt===vt.End)return!1;if(yn($t)){if(lt.push($t),Dt===vt.None)Dt=vt.Start;else if(Dt===vt.Start)return Dt=vt.End,!1}else Dt===vt.Start&<.push($t);return Qt.includes($t)}),lt}function Ie(ye,bt){const Qt=(0,Ae.Z)(bt),Kt=[];return Ye(ye,(at,lt)=>{const Dt=Qt.indexOf(at);return Dt!==-1&&(Kt.push(lt),Qt.splice(Dt,1)),!!Qt.length}),Kt}var Mt=function(ye,bt){var Qt={};for(var Kt in ye)Object.prototype.hasOwnProperty.call(ye,Kt)&&bt.indexOf(Kt)<0&&(Qt[Kt]=ye[Kt]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,Kt=Object.getOwnPropertySymbols(ye);at<Kt.length;at++)bt.indexOf(Kt[at])<0&&Object.prototype.propertyIsEnumerable.call(ye,Kt[at])&&(Qt[Kt[at]]=ye[Kt[at]]);return Qt};function Ge(ye){const{isLeaf:bt,expanded:Qt}=ye;return bt?Ee.createElement(ke.Z,null):Qt?Ee.createElement(nt.Z,null):Ee.createElement(De,null)}function Ot(ye){let{treeData:bt,children:Qt}=ye;return bt||(0,je.zn)(Qt)}const wt=(ye,bt)=>{var{defaultExpandAll:Qt,defaultExpandParent:Kt,defaultExpandedKeys:at}=ye,lt=Mt(ye,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Dt=Ee.useRef(),yn=Ee.useRef(),$t=()=>{const{keyEntities:ut}=(0,je.I8)(Ot(lt));let Qe;return Qt?Qe=Object.keys(ut):Kt?Qe=(0,We.r7)(lt.expandedKeys||at||[],ut):Qe=lt.expandedKeys||at,Qe},[hn,tn]=Ee.useState(lt.selectedKeys||lt.defaultSelectedKeys||[]),[en,Gt]=Ee.useState(()=>$t());Ee.useEffect(()=>{"selectedKeys"in lt&&tn(lt.selectedKeys)},[lt.selectedKeys]),Ee.useEffect(()=>{"expandedKeys"in lt&&Gt(lt.expandedKeys)},[lt.expandedKeys]);const ve=(ut,Qe)=>{var St;return"expandedKeys"in lt||Gt(ut),(St=lt.onExpand)===null||St===void 0?void 0:St.call(lt,ut,Qe)},ce=(ut,Qe)=>{var St;const{multiple:Jt}=lt,{node:mt,nativeEvent:Ft}=Qe,{key:nn=""}=mt,ht=Ot(lt),Le=Object.assign(Object.assign({},Qe),{selected:!0}),dt=(Ft==null?void 0:Ft.ctrlKey)||(Ft==null?void 0:Ft.metaKey),Pt=Ft==null?void 0:Ft.shiftKey;let _t;Jt&&dt?(_t=ut,Dt.current=nn,yn.current=_t,Le.selectedNodes=Ie(ht,_t)):Jt&&Pt?(_t=Array.from(new Set([].concat((0,Ae.Z)(yn.current||[]),(0,Ae.Z)(st({treeData:ht,expandedKeys:en,startKey:nn,endKey:Dt.current}))))),Le.selectedNodes=Ie(ht,_t)):(_t=[nn],Dt.current=nn,yn.current=_t,Le.selectedNodes=Ie(ht,_t)),(St=lt.onSelect)===null||St===void 0||St.call(lt,_t,Le),"selectedKeys"in lt||tn(_t)},{getPrefixCls:le,direction:de}=Ee.useContext(pt.E_),{prefixCls:pe,className:ae,showIcon:Te=!0,expandAction:gt="click"}=lt,Re=Mt(lt,["prefixCls","className","showIcon","expandAction"]),Be=le("tree",pe),yt=et()(`${Be}-directory`,{[`${Be}-directory-rtl`]:de==="rtl"},ae);return Ee.createElement(Ue,Object.assign({icon:Ge,ref:bt,blockNode:!0},Re,{showIcon:Te,expandAction:gt,prefixCls:Be,className:yt,expandedKeys:en,selectedKeys:hn,onSelect:ce,onExpand:ve}))};var Nt=Ee.forwardRef(wt);const Tt=Ue;Tt.DirectoryTree=Nt,Tt.TreeNode=ue.O;var Ve=Tt},20648:function(fn,Wt,oe){"use strict";oe.d(Wt,{TM:function(){return Fe},Yk:function(){return De}});var ue=oe(36237),Ae=oe(98447),ke=oe(17313),nt=oe(8378),be=oe(37613),Ee=oe(83116);const he=new ue.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),xe=(et,We)=>({[`.${et}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${We.motionDurationSlow}`}}}),Me=(et,We)=>({[`.${et}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:We.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${We.lineWidthBold}px solid ${We.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Pe=(et,We)=>{const{treeCls:je,treeNodeCls:pt,treeNodePadding:rt,titleHeight:kt,nodeSelectedBg:ft,nodeHoverBg:it}=We,He=We.paddingXS;return{[je]:Object.assign(Object.assign({},(0,ke.Wf)(We)),{background:We.colorBgContainer,borderRadius:We.borderRadius,transition:`background-color ${We.motionDurationSlow}`,[`&${je}-rtl`]:{[`${je}-switcher`]:{"&_close":{[`${je}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${je}-active-focused)`]:Object.assign({},(0,ke.oN)(We)),[`${je}-list-holder-inner`]:{alignItems:"flex-start"},[`&${je}-block-node`]:{[`${je}-list-holder-inner`]:{alignItems:"stretch",[`${je}-node-content-wrapper`]:{flex:"auto"},[`${pt}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:rt,insetInlineStart:0,border:`1px solid ${We.colorPrimary}`,opacity:0,animationName:he,animationDuration:We.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${pt}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${rt}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${je}-node-content-wrapper`]:{color:We.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${je}-node-content-wrapper`]:Object.assign({},(0,ke.oN)(We)),[`&:not(${pt}-disabled).filter-node ${je}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${je}-draggable-icon`]:{flexShrink:0,width:kt,lineHeight:`${kt}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${We.motionDurationSlow}`,[`${pt}:hover &`]:{opacity:.45}},[`&${pt}-disabled`]:{[`${je}-draggable-icon`]:{visibility:"hidden"}}}},[`${je}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:kt}},[`${je}-draggable-icon`]:{visibility:"hidden"},[`${je}-switcher`]:Object.assign(Object.assign({},xe(et,We)),{position:"relative",flex:"none",alignSelf:"stretch",width:kt,margin:0,lineHeight:`${kt}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${je}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:We.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:kt/2,bottom:-rt,marginInlineStart:-1,borderInlineEnd:`1px solid ${We.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:kt/2*.8,height:kt/2,borderBottom:`1px solid ${We.colorBorder}`,content:'""'}}}),[`${je}-checkbox`]:{top:"initial",marginInlineEnd:He},[`${je}-node-content-wrapper, ${je}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:kt,margin:0,padding:`0 ${We.paddingXS/2}px`,color:"inherit",lineHeight:`${kt}px`,background:"transparent",borderRadius:We.borderRadius,cursor:"pointer",transition:`all ${We.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:it},[`&${je}-node-selected`]:{backgroundColor:ft},[`${je}-iconEle`]:{display:"inline-block",width:kt,height:kt,lineHeight:`${kt}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${je}-unselectable ${je}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${je}-node-content-wrapper`]:Object.assign({lineHeight:`${kt}px`,userSelect:"none"},Me(et,We)),[`${pt}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${We.colorPrimary}`}},"&-show-line":{[`${je}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:kt/2,bottom:-rt,borderInlineEnd:`1px solid ${We.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${je}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${pt}-leaf-last`]:{[`${je}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${kt/2}px !important`}}}}})}},ct=et=>{const{treeCls:We,treeNodeCls:je,treeNodePadding:pt,directoryNodeSelectedBg:rt,directoryNodeSelectedColor:kt}=et;return{[`${We}${We}-directory`]:{[je]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:pt,insetInlineStart:0,transition:`background-color ${et.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:et.controlItemBgHover}},"> *":{zIndex:1},[`${We}-switcher`]:{transition:`color ${et.motionDurationMid}`},[`${We}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${We}-node-selected`]:{color:kt,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:rt},[`${We}-switcher`]:{color:kt},[`${We}-node-content-wrapper`]:{color:kt,background:"transparent"}}}}}},De=(et,We)=>{const je=`.${et}`,pt=`${je}-treenode`,rt=We.paddingXS/2,kt=(0,be.TS)(We,{treeCls:je,treeNodeCls:pt,treeNodePadding:rt});return[Pe(et,kt),ct(kt)]},Fe=et=>{const{controlHeightSM:We}=et;return{titleHeight:We,nodeHoverBg:et.controlItemBgHover,nodeSelectedBg:et.controlItemBgActive}};Wt.ZP=(0,Ee.Z)("Tree",(et,We)=>{let{prefixCls:je}=We;return[{[et.componentCls]:(0,Ae.C2)(`${je}-checkbox`,et)},De(je,et),(0,nt.Z)(et)]},et=>{const{colorTextLightSolid:We,colorPrimary:je}=et;return Object.assign(Object.assign({},Fe(et)),{directoryNodeSelectedColor:We,directoryNodeSelectedBg:je})})},71997:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return pt}});var ue=oe(60499),Ae=oe(59301),ke={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"},nt=ke,be=oe(7657),Ee=function(kt,ft){return Ae.createElement(be.Z,(0,ue.Z)({},kt,{ref:ft,icon:nt}))},he=Ae.forwardRef(Ee),xe=he,Me=oe(52671),Pe=oe(58617),ct=oe(15075),De=oe(43531),Fe=oe(92310),et=oe.n(Fe),We=oe(92343),pt=rt=>{const{prefixCls:kt,switcherIcon:ft,treeNodeProps:it,showLine:He}=rt,{isLeaf:Se,expanded:Ke,loading:Ue}=it;if(Ue)return Ae.createElement(Pe.Z,{className:`${kt}-switcher-loading-icon`});let vt;if(He&&typeof He=="object"&&(vt=He.showLeafIcon),Se){if(!He)return null;if(typeof vt!="boolean"&&vt){const Ie=typeof vt=="function"?vt(it):vt,Mt=`${kt}-switcher-line-custom-icon`;return(0,We.l$)(Ie)?(0,We.Tm)(Ie,{className:et()(Ie.props.className||"",Mt)}):Ie}return vt?Ae.createElement(Me.Z,{className:`${kt}-switcher-line-icon`}):Ae.createElement("span",{className:`${kt}-switcher-leaf-line`})}const Ye=`${kt}-switcher-icon`,st=typeof ft=="function"?ft(it):ft;return(0,We.l$)(st)?(0,We.Tm)(st,{className:et()(st.props.className||"",Ye)}):st!==void 0?st:He?Ke?Ae.createElement(ct.Z,{className:`${kt}-switcher-line-icon`}):Ae.createElement(De.Z,{className:`${kt}-switcher-line-icon`}):Ae.createElement(xe,{className:Ye})}},99498:function(fn,Wt,oe){(function(ue){ue(oe(89780))})(function(ue){ue.defineOption("placeholder","",function(xe,Me,Pe){var ct=Pe&&Pe!=ue.Init;if(Me&&!ct)xe.on("blur",be),xe.on("change",Ee),xe.on("swapDoc",Ee),ue.on(xe.getInputField(),"compositionupdate",xe.state.placeholderCompose=function(){nt(xe)}),Ee(xe);else if(!Me&&ct){xe.off("blur",be),xe.off("change",Ee),xe.off("swapDoc",Ee),ue.off(xe.getInputField(),"compositionupdate",xe.state.placeholderCompose),Ae(xe);var De=xe.getWrapperElement();De.className=De.className.replace(" CodeMirror-empty","")}Me&&!xe.hasFocus()&&be(xe)});function Ae(xe){xe.state.placeholder&&(xe.state.placeholder.parentNode.removeChild(xe.state.placeholder),xe.state.placeholder=null)}function ke(xe){Ae(xe);var Me=xe.state.placeholder=document.createElement("pre");Me.style.cssText="height: 0; overflow: visible",Me.style.direction=xe.getOption("direction"),Me.className="CodeMirror-placeholder CodeMirror-line-like";var Pe=xe.getOption("placeholder");typeof Pe=="string"&&(Pe=document.createTextNode(Pe)),Me.appendChild(Pe),xe.display.lineSpace.insertBefore(Me,xe.display.lineSpace.firstChild)}function nt(xe){setTimeout(function(){var Me=!1,Pe=xe.getInputField();Pe.nodeName=="TEXTAREA"?Me=!Pe.value:xe.lineCount()==1&&(Me=!/[^\u200b]/.test(Pe.querySelector(".CodeMirror-line").textContent)),Me?ke(xe):Ae(xe)},20)}function be(xe){he(xe)&&ke(xe)}function Ee(xe){var Me=xe.getWrapperElement(),Pe=he(xe);Me.className=Me.className.replace(" CodeMirror-empty","")+(Pe?" CodeMirror-empty":""),Pe?ke(xe):Ae(xe)}function he(xe){return xe.lineCount()===1&&xe.getLine(0)===""}})},25717:function(fn,Wt,oe){(function(ue){ue(oe(89780))})(function(ue){var Ae={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ke=ue.Pos;ue.defineOption("autoCloseBrackets",!1,function(We,je,pt){pt&&pt!=ue.Init&&(We.removeKeyMap(be),We.state.closeBrackets=null),je&&(Ee(nt(je,"pairs")),We.state.closeBrackets=je,We.addKeyMap(be))});function nt(We,je){return je=="pairs"&&typeof We=="string"?We:typeof We=="object"&&We[je]!=null?We[je]:Ae[je]}var be={Backspace:Me,Enter:Pe};function Ee(We){for(var je=0;je<We.length;je++){var pt=We.charAt(je),rt="'"+pt+"'";be[rt]||(be[rt]=he(pt))}}Ee(Ae.pairs+"`");function he(We){return function(je){return De(je,We)}}function xe(We){var je=We.state.closeBrackets;if(!je||je.override)return je;var pt=We.getModeAt(We.getCursor());return pt.closeBrackets||je}function Me(We){var je=xe(We);if(!je||We.getOption("disableInput"))return ue.Pass;for(var pt=nt(je,"pairs"),rt=We.listSelections(),kt=0;kt<rt.length;kt++){if(!rt[kt].empty())return ue.Pass;var ft=Fe(We,rt[kt].head);if(!ft||pt.indexOf(ft)%2!=0)return ue.Pass}for(var kt=rt.length-1;kt>=0;kt--){var it=rt[kt].head;We.replaceRange("",ke(it.line,it.ch-1),ke(it.line,it.ch+1),"+delete")}}function Pe(We){var je=xe(We),pt=je&&nt(je,"explode");if(!pt||We.getOption("disableInput"))return ue.Pass;for(var rt=We.listSelections(),kt=0;kt<rt.length;kt++){if(!rt[kt].empty())return ue.Pass;var ft=Fe(We,rt[kt].head);if(!ft||pt.indexOf(ft)%2!=0)return ue.Pass}We.operation(function(){var it=We.lineSeparator()||`
|
|
|
`;We.replaceSelection(it+it,null),We.execCommand("goCharLeft"),rt=We.listSelections();for(var He=0;He<rt.length;He++){var Se=rt[He].head.line;We.indentLine(Se,null,!0),We.indentLine(Se+1,null,!0)}})}function ct(We){var je=ue.cmpPos(We.anchor,We.head)>0;return{anchor:new ke(We.anchor.line,We.anchor.ch+(je?-1:1)),head:new ke(We.head.line,We.head.ch+(je?1:-1))}}function De(We,je){var pt=xe(We);if(!pt||We.getOption("disableInput"))return ue.Pass;var rt=nt(pt,"pairs"),kt=rt.indexOf(je);if(kt==-1)return ue.Pass;for(var ft=nt(pt,"closeBefore"),it=nt(pt,"triples"),He=rt.charAt(kt+1)==je,Se=We.listSelections(),Ke=kt%2==0,Ue,vt=0;vt<Se.length;vt++){var Ye=Se[vt],st=Ye.head,Ie,Mt=We.getRange(st,ke(st.line,st.ch+1));if(Ke&&!Ye.empty())Ie="surround";else if((He||!Ke)&&Mt==je)He&&et(We,st)?Ie="both":it.indexOf(je)>=0&&We.getRange(st,ke(st.line,st.ch+3))==je+je+je?Ie="skipThree":Ie="skip";else if(He&&st.ch>1&&it.indexOf(je)>=0&&We.getRange(ke(st.line,st.ch-2),st)==je+je){if(st.ch>2&&/\bstring/.test(We.getTokenTypeAt(ke(st.line,st.ch-2))))return ue.Pass;Ie="addFour"}else if(He){var Ge=st.ch==0?" ":We.getRange(ke(st.line,st.ch-1),st);if(!ue.isWordChar(Mt)&&Ge!=je&&!ue.isWordChar(Ge))Ie="both";else return ue.Pass}else if(Ke&&(Mt.length===0||/\s/.test(Mt)||ft.indexOf(Mt)>-1))Ie="both";else return ue.Pass;if(!Ue)Ue=Ie;else if(Ue!=Ie)return ue.Pass}var Ot=kt%2?rt.charAt(kt-1):je,wt=kt%2?je:rt.charAt(kt+1);We.operation(function(){if(Ue=="skip")We.execCommand("goCharRight");else if(Ue=="skipThree")for(var At=0;At<3;At++)We.execCommand("goCharRight");else if(Ue=="surround"){for(var Nt=We.getSelections(),At=0;At<Nt.length;At++)Nt[At]=Ot+Nt[At]+wt;We.replaceSelections(Nt,"around"),Nt=We.listSelections().slice();for(var At=0;At<Nt.length;At++)Nt[At]=ct(Nt[At]);We.setSelections(Nt)}else Ue=="both"?(We.replaceSelection(Ot+wt,null),We.triggerElectric(Ot+wt),We.execCommand("goCharLeft")):Ue=="addFour"&&(We.replaceSelection(Ot+Ot+Ot+Ot,"before"),We.execCommand("goCharRight"))})}function Fe(We,je){var pt=We.getRange(ke(je.line,je.ch-1),ke(je.line,je.ch+1));return pt.length==2?pt:null}function et(We,je){var pt=We.getTokenAt(ke(je.line,je.ch+1));return/\bstring/.test(pt.type)&&pt.start==je.ch&&(je.ch==0||!/\bstring/.test(We.getTokenTypeAt(je)))}})},6313:function(fn,Wt,oe){(function(ue){ue(oe(89780),oe(32855))})(function(ue){ue.defineOption("autoCloseTags",!1,function(Me,Pe,ct){if(ct!=ue.Init&&ct&&Me.removeKeyMap("autoCloseTags"),!!Pe){var De={name:"autoCloseTags"};(typeof Pe!="object"||Pe.whenClosing!==!1)&&(De["'/'"]=function(Fe){return Ee(Fe)}),(typeof Pe!="object"||Pe.whenOpening!==!1)&&(De["'>'"]=function(Fe){return nt(Fe)}),Me.addKeyMap(De)}});var Ae=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],ke=["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 nt(Me){if(Me.getOption("disableInput"))return ue.Pass;for(var Pe=Me.listSelections(),ct=[],De=Me.getOption("autoCloseTags"),Fe=0;Fe<Pe.length;Fe++){if(!Pe[Fe].empty())return ue.Pass;var et=Pe[Fe].head,We=Me.getTokenAt(et),je=ue.innerMode(Me.getMode(),We.state),pt=je.state,rt=je.mode.xmlCurrentTag&&je.mode.xmlCurrentTag(pt),kt=rt&&rt.name;if(!kt)return ue.Pass;var ft=je.mode.configuration=="html",it=typeof De=="object"&&De.dontCloseTags||ft&&Ae,He=typeof De=="object"&&De.indentTags||ft&&ke;We.end>et.ch&&(kt=kt.slice(0,kt.length-We.end+et.ch));var Se=kt.toLowerCase();if(!kt||We.type=="string"&&(We.end!=et.ch||!/[\"\']/.test(We.string.charAt(We.string.length-1))||We.string.length==1)||We.type=="tag"&&rt.close||We.string.indexOf("/")==et.ch-We.start-1||it&&he(it,Se)>-1||xe(Me,je.mode.xmlCurrentContext&&je.mode.xmlCurrentContext(pt)||[],kt,et,!0))return ue.Pass;var Ke=typeof De=="object"&&De.emptyTags;if(Ke&&he(Ke,kt)>-1){ct[Fe]={text:"/>",newPos:ue.Pos(et.line,et.ch+2)};continue}var Ue=He&&he(He,Se)>-1;ct[Fe]={indent:Ue,text:">"+(Ue?`
|
|
|
|
|
|
`:"")+"</"+kt+">",newPos:Ue?ue.Pos(et.line+1,0):ue.Pos(et.line,et.ch+1)}}for(var vt=typeof De=="object"&&De.dontIndentOnAutoClose,Fe=Pe.length-1;Fe>=0;Fe--){var Ye=ct[Fe];Me.replaceRange(Ye.text,Pe[Fe].head,Pe[Fe].anchor,"+insert");var st=Me.listSelections().slice(0);st[Fe]={head:Ye.newPos,anchor:Ye.newPos},Me.setSelections(st),!vt&&Ye.indent&&(Me.indentLine(Ye.newPos.line,null,!0),Me.indentLine(Ye.newPos.line+1,null,!0))}}function be(Me,Pe){for(var ct=Me.listSelections(),De=[],Fe=Pe?"/":"</",et=Me.getOption("autoCloseTags"),We=typeof et=="object"&&et.dontIndentOnSlash,je=0;je<ct.length;je++){if(!ct[je].empty())return ue.Pass;var pt=ct[je].head,rt=Me.getTokenAt(pt),kt=ue.innerMode(Me.getMode(),rt.state),ft=kt.state;if(Pe&&(rt.type=="string"||rt.string.charAt(0)!="<"||rt.start!=pt.ch-1))return ue.Pass;var it,He=kt.mode.name!="xml"&&Me.getMode().name=="htmlmixed";if(He&&kt.mode.name=="javascript")it=Fe+"script";else if(He&&kt.mode.name=="css")it=Fe+"style";else{var Se=kt.mode.xmlCurrentContext&&kt.mode.xmlCurrentContext(ft);if(!Se||Se.length&&xe(Me,Se,Se[Se.length-1],pt))return ue.Pass;it=Fe+Se[Se.length-1]}Me.getLine(pt.line).charAt(rt.end)!=">"&&(it+=">"),De[je]=it}if(Me.replaceSelections(De),ct=Me.listSelections(),!We)for(var je=0;je<ct.length;je++)(je==ct.length-1||ct[je].head.line<ct[je+1].head.line)&&Me.indentLine(ct[je].head.line)}function Ee(Me){return Me.getOption("disableInput")?ue.Pass:be(Me,!0)}ue.commands.closeTag=function(Me){return be(Me)};function he(Me,Pe){if(Me.indexOf)return Me.indexOf(Pe);for(var ct=0,De=Me.length;ct<De;++ct)if(Me[ct]==Pe)return ct;return-1}function xe(Me,Pe,ct,De,Fe){if(!ue.scanForClosingTag)return!1;var et=Math.min(Me.lastLine()+1,De.line+500),We=ue.scanForClosingTag(Me,De,null,et);if(!We||We.tag!=ct)return!1;for(var je=Fe?1:0,pt=Pe.length-1;pt>=0&&Pe[pt]==ct;pt--)++je;De=We.to;for(var pt=1;pt<je;pt++){var rt=ue.scanForClosingTag(Me,De,null,et);if(!rt||rt.tag!=ct)return!1;De=rt.to}return!0}})},32855:function(fn,Wt,oe){(function(ue){ue(oe(89780))})(function(ue){"use strict";var Ae=ue.Pos;function ke(pt,rt){return pt.line-rt.line||pt.ch-rt.ch}var nt="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=nt+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Ee=new RegExp("<(/?)(["+nt+"]["+be+"]*)","g");function he(pt,rt,kt,ft){this.line=rt,this.ch=kt,this.cm=pt,this.text=pt.getLine(rt),this.min=ft?Math.max(ft.from,pt.firstLine()):pt.firstLine(),this.max=ft?Math.min(ft.to-1,pt.lastLine()):pt.lastLine()}function xe(pt,rt){var kt=pt.cm.getTokenTypeAt(Ae(pt.line,rt));return kt&&/\btag\b/.test(kt)}function Me(pt){if(!(pt.line>=pt.max))return pt.ch=0,pt.text=pt.cm.getLine(++pt.line),!0}function Pe(pt){if(!(pt.line<=pt.min))return pt.text=pt.cm.getLine(--pt.line),pt.ch=pt.text.length,!0}function ct(pt){for(;;){var rt=pt.text.indexOf(">",pt.ch);if(rt==-1){if(Me(pt))continue;return}if(!xe(pt,rt+1)){pt.ch=rt+1;continue}var kt=pt.text.lastIndexOf("/",rt),ft=kt>-1&&!/\S/.test(pt.text.slice(kt+1,rt));return pt.ch=rt+1,ft?"selfClose":"regular"}}function De(pt){for(;;){var rt=pt.ch?pt.text.lastIndexOf("<",pt.ch-1):-1;if(rt==-1){if(Pe(pt))continue;return}if(!xe(pt,rt+1)){pt.ch=rt;continue}Ee.lastIndex=rt,pt.ch=rt;var kt=Ee.exec(pt.text);if(kt&&kt.index==rt)return kt}}function Fe(pt){for(;;){Ee.lastIndex=pt.ch;var rt=Ee.exec(pt.text);if(!rt){if(Me(pt))continue;return}if(!xe(pt,rt.index+1)){pt.ch=rt.index+1;continue}return pt.ch=rt.index+rt[0].length,rt}}function et(pt){for(;;){var rt=pt.ch?pt.text.lastIndexOf(">",pt.ch-1):-1;if(rt==-1){if(Pe(pt))continue;return}if(!xe(pt,rt+1)){pt.ch=rt;continue}var kt=pt.text.lastIndexOf("/",rt),ft=kt>-1&&!/\S/.test(pt.text.slice(kt+1,rt));return pt.ch=rt+1,ft?"selfClose":"regular"}}function We(pt,rt){for(var kt=[];;){var ft=Fe(pt),it,He=pt.line,Se=pt.ch-(ft?ft[0].length:0);if(!ft||!(it=ct(pt)))return;if(it!="selfClose")if(ft[1]){for(var Ke=kt.length-1;Ke>=0;--Ke)if(kt[Ke]==ft[2]){kt.length=Ke;break}if(Ke<0&&(!rt||rt==ft[2]))return{tag:ft[2],from:Ae(He,Se),to:Ae(pt.line,pt.ch)}}else kt.push(ft[2])}}function je(pt,rt){for(var kt=[];;){var ft=et(pt);if(!ft)return;if(ft=="selfClose"){De(pt);continue}var it=pt.line,He=pt.ch,Se=De(pt);if(!Se)return;if(Se[1])kt.push(Se[2]);else{for(var Ke=kt.length-1;Ke>=0;--Ke)if(kt[Ke]==Se[2]){kt.length=Ke;break}if(Ke<0&&(!rt||rt==Se[2]))return{tag:Se[2],from:Ae(pt.line,pt.ch),to:Ae(it,He)}}}}ue.registerHelper("fold","xml",function(pt,rt){for(var kt=new he(pt,rt.line,0);;){var ft=Fe(kt);if(!ft||kt.line!=rt.line)return;var it=ct(kt);if(!it)return;if(!ft[1]&&it!="selfClose"){var He=Ae(kt.line,kt.ch),Se=We(kt,ft[2]);return Se&&ke(Se.from,He)>0?{from:He,to:Se.from}:null}}}),ue.findMatchingTag=function(pt,rt,kt){var ft=new he(pt,rt.line,rt.ch,kt);if(!(ft.text.indexOf(">")==-1&&ft.text.indexOf("<")==-1)){var it=ct(ft),He=it&&Ae(ft.line,ft.ch),Se=it&&De(ft);if(!(!it||!Se||ke(ft,rt)>0)){var Ke={from:Ae(ft.line,ft.ch),to:He,tag:Se[2]};return it=="selfClose"?{open:Ke,close:null,at:"open"}:Se[1]?{open:je(ft,Se[2]),close:Ke,at:"close"}:(ft=new he(pt,He.line,He.ch,kt),{open:Ke,close:We(ft,Se[2]),at:"open"})}}},ue.findEnclosingTag=function(pt,rt,kt,ft){for(var it=new he(pt,rt.line,rt.ch,kt);;){var He=je(it,ft);if(!He)break;var Se=new he(pt,rt.line,rt.ch,kt),Ke=We(Se,He.tag);if(Ke)return{open:He,close:Ke}}},ue.scanForClosingTag=function(pt,rt,kt,ft){var it=new he(pt,rt.line,rt.ch,ft?{from:0,to:ft}:null);return We(it,kt)}})},89780:function(fn){(function(Wt,oe){fn.exports=oe()})(this,function(){"use strict";var Wt=navigator.userAgent,oe=navigator.platform,ue=/gecko\/\d/i.test(Wt),Ae=/MSIE \d/.test(Wt),ke=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Wt),nt=/Edge\/(\d+)/.exec(Wt),be=Ae||ke||nt,Ee=be&&(Ae?document.documentMode||6:+(nt||ke)[1]),he=!nt&&/WebKit\//.test(Wt),xe=he&&/Qt\/\d+\.\d+/.test(Wt),Me=!nt&&/Chrome\//.test(Wt),Pe=/Opera\//.test(Wt),ct=/Apple Computer/.test(navigator.vendor),De=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Wt),Fe=/PhantomJS/.test(Wt),et=!nt&&/AppleWebKit/.test(Wt)&&/Mobile\/\w+/.test(Wt),We=/Android/.test(Wt),je=et||We||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Wt),pt=et||/Mac/.test(oe),rt=/\bCrOS\b/.test(Wt),kt=/win/i.test(oe),ft=Pe&&Wt.match(/Version\/(\d*\.\d*)/);ft&&(ft=Number(ft[1])),ft&&ft>=15&&(Pe=!1,he=!0);var it=pt&&(xe||Pe&&(ft==null||ft<12.11)),He=ue||be&&Ee>=9;function Se(x){return new RegExp("(^|\\s)"+x+"(?:$|\\s)\\s*")}var Ke=function(x,z){var ne=x.className,te=Se(z).exec(ne);if(te){var ie=ne.slice(te.index+te[0].length);x.className=ne.slice(0,te.index)+(ie?te[1]+ie:"")}};function Ue(x){for(var z=x.childNodes.length;z>0;--z)x.removeChild(x.firstChild);return x}function vt(x,z){return Ue(x).appendChild(z)}function Ye(x,z,ne,te){var ie=document.createElement(x);if(ne&&(ie.className=ne),te&&(ie.style.cssText=te),typeof z=="string")ie.appendChild(document.createTextNode(z));else if(z)for(var fe=0;fe<z.length;++fe)ie.appendChild(z[fe]);return ie}function st(x,z,ne,te){var ie=Ye(x,z,ne,te);return ie.setAttribute("role","presentation"),ie}var Ie;document.createRange?Ie=function(x,z,ne,te){var ie=document.createRange();return ie.setEnd(te||x,ne),ie.setStart(x,z),ie}:Ie=function(x,z,ne){var te=document.body.createTextRange();try{te.moveToElementText(x.parentNode)}catch(ie){return te}return te.collapse(!0),te.moveEnd("character",ne),te.moveStart("character",z),te};function Mt(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 Ge(){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 Ot(x,z){var ne=x.className;Se(z).test(ne)||(x.className+=(ne?" ":"")+z)}function wt(x,z){for(var ne=x.split(" "),te=0;te<ne.length;te++)ne[te]&&!Se(ne[te]).test(z)&&(z+=" "+ne[te]);return z}var At=function(x){x.select()};et?At=function(x){x.selectionStart=0,x.selectionEnd=x.value.length}:be&&(At=function(x){try{x.select()}catch(z){}});function Nt(x){var z=Array.prototype.slice.call(arguments,1);return function(){return x.apply(null,z)}}function Tt(x,z,ne){z||(z={});for(var te in x)x.hasOwnProperty(te)&&(ne!==!1||!z.hasOwnProperty(te))&&(z[te]=x[te]);return z}function Ve(x,z,ne,te,ie){z==null&&(z=x.search(/[^\s\u00a0]/),z==-1&&(z=x.length));for(var fe=te||0,Ce=ie||0;;){var Ne=x.indexOf(" ",fe);if(Ne<0||Ne>=z)return Ce+(z-fe);Ce+=Ne-fe,Ce+=ne-Ce%ne,fe=Ne+1}}var ye=function(){this.id=null,this.f=null,this.time=0,this.handler=Nt(this.onTimeout,this)};ye.prototype.onTimeout=function(x){x.id=0,x.time<=+new Date?x.f():setTimeout(x.handler,x.time-+new Date)},ye.prototype.set=function(x,z){this.f=z;var ne=+new Date+x;(!this.id||ne<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,x),this.time=ne)};function bt(x,z){for(var ne=0;ne<x.length;++ne)if(x[ne]==z)return ne;return-1}var Qt=50,Kt={toString:function(){return"CodeMirror.Pass"}},at={scroll:!1},lt={origin:"*mouse"},Dt={origin:"+move"};function yn(x,z,ne){for(var te=0,ie=0;;){var fe=x.indexOf(" ",te);fe==-1&&(fe=x.length);var Ce=fe-te;if(fe==x.length||ie+Ce>=z)return te+Math.min(Ce,z-ie);if(ie+=fe-te,ie+=ne-ie%ne,te=fe+1,ie>=z)return te}}var $t=[""];function hn(x){for(;$t.length<=x;)$t.push(tn($t)+" ");return $t[x]}function tn(x){return x[x.length-1]}function en(x,z){for(var ne=[],te=0;te<x.length;te++)ne[te]=z(x[te],te);return ne}function Gt(x,z,ne){for(var te=0,ie=ne(z);te<x.length&&ne(x[te])<=ie;)te++;x.splice(te,0,z)}function ve(){}function ce(x,z){var ne;return Object.create?ne=Object.create(x):(ve.prototype=x,ne=new ve),z&&Tt(z,ne),ne}var le=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function de(x){return/\w/.test(x)||x>"\x80"&&(x.toUpperCase()!=x.toLowerCase()||le.test(x))}function pe(x,z){return z?z.source.indexOf("\\w")>-1&&de(x)?!0:z.test(x):de(x)}function ae(x){for(var z in x)if(x.hasOwnProperty(z)&&x[z])return!1;return!0}var Te=/[\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 gt(x){return x.charCodeAt(0)>=768&&Te.test(x)}function Re(x,z,ne){for(;(ne<0?z>0:z<x.length)&>(x.charAt(z));)z+=ne;return z}function Be(x,z,ne){for(var te=z>ne?-1:1;;){if(z==ne)return z;var ie=(z+ne)/2,fe=te<0?Math.ceil(ie):Math.floor(ie);if(fe==z)return x(fe)?z:ne;x(fe)?ne=fe:z=fe+te}}function yt(x,z,ne,te){if(!x)return te(z,ne,"ltr",0);for(var ie=!1,fe=0;fe<x.length;++fe){var Ce=x[fe];(Ce.from<ne&&Ce.to>z||z==ne&&Ce.to==z)&&(te(Math.max(Ce.from,z),Math.min(Ce.to,ne),Ce.level==1?"rtl":"ltr",fe),ie=!0)}ie||te(z,ne,"ltr")}var ut=null;function Qe(x,z,ne){var te;ut=null;for(var ie=0;ie<x.length;++ie){var fe=x[ie];if(fe.from<z&&fe.to>z)return ie;fe.to==z&&(fe.from!=fe.to&&ne=="before"?te=ie:ut=ie),fe.from==z&&(fe.from!=fe.to&&ne!="before"?te=ie:ut=ie)}return te!=null?te:ut}var St=function(){var x="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",z="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ne(tt){return tt<=247?x.charAt(tt):1424<=tt&&tt<=1524?"R":1536<=tt&&tt<=1785?z.charAt(tt-1536):1774<=tt&&tt<=2220?"r":8192<=tt&&tt<=8203?"w":tt==8204?"b":"L"}var te=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ie=/[stwN]/,fe=/[LRr]/,Ce=/[Lb1n]/,Ne=/[1n]/;function $e(tt,Ht,qt){this.level=tt,this.from=Ht,this.to=qt}return function(tt,Ht){var qt=Ht=="ltr"?"L":"R";if(tt.length==0||Ht=="ltr"&&!te.test(tt))return!1;for(var kn=tt.length,Sn=[],Qn=0;Qn<kn;++Qn)Sn.push(ne(tt.charCodeAt(Qn)));for(var dr=0,jr=qt;dr<kn;++dr){var si=Sn[dr];si=="m"?Sn[dr]=jr:jr=si}for(var vi=0,qr=qt;vi<kn;++vi){var bi=Sn[vi];bi=="1"&&qr=="r"?Sn[vi]="n":fe.test(bi)&&(qr=bi,bi=="r"&&(Sn[vi]="R"))}for(var Fi=1,Zi=Sn[0];Fi<kn-1;++Fi){var wa=Sn[Fi];wa=="+"&&Zi=="1"&&Sn[Fi+1]=="1"?Sn[Fi]="1":wa==","&&Zi==Sn[Fi+1]&&(Zi=="1"||Zi=="n")&&(Sn[Fi]=Zi),Zi=wa}for(var vo=0;vo<kn;++vo){var Es=Sn[vo];if(Es==",")Sn[vo]="N";else if(Es=="%"){var zo=void 0;for(zo=vo+1;zo<kn&&Sn[zo]=="%";++zo);for(var Qs=vo&&Sn[vo-1]=="!"||zo<kn&&Sn[zo]=="1"?"1":"N",Ys=vo;Ys<zo;++Ys)Sn[Ys]=Qs;vo=zo-1}}for(var cs=0,Xs=qt;cs<kn;++cs){var sa=Sn[cs];Xs=="L"&&sa=="1"?Sn[cs]="L":fe.test(sa)&&(Xs=sa)}for(var jo=0;jo<kn;++jo)if(ie.test(Sn[jo])){var Fo=void 0;for(Fo=jo+1;Fo<kn&&ie.test(Sn[Fo]);++Fo);for(var Uo=(jo?Sn[jo-1]:qt)=="L",ns=(Fo<kn?Sn[Fo]:qt)=="L",Wc=Uo==ns?Uo?"L":"R":qt,al=jo;al<Fo;++al)Sn[al]=Wc;jo=Fo-1}for(var Ds=[],Ja,ms=0;ms<kn;)if(Ce.test(Sn[ms])){var ld=ms;for(++ms;ms<kn&&Ce.test(Sn[ms]);++ms);Ds.push(new $e(0,ld,ms))}else{var hc=ms,kc=Ds.length,Xl=Ht=="rtl"?1:0;for(++ms;ms<kn&&Sn[ms]!="L";++ms);for(var us=hc;us<ms;)if(Ne.test(Sn[us])){hc<us&&(Ds.splice(kc,0,new $e(1,hc,us)),kc+=Xl);var jc=us;for(++us;us<ms&&Ne.test(Sn[us]);++us);Ds.splice(kc,0,new $e(2,jc,us)),kc+=Xl,hc=us}else++us;hc<ms&&Ds.splice(kc,0,new $e(1,hc,ms))}return Ht=="ltr"&&(Ds[0].level==1&&(Ja=tt.match(/^\s+/))&&(Ds[0].from=Ja[0].length,Ds.unshift(new $e(0,0,Ja[0].length))),tn(Ds).level==1&&(Ja=tt.match(/\s+$/))&&(tn(Ds).to-=Ja[0].length,Ds.push(new $e(0,kn-Ja[0].length,kn)))),Ht=="rtl"?Ds.reverse():Ds}}();function Jt(x,z){var ne=x.order;return ne==null&&(ne=x.order=St(x.text,z)),ne}var mt=[],Ft=function(x,z,ne){if(x.addEventListener)x.addEventListener(z,ne,!1);else if(x.attachEvent)x.attachEvent("on"+z,ne);else{var te=x._handlers||(x._handlers={});te[z]=(te[z]||mt).concat(ne)}};function nn(x,z){return x._handlers&&x._handlers[z]||mt}function ht(x,z,ne){if(x.removeEventListener)x.removeEventListener(z,ne,!1);else if(x.detachEvent)x.detachEvent("on"+z,ne);else{var te=x._handlers,ie=te&&te[z];if(ie){var fe=bt(ie,ne);fe>-1&&(te[z]=ie.slice(0,fe).concat(ie.slice(fe+1)))}}}function Le(x,z){var ne=nn(x,z);if(ne.length)for(var te=Array.prototype.slice.call(arguments,2),ie=0;ie<ne.length;++ie)ne[ie].apply(null,te)}function dt(x,z,ne){return typeof z=="string"&&(z={type:z,preventDefault:function(){this.defaultPrevented=!0}}),Le(x,ne||z.type,x,z),wn(z)||z.codemirrorIgnore}function Pt(x){var z=x._handlers&&x._handlers.cursorActivity;if(z)for(var ne=x.curOp.cursorActivityHandlers||(x.curOp.cursorActivityHandlers=[]),te=0;te<z.length;++te)bt(ne,z[te])==-1&&ne.push(z[te])}function _t(x,z){return nn(x,z).length>0}function Xt(x){x.prototype.on=function(z,ne){Ft(this,z,ne)},x.prototype.off=function(z,ne){ht(this,z,ne)}}function gn(x){x.preventDefault?x.preventDefault():x.returnValue=!1}function En(x){x.stopPropagation?x.stopPropagation():x.cancelBubble=!0}function wn(x){return x.defaultPrevented!=null?x.defaultPrevented:x.returnValue==!1}function _n(x){gn(x),En(x)}function $n(x){return x.target||x.srcElement}function Dn(x){var z=x.which;return z==null&&(x.button&1?z=1:x.button&2?z=3:x.button&4&&(z=2)),pt&&x.ctrlKey&&z==1&&(z=3),z}var qn=function(){if(be&&Ee<9)return!1;var x=Ye("div");return"draggable"in x||"dragDrop"in x}(),fr;function br(x){if(fr==null){var z=Ye("span","\u200B");vt(x,Ye("span",[z,document.createTextNode("x")])),x.firstChild.offsetHeight!=0&&(fr=z.offsetWidth<=1&&z.offsetHeight>2&&!(be&&Ee<8))}var ne=fr?Ye("span","\u200B"):Ye("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ne.setAttribute("cm-text",""),ne}var Zn;function ar(x){if(Zn!=null)return Zn;var z=vt(x,document.createTextNode("A\u062EA")),ne=Ie(z,0,1).getBoundingClientRect(),te=Ie(z,1,2).getBoundingClientRect();return Ue(x),!ne||ne.left==ne.right?!1:Zn=te.right-ne.right<3}var Cr=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(x){for(var z=0,ne=[],te=x.length;z<=te;){var ie=x.indexOf(`
|
|
|
`,z);ie==-1&&(ie=x.length);var fe=x.slice(z,x.charAt(ie-1)=="\r"?ie-1:ie),Ce=fe.indexOf("\r");Ce!=-1?(ne.push(fe.slice(0,Ce)),z+=Ce+1):(ne.push(fe),z=ie+1)}return ne}:function(x){return x.split(/\r\n?|\n/)},jn=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(ne){}return!z||z.parentElement()!=x?!1:z.compareEndPoints("StartToEnd",z)!=0},Dr=function(){var x=Ye("div");return"oncopy"in x?!0:(x.setAttribute("oncopy","return;"),typeof x.oncopy=="function")}(),ei=null;function Fr(x){if(ei!=null)return ei;var z=vt(x,Ye("span","x")),ne=z.getBoundingClientRect(),te=Ie(z,0,1).getBoundingClientRect();return ei=Math.abs(ne.left-te.left)>1}var ai={},ti={};function er(x,z){arguments.length>2&&(z.dependencies=Array.prototype.slice.call(arguments,2)),ai[x]=z}function hr(x,z){ti[x]=z}function zn(x){if(typeof x=="string"&&ti.hasOwnProperty(x))x=ti[x];else if(x&&typeof x.name=="string"&&ti.hasOwnProperty(x.name)){var z=ti[x.name];typeof z=="string"&&(z={name:z}),x=ce(z,x),x.name=z.name}else{if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(x))return zn("application/xml");if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(x))return zn("application/json")}return typeof x=="string"?{name:x}:x||{name:"null"}}function Hn(x,z){z=zn(z);var ne=ai[z.name];if(!ne)return Hn(x,"text/plain");var te=ne(x,z);if(wr.hasOwnProperty(z.name)){var ie=wr[z.name];for(var fe in ie)ie.hasOwnProperty(fe)&&(te.hasOwnProperty(fe)&&(te["_"+fe]=te[fe]),te[fe]=ie[fe])}if(te.name=z.name,z.helperType&&(te.helperType=z.helperType),z.modeProps)for(var Ce in z.modeProps)te[Ce]=z.modeProps[Ce];return te}var wr={};function Bt(x,z){var ne=wr.hasOwnProperty(x)?wr[x]:wr[x]={};Tt(z,ne)}function ze(x,z){if(z===!0)return z;if(x.copyState)return x.copyState(z);var ne={};for(var te in z){var ie=z[te];ie instanceof Array&&(ie=ie.concat([])),ne[te]=ie}return ne}function Xe(x,z){for(var ne;x.innerMode&&(ne=x.innerMode(z),!(!ne||ne.mode==x));)z=ne.state,x=ne.mode;return ne||{mode:x,state:z}}function Je(x,z,ne){return x.startState?x.startState(z,ne):!0}var qe=function(x,z,ne){this.pos=this.start=0,this.string=x,this.tabSize=z||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ne};qe.prototype.eol=function(){return this.pos>=this.string.length},qe.prototype.sol=function(){return this.pos==this.lineStart},qe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},qe.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},qe.prototype.eat=function(x){var z=this.string.charAt(this.pos),ne;if(typeof x=="string"?ne=z==x:ne=z&&(x.test?x.test(z):x(z)),ne)return++this.pos,z},qe.prototype.eatWhile=function(x){for(var z=this.pos;this.eat(x););return this.pos>z},qe.prototype.eatSpace=function(){for(var x=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>x},qe.prototype.skipToEnd=function(){this.pos=this.string.length},qe.prototype.skipTo=function(x){var z=this.string.indexOf(x,this.pos);if(z>-1)return this.pos=z,!0},qe.prototype.backUp=function(x){this.pos-=x},qe.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ve(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ve(this.string,this.lineStart,this.tabSize):0)},qe.prototype.indentation=function(){return Ve(this.string,null,this.tabSize)-(this.lineStart?Ve(this.string,this.lineStart,this.tabSize):0)},qe.prototype.match=function(x,z,ne){if(typeof x=="string"){var te=function(Ce){return ne?Ce.toLowerCase():Ce},ie=this.string.substr(this.pos,x.length);if(te(ie)==te(x))return z!==!1&&(this.pos+=x.length),!0}else{var fe=this.string.slice(this.pos).match(x);return fe&&fe.index>0?null:(fe&&z!==!1&&(this.pos+=fe[0].length),fe)}},qe.prototype.current=function(){return this.string.slice(this.start,this.pos)},qe.prototype.hideFirstChars=function(x,z){this.lineStart+=x;try{return z()}finally{this.lineStart-=x}},qe.prototype.lookAhead=function(x){var z=this.lineOracle;return z&&z.lookAhead(x)},qe.prototype.baseToken=function(){var x=this.lineOracle;return x&&x.baseToken(this.pos)};function Ct(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 ne=x;!ne.lines;)for(var te=0;;++te){var ie=ne.children[te],fe=ie.chunkSize();if(z<fe){ne=ie;break}z-=fe}return ne.lines[z]}function Rt(x,z,ne){var te=[],ie=z.line;return x.iter(z.line,ne.line+1,function(fe){var Ce=fe.text;ie==ne.line&&(Ce=Ce.slice(0,ne.ch)),ie==z.line&&(Ce=Ce.slice(z.ch)),te.push(Ce),++ie}),te}function rn(x,z,ne){var te=[];return x.iter(z,ne,function(ie){te.push(ie.text)}),te}function Vt(x,z){var ne=z-x.height;if(ne)for(var te=x;te;te=te.parent)te.height+=ne}function ln(x){if(x.parent==null)return null;for(var z=x.parent,ne=bt(z.lines,x),te=z.parent;te;z=te,te=te.parent)for(var ie=0;te.children[ie]!=z;++ie)ne+=te.children[ie].chunkSize();return ne+z.first}function Cn(x,z){var ne=x.first;e:do{for(var te=0;te<x.children.length;++te){var ie=x.children[te],fe=ie.height;if(z<fe){x=ie;continue e}z-=fe,ne+=ie.chunkSize()}return ne}while(!x.lines);for(var Ce=0;Ce<x.lines.length;++Ce){var Ne=x.lines[Ce],$e=Ne.height;if(z<$e)break;z-=$e}return ne+Ce}function An(x,z){return z>=x.first&&z<x.first+x.size}function Tn(x,z){return String(x.lineNumberFormatter(z+x.firstLineNumber))}function Ut(x,z,ne){if(ne===void 0&&(ne=null),!(this instanceof Ut))return new Ut(x,z,ne);this.line=x,this.ch=z,this.sticky=ne}function bn(x,z){return x.line-z.line||x.ch-z.ch}function Vn(x,z){return x.sticky==z.sticky&&bn(x,z)==0}function Fn(x){return Ut(x.line,x.ch)}function Jn(x,z){return bn(x,z)<0?z:x}function Wn(x,z){return bn(x,z)<0?x:z}function mr(x,z){return Math.max(x.first,Math.min(z,x.first+x.size-1))}function Bn(x,z){if(z.line<x.first)return Ut(x.first,0);var ne=x.first+x.size-1;return z.line>ne?Ut(ne,Ct(x,ne).text.length):rr(z,Ct(x,z.line).text.length)}function rr(x,z){var ne=x.ch;return ne==null||ne>z?Ut(x.line,z):ne<0?Ut(x.line,0):x}function It(x,z){for(var ne=[],te=0;te<z.length;te++)ne[te]=Bn(x,z[te]);return ne}var on=function(x,z){this.state=x,this.lookAhead=z},un=function(x,z,ne,te){this.state=z,this.doc=x,this.line=ne,this.maxLookAhead=te||0,this.baseTokens=null,this.baseTokenPos=1};un.prototype.lookAhead=function(x){var z=this.doc.getLine(this.line+x);return z!=null&&x>this.maxLookAhead&&(this.maxLookAhead=x),z},un.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}},un.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},un.fromSaved=function(x,z,ne){return z instanceof on?new un(x,ze(x.mode,z.state),ne,z.lookAhead):new un(x,ze(x.mode,z),ne)},un.prototype.save=function(x){var z=x!==!1?ze(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new on(z,this.maxLookAhead):z};function xn(x,z,ne,te){var ie=[x.state.modeGen],fe={};Xr(x,z.text,x.doc.mode,ne,function(tt,Ht){return ie.push(tt,Ht)},fe,te);for(var Ce=ne.state,Ne=function(tt){ne.baseTokens=ie;var Ht=x.state.overlays[tt],qt=1,kn=0;ne.state=!0,Xr(x,z.text,Ht.mode,ne,function(Sn,Qn){for(var dr=qt;kn<Sn;){var jr=ie[qt];jr>Sn&&ie.splice(qt,1,Sn,ie[qt+1],jr),qt+=2,kn=Math.min(Sn,jr)}if(Qn)if(Ht.opaque)ie.splice(dr,qt-dr,Sn,"overlay "+Qn),qt=dr+2;else for(;dr<qt;dr+=2){var si=ie[dr+1];ie[dr+1]=(si?si+" ":"")+"overlay "+Qn}},fe),ne.state=Ce,ne.baseTokens=null,ne.baseTokenPos=1},$e=0;$e<x.state.overlays.length;++$e)Ne($e);return{styles:ie,classes:fe.bgClass||fe.textClass?fe:null}}function dn(x,z,ne){if(!z.styles||z.styles[0]!=x.state.modeGen){var te=vn(x,ln(z)),ie=z.text.length>x.options.maxHighlightLength&&ze(x.doc.mode,te.state),fe=xn(x,z,te);ie&&(te.state=ie),z.stateAfter=te.save(!ie),z.styles=fe.styles,fe.classes?z.styleClasses=fe.classes:z.styleClasses&&(z.styleClasses=null),ne===x.doc.highlightFrontier&&(x.doc.modeFrontier=Math.max(x.doc.modeFrontier,++x.doc.highlightFrontier))}return z.styles}function vn(x,z,ne){var te=x.doc,ie=x.display;if(!te.mode.startState)return new un(te,!0,z);var fe=Lr(x,z,ne),Ce=fe>te.first&&Ct(te,fe-1).stateAfter,Ne=Ce?un.fromSaved(te,Ce,fe):new un(te,Je(te.mode),fe);return te.iter(fe,z,function($e){pn(x,$e.text,Ne);var tt=Ne.line;$e.stateAfter=tt==z-1||tt%5==0||tt>=ie.viewFrom&&tt<ie.viewTo?Ne.save():null,Ne.nextLine()}),ne&&(te.modeFrontier=Ne.line),Ne}function pn(x,z,ne,te){var ie=x.doc.mode,fe=new qe(z,x.options.tabSize,ne);for(fe.start=fe.pos=te||0,z==""&&On(ie,ne.state);!fe.eol();)Rn(ie,fe,ne.state),fe.start=fe.pos}function On(x,z){if(x.blankLine)return x.blankLine(z);if(x.innerMode){var ne=Xe(x,z);if(ne.mode.blankLine)return ne.mode.blankLine(ne.state)}}function Rn(x,z,ne,te){for(var ie=0;ie<10;ie++){te&&(te[0]=Xe(x,ne).mode);var fe=x.token(z,ne);if(z.pos>z.start)return fe}throw new Error("Mode "+x.name+" failed to advance stream.")}var Gn=function(x,z,ne){this.start=x.start,this.end=x.pos,this.string=x.current(),this.type=z||null,this.state=ne};function Er(x,z,ne,te){var ie=x.doc,fe=ie.mode,Ce;z=Bn(ie,z);var Ne=Ct(ie,z.line),$e=vn(x,z.line,ne),tt=new qe(Ne.text,x.options.tabSize,$e),Ht;for(te&&(Ht=[]);(te||tt.pos<z.ch)&&!tt.eol();)tt.start=tt.pos,Ce=Rn(fe,tt,$e.state),te&&Ht.push(new Gn(tt,Ce,ze(ie.mode,$e.state)));return te?Ht:new Gn(tt,Ce,$e.state)}function Hr(x,z){if(x)for(;;){var ne=x.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ne)break;x=x.slice(0,ne.index)+x.slice(ne.index+ne[0].length);var te=ne[1]?"bgClass":"textClass";z[te]==null?z[te]=ne[2]:new RegExp("(?:^|\\s)"+ne[2]+"(?:$|\\s)").test(z[te])||(z[te]+=" "+ne[2])}return x}function Xr(x,z,ne,te,ie,fe,Ce){var Ne=ne.flattenSpans;Ne==null&&(Ne=x.options.flattenSpans);var $e=0,tt=null,Ht=new qe(z,x.options.tabSize,te),qt,kn=x.options.addModeClass&&[null];for(z==""&&Hr(On(ne,te.state),fe);!Ht.eol();){if(Ht.pos>x.options.maxHighlightLength?(Ne=!1,Ce&&pn(x,z,te,Ht.pos),Ht.pos=z.length,qt=null):qt=Hr(Rn(ne,Ht,te.state,kn),fe),kn){var Sn=kn[0].name;Sn&&(qt="m-"+(qt?Sn+" "+qt:Sn))}if(!Ne||tt!=qt){for(;$e<Ht.start;)$e=Math.min(Ht.start,$e+5e3),ie($e,tt);tt=qt}Ht.start=Ht.pos}for(;$e<Ht.pos;){var Qn=Math.min(Ht.pos,$e+5e3);ie(Qn,tt),$e=Qn}}function Lr(x,z,ne){for(var te,ie,fe=x.doc,Ce=ne?-1:z-(x.doc.mode.innerMode?1e3:100),Ne=z;Ne>Ce;--Ne){if(Ne<=fe.first)return fe.first;var $e=Ct(fe,Ne-1),tt=$e.stateAfter;if(tt&&(!ne||Ne+(tt instanceof on?tt.lookAhead:0)<=fe.modeFrontier))return Ne;var Ht=Ve($e.text,null,x.options.tabSize);(ie==null||te>Ht)&&(ie=Ne-1,te=Ht)}return ie}function vr(x,z){if(x.modeFrontier=Math.min(x.modeFrontier,z),!(x.highlightFrontier<z-10)){for(var ne=x.first,te=z-1;te>ne;te--){var ie=Ct(x,te).stateAfter;if(ie&&(!(ie instanceof on)||te+ie.lookAhead<z)){ne=te+1;break}}x.highlightFrontier=Math.min(x.highlightFrontier,ne)}}var Jr=!1,Gr=!1;function Zr(){Jr=!0}function xr(){Gr=!0}function Nr(x,z,ne){this.marker=x,this.from=z,this.to=ne}function Qr(x,z){if(x)for(var ne=0;ne<x.length;++ne){var te=x[ne];if(te.marker==z)return te}}function Kr(x,z){for(var ne,te=0;te<x.length;++te)x[te]!=z&&(ne||(ne=[])).push(x[te]);return ne}function hi(x,z){x.markedSpans=x.markedSpans?x.markedSpans.concat([z]):[z],z.marker.attachLine(x)}function Bi(x,z,ne){var te;if(x)for(var ie=0;ie<x.length;++ie){var fe=x[ie],Ce=fe.marker,Ne=fe.from==null||(Ce.inclusiveLeft?fe.from<=z:fe.from<z);if(Ne||fe.from==z&&Ce.type=="bookmark"&&(!ne||!fe.marker.insertLeft)){var $e=fe.to==null||(Ce.inclusiveRight?fe.to>=z:fe.to>z);(te||(te=[])).push(new Nr(Ce,fe.from,$e?null:fe.to))}}return te}function Ur(x,z,ne){var te;if(x)for(var ie=0;ie<x.length;++ie){var fe=x[ie],Ce=fe.marker,Ne=fe.to==null||(Ce.inclusiveRight?fe.to>=z:fe.to>z);if(Ne||fe.from==z&&Ce.type=="bookmark"&&(!ne||fe.marker.insertLeft)){var $e=fe.from==null||(Ce.inclusiveLeft?fe.from<=z:fe.from<z);(te||(te=[])).push(new Nr(Ce,$e?null:fe.from-z,fe.to==null?null:fe.to-z))}}return te}function Xn(x,z){if(z.full)return null;var ne=An(x,z.from.line)&&Ct(x,z.from.line).markedSpans,te=An(x,z.to.line)&&Ct(x,z.to.line).markedSpans;if(!ne&&!te)return null;var ie=z.from.ch,fe=z.to.ch,Ce=bn(z.from,z.to)==0,Ne=Bi(ne,ie,Ce),$e=Ur(te,fe,Ce),tt=z.text.length==1,Ht=tn(z.text).length+(tt?ie:0);if(Ne)for(var qt=0;qt<Ne.length;++qt){var kn=Ne[qt];if(kn.to==null){var Sn=Qr($e,kn.marker);Sn?tt&&(kn.to=Sn.to==null?null:Sn.to+Ht):kn.to=ie}}if($e)for(var Qn=0;Qn<$e.length;++Qn){var dr=$e[Qn];if(dr.to!=null&&(dr.to+=Ht),dr.from==null){var jr=Qr(Ne,dr.marker);jr||(dr.from=Ht,tt&&(Ne||(Ne=[])).push(dr))}else dr.from+=Ht,tt&&(Ne||(Ne=[])).push(dr)}Ne&&(Ne=Kn(Ne)),$e&&$e!=Ne&&($e=Kn($e));var si=[Ne];if(!tt){var vi=z.text.length-2,qr;if(vi>0&&Ne)for(var bi=0;bi<Ne.length;++bi)Ne[bi].to==null&&(qr||(qr=[])).push(new Nr(Ne[bi].marker,null,null));for(var Fi=0;Fi<vi;++Fi)si.push(qr);si.push($e)}return si}function Kn(x){for(var z=0;z<x.length;++z){var ne=x[z];ne.from!=null&&ne.from==ne.to&&ne.marker.clearWhenEmpty!==!1&&x.splice(z--,1)}return x.length?x:null}function Wr(x,z,ne){var te=null;if(x.iter(z.line,ne.line+1,function(Sn){if(Sn.markedSpans)for(var Qn=0;Qn<Sn.markedSpans.length;++Qn){var dr=Sn.markedSpans[Qn].marker;dr.readOnly&&(!te||bt(te,dr)==-1)&&(te||(te=[])).push(dr)}}),!te)return null;for(var ie=[{from:z,to:ne}],fe=0;fe<te.length;++fe)for(var Ce=te[fe],Ne=Ce.find(0),$e=0;$e<ie.length;++$e){var tt=ie[$e];if(!(bn(tt.to,Ne.from)<0||bn(tt.from,Ne.to)>0)){var Ht=[$e,1],qt=bn(tt.from,Ne.from),kn=bn(tt.to,Ne.to);(qt<0||!Ce.inclusiveLeft&&!qt)&&Ht.push({from:tt.from,to:Ne.from}),(kn>0||!Ce.inclusiveRight&&!kn)&&Ht.push({from:Ne.to,to:tt.to}),ie.splice.apply(ie,Ht),$e+=Ht.length-3}}return ie}function Tr(x){var z=x.markedSpans;if(z){for(var ne=0;ne<z.length;++ne)z[ne].marker.detachLine(x);x.markedSpans=null}}function ri(x,z){if(z){for(var ne=0;ne<z.length;++ne)z[ne].marker.attachLine(x);x.markedSpans=z}}function pi(x){return x.inclusiveLeft?-1:0}function li(x){return x.inclusiveRight?1:0}function $i(x,z){var ne=x.lines.length-z.lines.length;if(ne!=0)return ne;var te=x.find(),ie=z.find(),fe=bn(te.from,ie.from)||pi(x)-pi(z);if(fe)return-fe;var Ce=bn(te.to,ie.to)||li(x)-li(z);return Ce||z.id-x.id}function xi(x,z){var ne=Gr&&x.markedSpans,te;if(ne)for(var ie=void 0,fe=0;fe<ne.length;++fe)ie=ne[fe],ie.marker.collapsed&&(z?ie.from:ie.to)==null&&(!te||$i(te,ie.marker)<0)&&(te=ie.marker);return te}function oa(x){return xi(x,!0)}function Br(x){return xi(x,!1)}function Ar(x,z){var ne=Gr&&x.markedSpans,te;if(ne)for(var ie=0;ie<ne.length;++ie){var fe=ne[ie];fe.marker.collapsed&&(fe.from==null||fe.from<z)&&(fe.to==null||fe.to>z)&&(!te||$i(te,fe.marker)<0)&&(te=fe.marker)}return te}function fi(x,z,ne,te,ie){var fe=Ct(x,z),Ce=Gr&&fe.markedSpans;if(Ce)for(var Ne=0;Ne<Ce.length;++Ne){var $e=Ce[Ne];if($e.marker.collapsed){var tt=$e.marker.find(0),Ht=bn(tt.from,ne)||pi($e.marker)-pi(ie),qt=bn(tt.to,te)||li($e.marker)-li(ie);if(!(Ht>=0&&qt<=0||Ht<=0&&qt>=0)&&(Ht<=0&&($e.marker.inclusiveRight&&ie.inclusiveLeft?bn(tt.to,ne)>=0:bn(tt.to,ne)>0)||Ht>=0&&($e.marker.inclusiveRight&&ie.inclusiveLeft?bn(tt.from,te)<=0:bn(tt.from,te)<0)))return!0}}}function mi(x){for(var z;z=oa(x);)x=z.find(-1,!0).line;return x}function la(x){for(var z;z=Br(x);)x=z.find(1,!0).line;return x}function Ua(x){for(var z,ne;z=Br(x);)x=z.find(1,!0).line,(ne||(ne=[])).push(x);return ne}function Da(x,z){var ne=Ct(x,z),te=mi(ne);return ne==te?z:ln(te)}function Wi(x,z){if(z>x.lastLine())return z;var ne=Ct(x,z),te;if(!ma(x,ne))return z;for(;te=Br(ne);)ne=te.find(1,!0).line;return ln(ne)+1}function ma(x,z){var ne=Gr&&z.markedSpans;if(ne){for(var te=void 0,ie=0;ie<ne.length;++ie)if(te=ne[ie],!!te.marker.collapsed){if(te.from==null)return!0;if(!te.marker.widgetNode&&te.from==0&&te.marker.inclusiveLeft&&na(x,z,te))return!0}}}function na(x,z,ne){if(ne.to==null){var te=ne.marker.find(1,!0);return na(x,te.line,Qr(te.line.markedSpans,ne.marker))}if(ne.marker.inclusiveRight&&ne.to==z.text.length)return!0;for(var ie=void 0,fe=0;fe<z.markedSpans.length;++fe)if(ie=z.markedSpans[fe],ie.marker.collapsed&&!ie.marker.widgetNode&&ie.from==ne.to&&(ie.to==null||ie.to!=ne.from)&&(ie.marker.inclusiveLeft||ne.marker.inclusiveRight)&&na(x,z,ie))return!0}function sr(x){x=mi(x);for(var z=0,ne=x.parent,te=0;te<ne.lines.length;++te){var ie=ne.lines[te];if(ie==x)break;z+=ie.height}for(var fe=ne.parent;fe;ne=fe,fe=ne.parent)for(var Ce=0;Ce<fe.children.length;++Ce){var Ne=fe.children[Ce];if(Ne==ne)break;z+=Ne.height}return z}function ur(x){if(x.height==0)return 0;for(var z=x.text.length,ne,te=x;ne=oa(te);){var ie=ne.find(0,!0);te=ie.from.line,z+=ie.from.ch-ie.to.ch}for(te=x;ne=Br(te);){var fe=ne.find(0,!0);z-=te.text.length-fe.from.ch,te=fe.to.line,z+=te.text.length-fe.to.ch}return z}function cr(x){var z=x.display,ne=x.doc;z.maxLine=Ct(ne,ne.first),z.maxLineLength=ur(z.maxLine),z.maxLineChanged=!0,ne.iter(function(te){var ie=ur(te);ie>z.maxLineLength&&(z.maxLineLength=ie,z.maxLine=te)})}var Or=function(x,z,ne){this.text=x,ri(this,z),this.height=ne?ne(this):1};Or.prototype.lineNo=function(){return ln(this)},Xt(Or);function Ki(x,z,ne,te){x.text=z,x.stateAfter&&(x.stateAfter=null),x.styles&&(x.styles=null),x.order!=null&&(x.order=null),Tr(x),ri(x,ne);var ie=te?te(x):1;ie!=x.height&&Vt(x,ie)}function ea(x){x.parent=null,Tr(x)}var ra={},qi={};function ia(x,z){if(!x||/^\s*$/.test(x))return null;var ne=z.addModeClass?qi:ra;return ne[x]||(ne[x]=x.replace(/\S+/g,"cm-$&"))}function ga(x,z){var ne=st("span",null,null,he?"padding-right: .1px":null),te={pre:st("pre",[ne],"CodeMirror-line"),content:ne,col:0,pos:0,cm:x,trailingSpace:!1,splitSpaces:x.getOption("lineWrapping")};z.measure={};for(var ie=0;ie<=(z.rest?z.rest.length:0);ie++){var fe=ie?z.rest[ie-1]:z.line,Ce=void 0;te.pos=0,te.addToken=Ra,ar(x.display.measure)&&(Ce=Jt(fe,x.doc.direction))&&(te.addToken=co(te.addToken,Ce)),te.map=[];var Ne=z!=x.display.externalMeasured&&ln(fe);ds(fe,te,dn(x,fe,Ne)),fe.styleClasses&&(fe.styleClasses.bgClass&&(te.bgClass=wt(fe.styleClasses.bgClass,te.bgClass||"")),fe.styleClasses.textClass&&(te.textClass=wt(fe.styleClasses.textClass,te.textClass||""))),te.map.length==0&&te.map.push(0,0,te.content.appendChild(br(x.display.measure))),ie==0?(z.measure.map=te.map,z.measure.cache={}):((z.measure.maps||(z.measure.maps=[])).push(te.map),(z.measure.caches||(z.measure.caches=[])).push({}))}if(he){var $e=te.content.lastChild;(/\bcm-tab\b/.test($e.className)||$e.querySelector&&$e.querySelector(".cm-tab"))&&(te.content.className="cm-tab-wrap-hack")}return Le(x,"renderLine",x,z.line,te.pre),te.pre.className&&(te.textClass=wt(te.pre.className,te.textClass||"")),te}function Va(x){var z=Ye("span","\u2022","cm-invalidchar");return z.title="\\u"+x.charCodeAt(0).toString(16),z.setAttribute("aria-label",z.title),z}function Ra(x,z,ne,te,ie,fe,Ce){if(z){var Ne=x.splitSpaces?ko(z,x.trailingSpace):z,$e=x.cm.state.specialChars,tt=!1,Ht;if(!$e.test(z))x.col+=z.length,Ht=document.createTextNode(Ne),x.map.push(x.pos,x.pos+z.length,Ht),be&&Ee<9&&(tt=!0),x.pos+=z.length;else{Ht=document.createDocumentFragment();for(var qt=0;;){$e.lastIndex=qt;var kn=$e.exec(z),Sn=kn?kn.index-qt:z.length-qt;if(Sn){var Qn=document.createTextNode(Ne.slice(qt,qt+Sn));be&&Ee<9?Ht.appendChild(Ye("span",[Qn])):Ht.appendChild(Qn),x.map.push(x.pos,x.pos+Sn,Qn),x.col+=Sn,x.pos+=Sn}if(!kn)break;qt+=Sn+1;var dr=void 0;if(kn[0]==" "){var jr=x.cm.options.tabSize,si=jr-x.col%jr;dr=Ht.appendChild(Ye("span",hn(si),"cm-tab")),dr.setAttribute("role","presentation"),dr.setAttribute("cm-text"," "),x.col+=si}else kn[0]=="\r"||kn[0]==`
|
|
|
`?(dr=Ht.appendChild(Ye("span",kn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),dr.setAttribute("cm-text",kn[0]),x.col+=1):(dr=x.cm.options.specialCharPlaceholder(kn[0]),dr.setAttribute("cm-text",kn[0]),be&&Ee<9?Ht.appendChild(Ye("span",[dr])):Ht.appendChild(dr),x.col+=1);x.map.push(x.pos,x.pos+1,dr),x.pos++}}if(x.trailingSpace=Ne.charCodeAt(z.length-1)==32,ne||te||ie||tt||fe||Ce){var vi=ne||"";te&&(vi+=te),ie&&(vi+=ie);var qr=Ye("span",[Ht],vi,fe);if(Ce)for(var bi in Ce)Ce.hasOwnProperty(bi)&&bi!="style"&&bi!="class"&&qr.setAttribute(bi,Ce[bi]);return x.content.appendChild(qr)}x.content.appendChild(Ht)}}function ko(x,z){if(x.length>1&&!/ /.test(x))return x;for(var ne=z,te="",ie=0;ie<x.length;ie++){var fe=x.charAt(ie);fe==" "&&ne&&(ie==x.length-1||x.charCodeAt(ie+1)==32)&&(fe="\xA0"),te+=fe,ne=fe==" "}return te}function co(x,z){return function(ne,te,ie,fe,Ce,Ne,$e){ie=ie?ie+" cm-force-border":"cm-force-border";for(var tt=ne.pos,Ht=tt+te.length;;){for(var qt=void 0,kn=0;kn<z.length&&(qt=z[kn],!(qt.to>tt&&qt.from<=tt));kn++);if(qt.to>=Ht)return x(ne,te,ie,fe,Ce,Ne,$e);x(ne,te.slice(0,qt.to-tt),ie,fe,null,Ne,$e),fe=null,te=te.slice(qt.to-tt),tt=qt.to}}}function za(x,z,ne,te){var ie=!te&&ne.widgetNode;ie&&x.map.push(x.pos,x.pos+z,ie),!te&&x.cm.display.input.needsContentAttribute&&(ie||(ie=x.content.appendChild(document.createElement("span"))),ie.setAttribute("cm-marker",ne.id)),ie&&(x.cm.display.input.setUneditable(ie),x.content.appendChild(ie)),x.pos+=z,x.trailingSpace=!1}function ds(x,z,ne){var te=x.markedSpans,ie=x.text,fe=0;if(!te){for(var Ce=1;Ce<ne.length;Ce+=2)z.addToken(z,ie.slice(fe,fe=ne[Ce]),ia(ne[Ce+1],z.cm.options));return}for(var Ne=ie.length,$e=0,tt=1,Ht="",qt,kn,Sn=0,Qn,dr,jr,si,vi;;){if(Sn==$e){Qn=dr=jr=kn="",vi=null,si=null,Sn=1/0;for(var qr=[],bi=void 0,Fi=0;Fi<te.length;++Fi){var Zi=te[Fi],wa=Zi.marker;if(wa.type=="bookmark"&&Zi.from==$e&&wa.widgetNode)qr.push(wa);else if(Zi.from<=$e&&(Zi.to==null||Zi.to>$e||wa.collapsed&&Zi.to==$e&&Zi.from==$e)){if(Zi.to!=null&&Zi.to!=$e&&Sn>Zi.to&&(Sn=Zi.to,dr=""),wa.className&&(Qn+=" "+wa.className),wa.css&&(kn=(kn?kn+";":"")+wa.css),wa.startStyle&&Zi.from==$e&&(jr+=" "+wa.startStyle),wa.endStyle&&Zi.to==Sn&&(bi||(bi=[])).push(wa.endStyle,Zi.to),wa.title&&((vi||(vi={})).title=wa.title),wa.attributes)for(var vo in wa.attributes)(vi||(vi={}))[vo]=wa.attributes[vo];wa.collapsed&&(!si||$i(si.marker,wa)<0)&&(si=Zi)}else Zi.from>$e&&Sn>Zi.from&&(Sn=Zi.from)}if(bi)for(var Es=0;Es<bi.length;Es+=2)bi[Es+1]==Sn&&(dr+=" "+bi[Es]);if(!si||si.from==$e)for(var zo=0;zo<qr.length;++zo)za(z,0,qr[zo]);if(si&&(si.from||0)==$e){if(za(z,(si.to==null?Ne+1:si.to)-$e,si.marker,si.from==null),si.to==null)return;si.to==$e&&(si=!1)}}if($e>=Ne)break;for(var Qs=Math.min(Ne,Sn);;){if(Ht){var Ys=$e+Ht.length;if(!si){var cs=Ys>Qs?Ht.slice(0,Qs-$e):Ht;z.addToken(z,cs,qt?qt+Qn:Qn,jr,$e+cs.length==Sn?dr:"",kn,vi)}if(Ys>=Qs){Ht=Ht.slice(Qs-$e),$e=Qs;break}$e=Ys,jr=""}Ht=ie.slice(fe,fe=ne[tt++]),qt=ia(ne[tt++],z.cm.options)}}}function wo(x,z,ne){this.line=z,this.rest=Ua(z),this.size=this.rest?ln(tn(this.rest))-ne+1:1,this.node=this.text=null,this.hidden=ma(x,z)}function xo(x,z,ne){for(var te=[],ie,fe=z;fe<ne;fe=ie){var Ce=new wo(x.doc,Ct(x.doc,fe),fe);ie=fe+Ce.size,te.push(Ce)}return te}var Za=null;function va(x){Za?Za.ops.push(x):x.ownsGroup=Za={ops:[x],delayedCallbacks:[]}}function di(x){var z=x.delayedCallbacks,ne=0;do{for(;ne<z.length;ne++)z[ne].call(null);for(var te=0;te<x.ops.length;te++){var ie=x.ops[te];if(ie.cursorActivityHandlers)for(;ie.cursorActivityCalled<ie.cursorActivityHandlers.length;)ie.cursorActivityHandlers[ie.cursorActivityCalled++].call(null,ie.cm)}}while(ne<z.length)}function Ri(x,z){var ne=x.ownsGroup;if(ne)try{di(ne)}finally{Za=null,z(ne)}}var ki=null;function ci(x,z){var ne=nn(x,z);if(ne.length){var te=Array.prototype.slice.call(arguments,2),ie;Za?ie=Za.delayedCallbacks:ki?ie=ki:(ie=ki=[],setTimeout(Qi,0));for(var fe=function(Ne){ie.push(function(){return ne[Ne].apply(null,te)})},Ce=0;Ce<ne.length;++Ce)fe(Ce)}}function Qi(){var x=ki;ki=null;for(var z=0;z<x.length;++z)x[z]()}function ji(x,z,ne,te){for(var ie=0;ie<z.changes.length;ie++){var fe=z.changes[ie];fe=="text"?mn(x,z):fe=="gutter"?Pr(x,z,ne,te):fe=="class"?lr(x,z):fe=="widget"&&gi(x,z,te)}z.changes=null}function Pa(x){return x.node==x.text&&(x.node=Ye("div",null,null,"position: relative"),x.text.parentNode&&x.text.parentNode.replaceChild(x.node,x.text),x.node.appendChild(x.text),be&&Ee<8&&(x.node.style.zIndex=2)),x.node}function Wa(x,z){var ne=z.bgClass?z.bgClass+" "+(z.line.bgClass||""):z.line.bgClass;if(ne&&(ne+=" CodeMirror-linebackground"),z.background)ne?z.background.className=ne:(z.background.parentNode.removeChild(z.background),z.background=null);else if(ne){var te=Pa(z);z.background=te.insertBefore(Ye("div",null,ne),te.firstChild),x.display.input.setUneditable(z.background)}}function Na(x,z){var ne=x.display.externalMeasured;return ne&&ne.line==z.line?(x.display.externalMeasured=null,z.measure=ne.measure,ne.built):ga(x,z)}function mn(x,z){var ne=z.text.className,te=Na(x,z);z.text==z.node&&(z.node=te.pre),z.text.parentNode.replaceChild(te.pre,z.text),z.text=te.pre,te.bgClass!=z.bgClass||te.textClass!=z.textClass?(z.bgClass=te.bgClass,z.textClass=te.textClass,lr(x,z)):ne&&(z.text.className=ne)}function lr(x,z){Wa(x,z),z.line.wrapClass?Pa(z).className=z.line.wrapClass:z.node!=z.text&&(z.node.className="");var ne=z.textClass?z.textClass+" "+(z.line.textClass||""):z.line.textClass;z.text.className=ne||""}function Pr(x,z,ne,te){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 ie=Pa(z);z.gutterBackground=Ye("div",null,"CodeMirror-gutter-background "+z.line.gutterClass,"left: "+(x.options.fixedGutter?te.fixedPos:-te.gutterTotalWidth)+"px; width: "+te.gutterTotalWidth+"px"),x.display.input.setUneditable(z.gutterBackground),ie.insertBefore(z.gutterBackground,z.text)}var fe=z.line.gutterMarkers;if(x.options.lineNumbers||fe){var Ce=Pa(z),Ne=z.gutter=Ye("div",null,"CodeMirror-gutter-wrapper","left: "+(x.options.fixedGutter?te.fixedPos:-te.gutterTotalWidth)+"px");if(x.display.input.setUneditable(Ne),Ce.insertBefore(Ne,z.text),z.line.gutterClass&&(Ne.className+=" "+z.line.gutterClass),x.options.lineNumbers&&(!fe||!fe["CodeMirror-linenumbers"])&&(z.lineNumber=Ne.appendChild(Ye("div",Tn(x.options,ne),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+te.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+x.display.lineNumInnerWidth+"px"))),fe)for(var $e=0;$e<x.display.gutterSpecs.length;++$e){var tt=x.display.gutterSpecs[$e].className,Ht=fe.hasOwnProperty(tt)&&fe[tt];Ht&&Ne.appendChild(Ye("div",[Ht],"CodeMirror-gutter-elt","left: "+te.gutterLeft[tt]+"px; width: "+te.gutterWidth[tt]+"px"))}}}function gi(x,z,ne){z.alignable&&(z.alignable=null);for(var te=Se("CodeMirror-linewidget"),ie=z.node.firstChild,fe=void 0;ie;ie=fe)fe=ie.nextSibling,te.test(ie.className)&&z.node.removeChild(ie);wi(x,z,ne)}function Ti(x,z,ne,te){var ie=Na(x,z);return z.text=z.node=ie.pre,ie.bgClass&&(z.bgClass=ie.bgClass),ie.textClass&&(z.textClass=ie.textClass),lr(x,z),Pr(x,z,ne,te),wi(x,z,te),z.node}function wi(x,z,ne){if(Ji(x,z.line,z,ne,!0),z.rest)for(var te=0;te<z.rest.length;te++)Ji(x,z.rest[te],z,ne,!1)}function Ji(x,z,ne,te,ie){if(z.widgets)for(var fe=Pa(ne),Ce=0,Ne=z.widgets;Ce<Ne.length;++Ce){var $e=Ne[Ce],tt=Ye("div",[$e.node],"CodeMirror-linewidget"+($e.className?" "+$e.className:""));$e.handleMouseEvents||tt.setAttribute("cm-ignore-events","true"),eo($e,tt,ne,te),x.display.input.setUneditable(tt),ie&&$e.above?fe.insertBefore(tt,ne.gutter||ne.text):fe.appendChild(tt),ci($e,"redraw")}}function eo(x,z,ne,te){if(x.noHScroll){(ne.alignable||(ne.alignable=[])).push(z);var ie=te.wrapperWidth;z.style.left=te.fixedPos+"px",x.coverGutter||(ie-=te.gutterTotalWidth,z.style.paddingLeft=te.gutterTotalWidth+"px"),z.style.width=ie+"px"}x.coverGutter&&(z.style.zIndex=5,z.style.position="relative",x.noHScroll||(z.style.marginLeft=-te.gutterTotalWidth+"px"))}function to(x){if(x.height!=null)return x.height;var z=x.doc.cm;if(!z)return 0;if(!Mt(document.body,x.node)){var ne="position: relative;";x.coverGutter&&(ne+="margin-left: -"+z.display.gutters.offsetWidth+"px;"),x.noHScroll&&(ne+="width: "+z.display.wrapper.clientWidth+"px;"),vt(z.display.measure,Ye("div",[x.node],null,ne))}return x.height=x.node.parentNode.offsetHeight}function Ba(x,z){for(var ne=$n(z);ne!=x.wrapper;ne=ne.parentNode)if(!ne||ne.nodeType==1&&ne.getAttribute("cm-ignore-events")=="true"||ne.parentNode==x.sizer&&ne!=x.mover)return!0}function ja(x){return x.lineSpace.offsetTop}function sl(x){return x.mover.offsetHeight-x.lineSpace.offsetHeight}function as(x){if(x.cachedPaddingH)return x.cachedPaddingH;var z=vt(x.measure,Ye("pre","x","CodeMirror-line-like")),ne=window.getComputedStyle?window.getComputedStyle(z):z.currentStyle,te={left:parseInt(ne.paddingLeft),right:parseInt(ne.paddingRight)};return!isNaN(te.left)&&!isNaN(te.right)&&(x.cachedPaddingH=te),te}function uo(x){return Qt-x.display.nativeBarWidth}function ao(x){return x.display.scroller.clientWidth-uo(x)-x.display.barWidth}function fs(x){return x.display.scroller.clientHeight-uo(x)-x.display.barHeight}function vs(x,z,ne){var te=x.options.lineWrapping,ie=te&&ao(x);if(!z.measure.heights||te&&z.measure.width!=ie){var fe=z.measure.heights=[];if(te){z.measure.width=ie;for(var Ce=z.text.firstChild.getClientRects(),Ne=0;Ne<Ce.length-1;Ne++){var $e=Ce[Ne],tt=Ce[Ne+1];Math.abs($e.bottom-tt.bottom)>2&&fe.push(($e.bottom+tt.top)/2-ne.top)}}fe.push(ne.bottom-ne.top)}}function Ms(x,z,ne){if(x.line==z)return{map:x.measure.map,cache:x.measure.cache};for(var te=0;te<x.rest.length;te++)if(x.rest[te]==z)return{map:x.measure.maps[te],cache:x.measure.caches[te]};for(var ie=0;ie<x.rest.length;ie++)if(ln(x.rest[ie])>ne)return{map:x.measure.maps[ie],cache:x.measure.caches[ie],before:!0}}function ll(x,z){z=mi(z);var ne=ln(z),te=x.display.externalMeasured=new wo(x.doc,z,ne);te.lineN=ne;var ie=te.built=ga(x,te);return te.text=ie.pre,vt(x.display.lineMeasure,ie.pre),te}function Fs(x,z,ne,te){return Fa(x,Ko(x,z),ne,te)}function No(x,z){if(z>=x.display.viewFrom&&z<x.display.viewTo)return x.display.view[hs(x,z)];var ne=x.display.externalMeasured;if(ne&&z>=ne.lineN&&z<ne.lineN+ne.size)return ne}function Ko(x,z){var ne=ln(z),te=No(x,ne);te&&!te.text?te=null:te&&te.changes&&(ji(x,te,ne,_a(x)),x.curOp.forceUpdate=!0),te||(te=ll(x,z));var ie=Ms(te,z,ne);return{line:z,view:te,rect:null,map:ie.map,cache:ie.cache,before:ie.before,hasHeights:!1}}function Fa(x,z,ne,te,ie){z.before&&(ne=-1);var fe=ne+(te||""),Ce;return z.cache.hasOwnProperty(fe)?Ce=z.cache[fe]:(z.rect||(z.rect=z.view.text.getBoundingClientRect()),z.hasHeights||(vs(x,z.view,z.rect),z.hasHeights=!0),Ce=ha(x,z,ne,te),Ce.bogus||(z.cache[fe]=Ce)),{left:Ce.left,right:Ce.right,top:ie?Ce.rtop:Ce.top,bottom:ie?Ce.rbottom:Ce.bottom}}var Js={left:0,right:0,top:0,bottom:0};function Dl(x,z,ne){for(var te,ie,fe,Ce,Ne,$e,tt=0;tt<x.length;tt+=3)if(Ne=x[tt],$e=x[tt+1],z<Ne?(ie=0,fe=1,Ce="left"):z<$e?(ie=z-Ne,fe=ie+1):(tt==x.length-3||z==$e&&x[tt+3]>z)&&(fe=$e-Ne,ie=fe-1,z>=$e&&(Ce="right")),ie!=null){if(te=x[tt+2],Ne==$e&&ne==(te.insertLeft?"left":"right")&&(Ce=ne),ne=="left"&&ie==0)for(;tt&&x[tt-2]==x[tt-3]&&x[tt-1].insertLeft;)te=x[(tt-=3)+2],Ce="left";if(ne=="right"&&ie==$e-Ne)for(;tt<x.length-3&&x[tt+3]==x[tt+4]&&!x[tt+5].insertLeft;)te=x[(tt+=3)+2],Ce="right";break}return{node:te,start:ie,end:fe,collapse:Ce,coverStart:Ne,coverEnd:$e}}function Us(x,z){var ne=Js;if(z=="left")for(var te=0;te<x.length&&(ne=x[te]).left==ne.right;te++);else for(var ie=x.length-1;ie>=0&&(ne=x[ie]).left==ne.right;ie--);return ne}function ha(x,z,ne,te){var ie=Dl(z.map,ne,te),fe=ie.node,Ce=ie.start,Ne=ie.end,$e=ie.collapse,tt;if(fe.nodeType==3){for(var Ht=0;Ht<4;Ht++){for(;Ce&>(z.line.text.charAt(ie.coverStart+Ce));)--Ce;for(;ie.coverStart+Ne<ie.coverEnd&>(z.line.text.charAt(ie.coverStart+Ne));)++Ne;if(be&&Ee<9&&Ce==0&&Ne==ie.coverEnd-ie.coverStart?tt=fe.parentNode.getBoundingClientRect():tt=Us(Ie(fe,Ce,Ne).getClientRects(),te),tt.left||tt.right||Ce==0)break;Ne=Ce,Ce=Ce-1,$e="right"}be&&Ee<11&&(tt=ca(x.display.measure,tt))}else{Ce>0&&($e=te="right");var qt;x.options.lineWrapping&&(qt=fe.getClientRects()).length>1?tt=qt[te=="right"?qt.length-1:0]:tt=fe.getBoundingClientRect()}if(be&&Ee<9&&!Ce&&(!tt||!tt.left&&!tt.right)){var kn=fe.parentNode.getClientRects()[0];kn?tt={left:kn.left,right:kn.left+Aa(x.display),top:kn.top,bottom:kn.bottom}:tt=Js}for(var Sn=tt.top-z.rect.top,Qn=tt.bottom-z.rect.top,dr=(Sn+Qn)/2,jr=z.view.measure.heights,si=0;si<jr.length-1&&!(dr<jr[si]);si++);var vi=si?jr[si-1]:0,qr=jr[si],bi={left:($e=="right"?tt.right:tt.left)-z.rect.left,right:($e=="left"?tt.left:tt.right)-z.rect.left,top:vi,bottom:qr};return!tt.left&&!tt.right&&(bi.bogus=!0),x.options.singleCursorHeightPerLine||(bi.rtop=Sn,bi.rbottom=Qn),bi}function ca(x,z){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Fr(x))return z;var ne=screen.logicalXDPI/screen.deviceXDPI,te=screen.logicalYDPI/screen.deviceYDPI;return{left:z.left*ne,right:z.right*ne,top:z.top*te,bottom:z.bottom*te}}function Ga(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 mo(x){x.display.externalMeasure=null,Ue(x.display.lineMeasure);for(var z=0;z<x.display.view.length;z++)Ga(x.display.view[z])}function no(x){mo(x),x.display.cachedCharWidth=x.display.cachedTextHeight=x.display.cachedPaddingH=null,x.options.lineWrapping||(x.display.maxLineChanged=!0),x.display.lineNumChars=null}function $o(){return Me&&We?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Go(){return Me&&We?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function ys(x){var z=0;if(x.widgets)for(var ne=0;ne<x.widgets.length;++ne)x.widgets[ne].above&&(z+=to(x.widgets[ne]));return z}function Qo(x,z,ne,te,ie){if(!ie){var fe=ys(z);ne.top+=fe,ne.bottom+=fe}if(te=="line")return ne;te||(te="local");var Ce=sr(z);if(te=="local"?Ce+=ja(x.display):Ce-=x.display.viewOffset,te=="page"||te=="window"){var Ne=x.display.lineSpace.getBoundingClientRect();Ce+=Ne.top+(te=="window"?0:Go());var $e=Ne.left+(te=="window"?0:$o());ne.left+=$e,ne.right+=$e}return ne.top+=Ce,ne.bottom+=Ce,ne}function Ks(x,z,ne){if(ne=="div")return z;var te=z.left,ie=z.top;if(ne=="page")te-=$o(),ie-=Go();else if(ne=="local"||!ne){var fe=x.display.sizer.getBoundingClientRect();te+=fe.left,ie+=fe.top}var Ce=x.display.lineSpace.getBoundingClientRect();return{left:te-Ce.left,top:ie-Ce.top}}function Ps(x,z,ne,te,ie){return te||(te=Ct(x.doc,z.line)),Qo(x,te,Fs(x,te,z.ch,ie),ne)}function Yo(x,z,ne,te,ie,fe){te=te||Ct(x.doc,z.line),ie||(ie=Ko(x,te));function Ce(Qn,dr){var jr=Fa(x,ie,Qn,dr?"right":"left",fe);return dr?jr.left=jr.right:jr.right=jr.left,Qo(x,te,jr,ne)}var Ne=Jt(te,x.doc.direction),$e=z.ch,tt=z.sticky;if($e>=te.text.length?($e=te.text.length,tt="before"):$e<=0&&($e=0,tt="after"),!Ne)return Ce(tt=="before"?$e-1:$e,tt=="before");function Ht(Qn,dr,jr){var si=Ne[dr],vi=si.level==1;return Ce(jr?Qn-1:Qn,vi!=jr)}var qt=Qe(Ne,$e,tt),kn=ut,Sn=Ht($e,qt,tt=="before");return kn!=null&&(Sn.other=Ht($e,kn,tt!="before")),Sn}function gc(x,z){var ne=0;z=Bn(x.doc,z),x.options.lineWrapping||(ne=Aa(x.display)*z.ch);var te=Ct(x.doc,z.line),ie=sr(te)+ja(x.display);return{left:ne,right:ne,top:ie,bottom:ie+te.height}}function gl(x,z,ne,te,ie){var fe=Ut(x,z,ne);return fe.xRel=ie,te&&(fe.outside=te),fe}function vl(x,z,ne){var te=x.doc;if(ne+=x.display.viewOffset,ne<0)return gl(te.first,0,null,-1,-1);var ie=Cn(te,ne),fe=te.first+te.size-1;if(ie>fe)return gl(te.first+te.size-1,Ct(te,fe).text.length,null,1,1);z<0&&(z=0);for(var Ce=Ct(te,ie);;){var Ne=Yc(x,Ce,ie,z,ne),$e=Ar(Ce,Ne.ch+(Ne.xRel>0||Ne.outside>0?1:0));if(!$e)return Ne;var tt=$e.find(1);if(tt.line==ie)return tt;Ce=Ct(te,ie=tt.line)}}function nc(x,z,ne,te){te-=ys(z);var ie=z.text.length,fe=Be(function(Ce){return Fa(x,ne,Ce-1).bottom<=te},ie,0);return ie=Be(function(Ce){return Fa(x,ne,Ce).top>te},fe,ie),{begin:fe,end:ie}}function jl(x,z,ne,te){ne||(ne=Ko(x,z));var ie=Qo(x,z,Fa(x,ne,te),"line").top;return nc(x,z,ne,ie)}function Ll(x,z,ne,te){return x.bottom<=ne?!1:x.top>ne?!0:(te?x.left:x.right)>z}function Yc(x,z,ne,te,ie){ie-=sr(z);var fe=Ko(x,z),Ce=ys(z),Ne=0,$e=z.text.length,tt=!0,Ht=Jt(z,x.doc.direction);if(Ht){var qt=(x.options.lineWrapping?rc:cl)(x,z,ne,fe,Ht,te,ie);tt=qt.level!=1,Ne=tt?qt.from:qt.to-1,$e=tt?qt.to:qt.from-1}var kn=null,Sn=null,Qn=Be(function(Fi){var Zi=Fa(x,fe,Fi);return Zi.top+=Ce,Zi.bottom+=Ce,Ll(Zi,te,ie,!1)?(Zi.top<=ie&&Zi.left<=te&&(kn=Fi,Sn=Zi),!0):!1},Ne,$e),dr,jr,si=!1;if(Sn){var vi=te-Sn.left<Sn.right-te,qr=vi==tt;Qn=kn+(qr?0:1),jr=qr?"after":"before",dr=vi?Sn.left:Sn.right}else{!tt&&(Qn==$e||Qn==Ne)&&Qn++,jr=Qn==0?"after":Qn==z.text.length?"before":Fa(x,fe,Qn-(tt?1:0)).bottom+Ce<=ie==tt?"after":"before";var bi=Yo(x,Ut(ne,Qn,jr),"line",z,fe);dr=bi.left,si=ie<bi.top?-1:ie>=bi.bottom?1:0}return Qn=Re(z.text,Qn,1),gl(ne,Qn,jr,si,te-dr)}function cl(x,z,ne,te,ie,fe,Ce){var Ne=Be(function(qt){var kn=ie[qt],Sn=kn.level!=1;return Ll(Yo(x,Ut(ne,Sn?kn.to:kn.from,Sn?"before":"after"),"line",z,te),fe,Ce,!0)},0,ie.length-1),$e=ie[Ne];if(Ne>0){var tt=$e.level!=1,Ht=Yo(x,Ut(ne,tt?$e.from:$e.to,tt?"after":"before"),"line",z,te);Ll(Ht,fe,Ce,!0)&&Ht.top>Ce&&($e=ie[Ne-1])}return $e}function rc(x,z,ne,te,ie,fe,Ce){var Ne=nc(x,z,te,Ce),$e=Ne.begin,tt=Ne.end;/\s/.test(z.text.charAt(tt-1))&&tt--;for(var Ht=null,qt=null,kn=0;kn<ie.length;kn++){var Sn=ie[kn];if(!(Sn.from>=tt||Sn.to<=$e)){var Qn=Sn.level!=1,dr=Fa(x,te,Qn?Math.min(tt,Sn.to)-1:Math.max($e,Sn.from)).right,jr=dr<fe?fe-dr+1e9:dr-fe;(!Ht||qt>jr)&&(Ht=Sn,qt=jr)}}return Ht||(Ht=ie[ie.length-1]),Ht.from<$e&&(Ht={from:$e,to:Ht.to,level:Ht.level}),Ht.to>tt&&(Ht={from:Ht.from,to:tt,level:Ht.level}),Ht}var ul;function yl(x){if(x.cachedTextHeight!=null)return x.cachedTextHeight;if(ul==null){ul=Ye("pre",null,"CodeMirror-line-like");for(var z=0;z<49;++z)ul.appendChild(document.createTextNode("x")),ul.appendChild(Ye("br"));ul.appendChild(document.createTextNode("x"))}vt(x.measure,ul);var ne=ul.offsetHeight/50;return ne>3&&(x.cachedTextHeight=ne),Ue(x.measure),ne||1}function Aa(x){if(x.cachedCharWidth!=null)return x.cachedCharWidth;var z=Ye("span","xxxxxxxxxx"),ne=Ye("pre",[z],"CodeMirror-line-like");vt(x.measure,ne);var te=z.getBoundingClientRect(),ie=(te.right-te.left)/10;return ie>2&&(x.cachedCharWidth=ie),ie||10}function _a(x){for(var z=x.display,ne={},te={},ie=z.gutters.clientLeft,fe=z.gutters.firstChild,Ce=0;fe;fe=fe.nextSibling,++Ce){var Ne=x.display.gutterSpecs[Ce].className;ne[Ne]=fe.offsetLeft+fe.clientLeft+ie,te[Ne]=fe.clientWidth}return{fixedPos:Qa(z),gutterTotalWidth:z.gutters.offsetWidth,gutterLeft:ne,gutterWidth:te,wrapperWidth:z.wrapper.clientWidth}}function Qa(x){return x.scroller.getBoundingClientRect().left-x.sizer.getBoundingClientRect().left}function bs(x){var z=yl(x.display),ne=x.options.lineWrapping,te=ne&&Math.max(5,x.display.scroller.clientWidth/Aa(x.display)-3);return function(ie){if(ma(x.doc,ie))return 0;var fe=0;if(ie.widgets)for(var Ce=0;Ce<ie.widgets.length;Ce++)ie.widgets[Ce].height&&(fe+=ie.widgets[Ce].height);return ne?fe+(Math.ceil(ie.text.length/te)||1)*z:fe+z}}function Xo(x){var z=x.doc,ne=bs(x);z.iter(function(te){var ie=ne(te);ie!=te.height&&Vt(te,ie)})}function Vs(x,z,ne,te){var ie=x.display;if(!ne&&$n(z).getAttribute("cm-not-content")=="true")return null;var fe,Ce,Ne=ie.lineSpace.getBoundingClientRect();try{fe=z.clientX-Ne.left,Ce=z.clientY-Ne.top}catch(qt){return null}var $e=vl(x,fe,Ce),tt;if(te&&$e.xRel>0&&(tt=Ct(x.doc,$e.line).text).length==$e.ch){var Ht=Ve(tt,tt.length,x.options.tabSize)-tt.length;$e=Ut($e.line,Math.max(0,Math.round((fe-as(x.display).left)/Aa(x.display))-Ht))}return $e}function hs(x,z){if(z>=x.display.viewTo||(z-=x.display.viewFrom,z<0))return null;for(var ne=x.display.view,te=0;te<ne.length;te++)if(z-=ne[te].size,z<0)return te}function Ho(x,z,ne,te){z==null&&(z=x.doc.first),ne==null&&(ne=x.doc.first+x.doc.size),te||(te=0);var ie=x.display;if(te&&ne<ie.viewTo&&(ie.updateLineNumbers==null||ie.updateLineNumbers>z)&&(ie.updateLineNumbers=z),x.curOp.viewChanged=!0,z>=ie.viewTo)Gr&&Da(x.doc,z)<ie.viewTo&&el(x);else if(ne<=ie.viewFrom)Gr&&Wi(x.doc,ne+te)>ie.viewFrom?el(x):(ie.viewFrom+=te,ie.viewTo+=te);else if(z<=ie.viewFrom&&ne>=ie.viewTo)el(x);else if(z<=ie.viewFrom){var fe=tl(x,ne,ne+te,1);fe?(ie.view=ie.view.slice(fe.index),ie.viewFrom=fe.lineN,ie.viewTo+=te):el(x)}else if(ne>=ie.viewTo){var Ce=tl(x,z,z,-1);Ce?(ie.view=ie.view.slice(0,Ce.index),ie.viewTo=Ce.lineN):el(x)}else{var Ne=tl(x,z,z,-1),$e=tl(x,ne,ne+te,1);Ne&&$e?(ie.view=ie.view.slice(0,Ne.index).concat(xo(x,Ne.lineN,$e.lineN)).concat(ie.view.slice($e.index)),ie.viewTo+=te):el(x)}var tt=ie.externalMeasured;tt&&(ne<tt.lineN?tt.lineN+=te:z<tt.lineN+tt.size&&(ie.externalMeasured=null))}function qs(x,z,ne){x.curOp.viewChanged=!0;var te=x.display,ie=x.display.externalMeasured;if(ie&&z>=ie.lineN&&z<ie.lineN+ie.size&&(te.externalMeasured=null),!(z<te.viewFrom||z>=te.viewTo)){var fe=te.view[hs(x,z)];if(fe.node!=null){var Ce=fe.changes||(fe.changes=[]);bt(Ce,ne)==-1&&Ce.push(ne)}}}function el(x){x.display.viewFrom=x.display.viewTo=x.doc.first,x.display.view=[],x.display.viewOffset=0}function tl(x,z,ne,te){var ie=hs(x,z),fe,Ce=x.display.view;if(!Gr||ne==x.doc.first+x.doc.size)return{index:ie,lineN:ne};for(var Ne=x.display.viewFrom,$e=0;$e<ie;$e++)Ne+=Ce[$e].size;if(Ne!=z){if(te>0){if(ie==Ce.length-1)return null;fe=Ne+Ce[ie].size-z,ie++}else fe=Ne-z;z+=fe,ne+=fe}for(;Da(x.doc,ne)!=ne;){if(ie==(te<0?0:Ce.length-1))return null;ne+=te*Ce[ie-(te<0?1:0)].size,ie+=te}return{index:ie,lineN:ne}}function Tl(x,z,ne){var te=x.display,ie=te.view;ie.length==0||z>=te.viewTo||ne<=te.viewFrom?(te.view=xo(x,z,ne),te.viewFrom=z):(te.viewFrom>z?te.view=xo(x,z,te.viewFrom).concat(te.view):te.viewFrom<z&&(te.view=te.view.slice(hs(x,z))),te.viewFrom=z,te.viewTo<ne?te.view=te.view.concat(xo(x,te.viewTo,ne)):te.viewTo>ne&&(te.view=te.view.slice(0,hs(x,ne)))),te.viewTo=ne}function Xc(x){for(var z=x.display.view,ne=0,te=0;te<z.length;te++){var ie=z[te];!ie.hidden&&(!ie.node||ie.changes)&&++ne}return ne}function vc(x){x.display.input.showSelection(x.display.input.prepareSelection())}function Vu(x,z){z===void 0&&(z=!0);for(var ne=x.doc,te={},ie=te.cursors=document.createDocumentFragment(),fe=te.selection=document.createDocumentFragment(),Ce=0;Ce<ne.sel.ranges.length;Ce++)if(!(!z&&Ce==ne.sel.primIndex)){var Ne=ne.sel.ranges[Ce];if(!(Ne.from().line>=x.display.viewTo||Ne.to().line<x.display.viewFrom)){var $e=Ne.empty();($e||x.options.showCursorWhenSelecting)&&bu(x,Ne.head,ie),$e||Id(x,Ne,fe)}}return te}function bu(x,z,ne){var te=Yo(x,z,"div",null,null,!x.options.singleCursorHeightPerLine),ie=ne.appendChild(Ye("div","\xA0","CodeMirror-cursor"));if(ie.style.left=te.left+"px",ie.style.top=te.top+"px",ie.style.height=Math.max(0,te.bottom-te.top)*x.options.cursorHeight+"px",te.other){var fe=ne.appendChild(Ye("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));fe.style.display="",fe.style.left=te.other.left+"px",fe.style.top=te.other.top+"px",fe.style.height=(te.other.bottom-te.other.top)*.85+"px"}}function Fc(x,z){return x.top-z.top||x.left-z.left}function Id(x,z,ne){var te=x.display,ie=x.doc,fe=document.createDocumentFragment(),Ce=as(x.display),Ne=Ce.left,$e=Math.max(te.sizerWidth,ao(x)-te.sizer.offsetLeft)-Ce.right,tt=ie.direction=="ltr";function Ht(qr,bi,Fi,Zi){bi<0&&(bi=0),bi=Math.round(bi),Zi=Math.round(Zi),fe.appendChild(Ye("div",null,"CodeMirror-selected","position: absolute; left: "+qr+`px;
|
|
|
top: `+bi+"px; width: "+(Fi==null?$e-qr:Fi)+`px;
|
|
|
height: `+(Zi-bi)+"px"))}function qt(qr,bi,Fi){var Zi=Ct(ie,qr),wa=Zi.text.length,vo,Es;function zo(cs,Xs){return Ps(x,Ut(qr,cs),"div",Zi,Xs)}function Qs(cs,Xs,sa){var jo=jl(x,Zi,null,cs),Fo=Xs=="ltr"==(sa=="after")?"left":"right",Uo=sa=="after"?jo.begin:jo.end-(/\s/.test(Zi.text.charAt(jo.end-1))?2:1);return zo(Uo,Fo)[Fo]}var Ys=Jt(Zi,ie.direction);return yt(Ys,bi||0,Fi==null?wa:Fi,function(cs,Xs,sa,jo){var Fo=sa=="ltr",Uo=zo(cs,Fo?"left":"right"),ns=zo(Xs-1,Fo?"right":"left"),Wc=bi==null&&cs==0,al=Fi==null&&Xs==wa,Ds=jo==0,Ja=!Ys||jo==Ys.length-1;if(ns.top-Uo.top<=3){var ms=(tt?Wc:al)&&Ds,ld=(tt?al:Wc)&&Ja,hc=ms?Ne:(Fo?Uo:ns).left,kc=ld?$e:(Fo?ns:Uo).right;Ht(hc,Uo.top,kc-hc,Uo.bottom)}else{var Xl,us,jc,Ls;Fo?(Xl=tt&&Wc&&Ds?Ne:Uo.left,us=tt?$e:Qs(cs,sa,"before"),jc=tt?Ne:Qs(Xs,sa,"after"),Ls=tt&&al&&Ja?$e:ns.right):(Xl=tt?Qs(cs,sa,"before"):Ne,us=!tt&&Wc&&Ds?$e:Uo.right,jc=!tt&&al&&Ja?Ne:ns.left,Ls=tt?Qs(Xs,sa,"after"):$e),Ht(Xl,Uo.top,us-Xl,Uo.bottom),Uo.bottom<ns.top&&Ht(Ne,Uo.bottom,null,ns.top),Ht(jc,ns.top,Ls-jc,ns.bottom)}(!vo||Fc(Uo,vo)<0)&&(vo=Uo),Fc(ns,vo)<0&&(vo=ns),(!Es||Fc(Uo,Es)<0)&&(Es=Uo),Fc(ns,Es)<0&&(Es=ns)}),{start:vo,end:Es}}var kn=z.from(),Sn=z.to();if(kn.line==Sn.line)qt(kn.line,kn.ch,Sn.ch);else{var Qn=Ct(ie,kn.line),dr=Ct(ie,Sn.line),jr=mi(Qn)==mi(dr),si=qt(kn.line,kn.ch,jr?Qn.text.length+1:null).end,vi=qt(Sn.line,jr?0:null,Sn.ch).start;jr&&(si.top<vi.top-2?(Ht(si.right,si.top,null,si.bottom),Ht(Ne,vi.top,vi.left,vi.bottom)):Ht(si.right,si.top,vi.left-si.right,si.bottom)),si.bottom<vi.top&&Ht(Ne,si.bottom,null,vi.top)}ne.appendChild(fe)}function Jc(x){if(x.state.focused){var z=x.display;clearInterval(z.blinker);var ne=!0;z.cursorDiv.style.visibility="",x.options.cursorBlinkRate>0?z.blinker=setInterval(function(){x.hasFocus()||ic(x),z.cursorDiv.style.visibility=(ne=!ne)?"":"hidden"},x.options.cursorBlinkRate):x.options.cursorBlinkRate<0&&(z.cursorDiv.style.visibility="hidden")}}function Kc(x){x.state.focused||(x.display.input.focus(),Su(x))}function xu(x){x.state.delayingBlurEvent=!0,setTimeout(function(){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1,ic(x))},100)}function Su(x,z){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1),x.options.readOnly!="nocursor"&&(x.state.focused||(Le(x,"focus",x,z),x.state.focused=!0,Ot(x.display.wrapper,"CodeMirror-focused"),!x.curOp&&x.display.selForContextMenu!=x.doc.sel&&(x.display.input.reset(),he&&setTimeout(function(){return x.display.input.reset(!0)},20)),x.display.input.receivedFocus()),Jc(x))}function ic(x,z){x.state.delayingBlurEvent||(x.state.focused&&(Le(x,"blur",x,z),x.state.focused=!1,Ke(x.display.wrapper,"CodeMirror-focused")),clearInterval(x.display.blinker),setTimeout(function(){x.state.focused||(x.display.shift=!1)},150))}function qc(x){for(var z=x.display,ne=z.lineDiv.offsetTop,te=0;te<z.view.length;te++){var ie=z.view[te],fe=x.options.lineWrapping,Ce=void 0,Ne=0;if(!ie.hidden){if(be&&Ee<8){var $e=ie.node.offsetTop+ie.node.offsetHeight;Ce=$e-ne,ne=$e}else{var tt=ie.node.getBoundingClientRect();Ce=tt.bottom-tt.top,!fe&&ie.text.firstChild&&(Ne=ie.text.firstChild.getBoundingClientRect().right-tt.left-1)}var Ht=ie.line.height-Ce;if((Ht>.005||Ht<-.005)&&(Vt(ie.line,Ce),Cu(ie.line),ie.rest))for(var qt=0;qt<ie.rest.length;qt++)Cu(ie.rest[qt]);if(Ne>x.display.sizerWidth){var kn=Math.ceil(Ne/Aa(x.display));kn>x.display.maxLineLength&&(x.display.maxLineLength=kn,x.display.maxLine=ie.line,x.display.maxLineChanged=!0)}}}}function Cu(x){if(x.widgets)for(var z=0;z<x.widgets.length;++z){var ne=x.widgets[z],te=ne.node.parentNode;te&&(ne.height=te.offsetHeight)}}function os(x,z,ne){var te=ne&&ne.top!=null?Math.max(0,ne.top):x.scroller.scrollTop;te=Math.floor(te-ja(x));var ie=ne&&ne.bottom!=null?ne.bottom:te+x.wrapper.clientHeight,fe=Cn(z,te),Ce=Cn(z,ie);if(ne&&ne.ensure){var Ne=ne.ensure.from.line,$e=ne.ensure.to.line;Ne<fe?(fe=Ne,Ce=Cn(z,sr(Ct(z,Ne))+x.wrapper.clientHeight)):Math.min($e,z.lastLine())>=Ce&&(fe=Cn(z,sr(Ct(z,$e))-x.wrapper.clientHeight),Ce=$e)}return{from:fe,to:Math.max(Ce,fe+1)}}function Bl(x,z){if(!dt(x,"scrollCursorIntoView")){var ne=x.display,te=ne.sizer.getBoundingClientRect(),ie=null;if(z.top+te.top<0?ie=!0:z.bottom+te.top>(window.innerHeight||document.documentElement.clientHeight)&&(ie=!1),ie!=null&&!Fe){var fe=Ye("div","\u200B",null,`position: absolute;
|
|
|
top: `+(z.top-ne.viewOffset-ja(x.display))+`px;
|
|
|
height: `+(z.bottom-z.top+uo(x)+ne.barHeight)+`px;
|
|
|
left: `+z.left+"px; width: "+Math.max(2,z.right-z.left)+"px;");x.display.lineSpace.appendChild(fe),fe.scrollIntoView(ie),x.display.lineSpace.removeChild(fe)}}}function ac(x,z,ne,te){te==null&&(te=0);var ie;!x.options.lineWrapping&&z==ne&&(z=z.ch?Ut(z.line,z.sticky=="before"?z.ch-1:z.ch,"after"):z,ne=z.sticky=="before"?Ut(z.line,z.ch+1,"before"):z);for(var fe=0;fe<5;fe++){var Ce=!1,Ne=Yo(x,z),$e=!ne||ne==z?Ne:Yo(x,ne);ie={left:Math.min(Ne.left,$e.left),top:Math.min(Ne.top,$e.top)-te,right:Math.max(Ne.left,$e.left),bottom:Math.max(Ne.bottom,$e.bottom)+te};var tt=eu(x,ie),Ht=x.doc.scrollTop,qt=x.doc.scrollLeft;if(tt.scrollTop!=null&&(Ul(x,tt.scrollTop),Math.abs(x.doc.scrollTop-Ht)>1&&(Ce=!0)),tt.scrollLeft!=null&&(Ol(x,tt.scrollLeft),Math.abs(x.doc.scrollLeft-qt)>1&&(Ce=!0)),!Ce)break}return ie}function Gu(x,z){var ne=eu(x,z);ne.scrollTop!=null&&Ul(x,ne.scrollTop),ne.scrollLeft!=null&&Ol(x,ne.scrollLeft)}function eu(x,z){var ne=x.display,te=yl(x.display);z.top<0&&(z.top=0);var ie=x.curOp&&x.curOp.scrollTop!=null?x.curOp.scrollTop:ne.scroller.scrollTop,fe=fs(x),Ce={};z.bottom-z.top>fe&&(z.bottom=z.top+fe);var Ne=x.doc.height+sl(ne),$e=z.top<te,tt=z.bottom>Ne-te;if(z.top<ie)Ce.scrollTop=$e?0:z.top;else if(z.bottom>ie+fe){var Ht=Math.min(z.top,(tt?Ne:z.bottom)-fe);Ht!=ie&&(Ce.scrollTop=Ht)}var qt=x.options.fixedGutter?0:ne.gutters.offsetWidth,kn=x.curOp&&x.curOp.scrollLeft!=null?x.curOp.scrollLeft:ne.scroller.scrollLeft-qt,Sn=ao(x)-ne.gutters.offsetWidth,Qn=z.right-z.left>Sn;return Qn&&(z.right=z.left+Sn),z.left<10?Ce.scrollLeft=0:z.left<kn?Ce.scrollLeft=Math.max(0,z.left+qt-(Qn?0:10)):z.right>Sn+kn-3&&(Ce.scrollLeft=z.right+(Qn?0:10)-Sn),Ce}function tu(x,z){z!=null&&($c(x),x.curOp.scrollTop=(x.curOp.scrollTop==null?x.doc.scrollTop:x.curOp.scrollTop)+z)}function yc(x){$c(x);var z=x.getCursor();x.curOp.scrollToPos={from:z,to:z,margin:x.options.cursorScrollMargin}}function oc(x,z,ne){(z!=null||ne!=null)&&$c(x),z!=null&&(x.curOp.scrollLeft=z),ne!=null&&(x.curOp.scrollTop=ne)}function Dd(x,z){$c(x),x.curOp.scrollToPos=z}function $c(x){var z=x.curOp.scrollToPos;if(z){x.curOp.scrollToPos=null;var ne=gc(x,z.from),te=gc(x,z.to);Qu(x,ne,te,z.margin)}}function Qu(x,z,ne,te){var ie=eu(x,{left:Math.min(z.left,ne.left),top:Math.min(z.top,ne.top)-te,right:Math.max(z.right,ne.right),bottom:Math.max(z.bottom,ne.bottom)+te});oc(x,ie.scrollLeft,ie.scrollTop)}function Ul(x,z){Math.abs(x.doc.scrollTop-z)<2||(ue||Rr(x,{top:z}),Yu(x,z,!0),ue&&Rr(x),Mn(x,100))}function Yu(x,z,ne){z=Math.max(0,Math.min(x.display.scroller.scrollHeight-x.display.scroller.clientHeight,z)),!(x.display.scroller.scrollTop==z&&!ne)&&(x.doc.scrollTop=z,x.display.scrollbars.setScrollTop(z),x.display.scroller.scrollTop!=z&&(x.display.scroller.scrollTop=z))}function Ol(x,z,ne,te){z=Math.max(0,Math.min(z,x.display.scroller.scrollWidth-x.display.scroller.clientWidth)),!((ne?z==x.doc.scrollLeft:Math.abs(x.doc.scrollLeft-z)<2)&&!te)&&(x.doc.scrollLeft=z,Ai(x),x.display.scroller.scrollLeft!=z&&(x.display.scroller.scrollLeft=z),x.display.scrollbars.setScrollLeft(z))}function bc(x){var z=x.display,ne=z.gutters.offsetWidth,te=Math.round(x.doc.height+sl(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?ne:0,docHeight:te,scrollHeight:te+uo(x)+z.barHeight,nativeBarWidth:z.nativeBarWidth,gutterWidth:ne}}var Pl=function(x,z,ne){this.cm=ne;var te=this.vert=Ye("div",[Ye("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ie=this.horiz=Ye("div",[Ye("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");te.tabIndex=ie.tabIndex=-1,x(te),x(ie),Ft(te,"scroll",function(){te.clientHeight&&z(te.scrollTop,"vertical")}),Ft(ie,"scroll",function(){ie.clientWidth&&z(ie.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,be&&Ee<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Pl.prototype.update=function(x){var z=x.scrollWidth>x.clientWidth+1,ne=x.scrollHeight>x.clientHeight+1,te=x.nativeBarWidth;if(ne){this.vert.style.display="block",this.vert.style.bottom=z?te+"px":"0";var ie=x.viewHeight-(z?te:0);this.vert.firstChild.style.height=Math.max(0,x.scrollHeight-x.clientHeight+ie)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(z){this.horiz.style.display="block",this.horiz.style.right=ne?te+"px":"0",this.horiz.style.left=x.barLeft+"px";var fe=x.viewWidth-x.barLeft-(ne?te:0);this.horiz.firstChild.style.width=Math.max(0,x.scrollWidth-x.clientWidth+fe)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&x.clientHeight>0&&(te==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ne?te:0,bottom:z?te:0}},Pl.prototype.setScrollLeft=function(x){this.horiz.scrollLeft!=x&&(this.horiz.scrollLeft=x),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Pl.prototype.setScrollTop=function(x){this.vert.scrollTop!=x&&(this.vert.scrollTop=x),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Pl.prototype.zeroWidthHack=function(){var x=pt&&!De?"12px":"18px";this.horiz.style.height=this.vert.style.width=x,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ye,this.disableVert=new ye},Pl.prototype.enableZeroWidthBar=function(x,z,ne){x.style.pointerEvents="auto";function te(){var ie=x.getBoundingClientRect(),fe=ne=="vert"?document.elementFromPoint(ie.right-1,(ie.top+ie.bottom)/2):document.elementFromPoint((ie.right+ie.left)/2,ie.bottom-1);fe!=x?x.style.pointerEvents="none":z.set(1e3,te)}z.set(1e3,te)},Pl.prototype.clear=function(){var x=this.horiz.parentNode;x.removeChild(this.horiz),x.removeChild(this.vert)};var $s=function(){};$s.prototype.update=function(){return{bottom:0,right:0}},$s.prototype.setScrollLeft=function(){},$s.prototype.setScrollTop=function(){},$s.prototype.clear=function(){};function Vl(x,z){z||(z=bc(x));var ne=x.display.barWidth,te=x.display.barHeight;nu(x,z);for(var ie=0;ie<4&&ne!=x.display.barWidth||te!=x.display.barHeight;ie++)ne!=x.display.barWidth&&x.options.lineWrapping&&qc(x),nu(x,bc(x)),ne=x.display.barWidth,te=x.display.barHeight}function nu(x,z){var ne=x.display,te=ne.scrollbars.update(z);ne.sizer.style.paddingRight=(ne.barWidth=te.right)+"px",ne.sizer.style.paddingBottom=(ne.barHeight=te.bottom)+"px",ne.heightForcer.style.borderBottom=te.bottom+"px solid transparent",te.right&&te.bottom?(ne.scrollbarFiller.style.display="block",ne.scrollbarFiller.style.height=te.bottom+"px",ne.scrollbarFiller.style.width=te.right+"px"):ne.scrollbarFiller.style.display="",te.bottom&&x.options.coverGutterNextToScrollbar&&x.options.fixedGutter?(ne.gutterFiller.style.display="block",ne.gutterFiller.style.height=te.bottom+"px",ne.gutterFiller.style.width=z.gutterWidth+"px"):ne.gutterFiller.style.display=""}var wu={native:Pl,null:$s};function Eu(x){x.display.scrollbars&&(x.display.scrollbars.clear(),x.display.scrollbars.addClass&&Ke(x.display.wrapper,x.display.scrollbars.addClass)),x.display.scrollbars=new wu[x.options.scrollbarStyle](function(z){x.display.wrapper.insertBefore(z,x.display.scrollbarFiller),Ft(z,"mousedown",function(){x.state.focused&&setTimeout(function(){return x.display.input.focus()},0)}),z.setAttribute("cm-not-content","true")},function(z,ne){ne=="horizontal"?Ol(x,z):Ul(x,z)},x),x.display.scrollbars.addClass&&Ot(x.display.wrapper,x.display.scrollbars.addClass)}var Xu=0;function ks(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:++Xu},va(x.curOp)}function Nl(x){var z=x.curOp;z&&Ri(z,function(ne){for(var te=0;te<ne.ops.length;te++)ne.ops[te].cm.curOp=null;Ju(ne)})}function Ju(x){for(var z=x.ops,ne=0;ne<z.length;ne++)_e(z[ne]);for(var te=0;te<z.length;te++)Ze(z[te]);for(var ie=0;ie<z.length;ie++)xt(z[ie]);for(var fe=0;fe<z.length;fe++)Lt(z[fe]);for(var Ce=0;Ce<z.length;Ce++)jt(z[Ce])}function _e(x){var z=x.cm,ne=z.display;nr(z),x.updateMaxLine&&cr(z),x.mustUpdate=x.viewChanged||x.forceUpdate||x.scrollTop!=null||x.scrollToPos&&(x.scrollToPos.from.line<ne.viewFrom||x.scrollToPos.to.line>=ne.viewTo)||ne.maxLineChanged&&z.options.lineWrapping,x.update=x.mustUpdate&&new In(z,x.mustUpdate&&{top:x.scrollTop,ensure:x.scrollToPos},x.forceUpdate)}function Ze(x){x.updatedDisplay=x.mustUpdate&&_r(x.cm,x.update)}function xt(x){var z=x.cm,ne=z.display;x.updatedDisplay&&qc(z),x.barMeasure=bc(z),ne.maxLineChanged&&!z.options.lineWrapping&&(x.adjustWidthTo=Fs(z,ne.maxLine,ne.maxLine.text.length).left+3,z.display.sizerWidth=x.adjustWidthTo,x.barMeasure.scrollWidth=Math.max(ne.scroller.clientWidth,ne.sizer.offsetLeft+x.adjustWidthTo+uo(z)+z.display.barWidth),x.maxScrollLeft=Math.max(0,ne.sizer.offsetLeft+x.adjustWidthTo-ao(z))),(x.updatedDisplay||x.selectionChanged)&&(x.preparedSelection=ne.input.prepareSelection())}function Lt(x){var z=x.cm;x.adjustWidthTo!=null&&(z.display.sizer.style.minWidth=x.adjustWidthTo+"px",x.maxScrollLeft<z.doc.scrollLeft&&Ol(z,Math.min(z.display.scroller.scrollLeft,x.maxScrollLeft),!0),z.display.maxLineChanged=!1);var ne=x.focus&&x.focus==Ge();x.preparedSelection&&z.display.input.showSelection(x.preparedSelection,ne),(x.updatedDisplay||x.startHeight!=z.doc.height)&&Vl(z,x.barMeasure),x.updatedDisplay&&Ei(z,x.barMeasure),x.selectionChanged&&Jc(z),z.state.focused&&x.updateInput&&z.display.input.reset(x.typing),ne&&Kc(x.cm)}function jt(x){var z=x.cm,ne=z.display,te=z.doc;if(x.updatedDisplay&&Sr(z,x.update),ne.wheelStartX!=null&&(x.scrollTop!=null||x.scrollLeft!=null||x.scrollToPos)&&(ne.wheelStartX=ne.wheelStartY=null),x.scrollTop!=null&&Yu(z,x.scrollTop,x.forceScroll),x.scrollLeft!=null&&Ol(z,x.scrollLeft,!0,!0),x.scrollToPos){var ie=ac(z,Bn(te,x.scrollToPos.from),Bn(te,x.scrollToPos.to),x.scrollToPos.margin);Bl(z,ie)}var fe=x.maybeHiddenMarkers,Ce=x.maybeUnhiddenMarkers;if(fe)for(var Ne=0;Ne<fe.length;++Ne)fe[Ne].lines.length||Le(fe[Ne],"hide");if(Ce)for(var $e=0;$e<Ce.length;++$e)Ce[$e].lines.length&&Le(Ce[$e],"unhide");ne.wrapper.offsetHeight&&(te.scrollTop=z.display.scroller.scrollTop),x.changeObjs&&Le(z,"changes",z,x.changeObjs),x.update&&x.update.finish()}function zt(x,z){if(x.curOp)return z();ks(x);try{return z()}finally{Nl(x)}}function cn(x,z){return function(){if(x.curOp)return z.apply(x,arguments);ks(x);try{return z.apply(x,arguments)}finally{Nl(x)}}}function sn(x){return function(){if(this.curOp)return x.apply(this,arguments);ks(this);try{return x.apply(this,arguments)}finally{Nl(this)}}}function an(x){return function(){var z=this.cm;if(!z||z.curOp)return x.apply(this,arguments);ks(z);try{return x.apply(this,arguments)}finally{Nl(z)}}}function Mn(x,z){x.doc.highlightFrontier<x.display.viewTo&&x.state.highlight.set(z,Nt(Nn,x))}function Nn(x){var z=x.doc;if(!(z.highlightFrontier>=x.display.viewTo)){var ne=+new Date+x.options.workTime,te=vn(x,z.highlightFrontier),ie=[];z.iter(te.line,Math.min(z.first+z.size,x.display.viewTo+500),function(fe){if(te.line>=x.display.viewFrom){var Ce=fe.styles,Ne=fe.text.length>x.options.maxHighlightLength?ze(z.mode,te.state):null,$e=xn(x,fe,te,!0);Ne&&(te.state=Ne),fe.styles=$e.styles;var tt=fe.styleClasses,Ht=$e.classes;Ht?fe.styleClasses=Ht:tt&&(fe.styleClasses=null);for(var qt=!Ce||Ce.length!=fe.styles.length||tt!=Ht&&(!tt||!Ht||tt.bgClass!=Ht.bgClass||tt.textClass!=Ht.textClass),kn=0;!qt&&kn<Ce.length;++kn)qt=Ce[kn]!=fe.styles[kn];qt&&ie.push(te.line),fe.stateAfter=te.save(),te.nextLine()}else fe.text.length<=x.options.maxHighlightLength&&pn(x,fe.text,te),fe.stateAfter=te.line%5==0?te.save():null,te.nextLine();if(+new Date>ne)return Mn(x,x.options.workDelay),!0}),z.highlightFrontier=te.line,z.modeFrontier=Math.max(z.modeFrontier,te.line),ie.length&&zt(x,function(){for(var fe=0;fe<ie.length;fe++)qs(x,ie[fe],"text")})}}var In=function(x,z,ne){var te=x.display;this.viewport=z,this.visible=os(te,x.doc,z),this.editorIsHidden=!te.wrapper.offsetWidth,this.wrapperHeight=te.wrapper.clientHeight,this.wrapperWidth=te.wrapper.clientWidth,this.oldDisplayWidth=ao(x),this.force=ne,this.dims=_a(x),this.events=[]};In.prototype.signal=function(x,z){_t(x,z)&&this.events.push(arguments)},In.prototype.finish=function(){for(var x=0;x<this.events.length;x++)Le.apply(null,this.events[x])};function nr(x){var z=x.display;!z.scrollbarsClipped&&z.scroller.offsetWidth&&(z.nativeBarWidth=z.scroller.offsetWidth-z.scroller.clientWidth,z.heightForcer.style.height=uo(x)+"px",z.sizer.style.marginBottom=-z.nativeBarWidth+"px",z.sizer.style.borderRightWidth=uo(x)+"px",z.scrollbarsClipped=!0)}function Yn(x){if(x.hasFocus())return null;var z=Ge();if(!z||!Mt(x.display.lineDiv,z))return null;var ne={activeElt:z};if(window.getSelection){var te=window.getSelection();te.anchorNode&&te.extend&&Mt(x.display.lineDiv,te.anchorNode)&&(ne.anchorNode=te.anchorNode,ne.anchorOffset=te.anchorOffset,ne.focusNode=te.focusNode,ne.focusOffset=te.focusOffset)}return ne}function tr(x){if(!(!x||!x.activeElt||x.activeElt==Ge())&&(x.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(x.activeElt.nodeName)&&x.anchorNode&&Mt(document.body,x.anchorNode)&&Mt(document.body,x.focusNode))){var z=window.getSelection(),ne=document.createRange();ne.setEnd(x.anchorNode,x.anchorOffset),ne.collapse(!1),z.removeAllRanges(),z.addRange(ne),z.extend(x.focusNode,x.focusOffset)}}function _r(x,z){var ne=x.display,te=x.doc;if(z.editorIsHidden)return el(x),!1;if(!z.force&&z.visible.from>=ne.viewFrom&&z.visible.to<=ne.viewTo&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo)&&ne.renderedView==ne.view&&Xc(x)==0)return!1;ui(x)&&(el(x),z.dims=_a(x));var ie=te.first+te.size,fe=Math.max(z.visible.from-x.options.viewportMargin,te.first),Ce=Math.min(ie,z.visible.to+x.options.viewportMargin);ne.viewFrom<fe&&fe-ne.viewFrom<20&&(fe=Math.max(te.first,ne.viewFrom)),ne.viewTo>Ce&&ne.viewTo-Ce<20&&(Ce=Math.min(ie,ne.viewTo)),Gr&&(fe=Da(x.doc,fe),Ce=Wi(x.doc,Ce));var Ne=fe!=ne.viewFrom||Ce!=ne.viewTo||ne.lastWrapHeight!=z.wrapperHeight||ne.lastWrapWidth!=z.wrapperWidth;Tl(x,fe,Ce),ne.viewOffset=sr(Ct(x.doc,ne.viewFrom)),x.display.mover.style.top=ne.viewOffset+"px";var $e=Xc(x);if(!Ne&&$e==0&&!z.force&&ne.renderedView==ne.view&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo))return!1;var tt=Yn(x);return $e>4&&(ne.lineDiv.style.display="none"),Mr(x,ne.updateLineNumbers,z.dims),$e>4&&(ne.lineDiv.style.display=""),ne.renderedView=ne.view,tr(tt),Ue(ne.cursorDiv),Ue(ne.selectionDiv),ne.gutters.style.height=ne.sizer.style.minHeight=0,Ne&&(ne.lastWrapHeight=z.wrapperHeight,ne.lastWrapWidth=z.wrapperWidth,Mn(x,400)),ne.updateLineNumbers=null,!0}function Sr(x,z){for(var ne=z.viewport,te=!0;;te=!1){if(!te||!x.options.lineWrapping||z.oldDisplayWidth==ao(x)){if(ne&&ne.top!=null&&(ne={top:Math.min(x.doc.height+sl(x.display)-fs(x),ne.top)}),z.visible=os(x.display,x.doc,ne),z.visible.from>=x.display.viewFrom&&z.visible.to<=x.display.viewTo)break}else te&&(z.visible=os(x.display,x.doc,ne));if(!_r(x,z))break;qc(x);var ie=bc(x);vc(x),Vl(x,ie),Ei(x,ie),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 Rr(x,z){var ne=new In(x,z);if(_r(x,ne)){qc(x),Sr(x,ne);var te=bc(x);vc(x),Vl(x,te),Ei(x,te),ne.finish()}}function Mr(x,z,ne){var te=x.display,ie=x.options.lineNumbers,fe=te.lineDiv,Ce=fe.firstChild;function Ne(Qn){var dr=Qn.nextSibling;return he&&pt&&x.display.currentWheelTarget==Qn?Qn.style.display="none":Qn.parentNode.removeChild(Qn),dr}for(var $e=te.view,tt=te.viewFrom,Ht=0;Ht<$e.length;Ht++){var qt=$e[Ht];if(!qt.hidden)if(!qt.node||qt.node.parentNode!=fe){var kn=Ti(x,qt,tt,ne);fe.insertBefore(kn,Ce)}else{for(;Ce!=qt.node;)Ce=Ne(Ce);var Sn=ie&&z!=null&&z<=tt&&qt.lineNumber;qt.changes&&(bt(qt.changes,"gutter")>-1&&(Sn=!1),ji(x,qt,tt,ne)),Sn&&(Ue(qt.lineNumber),qt.lineNumber.appendChild(document.createTextNode(Tn(x.options,tt)))),Ce=qt.node.nextSibling}tt+=qt.size}for(;Ce;)Ce=Ne(Ce)}function Yr(x){var z=x.gutters.offsetWidth;x.sizer.style.marginLeft=z+"px"}function Ei(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+uo(x)+"px"}function Ai(x){var z=x.display,ne=z.view;if(!(!z.alignWidgets&&(!z.gutters.firstChild||!x.options.fixedGutter))){for(var te=Qa(z)-z.scroller.scrollLeft+x.doc.scrollLeft,ie=z.gutters.offsetWidth,fe=te+"px",Ce=0;Ce<ne.length;Ce++)if(!ne[Ce].hidden){x.options.fixedGutter&&(ne[Ce].gutter&&(ne[Ce].gutter.style.left=fe),ne[Ce].gutterBackground&&(ne[Ce].gutterBackground.style.left=fe));var Ne=ne[Ce].alignable;if(Ne)for(var $e=0;$e<Ne.length;$e++)Ne[$e].style.left=fe}x.options.fixedGutter&&(z.gutters.style.left=te+ie+"px")}}function ui(x){if(!x.options.lineNumbers)return!1;var z=x.doc,ne=Tn(x.options,z.first+z.size-1),te=x.display;if(ne.length!=te.lineNumChars){var ie=te.measure.appendChild(Ye("div",[Ye("div",ne)],"CodeMirror-linenumber CodeMirror-gutter-elt")),fe=ie.firstChild.offsetWidth,Ce=ie.offsetWidth-fe;return te.lineGutter.style.width="",te.lineNumInnerWidth=Math.max(fe,te.lineGutter.offsetWidth-Ce)+1,te.lineNumWidth=te.lineNumInnerWidth+Ce,te.lineNumChars=te.lineNumInnerWidth?ne.length:-1,te.lineGutter.style.width=te.lineNumWidth+"px",Yr(x.display),!0}return!1}function zi(x,z){for(var ne=[],te=!1,ie=0;ie<x.length;ie++){var fe=x[ie],Ce=null;if(typeof fe!="string"&&(Ce=fe.style,fe=fe.className),fe=="CodeMirror-linenumbers")if(z)te=!0;else continue;ne.push({className:fe,style:Ce})}return z&&!te&&ne.push({className:"CodeMirror-linenumbers",style:null}),ne}function Yi(x){var z=x.gutters,ne=x.gutterSpecs;Ue(z),x.lineGutter=null;for(var te=0;te<ne.length;++te){var ie=ne[te],fe=ie.className,Ce=ie.style,Ne=z.appendChild(Ye("div",null,"CodeMirror-gutter "+fe));Ce&&(Ne.style.cssText=Ce),fe=="CodeMirror-linenumbers"&&(x.lineGutter=Ne,Ne.style.width=(x.lineNumWidth||1)+"px")}z.style.display=ne.length?"":"none",Yr(x)}function ni(x){Yi(x.display),Ho(x),Ai(x)}function yi(x,z,ne,te){var ie=this;this.input=ne,ie.scrollbarFiller=Ye("div",null,"CodeMirror-scrollbar-filler"),ie.scrollbarFiller.setAttribute("cm-not-content","true"),ie.gutterFiller=Ye("div",null,"CodeMirror-gutter-filler"),ie.gutterFiller.setAttribute("cm-not-content","true"),ie.lineDiv=st("div",null,"CodeMirror-code"),ie.selectionDiv=Ye("div",null,null,"position: relative; z-index: 1"),ie.cursorDiv=Ye("div",null,"CodeMirror-cursors"),ie.measure=Ye("div",null,"CodeMirror-measure"),ie.lineMeasure=Ye("div",null,"CodeMirror-measure"),ie.lineSpace=st("div",[ie.measure,ie.lineMeasure,ie.selectionDiv,ie.cursorDiv,ie.lineDiv],null,"position: relative; outline: none");var fe=st("div",[ie.lineSpace],"CodeMirror-lines");ie.mover=Ye("div",[fe],null,"position: relative"),ie.sizer=Ye("div",[ie.mover],"CodeMirror-sizer"),ie.sizerWidth=null,ie.heightForcer=Ye("div",null,null,"position: absolute; height: "+Qt+"px; width: 1px;"),ie.gutters=Ye("div",null,"CodeMirror-gutters"),ie.lineGutter=null,ie.scroller=Ye("div",[ie.sizer,ie.heightForcer,ie.gutters],"CodeMirror-scroll"),ie.scroller.setAttribute("tabIndex","-1"),ie.wrapper=Ye("div",[ie.scrollbarFiller,ie.gutterFiller,ie.scroller],"CodeMirror"),be&&Ee<8&&(ie.gutters.style.zIndex=-1,ie.scroller.style.paddingRight=0),!he&&!(ue&&je)&&(ie.scroller.draggable=!0),x&&(x.appendChild?x.appendChild(ie.wrapper):x(ie.wrapper)),ie.viewFrom=ie.viewTo=z.first,ie.reportedViewFrom=ie.reportedViewTo=z.first,ie.view=[],ie.renderedView=null,ie.externalMeasured=null,ie.viewOffset=0,ie.lastWrapHeight=ie.lastWrapWidth=0,ie.updateLineNumbers=null,ie.nativeBarWidth=ie.barHeight=ie.barWidth=0,ie.scrollbarsClipped=!1,ie.lineNumWidth=ie.lineNumInnerWidth=ie.lineNumChars=null,ie.alignWidgets=!1,ie.cachedCharWidth=ie.cachedTextHeight=ie.cachedPaddingH=null,ie.maxLine=null,ie.maxLineLength=0,ie.maxLineChanged=!1,ie.wheelDX=ie.wheelDY=ie.wheelStartX=ie.wheelStartY=null,ie.shift=!1,ie.selForContextMenu=null,ie.activeTouch=null,ie.gutterSpecs=zi(te.gutters,te.lineNumbers),Yi(ie),ne.init(ie)}var ii=0,gr=null;be?gr=-.53:ue?gr=15:Me?gr=-.7:ct&&(gr=-1/3);function oi(x){var z=x.wheelDeltaX,ne=x.wheelDeltaY;return z==null&&x.detail&&x.axis==x.HORIZONTAL_AXIS&&(z=x.detail),ne==null&&x.detail&&x.axis==x.VERTICAL_AXIS?ne=x.detail:ne==null&&(ne=x.wheelDelta),{x:z,y:ne}}function _i(x){var z=oi(x);return z.x*=gr,z.y*=gr,z}function aa(x,z){var ne=oi(z),te=ne.x,ie=ne.y,fe=x.display,Ce=fe.scroller,Ne=Ce.scrollWidth>Ce.clientWidth,$e=Ce.scrollHeight>Ce.clientHeight;if(te&&Ne||ie&&$e){if(ie&&pt&&he){e:for(var tt=z.target,Ht=fe.view;tt!=Ce;tt=tt.parentNode)for(var qt=0;qt<Ht.length;qt++)if(Ht[qt].node==tt){x.display.currentWheelTarget=tt;break e}}if(te&&!ue&&!Pe&&gr!=null){ie&&$e&&Ul(x,Math.max(0,Ce.scrollTop+ie*gr)),Ol(x,Math.max(0,Ce.scrollLeft+te*gr)),(!ie||ie&&$e)&&gn(z),fe.wheelStartX=null;return}if(ie&&gr!=null){var kn=ie*gr,Sn=x.doc.scrollTop,Qn=Sn+fe.wrapper.clientHeight;kn<0?Sn=Math.max(0,Sn+kn-50):Qn=Math.min(x.doc.height,Qn+kn+50),Rr(x,{top:Sn,bottom:Qn})}ii<20&&(fe.wheelStartX==null?(fe.wheelStartX=Ce.scrollLeft,fe.wheelStartY=Ce.scrollTop,fe.wheelDX=te,fe.wheelDY=ie,setTimeout(function(){if(fe.wheelStartX!=null){var dr=Ce.scrollLeft-fe.wheelStartX,jr=Ce.scrollTop-fe.wheelStartY,si=jr&&fe.wheelDY&&jr/fe.wheelDY||dr&&fe.wheelDX&&dr/fe.wheelDX;fe.wheelStartX=fe.wheelStartY=null,si&&(gr=(gr*ii+si)/(ii+1),++ii)}},200)):(fe.wheelDX+=te,fe.wheelDY+=ie))}}var Oi=function(x,z){this.ranges=x,this.primIndex=z};Oi.prototype.primary=function(){return this.ranges[this.primIndex]},Oi.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 ne=this.ranges[z],te=x.ranges[z];if(!Vn(ne.anchor,te.anchor)||!Vn(ne.head,te.head))return!1}return!0},Oi.prototype.deepCopy=function(){for(var x=[],z=0;z<this.ranges.length;z++)x[z]=new $r(Fn(this.ranges[z].anchor),Fn(this.ranges[z].head));return new Oi(x,this.primIndex)},Oi.prototype.somethingSelected=function(){for(var x=0;x<this.ranges.length;x++)if(!this.ranges[x].empty())return!0;return!1},Oi.prototype.contains=function(x,z){z||(z=x);for(var ne=0;ne<this.ranges.length;ne++){var te=this.ranges[ne];if(bn(z,te.from())>=0&&bn(x,te.to())<=0)return ne}return-1};var $r=function(x,z){this.anchor=x,this.head=z};$r.prototype.from=function(){return Wn(this.anchor,this.head)},$r.prototype.to=function(){return Jn(this.anchor,this.head)},$r.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ui(x,z,ne){var te=x&&x.options.selectionsMayTouch,ie=z[ne];z.sort(function(kn,Sn){return bn(kn.from(),Sn.from())}),ne=bt(z,ie);for(var fe=1;fe<z.length;fe++){var Ce=z[fe],Ne=z[fe-1],$e=bn(Ne.to(),Ce.from());if(te&&!Ce.empty()?$e>0:$e>=0){var tt=Wn(Ne.from(),Ce.from()),Ht=Jn(Ne.to(),Ce.to()),qt=Ne.empty()?Ce.from()==Ce.head:Ne.from()==Ne.head;fe<=ne&&--ne,z.splice(--fe,2,new $r(qt?Ht:tt,qt?tt:Ht))}}return new Oi(z,ne)}function Xi(x,z){return new Oi([new $r(x,z||x)],0)}function Ea(x){return x.text?Ut(x.from.line+x.text.length-1,tn(x.text).length+(x.text.length==1?x.from.ch:0)):x.to}function ba(x,z){if(bn(x,z.from)<0)return x;if(bn(x,z.to)<=0)return Ea(z);var ne=x.line+z.text.length-(z.to.line-z.from.line)-1,te=x.ch;return x.line==z.to.line&&(te+=Ea(z).ch-z.to.ch),Ut(ne,te)}function oo(x,z){for(var ne=[],te=0;te<x.sel.ranges.length;te++){var ie=x.sel.ranges[te];ne.push(new $r(ba(ie.anchor,z),ba(ie.head,z)))}return Ui(x.cm,ne,x.sel.primIndex)}function Ya(x,z,ne){return x.line==z.line?Ut(ne.line,x.ch-z.ch+ne.ch):Ut(ne.line+(x.line-z.line),x.ch)}function Gi(x,z,ne){for(var te=[],ie=Ut(x.first,0),fe=ie,Ce=0;Ce<z.length;Ce++){var Ne=z[Ce],$e=Ya(Ne.from,ie,fe),tt=Ya(Ea(Ne),ie,fe);if(ie=Ne.to,fe=tt,ne=="around"){var Ht=x.sel.ranges[Ce],qt=bn(Ht.head,Ht.anchor)<0;te[Ce]=new $r(qt?tt:$e,qt?$e:tt)}else te[Ce]=new $r($e,$e)}return new Oi(te,x.sel.primIndex)}function So(x){x.doc.mode=Hn(x.options,x.doc.modeOption),da(x)}function da(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,Mn(x,100),x.state.modeGen++,x.curOp&&Ho(x)}function ro(x,z){return z.from.ch==0&&z.to.ch==0&&tn(z.text)==""&&(!x.cm||x.cm.options.wholeLineUpdateBefore)}function Xa(x,z,ne,te){function ie(vi){return ne?ne[vi]:null}function fe(vi,qr,bi){Ki(vi,qr,bi,te),ci(vi,"change",vi,z)}function Ce(vi,qr){for(var bi=[],Fi=vi;Fi<qr;++Fi)bi.push(new Or(tt[Fi],ie(Fi),te));return bi}var Ne=z.from,$e=z.to,tt=z.text,Ht=Ct(x,Ne.line),qt=Ct(x,$e.line),kn=tn(tt),Sn=ie(tt.length-1),Qn=$e.line-Ne.line;if(z.full)x.insert(0,Ce(0,tt.length)),x.remove(tt.length,x.size-tt.length);else if(ro(x,z)){var dr=Ce(0,tt.length-1);fe(qt,qt.text,Sn),Qn&&x.remove(Ne.line,Qn),dr.length&&x.insert(Ne.line,dr)}else if(Ht==qt)if(tt.length==1)fe(Ht,Ht.text.slice(0,Ne.ch)+kn+Ht.text.slice($e.ch),Sn);else{var jr=Ce(1,tt.length-1);jr.push(new Or(kn+Ht.text.slice($e.ch),Sn,te)),fe(Ht,Ht.text.slice(0,Ne.ch)+tt[0],ie(0)),x.insert(Ne.line+1,jr)}else if(tt.length==1)fe(Ht,Ht.text.slice(0,Ne.ch)+tt[0]+qt.text.slice($e.ch),ie(0)),x.remove(Ne.line+1,Qn);else{fe(Ht,Ht.text.slice(0,Ne.ch)+tt[0],ie(0)),fe(qt,kn+qt.text.slice($e.ch),Sn);var si=Ce(1,tt.length-1);Qn>1&&x.remove(Ne.line+1,Qn-1),x.insert(Ne.line+1,si)}ci(x,"change",x,z)}function Do(x,z,ne){function te(ie,fe,Ce){if(ie.linked)for(var Ne=0;Ne<ie.linked.length;++Ne){var $e=ie.linked[Ne];if($e.doc!=fe){var tt=Ce&&$e.sharedHist;ne&&!tt||(z($e.doc,tt),te($e.doc,ie,tt))}}}te(x,null,!0)}function Pi(x,z){if(z.cm)throw new Error("This document is already in use.");x.doc=z,z.cm=x,Xo(x),So(x),Ii(x),x.options.lineWrapping||cr(x),x.options.mode=z.modeOption,Ho(x)}function Ii(x){(x.doc.direction=="rtl"?Ot:Ke)(x.display.lineDiv,"CodeMirror-rtl")}function Di(x){zt(x,function(){Ii(x),Ho(x)})}function Si(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 xa(x,z){var ne={from:Fn(z.from),to:Ea(z),text:Rt(x,z.from,z.to)};return Hs(x,ne,z.from.line,z.to.line+1),Do(x,function(te){return Hs(te,ne,z.from.line,z.to.line+1)},!0),ne}function Mi(x){for(;x.length;){var z=tn(x);if(z.ranges)x.pop();else break}}function Vi(x,z){if(z)return Mi(x.done),tn(x.done);if(x.done.length&&!tn(x.done).ranges)return tn(x.done);if(x.done.length>1&&!x.done[x.done.length-2].ranges)return x.done.pop(),tn(x.done)}function fa(x,z,ne,te){var ie=x.history;ie.undone.length=0;var fe=+new Date,Ce,Ne;if((ie.lastOp==te||ie.lastOrigin==z.origin&&z.origin&&(z.origin.charAt(0)=="+"&&ie.lastModTime>fe-(x.cm?x.cm.options.historyEventDelay:500)||z.origin.charAt(0)=="*"))&&(Ce=Vi(ie,ie.lastOp==te)))Ne=tn(Ce.changes),bn(z.from,z.to)==0&&bn(z.from,Ne.to)==0?Ne.to=Ea(z):Ce.changes.push(xa(x,z));else{var $e=tn(ie.done);for((!$e||!$e.ranges)&&Lo(x.sel,ie.done),Ce={changes:[xa(x,z)],generation:ie.generation},ie.done.push(Ce);ie.done.length>ie.undoDepth;)ie.done.shift(),ie.done[0].ranges||ie.done.shift()}ie.done.push(ne),ie.generation=++ie.maxGeneration,ie.lastModTime=ie.lastSelTime=fe,ie.lastOp=ie.lastSelOp=te,ie.lastOrigin=ie.lastSelOrigin=z.origin,Ne||Le(x,"historyAdded")}function ua(x,z,ne,te){var ie=z.charAt(0);return ie=="*"||ie=="+"&&ne.ranges.length==te.ranges.length&&ne.somethingSelected()==te.somethingSelected()&&new Date-x.history.lastSelTime<=(x.cm?x.cm.options.historyEventDelay:500)}function Jo(x,z,ne,te){var ie=x.history,fe=te&&te.origin;ne==ie.lastSelOp||fe&&ie.lastSelOrigin==fe&&(ie.lastModTime==ie.lastSelTime&&ie.lastOrigin==fe||ua(x,fe,tn(ie.done),z))?ie.done[ie.done.length-1]=z:Lo(z,ie.done),ie.lastSelTime=+new Date,ie.lastSelOrigin=fe,ie.lastSelOp=ne,te&&te.clearRedo!==!1&&Mi(ie.undone)}function Lo(x,z){var ne=tn(z);ne&&ne.ranges&&ne.equals(x)||z.push(x)}function Hs(x,z,ne,te){var ie=z["spans_"+x.id],fe=0;x.iter(Math.max(x.first,ne),Math.min(x.first+x.size,te),function(Ce){Ce.markedSpans&&((ie||(ie=z["spans_"+x.id]={}))[fe]=Ce.markedSpans),++fe})}function Co(x){if(!x)return null;for(var z,ne=0;ne<x.length;++ne)x[ne].marker.explicitlyCleared?z||(z=x.slice(0,ne)):z&&z.push(x[ne]);return z?z.length?z:null:x}function Gs(x,z){var ne=z["spans_"+x.id];if(!ne)return null;for(var te=[],ie=0;ie<z.text.length;++ie)te.push(Co(ne[ie]));return te}function Eo(x,z){var ne=Gs(x,z),te=Xn(x,z);if(!ne)return te;if(!te)return ne;for(var ie=0;ie<ne.length;++ie){var fe=ne[ie],Ce=te[ie];if(fe&&Ce)e:for(var Ne=0;Ne<Ce.length;++Ne){for(var $e=Ce[Ne],tt=0;tt<fe.length;++tt)if(fe[tt].marker==$e.marker)continue e;fe.push($e)}else Ce&&(ne[ie]=Ce)}return ne}function Zo(x,z,ne){for(var te=[],ie=0;ie<x.length;++ie){var fe=x[ie];if(fe.ranges){te.push(ne?Oi.prototype.deepCopy.call(fe):fe);continue}var Ce=fe.changes,Ne=[];te.push({changes:Ne});for(var $e=0;$e<Ce.length;++$e){var tt=Ce[$e],Ht=void 0;if(Ne.push({from:tt.from,to:tt.to,text:tt.text}),z)for(var qt in tt)(Ht=qt.match(/^spans_(\d+)$/))&&bt(z,Number(Ht[1]))>-1&&(tn(Ne)[qt]=tt[qt],delete tt[qt])}}return te}function bl(x,z,ne,te){if(te){var ie=x.anchor;if(ne){var fe=bn(z,ie)<0;fe!=bn(ne,ie)<0?(ie=z,z=ne):fe!=bn(z,ne)<0&&(z=ne)}return new $r(ie,z)}else return new $r(ne||z,z)}function ya(x,z,ne,te,ie){ie==null&&(ie=x.cm&&(x.cm.display.shift||x.extend)),Oa(x,new Oi([bl(x.sel.primary(),z,ne,ie)],0),te)}function pr(x,z,ne){for(var te=[],ie=x.cm&&(x.cm.display.shift||x.extend),fe=0;fe<x.sel.ranges.length;fe++)te[fe]=bl(x.sel.ranges[fe],z[fe],null,ie);var Ce=Ui(x.cm,te,x.sel.primIndex);Oa(x,Ce,ne)}function Ma(x,z,ne,te){var ie=x.sel.ranges.slice(0);ie[z]=ne,Oa(x,Ui(x.cm,ie,x.sel.primIndex),te)}function Ao(x,z,ne,te){Oa(x,Xi(z,ne),te)}function To(x,z,ne){var te={ranges:z.ranges,update:function(ie){this.ranges=[];for(var fe=0;fe<ie.length;fe++)this.ranges[fe]=new $r(Bn(x,ie[fe].anchor),Bn(x,ie[fe].head))},origin:ne&&ne.origin};return Le(x,"beforeSelectionChange",x,te),x.cm&&Le(x.cm,"beforeSelectionChange",x.cm,te),te.ranges!=z.ranges?Ui(x.cm,te.ranges,te.ranges.length-1):z}function Hi(x,z,ne){var te=x.history.done,ie=tn(te);ie&&ie.ranges?(te[te.length-1]=z,Wo(x,z,ne)):Oa(x,z,ne)}function Oa(x,z,ne){Wo(x,z,ne),Jo(x,x.sel,x.cm?x.cm.curOp.id:NaN,ne)}function Wo(x,z,ne){(_t(x,"beforeSelectionChange")||x.cm&&_t(x.cm,"beforeSelectionChange"))&&(z=To(x,z,ne));var te=ne&&ne.bias||(bn(z.primary().head,x.sel.primary().head)<0?-1:1);Ns(x,xs(x,z,te,!0)),!(ne&&ne.scroll===!1)&&x.cm&&yc(x.cm)}function Ns(x,z){z.equals(x.sel)||(x.sel=z,x.cm&&(x.cm.curOp.updateInput=1,x.cm.curOp.selectionChanged=!0,Pt(x.cm)),ci(x,"cursorActivity",x))}function dl(x){Ns(x,xs(x,x.sel,null,!1))}function xs(x,z,ne,te){for(var ie,fe=0;fe<z.ranges.length;fe++){var Ce=z.ranges[fe],Ne=z.ranges.length==x.sel.ranges.length&&x.sel.ranges[fe],$e=nl(x,Ce.anchor,Ne&&Ne.anchor,ne,te),tt=nl(x,Ce.head,Ne&&Ne.head,ne,te);(ie||$e!=Ce.anchor||tt!=Ce.head)&&(ie||(ie=z.ranges.slice(0,fe)),ie[fe]=new $r($e,tt))}return ie?Ui(x.cm,ie,z.primIndex):z}function qo(x,z,ne,te,ie){var fe=Ct(x,z.line);if(fe.markedSpans)for(var Ce=0;Ce<fe.markedSpans.length;++Ce){var Ne=fe.markedSpans[Ce],$e=Ne.marker,tt="selectLeft"in $e?!$e.selectLeft:$e.inclusiveLeft,Ht="selectRight"in $e?!$e.selectRight:$e.inclusiveRight;if((Ne.from==null||(tt?Ne.from<=z.ch:Ne.from<z.ch))&&(Ne.to==null||(Ht?Ne.to>=z.ch:Ne.to>z.ch))){if(ie&&(Le($e,"beforeCursorEnter"),$e.explicitlyCleared))if(fe.markedSpans){--Ce;continue}else break;if(!$e.atomic)continue;if(ne){var qt=$e.find(te<0?1:-1),kn=void 0;if((te<0?Ht:tt)&&(qt=es(x,qt,-te,qt&&qt.line==z.line?fe:null)),qt&&qt.line==z.line&&(kn=bn(qt,ne))&&(te<0?kn<0:kn>0))return qo(x,qt,z,te,ie)}var Sn=$e.find(te<0?-1:1);return(te<0?tt:Ht)&&(Sn=es(x,Sn,te,Sn.line==z.line?fe:null)),Sn?qo(x,Sn,z,te,ie):null}}return z}function nl(x,z,ne,te,ie){var fe=te||1,Ce=qo(x,z,ne,fe,ie)||!ie&&qo(x,z,ne,fe,!0)||qo(x,z,ne,-fe,ie)||!ie&&qo(x,z,ne,-fe,!0);return Ce||(x.cantEdit=!0,Ut(x.first,0))}function es(x,z,ne,te){return ne<0&&z.ch==0?z.line>x.first?Bn(x,Ut(z.line-1)):null:ne>0&&z.ch==(te||Ct(x,z.line)).text.length?z.line<x.first+x.size-1?Ut(z.line+1,0):null:new Ut(z.line,z.ch+ne)}function Ss(x){x.setSelection(Ut(x.firstLine(),0),Ut(x.lastLine()),at)}function ss(x,z,ne){var te={canceled:!1,from:z.from,to:z.to,text:z.text,origin:z.origin,cancel:function(){return te.canceled=!0}};return ne&&(te.update=function(ie,fe,Ce,Ne){ie&&(te.from=Bn(x,ie)),fe&&(te.to=Bn(x,fe)),Ce&&(te.text=Ce),Ne!==void 0&&(te.origin=Ne)}),Le(x,"beforeChange",x,te),x.cm&&Le(x.cm,"beforeChange",x.cm,te),te.canceled?(x.cm&&(x.cm.curOp.updateInput=2),null):{from:te.from,to:te.to,text:te.text,origin:te.origin}}function so(x,z,ne){if(x.cm){if(!x.cm.curOp)return cn(x.cm,so)(x,z,ne);if(x.cm.state.suppressEdits)return}if(!((_t(x,"beforeChange")||x.cm&&_t(x.cm,"beforeChange"))&&(z=ss(x,z,!0),!z))){var te=Jr&&!ne&&Wr(x,z.from,z.to);if(te)for(var ie=te.length-1;ie>=0;--ie)lo(x,{from:te[ie].from,to:te[ie].to,text:ie?[""]:z.text,origin:z.origin});else lo(x,z)}}function lo(x,z){if(!(z.text.length==1&&z.text[0]==""&&bn(z.from,z.to)==0)){var ne=oo(x,z);fa(x,z,ne,x.cm?x.cm.curOp.id:NaN),Zs(x,z,ne,Xn(x,z));var te=[];Do(x,function(ie,fe){!fe&&bt(te,ie.history)==-1&&(Ka(ie.history,z),te.push(ie.history)),Zs(ie,z,null,Xn(ie,z))})}}function ps(x,z,ne){var te=x.cm&&x.cm.state.suppressEdits;if(!(te&&!ne)){for(var ie=x.history,fe,Ce=x.sel,Ne=z=="undo"?ie.done:ie.undone,$e=z=="undo"?ie.undone:ie.done,tt=0;tt<Ne.length&&(fe=Ne[tt],!(ne?fe.ranges&&!fe.equals(x.sel):!fe.ranges));tt++);if(tt!=Ne.length){for(ie.lastOrigin=ie.lastSelOrigin=null;;)if(fe=Ne.pop(),fe.ranges){if(Lo(fe,$e),ne&&!fe.equals(x.sel)){Oa(x,fe,{clearRedo:!1});return}Ce=fe}else if(te){Ne.push(fe);return}else break;var Ht=[];Lo(Ce,$e),$e.push({changes:Ht,generation:ie.generation}),ie.generation=fe.generation||++ie.maxGeneration;for(var qt=_t(x,"beforeChange")||x.cm&&_t(x.cm,"beforeChange"),kn=function(dr){var jr=fe.changes[dr];if(jr.origin=z,qt&&!ss(x,jr,!1))return Ne.length=0,{};Ht.push(xa(x,jr));var si=dr?oo(x,jr):tn(Ne);Zs(x,jr,si,Eo(x,jr)),!dr&&x.cm&&x.cm.scrollIntoView({from:jr.from,to:Ea(jr)});var vi=[];Do(x,function(qr,bi){!bi&&bt(vi,qr.history)==-1&&(Ka(qr.history,jr),vi.push(qr.history)),Zs(qr,jr,null,Eo(qr,jr))})},Sn=fe.changes.length-1;Sn>=0;--Sn){var Qn=kn(Sn);if(Qn)return Qn.v}}}}function xl(x,z){if(z!=0&&(x.first+=z,x.sel=new Oi(en(x.sel.ranges,function(ie){return new $r(Ut(ie.anchor.line+z,ie.anchor.ch),Ut(ie.head.line+z,ie.head.ch))}),x.sel.primIndex),x.cm)){Ho(x.cm,x.first,x.first-z,z);for(var ne=x.cm.display,te=ne.viewFrom;te<ne.viewTo;te++)qs(x.cm,te,"gutter")}}function Zs(x,z,ne,te){if(x.cm&&!x.cm.curOp)return cn(x.cm,Zs)(x,z,ne,te);if(z.to.line<x.first){xl(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 ie=z.text.length-1-(x.first-z.from.line);xl(x,ie),z={from:Ut(x.first,0),to:Ut(z.to.line+ie,z.to.ch),text:[tn(z.text)],origin:z.origin}}var fe=x.lastLine();z.to.line>fe&&(z={from:z.from,to:Ut(fe,Ct(x,fe).text.length),text:[z.text[0]],origin:z.origin}),z.removed=Rt(x,z.from,z.to),ne||(ne=oo(x,z)),x.cm?fl(x.cm,z,te):Xa(x,z,te),Wo(x,ne,at),x.cantEdit&&nl(x,Ut(x.firstLine(),0))&&(x.cantEdit=!1)}}function fl(x,z,ne){var te=x.doc,ie=x.display,fe=z.from,Ce=z.to,Ne=!1,$e=fe.line;x.options.lineWrapping||($e=ln(mi(Ct(te,fe.line))),te.iter($e,Ce.line+1,function(Sn){if(Sn==ie.maxLine)return Ne=!0,!0})),te.sel.contains(z.from,z.to)>-1&&Pt(x),Xa(te,z,ne,bs(x)),x.options.lineWrapping||(te.iter($e,fe.line+z.text.length,function(Sn){var Qn=ur(Sn);Qn>ie.maxLineLength&&(ie.maxLine=Sn,ie.maxLineLength=Qn,ie.maxLineChanged=!0,Ne=!1)}),Ne&&(x.curOp.updateMaxLine=!0)),vr(te,fe.line),Mn(x,400);var tt=z.text.length-(Ce.line-fe.line)-1;z.full?Ho(x):fe.line==Ce.line&&z.text.length==1&&!ro(x.doc,z)?qs(x,fe.line,"text"):Ho(x,fe.line,Ce.line+1,tt);var Ht=_t(x,"changes"),qt=_t(x,"change");if(qt||Ht){var kn={from:fe,to:Ce,text:z.text,removed:z.removed,origin:z.origin};qt&&ci(x,"change",x,kn),Ht&&(x.curOp.changeObjs||(x.curOp.changeObjs=[])).push(kn)}x.display.selForContextMenu=null}function _l(x,z,ne,te,ie){var fe;te||(te=ne),bn(te,ne)<0&&(fe=[te,ne],ne=fe[0],te=fe[1]),typeof z=="string"&&(z=x.splitLines(z)),so(x,{from:ne,to:te,text:z,origin:ie})}function ru(x,z,ne,te){ne<x.line?x.line+=te:z<x.line&&(x.line=z,x.ch=0)}function Sa(x,z,ne,te){for(var ie=0;ie<x.length;++ie){var fe=x[ie],Ce=!0;if(fe.ranges){fe.copied||(fe=x[ie]=fe.deepCopy(),fe.copied=!0);for(var Ne=0;Ne<fe.ranges.length;Ne++)ru(fe.ranges[Ne].anchor,z,ne,te),ru(fe.ranges[Ne].head,z,ne,te);continue}for(var $e=0;$e<fe.changes.length;++$e){var tt=fe.changes[$e];if(ne<tt.from.line)tt.from=Ut(tt.from.line+te,tt.from.ch),tt.to=Ut(tt.to.line+te,tt.to.ch);else if(z<=tt.to.line){Ce=!1;break}}Ce||(x.splice(0,ie+1),ie=0)}}function Ka(x,z){var ne=z.from.line,te=z.to.line,ie=z.text.length-(te-ne)-1;Sa(x.done,ne,te,ie),Sa(x.undone,ne,te,ie)}function _o(x,z,ne,te){var ie=z,fe=z;return typeof z=="number"?fe=Ct(x,mr(x,z)):ie=ln(z),ie==null?null:(te(fe,ie)&&x.cm&&qs(x.cm,ie,ne),fe)}function $a(x){this.lines=x,this.parent=null;for(var z=0,ne=0;ne<x.length;++ne)x[ne].parent=this,z+=x[ne].height;this.height=z}$a.prototype={chunkSize:function(){return this.lines.length},removeInner:function(x,z){for(var ne=x,te=x+z;ne<te;++ne){var ie=this.lines[ne];this.height-=ie.height,ea(ie),ci(ie,"delete")}this.lines.splice(x,z)},collapse:function(x){x.push.apply(x,this.lines)},insertInner:function(x,z,ne){this.height+=ne,this.lines=this.lines.slice(0,x).concat(z).concat(this.lines.slice(x));for(var te=0;te<z.length;++te)z[te].parent=this},iterN:function(x,z,ne){for(var te=x+z;x<te;++x)if(ne(this.lines[x]))return!0}};function Ro(x){this.children=x;for(var z=0,ne=0,te=0;te<x.length;++te){var ie=x[te];z+=ie.chunkSize(),ne+=ie.height,ie.parent=this}this.size=z,this.height=ne,this.parent=null}Ro.prototype={chunkSize:function(){return this.size},removeInner:function(x,z){this.size-=z;for(var ne=0;ne<this.children.length;++ne){var te=this.children[ne],ie=te.chunkSize();if(x<ie){var fe=Math.min(z,ie-x),Ce=te.height;if(te.removeInner(x,fe),this.height-=Ce-te.height,ie==fe&&(this.children.splice(ne--,1),te.parent=null),(z-=fe)==0)break;x=0}else x-=ie}if(this.size-z<25&&(this.children.length>1||!(this.children[0]instanceof $a))){var Ne=[];this.collapse(Ne),this.children=[new $a(Ne)],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,ne){this.size+=z.length,this.height+=ne;for(var te=0;te<this.children.length;++te){var ie=this.children[te],fe=ie.chunkSize();if(x<=fe){if(ie.insertInner(x,z,ne),ie.lines&&ie.lines.length>50){for(var Ce=ie.lines.length%25+25,Ne=Ce;Ne<ie.lines.length;){var $e=new $a(ie.lines.slice(Ne,Ne+=25));ie.height-=$e.height,this.children.splice(++te,0,$e),$e.parent=this}ie.lines=ie.lines.slice(0,Ce),this.maybeSpill()}break}x-=fe}},maybeSpill:function(){if(!(this.children.length<=10)){var x=this;do{var z=x.children.splice(x.children.length-5,5),ne=new Ro(z);if(x.parent){x.size-=ne.size,x.height-=ne.height;var ie=bt(x.parent.children,x);x.parent.children.splice(ie+1,0,ne)}else{var te=new Ro(x.children);te.parent=x,x.children=[te,ne],x=te}ne.parent=x.parent}while(x.children.length>10);x.parent.maybeSpill()}},iterN:function(x,z,ne){for(var te=0;te<this.children.length;++te){var ie=this.children[te],fe=ie.chunkSize();if(x<fe){var Ce=Math.min(z,fe-x);if(ie.iterN(x,Ce,ne))return!0;if((z-=Ce)==0)break;x=0}else x-=fe}}};var ts=function(x,z,ne){if(ne)for(var te in ne)ne.hasOwnProperty(te)&&(this[te]=ne[te]);this.doc=x,this.node=z};ts.prototype.clear=function(){var x=this.doc.cm,z=this.line.widgets,ne=this.line,te=ln(ne);if(!(te==null||!z)){for(var ie=0;ie<z.length;++ie)z[ie]==this&&z.splice(ie--,1);z.length||(ne.widgets=null);var fe=to(this);Vt(ne,Math.max(0,ne.height-fe)),x&&(zt(x,function(){As(x,ne,-fe),qs(x,te,"widget")}),ci(x,"lineWidgetCleared",x,this,te))}},ts.prototype.changed=function(){var x=this,z=this.height,ne=this.doc.cm,te=this.line;this.height=null;var ie=to(this)-z;ie&&(ma(this.doc,te)||Vt(te,te.height+ie),ne&&zt(ne,function(){ne.curOp.forceUpdate=!0,As(ne,te,ie),ci(ne,"lineWidgetChanged",ne,x,ln(te))}))},Xt(ts);function As(x,z,ne){sr(z)<(x.curOp&&x.curOp.scrollTop||x.doc.scrollTop)&&tu(x,ne)}function Sl(x,z,ne,te){var ie=new ts(x,ne,te),fe=x.cm;return fe&&ie.noHScroll&&(fe.display.alignWidgets=!0),_o(x,z,"widget",function(Ce){var Ne=Ce.widgets||(Ce.widgets=[]);if(ie.insertAt==null?Ne.push(ie):Ne.splice(Math.min(Ne.length-1,Math.max(0,ie.insertAt)),0,ie),ie.line=Ce,fe&&!ma(x,Ce)){var $e=sr(Ce)<x.scrollTop;Vt(Ce,Ce.height+to(ie)),$e&&tu(fe,ie.height),fe.curOp.forceUpdate=!0}return!0}),fe&&ci(fe,"lineWidgetAdded",fe,ie,typeof z=="number"?z:ln(z)),ie}var Mu=0,Gl=function(x,z){this.lines=[],this.type=z,this.doc=x,this.id=++Mu};Gl.prototype.clear=function(){if(!this.explicitlyCleared){var x=this.doc.cm,z=x&&!x.curOp;if(z&&ks(x),_t(this,"clear")){var ne=this.find();ne&&ci(this,"clear",ne.from,ne.to)}for(var te=null,ie=null,fe=0;fe<this.lines.length;++fe){var Ce=this.lines[fe],Ne=Qr(Ce.markedSpans,this);x&&!this.collapsed?qs(x,ln(Ce),"text"):x&&(Ne.to!=null&&(ie=ln(Ce)),Ne.from!=null&&(te=ln(Ce))),Ce.markedSpans=Kr(Ce.markedSpans,Ne),Ne.from==null&&this.collapsed&&!ma(this.doc,Ce)&&x&&Vt(Ce,yl(x.display))}if(x&&this.collapsed&&!x.options.lineWrapping)for(var $e=0;$e<this.lines.length;++$e){var tt=mi(this.lines[$e]),Ht=ur(tt);Ht>x.display.maxLineLength&&(x.display.maxLine=tt,x.display.maxLineLength=Ht,x.display.maxLineChanged=!0)}te!=null&&x&&this.collapsed&&Ho(x,te,ie+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,x&&dl(x.doc)),x&&ci(x,"markerCleared",x,this,te,ie),z&&Nl(x),this.parent&&this.parent.clear()}},Gl.prototype.find=function(x,z){x==null&&this.type=="bookmark"&&(x=1);for(var ne,te,ie=0;ie<this.lines.length;++ie){var fe=this.lines[ie],Ce=Qr(fe.markedSpans,this);if(Ce.from!=null&&(ne=Ut(z?fe:ln(fe),Ce.from),x==-1))return ne;if(Ce.to!=null&&(te=Ut(z?fe:ln(fe),Ce.to),x==1))return te}return ne&&{from:ne,to:te}},Gl.prototype.changed=function(){var x=this,z=this.find(-1,!0),ne=this,te=this.doc.cm;!z||!te||zt(te,function(){var ie=z.line,fe=ln(z.line),Ce=No(te,fe);if(Ce&&(Ga(Ce),te.curOp.selectionChanged=te.curOp.forceUpdate=!0),te.curOp.updateMaxLine=!0,!ma(ne.doc,ie)&&ne.height!=null){var Ne=ne.height;ne.height=null;var $e=to(ne)-Ne;$e&&Vt(ie,ie.height+$e)}ci(te,"markerChanged",te,x)})},Gl.prototype.attachLine=function(x){if(!this.lines.length&&this.doc.cm){var z=this.doc.cm.curOp;(!z.maybeHiddenMarkers||bt(z.maybeHiddenMarkers,this)==-1)&&(z.maybeUnhiddenMarkers||(z.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(x)},Gl.prototype.detachLine=function(x){if(this.lines.splice(bt(this.lines,x),1),!this.lines.length&&this.doc.cm){var z=this.doc.cm.curOp;(z.maybeHiddenMarkers||(z.maybeHiddenMarkers=[])).push(this)}},Xt(Gl);function Cl(x,z,ne,te,ie){if(te&&te.shared)return fo(x,z,ne,te,ie);if(x.cm&&!x.cm.curOp)return cn(x.cm,Cl)(x,z,ne,te,ie);var fe=new Gl(x,ie),Ce=bn(z,ne);if(te&&Tt(te,fe,!1),Ce>0||Ce==0&&fe.clearWhenEmpty!==!1)return fe;if(fe.replacedWith&&(fe.collapsed=!0,fe.widgetNode=st("span",[fe.replacedWith],"CodeMirror-widget"),te.handleMouseEvents||fe.widgetNode.setAttribute("cm-ignore-events","true"),te.insertLeft&&(fe.widgetNode.insertLeft=!0)),fe.collapsed){if(fi(x,z.line,z,ne,fe)||z.line!=ne.line&&fi(x,ne.line,z,ne,fe))throw new Error("Inserting collapsed marker partially overlapping an existing one");xr()}fe.addToHistory&&fa(x,{from:z,to:ne,origin:"markText"},x.sel,NaN);var Ne=z.line,$e=x.cm,tt;if(x.iter(Ne,ne.line+1,function(qt){$e&&fe.collapsed&&!$e.options.lineWrapping&&mi(qt)==$e.display.maxLine&&(tt=!0),fe.collapsed&&Ne!=z.line&&Vt(qt,0),hi(qt,new Nr(fe,Ne==z.line?z.ch:null,Ne==ne.line?ne.ch:null)),++Ne}),fe.collapsed&&x.iter(z.line,ne.line+1,function(qt){ma(x,qt)&&Vt(qt,0)}),fe.clearOnEnter&&Ft(fe,"beforeCursorEnter",function(){return fe.clear()}),fe.readOnly&&(Zr(),(x.history.done.length||x.history.undone.length)&&x.clearHistory()),fe.collapsed&&(fe.id=++Mu,fe.atomic=!0),$e){if(tt&&($e.curOp.updateMaxLine=!0),fe.collapsed)Ho($e,z.line,ne.line+1);else if(fe.className||fe.startStyle||fe.endStyle||fe.css||fe.attributes||fe.title)for(var Ht=z.line;Ht<=ne.line;Ht++)qs($e,Ht,"text");fe.atomic&&dl($e.doc),ci($e,"markerAdded",$e,fe)}return fe}var pa=function(x,z){this.markers=x,this.primary=z;for(var ne=0;ne<x.length;++ne)x[ne].parent=this};pa.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var x=0;x<this.markers.length;++x)this.markers[x].clear();ci(this,"clear")}},pa.prototype.find=function(x,z){return this.primary.find(x,z)},Xt(pa);function fo(x,z,ne,te,ie){te=Tt(te),te.shared=!1;var fe=[Cl(x,z,ne,te,ie)],Ce=fe[0],Ne=te.widgetNode;return Do(x,function($e){Ne&&(te.widgetNode=Ne.cloneNode(!0)),fe.push(Cl($e,Bn($e,z),Bn($e,ne),te,ie));for(var tt=0;tt<$e.linked.length;++tt)if($e.linked[tt].isParent)return;Ce=tn(fe)}),new pa(fe,Ce)}function hl(x){return x.findMarks(Ut(x.first,0),x.clipPos(Ut(x.lastLine())),function(z){return z.parent})}function sc(x,z){for(var ne=0;ne<z.length;ne++){var te=z[ne],ie=te.find(),fe=x.clipPos(ie.from),Ce=x.clipPos(ie.to);if(bn(fe,Ce)){var Ne=Cl(x,fe,Ce,te.primary,te.primary.type);te.markers.push(Ne),Ne.parent=te}}}function Ws(x){for(var z=function(te){var ie=x[te],fe=[ie.primary.doc];Do(ie.primary.doc,function($e){return fe.push($e)});for(var Ce=0;Ce<ie.markers.length;Ce++){var Ne=ie.markers[Ce];bt(fe,Ne.doc)==-1&&(Ne.parent=null,ie.markers.splice(Ce--,1))}},ne=0;ne<x.length;ne++)z(ne)}var qu=0,Bo=function(x,z,ne,te,ie){if(!(this instanceof Bo))return new Bo(x,z,ne,te,ie);ne==null&&(ne=0),Ro.call(this,[new $a([new Or("",null)])]),this.first=ne,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ne;var fe=Ut(ne,0);this.sel=Xi(fe),this.history=new Si(null),this.id=++qu,this.modeOption=z,this.lineSep=te,this.direction=ie=="rtl"?"rtl":"ltr",this.extend=!1,typeof x=="string"&&(x=this.splitLines(x)),Xa(this,{from:fe,to:fe,text:x}),Oa(this,Xi(fe),at)};Bo.prototype=ce(Ro.prototype,{constructor:Bo,iter:function(x,z,ne){ne?this.iterN(x-this.first,z-x,ne):this.iterN(this.first,this.first+this.size,x)},insert:function(x,z){for(var ne=0,te=0;te<z.length;++te)ne+=z[te].height;this.insertInner(x-this.first,z,ne)},remove:function(x,z){this.removeInner(x-this.first,z)},getValue:function(x){var z=rn(this,this.first,this.first+this.size);return x===!1?z:z.join(x||this.lineSeparator())},setValue:an(function(x){var z=Ut(this.first,0),ne=this.first+this.size-1;so(this,{from:z,to:Ut(ne,Ct(this,ne).text.length),text:this.splitLines(x),origin:"setValue",full:!0},!0),this.cm&&oc(this.cm,0,0),Oa(this,Xi(z),at)}),replaceRange:function(x,z,ne,te){z=Bn(this,z),ne=ne?Bn(this,ne):z,_l(this,x,z,ne,te)},getRange:function(x,z,ne){var te=Rt(this,Bn(this,x),Bn(this,z));return ne===!1?te:te.join(ne||this.lineSeparator())},getLine:function(x){var z=this.getLineHandle(x);return z&&z.text},getLineHandle:function(x){if(An(this,x))return Ct(this,x)},getLineNumber:function(x){return ln(x)},getLineHandleVisualStart:function(x){return typeof x=="number"&&(x=Ct(this,x)),mi(x)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(x){return Bn(this,x)},getCursor:function(x){var z=this.sel.primary(),ne;return x==null||x=="head"?ne=z.head:x=="anchor"?ne=z.anchor:x=="end"||x=="to"||x===!1?ne=z.to():ne=z.from(),ne},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:an(function(x,z,ne){Ao(this,Bn(this,typeof x=="number"?Ut(x,z||0):x),null,ne)}),setSelection:an(function(x,z,ne){Ao(this,Bn(this,x),Bn(this,z||x),ne)}),extendSelection:an(function(x,z,ne){ya(this,Bn(this,x),z&&Bn(this,z),ne)}),extendSelections:an(function(x,z){pr(this,It(this,x),z)}),extendSelectionsBy:an(function(x,z){var ne=en(this.sel.ranges,x);pr(this,It(this,ne),z)}),setSelections:an(function(x,z,ne){if(x.length){for(var te=[],ie=0;ie<x.length;ie++)te[ie]=new $r(Bn(this,x[ie].anchor),Bn(this,x[ie].head));z==null&&(z=Math.min(x.length-1,this.sel.primIndex)),Oa(this,Ui(this.cm,te,z),ne)}}),addSelection:an(function(x,z,ne){var te=this.sel.ranges.slice(0);te.push(new $r(Bn(this,x),Bn(this,z||x))),Oa(this,Ui(this.cm,te,te.length-1),ne)}),getSelection:function(x){for(var z=this.sel.ranges,ne,te=0;te<z.length;te++){var ie=Rt(this,z[te].from(),z[te].to());ne=ne?ne.concat(ie):ie}return x===!1?ne:ne.join(x||this.lineSeparator())},getSelections:function(x){for(var z=[],ne=this.sel.ranges,te=0;te<ne.length;te++){var ie=Rt(this,ne[te].from(),ne[te].to());x!==!1&&(ie=ie.join(x||this.lineSeparator())),z[te]=ie}return z},replaceSelection:function(x,z,ne){for(var te=[],ie=0;ie<this.sel.ranges.length;ie++)te[ie]=x;this.replaceSelections(te,z,ne||"+input")},replaceSelections:an(function(x,z,ne){for(var te=[],ie=this.sel,fe=0;fe<ie.ranges.length;fe++){var Ce=ie.ranges[fe];te[fe]={from:Ce.from(),to:Ce.to(),text:this.splitLines(x[fe]),origin:ne}}for(var Ne=z&&z!="end"&&Gi(this,te,z),$e=te.length-1;$e>=0;$e--)so(this,te[$e]);Ne?Hi(this,Ne):this.cm&&yc(this.cm)}),undo:an(function(){ps(this,"undo")}),redo:an(function(){ps(this,"redo")}),undoSelection:an(function(){ps(this,"undo",!0)}),redoSelection:an(function(){ps(this,"redo",!0)}),setExtending:function(x){this.extend=x},getExtending:function(){return this.extend},historySize:function(){for(var x=this.history,z=0,ne=0,te=0;te<x.done.length;te++)x.done[te].ranges||++z;for(var ie=0;ie<x.undone.length;ie++)x.undone[ie].ranges||++ne;return{undo:z,redo:ne}},clearHistory:function(){var x=this;this.history=new Si(this.history.maxGeneration),Do(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:Zo(this.history.done),undone:Zo(this.history.undone)}},setHistory:function(x){var z=this.history=new Si(this.history.maxGeneration);z.done=Zo(x.done.slice(0),null,!0),z.undone=Zo(x.undone.slice(0),null,!0)},setGutterMarker:an(function(x,z,ne){return _o(this,x,"gutter",function(te){var ie=te.gutterMarkers||(te.gutterMarkers={});return ie[z]=ne,!ne&&ae(ie)&&(te.gutterMarkers=null),!0})}),clearGutter:an(function(x){var z=this;this.iter(function(ne){ne.gutterMarkers&&ne.gutterMarkers[x]&&_o(z,ne,"gutter",function(){return ne.gutterMarkers[x]=null,ae(ne.gutterMarkers)&&(ne.gutterMarkers=null),!0})})}),lineInfo:function(x){var z;if(typeof x=="number"){if(!An(this,x)||(z=x,x=Ct(this,x),!x))return null}else if(z=ln(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:an(function(x,z,ne){return _o(this,x,z=="gutter"?"gutter":"class",function(te){var ie=z=="text"?"textClass":z=="background"?"bgClass":z=="gutter"?"gutterClass":"wrapClass";if(!te[ie])te[ie]=ne;else{if(Se(ne).test(te[ie]))return!1;te[ie]+=" "+ne}return!0})}),removeLineClass:an(function(x,z,ne){return _o(this,x,z=="gutter"?"gutter":"class",function(te){var ie=z=="text"?"textClass":z=="background"?"bgClass":z=="gutter"?"gutterClass":"wrapClass",fe=te[ie];if(fe)if(ne==null)te[ie]=null;else{var Ce=fe.match(Se(ne));if(!Ce)return!1;var Ne=Ce.index+Ce[0].length;te[ie]=fe.slice(0,Ce.index)+(!Ce.index||Ne==fe.length?"":" ")+fe.slice(Ne)||null}else return!1;return!0})}),addLineWidget:an(function(x,z,ne){return Sl(this,x,z,ne)}),removeLineWidget:function(x){x.clear()},markText:function(x,z,ne){return Cl(this,Bn(this,x),Bn(this,z),ne,ne&&ne.type||"range")},setBookmark:function(x,z){var ne={replacedWith:z&&(z.nodeType==null?z.widget:z),insertLeft:z&&z.insertLeft,clearWhenEmpty:!1,shared:z&&z.shared,handleMouseEvents:z&&z.handleMouseEvents};return x=Bn(this,x),Cl(this,x,x,ne,"bookmark")},findMarksAt:function(x){x=Bn(this,x);var z=[],ne=Ct(this,x.line).markedSpans;if(ne)for(var te=0;te<ne.length;++te){var ie=ne[te];(ie.from==null||ie.from<=x.ch)&&(ie.to==null||ie.to>=x.ch)&&z.push(ie.marker.parent||ie.marker)}return z},findMarks:function(x,z,ne){x=Bn(this,x),z=Bn(this,z);var te=[],ie=x.line;return this.iter(x.line,z.line+1,function(fe){var Ce=fe.markedSpans;if(Ce)for(var Ne=0;Ne<Ce.length;Ne++){var $e=Ce[Ne];!($e.to!=null&&ie==x.line&&x.ch>=$e.to||$e.from==null&&ie!=x.line||$e.from!=null&&ie==z.line&&$e.from>=z.ch)&&(!ne||ne($e.marker))&&te.push($e.marker.parent||$e.marker)}++ie}),te},getAllMarks:function(){var x=[];return this.iter(function(z){var ne=z.markedSpans;if(ne)for(var te=0;te<ne.length;++te)ne[te].from!=null&&x.push(ne[te].marker)}),x},posFromIndex:function(x){var z,ne=this.first,te=this.lineSeparator().length;return this.iter(function(ie){var fe=ie.text.length+te;if(fe>x)return z=x,!0;x-=fe,++ne}),Bn(this,Ut(ne,z))},indexFromPos:function(x){x=Bn(this,x);var z=x.ch;if(x.line<this.first||x.ch<0)return 0;var ne=this.lineSeparator().length;return this.iter(this.first,x.line,function(te){z+=te.text.length+ne}),z},copy:function(x){var z=new Bo(rn(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,ne=this.first+this.size;x.from!=null&&x.from>z&&(z=x.from),x.to!=null&&x.to<ne&&(ne=x.to);var te=new Bo(rn(this,z,ne),x.mode||this.modeOption,z,this.lineSep,this.direction);return x.sharedHist&&(te.history=this.history),(this.linked||(this.linked=[])).push({doc:te,sharedHist:x.sharedHist}),te.linked=[{doc:this,isParent:!0,sharedHist:x.sharedHist}],sc(te,hl(this)),te},unlinkDoc:function(x){if(x instanceof ta&&(x=x.doc),this.linked)for(var z=0;z<this.linked.length;++z){var ne=this.linked[z];if(ne.doc==x){this.linked.splice(z,1),x.unlinkDoc(this),Ws(hl(this));break}}if(x.history==this.history){var te=[x.id];Do(x,function(ie){return te.push(ie.id)},!0),x.history=new Si(null),x.history.done=Zo(this.history.done,te),x.history.undone=Zo(this.history.undone,te)}},iterLinkedDocs:function(x){Do(this,x)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(x){return this.lineSep?x.split(this.lineSep):Cr(x)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:an(function(x){x!="rtl"&&(x="ltr"),x!=this.direction&&(this.direction=x,this.iter(function(z){return z.order=null}),this.cm&&Di(this.cm))})}),Bo.prototype.eachLine=Bo.prototype.iter;var ku=0;function ed(x){var z=this;if(xc(z),!(dt(z,x)||Ba(z.display,x))){gn(x),be&&(ku=+new Date);var ne=Vs(z,x,!0),te=x.dataTransfer.files;if(!(!ne||z.isReadOnly()))if(te&&te.length&&window.FileReader&&window.File)for(var ie=te.length,fe=Array(ie),Ce=0,Ne=function(){++Ce==ie&&cn(z,function(){ne=Bn(z.doc,ne);var Sn={from:ne,to:ne,text:z.doc.splitLines(fe.filter(function(Qn){return Qn!=null}).join(z.doc.lineSeparator())),origin:"paste"};so(z.doc,Sn),Hi(z.doc,Xi(Bn(z.doc,ne),Bn(z.doc,Ea(Sn))))})()},$e=function(Sn,Qn){if(z.options.allowDropFileTypes&&bt(z.options.allowDropFileTypes,Sn.type)==-1){Ne();return}var dr=new FileReader;dr.onerror=function(){return Ne()},dr.onload=function(){var jr=dr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(jr)){Ne();return}fe[Qn]=jr,Ne()},dr.readAsText(Sn)},tt=0;tt<te.length;tt++)$e(te[tt],tt);else{if(z.state.draggingText&&z.doc.sel.contains(ne)>-1){z.state.draggingText(x),setTimeout(function(){return z.display.input.focus()},20);return}try{var Ht=x.dataTransfer.getData("Text");if(Ht){var qt;if(z.state.draggingText&&!z.state.draggingText.copy&&(qt=z.listSelections()),Wo(z.doc,Xi(ne,ne)),qt)for(var kn=0;kn<qt.length;++kn)_l(z.doc,"",qt[kn].anchor,qt[kn].head,"drag");z.replaceSelection(Ht,"around","paste"),z.display.input.focus()}}catch(Sn){}}}}function iu(x,z){if(be&&(!x.state.draggingText||+new Date-ku<100)){_n(z);return}if(!(dt(x,z)||Ba(x.display,z))&&(z.dataTransfer.setData("Text",x.getSelection()),z.dataTransfer.effectAllowed="copyMove",z.dataTransfer.setDragImage&&!ct)){var ne=Ye("img",null,null,"position: fixed; left: 0; top: 0;");ne.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Pe&&(ne.width=ne.height=1,x.display.wrapper.appendChild(ne),ne._top=ne.offsetTop),z.dataTransfer.setDragImage(ne,0,0),Pe&&ne.parentNode.removeChild(ne)}}function au(x,z){var ne=Vs(x,z);if(ne){var te=document.createDocumentFragment();bu(x,ne,te),x.display.dragCursor||(x.display.dragCursor=Ye("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),x.display.lineSpace.insertBefore(x.display.dragCursor,x.display.cursorDiv)),vt(x.display.dragCursor,te)}}function xc(x){x.display.dragCursor&&(x.display.lineSpace.removeChild(x.display.dragCursor),x.display.dragCursor=null)}function lc(x){if(document.getElementsByClassName){for(var z=document.getElementsByClassName("CodeMirror"),ne=[],te=0;te<z.length;te++){var ie=z[te].CodeMirror;ie&&ne.push(ie)}ne.length&&ne[0].operation(function(){for(var fe=0;fe<ne.length;fe++)x(ne[fe])})}}var kr=!1;function Au(){kr||(ou(),kr=!0)}function ou(){var x;Ft(window,"resize",function(){x==null&&(x=setTimeout(function(){x=null,lc(su)},100))}),Ft(window,"blur",function(){return lc(ic)})}function su(x){var z=x.display;z.cachedCharWidth=z.cachedTextHeight=z.cachedPaddingH=null,z.scrollbarsClipped=!1,x.setSize()}for(var rl={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"},Ql=0;Ql<10;Ql++)rl[Ql+48]=rl[Ql+96]=String(Ql);for(var Sc=65;Sc<=90;Sc++)rl[Sc]=String.fromCharCode(Sc);for(var cc=1;cc<=12;cc++)rl[cc+111]=rl[cc+63235]="F"+cc;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=pt?io.macDefault:io.pcDefault;function td(x){var z=x.split(/-(?!$)/);x=z[z.length-1];for(var ne,te,ie,fe,Ce=0;Ce<z.length-1;Ce++){var Ne=z[Ce];if(/^(cmd|meta|m)$/i.test(Ne))fe=!0;else if(/^a(lt)?$/i.test(Ne))ne=!0;else if(/^(c|ctrl|control)$/i.test(Ne))te=!0;else if(/^s(hift)?$/i.test(Ne))ie=!0;else throw new Error("Unrecognized modifier name: "+Ne)}return ne&&(x="Alt-"+x),te&&(x="Ctrl-"+x),fe&&(x="Cmd-"+x),ie&&(x="Shift-"+x),x}function lu(x){var z={};for(var ne in x)if(x.hasOwnProperty(ne)){var te=x[ne];if(/^(name|fallthrough|(de|at)tach)$/.test(ne))continue;if(te=="..."){delete x[ne];continue}for(var ie=en(ne.split(" "),td),fe=0;fe<ie.length;fe++){var Ce=void 0,Ne=void 0;fe==ie.length-1?(Ne=ie.join(" "),Ce=te):(Ne=ie.slice(0,fe+1).join(" "),Ce="...");var $e=z[Ne];if(!$e)z[Ne]=Ce;else if($e!=Ce)throw new Error("Inconsistent bindings for "+Ne)}delete x[ne]}for(var tt in z)x[tt]=z[tt];return x}function wl(x,z,ne,te){z=Cs(z);var ie=z.call?z.call(x,te):z[x];if(ie===!1)return"nothing";if(ie==="...")return"multi";if(ie!=null&&ne(ie))return"handled";if(z.fallthrough){if(Object.prototype.toString.call(z.fallthrough)!="[object Array]")return wl(x,z.fallthrough,ne,te);for(var fe=0;fe<z.fallthrough.length;fe++){var Ce=wl(x,z.fallthrough[fe],ne,te);if(Ce)return Ce}}}function Hc(x){var z=typeof x=="string"?x:rl[x.keyCode];return z=="Ctrl"||z=="Alt"||z=="Shift"||z=="Mod"}function Rl(x,z,ne){var te=x;return z.altKey&&te!="Alt"&&(x="Alt-"+x),(it?z.metaKey:z.ctrlKey)&&te!="Ctrl"&&(x="Ctrl-"+x),(it?z.ctrlKey:z.metaKey)&&te!="Mod"&&(x="Cmd-"+x),!ne&&z.shiftKey&&te!="Shift"&&(x="Shift-"+x),x}function zl(x,z){if(Pe&&x.keyCode==34&&x.char)return!1;var ne=rl[x.keyCode];return ne==null||x.altGraphKey?!1:(x.keyCode==3&&x.code&&(ne=x.code),Rl(ne,x,z))}function Cs(x){return typeof x=="string"?io[x]:x}function js(x,z){for(var ne=x.doc.sel.ranges,te=[],ie=0;ie<ne.length;ie++){for(var fe=z(ne[ie]);te.length&&bn(fe.from,tn(te).to)<=0;){var Ce=te.pop();if(bn(Ce.from,fe.from)<0){fe.from=Ce.from;break}}te.push(fe)}zt(x,function(){for(var Ne=te.length-1;Ne>=0;Ne--)_l(x.doc,"",te[Ne].from,te[Ne].to,"+delete");yc(x)})}function ls(x,z,ne){var te=Re(x.text,z+ne,ne);return te<0||te>x.text.length?null:te}function El(x,z,ne){var te=ls(x,z.ch,ne);return te==null?null:new Ut(z.line,te,ne<0?"after":"before")}function Ca(x,z,ne,te,ie){if(x){z.doc.direction=="rtl"&&(ie=-ie);var fe=Jt(ne,z.doc.direction);if(fe){var Ce=ie<0?tn(fe):fe[0],Ne=ie<0==(Ce.level==1),$e=Ne?"after":"before",tt;if(Ce.level>0||z.doc.direction=="rtl"){var Ht=Ko(z,ne);tt=ie<0?ne.text.length-1:0;var qt=Fa(z,Ht,tt).top;tt=Be(function(kn){return Fa(z,Ht,kn).top==qt},ie<0==(Ce.level==1)?Ce.from:Ce.to-1,tt),$e=="before"&&(tt=ls(ne,tt,1))}else tt=ie<0?Ce.to:Ce.from;return new Ut(te,tt,$e)}}return new Ut(te,ie<0?ne.text.length:0,ie<0?"before":"after")}function La(x,z,ne,te){var ie=Jt(z,x.doc.direction);if(!ie)return El(z,ne,te);ne.ch>=z.text.length?(ne.ch=z.text.length,ne.sticky="before"):ne.ch<=0&&(ne.ch=0,ne.sticky="after");var fe=Qe(ie,ne.ch,ne.sticky),Ce=ie[fe];if(x.doc.direction=="ltr"&&Ce.level%2==0&&(te>0?Ce.to>ne.ch:Ce.from<ne.ch))return El(z,ne,te);var Ne=function(si,vi){return ls(z,si instanceof Ut?si.ch:si,vi)},$e,tt=function(si){return x.options.lineWrapping?($e=$e||Ko(x,z),jl(x,z,$e,si)):{begin:0,end:z.text.length}},Ht=tt(ne.sticky=="before"?Ne(ne,-1):ne.ch);if(x.doc.direction=="rtl"||Ce.level==1){var qt=Ce.level==1==te<0,kn=Ne(ne,qt?1:-1);if(kn!=null&&(qt?kn<=Ce.to&&kn<=Ht.end:kn>=Ce.from&&kn>=Ht.begin)){var Sn=qt?"before":"after";return new Ut(ne.line,kn,Sn)}}var Qn=function(si,vi,qr){for(var bi=function(vo,Es){return Es?new Ut(ne.line,Ne(vo,1),"before"):new Ut(ne.line,vo,"after")};si>=0&&si<ie.length;si+=vi){var Fi=ie[si],Zi=vi>0==(Fi.level!=1),wa=Zi?qr.begin:Ne(qr.end,-1);if(Fi.from<=wa&&wa<Fi.to||(wa=Zi?Fi.from:Ne(Fi.to,-1),qr.begin<=wa&&wa<qr.end))return bi(wa,Zi)}},dr=Qn(fe+te,te,Ht);if(dr)return dr;var jr=te>0?Ht.end:Ne(Ht.begin,-1);return jr!=null&&!(te>0&&jr==z.text.length)&&(dr=Qn(te>0?0:ie.length-1,te,tt(jr)),dr)?dr:null}var ws={selectAll:Ss,singleSelection:function(x){return x.setSelection(x.getCursor("anchor"),x.getCursor("head"),at)},killLine:function(x){return js(x,function(z){if(z.empty()){var ne=Ct(x.doc,z.head.line).text.length;return z.head.ch==ne&&z.head.line<x.lastLine()?{from:z.head,to:Ut(z.head.line+1,0)}:{from:z.head,to:Ut(z.head.line,ne)}}else return{from:z.from(),to:z.to()}})},deleteLine:function(x){return js(x,function(z){return{from:Ut(z.from().line,0),to:Bn(x.doc,Ut(z.to().line+1,0))}})},delLineLeft:function(x){return js(x,function(z){return{from:Ut(z.from().line,0),to:z.from()}})},delWrappedLineLeft:function(x){return js(x,function(z){var ne=x.charCoords(z.head,"div").top+5,te=x.coordsChar({left:0,top:ne},"div");return{from:te,to:z.from()}})},delWrappedLineRight:function(x){return js(x,function(z){var ne=x.charCoords(z.head,"div").top+5,te=x.coordsChar({left:x.display.lineDiv.offsetWidth+100,top:ne},"div");return{from:z.from(),to:te}})},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(Ut(x.firstLine(),0))},goDocEnd:function(x){return x.extendSelection(Ut(x.lastLine()))},goLineStart:function(x){return x.extendSelectionsBy(function(z){return Ml(x,z.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(x){return x.extendSelectionsBy(function(z){return Iu(x,z.head)},{origin:"+move",bias:1})},goLineEnd:function(x){return x.extendSelectionsBy(function(z){return kl(x,z.head.line)},{origin:"+move",bias:-1})},goLineRight:function(x){return x.extendSelectionsBy(function(z){var ne=x.cursorCoords(z.head,"div").top+5;return x.coordsChar({left:x.display.lineDiv.offsetWidth+100,top:ne},"div")},Dt)},goLineLeft:function(x){return x.extendSelectionsBy(function(z){var ne=x.cursorCoords(z.head,"div").top+5;return x.coordsChar({left:0,top:ne},"div")},Dt)},goLineLeftSmart:function(x){return x.extendSelectionsBy(function(z){var ne=x.cursorCoords(z.head,"div").top+5,te=x.coordsChar({left:0,top:ne},"div");return te.ch<x.getLine(te.line).search(/\S/)?Iu(x,z.head):te},Dt)},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=[],ne=x.listSelections(),te=x.options.tabSize,ie=0;ie<ne.length;ie++){var fe=ne[ie].from(),Ce=Ve(x.getLine(fe.line),fe.ch,te);z.push(hn(te-Ce%te))}x.replaceSelections(z)},defaultTab:function(x){x.somethingSelected()?x.indentSelection("add"):x.execCommand("insertTab")},transposeChars:function(x){return zt(x,function(){for(var z=x.listSelections(),ne=[],te=0;te<z.length;te++)if(z[te].empty()){var ie=z[te].head,fe=Ct(x.doc,ie.line).text;if(fe){if(ie.ch==fe.length&&(ie=new Ut(ie.line,ie.ch-1)),ie.ch>0)ie=new Ut(ie.line,ie.ch+1),x.replaceRange(fe.charAt(ie.ch-1)+fe.charAt(ie.ch-2),Ut(ie.line,ie.ch-2),ie,"+transpose");else if(ie.line>x.doc.first){var Ce=Ct(x.doc,ie.line-1).text;Ce&&(ie=new Ut(ie.line,1),x.replaceRange(fe.charAt(0)+x.doc.lineSeparator()+Ce.charAt(Ce.length-1),Ut(ie.line-1,Ce.length-1),ie,"+transpose"))}}ne.push(new $r(ie,ie))}x.setSelections(ne)})},newlineAndIndent:function(x){return zt(x,function(){for(var z=x.listSelections(),ne=z.length-1;ne>=0;ne--)x.replaceRange(x.doc.lineSeparator(),z[ne].anchor,z[ne].head,"+input");z=x.listSelections();for(var te=0;te<z.length;te++)x.indentLine(z[te].from().line,null,!0);yc(x)})},openLine:function(x){return x.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(x){return x.toggleOverwrite()}};function Ml(x,z){var ne=Ct(x.doc,z),te=mi(ne);return te!=ne&&(z=ln(te)),Ca(!0,x,te,z,1)}function kl(x,z){var ne=Ct(x.doc,z),te=la(ne);return te!=ne&&(z=ln(te)),Ca(!0,x,ne,z,-1)}function Iu(x,z){var ne=Ml(x,z.line),te=Ct(x.doc,ne.line),ie=Jt(te,x.doc.direction);if(!ie||ie[0].level==0){var fe=Math.max(ne.ch,te.text.search(/\S/)),Ce=z.line==ne.line&&z.ch<=fe&&z.ch;return Ut(ne.line,Ce?0:fe,ne.sticky)}return ne}function Oo(x,z,ne){if(typeof z=="string"&&(z=ws[z],!z))return!1;x.display.input.ensurePolled();var te=x.display.shift,ie=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),ne&&(x.display.shift=!1),ie=z(x)!=Kt}finally{x.display.shift=te,x.state.suppressEdits=!1}return ie}function il(x,z,ne){for(var te=0;te<x.state.keyMaps.length;te++){var ie=wl(z,x.state.keyMaps[te],ne,x);if(ie)return ie}return x.options.extraKeys&&wl(z,x.options.extraKeys,ne,x)||wl(z,x.options.keyMap,ne,x)}var Du=new ye;function Yl(x,z,ne,te){var ie=x.state.keySeq;if(ie){if(Hc(z))return"handled";if(/\'$/.test(z)?x.state.keySeq=null:Du.set(50,function(){x.state.keySeq==ie&&(x.state.keySeq=null,x.display.input.reset())}),nd(x,ie+" "+z,ne,te))return!0}return nd(x,z,ne,te)}function nd(x,z,ne,te){var ie=il(x,z,te);return ie=="multi"&&(x.state.keySeq=z),ie=="handled"&&ci(x,"keyHandled",x,z,ne),(ie=="handled"||ie=="multi")&&(gn(ne),Jc(x)),!!ie}function Ia(x,z){var ne=zl(z,!0);return ne?z.shiftKey&&!x.state.keySeq?Yl(x,"Shift-"+ne,z,function(te){return Oo(x,te,!0)})||Yl(x,ne,z,function(te){if(typeof te=="string"?/^go[A-Z]/.test(te):te.motion)return Oo(x,te)}):Yl(x,ne,z,function(te){return Oo(x,te)}):!1}function cu(x,z,ne){return Yl(x,"'"+ne+"'",z,function(te){return Oo(x,te,!0)})}var uc=null;function Lu(x){var z=this;if(!(x.target&&x.target!=z.display.input.getField())&&(z.curOp.focus=Ge(),!dt(z,x))){be&&Ee<11&&x.keyCode==27&&(x.returnValue=!1);var ne=x.keyCode;z.display.shift=ne==16||x.shiftKey;var te=Ia(z,x);Pe&&(uc=te?ne:null,!te&&ne==88&&!Dr&&(pt?x.metaKey:x.ctrlKey)&&z.replaceSelection("",null,"cut")),ue&&!pt&&!te&&ne==46&&x.shiftKey&&!x.ctrlKey&&document.execCommand&&document.execCommand("cut"),ne==18&&!/\bCodeMirror-crosshair\b/.test(z.display.lineDiv.className)&&Un(z)}}function Un(x){var z=x.display.lineDiv;Ot(z,"CodeMirror-crosshair");function ne(te){(te.keyCode==18||!te.altKey)&&(Ke(z,"CodeMirror-crosshair"),ht(document,"keyup",ne),ht(document,"mouseover",ne))}Ft(document,"keyup",ne),Ft(document,"mouseover",ne)}function hf(x){x.keyCode==16&&(this.doc.sel.shift=!1),dt(this,x)}function pf(x){var z=this;if(!(x.target&&x.target!=z.display.input.getField())&&!(Ba(z.display,x)||dt(z,x)||x.ctrlKey&&!x.altKey||pt&&x.metaKey)){var ne=x.keyCode,te=x.charCode;if(Pe&&ne==uc){uc=null,gn(x);return}if(!(Pe&&(!x.which||x.which<10)&&Ia(z,x))){var ie=String.fromCharCode(te==null?ne:te);ie!="\b"&&(cu(z,x,ie)||z.display.input.onKeyPress(x))}}}var Ld=400,Td=function(x,z,ne){this.time=x,this.pos=z,this.button=ne};Td.prototype.compare=function(x,z,ne){return this.time+Ld>x&&bn(z,this.pos)==0&&ne==this.button};var dc,Tu;function ih(x,z){var ne=+new Date;return Tu&&Tu.compare(ne,x,z)?(dc=Tu=null,"triple"):dc&&dc.compare(ne,x,z)?(Tu=new Td(ne,x,z),dc=null,"double"):(dc=new Td(ne,x,z),Tu=null,"single")}function Is(x){var z=this,ne=z.display;if(!(dt(z,x)||ne.activeTouch&&ne.input.supportsTouch())){if(ne.input.ensurePolled(),ne.shift=x.shiftKey,Ba(ne,x)){he||(ne.scroller.draggable=!1,setTimeout(function(){return ne.scroller.draggable=!0},100));return}if(!_s(z,x)){var te=Vs(z,x),ie=Dn(x),fe=te?ih(te,ie):"single";window.focus(),ie==1&&z.state.selectingText&&z.state.selectingText(x),!(te&&Cc(z,ie,te,fe,x))&&(ie==1?te?id(z,te,fe,x):$n(x)==ne.scroller&&gn(x):ie==2?(te&&ya(z.doc,te),setTimeout(function(){return ne.input.focus()},20)):ie==3&&(He?z.display.input.onContextMenu(x):xu(z)))}}}function Cc(x,z,ne,te,ie){var fe="Click";return te=="double"?fe="Double"+fe:te=="triple"&&(fe="Triple"+fe),fe=(z==1?"Left":z==2?"Middle":"Right")+fe,Yl(x,Rl(fe,ie),ie,function(Ce){if(typeof Ce=="string"&&(Ce=ws[Ce]),!Ce)return!1;var Ne=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),Ne=Ce(x,ne)!=Kt}finally{x.state.suppressEdits=!1}return Ne})}function rd(x,z,ne){var te=x.getOption("configureMouse"),ie=te?te(x,z,ne):{};if(ie.unit==null){var fe=rt?ne.shiftKey&&ne.metaKey:ne.altKey;ie.unit=fe?"rectangle":z=="single"?"char":z=="double"?"word":"line"}return(ie.extend==null||x.doc.extend)&&(ie.extend=x.doc.extend||ne.shiftKey),ie.addNew==null&&(ie.addNew=pt?ne.metaKey:ne.ctrlKey),ie.moveOnDrag==null&&(ie.moveOnDrag=!(pt?ne.altKey:ne.ctrlKey)),ie}function id(x,z,ne,te){be?setTimeout(Nt(Kc,x),0):x.curOp.focus=Ge();var ie=rd(x,ne,te),fe=x.doc.sel,Ce;x.options.dragDrop&&qn&&!x.isReadOnly()&&ne=="single"&&(Ce=fe.contains(z))>-1&&(bn((Ce=fe.ranges[Ce]).from(),z)<0||z.xRel>0)&&(bn(Ce.to(),z)>0||z.xRel<0)?ah(x,te,z,ie):Bd(x,te,z,ie)}function ah(x,z,ne,te){var ie=x.display,fe=!1,Ce=cn(x,function(tt){he&&(ie.scroller.draggable=!1),x.state.draggingText=!1,ht(ie.wrapper.ownerDocument,"mouseup",Ce),ht(ie.wrapper.ownerDocument,"mousemove",Ne),ht(ie.scroller,"dragstart",$e),ht(ie.scroller,"drop",Ce),fe||(gn(tt),te.addNew||ya(x.doc,ne,null,null,te.extend),he&&!ct||be&&Ee==9?setTimeout(function(){ie.wrapper.ownerDocument.body.focus({preventScroll:!0}),ie.input.focus()},20):ie.input.focus())}),Ne=function(tt){fe=fe||Math.abs(z.clientX-tt.clientX)+Math.abs(z.clientY-tt.clientY)>=10},$e=function(){return fe=!0};he&&(ie.scroller.draggable=!0),x.state.draggingText=Ce,Ce.copy=!te.moveOnDrag,ie.scroller.dragDrop&&ie.scroller.dragDrop(),Ft(ie.wrapper.ownerDocument,"mouseup",Ce),Ft(ie.wrapper.ownerDocument,"mousemove",Ne),Ft(ie.scroller,"dragstart",$e),Ft(ie.scroller,"drop",Ce),xu(x),setTimeout(function(){return ie.input.focus()},20)}function mf(x,z,ne){if(ne=="char")return new $r(z,z);if(ne=="word")return x.findWordAt(z);if(ne=="line")return new $r(Ut(z.line,0),Bn(x.doc,Ut(z.line+1,0)));var te=ne(x,z);return new $r(te.from,te.to)}function Bd(x,z,ne,te){var ie=x.display,fe=x.doc;gn(z);var Ce,Ne,$e=fe.sel,tt=$e.ranges;if(te.addNew&&!te.extend?(Ne=fe.sel.contains(ne),Ne>-1?Ce=tt[Ne]:Ce=new $r(ne,ne)):(Ce=fe.sel.primary(),Ne=fe.sel.primIndex),te.unit=="rectangle")te.addNew||(Ce=new $r(ne,ne)),ne=Vs(x,z,!0,!0),Ne=-1;else{var Ht=mf(x,ne,te.unit);te.extend?Ce=bl(Ce,Ht.anchor,Ht.head,te.extend):Ce=Ht}te.addNew?Ne==-1?(Ne=tt.length,Oa(fe,Ui(x,tt.concat([Ce]),Ne),{scroll:!1,origin:"*mouse"})):tt.length>1&&tt[Ne].empty()&&te.unit=="char"&&!te.extend?(Oa(fe,Ui(x,tt.slice(0,Ne).concat(tt.slice(Ne+1)),0),{scroll:!1,origin:"*mouse"}),$e=fe.sel):Ma(fe,Ne,Ce,lt):(Ne=0,Oa(fe,new Oi([Ce],0),lt),$e=fe.sel);var qt=ne;function kn(qr){if(bn(qt,qr)!=0)if(qt=qr,te.unit=="rectangle"){for(var bi=[],Fi=x.options.tabSize,Zi=Ve(Ct(fe,ne.line).text,ne.ch,Fi),wa=Ve(Ct(fe,qr.line).text,qr.ch,Fi),vo=Math.min(Zi,wa),Es=Math.max(Zi,wa),zo=Math.min(ne.line,qr.line),Qs=Math.min(x.lastLine(),Math.max(ne.line,qr.line));zo<=Qs;zo++){var Ys=Ct(fe,zo).text,cs=yn(Ys,vo,Fi);vo==Es?bi.push(new $r(Ut(zo,cs),Ut(zo,cs))):Ys.length>cs&&bi.push(new $r(Ut(zo,cs),Ut(zo,yn(Ys,Es,Fi))))}bi.length||bi.push(new $r(ne,ne)),Oa(fe,Ui(x,$e.ranges.slice(0,Ne).concat(bi),Ne),{origin:"*mouse",scroll:!1}),x.scrollIntoView(qr)}else{var Xs=Ce,sa=mf(x,qr,te.unit),jo=Xs.anchor,Fo;bn(sa.anchor,jo)>0?(Fo=sa.head,jo=Wn(Xs.from(),sa.anchor)):(Fo=sa.anchor,jo=Jn(Xs.to(),sa.head));var Uo=$e.ranges.slice(0);Uo[Ne]=gf(x,new $r(Bn(fe,jo),Fo)),Oa(fe,Ui(x,Uo,Ne),lt)}}var Sn=ie.wrapper.getBoundingClientRect(),Qn=0;function dr(qr){var bi=++Qn,Fi=Vs(x,qr,!0,te.unit=="rectangle");if(Fi)if(bn(Fi,qt)!=0){x.curOp.focus=Ge(),kn(Fi);var Zi=os(ie,fe);(Fi.line>=Zi.to||Fi.line<Zi.from)&&setTimeout(cn(x,function(){Qn==bi&&dr(qr)}),150)}else{var wa=qr.clientY<Sn.top?-20:qr.clientY>Sn.bottom?20:0;wa&&setTimeout(cn(x,function(){Qn==bi&&(ie.scroller.scrollTop+=wa,dr(qr))}),50)}}function jr(qr){x.state.selectingText=!1,Qn=1/0,qr&&(gn(qr),ie.input.focus()),ht(ie.wrapper.ownerDocument,"mousemove",si),ht(ie.wrapper.ownerDocument,"mouseup",vi),fe.history.lastSelOrigin=null}var si=cn(x,function(qr){qr.buttons===0||!Dn(qr)?jr(qr):dr(qr)}),vi=cn(x,jr);x.state.selectingText=vi,Ft(ie.wrapper.ownerDocument,"mousemove",si),Ft(ie.wrapper.ownerDocument,"mouseup",vi)}function gf(x,z){var ne=z.anchor,te=z.head,ie=Ct(x.doc,ne.line);if(bn(ne,te)==0&&ne.sticky==te.sticky)return z;var fe=Jt(ie);if(!fe)return z;var Ce=Qe(fe,ne.ch,ne.sticky),Ne=fe[Ce];if(Ne.from!=ne.ch&&Ne.to!=ne.ch)return z;var $e=Ce+(Ne.from==ne.ch==(Ne.level!=1)?0:1);if($e==0||$e==fe.length)return z;var tt;if(te.line!=ne.line)tt=(te.line-ne.line)*(x.doc.direction=="ltr"?1:-1)>0;else{var Ht=Qe(fe,te.ch,te.sticky),qt=Ht-Ce||(te.ch-ne.ch)*(Ne.level==1?-1:1);Ht==$e-1||Ht==$e?tt=qt<0:tt=qt>0}var kn=fe[$e+(tt?-1:0)],Sn=tt==(kn.level==1),Qn=Sn?kn.from:kn.to,dr=Sn?"after":"before";return ne.ch==Qn&&ne.sticky==dr?z:new $r(new Ut(ne.line,Qn,dr),te)}function Bu(x,z,ne,te){var ie,fe;if(z.touches)ie=z.touches[0].clientX,fe=z.touches[0].clientY;else try{ie=z.clientX,fe=z.clientY}catch(kn){return!1}if(ie>=Math.floor(x.display.gutters.getBoundingClientRect().right))return!1;te&&gn(z);var Ce=x.display,Ne=Ce.lineDiv.getBoundingClientRect();if(fe>Ne.bottom||!_t(x,ne))return wn(z);fe-=Ne.top-Ce.viewOffset;for(var $e=0;$e<x.display.gutterSpecs.length;++$e){var tt=Ce.gutters.childNodes[$e];if(tt&&tt.getBoundingClientRect().right>=ie){var Ht=Cn(x.doc,fe),qt=x.display.gutterSpecs[$e];return Le(x,ne,x,Ht,qt.className,z),wn(z)}}}function _s(x,z){return Bu(x,z,"gutterClick",!0)}function wc(x,z){Ba(x.display,z)||vf(x,z)||dt(x,z,"contextmenu")||He||x.display.input.onContextMenu(z)}function vf(x,z){return _t(x,"gutterContextMenu")?Bu(x,z,"gutterContextMenu",!1):!1}function Od(x){x.display.wrapper.className=x.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+x.options.theme.replace(/(^|\s)\s*/g," cm-s-"),no(x)}var Ec={toString:function(){return"CodeMirror.Init"}},yf={},ad={};function oh(x){var z=x.optionHandlers;function ne(te,ie,fe,Ce){x.defaults[te]=ie,fe&&(z[te]=Ce?function(Ne,$e,tt){tt!=Ec&&fe(Ne,$e,tt)}:fe)}x.defineOption=ne,x.Init=Ec,ne("value","",function(te,ie){return te.setValue(ie)},!0),ne("mode",null,function(te,ie){te.doc.modeOption=ie,So(te)},!0),ne("indentUnit",2,So,!0),ne("indentWithTabs",!1),ne("smartIndent",!0),ne("tabSize",4,function(te){da(te),no(te),Ho(te)},!0),ne("lineSeparator",null,function(te,ie){if(te.doc.lineSep=ie,!!ie){var fe=[],Ce=te.doc.first;te.doc.iter(function($e){for(var tt=0;;){var Ht=$e.text.indexOf(ie,tt);if(Ht==-1)break;tt=Ht+ie.length,fe.push(Ut(Ce,Ht))}Ce++});for(var Ne=fe.length-1;Ne>=0;Ne--)_l(te.doc,ie,fe[Ne],Ut(fe[Ne].line,fe[Ne].ch+ie.length))}}),ne("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(te,ie,fe){te.state.specialChars=new RegExp(ie.source+(ie.test(" ")?"":"| "),"g"),fe!=Ec&&te.refresh()}),ne("specialCharPlaceholder",Va,function(te){return te.refresh()},!0),ne("electricChars",!0),ne("inputStyle",je?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ne("spellcheck",!1,function(te,ie){return te.getInputField().spellcheck=ie},!0),ne("autocorrect",!1,function(te,ie){return te.getInputField().autocorrect=ie},!0),ne("autocapitalize",!1,function(te,ie){return te.getInputField().autocapitalize=ie},!0),ne("rtlMoveVisually",!kt),ne("wholeLineUpdateBefore",!0),ne("theme","default",function(te){Od(te),ni(te)},!0),ne("keyMap","default",function(te,ie,fe){var Ce=Cs(ie),Ne=fe!=Ec&&Cs(fe);Ne&&Ne.detach&&Ne.detach(te,Ce),Ce.attach&&Ce.attach(te,Ne||null)}),ne("extraKeys",null),ne("configureMouse",null),ne("lineWrapping",!1,bf,!0),ne("gutters",[],function(te,ie){te.display.gutterSpecs=zi(ie,te.options.lineNumbers),ni(te)},!0),ne("fixedGutter",!0,function(te,ie){te.display.gutters.style.left=ie?Qa(te.display)+"px":"0",te.refresh()},!0),ne("coverGutterNextToScrollbar",!1,function(te){return Vl(te)},!0),ne("scrollbarStyle","native",function(te){Eu(te),Vl(te),te.display.scrollbars.setScrollTop(te.doc.scrollTop),te.display.scrollbars.setScrollLeft(te.doc.scrollLeft)},!0),ne("lineNumbers",!1,function(te,ie){te.display.gutterSpecs=zi(te.options.gutters,ie),ni(te)},!0),ne("firstLineNumber",1,ni,!0),ne("lineNumberFormatter",function(te){return te},ni,!0),ne("showCursorWhenSelecting",!1,vc,!0),ne("resetSelectionOnContextMenu",!0),ne("lineWiseCopyCut",!0),ne("pasteLinesPerSelection",!0),ne("selectionsMayTouch",!1),ne("readOnly",!1,function(te,ie){ie=="nocursor"&&(ic(te),te.display.input.blur()),te.display.input.readOnlyChanged(ie)}),ne("screenReaderLabel",null,function(te,ie){ie=ie===""?null:ie,te.display.input.screenReaderLabelChanged(ie)}),ne("disableInput",!1,function(te,ie){ie||te.display.input.reset()},!0),ne("dragDrop",!0,sh),ne("allowDropFileTypes",null),ne("cursorBlinkRate",530),ne("cursorScrollMargin",0),ne("cursorHeight",1,vc,!0),ne("singleCursorHeightPerLine",!0,vc,!0),ne("workTime",100),ne("workDelay",100),ne("flattenSpans",!0,da,!0),ne("addModeClass",!1,da,!0),ne("pollInterval",100),ne("undoDepth",200,function(te,ie){return te.doc.history.undoDepth=ie}),ne("historyEventDelay",1250),ne("viewportMargin",10,function(te){return te.refresh()},!0),ne("maxHighlightLength",1e4,da,!0),ne("moveInputWithCursor",!0,function(te,ie){ie||te.display.input.resetPosition()}),ne("tabindex",null,function(te,ie){return te.display.input.getField().tabIndex=ie||""}),ne("autofocus",null),ne("direction","ltr",function(te,ie){return te.doc.setDirection(ie)},!0),ne("phrases",null)}function sh(x,z,ne){var te=ne&&ne!=Ec;if(!z!=!te){var ie=x.display.dragFunctions,fe=z?Ft:ht;fe(x.display.scroller,"dragstart",ie.start),fe(x.display.scroller,"dragenter",ie.enter),fe(x.display.scroller,"dragover",ie.over),fe(x.display.scroller,"dragleave",ie.leave),fe(x.display.scroller,"drop",ie.drop)}}function bf(x){x.options.lineWrapping?(Ot(x.display.wrapper,"CodeMirror-wrap"),x.display.sizer.style.minWidth="",x.display.sizerWidth=null):(Ke(x.display.wrapper,"CodeMirror-wrap"),cr(x)),Xo(x),Ho(x),no(x),setTimeout(function(){return Vl(x)},100)}function ta(x,z){var ne=this;if(!(this instanceof ta))return new ta(x,z);this.options=z=z?Tt(z):{},Tt(yf,z,!1);var te=z.value;typeof te=="string"?te=new Bo(te,z.mode,null,z.lineSeparator,z.direction):z.mode&&(te.modeOption=z.mode),this.doc=te;var ie=new ta.inputStyles[z.inputStyle](this),fe=this.display=new yi(x,te,ie,z);fe.wrapper.CodeMirror=this,Od(this),z.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Eu(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 ye,keySeq:null,specialChars:null},z.autofocus&&!je&&fe.input.focus(),be&&Ee<11&&setTimeout(function(){return ne.display.input.reset(!0)},20),lh(this),Au(),ks(this),this.curOp.forceUpdate=!0,Pi(this,te),z.autofocus&&!je||this.hasFocus()?setTimeout(function(){ne.hasFocus()&&!ne.state.focused&&Su(ne)},20):ic(this);for(var Ce in ad)ad.hasOwnProperty(Ce)&&ad[Ce](this,z[Ce],Ec);ui(this),z.finishInit&&z.finishInit(this);for(var Ne=0;Ne<Pd.length;++Ne)Pd[Ne](this);Nl(this),he&&z.lineWrapping&&getComputedStyle(fe.lineDiv).textRendering=="optimizelegibility"&&(fe.lineDiv.style.textRendering="auto")}ta.defaults=yf,ta.optionHandlers=ad;function lh(x){var z=x.display;Ft(z.scroller,"mousedown",cn(x,Is)),be&&Ee<11?Ft(z.scroller,"dblclick",cn(x,function($e){if(!dt(x,$e)){var tt=Vs(x,$e);if(!(!tt||_s(x,$e)||Ba(x.display,$e))){gn($e);var Ht=x.findWordAt(tt);ya(x.doc,Ht.anchor,Ht.head)}}})):Ft(z.scroller,"dblclick",function($e){return dt(x,$e)||gn($e)}),Ft(z.scroller,"contextmenu",function($e){return wc(x,$e)}),Ft(z.input.getField(),"contextmenu",function($e){z.scroller.contains($e.target)||wc(x,$e)});var ne,te={end:0};function ie(){z.activeTouch&&(ne=setTimeout(function(){return z.activeTouch=null},1e3),te=z.activeTouch,te.end=+new Date)}function fe($e){if($e.touches.length!=1)return!1;var tt=$e.touches[0];return tt.radiusX<=1&&tt.radiusY<=1}function Ce($e,tt){if(tt.left==null)return!0;var Ht=tt.left-$e.left,qt=tt.top-$e.top;return Ht*Ht+qt*qt>20*20}Ft(z.scroller,"touchstart",function($e){if(!dt(x,$e)&&!fe($e)&&!_s(x,$e)){z.input.ensurePolled(),clearTimeout(ne);var tt=+new Date;z.activeTouch={start:tt,moved:!1,prev:tt-te.end<=300?te:null},$e.touches.length==1&&(z.activeTouch.left=$e.touches[0].pageX,z.activeTouch.top=$e.touches[0].pageY)}}),Ft(z.scroller,"touchmove",function(){z.activeTouch&&(z.activeTouch.moved=!0)}),Ft(z.scroller,"touchend",function($e){var tt=z.activeTouch;if(tt&&!Ba(z,$e)&&tt.left!=null&&!tt.moved&&new Date-tt.start<300){var Ht=x.coordsChar(z.activeTouch,"page"),qt;!tt.prev||Ce(tt,tt.prev)?qt=new $r(Ht,Ht):!tt.prev.prev||Ce(tt,tt.prev.prev)?qt=x.findWordAt(Ht):qt=new $r(Ut(Ht.line,0),Bn(x.doc,Ut(Ht.line+1,0))),x.setSelection(qt.anchor,qt.head),x.focus(),gn($e)}ie()}),Ft(z.scroller,"touchcancel",ie),Ft(z.scroller,"scroll",function(){z.scroller.clientHeight&&(Ul(x,z.scroller.scrollTop),Ol(x,z.scroller.scrollLeft,!0),Le(x,"scroll",x))}),Ft(z.scroller,"mousewheel",function($e){return aa(x,$e)}),Ft(z.scroller,"DOMMouseScroll",function($e){return aa(x,$e)}),Ft(z.wrapper,"scroll",function(){return z.wrapper.scrollTop=z.wrapper.scrollLeft=0}),z.dragFunctions={enter:function($e){dt(x,$e)||_n($e)},over:function($e){dt(x,$e)||(au(x,$e),_n($e))},start:function($e){return iu(x,$e)},drop:cn(x,ed),leave:function($e){dt(x,$e)||xc(x)}};var Ne=z.input.getField();Ft(Ne,"keyup",function($e){return hf.call(x,$e)}),Ft(Ne,"keydown",cn(x,Lu)),Ft(Ne,"keypress",cn(x,pf)),Ft(Ne,"focus",function($e){return Su(x,$e)}),Ft(Ne,"blur",function($e){return ic(x,$e)})}var Pd=[];ta.defineInitHook=function(x){return Pd.push(x)};function Fl(x,z,ne,te){var ie=x.doc,fe;ne==null&&(ne="add"),ne=="smart"&&(ie.mode.indent?fe=vn(x,z).state:ne="prev");var Ce=x.options.tabSize,Ne=Ct(ie,z),$e=Ve(Ne.text,null,Ce);Ne.stateAfter&&(Ne.stateAfter=null);var tt=Ne.text.match(/^\s*/)[0],Ht;if(!te&&!/\S/.test(Ne.text))Ht=0,ne="not";else if(ne=="smart"&&(Ht=ie.mode.indent(fe,Ne.text.slice(tt.length),Ne.text),Ht==Kt||Ht>150)){if(!te)return;ne="prev"}ne=="prev"?z>ie.first?Ht=Ve(Ct(ie,z-1).text,null,Ce):Ht=0:ne=="add"?Ht=$e+x.options.indentUnit:ne=="subtract"?Ht=$e-x.options.indentUnit:typeof ne=="number"&&(Ht=$e+ne),Ht=Math.max(0,Ht);var qt="",kn=0;if(x.options.indentWithTabs)for(var Sn=Math.floor(Ht/Ce);Sn;--Sn)kn+=Ce,qt+=" ";if(kn<Ht&&(qt+=hn(Ht-kn)),qt!=tt)return _l(ie,qt,Ut(z,0),Ut(z,tt.length),"+input"),Ne.stateAfter=null,!0;for(var Qn=0;Qn<ie.sel.ranges.length;Qn++){var dr=ie.sel.ranges[Qn];if(dr.head.line==z&&dr.head.ch<tt.length){var jr=Ut(z,tt.length);Ma(ie,Qn,new $r(jr,jr));break}}}var Kl=null;function Mc(x){Kl=x}function Nd(x,z,ne,te,ie){var fe=x.doc;x.display.shift=!1,te||(te=fe.sel);var Ce=+new Date-200,Ne=ie=="paste"||x.state.pasteIncoming>Ce,$e=Cr(z),tt=null;if(Ne&&te.ranges.length>1)if(Kl&&Kl.text.join(`
|
|
|
`)==z){if(te.ranges.length%Kl.text.length==0){tt=[];for(var Ht=0;Ht<Kl.text.length;Ht++)tt.push(fe.splitLines(Kl.text[Ht]))}}else $e.length==te.ranges.length&&x.options.pasteLinesPerSelection&&(tt=en($e,function(si){return[si]}));for(var qt=x.curOp.updateInput,kn=te.ranges.length-1;kn>=0;kn--){var Sn=te.ranges[kn],Qn=Sn.from(),dr=Sn.to();Sn.empty()&&(ne&&ne>0?Qn=Ut(Qn.line,Qn.ch-ne):x.state.overwrite&&!Ne?dr=Ut(dr.line,Math.min(Ct(fe,dr.line).text.length,dr.ch+tn($e).length)):Ne&&Kl&&Kl.lineWise&&Kl.text.join(`
|
|
|
`)==$e.join(`
|
|
|
`)&&(Qn=dr=Ut(Qn.line,0)));var jr={from:Qn,to:dr,text:tt?tt[kn%tt.length]:$e,origin:ie||(Ne?"paste":x.state.cutIncoming>Ce?"cut":"+input")};so(x.doc,jr),ci(x,"inputRead",x,jr)}z&&!Ne&&Rd(x,z),yc(x),x.curOp.updateInput<2&&(x.curOp.updateInput=qt),x.curOp.typing=!0,x.state.pasteIncoming=x.state.cutIncoming=-1}function _d(x,z){var ne=x.clipboardData&&x.clipboardData.getData("Text");if(ne)return x.preventDefault(),!z.isReadOnly()&&!z.options.disableInput&&zt(z,function(){return Nd(z,ne,0,null,"paste")}),!0}function Rd(x,z){if(!(!x.options.electricChars||!x.options.smartIndent))for(var ne=x.doc.sel,te=ne.ranges.length-1;te>=0;te--){var ie=ne.ranges[te];if(!(ie.head.ch>100||te&&ne.ranges[te-1].head.line==ie.head.line)){var fe=x.getModeAt(ie.head),Ce=!1;if(fe.electricChars){for(var Ne=0;Ne<fe.electricChars.length;Ne++)if(z.indexOf(fe.electricChars.charAt(Ne))>-1){Ce=Fl(x,ie.head.line,"smart");break}}else fe.electricInput&&fe.electricInput.test(Ct(x.doc,ie.head.line).text.slice(0,ie.head.ch))&&(Ce=Fl(x,ie.head.line,"smart"));Ce&&ci(x,"electricInput",x,ie.head.line)}}}function uu(x){for(var z=[],ne=[],te=0;te<x.doc.sel.ranges.length;te++){var ie=x.doc.sel.ranges[te].head.line,fe={anchor:Ut(ie,0),head:Ut(ie+1,0)};ne.push(fe),z.push(x.getRange(fe.anchor,fe.head))}return{text:z,ranges:ne}}function xf(x,z,ne,te){x.setAttribute("autocorrect",ne?"":"off"),x.setAttribute("autocapitalize",te?"":"off"),x.setAttribute("spellcheck",!!z)}function zd(){var x=Ye("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),z=Ye("div",[x],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return he?x.style.width="1000px":x.setAttribute("wrap","off"),et&&(x.style.border="1px solid black"),xf(x),z}function Fd(x){var z=x.optionHandlers,ne=x.helpers={};x.prototype={constructor:x,focus:function(){window.focus(),this.display.input.focus()},setOption:function(te,ie){var fe=this.options,Ce=fe[te];fe[te]==ie&&te!="mode"||(fe[te]=ie,z.hasOwnProperty(te)&&cn(this,z[te])(this,ie,Ce),Le(this,"optionChange",this,te))},getOption:function(te){return this.options[te]},getDoc:function(){return this.doc},addKeyMap:function(te,ie){this.state.keyMaps[ie?"push":"unshift"](Cs(te))},removeKeyMap:function(te){for(var ie=this.state.keyMaps,fe=0;fe<ie.length;++fe)if(ie[fe]==te||ie[fe].name==te)return ie.splice(fe,1),!0},addOverlay:sn(function(te,ie){var fe=te.token?te:x.getMode(this.options,te);if(fe.startState)throw new Error("Overlays may not be stateful.");Gt(this.state.overlays,{mode:fe,modeSpec:te,opaque:ie&&ie.opaque,priority:ie&&ie.priority||0},function(Ce){return Ce.priority}),this.state.modeGen++,Ho(this)}),removeOverlay:sn(function(te){for(var ie=this.state.overlays,fe=0;fe<ie.length;++fe){var Ce=ie[fe].modeSpec;if(Ce==te||typeof te=="string"&&Ce.name==te){ie.splice(fe,1),this.state.modeGen++,Ho(this);return}}}),indentLine:sn(function(te,ie,fe){typeof ie!="string"&&typeof ie!="number"&&(ie==null?ie=this.options.smartIndent?"smart":"prev":ie=ie?"add":"subtract"),An(this.doc,te)&&Fl(this,te,ie,fe)}),indentSelection:sn(function(te){for(var ie=this.doc.sel.ranges,fe=-1,Ce=0;Ce<ie.length;Ce++){var Ne=ie[Ce];if(Ne.empty())Ne.head.line>fe&&(Fl(this,Ne.head.line,te,!0),fe=Ne.head.line,Ce==this.doc.sel.primIndex&&yc(this));else{var $e=Ne.from(),tt=Ne.to(),Ht=Math.max(fe,$e.line);fe=Math.min(this.lastLine(),tt.line-(tt.ch?0:1))+1;for(var qt=Ht;qt<fe;++qt)Fl(this,qt,te);var kn=this.doc.sel.ranges;$e.ch==0&&ie.length==kn.length&&kn[Ce].from().ch>0&&Ma(this.doc,Ce,new $r($e,kn[Ce].to()),at)}}}),getTokenAt:function(te,ie){return Er(this,te,ie)},getLineTokens:function(te,ie){return Er(this,Ut(te),ie,!0)},getTokenTypeAt:function(te){te=Bn(this.doc,te);var ie=dn(this,Ct(this.doc,te.line)),fe=0,Ce=(ie.length-1)/2,Ne=te.ch,$e;if(Ne==0)$e=ie[2];else for(;;){var tt=fe+Ce>>1;if((tt?ie[tt*2-1]:0)>=Ne)Ce=tt;else if(ie[tt*2+1]<Ne)fe=tt+1;else{$e=ie[tt*2+2];break}}var Ht=$e?$e.indexOf("overlay "):-1;return Ht<0?$e:Ht==0?null:$e.slice(0,Ht-1)},getModeAt:function(te){var ie=this.doc.mode;return ie.innerMode?x.innerMode(ie,this.getTokenAt(te).state).mode:ie},getHelper:function(te,ie){return this.getHelpers(te,ie)[0]},getHelpers:function(te,ie){var fe=[];if(!ne.hasOwnProperty(ie))return fe;var Ce=ne[ie],Ne=this.getModeAt(te);if(typeof Ne[ie]=="string")Ce[Ne[ie]]&&fe.push(Ce[Ne[ie]]);else if(Ne[ie])for(var $e=0;$e<Ne[ie].length;$e++){var tt=Ce[Ne[ie][$e]];tt&&fe.push(tt)}else Ne.helperType&&Ce[Ne.helperType]?fe.push(Ce[Ne.helperType]):Ce[Ne.name]&&fe.push(Ce[Ne.name]);for(var Ht=0;Ht<Ce._global.length;Ht++){var qt=Ce._global[Ht];qt.pred(Ne,this)&&bt(fe,qt.val)==-1&&fe.push(qt.val)}return fe},getStateAfter:function(te,ie){var fe=this.doc;return te=mr(fe,te==null?fe.first+fe.size-1:te),vn(this,te+1,ie).state},cursorCoords:function(te,ie){var fe,Ce=this.doc.sel.primary();return te==null?fe=Ce.head:typeof te=="object"?fe=Bn(this.doc,te):fe=te?Ce.from():Ce.to(),Yo(this,fe,ie||"page")},charCoords:function(te,ie){return Ps(this,Bn(this.doc,te),ie||"page")},coordsChar:function(te,ie){return te=Ks(this,te,ie||"page"),vl(this,te.left,te.top)},lineAtHeight:function(te,ie){return te=Ks(this,{top:te,left:0},ie||"page").top,Cn(this.doc,te+this.display.viewOffset)},heightAtLine:function(te,ie,fe){var Ce=!1,Ne;if(typeof te=="number"){var $e=this.doc.first+this.doc.size-1;te<this.doc.first?te=this.doc.first:te>$e&&(te=$e,Ce=!0),Ne=Ct(this.doc,te)}else Ne=te;return Qo(this,Ne,{top:0,left:0},ie||"page",fe||Ce).top+(Ce?this.doc.height-sr(Ne):0)},defaultTextHeight:function(){return yl(this.display)},defaultCharWidth:function(){return Aa(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(te,ie,fe,Ce,Ne){var $e=this.display;te=Yo(this,Bn(this.doc,te));var tt=te.bottom,Ht=te.left;if(ie.style.position="absolute",ie.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ie),$e.sizer.appendChild(ie),Ce=="over")tt=te.top;else if(Ce=="above"||Ce=="near"){var qt=Math.max($e.wrapper.clientHeight,this.doc.height),kn=Math.max($e.sizer.clientWidth,$e.lineSpace.clientWidth);(Ce=="above"||te.bottom+ie.offsetHeight>qt)&&te.top>ie.offsetHeight?tt=te.top-ie.offsetHeight:te.bottom+ie.offsetHeight<=qt&&(tt=te.bottom),Ht+ie.offsetWidth>kn&&(Ht=kn-ie.offsetWidth)}ie.style.top=tt+"px",ie.style.left=ie.style.right="",Ne=="right"?(Ht=$e.sizer.clientWidth-ie.offsetWidth,ie.style.right="0px"):(Ne=="left"?Ht=0:Ne=="middle"&&(Ht=($e.sizer.clientWidth-ie.offsetWidth)/2),ie.style.left=Ht+"px"),fe&&Gu(this,{left:Ht,top:tt,right:Ht+ie.offsetWidth,bottom:tt+ie.offsetHeight})},triggerOnKeyDown:sn(Lu),triggerOnKeyPress:sn(pf),triggerOnKeyUp:hf,triggerOnMouseDown:sn(Is),execCommand:function(te){if(ws.hasOwnProperty(te))return ws[te].call(null,this)},triggerElectric:sn(function(te){Rd(this,te)}),findPosH:function(te,ie,fe,Ce){var Ne=1;ie<0&&(Ne=-1,ie=-ie);for(var $e=Bn(this.doc,te),tt=0;tt<ie&&($e=od(this.doc,$e,Ne,fe,Ce),!$e.hitSide);++tt);return $e},moveH:sn(function(te,ie){var fe=this;this.extendSelectionsBy(function(Ce){return fe.display.shift||fe.doc.extend||Ce.empty()?od(fe.doc,Ce.head,te,ie,fe.options.rtlMoveVisually):te<0?Ce.from():Ce.to()},Dt)}),deleteH:sn(function(te,ie){var fe=this.doc.sel,Ce=this.doc;fe.somethingSelected()?Ce.replaceSelection("",null,"+delete"):js(this,function(Ne){var $e=od(Ce,Ne.head,te,ie,!1);return te<0?{from:$e,to:Ne.head}:{from:Ne.head,to:$e}})}),findPosV:function(te,ie,fe,Ce){var Ne=1,$e=Ce;ie<0&&(Ne=-1,ie=-ie);for(var tt=Bn(this.doc,te),Ht=0;Ht<ie;++Ht){var qt=Yo(this,tt,"div");if($e==null?$e=qt.left:qt.left=$e,tt=Sf(this,qt,Ne,fe),tt.hitSide)break}return tt},moveV:sn(function(te,ie){var fe=this,Ce=this.doc,Ne=[],$e=!this.display.shift&&!Ce.extend&&Ce.sel.somethingSelected();if(Ce.extendSelectionsBy(function(Ht){if($e)return te<0?Ht.from():Ht.to();var qt=Yo(fe,Ht.head,"div");Ht.goalColumn!=null&&(qt.left=Ht.goalColumn),Ne.push(qt.left);var kn=Sf(fe,qt,te,ie);return ie=="page"&&Ht==Ce.sel.primary()&&tu(fe,Ps(fe,kn,"div").top-qt.top),kn},Dt),Ne.length)for(var tt=0;tt<Ce.sel.ranges.length;tt++)Ce.sel.ranges[tt].goalColumn=Ne[tt]}),findWordAt:function(te){var ie=this.doc,fe=Ct(ie,te.line).text,Ce=te.ch,Ne=te.ch;if(fe){var $e=this.getHelper(te,"wordChars");(te.sticky=="before"||Ne==fe.length)&&Ce?--Ce:++Ne;for(var tt=fe.charAt(Ce),Ht=pe(tt,$e)?function(qt){return pe(qt,$e)}:/\s/.test(tt)?function(qt){return/\s/.test(qt)}:function(qt){return!/\s/.test(qt)&&!pe(qt)};Ce>0&&Ht(fe.charAt(Ce-1));)--Ce;for(;Ne<fe.length&&Ht(fe.charAt(Ne));)++Ne}return new $r(Ut(te.line,Ce),Ut(te.line,Ne))},toggleOverwrite:function(te){te!=null&&te==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ot(this.display.cursorDiv,"CodeMirror-overwrite"):Ke(this.display.cursorDiv,"CodeMirror-overwrite"),Le(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ge()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:sn(function(te,ie){oc(this,te,ie)}),getScrollInfo:function(){var te=this.display.scroller;return{left:te.scrollLeft,top:te.scrollTop,height:te.scrollHeight-uo(this)-this.display.barHeight,width:te.scrollWidth-uo(this)-this.display.barWidth,clientHeight:fs(this),clientWidth:ao(this)}},scrollIntoView:sn(function(te,ie){te==null?(te={from:this.doc.sel.primary().head,to:null},ie==null&&(ie=this.options.cursorScrollMargin)):typeof te=="number"?te={from:Ut(te,0),to:null}:te.from==null&&(te={from:te,to:null}),te.to||(te.to=te.from),te.margin=ie||0,te.from.line!=null?Dd(this,te):Qu(this,te.from,te.to,te.margin)}),setSize:sn(function(te,ie){var fe=this,Ce=function($e){return typeof $e=="number"||/^\d+$/.test(String($e))?$e+"px":$e};te!=null&&(this.display.wrapper.style.width=Ce(te)),ie!=null&&(this.display.wrapper.style.height=Ce(ie)),this.options.lineWrapping&&mo(this);var Ne=this.display.viewFrom;this.doc.iter(Ne,this.display.viewTo,function($e){if($e.widgets){for(var tt=0;tt<$e.widgets.length;tt++)if($e.widgets[tt].noHScroll){qs(fe,Ne,"widget");break}}++Ne}),this.curOp.forceUpdate=!0,Le(this,"refresh",this)}),operation:function(te){return zt(this,te)},startOperation:function(){return ks(this)},endOperation:function(){return Nl(this)},refresh:sn(function(){var te=this.display.cachedTextHeight;Ho(this),this.curOp.forceUpdate=!0,no(this),oc(this,this.doc.scrollLeft,this.doc.scrollTop),Yr(this.display),(te==null||Math.abs(te-yl(this.display))>.5||this.options.lineWrapping)&&Xo(this),Le(this,"refresh",this)}),swapDoc:sn(function(te){var ie=this.doc;return ie.cm=null,this.state.selectingText&&this.state.selectingText(),Pi(this,te),no(this),this.display.input.reset(),oc(this,te.scrollLeft,te.scrollTop),this.curOp.forceScroll=!0,ci(this,"swapDoc",this,ie),ie}),phrase:function(te){var ie=this.options.phrases;return ie&&Object.prototype.hasOwnProperty.call(ie,te)?ie[te]:te},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}},Xt(x),x.registerHelper=function(te,ie,fe){ne.hasOwnProperty(te)||(ne[te]=x[te]={_global:[]}),ne[te][ie]=fe},x.registerGlobalHelper=function(te,ie,fe,Ce){x.registerHelper(te,ie,Ce),ne[te]._global.push({pred:fe,val:Ce})}}function od(x,z,ne,te,ie){var fe=z,Ce=ne,Ne=Ct(x,z.line),$e=ie&&x.direction=="rtl"?-ne:ne;function tt(){var vi=z.line+$e;return vi<x.first||vi>=x.first+x.size?!1:(z=new Ut(vi,z.ch,z.sticky),Ne=Ct(x,vi))}function Ht(vi){var qr;if(te=="codepoint"){var bi=Ne.text.charCodeAt(z.ch+(te>0?0:-1));isNaN(bi)?qr=null:qr=new Ut(z.line,Math.max(0,Math.min(Ne.text.length,z.ch+ne*(bi>=55296&&bi<56320?2:1))),-ne)}else ie?qr=La(x.cm,Ne,z,ne):qr=El(Ne,z,ne);if(qr==null)if(!vi&&tt())z=Ca(ie,x.cm,Ne,z.line,$e);else return!1;else z=qr;return!0}if(te=="char"||te=="codepoint")Ht();else if(te=="column")Ht(!0);else if(te=="word"||te=="group")for(var qt=null,kn=te=="group",Sn=x.cm&&x.cm.getHelper(z,"wordChars"),Qn=!0;!(ne<0&&!Ht(!Qn));Qn=!1){var dr=Ne.text.charAt(z.ch)||`
|
|
|
`,jr=pe(dr,Sn)?"w":kn&&dr==`
|
|
|
`?"n":!kn||/\s/.test(dr)?null:"p";if(kn&&!Qn&&!jr&&(jr="s"),qt&&qt!=jr){ne<0&&(ne=1,Ht(),z.sticky="after");break}if(jr&&(qt=jr),ne>0&&!Ht(!Qn))break}var si=nl(x,z,fe,Ce,!0);return Vn(fe,si)&&(si.hitSide=!0),si}function Sf(x,z,ne,te){var ie=x.doc,fe=z.left,Ce;if(te=="page"){var Ne=Math.min(x.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),$e=Math.max(Ne-.5*yl(x.display),3);Ce=(ne>0?z.bottom:z.top)+ne*$e}else te=="line"&&(Ce=ne>0?z.bottom+3:z.top-3);for(var tt;tt=vl(x,fe,Ce),!!tt.outside;){if(ne<0?Ce<=0:Ce>=ie.height){tt.hitSide=!0;break}Ce+=ne*5}return tt}var ho=function(x){this.cm=x,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ye,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ho.prototype.init=function(x){var z=this,ne=this,te=ne.cm,ie=ne.div=x.lineDiv;xf(ie,te.options.spellcheck,te.options.autocorrect,te.options.autocapitalize);function fe(Ne){for(var $e=Ne.target;$e;$e=$e.parentNode){if($e==ie)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test($e.className))break}return!1}Ft(ie,"paste",function(Ne){!fe(Ne)||dt(te,Ne)||_d(Ne,te)||Ee<=11&&setTimeout(cn(te,function(){return z.updateFromDOM()}),20)}),Ft(ie,"compositionstart",function(Ne){z.composing={data:Ne.data,done:!1}}),Ft(ie,"compositionupdate",function(Ne){z.composing||(z.composing={data:Ne.data,done:!1})}),Ft(ie,"compositionend",function(Ne){z.composing&&(Ne.data!=z.composing.data&&z.readFromDOMSoon(),z.composing.done=!0)}),Ft(ie,"touchstart",function(){return ne.forceCompositionEnd()}),Ft(ie,"input",function(){z.composing||z.readFromDOMSoon()});function Ce(Ne){if(!(!fe(Ne)||dt(te,Ne))){if(te.somethingSelected())Mc({lineWise:!1,text:te.getSelections()}),Ne.type=="cut"&&te.replaceSelection("",null,"cut");else if(te.options.lineWiseCopyCut){var $e=uu(te);Mc({lineWise:!0,text:$e.text}),Ne.type=="cut"&&te.operation(function(){te.setSelections($e.ranges,0,at),te.replaceSelection("",null,"cut")})}else return;if(Ne.clipboardData){Ne.clipboardData.clearData();var tt=Kl.text.join(`
|
|
|
`);if(Ne.clipboardData.setData("Text",tt),Ne.clipboardData.getData("Text")==tt){Ne.preventDefault();return}}var Ht=zd(),qt=Ht.firstChild;te.display.lineSpace.insertBefore(Ht,te.display.lineSpace.firstChild),qt.value=Kl.text.join(`
|
|
|
`);var kn=document.activeElement;At(qt),setTimeout(function(){te.display.lineSpace.removeChild(Ht),kn.focus(),kn==ie&&ne.showPrimarySelection()},50)}}Ft(ie,"copy",Ce),Ft(ie,"cut",Ce)},ho.prototype.screenReaderLabelChanged=function(x){x?this.div.setAttribute("aria-label",x):this.div.removeAttribute("aria-label")},ho.prototype.prepareSelection=function(){var x=Vu(this.cm,!1);return x.focus=document.activeElement==this.div,x},ho.prototype.showSelection=function(x,z){!x||!this.cm.display.view.length||((x.focus||z)&&this.showPrimarySelection(),this.showMultipleSelections(x))},ho.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ho.prototype.showPrimarySelection=function(){var x=this.getSelection(),z=this.cm,ne=z.doc.sel.primary(),te=ne.from(),ie=ne.to();if(z.display.viewTo==z.display.viewFrom||te.line>=z.display.viewTo||ie.line<z.display.viewFrom){x.removeAllRanges();return}var fe=sd(z,x.anchorNode,x.anchorOffset),Ce=sd(z,x.focusNode,x.focusOffset);if(!(fe&&!fe.bad&&Ce&&!Ce.bad&&bn(Wn(fe,Ce),te)==0&&bn(Jn(fe,Ce),ie)==0)){var Ne=z.display.view,$e=te.line>=z.display.viewFrom&&Cf(z,te)||{node:Ne[0].measure.map[2],offset:0},tt=ie.line<z.display.viewTo&&Cf(z,ie);if(!tt){var Ht=Ne[Ne.length-1].measure,qt=Ht.maps?Ht.maps[Ht.maps.length-1]:Ht.map;tt={node:qt[qt.length-1],offset:qt[qt.length-2]-qt[qt.length-3]}}if(!$e||!tt){x.removeAllRanges();return}var kn=x.rangeCount&&x.getRangeAt(0),Sn;try{Sn=Ie($e.node,$e.offset,tt.offset,tt.node)}catch(Qn){}Sn&&(!ue&&z.state.focused?(x.collapse($e.node,$e.offset),Sn.collapsed||(x.removeAllRanges(),x.addRange(Sn))):(x.removeAllRanges(),x.addRange(Sn)),kn&&x.anchorNode==null?x.addRange(kn):ue&&this.startGracePeriod()),this.rememberSelection()}},ho.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)},ho.prototype.showMultipleSelections=function(x){vt(this.cm.display.cursorDiv,x.cursors),vt(this.cm.display.selectionDiv,x.selection)},ho.prototype.rememberSelection=function(){var x=this.getSelection();this.lastAnchorNode=x.anchorNode,this.lastAnchorOffset=x.anchorOffset,this.lastFocusNode=x.focusNode,this.lastFocusOffset=x.focusOffset},ho.prototype.selectionInEditor=function(){var x=this.getSelection();if(!x.rangeCount)return!1;var z=x.getRangeAt(0).commonAncestorContainer;return Mt(this.div,z)},ho.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ho.prototype.blur=function(){this.div.blur()},ho.prototype.getField=function(){return this.div},ho.prototype.supportsTouch=function(){return!0},ho.prototype.receivedFocus=function(){var x=this;this.selectionInEditor()?this.pollSelection():zt(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)},ho.prototype.selectionChanged=function(){var x=this.getSelection();return x.anchorNode!=this.lastAnchorNode||x.anchorOffset!=this.lastAnchorOffset||x.focusNode!=this.lastFocusNode||x.focusOffset!=this.lastFocusOffset},ho.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var x=this.getSelection(),z=this.cm;if(We&&Me&&this.cm.display.gutterSpecs.length&&ch(x.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ne=sd(z,x.anchorNode,x.anchorOffset),te=sd(z,x.focusNode,x.focusOffset);ne&&te&&zt(z,function(){Oa(z.doc,Xi(ne,te),at),(ne.bad||te.bad)&&(z.curOp.selectionChanged=!0)})}}},ho.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var x=this.cm,z=x.display,ne=x.doc.sel.primary(),te=ne.from(),ie=ne.to();if(te.ch==0&&te.line>x.firstLine()&&(te=Ut(te.line-1,Ct(x.doc,te.line-1).length)),ie.ch==Ct(x.doc,ie.line).text.length&&ie.line<x.lastLine()&&(ie=Ut(ie.line+1,0)),te.line<z.viewFrom||ie.line>z.viewTo-1)return!1;var fe,Ce,Ne;te.line==z.viewFrom||(fe=hs(x,te.line))==0?(Ce=ln(z.view[0].line),Ne=z.view[0].node):(Ce=ln(z.view[fe].line),Ne=z.view[fe-1].node.nextSibling);var $e=hs(x,ie.line),tt,Ht;if($e==z.view.length-1?(tt=z.viewTo-1,Ht=z.lineDiv.lastChild):(tt=ln(z.view[$e+1].line)-1,Ht=z.view[$e+1].node.previousSibling),!Ne)return!1;for(var qt=x.doc.splitLines(uh(x,Ne,Ht,Ce,tt)),kn=Rt(x.doc,Ut(Ce,0),Ut(tt,Ct(x.doc,tt).text.length));qt.length>1&&kn.length>1;)if(tn(qt)==tn(kn))qt.pop(),kn.pop(),tt--;else if(qt[0]==kn[0])qt.shift(),kn.shift(),Ce++;else break;for(var Sn=0,Qn=0,dr=qt[0],jr=kn[0],si=Math.min(dr.length,jr.length);Sn<si&&dr.charCodeAt(Sn)==jr.charCodeAt(Sn);)++Sn;for(var vi=tn(qt),qr=tn(kn),bi=Math.min(vi.length-(qt.length==1?Sn:0),qr.length-(kn.length==1?Sn:0));Qn<bi&&vi.charCodeAt(vi.length-Qn-1)==qr.charCodeAt(qr.length-Qn-1);)++Qn;if(qt.length==1&&kn.length==1&&Ce==te.line)for(;Sn&&Sn>te.ch&&vi.charCodeAt(vi.length-Qn-1)==qr.charCodeAt(qr.length-Qn-1);)Sn--,Qn++;qt[qt.length-1]=vi.slice(0,vi.length-Qn).replace(/^\u200b+/,""),qt[0]=qt[0].slice(Sn).replace(/\u200b+$/,"");var Fi=Ut(Ce,Sn),Zi=Ut(tt,kn.length?tn(kn).length-Qn:0);if(qt.length>1||qt[0]||bn(Fi,Zi))return _l(x.doc,qt,Fi,Zi,"+input"),!0},ho.prototype.ensurePolled=function(){this.forceCompositionEnd()},ho.prototype.reset=function(){this.forceCompositionEnd()},ho.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ho.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))},ho.prototype.updateFromDOM=function(){var x=this;(this.cm.isReadOnly()||!this.pollContent())&&zt(this.cm,function(){return Ho(x.cm)})},ho.prototype.setUneditable=function(x){x.contentEditable="false"},ho.prototype.onKeyPress=function(x){x.charCode==0||this.composing||(x.preventDefault(),this.cm.isReadOnly()||cn(this.cm,Nd)(this.cm,String.fromCharCode(x.charCode==null?x.keyCode:x.charCode),0))},ho.prototype.readOnlyChanged=function(x){this.div.contentEditable=String(x!="nocursor")},ho.prototype.onContextMenu=function(){},ho.prototype.resetPosition=function(){},ho.prototype.needsContentAttribute=!0;function Cf(x,z){var ne=No(x,z.line);if(!ne||ne.hidden)return null;var te=Ct(x.doc,z.line),ie=Ms(ne,te,z.line),fe=Jt(te,x.doc.direction),Ce="left";if(fe){var Ne=Qe(fe,z.ch);Ce=Ne%2?"right":"left"}var $e=Dl(ie.map,z.ch,Ce);return $e.offset=$e.collapse=="right"?$e.end:$e.start,$e}function ch(x){for(var z=x;z;z=z.parentNode)if(/CodeMirror-gutter-wrapper/.test(z.className))return!0;return!1}function du(x,z){return z&&(x.bad=!0),x}function uh(x,z,ne,te,ie){var fe="",Ce=!1,Ne=x.doc.lineSeparator(),$e=!1;function tt(Sn){return function(Qn){return Qn.id==Sn}}function Ht(){Ce&&(fe+=Ne,$e&&(fe+=Ne),Ce=$e=!1)}function qt(Sn){Sn&&(Ht(),fe+=Sn)}function kn(Sn){if(Sn.nodeType==1){var Qn=Sn.getAttribute("cm-text");if(Qn){qt(Qn);return}var dr=Sn.getAttribute("cm-marker"),jr;if(dr){var si=x.findMarks(Ut(te,0),Ut(ie+1,0),tt(+dr));si.length&&(jr=si[0].find(0))&&qt(Rt(x.doc,jr.from,jr.to).join(Ne));return}if(Sn.getAttribute("contenteditable")=="false")return;var vi=/^(pre|div|p|li|table|br)$/i.test(Sn.nodeName);if(!/^br$/i.test(Sn.nodeName)&&Sn.textContent.length==0)return;vi&&Ht();for(var qr=0;qr<Sn.childNodes.length;qr++)kn(Sn.childNodes[qr]);/^(pre|p)$/i.test(Sn.nodeName)&&($e=!0),vi&&(Ce=!0)}else Sn.nodeType==3&&qt(Sn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;kn(z),z!=ne;)z=z.nextSibling,$e=!1;return fe}function sd(x,z,ne){var te;if(z==x.display.lineDiv){if(te=x.display.lineDiv.childNodes[ne],!te)return du(x.clipPos(Ut(x.display.viewTo-1)),!0);z=null,ne=0}else for(te=z;;te=te.parentNode){if(!te||te==x.display.lineDiv)return null;if(te.parentNode&&te.parentNode==x.display.lineDiv)break}for(var ie=0;ie<x.display.view.length;ie++){var fe=x.display.view[ie];if(fe.node==te)return dh(fe,z,ne)}}function dh(x,z,ne){var te=x.text.firstChild,ie=!1;if(!z||!Mt(te,z))return du(Ut(ln(x.line),0),!0);if(z==te&&(ie=!0,z=te.childNodes[ne],ne=0,!z)){var fe=x.rest?tn(x.rest):x.line;return du(Ut(ln(fe),fe.text.length),ie)}var Ce=z.nodeType==3?z:null,Ne=z;for(!Ce&&z.childNodes.length==1&&z.firstChild.nodeType==3&&(Ce=z.firstChild,ne&&(ne=Ce.nodeValue.length));Ne.parentNode!=te;)Ne=Ne.parentNode;var $e=x.measure,tt=$e.maps;function Ht(jr,si,vi){for(var qr=-1;qr<(tt?tt.length:0);qr++)for(var bi=qr<0?$e.map:tt[qr],Fi=0;Fi<bi.length;Fi+=3){var Zi=bi[Fi+2];if(Zi==jr||Zi==si){var wa=ln(qr<0?x.line:x.rest[qr]),vo=bi[Fi]+vi;return(vi<0||Zi!=jr)&&(vo=bi[Fi+(vi?1:0)]),Ut(wa,vo)}}}var qt=Ht(Ce,Ne,ne);if(qt)return du(qt,ie);for(var kn=Ne.nextSibling,Sn=Ce?Ce.nodeValue.length-ne:0;kn;kn=kn.nextSibling){if(qt=Ht(kn,kn.firstChild,0),qt)return du(Ut(qt.line,qt.ch-Sn),ie);Sn+=kn.textContent.length}for(var Qn=Ne.previousSibling,dr=ne;Qn;Qn=Qn.previousSibling){if(qt=Ht(Qn,Qn.firstChild,-1),qt)return du(Ut(qt.line,qt.ch+dr),ie);dr+=Qn.textContent.length}}var go=function(x){this.cm=x,this.prevInput="",this.pollingFast=!1,this.polling=new ye,this.hasSelection=!1,this.composing=null};go.prototype.init=function(x){var z=this,ne=this,te=this.cm;this.createField(x);var ie=this.textarea;x.wrapper.insertBefore(this.wrapper,x.wrapper.firstChild),et&&(ie.style.width="0px"),Ft(ie,"input",function(){be&&Ee>=9&&z.hasSelection&&(z.hasSelection=null),ne.poll()}),Ft(ie,"paste",function(Ce){dt(te,Ce)||_d(Ce,te)||(te.state.pasteIncoming=+new Date,ne.fastPoll())});function fe(Ce){if(!dt(te,Ce)){if(te.somethingSelected())Mc({lineWise:!1,text:te.getSelections()});else if(te.options.lineWiseCopyCut){var Ne=uu(te);Mc({lineWise:!0,text:Ne.text}),Ce.type=="cut"?te.setSelections(Ne.ranges,null,at):(ne.prevInput="",ie.value=Ne.text.join(`
|
|
|
`),At(ie))}else return;Ce.type=="cut"&&(te.state.cutIncoming=+new Date)}}Ft(ie,"cut",fe),Ft(ie,"copy",fe),Ft(x.scroller,"paste",function(Ce){if(!(Ba(x,Ce)||dt(te,Ce))){if(!ie.dispatchEvent){te.state.pasteIncoming=+new Date,ne.focus();return}var Ne=new Event("paste");Ne.clipboardData=Ce.clipboardData,ie.dispatchEvent(Ne)}}),Ft(x.lineSpace,"selectstart",function(Ce){Ba(x,Ce)||gn(Ce)}),Ft(ie,"compositionstart",function(){var Ce=te.getCursor("from");ne.composing&&ne.composing.range.clear(),ne.composing={start:Ce,range:te.markText(Ce,te.getCursor("to"),{className:"CodeMirror-composing"})}}),Ft(ie,"compositionend",function(){ne.composing&&(ne.poll(),ne.composing.range.clear(),ne.composing=null)})},go.prototype.createField=function(x){this.wrapper=zd(),this.textarea=this.wrapper.firstChild},go.prototype.screenReaderLabelChanged=function(x){x?this.textarea.setAttribute("aria-label",x):this.textarea.removeAttribute("aria-label")},go.prototype.prepareSelection=function(){var x=this.cm,z=x.display,ne=x.doc,te=Vu(x);if(x.options.moveInputWithCursor){var ie=Yo(x,ne.sel.primary().head,"div"),fe=z.wrapper.getBoundingClientRect(),Ce=z.lineDiv.getBoundingClientRect();te.teTop=Math.max(0,Math.min(z.wrapper.clientHeight-10,ie.top+Ce.top-fe.top)),te.teLeft=Math.max(0,Math.min(z.wrapper.clientWidth-10,ie.left+Ce.left-fe.left))}return te},go.prototype.showSelection=function(x){var z=this.cm,ne=z.display;vt(ne.cursorDiv,x.cursors),vt(ne.selectionDiv,x.selection),x.teTop!=null&&(this.wrapper.style.top=x.teTop+"px",this.wrapper.style.left=x.teLeft+"px")},go.prototype.reset=function(x){if(!(this.contextMenuPending||this.composing)){var z=this.cm;if(z.somethingSelected()){this.prevInput="";var ne=z.getSelection();this.textarea.value=ne,z.state.focused&&At(this.textarea),be&&Ee>=9&&(this.hasSelection=ne)}else x||(this.prevInput=this.textarea.value="",be&&Ee>=9&&(this.hasSelection=null))}},go.prototype.getField=function(){return this.textarea},go.prototype.supportsTouch=function(){return!1},go.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!je||Ge()!=this.textarea))try{this.textarea.focus()}catch(x){}},go.prototype.blur=function(){this.textarea.blur()},go.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},go.prototype.receivedFocus=function(){this.slowPoll()},go.prototype.slowPoll=function(){var x=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){x.poll(),x.cm.state.focused&&x.slowPoll()})},go.prototype.fastPoll=function(){var x=!1,z=this;z.pollingFast=!0;function ne(){var te=z.poll();!te&&!x?(x=!0,z.polling.set(60,ne)):(z.pollingFast=!1,z.slowPoll())}z.polling.set(20,ne)},go.prototype.poll=function(){var x=this,z=this.cm,ne=this.textarea,te=this.prevInput;if(this.contextMenuPending||!z.state.focused||jn(ne)&&!te&&!this.composing||z.isReadOnly()||z.options.disableInput||z.state.keySeq)return!1;var ie=ne.value;if(ie==te&&!z.somethingSelected())return!1;if(be&&Ee>=9&&this.hasSelection===ie||pt&&/[\uf700-\uf7ff]/.test(ie))return z.display.input.reset(),!1;if(z.doc.sel==z.display.selForContextMenu){var fe=ie.charCodeAt(0);if(fe==8203&&!te&&(te="\u200B"),fe==8666)return this.reset(),this.cm.execCommand("undo")}for(var Ce=0,Ne=Math.min(te.length,ie.length);Ce<Ne&&te.charCodeAt(Ce)==ie.charCodeAt(Ce);)++Ce;return zt(z,function(){Nd(z,ie.slice(Ce),te.length-Ce,null,x.composing?"*compose":null),ie.length>1e3||ie.indexOf(`
|
|
|
`)>-1?ne.value=x.prevInput="":x.prevInput=ie,x.composing&&(x.composing.range.clear(),x.composing.range=z.markText(x.composing.start,z.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},go.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},go.prototype.onKeyPress=function(){be&&Ee>=9&&(this.hasSelection=null),this.fastPoll()},go.prototype.onContextMenu=function(x){var z=this,ne=z.cm,te=ne.display,ie=z.textarea;z.contextMenuPending&&z.contextMenuPending();var fe=Vs(ne,x),Ce=te.scroller.scrollTop;if(!fe||Pe)return;var Ne=ne.options.resetSelectionOnContextMenu;Ne&&ne.doc.sel.contains(fe)==-1&&cn(ne,Oa)(ne.doc,Xi(fe),at);var $e=ie.style.cssText,tt=z.wrapper.style.cssText,Ht=z.wrapper.offsetParent.getBoundingClientRect();z.wrapper.style.cssText="position: static",ie.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(x.clientY-Ht.top-5)+"px; left: "+(x.clientX-Ht.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 qt;he&&(qt=window.scrollY),te.input.focus(),he&&window.scrollTo(null,qt),te.input.reset(),ne.somethingSelected()||(ie.value=z.prevInput=" "),z.contextMenuPending=Sn,te.selForContextMenu=ne.doc.sel,clearTimeout(te.detectingSelectAll);function kn(){if(ie.selectionStart!=null){var dr=ne.somethingSelected(),jr="\u200B"+(dr?ie.value:"");ie.value="\u21DA",ie.value=jr,z.prevInput=dr?"":"\u200B",ie.selectionStart=1,ie.selectionEnd=jr.length,te.selForContextMenu=ne.doc.sel}}function Sn(){if(z.contextMenuPending==Sn&&(z.contextMenuPending=!1,z.wrapper.style.cssText=tt,ie.style.cssText=$e,be&&Ee<9&&te.scrollbars.setScrollTop(te.scroller.scrollTop=Ce),ie.selectionStart!=null)){(!be||be&&Ee<9)&&kn();var dr=0,jr=function(){te.selForContextMenu==ne.doc.sel&&ie.selectionStart==0&&ie.selectionEnd>0&&z.prevInput=="\u200B"?cn(ne,Ss)(ne):dr++<10?te.detectingSelectAll=setTimeout(jr,500):(te.selForContextMenu=null,te.input.reset())};te.detectingSelectAll=setTimeout(jr,200)}}if(be&&Ee>=9&&kn(),He){_n(x);var Qn=function(){ht(window,"mouseup",Qn),setTimeout(Sn,20)};Ft(window,"mouseup",Qn)}else setTimeout(Sn,50)},go.prototype.readOnlyChanged=function(x){x||this.reset(),this.textarea.disabled=x=="nocursor",this.textarea.readOnly=!!x},go.prototype.setUneditable=function(){},go.prototype.needsContentAttribute=!1;function Zc(x,z){if(z=z?Tt(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 ne=Ge();z.autofocus=ne==x||x.getAttribute("autofocus")!=null&&ne==document.body}function te(){x.value=Ne.getValue()}var ie;if(x.form&&(Ft(x.form,"submit",te),!z.leaveSubmitMethodAlone)){var fe=x.form;ie=fe.submit;try{var Ce=fe.submit=function(){te(),fe.submit=ie,fe.submit(),fe.submit=Ce}}catch($e){}}z.finishInit=function($e){$e.save=te,$e.getTextArea=function(){return x},$e.toTextArea=function(){$e.toTextArea=isNaN,te(),x.parentNode.removeChild($e.getWrapperElement()),x.style.display="",x.form&&(ht(x.form,"submit",te),!z.leaveSubmitMethodAlone&&typeof x.form.submit=="function"&&(x.form.submit=ie))}},x.style.display="none";var Ne=ta(function($e){return x.parentNode.insertBefore($e,x.nextSibling)},z);return Ne}function fu(x){x.off=ht,x.on=Ft,x.wheelEventPixels=_i,x.Doc=Bo,x.splitLines=Cr,x.countColumn=Ve,x.findColumn=yn,x.isWordChar=de,x.Pass=Kt,x.signal=Le,x.Line=Or,x.changeEnd=Ea,x.scrollbarModel=wu,x.Pos=Ut,x.cmpPos=bn,x.modes=ai,x.mimeModes=ti,x.resolveMode=zn,x.getMode=Hn,x.modeExtensions=wr,x.extendMode=Bt,x.copyState=ze,x.startState=Je,x.innerMode=Xe,x.commands=ws,x.keyMap=io,x.keyName=zl,x.isModifierKey=Hc,x.lookupKey=wl,x.normalizeKeyMap=lu,x.StringStream=qe,x.SharedTextMarker=pa,x.TextMarker=Gl,x.LineWidget=ts,x.e_preventDefault=gn,x.e_stopPropagation=En,x.e_stop=_n,x.addClass=Ot,x.contains=Mt,x.rmClass=Ke,x.keyNames=rl}oh(ta),Fd(ta);var fc="iter insert remove copy getEditor constructor".split(" ");for(var Al in Bo.prototype)Bo.prototype.hasOwnProperty(Al)&&bt(fc,Al)<0&&(ta.prototype[Al]=function(x){return function(){return x.apply(this.doc,arguments)}}(Bo.prototype[Al]));return Xt(Bo),ta.inputStyles={textarea:go,contenteditable:ho},ta.defineMode=function(x){!ta.defaults.mode&&x!="null"&&(ta.defaults.mode=x),er.apply(this,arguments)},ta.defineMIME=hr,ta.defineMode("null",function(){return{token:function(x){return x.skipToEnd()}}}),ta.defineMIME("text/plain","null"),ta.defineExtension=function(x,z){ta.prototype[x]=z},ta.defineDocExtension=function(x,z){Bo.prototype[x]=z},ta.fromTextArea=Zc,fu(ta),ta.version="5.58.2",ta})},25419:function(fn,Wt,oe){(function(ue){ue(oe(89780),oe(15525),oe(98101))})(function(ue){"use strict";ue.defineMode("markdown",function(Ae,ke){var nt=ue.getMode(Ae,"text/html"),be=nt.name=="null";function Ee(Ve){if(ue.findModeByName){var ye=ue.findModeByName(Ve);ye&&(Ve=ye.mime||ye.mimes[0])}var bt=ue.getMode(Ae,Ve);return bt.name=="null"?null:bt}ke.highlightFormatting===void 0&&(ke.highlightFormatting=!1),ke.maxBlockquoteDepth===void 0&&(ke.maxBlockquoteDepth=0),ke.taskLists===void 0&&(ke.taskLists=!1),ke.strikethrough===void 0&&(ke.strikethrough=!1),ke.emoji===void 0&&(ke.emoji=!1),ke.fencedCodeBlockHighlighting===void 0&&(ke.fencedCodeBlockHighlighting=!0),ke.fencedCodeBlockDefaultMode===void 0&&(ke.fencedCodeBlockDefaultMode="text/plain"),ke.xml===void 0&&(ke.xml=!0),ke.tokenTypeOverrides===void 0&&(ke.tokenTypeOverrides={});var he={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 xe in he)he.hasOwnProperty(xe)&&ke.tokenTypeOverrides[xe]&&(he[xe]=ke.tokenTypeOverrides[xe]);var Me=/^([*\-_])(?:\s*\1){2,}\s*$/,Pe=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,ct=/^\[(x| )\](?=\s)/i,De=ke.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Fe=/^ {0,3}(?:\={1,}|-{2,})\s*$/,et=/^[^#!\[\]*_\\<>` "'(~:]+/,We=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,je=/^\s*\[[^\]]+?\]:.*$/,pt=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,rt=" ";function kt(Ve,ye,bt){return ye.f=ye.inline=bt,bt(Ve,ye)}function ft(Ve,ye,bt){return ye.f=ye.block=bt,bt(Ve,ye)}function it(Ve){return!Ve||!/\S/.test(Ve.string)}function He(Ve){if(Ve.linkTitle=!1,Ve.linkHref=!1,Ve.linkText=!1,Ve.em=!1,Ve.strong=!1,Ve.strikethrough=!1,Ve.quote=0,Ve.indentedCode=!1,Ve.f==Ke){var ye=be;if(!ye){var bt=ue.innerMode(nt,Ve.htmlState);ye=bt.mode.name=="xml"&&bt.state.tagStart===null&&!bt.state.context&&bt.state.tokenize.isInText}ye&&(Ve.f=st,Ve.block=Se,Ve.htmlState=null)}return Ve.trailingSpace=0,Ve.trailingSpaceNewLine=!1,Ve.prevLine=Ve.thisLine,Ve.thisLine={stream:null},null}function Se(Ve,ye){var bt=Ve.column()===ye.indentation,Qt=it(ye.prevLine.stream),Kt=ye.indentedCode,at=ye.prevLine.hr,lt=ye.list!==!1,Dt=(ye.listStack[ye.listStack.length-1]||0)+3;ye.indentedCode=!1;var yn=ye.indentation;if(ye.indentationDiff===null&&(ye.indentationDiff=ye.indentation,lt)){for(ye.list=null;yn<ye.listStack[ye.listStack.length-1];)ye.listStack.pop(),ye.listStack.length?ye.indentation=ye.listStack[ye.listStack.length-1]:ye.list=!1;ye.list!==!1&&(ye.indentationDiff=yn-ye.listStack[ye.listStack.length-1])}var $t=!Qt&&!at&&!ye.prevLine.header&&(!lt||!Kt)&&!ye.prevLine.fencedCodeEnd,hn=(ye.list===!1||at||Qt)&&ye.indentation<=Dt&&Ve.match(Me),tn=null;if(ye.indentationDiff>=4&&(Kt||ye.prevLine.fencedCodeEnd||ye.prevLine.header||Qt))return Ve.skipToEnd(),ye.indentedCode=!0,he.code;if(Ve.eatSpace())return null;if(bt&&ye.indentation<=Dt&&(tn=Ve.match(De))&&tn[1].length<=6)return ye.quote=0,ye.header=tn[1].length,ye.thisLine.header=!0,ke.highlightFormatting&&(ye.formatting="header"),ye.f=ye.inline,vt(ye);if(ye.indentation<=Dt&&Ve.eat(">"))return ye.quote=bt?1:ye.quote+1,ke.highlightFormatting&&(ye.formatting="quote"),Ve.eatSpace(),vt(ye);if(!hn&&!ye.setext&&bt&&ye.indentation<=Dt&&(tn=Ve.match(Pe))){var en=tn[1]?"ol":"ul";return ye.indentation=yn+Ve.current().length,ye.list=!0,ye.quote=0,ye.listStack.push(ye.indentation),ye.em=!1,ye.strong=!1,ye.code=!1,ye.strikethrough=!1,ke.taskLists&&Ve.match(ct,!1)&&(ye.taskList=!0),ye.f=ye.inline,ke.highlightFormatting&&(ye.formatting=["list","list-"+en]),vt(ye)}else{if(bt&&ye.indentation<=Dt&&(tn=Ve.match(We,!0)))return ye.quote=0,ye.fencedEndRE=new RegExp(tn[1]+"+ *$"),ye.localMode=ke.fencedCodeBlockHighlighting&&Ee(tn[2]||ke.fencedCodeBlockDefaultMode),ye.localMode&&(ye.localState=ue.startState(ye.localMode)),ye.f=ye.block=Ue,ke.highlightFormatting&&(ye.formatting="code-block"),ye.code=-1,vt(ye);if(ye.setext||(!$t||!lt)&&!ye.quote&&ye.list===!1&&!ye.code&&!hn&&!je.test(Ve.string)&&(tn=Ve.lookAhead(1))&&(tn=tn.match(Fe)))return ye.setext?(ye.header=ye.setext,ye.setext=0,Ve.skipToEnd(),ke.highlightFormatting&&(ye.formatting="header")):(ye.header=tn[0].charAt(0)=="="?1:2,ye.setext=ye.header),ye.thisLine.header=!0,ye.f=ye.inline,vt(ye);if(hn)return Ve.skipToEnd(),ye.hr=!0,ye.thisLine.hr=!0,he.hr;if(Ve.peek()==="[")return kt(Ve,ye,wt)}return kt(Ve,ye,ye.inline)}function Ke(Ve,ye){var bt=nt.token(Ve,ye.htmlState);if(!be){var Qt=ue.innerMode(nt,ye.htmlState);(Qt.mode.name=="xml"&&Qt.state.tagStart===null&&!Qt.state.context&&Qt.state.tokenize.isInText||ye.md_inside&&Ve.current().indexOf(">")>-1)&&(ye.f=st,ye.block=Se,ye.htmlState=null)}return bt}function Ue(Ve,ye){var bt=ye.listStack[ye.listStack.length-1]||0,Qt=ye.indentation<bt,Kt=bt+3;if(ye.fencedEndRE&&ye.indentation<=Kt&&(Qt||Ve.match(ye.fencedEndRE))){ke.highlightFormatting&&(ye.formatting="code-block");var at;return Qt||(at=vt(ye)),ye.localMode=ye.localState=null,ye.block=Se,ye.f=st,ye.fencedEndRE=null,ye.code=0,ye.thisLine.fencedCodeEnd=!0,Qt?ft(Ve,ye,ye.block):at}else return ye.localMode?ye.localMode.token(Ve,ye.localState):(Ve.skipToEnd(),he.code)}function vt(Ve){var ye=[];if(Ve.formatting){ye.push(he.formatting),typeof Ve.formatting=="string"&&(Ve.formatting=[Ve.formatting]);for(var bt=0;bt<Ve.formatting.length;bt++)ye.push(he.formatting+"-"+Ve.formatting[bt]),Ve.formatting[bt]==="header"&&ye.push(he.formatting+"-"+Ve.formatting[bt]+"-"+Ve.header),Ve.formatting[bt]==="quote"&&(!ke.maxBlockquoteDepth||ke.maxBlockquoteDepth>=Ve.quote?ye.push(he.formatting+"-"+Ve.formatting[bt]+"-"+Ve.quote):ye.push("error"))}if(Ve.taskOpen)return ye.push("meta"),ye.length?ye.join(" "):null;if(Ve.taskClosed)return ye.push("property"),ye.length?ye.join(" "):null;if(Ve.linkHref?ye.push(he.linkHref,"url"):(Ve.strong&&ye.push(he.strong),Ve.em&&ye.push(he.em),Ve.strikethrough&&ye.push(he.strikethrough),Ve.emoji&&ye.push(he.emoji),Ve.linkText&&ye.push(he.linkText),Ve.code&&ye.push(he.code),Ve.image&&ye.push(he.image),Ve.imageAltText&&ye.push(he.imageAltText,"link"),Ve.imageMarker&&ye.push(he.imageMarker)),Ve.header&&ye.push(he.header,he.header+"-"+Ve.header),Ve.quote&&(ye.push(he.quote),!ke.maxBlockquoteDepth||ke.maxBlockquoteDepth>=Ve.quote?ye.push(he.quote+"-"+Ve.quote):ye.push(he.quote+"-"+ke.maxBlockquoteDepth)),Ve.list!==!1){var Qt=(Ve.listStack.length-1)%3;Qt?Qt===1?ye.push(he.list2):ye.push(he.list3):ye.push(he.list1)}return Ve.trailingSpaceNewLine?ye.push("trailing-space-new-line"):Ve.trailingSpace&&ye.push("trailing-space-"+(Ve.trailingSpace%2?"a":"b")),ye.length?ye.join(" "):null}function Ye(Ve,ye){if(Ve.match(et,!0))return vt(ye)}function st(Ve,ye){var bt=ye.text(Ve,ye);if(typeof bt!="undefined")return bt;if(ye.list)return ye.list=null,vt(ye);if(ye.taskList){var Qt=Ve.match(ct,!0)[1]===" ";return Qt?ye.taskOpen=!0:ye.taskClosed=!0,ke.highlightFormatting&&(ye.formatting="task"),ye.taskList=!1,vt(ye)}if(ye.taskOpen=!1,ye.taskClosed=!1,ye.header&&Ve.match(/^#+$/,!0))return ke.highlightFormatting&&(ye.formatting="header"),vt(ye);var Kt=Ve.next();if(ye.linkTitle){ye.linkTitle=!1;var at=Kt;Kt==="("&&(at=")"),at=(at+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var lt="^\\s*(?:[^"+at+"\\\\]+|\\\\\\\\|\\\\.)"+at;if(Ve.match(new RegExp(lt),!0))return he.linkHref}if(Kt==="`"){var Dt=ye.formatting;ke.highlightFormatting&&(ye.formatting="code"),Ve.eatWhile("`");var yn=Ve.current().length;if(ye.code==0&&(!ye.quote||yn==1))return ye.code=yn,vt(ye);if(yn==ye.code){var $t=vt(ye);return ye.code=0,$t}else return ye.formatting=Dt,vt(ye)}else if(ye.code)return vt(ye);if(Kt==="\\"&&(Ve.next(),ke.highlightFormatting)){var hn=vt(ye),tn=he.formatting+"-escape";return hn?hn+" "+tn:tn}if(Kt==="!"&&Ve.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ye.imageMarker=!0,ye.image=!0,ke.highlightFormatting&&(ye.formatting="image"),vt(ye);if(Kt==="["&&ye.imageMarker&&Ve.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ye.imageMarker=!1,ye.imageAltText=!0,ke.highlightFormatting&&(ye.formatting="image"),vt(ye);if(Kt==="]"&&ye.imageAltText){ke.highlightFormatting&&(ye.formatting="image");var hn=vt(ye);return ye.imageAltText=!1,ye.image=!1,ye.inline=ye.f=Mt,hn}if(Kt==="["&&!ye.image)return ye.linkText&&Ve.match(/^.*?\]/)||(ye.linkText=!0,ke.highlightFormatting&&(ye.formatting="link")),vt(ye);if(Kt==="]"&&ye.linkText){ke.highlightFormatting&&(ye.formatting="link");var hn=vt(ye);return ye.linkText=!1,ye.inline=ye.f=Ve.match(/\(.*?\)| ?\[.*?\]/,!1)?Mt:st,hn}if(Kt==="<"&&Ve.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ye.f=ye.inline=Ie,ke.highlightFormatting&&(ye.formatting="link");var hn=vt(ye);return hn?hn+=" ":hn="",hn+he.linkInline}if(Kt==="<"&&Ve.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ye.f=ye.inline=Ie,ke.highlightFormatting&&(ye.formatting="link");var hn=vt(ye);return hn?hn+=" ":hn="",hn+he.linkEmail}if(ke.xml&&Kt==="<"&&Ve.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var en=Ve.string.indexOf(">",Ve.pos);if(en!=-1){var Gt=Ve.string.substring(Ve.start,en);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Gt)&&(ye.md_inside=!0)}return Ve.backUp(1),ye.htmlState=ue.startState(nt),ft(Ve,ye,Ke)}if(ke.xml&&Kt==="<"&&Ve.match(/^\/\w*?>/))return ye.md_inside=!1,"tag";if(Kt==="*"||Kt==="_"){for(var ve=1,ce=Ve.pos==1?" ":Ve.string.charAt(Ve.pos-2);ve<3&&Ve.eat(Kt);)ve++;var le=Ve.peek()||" ",de=!/\s/.test(le)&&(!pt.test(le)||/\s/.test(ce)||pt.test(ce)),pe=!/\s/.test(ce)&&(!pt.test(ce)||/\s/.test(le)||pt.test(le)),ae=null,Te=null;if(ve%2&&(!ye.em&&de&&(Kt==="*"||!pe||pt.test(ce))?ae=!0:ye.em==Kt&&pe&&(Kt==="*"||!de||pt.test(le))&&(ae=!1)),ve>1&&(!ye.strong&&de&&(Kt==="*"||!pe||pt.test(ce))?Te=!0:ye.strong==Kt&&pe&&(Kt==="*"||!de||pt.test(le))&&(Te=!1)),Te!=null||ae!=null){ke.highlightFormatting&&(ye.formatting=ae==null?"strong":Te==null?"em":"strong em"),ae===!0&&(ye.em=Kt),Te===!0&&(ye.strong=Kt);var $t=vt(ye);return ae===!1&&(ye.em=!1),Te===!1&&(ye.strong=!1),$t}}else if(Kt===" "&&(Ve.eat("*")||Ve.eat("_"))){if(Ve.peek()===" ")return vt(ye);Ve.backUp(1)}if(ke.strikethrough){if(Kt==="~"&&Ve.eatWhile(Kt)){if(ye.strikethrough){ke.highlightFormatting&&(ye.formatting="strikethrough");var $t=vt(ye);return ye.strikethrough=!1,$t}else if(Ve.match(/^[^\s]/,!1))return ye.strikethrough=!0,ke.highlightFormatting&&(ye.formatting="strikethrough"),vt(ye)}else if(Kt===" "&&Ve.match(/^~~/,!0)){if(Ve.peek()===" ")return vt(ye);Ve.backUp(2)}}if(ke.emoji&&Kt===":"&&Ve.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ye.emoji=!0,ke.highlightFormatting&&(ye.formatting="emoji");var gt=vt(ye);return ye.emoji=!1,gt}return Kt===" "&&(Ve.match(/^ +$/,!1)?ye.trailingSpace++:ye.trailingSpace&&(ye.trailingSpaceNewLine=!0)),vt(ye)}function Ie(Ve,ye){var bt=Ve.next();if(bt===">"){ye.f=ye.inline=st,ke.highlightFormatting&&(ye.formatting="link");var Qt=vt(ye);return Qt?Qt+=" ":Qt="",Qt+he.linkInline}return Ve.match(/^[^>]+/,!0),he.linkInline}function Mt(Ve,ye){if(Ve.eatSpace())return null;var bt=Ve.next();return bt==="("||bt==="["?(ye.f=ye.inline=Ot(bt==="("?")":"]"),ke.highlightFormatting&&(ye.formatting="link-string"),ye.linkHref=!0,vt(ye)):"error"}var Ge={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Ot(Ve){return function(ye,bt){var Qt=ye.next();if(Qt===Ve){bt.f=bt.inline=st,ke.highlightFormatting&&(bt.formatting="link-string");var Kt=vt(bt);return bt.linkHref=!1,Kt}return ye.match(Ge[Ve]),bt.linkHref=!0,vt(bt)}}function wt(Ve,ye){return Ve.match(/^([^\]\\]|\\.)*\]:/,!1)?(ye.f=At,Ve.next(),ke.highlightFormatting&&(ye.formatting="link"),ye.linkText=!0,vt(ye)):kt(Ve,ye,st)}function At(Ve,ye){if(Ve.match(/^\]:/,!0)){ye.f=ye.inline=Nt,ke.highlightFormatting&&(ye.formatting="link");var bt=vt(ye);return ye.linkText=!1,bt}return Ve.match(/^([^\]\\]|\\.)+/,!0),he.linkText}function Nt(Ve,ye){return Ve.eatSpace()?null:(Ve.match(/^[^\s]+/,!0),Ve.peek()===void 0?ye.linkTitle=!0:Ve.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),ye.f=ye.inline=st,he.linkHref+" url")}var Tt={startState:function(){return{f:Se,prevLine:{stream:null},thisLine:{stream:null},block:Se,htmlState:null,indentation:0,inline:st,text:Ye,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(Ve){return{f:Ve.f,prevLine:Ve.prevLine,thisLine:Ve.thisLine,block:Ve.block,htmlState:Ve.htmlState&&ue.copyState(nt,Ve.htmlState),indentation:Ve.indentation,localMode:Ve.localMode,localState:Ve.localMode?ue.copyState(Ve.localMode,Ve.localState):null,inline:Ve.inline,text:Ve.text,formatting:!1,linkText:Ve.linkText,linkTitle:Ve.linkTitle,linkHref:Ve.linkHref,code:Ve.code,em:Ve.em,strong:Ve.strong,strikethrough:Ve.strikethrough,emoji:Ve.emoji,header:Ve.header,setext:Ve.setext,hr:Ve.hr,taskList:Ve.taskList,list:Ve.list,listStack:Ve.listStack.slice(0),quote:Ve.quote,indentedCode:Ve.indentedCode,trailingSpace:Ve.trailingSpace,trailingSpaceNewLine:Ve.trailingSpaceNewLine,md_inside:Ve.md_inside,fencedEndRE:Ve.fencedEndRE}},token:function(Ve,ye){if(ye.formatting=!1,Ve!=ye.thisLine.stream){if(ye.header=0,ye.hr=!1,Ve.match(/^\s*$/,!0))return He(ye),null;if(ye.prevLine=ye.thisLine,ye.thisLine={stream:Ve},ye.taskList=!1,ye.trailingSpace=0,ye.trailingSpaceNewLine=!1,!ye.localState&&(ye.f=ye.block,ye.f!=Ke)){var bt=Ve.match(/^\s*/,!0)[0].replace(/\t/g,rt).length;if(ye.indentation=bt,ye.indentationDiff=null,bt>0)return null}}return ye.f(Ve,ye)},innerMode:function(Ve){return Ve.block==Ke?{state:Ve.htmlState,mode:nt}:Ve.localState?{state:Ve.localState,mode:Ve.localMode}:{state:Ve,mode:Tt}},indent:function(Ve,ye,bt){return Ve.block==Ke&&nt.indent?nt.indent(Ve.htmlState,ye,bt):Ve.localState&&Ve.localMode.indent?Ve.localMode.indent(Ve.localState,ye,bt):ue.Pass},blankLine:He,getType:vt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Tt},"xml"),ue.defineMIME("text/markdown","markdown"),ue.defineMIME("text/x-markdown","markdown")})},98101:function(fn,Wt,oe){(function(ue){ue(oe(89780))})(function(ue){"use strict";ue.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 Ae=0;Ae<ue.modeInfo.length;Ae++){var ke=ue.modeInfo[Ae];ke.mimes&&(ke.mime=ke.mimes[0])}ue.findModeByMIME=function(nt){nt=nt.toLowerCase();for(var be=0;be<ue.modeInfo.length;be++){var Ee=ue.modeInfo[be];if(Ee.mime==nt)return Ee;if(Ee.mimes){for(var he=0;he<Ee.mimes.length;he++)if(Ee.mimes[he]==nt)return Ee}}if(/\+xml$/.test(nt))return ue.findModeByMIME("application/xml");if(/\+json$/.test(nt))return ue.findModeByMIME("application/json")},ue.findModeByExtension=function(nt){nt=nt.toLowerCase();for(var be=0;be<ue.modeInfo.length;be++){var Ee=ue.modeInfo[be];if(Ee.ext){for(var he=0;he<Ee.ext.length;he++)if(Ee.ext[he]==nt)return Ee}}},ue.findModeByFileName=function(nt){for(var be=0;be<ue.modeInfo.length;be++){var Ee=ue.modeInfo[be];if(Ee.file&&Ee.file.test(nt))return Ee}var he=nt.lastIndexOf("."),xe=he>-1&&nt.substring(he+1,nt.length);if(xe)return ue.findModeByExtension(xe)},ue.findModeByName=function(nt){nt=nt.toLowerCase();for(var be=0;be<ue.modeInfo.length;be++){var Ee=ue.modeInfo[be];if(Ee.name.toLowerCase()==nt)return Ee;if(Ee.alias){for(var he=0;he<Ee.alias.length;he++)if(Ee.alias[he].toLowerCase()==nt)return Ee}}}})},67549:function(fn,Wt,oe){(function(ue){ue(oe(89780))})(function(ue){"use strict";ue.defineMode("stex",function(Ae,ke){"use strict";function nt(et,We){et.cmdState.push(We)}function be(et){return et.cmdState.length>0?et.cmdState[et.cmdState.length-1]:null}function Ee(et){var We=et.cmdState.pop();We&&We.closeBracket()}function he(et){for(var We=et.cmdState,je=We.length-1;je>=0;je--){var pt=We[je];if(pt.name!="DEFAULT")return pt}return{styleIdentifier:function(){return null}}}function xe(et,We,je){return function(){this.name=et,this.bracketNo=0,this.style=We,this.styles=je,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Me={};Me.importmodule=xe("importmodule","tag",["string","builtin"]),Me.documentclass=xe("documentclass","tag",["","atom"]),Me.usepackage=xe("usepackage","tag",["atom"]),Me.begin=xe("begin","tag",["atom"]),Me.end=xe("end","tag",["atom"]),Me.label=xe("label","tag",["atom"]),Me.ref=xe("ref","tag",["atom"]),Me.eqref=xe("eqref","tag",["atom"]),Me.cite=xe("cite","tag",["atom"]),Me.bibitem=xe("bibitem","tag",["atom"]),Me.Bibitem=xe("Bibitem","tag",["atom"]),Me.RBibitem=xe("RBibitem","tag",["atom"]),Me.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Pe(et,We){et.f=We}function ct(et,We){var je;if(et.match(/^\\[a-zA-Z@]+/)){var pt=et.current().slice(1);return je=Me.hasOwnProperty(pt)?Me[pt]:Me.DEFAULT,je=new je,nt(We,je),Pe(We,Fe),je.style}if(et.match(/^\\[$&%#{}_]/)||et.match(/^\\[,;!\/\\]/))return"tag";if(et.match("\\["))return Pe(We,function(kt,ft){return De(kt,ft,"\\]")}),"keyword";if(et.match("\\("))return Pe(We,function(kt,ft){return De(kt,ft,"\\)")}),"keyword";if(et.match("$$"))return Pe(We,function(kt,ft){return De(kt,ft,"$$")}),"keyword";if(et.match("$"))return Pe(We,function(kt,ft){return De(kt,ft,"$")}),"keyword";var rt=et.next();if(rt=="%")return et.skipToEnd(),"comment";if(rt=="}"||rt=="]"){if(je=be(We),je)je.closeBracket(rt),Pe(We,Fe);else return"error";return"bracket"}else return rt=="{"||rt=="["?(je=Me.DEFAULT,je=new je,nt(We,je),"bracket"):/\d/.test(rt)?(et.eatWhile(/[\w.%]/),"atom"):(et.eatWhile(/[\w\-_]/),je=he(We),je.name=="begin"&&(je.argument=et.current()),je.styleIdentifier())}function De(et,We,je){if(et.eatSpace())return null;if(je&&et.match(je))return Pe(We,ct),"keyword";if(et.match(/^\\[a-zA-Z@]+/))return"tag";if(et.match(/^[a-zA-Z]+/))return"variable-2";if(et.match(/^\\[$&%#{}_]/)||et.match(/^\\[,;!\/]/)||et.match(/^[\^_&]/))return"tag";if(et.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(et.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var pt=et.next();return pt=="{"||pt=="}"||pt=="["||pt=="]"||pt=="("||pt==")"?"bracket":pt=="%"?(et.skipToEnd(),"comment"):"error"}function Fe(et,We){var je=et.peek(),pt;return je=="{"||je=="["?(pt=be(We),pt.openBracket(je),et.eat(je),Pe(We,ct),"bracket"):/[ \t\r]/.test(je)?(et.eat(je),null):(Pe(We,ct),Ee(We),ct(et,We))}return{startState:function(){var et=ke.inMathMode?function(We,je){return De(We,je)}:ct;return{cmdState:[],f:et}},copyState:function(et){return{cmdState:et.cmdState.slice(),f:et.f}},token:function(et,We){return We.f(et,We)},blankLine:function(et){et.f=ct,et.cmdState.length=0},lineComment:"%"}}),ue.defineMIME("text/x-stex","stex"),ue.defineMIME("text/x-latex","stex")})},15525:function(fn,Wt,oe){(function(ue){ue(oe(89780))})(function(ue){"use strict";var Ae={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},ke={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ue.defineMode("xml",function(nt,be){var Ee=nt.indentUnit,he={},xe=be.htmlMode?Ae:ke;for(var Me in xe)he[Me]=xe[Me];for(var Me in be)he[Me]=be[Me];var Pe,ct;function De(Ie,Mt){function Ge(At){return Mt.tokenize=At,At(Ie,Mt)}var Ot=Ie.next();if(Ot=="<")return Ie.eat("!")?Ie.eat("[")?Ie.match("CDATA[")?Ge(We("atom","]]>")):null:Ie.match("--")?Ge(We("comment","-->")):Ie.match("DOCTYPE",!0,!0)?(Ie.eatWhile(/[\w\._\-]/),Ge(je(1))):null:Ie.eat("?")?(Ie.eatWhile(/[\w\._\-]/),Mt.tokenize=We("meta","?>"),"meta"):(Pe=Ie.eat("/")?"closeTag":"openTag",Mt.tokenize=Fe,"tag bracket");if(Ot=="&"){var wt;return Ie.eat("#")?Ie.eat("x")?wt=Ie.eatWhile(/[a-fA-F\d]/)&&Ie.eat(";"):wt=Ie.eatWhile(/[\d]/)&&Ie.eat(";"):wt=Ie.eatWhile(/[\w\.\-:]/)&&Ie.eat(";"),wt?"atom":"error"}else return Ie.eatWhile(/[^&<]/),null}De.isInText=!0;function Fe(Ie,Mt){var Ge=Ie.next();if(Ge==">"||Ge=="/"&&Ie.eat(">"))return Mt.tokenize=De,Pe=Ge==">"?"endTag":"selfcloseTag","tag bracket";if(Ge=="=")return Pe="equals",null;if(Ge=="<"){Mt.tokenize=De,Mt.state=ft,Mt.tagName=Mt.tagStart=null;var Ot=Mt.tokenize(Ie,Mt);return Ot?Ot+" tag error":"tag error"}else return/[\'\"]/.test(Ge)?(Mt.tokenize=et(Ge),Mt.stringStartCol=Ie.column(),Mt.tokenize(Ie,Mt)):(Ie.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function et(Ie){var Mt=function(Ge,Ot){for(;!Ge.eol();)if(Ge.next()==Ie){Ot.tokenize=Fe;break}return"string"};return Mt.isInAttribute=!0,Mt}function We(Ie,Mt){return function(Ge,Ot){for(;!Ge.eol();){if(Ge.match(Mt)){Ot.tokenize=De;break}Ge.next()}return Ie}}function je(Ie){return function(Mt,Ge){for(var Ot;(Ot=Mt.next())!=null;){if(Ot=="<")return Ge.tokenize=je(Ie+1),Ge.tokenize(Mt,Ge);if(Ot==">")if(Ie==1){Ge.tokenize=De;break}else return Ge.tokenize=je(Ie-1),Ge.tokenize(Mt,Ge)}return"meta"}}function pt(Ie,Mt,Ge){this.prev=Ie.context,this.tagName=Mt,this.indent=Ie.indented,this.startOfLine=Ge,(he.doNotIndent.hasOwnProperty(Mt)||Ie.context&&Ie.context.noIndent)&&(this.noIndent=!0)}function rt(Ie){Ie.context&&(Ie.context=Ie.context.prev)}function kt(Ie,Mt){for(var Ge;;){if(!Ie.context||(Ge=Ie.context.tagName,!he.contextGrabbers.hasOwnProperty(Ge)||!he.contextGrabbers[Ge].hasOwnProperty(Mt)))return;rt(Ie)}}function ft(Ie,Mt,Ge){return Ie=="openTag"?(Ge.tagStart=Mt.column(),it):Ie=="closeTag"?He:ft}function it(Ie,Mt,Ge){return Ie=="word"?(Ge.tagName=Mt.current(),ct="tag",Ue):he.allowMissingTagName&&Ie=="endTag"?(ct="tag bracket",Ue(Ie,Mt,Ge)):(ct="error",it)}function He(Ie,Mt,Ge){if(Ie=="word"){var Ot=Mt.current();return Ge.context&&Ge.context.tagName!=Ot&&he.implicitlyClosed.hasOwnProperty(Ge.context.tagName)&&rt(Ge),Ge.context&&Ge.context.tagName==Ot||he.matchClosing===!1?(ct="tag",Se):(ct="tag error",Ke)}else return he.allowMissingTagName&&Ie=="endTag"?(ct="tag bracket",Se(Ie,Mt,Ge)):(ct="error",Ke)}function Se(Ie,Mt,Ge){return Ie!="endTag"?(ct="error",Se):(rt(Ge),ft)}function Ke(Ie,Mt,Ge){return ct="error",Se(Ie,Mt,Ge)}function Ue(Ie,Mt,Ge){if(Ie=="word")return ct="attribute",vt;if(Ie=="endTag"||Ie=="selfcloseTag"){var Ot=Ge.tagName,wt=Ge.tagStart;return Ge.tagName=Ge.tagStart=null,Ie=="selfcloseTag"||he.autoSelfClosers.hasOwnProperty(Ot)?kt(Ge,Ot):(kt(Ge,Ot),Ge.context=new pt(Ge,Ot,wt==Ge.indented)),ft}return ct="error",Ue}function vt(Ie,Mt,Ge){return Ie=="equals"?Ye:(he.allowMissing||(ct="error"),Ue(Ie,Mt,Ge))}function Ye(Ie,Mt,Ge){return Ie=="string"?st:Ie=="word"&&he.allowUnquoted?(ct="string",Ue):(ct="error",Ue(Ie,Mt,Ge))}function st(Ie,Mt,Ge){return Ie=="string"?st:Ue(Ie,Mt,Ge)}return{startState:function(Ie){var Mt={tokenize:De,state:ft,indented:Ie||0,tagName:null,tagStart:null,context:null};return Ie!=null&&(Mt.baseIndent=Ie),Mt},token:function(Ie,Mt){if(!Mt.tagName&&Ie.sol()&&(Mt.indented=Ie.indentation()),Ie.eatSpace())return null;Pe=null;var Ge=Mt.tokenize(Ie,Mt);return(Ge||Pe)&&Ge!="comment"&&(ct=null,Mt.state=Mt.state(Pe||Ge,Ie,Mt),ct&&(Ge=ct=="error"?Ge+" error":ct)),Ge},indent:function(Ie,Mt,Ge){var Ot=Ie.context;if(Ie.tokenize.isInAttribute)return Ie.tagStart==Ie.indented?Ie.stringStartCol+1:Ie.indented+Ee;if(Ot&&Ot.noIndent)return ue.Pass;if(Ie.tokenize!=Fe&&Ie.tokenize!=De)return Ge?Ge.match(/^(\s*)/)[0].length:0;if(Ie.tagName)return he.multilineTagIndentPastTag!==!1?Ie.tagStart+Ie.tagName.length+2:Ie.tagStart+Ee*(he.multilineTagIndentFactor||1);if(he.alignCDATA&&/<!\[CDATA\[/.test(Mt))return 0;var wt=Mt&&/^<(\/)?([\w_:\.-]*)/.exec(Mt);if(wt&&wt[1])for(;Ot;)if(Ot.tagName==wt[2]){Ot=Ot.prev;break}else if(he.implicitlyClosed.hasOwnProperty(Ot.tagName))Ot=Ot.prev;else break;else if(wt)for(;Ot;){var At=he.contextGrabbers[Ot.tagName];if(At&&At.hasOwnProperty(wt[2]))Ot=Ot.prev;else break}for(;Ot&&Ot.prev&&!Ot.startOfLine;)Ot=Ot.prev;return Ot?Ot.indent+Ee:Ie.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:he.htmlMode?"html":"xml",helperType:he.htmlMode?"html":"xml",skipAttribute:function(Ie){Ie.state==Ye&&(Ie.state=Ue)},xmlCurrentTag:function(Ie){return Ie.tagName?{name:Ie.tagName,close:Ie.type=="closeTag"}:null},xmlCurrentContext:function(Ie){for(var Mt=[],Ge=Ie.context;Ge;Ge=Ge.prev)Ge.tagName&&Mt.push(Ge.tagName);return Mt.reverse()}}}),ue.defineMIME("text/xml","xml"),ue.defineMIME("application/xml","xml"),ue.mimeModes.hasOwnProperty("text/html")||ue.defineMIME("text/html",{name:"xml",htmlMode:!0})})},2859:function(fn,Wt,oe){"use strict";oe.d(Wt,{hP:function(){return Gt}});var ue=function(ve,ce){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(le,de){le.__proto__=de}||function(le,de){for(var pe in de)Object.prototype.hasOwnProperty.call(de,pe)&&(le[pe]=de[pe])})(ve,ce)};function Ae(ve,ce){function le(){this.constructor=ve}ue(ve,ce),ve.prototype=ce===null?Object.create(ce):(le.prototype=ce.prototype,new le)}function ke(ve,ce,le,de){return new(le||(le=Promise))(function(pe,ae){function Te(Be){try{Re(de.next(Be))}catch(yt){ae(yt)}}function gt(Be){try{Re(de.throw(Be))}catch(yt){ae(yt)}}function Re(Be){var yt;Be.done?pe(Be.value):(yt=Be.value,yt instanceof le?yt:new le(function(ut){ut(yt)})).then(Te,gt)}Re((de=de.apply(ve,ce||[])).next())})}function nt(ve,ce){var le,de,pe,ae,Te={label:0,sent:function(){if(1&pe[0])throw pe[1];return pe[1]},trys:[],ops:[]};return ae={next:gt(0),throw:gt(1),return:gt(2)},typeof Symbol=="function"&&(ae[Symbol.iterator]=function(){return this}),ae;function gt(Re){return function(Be){return function(yt){if(le)throw new TypeError("Generator is already executing.");for(;Te;)try{if(le=1,de&&(pe=2&yt[0]?de.return:yt[0]?de.throw||((pe=de.return)&&pe.call(de),0):de.next)&&!(pe=pe.call(de,yt[1])).done)return pe;switch(de=0,pe&&(yt=[2&yt[0],pe.value]),yt[0]){case 0:case 1:pe=yt;break;case 4:return Te.label++,{value:yt[1],done:!1};case 5:Te.label++,de=yt[1],yt=[0];continue;case 7:yt=Te.ops.pop(),Te.trys.pop();continue;default:if(pe=Te.trys,!((pe=pe.length>0&&pe[pe.length-1])||yt[0]!==6&&yt[0]!==2)){Te=0;continue}if(yt[0]===3&&(!pe||yt[1]>pe[0]&&yt[1]<pe[3])){Te.label=yt[1];break}if(yt[0]===6&&Te.label<pe[1]){Te.label=pe[1],pe=yt;break}if(pe&&Te.label<pe[2]){Te.label=pe[2],Te.ops.push(yt);break}pe[2]&&Te.ops.pop(),Te.trys.pop();continue}yt=ce.call(ve,Te)}catch(ut){yt=[6,ut],de=0}finally{le=pe=0}if(5&yt[0])throw yt[1];return{value:yt[0]?yt[1]:void 0,done:!0}}([Re,Be])}}}function be(){for(var ve=0,ce=0,le=arguments.length;ce<le;ce++)ve+=arguments[ce].length;var de=Array(ve),pe=0;for(ce=0;ce<le;ce++)for(var ae=arguments[ce],Te=0,gt=ae.length;Te<gt;Te++,pe++)de[pe]=ae[Te];return de}var Ee=function(){function ve(){}return ve.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ve.setAttributes=function(ce,le){for(var de=0,pe=le;de<pe.length;de++){var ae=pe[de],Te=ae[0],gt=ae[1];ce.setAttribute(Te,gt)}},ve.createRect=function(ce,le,de){var pe=document.createElementNS("http://www.w3.org/2000/svg","rect");return pe.setAttribute("width",ce.toString()),pe.setAttribute("height",le.toString()),de&&ve.setAttributes(pe,de),pe},ve.createLine=function(ce,le,de,pe,ae){var Te=document.createElementNS("http://www.w3.org/2000/svg","line");return Te.setAttribute("x1",ce.toString()),Te.setAttribute("y1",le.toString()),Te.setAttribute("x2",de.toString()),Te.setAttribute("y2",pe.toString()),ae&&ve.setAttributes(Te,ae),Te},ve.createPolygon=function(ce,le){var de=document.createElementNS("http://www.w3.org/2000/svg","polygon");return de.setAttribute("points",ce),le&&ve.setAttributes(de,le),de},ve.createCircle=function(ce,le){var de=document.createElementNS("http://www.w3.org/2000/svg","circle");return de.setAttribute("cx",(ce/2).toString()),de.setAttribute("cy",(ce/2).toString()),de.setAttribute("r",ce.toString()),le&&ve.setAttributes(de,le),de},ve.createEllipse=function(ce,le,de){var pe=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return pe.setAttribute("cx",(ce/2).toString()),pe.setAttribute("cy",(le/2).toString()),pe.setAttribute("rx",(ce/2).toString()),pe.setAttribute("ry",(le/2).toString()),de&&ve.setAttributes(pe,de),pe},ve.createGroup=function(ce){var le=document.createElementNS("http://www.w3.org/2000/svg","g");return ce&&ve.setAttributes(le,ce),le},ve.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ve.createMarker=function(ce,le,de,pe,ae,Te,gt){var Re=document.createElementNS("http://www.w3.org/2000/svg","marker");return ve.setAttributes(Re,[["id",ce],["orient",le],["markerWidth",de.toString()],["markerHeight",pe.toString()],["refX",ae.toString()],["refY",Te.toString()]]),Re.appendChild(gt),Re},ve.createText=function(ce){var le=document.createElementNS("http://www.w3.org/2000/svg","text");return le.setAttribute("x","0"),le.setAttribute("y","0"),ce&&ve.setAttributes(le,ce),le},ve.createTSpan=function(ce,le){var de=document.createElementNS("http://www.w3.org/2000/svg","tspan");return de.textContent=ce,le&&ve.setAttributes(de,le),de},ve.createImage=function(ce){var le=document.createElementNS("http://www.w3.org/2000/svg","image");return ce&&ve.setAttributes(le,ce),le},ve.createPoint=function(ce,le){var de=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return de.x=ce,de.y=le,de},ve.createPath=function(ce,le){var de=document.createElementNS("http://www.w3.org/2000/svg","path");return de.setAttribute("d",ce),le&&ve.setAttributes(de,le),de},ve}(),he=function(){function ve(){}return ve.addKey=function(ce){ve.key=ce},Object.defineProperty(ve,"isLicensed",{get:function(){return!!ve.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(ve.key)},enumerable:!1,configurable:!0}),ve}(),xe=function(){function ve(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ve.prototype.rasterize=function(ce,le,de){var pe=this;return new Promise(function(ae){var Te=de!==void 0?de:document.createElement("canvas");ce===null&&(pe.markersOnly=!0,pe.naturalSize=!1);var gt=document.createElementNS("http://www.w3.org/2000/svg","svg");gt.setAttribute("xmlns","http://www.w3.org/2000/svg"),gt.setAttribute("width",le.width.baseVal.valueAsString),gt.setAttribute("height",le.height.baseVal.valueAsString),gt.setAttribute("viewBox","0 0 "+le.viewBox.baseVal.width.toString()+" "+le.viewBox.baseVal.height.toString()),gt.innerHTML=le.innerHTML,pe.naturalSize===!0?(gt.width.baseVal.value=ce.naturalWidth,gt.height.baseVal.value=ce.naturalHeight):pe.width!==void 0&&pe.height!==void 0&&(gt.width.baseVal.value=pe.width,gt.height.baseVal.value=pe.height),Te.width=gt.width.baseVal.value,Te.height=gt.height.baseVal.value;var Re=gt.outerHTML,Be=Te.getContext("2d");pe.markersOnly!==!0&&Be.drawImage(ce,0,0,Te.width,Te.height);var yt=window.URL,ut=new Image(Te.width,Te.height);ut.setAttribute("crossOrigin","anonymous");var Qe=new Blob([Re],{type:"image/svg+xml"}),St=yt.createObjectURL(Qe);ut.onload=function(){Be.drawImage(ut,0,0),yt.revokeObjectURL(St);var Jt=Te.toDataURL(pe.imageType,pe.imageQuality);ae(Jt)},ut.src=St})},ve}(),Me=function(){},Pe=function(){function ve(ce){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+ce+"_"}return Object.defineProperty(ve.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(ve.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(ve.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),ve.prototype.addClass=function(ce){return this.styleSheet===void 0&&this.addStyleSheet(),ce.name=""+this.classNamePrefix+ce.localName,this.classes.push(ce),this.styleSheet.sheet.insertRule("."+ce.name+" {"+ce.style+"}",this.styleSheet.sheet.cssRules.length),ce},ve.prototype.addRule=function(ce){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(ce),this.styleSheet.sheet.insertRule(ce.selector+" {"+ce.style+"}",this.styleSheet.sheet.cssRules.length)},ve.prototype.addStyleSheet=function(){var ce;this.styleSheet=document.createElement("style"),((ce=this.styleSheetRoot)!==null&&ce!==void 0?ce:document.head).appendChild(this.styleSheet),this.addRule(new ct("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new ct("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new ct("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new De("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new De("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},ve.prototype.removeStyleSheet=function(){var ce;this.styleSheet&&(((ce=this.styleSheetRoot)!==null&&ce!==void 0?ce:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ve}(),ct=function(ve,ce){this.selector=ve,this.style=ce},De=function(ve,ce){this.localName=ve,this.style=ce},Fe=function(){function ve(ce,le,de,pe,ae){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=ce,this.displayMode=le,this.markerItems=de,this.uiStyleSettings=pe,this.styles=ae,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return ve.prototype.show=function(ce){var le=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ce,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var de=document.createElement("div");de.className=this.toolbarBlockStyleClass.name,de.style.whiteSpace="nowrap",this.uiContainer.appendChild(de),this.addActionButton(de,'<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(de,'<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(de,'<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(de,'<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(de,'<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(de,'<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(de,'<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(de,'<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(ae){var Te=document.createElement("div");Te.className=""+le.toolbarButtonStyleClass.name,Te.setAttribute("data-type-name",ae.typeName),Te.innerHTML=ae.icon,Te.addEventListener("click",function(){le.markerToolbarButtonClicked(Te,ae)}),le.buttons.push(Te),le.markerButtons.push(Te)}),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 pe=document.createElement("div");pe.className=this.toolbarBlockStyleClass.name,pe.style.whiteSpace="nowrap",pe.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(pe),this.addActionButton(pe,'<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(pe,'<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()},ve.prototype.addButtonClickListener=function(ce){this.buttonClickListeners.push(ce)},ve.prototype.removeButtonClickListener=function(ce){this.buttonClickListeners.indexOf(ce)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(ce),1)},ve.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ve.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var ce=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var le=0;le<this.markerButtons.length;le++)le<ce||le===ce&&this.markerButtons.length-1===ce?this.markerButtonBlock.appendChild(this.markerButtons[le]):(le===ce&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[le]))}},ve.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")},ve.prototype.resetButtonStyles=function(){var ce=this;this.buttons.forEach(function(le){le.className=le.className.replace(ce.uiStyleSettings.toolbarButtonStyleColorsClassName?ce.uiStyleSettings.toolbarButtonStyleColorsClassName:ce.toolbarButtonStyleColorsClass.name,"").trim(),le.className=le.className.replace(ce.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?ce.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:ce.toolbarActiveButtonStyleColorsClass.name,"").trim(),le.className+=" "+(ce.uiStyleSettings.toolbarButtonStyleColorsClassName?ce.uiStyleSettings.toolbarButtonStyleColorsClassName:ce.toolbarButtonStyleColorsClass.name)})},ve.prototype.addActionButton=function(ce,le,de){var pe=this,ae=document.createElement("div");switch(ae.className=""+this.toolbarButtonStyleClass.name,ae.innerHTML=le,ae.setAttribute("data-action",de),ae.addEventListener("click",function(){pe.actionToolbarButtonClicked(ae,de)}),de){case"select":ae.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":ae.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":ae.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":ae.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":ae.style.fill=this.uiStyleSettings.closeButtonColor}ce.appendChild(ae),this.buttons.push(ae)},ve.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new De("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 De("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new De("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new De("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 De("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var ce=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new De("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*ce)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*ce)+`px;
|
|
|
padding: `+ce+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new De("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new De("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new ct("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new ct("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},ve.prototype.markerToolbarButtonClicked=function(ce,le){this.setActiveButton(ce),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(de){return de("marker",le)}),this.markerButtonOverflowBlock.style.display="none"},ve.prototype.actionToolbarButtonClicked=function(ce,le){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(de){return de("action",le)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ve.prototype.setActiveButton=function(ce){this.resetButtonStyles(),ce.className=ce.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),ce.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ve.prototype.setActiveMarkerButton=function(ce){var le=this.markerButtons.find(function(de){return de.getAttribute("data-type-name")===ce});le&&this.setActiveButton(le)},ve.prototype.setCurrentMarker=function(ce){var le=this;this.currentMarker=ce,this.buttons.filter(function(de){return/delete|notes/.test(de.getAttribute("data-action"))}).forEach(function(de){le.currentMarker===void 0?(de.style.fillOpacity="0.4",de.style.pointerEvents="none"):(de.style.fillOpacity="1",de.style.pointerEvents="all")})},ve}(),et=function(){function ve(ce,le,de,pe){this.panels=[],this.panelButtons=[],this.markerjsContainer=ce,this.displayMode=le,this.uiStyleSettings=de,this.styles=pe,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ve.prototype.addStyles=function(){var ce;this.toolboxStyleClass=this.styles.addClass(new De("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 De("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var le=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new De("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new De("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new De("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 De("toolbox-panel-row_colors",`
|
|
|
background-color: `+((ce=this.uiStyleSettings.toolboxBackgroundColor)!==null&&ce!==void 0?ce:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new De("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*le)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*le)+`px;
|
|
|
padding: `+le+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new De("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new De("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new ct("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new ct("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},ve.prototype.show=function(ce){var le;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ce,this.uiContainer.className=this.toolboxStyleClass.name+" "+((le=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&le!==void 0?le:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ve.prototype.setPanelButtons=function(ce){var le,de,pe=this;this.panels=ce,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((le=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&le!==void 0?le:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((de=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&de!==void 0?de:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(ae){var Te;ae.uiStyleSettings=pe.uiStyleSettings;var gt=document.createElement("div");gt.className=pe.toolboxButtonStyleClass.name+" "+((Te=pe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Te!==void 0?Te:pe.toolboxButtonStyleColorsClass.name),gt.innerHTML=ae.icon,gt.title=ae.title,gt.addEventListener("click",function(){pe.panelButtonClick(ae)}),pe.panelButtons.push(gt),pe.buttonRow.appendChild(gt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ve.prototype.panelButtonClick=function(ce){var le=this,de=-1;if(ce!==this.activePanel){de=this.panels.indexOf(ce),this.panelRow.innerHTML="";var pe=ce.getUi();pe.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(pe),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=ce}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){le.displayMode==="inline"?le.panelRow.style.display="none":le.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(ae,Te){var gt,Re;ae.className=le.toolboxButtonStyleClass.name+" "+(Te===de?""+((gt=le.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&>!==void 0?gt:le.toolboxActiveButtonStyleColorsClass.name):""+((Re=le.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Re!==void 0?Re:le.toolboxButtonStyleColorsClass.name))})},ve}(),We=function(ve,ce){this.title=ve,this.icon=ce},je=function(ve){function ce(le,de,pe,ae){var Te=ve.call(this,le,ae||'<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 Te.colors=[],Te.addTransparent=!1,Te.colorBoxes=[],Te.colors=de,Te.currentColor=pe,Te.setCurrentColor=Te.setCurrentColor.bind(Te),Te.getColorBox=Te.getColorBox.bind(Te),Te}return Ae(ce,ve),ce.prototype.getUi=function(){var le=this,de=document.createElement("div");return de.style.overflow="hidden",de.style.whiteSpace="nowrap",this.colors.forEach(function(pe){var ae=le.getColorBox(pe);de.appendChild(ae),le.colorBoxes.push(ae)}),de},ce.prototype.getColorBox=function(le){var de=this,pe=this.uiStyleSettings.toolbarHeight/4,ae=this.uiStyleSettings.toolbarHeight-pe,Te=document.createElement("div");Te.style.display="inline-block",Te.style.boxSizing="content-box",Te.style.width=ae-2+"px",Te.style.height=ae-2+"px",Te.style.padding="1px",Te.style.marginRight="2px",Te.style.marginBottom="2px",Te.style.borderWidth="2px",Te.style.borderStyle="solid",Te.style.borderRadius=(ae+2)/2+"px",Te.style.borderColor=le===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Te.addEventListener("click",function(){de.setCurrentColor(le,Te)});var gt=document.createElement("div");return gt.style.display="inline-block",gt.style.width=ae-2+"px",gt.style.height=ae-2+"px",gt.style.backgroundColor=le,gt.style.borderRadius=ae/2+"px",le==="transparent"&&(gt.style.fill=this.uiStyleSettings.toolboxAccentColor,gt.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>`),Te.appendChild(gt),Te},ce.prototype.setCurrentColor=function(le,de){var pe=this;this.currentColor=le,this.colorBoxes.forEach(function(ae){ae.style.borderColor=ae===de?pe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(le)},ce}(We),pt=function(){function ve(ce,le,de){this._state="new",this._isSelected=!1,this._container=ce,this._overlayContainer=le,this.globalSettings=de,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ve.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ve.prototype.ownsTarget=function(ce){return!1},Object.defineProperty(ve.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ve.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ve.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ve.prototype.pointerDown=function(ce,le){},ve.prototype.dblClick=function(ce,le){},ve.prototype.manipulate=function(ce){},ve.prototype.pointerUp=function(ce){this.stateChanged()},ve.prototype.dispose=function(){},ve.prototype.addMarkerVisualToContainer=function(ce){this.container.childNodes.length>0?this.container.insertBefore(ce,this.container.childNodes[0]):this.container.appendChild(ce)},ve.prototype.getState=function(){return{typeName:ve.typeName,state:this.state,notes:this.notes}},ve.prototype.restoreState=function(ce){this._state=ce.state,this.notes=ce.notes},ve.prototype.scale=function(ce,le){},ve.prototype.colorChanged=function(ce){this.onColorChanged&&this.onColorChanged(ce),this.stateChanged()},ve.prototype.fillColorChanged=function(ce){this.onFillColorChanged&&this.onFillColorChanged(ce),this.stateChanged()},ve.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var ce=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),ce.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(ce)&&this.onStateChanged(this)}},ve.typeName="MarkerBase",ve}(),rt=function(){function ve(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ve.prototype.findGripByVisual=function(ce){return this.topLeft.ownsTarget(ce)?this.topLeft:this.topCenter.ownsTarget(ce)?this.topCenter:this.topRight.ownsTarget(ce)?this.topRight:this.centerLeft.ownsTarget(ce)?this.centerLeft:this.centerRight.ownsTarget(ce)?this.centerRight:this.bottomLeft.ownsTarget(ce)?this.bottomLeft:this.bottomCenter.ownsTarget(ce)?this.bottomCenter:this.bottomRight.ownsTarget(ce)?this.bottomRight:void 0},ve}(),kt=function(){function ve(){this.GRIP_SIZE=10,this.visual=Ee.createGroup(),this.visual.appendChild(Ee.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Ee.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ve.prototype.ownsTarget=function(ce){return ce===this.visual||ce===this.visual.childNodes[0]||ce===this.visual.childNodes[1]},ve}(),ft=function(){function ve(){}return ve.toITransformMatrix=function(ce){return{a:ce.a,b:ce.b,c:ce.c,d:ce.d,e:ce.e,f:ce.f}},ve.toSVGMatrix=function(ce,le){return ce.a=le.a,ce.b=le.b,ce.c=le.c,ce.d=le.d,ce.e=le.e,ce.f=le.f,ce},ve}(),it=function(ve){function ce(le,de,pe){var ae=ve.call(this,le,de,pe)||this;return ae.left=0,ae.top=0,ae.width=0,ae.height=0,ae.defaultSize={x:50,y:20},ae.offsetX=0,ae.offsetY=0,ae.rotationAngle=0,ae.CB_DISTANCE=10,ae._suppressMarkerCreateEvent=!1,ae.container.transform.baseVal.appendItem(Ee.createTransform()),ae.setupControlBox(),ae}return Ae(ce,ve),Object.defineProperty(ce.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"visual",{get:function(){return this._visual},set:function(le){this._visual=le;var de=Ee.createTransform();this._visual.transform.baseVal.appendItem(de)},enumerable:!1,configurable:!0}),ce.prototype.ownsTarget=function(le){return!!ve.prototype.ownsTarget.call(this,le)||!!(this.controlGrips.findGripByVisual(le)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(le))},ce.prototype.pointerDown=function(le,de){ve.prototype.pointerDown.call(this,le,de),this.state==="new"&&(this.left=le.x,this.top=le.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var pe=this.unrotatePoint(le);if(this.manipulationStartX=pe.x,this.manipulationStartY=pe.y,this.offsetX=pe.x-this.left,this.offsetY=pe.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(de),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(de)){this.activeGrip=this.rotatorGrip;var ae=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=ae.x-this.width/2,this.top=ae.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Te=this.container.transform.baseVal.getItem(0);Te.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Te,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},ce.prototype.pointerUp=function(le){var de=this.state;ve.prototype.pointerUp.call(this,le),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(le),this._state="select",de==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},ce.prototype.moveVisual=function(le){this.visual.style.transform="translate("+le.x+"px, "+le.y+"px)"},ce.prototype.manipulate=function(le){var de=this.unrotatePoint(le);this.state==="creating"?this.resize(le):this.state==="move"?(this.left=this.manipulationStartLeft+(de.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(de.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(de):this.state==="rotate"&&this.rotate(le)},ce.prototype.resize=function(le){var de=this.manipulationStartLeft,pe=this.manipulationStartWidth,ae=this.manipulationStartTop,Te=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:de=this.manipulationStartLeft+le.x-this.manipulationStartX,pe=this.manipulationStartWidth+this.manipulationStartLeft-de;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:pe=this.manipulationStartWidth+le.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:ae=this.manipulationStartTop+le.y-this.manipulationStartY,Te=this.manipulationStartHeight+this.manipulationStartTop-ae;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Te=this.manipulationStartHeight+le.y-this.manipulationStartY}pe>=0?(this.left=de,this.width=pe):(this.left=de+pe,this.width=-pe),Te>=0?(this.top=ae,this.height=Te):(this.top=ae+Te,this.height=-Te),this.setSize()},ce.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},ce.prototype.rotate=function(le){if(Math.abs(le.x-this.centerX)>.1){var de=Math.sign(le.x-this.centerX);this.rotationAngle=180*Math.atan((le.y-this.centerY)/(le.x-this.centerX))/Math.PI+90*de,this.applyRotation()}},ce.prototype.applyRotation=function(){var le=this.container.transform.baseVal.getItem(0);le.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(le,0)},ce.prototype.rotatePoint=function(le){if(this.rotationAngle===0)return le;var de=this.container.getCTM(),pe=Ee.createPoint(le.x,le.y);return{x:(pe=pe.matrixTransform(de)).x,y:pe.y}},ce.prototype.unrotatePoint=function(le){if(this.rotationAngle===0)return le;var de=this.container.getCTM();de=de.inverse();var pe=Ee.createPoint(le.x,le.y);return{x:(pe=pe.matrixTransform(de)).x,y:pe.y}},ce.prototype.select=function(){ve.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ce.prototype.deselect=function(){ve.prototype.deselect.call(this),this.controlBox.style.display="none"},ce.prototype.setupControlBox=function(){this.controlBox=Ee.createGroup();var le=Ee.createTransform();le.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(le),this.container.appendChild(this.controlBox),this.controlRect=Ee.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=Ee.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 rt,this.addControlGrips(),this.controlBox.style.display="none"},ce.prototype.adjustControlBox=function(){var le=this.controlBox.transform.baseVal.getItem(0);le.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(le,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()},ce.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()},ce.prototype.createGrip=function(){var le=new kt;return le.visual.transform.baseVal.appendItem(Ee.createTransform()),this.controlBox.appendChild(le.visual),le},ce.prototype.positionGrips=function(){var le=this.controlGrips.topLeft.GRIP_SIZE,de=-le/2,pe=de,ae=(this.width+this.CB_DISTANCE)/2-le/2,Te=(this.height+this.CB_DISTANCE)/2-le/2,gt=this.height+this.CB_DISTANCE-le/2,Re=this.width+this.CB_DISTANCE-le/2;this.positionGrip(this.controlGrips.topLeft.visual,de,pe),this.positionGrip(this.controlGrips.topCenter.visual,ae,pe),this.positionGrip(this.controlGrips.topRight.visual,Re,pe),this.positionGrip(this.controlGrips.centerLeft.visual,de,Te),this.positionGrip(this.controlGrips.centerRight.visual,Re,Te),this.positionGrip(this.controlGrips.bottomLeft.visual,de,gt),this.positionGrip(this.controlGrips.bottomCenter.visual,ae,gt),this.positionGrip(this.controlGrips.bottomRight.visual,Re,gt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ae,pe-3*this.CB_DISTANCE)},ce.prototype.positionGrip=function(le,de,pe){var ae=le.transform.baseVal.getItem(0);ae.setTranslate(de,pe),le.transform.baseVal.replaceItem(ae,0)},ce.prototype.hideControlBox=function(){this.controlBox.style.display="none"},ce.prototype.showControlBox=function(){this.controlBox.style.display=""},ce.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:ft.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ft.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ve.prototype.getState.call(this))},ce.prototype.restoreState=function(le){ve.prototype.restoreState.call(this,le);var de=le;this.left=de.left,this.top=de.top,this.width=de.width,this.height=de.height,this.rotationAngle=de.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(ft.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,de.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ft.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,de.containerTransformMatrix))},ce.prototype.scale=function(le,de){ve.prototype.scale.call(this,le,de);var pe=this.rotatePoint({x:this.left,y:this.top}),ae=this.unrotatePoint({x:pe.x*le,y:pe.y*de});this.left=ae.x,this.top=ae.y,this.width=this.width*le,this.height=this.height*de,this.adjustControlBox()},ce}(pt),He=function(ve){function ce(le,de,pe){var ae=ve.call(this,le,de,pe)||this;return ae.fillColor="transparent",ae.strokeColor="transparent",ae.strokeWidth=0,ae.strokeDasharray="",ae.opacity=1,ae.setStrokeColor=ae.setStrokeColor.bind(ae),ae.setFillColor=ae.setFillColor.bind(ae),ae.setStrokeWidth=ae.setStrokeWidth.bind(ae),ae.setStrokeDasharray=ae.setStrokeDasharray.bind(ae),ae.createVisual=ae.createVisual.bind(ae),ae}return Ae(ce,ve),ce.prototype.ownsTarget=function(le){return!(!ve.prototype.ownsTarget.call(this,le)&&le!==this.visual)},ce.prototype.createVisual=function(){this.visual=Ee.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)},ce.prototype.pointerDown=function(le,de){ve.prototype.pointerDown.call(this,le,de),this.state==="new"&&(this.createVisual(),this.moveVisual(le),this._state="creating")},ce.prototype.manipulate=function(le){ve.prototype.manipulate.call(this,le)},ce.prototype.resize=function(le){ve.prototype.resize.call(this,le),this.setSize()},ce.prototype.setSize=function(){ve.prototype.setSize.call(this),Ee.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},ce.prototype.pointerUp=function(le){ve.prototype.pointerUp.call(this,le),this.setSize()},ce.prototype.setStrokeColor=function(le){this.strokeColor=le,this.visual&&Ee.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(le),this.stateChanged()},ce.prototype.setFillColor=function(le){this.fillColor=le,this.visual&&Ee.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},ce.prototype.setStrokeWidth=function(le){this.strokeWidth=le,this.visual&&Ee.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ce.prototype.setStrokeDasharray=function(le){this.strokeDasharray=le,this.visual&&Ee.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ce.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ve.prototype.getState.call(this))},ce.prototype.restoreState=function(le){var de=le;this.fillColor=de.fillColor,this.strokeColor=de.strokeColor,this.strokeWidth=de.strokeWidth,this.strokeDasharray=de.strokeDasharray,this.opacity=de.opacity,this.createVisual(),ve.prototype.restoreState.call(this,le),this.setSize()},ce.prototype.scale=function(le,de){ve.prototype.scale.call(this,le,de),this.setSize()},ce.title="Rectangle marker",ce}(it),Se=function(ve){function ce(le,de,pe,ae){var Te=ve.call(this,le,ae||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Te.widths=[],Te.widthBoxes=[],Te.widths=de,Te.currentWidth=pe,Te.setCurrentWidth=Te.setCurrentWidth.bind(Te),Te}return Ae(ce,ve),ce.prototype.getUi=function(){var le=this,de=document.createElement("div");return de.style.display="flex",de.style.overflow="hidden",de.style.flexGrow="2",this.widths.forEach(function(pe){var ae=document.createElement("div");ae.style.display="flex",ae.style.flexGrow="2",ae.style.alignItems="center",ae.style.justifyContent="space-between",ae.style.padding="5px",ae.style.borderWidth="2px",ae.style.borderStyle="solid",ae.style.borderColor=pe===le.currentWidth?le.uiStyleSettings.toolboxAccentColor:"transparent",ae.addEventListener("click",function(){le.setCurrentWidth(pe,ae)}),de.appendChild(ae);var Te=document.createElement("div");Te.innerText=pe.toString(),Te.style.marginRight="5px",ae.appendChild(Te);var gt=document.createElement("div");gt.style.minHeight="20px",gt.style.flexGrow="2",gt.style.display="flex",gt.style.alignItems="center";var Re=document.createElement("hr");Re.style.minWidth="20px",Re.style.border="0px",Re.style.borderTop=pe+"px solid "+le.uiStyleSettings.toolboxColor,Re.style.flexGrow="2",gt.appendChild(Re),ae.appendChild(gt),le.widthBoxes.push(ae)}),de},ce.prototype.setCurrentWidth=function(le,de){var pe=this;this.currentWidth=le,this.widthBoxes.forEach(function(ae){ae.style.borderColor=ae===de?pe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},ce}(We),Ke=function(ve){function ce(le,de,pe,ae){var Te=ve.call(this,le,ae||'<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 Te.styles=[],Te.styleBoxes=[],Te.styles=de,Te.currentStyle=pe,Te.setCurrentStyle=Te.setCurrentStyle.bind(Te),Te}return Ae(ce,ve),ce.prototype.getUi=function(){var le=this,de=document.createElement("div");return de.style.display="flex",de.style.overflow="hidden",de.style.flexGrow="2",this.styles.forEach(function(pe){var ae=document.createElement("div");ae.style.display="flex",ae.style.alignItems="center",ae.style.justifyContent="space-between",ae.style.padding="5px",ae.style.borderWidth="2px",ae.style.borderStyle="solid",ae.style.overflow="hidden",ae.style.maxWidth=100/le.styles.length-5+"%",ae.style.borderColor=pe===le.currentStyle?le.uiStyleSettings.toolboxAccentColor:"transparent",ae.addEventListener("click",function(){le.setCurrentStyle(pe,ae)}),de.appendChild(ae);var Te=document.createElement("div");Te.style.minHeight="20px",Te.style.flexGrow="2",Te.style.overflow="hidden";var gt=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+le.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(pe!==""?'stroke-dasharray="'+pe+'"':"")+` />
|
|
|
</svg>`;Te.innerHTML=gt,ae.appendChild(Te),le.styleBoxes.push(ae)}),de},ce.prototype.setCurrentStyle=function(le,de){var pe=this;this.currentStyle=le,this.styleBoxes.forEach(function(ae){ae.style.borderColor=ae===de?pe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},ce}(We),Ue=function(ve){function ce(le,de,pe){var ae=ve.call(this,le,de,pe)||this;return ae.strokeColor=pe.defaultColor,ae.strokeWidth=pe.defaultStrokeWidth,ae.strokeDasharray=pe.defaultStrokeDasharray,ae.strokePanel=new je("Line color",pe.defaultColorSet,pe.defaultColor),ae.strokePanel.onColorChanged=ae.setStrokeColor,ae.strokeWidthPanel=new Se("Line width",pe.defaultStrokeWidths,pe.defaultStrokeWidth),ae.strokeWidthPanel.onWidthChanged=ae.setStrokeWidth,ae.strokeStylePanel=new Ke("Line style",pe.defaultStrokeDasharrays,pe.defaultStrokeDasharray),ae.strokeStylePanel.onStyleChanged=ae.setStrokeDasharray,ae}return Ae(ce,ve),Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var le=ve.prototype.getState.call(this);return le.typeName=ce.typeName,le},ce.typeName="FrameMarker",ce.title="Frame marker",ce.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',ce}(He),vt=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"},Ye=function(ve){function ce(le,de,pe){var ae=ve.call(this,le,de,pe)||this;return ae.x1=0,ae.y1=0,ae.x2=0,ae.y2=0,ae.defaultLength=50,ae.manipulationStartX=0,ae.manipulationStartY=0,ae.manipulationStartX1=0,ae.manipulationStartY1=0,ae.manipulationStartX2=0,ae.manipulationStartY2=0,ae.setupControlBox(),ae}return Ae(ce,ve),ce.prototype.ownsTarget=function(le){return!!ve.prototype.ownsTarget.call(this,le)||!(!this.grip1.ownsTarget(le)&&!this.grip2.ownsTarget(le))},ce.prototype.pointerDown=function(le,de){ve.prototype.pointerDown.call(this,le,de),this.manipulationStartX=le.x,this.manipulationStartY=le.y,this.state==="new"&&(this.x1=le.x,this.y1=le.y,this.x2=le.x,this.y2=le.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(de)?this.activeGrip=this.grip1:this.grip2.ownsTarget(de)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},ce.prototype.pointerUp=function(le){var de=this.state;ve.prototype.pointerUp.call(this,le),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(le),this._state="select",de==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},ce.prototype.adjustVisual=function(){},ce.prototype.manipulate=function(le){this.state==="creating"?this.resize(le):this.state==="move"?(this.x1=this.manipulationStartX1+le.x-this.manipulationStartX,this.y1=this.manipulationStartY1+le.y-this.manipulationStartY,this.x2=this.manipulationStartX2+le.x-this.manipulationStartX,this.y2=this.manipulationStartY2+le.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(le)},ce.prototype.resize=function(le){switch(this.activeGrip){case this.grip1:this.x1=le.x,this.y1=le.y;break;case this.grip2:case void 0:this.x2=le.x,this.y2=le.y}this.adjustVisual(),this.adjustControlBox()},ce.prototype.select=function(){ve.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ce.prototype.deselect=function(){ve.prototype.deselect.call(this),this.controlBox.style.display="none"},ce.prototype.setupControlBox=function(){this.controlBox=Ee.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},ce.prototype.adjustControlBox=function(){this.positionGrips()},ce.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},ce.prototype.createGrip=function(){var le=new kt;return le.visual.transform.baseVal.appendItem(Ee.createTransform()),this.controlBox.appendChild(le.visual),le},ce.prototype.positionGrips=function(){var le=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-le/2,this.y1-le/2),this.positionGrip(this.grip2.visual,this.x2-le/2,this.y2-le/2)},ce.prototype.positionGrip=function(le,de,pe){var ae=le.transform.baseVal.getItem(0);ae.setTranslate(de,pe),le.transform.baseVal.replaceItem(ae,0)},ce.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ve.prototype.getState.call(this))},ce.prototype.restoreState=function(le){ve.prototype.restoreState.call(this,le);var de=le;this.x1=de.x1,this.y1=de.y1,this.x2=de.x2,this.y2=de.y2},ce.prototype.scale=function(le,de){ve.prototype.scale.call(this,le,de),this.x1=this.x1*le,this.y1=this.y1*de,this.x2=this.x2*le,this.y2=this.y2*de,this.adjustVisual(),this.adjustControlBox()},ce}(pt),st=function(ve){function ce(le,de,pe){var ae=ve.call(this,le,de,pe)||this;return ae.strokeColor="transparent",ae.strokeWidth=0,ae.strokeDasharray="",ae.setStrokeColor=ae.setStrokeColor.bind(ae),ae.setStrokeWidth=ae.setStrokeWidth.bind(ae),ae.setStrokeDasharray=ae.setStrokeDasharray.bind(ae),ae.strokeColor=pe.defaultColor,ae.strokeWidth=pe.defaultStrokeWidth,ae.strokeDasharray=pe.defaultStrokeDasharray,ae.strokePanel=new je("Line color",pe.defaultColorSet,pe.defaultColor),ae.strokePanel.onColorChanged=ae.setStrokeColor,ae.strokeWidthPanel=new Se("Line width",pe.defaultStrokeWidths,pe.defaultStrokeWidth),ae.strokeWidthPanel.onWidthChanged=ae.setStrokeWidth,ae.strokeStylePanel=new Ke("Line style",pe.defaultStrokeDasharrays,pe.defaultStrokeDasharray),ae.strokeStylePanel.onStyleChanged=ae.setStrokeDasharray,ae}return Ae(ce,ve),ce.prototype.ownsTarget=function(le){return!(!ve.prototype.ownsTarget.call(this,le)&&le!==this.visual&&le!==this.selectorLine&&le!==this.visibleLine)},ce.prototype.createVisual=function(){this.visual=Ee.createGroup(),this.selectorLine=Ee.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Ee.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)},ce.prototype.pointerDown=function(le,de){ve.prototype.pointerDown.call(this,le,de),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},ce.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()),Ee.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Ee.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Ee.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ce.prototype.setStrokeColor=function(le){this.strokeColor=le,this.adjustVisual(),this.colorChanged(le)},ce.prototype.setStrokeWidth=function(le){this.strokeWidth=le,this.adjustVisual()},ce.prototype.setStrokeDasharray=function(le){this.strokeDasharray=le,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var le=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ve.prototype.getState.call(this));return le.typeName=ce.typeName,le},ce.prototype.restoreState=function(le){ve.prototype.restoreState.call(this,le);var de=le;this.strokeColor=de.strokeColor,this.strokeWidth=de.strokeWidth,this.strokeDasharray=de.strokeDasharray,this.createVisual(),this.adjustVisual()},ce.typeName="LineMarker",ce.title="Line marker",ce.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',ce}(Ye),Ie=function(ve){function ce(le,de,pe,ae){var Te=ve.call(this,le,ae||'<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 Te.fonts=[],Te.fontBoxes=[],Te.fonts=de,Te.currentFont=pe,Te.setCurrentFont=Te.setCurrentFont.bind(Te),Te}return Ae(ce,ve),ce.prototype.getUi=function(){var le=this,de=document.createElement("div");return de.style.overflow="hidden",de.style.flexGrow="2",this.fonts.forEach(function(pe){var ae=document.createElement("div");ae.style.display="inline-block",ae.style.alignItems="center",ae.style.justifyContent="space-between",ae.style.padding="5px",ae.style.borderWidth="2px",ae.style.borderStyle="solid",ae.style.overflow="hidden",ae.style.maxWidth=100/le.fonts.length-5+"%",ae.style.borderColor=pe===le.currentFont?le.uiStyleSettings.toolboxAccentColor:"transparent",ae.addEventListener("click",function(){le.setCurrentFont(pe,ae)}),de.appendChild(ae);var Te=document.createElement("div");Te.style.display="flex",Te.style.minHeight="20px",Te.style.flexGrow="2",Te.style.fontFamily=pe,Te.style.overflow="hidden";var gt=document.createElement("div");gt.style.whiteSpace="nowrap",gt.style.overflow="hidden",gt.style.textOverflow="ellipsis",gt.innerHTML="The quick brown fox jumps over the lazy dog",Te.appendChild(gt),ae.appendChild(Te),le.fontBoxes.push(ae)}),de},ce.prototype.setCurrentFont=function(le,de){var pe=this;this.currentFont=le,this.fontBoxes.forEach(function(ae){ae.style.borderColor=ae===de?pe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},ce}(We),Mt=function(ve){function ce(le,de,pe){var ae=ve.call(this,le,de,pe)||this;return ae.color="transparent",ae.padding=5,ae.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",ae.text=ae.DEFAULT_TEXT,ae.isMoved=!1,ae.color=pe.defaultColor,ae.fontFamily=pe.defaultFontFamily,ae.defaultSize={x:100,y:30},ae.setColor=ae.setColor.bind(ae),ae.setFont=ae.setFont.bind(ae),ae.renderText=ae.renderText.bind(ae),ae.sizeText=ae.sizeText.bind(ae),ae.textEditDivClicked=ae.textEditDivClicked.bind(ae),ae.showTextEditor=ae.showTextEditor.bind(ae),ae.setSize=ae.setSize.bind(ae),ae.positionTextEditor=ae.positionTextEditor.bind(ae),ae.colorPanel=new je("Color",pe.defaultColorSet,pe.defaultColor),ae.colorPanel.onColorChanged=ae.setColor,ae.fontFamilyPanel=new Ie("Font",pe.defaultFontFamilies,pe.defaultFontFamily),ae.fontFamilyPanel.onFontChanged=ae.setFont,ae}return Ae(ce,ve),ce.prototype.ownsTarget=function(le){if(ve.prototype.ownsTarget.call(this,le)||le===this.visual||le===this.textElement||le===this.bgRectangle)return!0;var de=!1;return this.textElement.childNodes.forEach(function(pe){pe===le&&(de=!0)}),de},ce.prototype.createVisual=function(){this.visual=Ee.createGroup(),this.bgRectangle=Ee.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Ee.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Ee.createTransform()),this.textElement.transform.baseVal.appendItem(Ee.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},ce.prototype.pointerDown=function(le,de){ve.prototype.pointerDown.call(this,le,de),this.isMoved=!1,this.pointerDownPoint=le,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(le),this._state="creating")},ce.prototype.renderText=function(){var le=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(de){le.textElement.appendChild(Ee.createTSpan(de.trim()===""?" ":de.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},ce.prototype.getTextScale=function(){var le=this.textElement.getBBox(),de=1;if(le.width>0&&le.height>0){var pe=(1*this.width-this.width*this.padding*2/100)/le.width,ae=(1*this.height-this.height*this.padding*2/100)/le.height;de=Math.min(pe,ae)}return de},ce.prototype.getTextPosition=function(le){var de=this.textElement.getBBox(),pe=0,ae=0;return de.width>0&&de.height>0&&(pe=(this.width-de.width*le)/2,ae=this.height/2-de.height*le/2),{x:pe,y:ae}},ce.prototype.sizeText=function(){var le=this.textElement.getBBox(),de=this.getTextScale(),pe=this.getTextPosition(de);pe.y-=le.y*de,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+pe.x+"px, "+pe.y+"px) scale("+de+", "+de+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(pe.x,pe.y),this.textElement.transform.baseVal.getItem(1).setScale(de,de))},ce.prototype.manipulate=function(le){ve.prototype.manipulate.call(this,le),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(le.x-this.pointerDownPoint.x)>5||Math.abs(le.y-this.pointerDownPoint.y)>5)},ce.prototype.resize=function(le){ve.prototype.resize.call(this,le),this.isMoved=!0,this.setSize(),this.sizeText()},ce.prototype.setSize=function(){ve.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Ee.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ee.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},ce.prototype.pointerUp=function(le){var de=this.state;de==="creating"&&(this._suppressMarkerCreateEvent=!0),ve.prototype.pointerUp.call(this,le),this.setSize(),(de==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},ce.prototype.showTextEditor=function(){var le=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(de){de.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var de=Number.parseFloat(le.textEditor.style.fontSize);le.textEditor.clientWidth>=Number.parseInt(le.textEditor.style.maxWidth)&&de>.9;)de-=.1,le.textEditor.style.fontSize=Math.max(de,.9)+"em"}),this.textEditor.addEventListener("keyup",function(de){de.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(de){if(de.clipboardData){var pe=de.clipboardData.getData("text"),ae=window.getSelection();if(!ae.rangeCount)return!1;ae.deleteFromDocument(),ae.getRangeAt(0).insertNode(document.createTextNode(pe)),de.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){le.textEditDivClicked(le.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},ce.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var le=this.getTextScale(),de=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),pe=this.textElement.getBBox(),ae={x:pe.width*le,y:pe.height*le};de.x-=ae.x/2,de.y-=ae.y/2,this.textEditor.style.top=de.y+"px",this.textEditor.style.left=de.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-de.x+"px",this.textEditor.style.fontSize=Math.max(16*le,12)+"px",this.textElement.style.display="none"}},ce.prototype.textEditDivClicked=function(le){this.text=le.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},ce.prototype.select=function(){ve.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},ce.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ve.prototype.deselect.call(this)},ce.prototype.dblClick=function(le,de){ve.prototype.dblClick.call(this,le,de),this.showTextEditor()},ce.prototype.setColor=function(le){this.textElement&&Ee.setAttributes(this.textElement,[["fill",le]]),this.color=le,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(le)},ce.prototype.setFont=function(le){this.textElement&&Ee.setAttributes(this.textElement,[["font-family",le]]),this.fontFamily=le,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},ce.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},ce.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var le=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ve.prototype.getState.call(this));return le.typeName=ce.typeName,le},ce.prototype.restoreState=function(le){var de=le;this.color=de.color,this.fontFamily=de.fontFamily,this.padding=de.padding,this.text=de.text,this.createVisual(),ve.prototype.restoreState.call(this,le),this.setSize()},ce.prototype.scale=function(le,de){ve.prototype.scale.call(this,le,de),this.setSize(),this.sizeText(),this.positionTextEditor()},ce.typeName="TextMarker",ce.title="Text marker",ce.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>',ce}(it),Ge=function(ve){function ce(le,de,pe){var ae=ve.call(this,le,de,pe)||this;return ae.color="transparent",ae.lineWidth=3,ae.drawing=!1,ae.pixelRatio=1,ae.color=pe.defaultColor,ae.lineWidth=pe.defaultStrokeWidth,ae.pixelRatio=pe.freehandPixelRatio,ae.setColor=ae.setColor.bind(ae),ae.addCanvas=ae.addCanvas.bind(ae),ae.finishCreation=ae.finishCreation.bind(ae),ae.setLineWidth=ae.setLineWidth.bind(ae),ae.colorPanel=new je("Color",pe.defaultColorSet,pe.defaultColor),ae.colorPanel.onColorChanged=ae.setColor,ae.lineWidthPanel=new Se("Line width",pe.defaultStrokeWidths,pe.defaultStrokeWidth),ae.lineWidthPanel.onWidthChanged=ae.setLineWidth,ae}return Ae(ce,ve),ce.prototype.ownsTarget=function(le){return!(!ve.prototype.ownsTarget.call(this,le)&&le!==this.visual&&le!==this.drawingImage)},ce.prototype.createVisual=function(){this.visual=Ee.createGroup(),this.drawingImage=Ee.createImage(),this.visual.appendChild(this.drawingImage);var le=Ee.createTransform();this.visual.transform.baseVal.appendItem(le),this.addMarkerVisualToContainer(this.visual)},ce.prototype.pointerDown=function(le,de){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(le.x,le.y),this.drawing=!0):ve.prototype.pointerDown.call(this,le,de)},ce.prototype.manipulate=function(le){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(le.x,le.y),this.canvasContext.stroke()):ve.prototype.manipulate.call(this,le)},ce.prototype.resize=function(le){ve.prototype.resize.call(this,le),Ee.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ee.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},ce.prototype.pointerUp=function(le){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ve.prototype.pointerUp.call(this,le)},ce.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)},ce.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ve.prototype.select.call(this)},ce.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ve.prototype.deselect.call(this)},ce.prototype.finishCreation=function(){for(var le=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),de=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],pe=de[0],ae=de[1],Te=de[2],gt=de[3],Re=!1,Be=0;Be<this.canvasElement.height;Be++)for(var yt=0;yt<this.canvasElement.width;yt++)le.data[Be*this.canvasElement.width*4+4*yt+3]>0&&(Re=!0,Be<ae&&(ae=Be),yt<pe&&(pe=yt),Be>gt&&(gt=Be),yt>Te&&(Te=yt));if(Re){this.left=pe/this.pixelRatio,this.top=ae/this.pixelRatio,this.width=(Te-pe)/this.pixelRatio,this.height=(gt-ae)/this.pixelRatio;var ut=document.createElement("canvas");ut.width=Te-pe,ut.height=gt-ae,ut.getContext("2d").putImageData(this.canvasContext.getImageData(pe,ae,Te-pe,gt-ae),0,0),this.drawingImgUrl=ut.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},ce.prototype.setDrawingImage=function(){Ee.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Ee.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},ce.prototype.setColor=function(le){this.color=le,this.colorChanged(le)},ce.prototype.setLineWidth=function(le){this.lineWidth=le},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var le=Object.assign({drawingImgUrl:this.drawingImgUrl},ve.prototype.getState.call(this));return le.typeName=ce.typeName,le},ce.prototype.restoreState=function(le){this.createVisual(),ve.prototype.restoreState.call(this,le),this.drawingImgUrl=le.drawingImgUrl,this.setDrawingImage()},ce.prototype.scale=function(le,de){ve.prototype.scale.call(this,le,de),this.setDrawingImage()},ce.typeName="FreehandMarker",ce.title="Freehand marker",ce.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>',ce}(it),Ot=function(ve){function ce(le,de,pe){var ae=ve.call(this,le,pe||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return ae.typeBoxes=[],ae.currentType=de,ae.setCurrentType=ae.setCurrentType.bind(ae),ae}return Ae(ce,ve),ce.prototype.getUi=function(){var le=this,de=document.createElement("div");de.style.display="flex",de.style.overflow="hidden",de.style.flexGrow="2";for(var pe=function(gt){var Re="both";switch(gt){case 0:Re="both";break;case 1:Re="start";break;case 2:Re="end";break;case 3:Re="none"}var Be=document.createElement("div");if(Be.style.display="flex",Be.style.flexGrow="2",Be.style.alignItems="center",Be.style.justifyContent="space-between",Be.style.padding="5px",Be.style.borderWidth="2px",Be.style.borderStyle="solid",Be.style.borderColor=Re===ae.currentType?ae.uiStyleSettings.toolboxAccentColor:"transparent",Be.addEventListener("click",function(){le.setCurrentType(Re,Be)}),de.appendChild(Be),Re==="both"||Re==="start"){var yt=document.createElement("div");yt.style.display="flex",yt.style.alignItems="center",yt.style.minHeight="20px",yt.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="`+(ae.uiStyleSettings!==void 0?ae.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,yt.style.marginLeft="5px",Be.appendChild(yt)}var ut=document.createElement("div");ut.style.display="flex",ut.style.alignItems="center",ut.style.minHeight="20px",ut.style.flexGrow="2";var Qe=document.createElement("hr");if(Qe.style.minWidth="20px",Qe.style.border="0px",Qe.style.borderTop="3px solid "+(ae.uiStyleSettings!==void 0?ae.uiStyleSettings.toolboxColor:"#eeeeee"),Qe.style.flexGrow="2",ut.appendChild(Qe),Be.appendChild(ut),Re==="both"||Re==="end"){var St=document.createElement("div");St.style.display="flex",St.style.alignItems="center",St.style.minHeight="20px",St.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="`+(ae.uiStyleSettings!==void 0?ae.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,St.style.marginRight="5px",Be.appendChild(St)}ae.typeBoxes.push(Be)},ae=this,Te=0;Te<4;Te++)pe(Te);return de},ce.prototype.setCurrentType=function(le,de){var pe=this;this.currentType=le,this.typeBoxes.forEach(function(ae){ae.style.borderColor=ae===de?pe.uiStyleSettings!==void 0?pe.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},ce}(We),wt=function(ve){function ce(le,de,pe){var ae=ve.call(this,le,de,pe)||this;return ae.arrowType="end",ae.arrowBaseHeight=10,ae.arrowBaseWidth=10,ae.getArrowPoints=ae.getArrowPoints.bind(ae),ae.setArrowType=ae.setArrowType.bind(ae),ae.arrowTypePanel=new Ot("Arrow type","end"),ae.arrowTypePanel.onArrowTypeChanged=ae.setArrowType,ae}return Ae(ce,ve),ce.prototype.ownsTarget=function(le){return!(!ve.prototype.ownsTarget.call(this,le)&&le!==this.arrow1&&le!==this.arrow2)},ce.prototype.getArrowPoints=function(le,de){var pe=this.arrowBaseWidth+2*this.strokeWidth,ae=this.arrowBaseHeight+2*this.strokeWidth;return le-pe/2+","+(de+ae/2)+" "+le+","+(de-ae/2)+" "+(le+pe/2)+","+(de+ae/2)},ce.prototype.createTips=function(){this.arrow1=Ee.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Ee.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Ee.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Ee.createTransform()),this.visual.appendChild(this.arrow2)},ce.prototype.pointerDown=function(le,de){ve.prototype.pointerDown.call(this,le,de),this.state==="creating"&&this.createTips()},ce.prototype.adjustVisual=function(){if(ve.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",Ee.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Ee.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var le=0;Math.abs(this.x1-this.x2)>.1&&(le=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var de=this.arrow1.transform.baseVal.getItem(0);de.setRotate(le,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(de,0);var pe=this.arrow2.transform.baseVal.getItem(0);pe.setRotate(le+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(pe,0)}},ce.prototype.setArrowType=function(le){this.arrowType=le,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var le=Object.assign({arrowType:this.arrowType},ve.prototype.getState.call(this));return le.typeName=ce.typeName,le},ce.prototype.restoreState=function(le){ve.prototype.restoreState.call(this,le);var de=le;this.arrowType=de.arrowType,this.createTips(),this.adjustVisual()},ce.typeName="ArrowMarker",ce.title="Arrow marker",ce.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',ce}(st),At=function(ve){function ce(le,de,pe){var ae=ve.call(this,le,de,pe)||this;return ae.fillColor=pe.defaultFillColor,ae.strokeWidth=0,ae.fillPanel=new je("Color",pe.defaultColorSet,pe.defaultFillColor),ae.fillPanel.onColorChanged=ae.setFillColor,ae}return Ae(ce,ve),Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var le=ve.prototype.getState.call(this);return le.typeName=ce.typeName,le},ce.typeName="CoverMarker",ce.title="Cover marker",ce.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',ce}(He),Nt=function(ve){function ce(le,de,pe,ae){var Te=ve.call(this,le,ae||'<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 Te.opacities=[],Te.opacityBoxes=[],Te.opacities=de,Te.currentOpacity=pe,Te.setCurrentOpacity=Te.setCurrentOpacity.bind(Te),Te}return Ae(ce,ve),ce.prototype.getUi=function(){var le=this,de=document.createElement("div");return de.style.display="flex",de.style.overflow="hidden",de.style.flexGrow="2",de.style.justifyContent="space-between",this.opacities.forEach(function(pe){var ae=document.createElement("div");ae.style.display="flex",ae.style.alignItems="center",ae.style.justifyContent="center",ae.style.padding="5px",ae.style.borderWidth="2px",ae.style.borderStyle="solid",ae.style.borderColor=pe===le.currentOpacity?le.uiStyleSettings.toolboxAccentColor:"transparent",ae.addEventListener("click",function(){le.setCurrentOpacity(pe,ae)}),de.appendChild(ae);var Te=document.createElement("div");Te.innerText=100*pe+"%",ae.appendChild(Te),le.opacityBoxes.push(ae)}),de},ce.prototype.setCurrentOpacity=function(le,de){var pe=this;this.currentOpacity=le,this.opacityBoxes.forEach(function(ae){ae.style.borderColor=ae===de?pe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},ce}(We),Tt=function(ve){function ce(le,de,pe){var ae=ve.call(this,le,de,pe)||this;return ae.setOpacity=ae.setOpacity.bind(ae),ae.fillColor=pe.defaultHighlightColor,ae.strokeWidth=0,ae.opacity=pe.defaultHighlightOpacity,ae.fillPanel=new je("Color",pe.defaultColorSet,ae.fillColor),ae.fillPanel.onColorChanged=ae.setFillColor,ae.opacityPanel=new Nt("Opacity",pe.defaultOpacitySteps,ae.opacity),ae.opacityPanel.onOpacityChanged=ae.setOpacity,ae}return Ae(ce,ve),ce.prototype.setOpacity=function(le){this.opacity=le,this.visual&&Ee.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var le=ve.prototype.getState.call(this);return le.typeName=ce.typeName,le},ce.typeName="HighlightMarker",ce.title="Highlight marker",ce.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>',ce}(At),Ve='<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>',ye='<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>',bt=function(ve){function ce(le,de,pe){var ae=ve.call(this,le,de,pe)||this;return ae.bgColor="transparent",ae.tipPosition={x:0,y:0},ae.tipBase1Position={x:0,y:0},ae.tipBase2Position={x:0,y:0},ae.tipMoving=!1,ae.color=pe.defaultStrokeColor,ae.bgColor=pe.defaultFillColor,ae.fontFamily=pe.defaultFontFamily,ae.defaultSize={x:100,y:30},ae.setBgColor=ae.setBgColor.bind(ae),ae.getTipPoints=ae.getTipPoints.bind(ae),ae.positionTip=ae.positionTip.bind(ae),ae.setTipPoints=ae.setTipPoints.bind(ae),ae.colorPanel=new je("Text color",pe.defaultColorSet,ae.color,Ve),ae.colorPanel.onColorChanged=ae.setColor,ae.bgColorPanel=new je("Fill color",pe.defaultColorSet,ae.bgColor,ye),ae.bgColorPanel.onColorChanged=ae.setBgColor,ae.fontFamilyPanel=new Ie("Font",pe.defaultFontFamilies,pe.defaultFontFamily),ae.fontFamilyPanel.onFontChanged=ae.setFont,ae.tipGrip=new kt,ae.tipGrip.visual.transform.baseVal.appendItem(Ee.createTransform()),ae.controlBox.appendChild(ae.tipGrip.visual),ae}return Ae(ce,ve),ce.prototype.ownsTarget=function(le){return ve.prototype.ownsTarget.call(this,le)||this.tipGrip.ownsTarget(le)||this.tip===le},ce.prototype.createTip=function(){Ee.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Ee.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},ce.prototype.pointerDown=function(le,de){this.state==="new"&&ve.prototype.pointerDown.call(this,le,de),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(de)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ve.prototype.pointerDown.call(this,le,de)},ce.prototype.pointerUp=function(le){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ve.prototype.pointerUp.call(this,le);else{var de=this.state==="creating";ve.prototype.pointerUp.call(this,le),this.setTipPoints(de),this.positionTip()}},ce.prototype.manipulate=function(le){if(this.tipMoving){var de=this.unrotatePoint(le);this.tipPosition={x:de.x-this.manipulationStartLeft,y:de.y-this.manipulationStartTop},this.positionTip()}else ve.prototype.manipulate.call(this,le)},ce.prototype.setBgColor=function(le){this.bgRectangle&&this.tip&&(Ee.setAttributes(this.bgRectangle,[["fill",le]]),Ee.setAttributes(this.tip,[["fill",le]])),this.bgColor=le,this.fillColorChanged(le)},ce.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},ce.prototype.setTipPoints=function(le){le===void 0&&(le=!1);var de=Math.min(this.height/2,15),pe=this.height/5;le&&(this.tipPosition={x:de+pe/2,y:this.height+20});var ae=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?ae<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(pe=this.width/5,de=Math.min(this.width/2,15),this.tipBase1Position={x:de,y:0},this.tipBase2Position={x:de+pe,y:0}):(this.tipBase1Position={x:0,y:de},this.tipBase2Position={x:0,y:de+pe}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?ae<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(pe=this.width/5,de=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-de-pe,y:0},this.tipBase2Position={x:this.width-de,y:0}):(this.tipBase1Position={x:this.width,y:de},this.tipBase2Position={x:this.width,y:de+pe}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?ae<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(pe=this.width/5,de=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-de-pe,y:this.height},this.tipBase2Position={x:this.width-de,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-de-pe},this.tipBase2Position={x:this.width,y:this.height-de}):ae<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(pe=this.width/5,de=Math.min(this.width/2,15),this.tipBase1Position={x:de,y:this.height},this.tipBase2Position={x:de+pe,y:this.height}):(this.tipBase1Position={x:0,y:this.height-de},this.tipBase2Position={x:0,y:this.height-de-pe})},ce.prototype.resize=function(le){ve.prototype.resize.call(this,le),this.positionTip()},ce.prototype.positionTip=function(){Ee.setAttributes(this.tip,[["points",this.getTipPoints()]]);var le=this.tipGrip.visual.transform.baseVal.getItem(0);le.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(le,0)},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ce.prototype.select=function(){this.positionTip(),ve.prototype.select.call(this)},ce.prototype.getState=function(){var le=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},ve.prototype.getState.call(this));return le.typeName=ce.typeName,le},ce.prototype.restoreState=function(le){var de=le;this.bgColor=de.bgColor,this.tipPosition=de.tipPosition,ve.prototype.restoreState.call(this,le),this.createTip(),this.setTipPoints()},ce.prototype.scale=function(le,de){ve.prototype.scale.call(this,le,de),this.tipPosition={x:this.tipPosition.x*le,y:this.tipPosition.y*de},this.positionTip()},ce.typeName="CalloutMarker",ce.title="Callout marker",ce.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>',ce}(Mt),Qt=function(ve){function ce(le,de,pe){var ae=ve.call(this,le,de,pe)||this;return ae.fillColor="transparent",ae.strokeColor="transparent",ae.strokeWidth=0,ae.strokeDasharray="",ae.opacity=1,ae.strokeColor=pe.defaultColor,ae.strokeWidth=pe.defaultStrokeWidth,ae.strokeDasharray=pe.defaultStrokeDasharray,ae.fillColor=pe.defaultFillColor,ae.setStrokeColor=ae.setStrokeColor.bind(ae),ae.setFillColor=ae.setFillColor.bind(ae),ae.setStrokeWidth=ae.setStrokeWidth.bind(ae),ae.setStrokeDasharray=ae.setStrokeDasharray.bind(ae),ae.setOpacity=ae.setOpacity.bind(ae),ae.createVisual=ae.createVisual.bind(ae),ae.strokePanel=new je("Line color",be(pe.defaultColorSet,["transparent"]),pe.defaultColor),ae.strokePanel.onColorChanged=ae.setStrokeColor,ae.fillPanel=new je("Fill color",be(pe.defaultColorSet,["transparent"]),ae.fillColor,ye),ae.fillPanel.onColorChanged=ae.setFillColor,ae.strokeWidthPanel=new Se("Line width",pe.defaultStrokeWidths,pe.defaultStrokeWidth),ae.strokeWidthPanel.onWidthChanged=ae.setStrokeWidth,ae.strokeStylePanel=new Ke("Line style",pe.defaultStrokeDasharrays,pe.defaultStrokeDasharray),ae.strokeStylePanel.onStyleChanged=ae.setStrokeDasharray,ae.opacityPanel=new Nt("Opacity",pe.defaultOpacitySteps,ae.opacity),ae.opacityPanel.onOpacityChanged=ae.setOpacity,ae}return Ae(ce,ve),ce.prototype.ownsTarget=function(le){return!(!ve.prototype.ownsTarget.call(this,le)&&le!==this.visual)},ce.prototype.createVisual=function(){this.visual=Ee.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)},ce.prototype.pointerDown=function(le,de){ve.prototype.pointerDown.call(this,le,de),this.state==="new"&&(this.createVisual(),this.moveVisual(le),this._state="creating")},ce.prototype.manipulate=function(le){ve.prototype.manipulate.call(this,le)},ce.prototype.resize=function(le){ve.prototype.resize.call(this,le),this.setSize()},ce.prototype.setSize=function(){ve.prototype.setSize.call(this),Ee.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},ce.prototype.pointerUp=function(le){ve.prototype.pointerUp.call(this,le),this.setSize()},ce.prototype.setStrokeColor=function(le){this.strokeColor=le,this.visual&&Ee.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(le),this.stateChanged()},ce.prototype.setFillColor=function(le){this.fillColor=le,this.visual&&Ee.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(le),this.stateChanged()},ce.prototype.setStrokeWidth=function(le){this.strokeWidth=le,this.visual&&Ee.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ce.prototype.setStrokeDasharray=function(le){this.strokeDasharray=le,this.visual&&Ee.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ce.prototype.setOpacity=function(le){this.opacity=le,this.visual&&Ee.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var le=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ve.prototype.getState.call(this));return le.typeName=ce.typeName,le},ce.prototype.restoreState=function(le){var de=le;this.fillColor=de.fillColor,this.strokeColor=de.strokeColor,this.strokeWidth=de.strokeWidth,this.strokeDasharray=de.strokeDasharray,this.opacity=de.opacity,this.createVisual(),ve.prototype.restoreState.call(this,le),this.setSize()},ce.prototype.scale=function(le,de){ve.prototype.scale.call(this,le,de),this.setSize()},ce.typeName="EllipseMarker",ce.title="Ellipse marker",ce.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>',ce}(it),Kt=function(ve){function ce(le,de,pe){return ve.call(this,le,de,pe)||this}return Ae(ce,ve),Object.defineProperty(ce.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),ce.prototype.ownsTarget=function(le){return!(!ve.prototype.ownsTarget.call(this,le)&&le!==this.tip1&&le!==this.tip2)},ce.prototype.createTips=function(){this.tip1=Ee.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(Ee.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Ee.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(Ee.createTransform()),this.visual.appendChild(this.tip2)},ce.prototype.pointerDown=function(le,de){ve.prototype.pointerDown.call(this,le,de),this.state==="creating"&&this.createTips()},ce.prototype.adjustVisual=function(){if(ve.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Ee.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()]]),Ee.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 le=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),de=this.tip1.transform.baseVal.getItem(0);de.setRotate(le,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(de,0);var pe=this.tip2.transform.baseVal.getItem(0);pe.setRotate(le+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(pe,0)}},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var le=ve.prototype.getState.call(this);return le.typeName=ce.typeName,le},ce.prototype.restoreState=function(le){ve.prototype.restoreState.call(this,le),this.createTips(),this.adjustVisual()},ce.typeName="MeasurementMarker",ce.title="Measurement marker",ce.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>',ce}(st),at=function(ve){function ce(le,de,pe){var ae=ve.call(this,le,de,pe)||this;return ae.strokePanel.colors=pe.defaultColorSet,ae.fillColor="transparent",ae}return Ae(ce,ve),Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var le=ve.prototype.getState.call(this);return le.typeName=ce.typeName,le},ce.typeName="EllipseFrameMarker",ce.title="Ellipse frame marker",ce.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>',ce}(Qt),lt=function(){function ve(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ve.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ve.prototype.addUndoStep=function(ce){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(ce)||(this.undoStack.push(ce),JSON.stringify(this.lastRedoStep)!==JSON.stringify(ce)&&this.redoStack.splice(0,this.redoStack.length))},ve.prototype.replaceLastUndoStep=function(ce){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=ce)},ve.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ve.prototype.undo=function(){if(this.undoStack.length>1){var ce=this.undoStack.pop();return ce!==void 0&&this.redoStack.push(ce),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ve.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ve}(),Dt=function(ve){function ce(le,de,pe){var ae=ve.call(this,le,de,pe)||this;return ae.strokeColor="transparent",ae.strokeWidth=0,ae.strokeDasharray="",ae.curveX=0,ae.curveY=0,ae.manipulationStartCurveX=0,ae.manipulationStartCurveY=0,ae.setStrokeColor=ae.setStrokeColor.bind(ae),ae.setStrokeWidth=ae.setStrokeWidth.bind(ae),ae.setStrokeDasharray=ae.setStrokeDasharray.bind(ae),ae.positionGrips=ae.positionGrips.bind(ae),ae.addControlGrips=ae.addControlGrips.bind(ae),ae.adjustVisual=ae.adjustVisual.bind(ae),ae.setupControlBox=ae.setupControlBox.bind(ae),ae.resize=ae.resize.bind(ae),ae.strokeColor=pe.defaultColor,ae.strokeWidth=pe.defaultStrokeWidth,ae.strokeDasharray=pe.defaultStrokeDasharray,ae.strokePanel=new je("Line color",pe.defaultColorSet,pe.defaultColor),ae.strokePanel.onColorChanged=ae.setStrokeColor,ae.strokeWidthPanel=new Se("Line width",pe.defaultStrokeWidths,pe.defaultStrokeWidth),ae.strokeWidthPanel.onWidthChanged=ae.setStrokeWidth,ae.strokeStylePanel=new Ke("Line style",pe.defaultStrokeDasharrays,pe.defaultStrokeDasharray),ae.strokeStylePanel.onStyleChanged=ae.setStrokeDasharray,ae}return Ae(ce,ve),ce.prototype.ownsTarget=function(le){return!(!ve.prototype.ownsTarget.call(this,le)&&le!==this.visual&&le!==this.selectorCurve&&le!==this.visibleCurve&&!this.curveGrip.ownsTarget(le))},ce.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},ce.prototype.createVisual=function(){this.visual=Ee.createGroup(),this.selectorCurve=Ee.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Ee.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)},ce.prototype.pointerDown=function(le,de){ve.prototype.pointerDown.call(this,le,de),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=le.x,this.curveY=le.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(de)&&(this.activeGrip=this.curveGrip,this._state="resize")},ce.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Ee.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Ee.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Ee.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ce.prototype.setupControlBox=function(){ve.prototype.setupControlBox.call(this),this.curveControlLine1=Ee.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Ee.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)},ce.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ve.prototype.addControlGrips.call(this)},ce.prototype.positionGrips=function(){ve.prototype.positionGrips.call(this);var le=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-le/2,this.curveY-le/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()))},ce.prototype.manipulate=function(le){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+le.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+le.y-this.manipulationStartY),ve.prototype.manipulate.call(this,le)},ce.prototype.resize=function(le){this.activeGrip===this.curveGrip&&(this.curveX=le.x,this.curveY=le.y),ve.prototype.resize.call(this,le),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},ce.prototype.setStrokeColor=function(le){this.strokeColor=le,this.adjustVisual(),this.colorChanged(le)},ce.prototype.setStrokeWidth=function(le){this.strokeWidth=le,this.adjustVisual()},ce.prototype.setStrokeDasharray=function(le){this.strokeDasharray=le,this.adjustVisual()},ce.prototype.scale=function(le,de){this.curveX=this.curveX*le,this.curveY=this.curveY*de,ve.prototype.scale.call(this,le,de)},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var le=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ve.prototype.getState.call(this));return le.typeName=ce.typeName,le},ce.prototype.restoreState=function(le){ve.prototype.restoreState.call(this,le);var de=le;this.strokeColor=de.strokeColor,this.strokeWidth=de.strokeWidth,this.strokeDasharray=de.strokeDasharray,this.curveX=de.curveX,this.curveY=de.curveY,this.createVisual(),this.adjustVisual()},ce.typeName="CurveMarker",ce.title="Curve marker",ce.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>',ce}(Ye),yn=function(ve){function ce(le,de,pe){var ae=ve.call(this,le,de,pe)||this;return ae.fillColor="transparent",ae.strokeColor="transparent",ae.strokeWidth=0,ae.strokeDasharray="",ae.textColor="transparent",ae.fontSize="1rem",ae.isMoved=!1,ae.captionText="Caption",ae.PADDING=5,ae.captionBoxWidth=0,ae.captionBoxHeight=0,ae.strokeColor=pe.defaultColor,ae.strokeWidth=pe.defaultStrokeWidth,ae.strokeDasharray=pe.defaultStrokeDasharray,ae.fillColor=pe.defaultFillColor,ae.textColor=pe.defaultStrokeColor,ae.fontFamily=pe.defaultFontFamily,ae.fontSize=pe.defaultCaptionFontSize,ae.captionText=pe.defaultCaptionText,ae.setStrokeColor=ae.setStrokeColor.bind(ae),ae.setFillColor=ae.setFillColor.bind(ae),ae.setStrokeWidth=ae.setStrokeWidth.bind(ae),ae.setStrokeDasharray=ae.setStrokeDasharray.bind(ae),ae.createVisual=ae.createVisual.bind(ae),ae.sizeCaption=ae.sizeCaption.bind(ae),ae.setCaptionText=ae.setCaptionText.bind(ae),ae.showTextEditor=ae.showTextEditor.bind(ae),ae.positionTextEditor=ae.positionTextEditor.bind(ae),ae.finishTextEditing=ae.finishTextEditing.bind(ae),ae.setFont=ae.setFont.bind(ae),ae.setTextColor=ae.setTextColor.bind(ae),ae.strokePanel=new je("Line color",be(pe.defaultColorSet,["transparent"]),ae.strokeColor),ae.strokePanel.onColorChanged=ae.setStrokeColor,ae.fillPanel=new je("Fill color",be(pe.defaultColorSet,["transparent"]),ae.fillColor,ye),ae.fillPanel.onColorChanged=ae.setFillColor,ae.strokeWidthPanel=new Se("Line width",pe.defaultStrokeWidths,pe.defaultStrokeWidth),ae.strokeWidthPanel.onWidthChanged=ae.setStrokeWidth,ae.strokeStylePanel=new Ke("Line style",pe.defaultStrokeDasharrays,pe.defaultStrokeDasharray),ae.strokeStylePanel.onStyleChanged=ae.setStrokeDasharray,ae.fontFamilyPanel=new Ie("Font",pe.defaultFontFamilies,pe.defaultFontFamily),ae.fontFamilyPanel.onFontChanged=ae.setFont,ae.textColorPanel=new je("Text color",pe.defaultColorSet,ae.textColor,Ve),ae.textColorPanel.onColorChanged=ae.setTextColor,ae}return Ae(ce,ve),ce.prototype.ownsTarget=function(le){return!(!ve.prototype.ownsTarget.call(this,le)&&le!==this.visual&&le!==this.frame&&le!==this.captionBg&&le!==this.captionElement)},ce.prototype.createVisual=function(){this.visual=Ee.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Ee.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Ee.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=Ee.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()},ce.prototype.setCaptionText=function(le){this.captionText=le,this.captionElement.textContent=this.captionText,this.sizeCaption()},ce.prototype.pointerDown=function(le,de){ve.prototype.pointerDown.call(this,le,de),this.isMoved=!1,this.pointerDownPoint=le,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(le),this._state="creating")},ce.prototype.manipulate=function(le){ve.prototype.manipulate.call(this,le),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(le.x-this.pointerDownPoint.x)>5||Math.abs(le.y-this.pointerDownPoint.y)>5)},ce.prototype.resize=function(le){ve.prototype.resize.call(this,le),this.setSize()},ce.prototype.sizeCaption=function(){var le=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=le.width+2*this.PADDING,this.captionBoxHeight=le.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Ee.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')"]]),Ee.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')"]])},ce.prototype.showTextEditor=function(){var le=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(de){de.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(de){de.key==="Enter"&&le.finishTextEditing(le.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(de){de.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){le.finishTextEditing(le.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){le.finishTextEditing(le.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},ce.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"))},ce.prototype.finishTextEditing=function(le){this.setCaptionText(le.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},ce.prototype.setFont=function(le){this.captionElement&&Ee.setAttributes(this.captionElement,[["font-family",le]]),this.fontFamily=le,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},ce.prototype.setTextColor=function(le){this.captionElement&&Ee.setAttributes(this.captionElement,[["fill",le]]),this.textColor=le,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},ce.prototype.setSize=function(){ve.prototype.setSize.call(this),Ee.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},ce.prototype.pointerUp=function(le){ve.prototype.pointerUp.call(this,le),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},ce.prototype.dblClick=function(le,de){ve.prototype.dblClick.call(this,le,de),this.showTextEditor()},ce.prototype.setStrokeColor=function(le){this.strokeColor=le,this.frame&&Ee.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(le),this.stateChanged()},ce.prototype.setFillColor=function(le){this.fillColor=le,this.captionBg&&Ee.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(le),this.stateChanged()},ce.prototype.setStrokeWidth=function(le){this.strokeWidth=le,this.frame&&Ee.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ce.prototype.setStrokeDasharray=function(le){this.strokeDasharray=le,this.frame&&Ee.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var le=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},ve.prototype.getState.call(this));return le.typeName=this.typeName,le},ce.prototype.restoreState=function(le){var de=le;this.fillColor=de.fillColor,this.strokeColor=de.strokeColor,this.strokeWidth=de.strokeWidth,this.strokeDasharray=de.strokeDasharray,this.textColor=de.textColor,this.fontFamily=de.fontFamily,this.captionText=de.captionText,this.fontSize=de.fontSize,this.createVisual(),ve.prototype.restoreState.call(this,le),this.setSize()},ce.prototype.scale=function(le,de){ve.prototype.scale.call(this,le,de),this.setSize()},ce.typeName="CaptionFrameMarker",ce.title="Caption frame marker",ce.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>',ce}(it),$t=function(){function ve(ce,le){le===void 0&&(le=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=ce,this.cancelable=le}return Object.defineProperty(ve.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ve.prototype.preventDefault=function(){this._defaultPrevented=!0},ve}(),hn=function(ve){function ce(le,de,pe){var ae=ve.call(this,le,!1)||this;return ae.dataUrl=de,ae.state=pe,ae}return Ae(ce,ve),ce}($t),tn=function(ve){function ce(le,de,pe){pe===void 0&&(pe=!1);var ae=ve.call(this,le,pe)||this;return ae.marker=de,ae}return Ae(ce,ve),ce}($t),en=function(){function ve(){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 ve.prototype.addEventListener=function(ce,le){this[ce].push(le)},ve.prototype.removeEventListener=function(ce,le){var de=this[ce].indexOf(le);de>-1&&this[ce].splice(de,1)},ve}(),Gt=function(){function ve(ce){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new vt,this._isOpen=!1,this.undoRedoManager=new lt,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 en,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ve.instanceCounter++,this.styles=new Pe(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=ce,this.targetRoot=document.body,this.width=ce.clientWidth,this.height=ce.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(ve.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ue,Ge,wt,Mt,at,Qt,Tt,bt,Kt,At,st,Dt,yn]},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ue,Ge,wt,Mt,Qt,Tt,bt]},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ue,Ge,wt,Mt,Tt]},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(ce){var le=this;this._availableMarkerTypes.splice(0),ce.forEach(function(de){if(typeof de=="string"){var pe=le.ALL_MARKER_TYPES.find(function(ae){return ae.typeName===de});pe!==void 0&&le._availableMarkerTypes.push(pe)}else le._availableMarkerTypes.push(de)})},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(ce){this._zoomLevel=ce,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(ve.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ve.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),he.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ve.prototype.show=function(){var ce=this;this.styles.styleSheetRoot===void 0&&Me.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Me.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(le){return le(new $t(ce))})},ve.prototype.render=function(){return ke(this,void 0,void 0,function(){var ce;return nt(this,function(le){switch(le.label){case 0:return this.setCurrentMarker(),(ce=new xe).naturalSize=this.renderAtNaturalSize,ce.imageType=this.renderImageType,ce.imageQuality=this.renderImageQuality,ce.markersOnly=this.renderMarkersOnly,ce.width=this.renderWidth,ce.height=this.renderHeight,[4,ce.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return le.sent(),[4,ce.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,le.sent()]}})})},ve.prototype.close=function(ce){var le=this;if(ce===void 0&&(ce=!1),this.isOpen){var de=!1;ce||this.eventListeners.beforeclose.forEach(function(pe){var ae=new $t(le,!0);pe(ae),ae.defaultPrevented&&(de=!0)}),de||(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(pe){return pe(new $t(le))}),this.detachEvents(),this._isOpen=!1)}},ve.prototype.addMarkersToToolbar=function(){for(var ce,le=[],de=0;de<arguments.length;de++)le[de]=arguments[de];(ce=this._availableMarkerTypes).push.apply(ce,le)},ve.prototype.addRenderEventListener=function(ce){this.addEventListener("render",function(le){ce(le.dataUrl,le.state)})},ve.prototype.removeRenderEventListener=function(ce){},ve.prototype.addCloseEventListener=function(ce){this.addEventListener("close",function(){ce()})},ve.prototype.removeCloseEventListener=function(ce){},ve.prototype.setupResizeObserver=function(){var ce=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){ce.resize(ce.target.clientWidth,ce.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return ce.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},ve.prototype.onPopupTargetResize=function(){var ce=1*this.target.clientWidth/this.target.clientHeight,le=this.editorCanvas.clientWidth/ce>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*ce:this.editorCanvas.clientWidth,de=le<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/ce;this.resize(le,de)},ve.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ve.prototype.resize=function(ce,le){this._isResizing=!0;var de=ce/this.imageWidth,pe=le/this.imageHeight;this.imageWidth=Math.round(ce),this.imageHeight=Math.round(le),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(de,pe),this._isResizing=!1},ve.prototype.scaleMarkers=function(ce,le){var de,pe=this;this._currentMarker&&this._currentMarker instanceof Mt?this._currentMarker.scale(ce,le):(de=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(ae){ae!==pe._currentMarker&&ae.scale(ce,le)}),de!==void 0&&this.setCurrentMarker(de)},ve.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"},ve.prototype.setTopLeft=function(){var ce=this.editingTarget.getBoundingClientRect(),le=this.editorCanvas.getBoundingClientRect();this.left=ce.left-le.left,this.top=ce.top-le.top},ve.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)},ve.prototype.addDefs=function(){for(var ce,le=[],de=0;de<arguments.length;de++)le[de]=arguments[de];this.defs=Ee.createDefs(),this.addDefsToImage(),(ce=this.defs).append.apply(ce,le)},ve.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},ve.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)},ve.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},ve.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},ve.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)},ve.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},ve.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)},ve.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 ce=document.createElement("a");ce.href="https://markerjs.com/",ce.target="_blank",ce.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>',ce.title="Powered by marker.js",ce.style.display="grid",ce.style.alignItems="center",ce.style.justifyItems="center",ce.style.padding="3px",ce.style.width="20px",ce.style.height="20px",this.logoUI.appendChild(ce),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ve.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")},ve.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"},ve.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ve.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 ce=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=ce+"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 Fe(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 et(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},ve.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ve.prototype.removeMarker=function(ce){this.markerImage.removeChild(ce.container),this.markers.indexOf(ce)>-1&&this.markers.splice(this.markers.indexOf(ce),1),ce.dispose()},ve.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())},ve.prototype.toolbarButtonClicked=function(ce,le){if(ce==="marker"&&le!==void 0)this.createNewMarker(le);else if(ce==="action")switch(le){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()}},ve.prototype.deleteSelectedMarker=function(){var ce=this;if(this._currentMarker!==void 0){var le=!1;if(this.eventListeners.markerbeforedelete.forEach(function(pe){var ae=new tn(ce,ce._currentMarker,!0);pe(ae),ae.defaultPrevented&&(le=!0)}),!le){var de=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(pe){return pe(new tn(ce,de))})}}},ve.prototype.clear=function(){var ce=this,le=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Te){var gt=new tn(ce,void 0,!0);Te(gt),gt.defaultPrevented&&(le=!0)}),!le)){this.setCurrentMarker();for(var de=function(Te){var gt=pe.markers[Te];pe.setCurrentMarker(pe.markers[Te]),pe._currentMarker.dispose(),pe.markerImage.removeChild(pe._currentMarker.container),pe.markers.splice(pe.markers.indexOf(pe._currentMarker),1),pe.eventListeners.markerdelete.forEach(function(Re){return Re(new tn(ce,gt))})},pe=this,ae=this.markers.length-1;ae>=0;ae--)de(ae);this.addUndoStep()}},Object.defineProperty(ve.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ve.prototype.showNotesEditor=function(){var ce;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=(ce=this._currentMarker.notes)!==null&&ce!==void 0?ce:"",this.overlayContainer.appendChild(this.notesArea))},ve.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)},ve.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ve.prototype.addUndoStep=function(){var ce=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var le=this.getState(),de=this.undoRedoManager.getLastUndoStep();if(!de||de.width===le.width&&de.height===le.height){var pe=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(le),pe<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(ae){return ae(new $t(ce))})}else this.undoRedoManager.replaceLastUndoStep(le),this.eventListeners.statechange.forEach(function(ae){return ae(new $t(ce))})}},ve.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ve.prototype.undoStep=function(){var ce=this,le=this.undoRedoManager.undo();le!==void 0&&(this.restoreState(le),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(de){return de(new $t(ce))}))},ve.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ve.prototype.redoStep=function(){var ce=this,le=this.undoRedoManager.redo();le!==void 0&&(this.restoreState(le),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(de){return de(new $t(ce))}))},ve.prototype.stepZoom=function(){var ce=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=ce<this.zoomSteps.length-1?this.zoomSteps[ce+1]:this.zoomSteps[0]},ve.prototype.panTo=function(ce){this.contentDiv.scrollBy({left:this.prevPanPoint.x-ce.x,top:this.prevPanPoint.y-ce.y}),this.prevPanPoint=ce},ve.prototype.startRenderAndClose=function(){return ke(this,void 0,void 0,function(){var ce,le,de=this;return nt(this,function(pe){switch(pe.label){case 0:return[4,this.render()];case 1:return ce=pe.sent(),le=this.getState(),this.eventListeners.render.forEach(function(ae){return ae(new hn(de,ce,le))}),this.close(!0),[2]}})})},ve.prototype.getState=function(ce){ce===!0&&this.setCurrentMarker();var le={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(de){return le.markers.push(de.getState())}),le},ve.prototype.restoreState=function(ce){var le=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);ce.markers.forEach(function(de){var pe=le._availableMarkerTypes.find(function(Te){return Te.typeName===de.typeName});if(pe!==void 0){var ae=le.addNewMarker(pe);ae.restoreState(de),le.markers.push(ae)}}),ce.width&&ce.height&&(ce.width!==this.imageWidth||ce.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/ce.width,this.imageHeight/ce.height),this.eventListeners.restorestate.forEach(function(de){return de(new $t(le))})},ve.prototype.addNewMarker=function(ce){var le=Ee.createGroup();return this.markerImage.appendChild(le),new ce(le,this.overlayContainer,this.settings)},ve.prototype.createNewMarker=function(ce){var le,de=this;(le=typeof ce=="string"?this._availableMarkerTypes.find(function(pe){return pe.typeName===ce}):ce)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(le),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(le.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(pe){return pe(new tn(de,de._currentMarker))}))},ve.prototype.markerCreated=function(ce){var le=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(ce),this.setCurrentMarker(ce),ce instanceof Ge&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Ge):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(de){return de(new tn(le,le._currentMarker))})},ve.prototype.colorChanged=function(ce){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=ce,this.settings.defaultStrokeColor=ce)},ve.prototype.fillColorChanged=function(ce){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=ce)},ve.prototype.markerStateChanged=function(ce){var le=this;this.eventListeners.markerchange.forEach(function(de){return de(new tn(le,ce))})},ve.prototype.setCurrentMarker=function(ce){var le=this;this._currentMarker!==ce&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(de){return de(new tn(le,le._currentMarker))})),this._currentMarker=ce,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(de){return de(new tn(le,le._currentMarker))}))},ve.prototype.onPointerDown=function(ce){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||ce.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var le=this.markers.find(function(de){return de.ownsTarget(ce.target)});le!==void 0?(this.setCurrentMarker(le),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ce.clientX,ce.clientY),ce.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:ce.clientX,y:ce.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ce.clientX,ce.clientY))},ve.prototype.onDblClick=function(ce){if(this._isFocused||this.focus(),this.mode==="select"){var le=this.markers.find(function(de){return de.ownsTarget(ce.target)});le!==void 0&&le!==this._currentMarker&&this.setCurrentMarker(le),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(ce.clientX,ce.clientY),ce.target):this.setCurrentMarker()}},ve.prototype.onPointerMove=function(ce){this.touchPoints!==1&&ce.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||ce.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(ce.clientX,ce.clientY)):this.zoomLevel>1&&this.panTo({x:ce.clientX,y:ce.clientY}))},ve.prototype.onPointerUp=function(ce){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(ce.clientX,ce.clientY)),this.isDragging=!1,this.addUndoStep()},ve.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ve.prototype.onKeyUp=function(ce){this._currentMarker===void 0||this.notesArea!==void 0||ce.key!=="Delete"&&ce.key!=="Backspace"||this.deleteSelectedMarker()},ve.prototype.clientToLocalCoordinates=function(ce,le){var de=this.markerImage.getBoundingClientRect();return{x:(ce-de.left)/this.zoomLevel,y:(le-de.top)/this.zoomLevel}},ve.prototype.onWindowResize=function(){this.positionUI()},ve.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var ce=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=ce+"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()},ve.prototype.addLicenseKey=function(ce){he.addKey(ce)},ve.prototype.addEventListener=function(ce,le){this.eventListeners.addEventListener(ce,le)},ve.prototype.removeEventListener=function(ce,le){this.eventListeners.removeEventListener(ce,le)},ve.prototype.renderState=function(ce){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(ce),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ve.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ve.prototype.focus=function(){var ce=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(le){return le(new $t(ce))}))},ve.prototype.blur=function(){var ce=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(le){return le(new $t(ce))}))},ve.instanceCounter=0,ve}()},5630:function(fn,Wt,oe){"use strict";var ue=oe(60499),Ae=oe(85899),ke=oe(18642),nt=oe(72190),be=oe(42244),Ee=oe(92310),he=oe.n(Ee),xe=oe(18929),Me=oe(59301),Pe=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],ct=(0,Me.forwardRef)(function(De,Fe){var et,We=De.prefixCls,je=We===void 0?"rc-checkbox":We,pt=De.className,rt=De.style,kt=De.checked,ft=De.disabled,it=De.defaultChecked,He=it===void 0?!1:it,Se=De.type,Ke=Se===void 0?"checkbox":Se,Ue=De.title,vt=De.onChange,Ye=(0,be.Z)(De,Pe),st=(0,Me.useRef)(null),Ie=(0,xe.Z)(He,{value:kt}),Mt=(0,nt.Z)(Ie,2),Ge=Mt[0],Ot=Mt[1];(0,Me.useImperativeHandle)(Fe,function(){return{focus:function(){var Tt;(Tt=st.current)===null||Tt===void 0||Tt.focus()},blur:function(){var Tt;(Tt=st.current)===null||Tt===void 0||Tt.blur()},input:st.current}});var wt=he()(je,pt,(et={},(0,ke.Z)(et,"".concat(je,"-checked"),Ge),(0,ke.Z)(et,"".concat(je,"-disabled"),ft),et)),At=function(Tt){ft||("checked"in De||Ot(Tt.target.checked),vt==null||vt({target:(0,Ae.Z)((0,Ae.Z)({},De),{},{type:Ke,checked:Tt.target.checked}),stopPropagation:function(){Tt.stopPropagation()},preventDefault:function(){Tt.preventDefault()},nativeEvent:Tt.nativeEvent}))};return Me.createElement("span",{className:wt,title:Ue,style:rt},Me.createElement("input",(0,ue.Z)({},Ye,{className:"".concat(je,"-input"),ref:st,onChange:At,disabled:ft,checked:!!Ge,type:Ke})),Me.createElement("span",{className:"".concat(je,"-inner")}))});Wt.Z=ct},31561:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return Ke}});var ue=oe(60499),Ae=oe(18642),ke=oe(72190),nt=oe(42244),be=oe(35593),Ee=oe(92310),he=oe.n(Ee),xe=oe(8654),Me=oe(59301),Pe=oe(10228),ct=oe(16089),De=Pe.Z.ESC,Fe=Pe.Z.TAB;function et(Ue){var vt=Ue.visible,Ye=Ue.triggerRef,st=Ue.onVisibleChange,Ie=Ue.autoFocus,Mt=Ue.overlayRef,Ge=Me.useRef(!1),Ot=function(){if(vt){var Tt,Ve;(Tt=Ye.current)===null||Tt===void 0||(Ve=Tt.focus)===null||Ve===void 0||Ve.call(Tt),st==null||st(!1)}},wt=function(){var Tt;return(Tt=Mt.current)!==null&&Tt!==void 0&&Tt.focus?(Mt.current.focus(),Ge.current=!0,!0):!1},At=function(Tt){switch(Tt.keyCode){case De:Ot();break;case Fe:{var Ve=!1;Ge.current||(Ve=wt()),Ve?Tt.preventDefault():Ot();break}}};Me.useEffect(function(){return vt?(window.addEventListener("keydown",At),Ie&&(0,ct.Z)(wt,3),function(){window.removeEventListener("keydown",At),Ge.current=!1}):function(){Ge.current=!1}},[vt])}var We=(0,Me.forwardRef)(function(Ue,vt){var Ye=Ue.overlay,st=Ue.arrow,Ie=Ue.prefixCls,Mt=(0,Me.useMemo)(function(){var Ot;return typeof Ye=="function"?Ot=Ye():Ot=Ye,Ot},[Ye]),Ge=(0,xe.sQ)(vt,Mt==null?void 0:Mt.ref);return Me.createElement(Me.Fragment,null,st&&Me.createElement("div",{className:"".concat(Ie,"-arrow")}),Me.cloneElement(Mt,{ref:(0,xe.Yr)(Mt)?Ge:void 0}))}),je=We,pt={adjustX:1,adjustY:1},rt=[0,0],kt={topLeft:{points:["bl","tl"],overflow:pt,offset:[0,-4],targetOffset:rt},top:{points:["bc","tc"],overflow:pt,offset:[0,-4],targetOffset:rt},topRight:{points:["br","tr"],overflow:pt,offset:[0,-4],targetOffset:rt},bottomLeft:{points:["tl","bl"],overflow:pt,offset:[0,4],targetOffset:rt},bottom:{points:["tc","bc"],overflow:pt,offset:[0,4],targetOffset:rt},bottomRight:{points:["tr","br"],overflow:pt,offset:[0,4],targetOffset:rt}},ft=kt,it=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function He(Ue,vt){var Ye,st=Ue.arrow,Ie=st===void 0?!1:st,Mt=Ue.prefixCls,Ge=Mt===void 0?"rc-dropdown":Mt,Ot=Ue.transitionName,wt=Ue.animation,At=Ue.align,Nt=Ue.placement,Tt=Nt===void 0?"bottomLeft":Nt,Ve=Ue.placements,ye=Ve===void 0?ft:Ve,bt=Ue.getPopupContainer,Qt=Ue.showAction,Kt=Ue.hideAction,at=Ue.overlayClassName,lt=Ue.overlayStyle,Dt=Ue.visible,yn=Ue.trigger,$t=yn===void 0?["hover"]:yn,hn=Ue.autoFocus,tn=Ue.overlay,en=Ue.children,Gt=Ue.onVisibleChange,ve=(0,nt.Z)(Ue,it),ce=Me.useState(),le=(0,ke.Z)(ce,2),de=le[0],pe=le[1],ae="visible"in Ue?Dt:de,Te=Me.useRef(null),gt=Me.useRef(null),Re=Me.useRef(null);Me.useImperativeHandle(vt,function(){return Te.current});var Be=function(ht){pe(ht),Gt==null||Gt(ht)};et({visible:ae,triggerRef:Re,onVisibleChange:Be,autoFocus:hn,overlayRef:gt});var yt=function(ht){var Le=Ue.onOverlayClick;pe(!1),Le&&Le(ht)},ut=function(){return Me.createElement(je,{ref:gt,overlay:tn,prefixCls:Ge,arrow:Ie})},Qe=function(){return typeof tn=="function"?ut:ut()},St=function(){var ht=Ue.minOverlayWidthMatchTrigger,Le=Ue.alignPoint;return"minOverlayWidthMatchTrigger"in Ue?ht:!Le},Jt=function(){var ht=Ue.openClassName;return ht!==void 0?ht:"".concat(Ge,"-open")},mt=Me.cloneElement(en,{className:he()((Ye=en.props)===null||Ye===void 0?void 0:Ye.className,ae&&Jt()),ref:(0,xe.Yr)(en)?(0,xe.sQ)(Re,en.ref):void 0}),Ft=Kt;return!Ft&&$t.indexOf("contextMenu")!==-1&&(Ft=["click"]),Me.createElement(be.Z,(0,ue.Z)({builtinPlacements:ye},ve,{prefixCls:Ge,ref:Te,popupClassName:he()(at,(0,Ae.Z)({},"".concat(Ge,"-show-arrow"),Ie)),popupStyle:lt,action:$t,showAction:Qt,hideAction:Ft,popupPlacement:Tt,popupAlign:At,popupTransitionName:Ot,popupAnimation:wt,popupVisible:ae,stretch:St()?"minWidth":"",popup:Qe(),onPopupVisibleChange:Be,onPopupClick:yt,getPopupContainer:bt}),mt)}var Se=Me.forwardRef(He),Ke=Se},93681:function(fn,Wt,oe){"use strict";oe.r(Wt),oe.d(Wt,{BaseInput:function(){return Pe},default:function(){return kt}});var ue=oe(60499),Ae=oe(85899),ke=oe(18642),nt=oe(43749),be=oe(92310),Ee=oe.n(be),he=oe(59301),xe=oe(5643),Me=function(it){var He,Se,Ke=it.inputElement,Ue=it.prefixCls,vt=it.prefix,Ye=it.suffix,st=it.addonBefore,Ie=it.addonAfter,Mt=it.className,Ge=it.style,Ot=it.disabled,wt=it.readOnly,At=it.focused,Nt=it.triggerFocus,Tt=it.allowClear,Ve=it.value,ye=it.handleReset,bt=it.hidden,Qt=it.classes,Kt=it.classNames,at=it.dataAttrs,lt=it.styles,Dt=it.components,yn=(Dt==null?void 0:Dt.affixWrapper)||"span",$t=(Dt==null?void 0:Dt.groupWrapper)||"span",hn=(Dt==null?void 0:Dt.wrapper)||"span",tn=(Dt==null?void 0:Dt.groupAddon)||"span",en=(0,he.useRef)(null),Gt=function(ut){var Qe;(Qe=en.current)!==null&&Qe!==void 0&&Qe.contains(ut.target)&&(Nt==null||Nt())},ve=function(){var ut;if(!Tt)return null;var Qe=!Ot&&!wt&&Ve,St="".concat(Ue,"-clear-icon"),Jt=(0,nt.Z)(Tt)==="object"&&Tt!==null&&Tt!==void 0&&Tt.clearIcon?Tt.clearIcon:"\u2716";return he.createElement("span",{onClick:ye,onMouseDown:function(Ft){return Ft.preventDefault()},className:Ee()(St,(ut={},(0,ke.Z)(ut,"".concat(St,"-hidden"),!Qe),(0,ke.Z)(ut,"".concat(St,"-has-suffix"),!!Ye),ut)),role:"button",tabIndex:-1},Jt)},ce=(0,he.cloneElement)(Ke,{value:Ve,hidden:bt,className:Ee()((He=Ke.props)===null||He===void 0?void 0:He.className,!(0,xe.X3)(it)&&!(0,xe.He)(it)&&Mt)||null,style:(0,Ae.Z)((0,Ae.Z)({},(Se=Ke.props)===null||Se===void 0?void 0:Se.style),!(0,xe.X3)(it)&&!(0,xe.He)(it)?Ge:{})});if((0,xe.X3)(it)){var le,de="".concat(Ue,"-affix-wrapper"),pe=Ee()(de,(le={},(0,ke.Z)(le,"".concat(de,"-disabled"),Ot),(0,ke.Z)(le,"".concat(de,"-focused"),At),(0,ke.Z)(le,"".concat(de,"-readonly"),wt),(0,ke.Z)(le,"".concat(de,"-input-with-clear-btn"),Ye&&Tt&&Ve),le),!(0,xe.He)(it)&&Mt,Qt==null?void 0:Qt.affixWrapper,Kt==null?void 0:Kt.affixWrapper),ae=(Ye||Tt)&&he.createElement("span",{className:Ee()("".concat(Ue,"-suffix"),Kt==null?void 0:Kt.suffix),style:lt==null?void 0:lt.suffix},ve(),Ye);ce=he.createElement(yn,(0,ue.Z)({className:pe,style:(0,Ae.Z)((0,Ae.Z)({},(0,xe.He)(it)?void 0:Ge),lt==null?void 0:lt.affixWrapper),hidden:!(0,xe.He)(it)&&bt,onClick:Gt},at==null?void 0:at.affixWrapper,{ref:en}),vt&&he.createElement("span",{className:Ee()("".concat(Ue,"-prefix"),Kt==null?void 0:Kt.prefix),style:lt==null?void 0:lt.prefix},vt),(0,he.cloneElement)(Ke,{value:Ve,hidden:null}),ae)}if((0,xe.He)(it)){var Te="".concat(Ue,"-group"),gt="".concat(Te,"-addon"),Re=Ee()("".concat(Ue,"-wrapper"),Te,Qt==null?void 0:Qt.wrapper),Be=Ee()("".concat(Ue,"-group-wrapper"),Mt,Qt==null?void 0:Qt.group);return he.createElement($t,{className:Be,style:Ge,hidden:bt},he.createElement(hn,{className:Re},st&&he.createElement(tn,{className:gt},st),(0,he.cloneElement)(ce,{hidden:null}),Ie&&he.createElement(tn,{className:gt},Ie)))}return ce},Pe=Me,ct=oe(77654),De=oe(72190),Fe=oe(42244),et=oe(18929),We=oe(2738),je=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],pt=(0,he.forwardRef)(function(ft,it){var He=ft.autoComplete,Se=ft.onChange,Ke=ft.onFocus,Ue=ft.onBlur,vt=ft.onPressEnter,Ye=ft.onKeyDown,st=ft.prefixCls,Ie=st===void 0?"rc-input":st,Mt=ft.disabled,Ge=ft.htmlSize,Ot=ft.className,wt=ft.maxLength,At=ft.suffix,Nt=ft.showCount,Tt=ft.type,Ve=Tt===void 0?"text":Tt,ye=ft.classes,bt=ft.classNames,Qt=ft.styles,Kt=(0,Fe.Z)(ft,je),at=(0,et.Z)(ft.defaultValue,{value:ft.value}),lt=(0,De.Z)(at,2),Dt=lt[0],yn=lt[1],$t=(0,he.useState)(!1),hn=(0,De.Z)($t,2),tn=hn[0],en=hn[1],Gt=(0,he.useRef)(null),ve=function(Be){Gt.current&&(0,xe.nH)(Gt.current,Be)};(0,he.useImperativeHandle)(it,function(){return{focus:ve,blur:function(){var Be;(Be=Gt.current)===null||Be===void 0||Be.blur()},setSelectionRange:function(Be,yt,ut){var Qe;(Qe=Gt.current)===null||Qe===void 0||Qe.setSelectionRange(Be,yt,ut)},select:function(){var Be;(Be=Gt.current)===null||Be===void 0||Be.select()},input:Gt.current}}),(0,he.useEffect)(function(){en(function(Re){return Re&&Mt?!1:Re})},[Mt]);var ce=function(Be){ft.value===void 0&&yn(Be.target.value),Gt.current&&(0,xe.rJ)(Gt.current,Be,Se)},le=function(Be){vt&&Be.key==="Enter"&&vt(Be),Ye==null||Ye(Be)},de=function(Be){en(!0),Ke==null||Ke(Be)},pe=function(Be){en(!1),Ue==null||Ue(Be)},ae=function(Be){yn(""),ve(),Gt.current&&(0,xe.rJ)(Gt.current,Be,Se)},Te=function(){var Be=(0,We.Z)(ft,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return he.createElement("input",(0,ue.Z)({autoComplete:He},Be,{onChange:ce,onFocus:de,onBlur:pe,onKeyDown:le,className:Ee()(Ie,(0,ke.Z)({},"".concat(Ie,"-disabled"),Mt),bt==null?void 0:bt.input),style:Qt==null?void 0:Qt.input,ref:Gt,size:Ge,type:Ve}))},gt=function(){var Be=Number(wt)>0;if(At||Nt){var yt=(0,xe.D7)(Dt),ut=(0,ct.Z)(yt).length,Qe=(0,nt.Z)(Nt)==="object"?Nt.formatter({value:yt,count:ut,maxLength:wt}):"".concat(ut).concat(Be?" / ".concat(wt):"");return he.createElement(he.Fragment,null,!!Nt&&he.createElement("span",{className:Ee()("".concat(Ie,"-show-count-suffix"),(0,ke.Z)({},"".concat(Ie,"-show-count-has-suffix"),!!At),bt==null?void 0:bt.count),style:(0,Ae.Z)({},Qt==null?void 0:Qt.count)},Qe),At)}return null};return he.createElement(Pe,(0,ue.Z)({},Kt,{prefixCls:Ie,className:Ot,inputElement:Te(),handleReset:ae,value:(0,xe.D7)(Dt),focused:tn,triggerFocus:ve,suffix:gt(),disabled:Mt,classes:ye,classNames:bt,styles:Qt}))}),rt=pt,kt=rt},5643:function(fn,Wt,oe){"use strict";oe.d(Wt,{D7:function(){return be},He:function(){return ue},X3:function(){return Ae},nH:function(){return nt},rJ:function(){return ke}});function ue(Ee){return!!(Ee.addonBefore||Ee.addonAfter)}function Ae(Ee){return!!(Ee.prefix||Ee.suffix||Ee.allowClear)}function ke(Ee,he,xe,Me){if(xe){var Pe=he;if(he.type==="click"){var ct=Ee.cloneNode(!0);Pe=Object.create(he,{target:{value:ct},currentTarget:{value:ct}}),ct.value="",xe(Pe);return}if(Me!==void 0){Pe=Object.create(he,{target:{value:Ee},currentTarget:{value:Ee}}),Ee.value=Me,xe(Pe);return}xe(Pe)}}function nt(Ee,he){if(Ee){Ee.focus(he);var xe=he||{},Me=xe.cursor;if(Me){var Pe=Ee.value.length;switch(Me){case"start":Ee.setSelectionRange(0,0);break;case"end":Ee.setSelectionRange(Pe,Pe);break;default:Ee.setSelectionRange(0,Pe)}}}}function be(Ee){return typeof Ee=="undefined"||Ee===null?"":String(Ee)}},15285:function(fn,Wt,oe){"use strict";oe.d(Wt,{iz:function(){return Tn},ck:function(){return Zn},BW:function(){return An},sN:function(){return Zn},Wd:function(){return Rt},ZP:function(){return rr},Xl:function(){return Ye}});var ue=oe(60499),Ae=oe(18642),ke=oe(85899),nt=oe(77654),be=oe(72190),Ee=oe(42244),he=oe(92310),xe=oe.n(he),Me=oe(83836),Pe=oe(18929),ct=oe(13697),De=oe(48736),Fe=oe(59301),et=oe(4676),We=Fe.createContext(null);function je(It,on){return It===void 0?null:"".concat(It,"-").concat(on)}function pt(It){var on=Fe.useContext(We);return je(on,It)}var rt=oe(80547),kt=["children","locked"],ft=Fe.createContext(null);function it(It,on){var un=(0,ke.Z)({},It);return Object.keys(on).forEach(function(xn){var dn=on[xn];dn!==void 0&&(un[xn]=dn)}),un}function He(It){var on=It.children,un=It.locked,xn=(0,Ee.Z)(It,kt),dn=Fe.useContext(ft),vn=(0,rt.Z)(function(){return it(dn,xn)},[dn,xn],function(pn,On){return!un&&(pn[0]!==On[0]||!(0,ct.Z)(pn[1],On[1],!0))});return Fe.createElement(ft.Provider,{value:vn},on)}var Se=[],Ke=Fe.createContext(null);function Ue(){return Fe.useContext(Ke)}var vt=Fe.createContext(Se);function Ye(It){var on=Fe.useContext(vt);return Fe.useMemo(function(){return It!==void 0?[].concat((0,nt.Z)(on),[It]):on},[on,It])}var st=Fe.createContext(null),Ie=Fe.createContext({}),Mt=Ie,Ge=oe(29194);function Ot(It){var on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,Ge.Z)(It)){var un=It.nodeName.toLowerCase(),xn=["input","select","textarea","button"].includes(un)||It.isContentEditable||un==="a"&&!!It.getAttribute("href"),dn=It.getAttribute("tabindex"),vn=Number(dn),pn=null;return dn&&!Number.isNaN(vn)?pn=vn:xn&&pn===null&&(pn=0),xn&&It.disabled&&(pn=null),pn!==null&&(pn>=0||on&&pn<0)}return!1}function wt(It){var on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,un=(0,nt.Z)(It.querySelectorAll("*")).filter(function(xn){return Ot(xn,on)});return Ot(It,on)&&un.unshift(It),un}var At=null;function Nt(){At=document.activeElement}function Tt(){At=null}function Ve(){if(At)try{At.focus()}catch(It){}}function ye(It,on){if(on.keyCode===9){var un=wt(It),xn=un[on.shiftKey?0:un.length-1],dn=xn===document.activeElement||It===document.activeElement;if(dn){var vn=un[on.shiftKey?un.length-1:0];vn.focus(),on.preventDefault()}}}var bt=oe(10228),Qt=oe(16089),Kt=bt.Z.LEFT,at=bt.Z.RIGHT,lt=bt.Z.UP,Dt=bt.Z.DOWN,yn=bt.Z.ENTER,$t=bt.Z.ESC,hn=bt.Z.HOME,tn=bt.Z.END,en=[lt,Dt,Kt,at];function Gt(It,on,un,xn){var dn,vn,pn,On,Rn="prev",Gn="next",Er="children",Hr="parent";if(It==="inline"&&xn===yn)return{inlineTrigger:!0};var Xr=(dn={},(0,Ae.Z)(dn,lt,Rn),(0,Ae.Z)(dn,Dt,Gn),dn),Lr=(vn={},(0,Ae.Z)(vn,Kt,un?Gn:Rn),(0,Ae.Z)(vn,at,un?Rn:Gn),(0,Ae.Z)(vn,Dt,Er),(0,Ae.Z)(vn,yn,Er),vn),vr=(pn={},(0,Ae.Z)(pn,lt,Rn),(0,Ae.Z)(pn,Dt,Gn),(0,Ae.Z)(pn,yn,Er),(0,Ae.Z)(pn,$t,Hr),(0,Ae.Z)(pn,Kt,un?Er:Hr),(0,Ae.Z)(pn,at,un?Hr:Er),pn),Jr={inline:Xr,horizontal:Lr,vertical:vr,inlineSub:Xr,horizontalSub:vr,verticalSub:vr},Gr=(On=Jr["".concat(It).concat(on?"":"Sub")])===null||On===void 0?void 0:On[xn];switch(Gr){case Rn:return{offset:-1,sibling:!0};case Gn:return{offset:1,sibling:!0};case Hr:return{offset:-1,sibling:!1};case Er:return{offset:1,sibling:!1};default:return null}}function ve(It){for(var on=It;on;){if(on.getAttribute("data-menu-list"))return on;on=on.parentElement}return null}function ce(It,on){for(var un=It||document.activeElement;un;){if(on.has(un))return un;un=un.parentElement}return null}function le(It,on){var un=wt(It,!0);return un.filter(function(xn){return on.has(xn)})}function de(It,on,un){var xn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!It)return null;var dn=le(It,on),vn=dn.length,pn=dn.findIndex(function(On){return un===On});return xn<0?pn===-1?pn=vn-1:pn-=1:xn>0&&(pn+=1),pn=(pn+vn)%vn,dn[pn]}var pe=function(on,un){var xn=new Set,dn=new Map,vn=new Map;return on.forEach(function(pn){var On=document.querySelector("[data-menu-id='".concat(je(un,pn),"']"));On&&(xn.add(On),vn.set(On,pn),dn.set(pn,On))}),{elements:xn,key2element:dn,element2key:vn}};function ae(It,on,un,xn,dn,vn,pn,On,Rn,Gn){var Er=Fe.useRef(),Hr=Fe.useRef();Hr.current=on;var Xr=function(){Qt.Z.cancel(Er.current)};return Fe.useEffect(function(){return function(){Xr()}},[]),function(Lr){var vr=Lr.which;if([].concat(en,[yn,$t,hn,tn]).includes(vr)){var Jr=vn(),Gr=pe(Jr,xn),Zr=Gr,xr=Zr.elements,Nr=Zr.key2element,Qr=Zr.element2key,Kr=Nr.get(on),hi=ce(Kr,xr),Bi=Qr.get(hi),Ur=Gt(It,pn(Bi,!0).length===1,un,vr);if(!Ur&&vr!==hn&&vr!==tn)return;(en.includes(vr)||[hn,tn].includes(vr))&&Lr.preventDefault();var Xn=function(xi){if(xi){var oa=xi,Br=xi.querySelector("a");Br!=null&&Br.getAttribute("href")&&(oa=Br);var Ar=Qr.get(xi);On(Ar),Xr(),Er.current=(0,Qt.Z)(function(){Hr.current===Ar&&oa.focus()})}};if([hn,tn].includes(vr)||Ur.sibling||!hi){var Kn;!hi||It==="inline"?Kn=dn.current:Kn=ve(hi);var Wr,Tr=le(Kn,xr);vr===hn?Wr=Tr[0]:vr===tn?Wr=Tr[Tr.length-1]:Wr=de(Kn,xr,hi,Ur.offset),Xn(Wr)}else if(Ur.inlineTrigger)Rn(Bi);else if(Ur.offset>0)Rn(Bi,!0),Xr(),Er.current=(0,Qt.Z)(function(){Gr=pe(Jr,xn);var $i=hi.getAttribute("aria-controls"),xi=document.getElementById($i),oa=de(xi,Gr.elements);Xn(oa)},5);else if(Ur.offset<0){var ri=pn(Bi,!0),pi=ri[ri.length-2],li=Nr.get(pi);Rn(pi,!1),Xn(li)}}Gn==null||Gn(Lr)}}function Te(It){Promise.resolve().then(It)}var gt="__RC_UTIL_PATH_SPLIT__",Re=function(on){return on.join(gt)},Be=function(on){return on.split(gt)},yt="rc-menu-more";function ut(){var It=Fe.useState({}),on=(0,be.Z)(It,2),un=on[1],xn=(0,Fe.useRef)(new Map),dn=(0,Fe.useRef)(new Map),vn=Fe.useState([]),pn=(0,be.Z)(vn,2),On=pn[0],Rn=pn[1],Gn=(0,Fe.useRef)(0),Er=(0,Fe.useRef)(!1),Hr=function(){Er.current||un({})},Xr=(0,Fe.useCallback)(function(Nr,Qr){var Kr=Re(Qr);dn.current.set(Kr,Nr),xn.current.set(Nr,Kr),Gn.current+=1;var hi=Gn.current;Te(function(){hi===Gn.current&&Hr()})},[]),Lr=(0,Fe.useCallback)(function(Nr,Qr){var Kr=Re(Qr);dn.current.delete(Kr),xn.current.delete(Nr)},[]),vr=(0,Fe.useCallback)(function(Nr){Rn(Nr)},[]),Jr=(0,Fe.useCallback)(function(Nr,Qr){var Kr=xn.current.get(Nr)||"",hi=Be(Kr);return Qr&&On.includes(hi[0])&&hi.unshift(yt),hi},[On]),Gr=(0,Fe.useCallback)(function(Nr,Qr){return Nr.some(function(Kr){var hi=Jr(Kr,!0);return hi.includes(Qr)})},[Jr]),Zr=function(){var Qr=(0,nt.Z)(xn.current.keys());return On.length&&Qr.push(yt),Qr},xr=(0,Fe.useCallback)(function(Nr){var Qr="".concat(xn.current.get(Nr)).concat(gt),Kr=new Set;return(0,nt.Z)(dn.current.keys()).forEach(function(hi){hi.startsWith(Qr)&&Kr.add(dn.current.get(hi))}),Kr},[]);return Fe.useEffect(function(){return function(){Er.current=!0}},[]),{registerPath:Xr,unregisterPath:Lr,refreshOverflowKeys:vr,isSubPathKey:Gr,getKeyPath:Jr,getKeys:Zr,getSubPathKeys:xr}}function Qe(It){var on=Fe.useRef(It);on.current=It;var un=Fe.useCallback(function(){for(var xn,dn=arguments.length,vn=new Array(dn),pn=0;pn<dn;pn++)vn[pn]=arguments[pn];return(xn=on.current)===null||xn===void 0?void 0:xn.call.apply(xn,[on].concat(vn))},[]);return It?un:void 0}var St=Math.random().toFixed(5).toString().slice(2),Jt=0;function mt(It){var on=(0,Pe.Z)(It,{value:It}),un=(0,be.Z)(on,2),xn=un[0],dn=un[1];return Fe.useEffect(function(){Jt+=1;var vn="".concat(St,"-").concat(Jt);dn("rc-menu-uuid-".concat(vn))},[]),xn}var Ft=oe(38705),nn=oe(17212),ht=oe(39153),Le=oe(55401),dt=oe(2738),Pt=oe(8654);function _t(It,on,un,xn){var dn=Fe.useContext(ft),vn=dn.activeKey,pn=dn.onActive,On=dn.onInactive,Rn={active:vn===It};return on||(Rn.onMouseEnter=function(Gn){un==null||un({key:It,domEvent:Gn}),pn(It)},Rn.onMouseLeave=function(Gn){xn==null||xn({key:It,domEvent:Gn}),On(It)}),Rn}function Xt(It){var on=Fe.useContext(ft),un=on.mode,xn=on.rtl,dn=on.inlineIndent;if(un!=="inline")return null;var vn=It;return xn?{paddingRight:vn*dn}:{paddingLeft:vn*dn}}function gn(It){var on=It.icon,un=It.props,xn=It.children,dn;return on===null||on===!1?null:(typeof on=="function"?dn=Fe.createElement(on,(0,ke.Z)({},un)):typeof on!="boolean"&&(dn=on),dn||xn||null)}var En=["item"];function wn(It){var on=It.item,un=(0,Ee.Z)(It,En);return Object.defineProperty(un,"item",{get:function(){return(0,De.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),on}}),un}var _n=["title","attribute","elementRef"],$n=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Dn=["active"],qn=function(It){(0,ht.Z)(un,It);var on=(0,Le.Z)(un);function un(){return(0,Ft.Z)(this,un),on.apply(this,arguments)}return(0,nn.Z)(un,[{key:"render",value:function(){var dn=this.props,vn=dn.title,pn=dn.attribute,On=dn.elementRef,Rn=(0,Ee.Z)(dn,_n),Gn=(0,dt.Z)(Rn,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,De.ZP)(!pn,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),Fe.createElement(Me.Z.Item,(0,ue.Z)({},pn,{title:typeof vn=="string"?vn:void 0},Gn,{ref:On}))}}]),un}(Fe.Component),fr=Fe.forwardRef(function(It,on){var un,xn=It.style,dn=It.className,vn=It.eventKey,pn=It.warnKey,On=It.disabled,Rn=It.itemIcon,Gn=It.children,Er=It.role,Hr=It.onMouseEnter,Xr=It.onMouseLeave,Lr=It.onClick,vr=It.onKeyDown,Jr=It.onFocus,Gr=(0,Ee.Z)(It,$n),Zr=pt(vn),xr=Fe.useContext(ft),Nr=xr.prefixCls,Qr=xr.onItemClick,Kr=xr.disabled,hi=xr.overflowDisabled,Bi=xr.itemIcon,Ur=xr.selectedKeys,Xn=xr.onActive,Kn=Fe.useContext(Mt),Wr=Kn._internalRenderMenuItem,Tr="".concat(Nr,"-item"),ri=Fe.useRef(),pi=Fe.useRef(),li=Kr||On,$i=(0,Pt.x1)(on,pi),xi=Ye(vn),oa=function(cr){return{key:vn,keyPath:(0,nt.Z)(xi).reverse(),item:ri.current,domEvent:cr}},Br=Rn||Bi,Ar=_t(vn,li,Hr,Xr),fi=Ar.active,mi=(0,Ee.Z)(Ar,Dn),la=Ur.includes(vn),Ua=Xt(xi.length),Da=function(cr){if(!li){var Or=oa(cr);Lr==null||Lr(wn(Or)),Qr(Or)}},Wi=function(cr){if(vr==null||vr(cr),cr.which===bt.Z.ENTER){var Or=oa(cr);Lr==null||Lr(wn(Or)),Qr(Or)}},ma=function(cr){Xn(vn),Jr==null||Jr(cr)},na={};It.role==="option"&&(na["aria-selected"]=la);var sr=Fe.createElement(qn,(0,ue.Z)({ref:ri,elementRef:$i,role:Er===null?"none":Er||"menuitem",tabIndex:On?null:-1,"data-menu-id":hi&&Zr?null:Zr},Gr,mi,na,{component:"li","aria-disabled":On,style:(0,ke.Z)((0,ke.Z)({},Ua),xn),className:xe()(Tr,(un={},(0,Ae.Z)(un,"".concat(Tr,"-active"),fi),(0,Ae.Z)(un,"".concat(Tr,"-selected"),la),(0,Ae.Z)(un,"".concat(Tr,"-disabled"),li),un),dn),onClick:Da,onKeyDown:Wi,onFocus:ma}),Gn,Fe.createElement(gn,{props:(0,ke.Z)((0,ke.Z)({},It),{},{isSelected:la}),icon:Br}));return Wr&&(sr=Wr(sr,It,{selected:la})),sr});function br(It,on){var un=It.eventKey,xn=Ue(),dn=Ye(un);return Fe.useEffect(function(){if(xn)return xn.registerPath(un,dn),function(){xn.unregisterPath(un,dn)}},[dn]),xn?null:Fe.createElement(fr,(0,ue.Z)({},It,{ref:on}))}var Zn=Fe.forwardRef(br),ar=["className","children"],Cr=function(on,un){var xn=on.className,dn=on.children,vn=(0,Ee.Z)(on,ar),pn=Fe.useContext(ft),On=pn.prefixCls,Rn=pn.mode,Gn=pn.rtl;return Fe.createElement("ul",(0,ue.Z)({className:xe()(On,Gn&&"".concat(On,"-rtl"),"".concat(On,"-sub"),"".concat(On,"-").concat(Rn==="inline"?"inline":"vertical"),xn),role:"menu"},vn,{"data-menu-list":!0,ref:un}),dn)},jn=Fe.forwardRef(Cr);jn.displayName="SubMenuList";var Dr=jn,ei=oe(11592);function Fr(It,on){return(0,ei.Z)(It).map(function(un,xn){if(Fe.isValidElement(un)){var dn,vn,pn=un.key,On=(dn=(vn=un.props)===null||vn===void 0?void 0:vn.eventKey)!==null&&dn!==void 0?dn:pn,Rn=On==null;Rn&&(On="tmp_key-".concat([].concat((0,nt.Z)(on),[xn]).join("-")));var Gn={key:On,eventKey:On};return Fe.cloneElement(un,Gn)}return un})}var ai=oe(35593),ti={adjustX:1,adjustY:1},er={topLeft:{points:["bl","tl"],overflow:ti},topRight:{points:["br","tr"],overflow:ti},bottomLeft:{points:["tl","bl"],overflow:ti},bottomRight:{points:["tr","br"],overflow:ti},leftTop:{points:["tr","tl"],overflow:ti},leftBottom:{points:["br","bl"],overflow:ti},rightTop:{points:["tl","tr"],overflow:ti},rightBottom:{points:["bl","br"],overflow:ti}},hr={topLeft:{points:["bl","tl"],overflow:ti},topRight:{points:["br","tr"],overflow:ti},bottomLeft:{points:["tl","bl"],overflow:ti},bottomRight:{points:["tr","br"],overflow:ti},rightTop:{points:["tr","tl"],overflow:ti},rightBottom:{points:["br","bl"],overflow:ti},leftTop:{points:["tl","tr"],overflow:ti},leftBottom:{points:["bl","br"],overflow:ti}},zn=null;function Hn(It,on,un){if(on)return on;if(un)return un[It]||un.other}var wr={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Bt(It){var on=It.prefixCls,un=It.visible,xn=It.children,dn=It.popup,vn=It.popupStyle,pn=It.popupClassName,On=It.popupOffset,Rn=It.disabled,Gn=It.mode,Er=It.onVisibleChange,Hr=Fe.useContext(ft),Xr=Hr.getPopupContainer,Lr=Hr.rtl,vr=Hr.subMenuOpenDelay,Jr=Hr.subMenuCloseDelay,Gr=Hr.builtinPlacements,Zr=Hr.triggerSubMenuAction,xr=Hr.forceSubMenuRender,Nr=Hr.rootClassName,Qr=Hr.motion,Kr=Hr.defaultMotions,hi=Fe.useState(!1),Bi=(0,be.Z)(hi,2),Ur=Bi[0],Xn=Bi[1],Kn=Lr?(0,ke.Z)((0,ke.Z)({},hr),Gr):(0,ke.Z)((0,ke.Z)({},er),Gr),Wr=wr[Gn],Tr=Hn(Gn,Qr,Kr),ri=Fe.useRef(Tr);Gn!=="inline"&&(ri.current=Tr);var pi=(0,ke.Z)((0,ke.Z)({},ri.current),{},{leavedClassName:"".concat(on,"-hidden"),removeOnLeave:!1,motionAppear:!0}),li=Fe.useRef();return Fe.useEffect(function(){return li.current=(0,Qt.Z)(function(){Xn(un)}),function(){Qt.Z.cancel(li.current)}},[un]),Fe.createElement(ai.Z,{prefixCls:on,popupClassName:xe()("".concat(on,"-popup"),(0,Ae.Z)({},"".concat(on,"-rtl"),Lr),pn,Nr),stretch:Gn==="horizontal"?"minWidth":null,getPopupContainer:Xr,builtinPlacements:Kn,popupPlacement:Wr,popupVisible:Ur,popup:dn,popupStyle:vn,popupAlign:On&&{offset:On},action:Rn?[]:[Zr],mouseEnterDelay:vr,mouseLeaveDelay:Jr,onPopupVisibleChange:Er,forceRender:xr,popupMotion:pi,fresh:!0},xn)}var ze=oe(77900);function Xe(It){var on=It.id,un=It.open,xn=It.keyPath,dn=It.children,vn="inline",pn=Fe.useContext(ft),On=pn.prefixCls,Rn=pn.forceSubMenuRender,Gn=pn.motion,Er=pn.defaultMotions,Hr=pn.mode,Xr=Fe.useRef(!1);Xr.current=Hr===vn;var Lr=Fe.useState(!Xr.current),vr=(0,be.Z)(Lr,2),Jr=vr[0],Gr=vr[1],Zr=Xr.current?un:!1;Fe.useEffect(function(){Xr.current&&Gr(!1)},[Hr]);var xr=(0,ke.Z)({},Hn(vn,Gn,Er));xn.length>1&&(xr.motionAppear=!1);var Nr=xr.onVisibleChanged;return xr.onVisibleChanged=function(Qr){return!Xr.current&&!Qr&&Gr(!0),Nr==null?void 0:Nr(Qr)},Jr?null:Fe.createElement(He,{mode:vn,locked:!Xr.current},Fe.createElement(ze.default,(0,ue.Z)({visible:Zr},xr,{forceRender:Rn,removeOnLeave:!1,leavedClassName:"".concat(On,"-hidden")}),function(Qr){var Kr=Qr.className,hi=Qr.style;return Fe.createElement(Dr,{id:on,className:Kr,style:hi},dn)}))}var Je=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],qe=["active"],Ct=function(on){var un,xn=on.style,dn=on.className,vn=on.title,pn=on.eventKey,On=on.warnKey,Rn=on.disabled,Gn=on.internalPopupClose,Er=on.children,Hr=on.itemIcon,Xr=on.expandIcon,Lr=on.popupClassName,vr=on.popupOffset,Jr=on.popupStyle,Gr=on.onClick,Zr=on.onMouseEnter,xr=on.onMouseLeave,Nr=on.onTitleClick,Qr=on.onTitleMouseEnter,Kr=on.onTitleMouseLeave,hi=(0,Ee.Z)(on,Je),Bi=pt(pn),Ur=Fe.useContext(ft),Xn=Ur.prefixCls,Kn=Ur.mode,Wr=Ur.openKeys,Tr=Ur.disabled,ri=Ur.overflowDisabled,pi=Ur.activeKey,li=Ur.selectedKeys,$i=Ur.itemIcon,xi=Ur.expandIcon,oa=Ur.onItemClick,Br=Ur.onOpenChange,Ar=Ur.onActive,fi=Fe.useContext(Mt),mi=fi._internalRenderSubMenuItem,la=Fe.useContext(st),Ua=la.isSubPathKey,Da=Ye(),Wi="".concat(Xn,"-submenu"),ma=Tr||Rn,na=Fe.useRef(),sr=Fe.useRef(),ur=Hr!=null?Hr:$i,cr=Xr!=null?Xr:xi,Or=Wr.includes(pn),Ki=!ri&&Or,ea=Ua(li,pn),ra=_t(pn,ma,Qr,Kr),qi=ra.active,ia=(0,Ee.Z)(ra,qe),ga=Fe.useState(!1),Va=(0,be.Z)(ga,2),Ra=Va[0],ko=Va[1],co=function(Na){ma||ko(Na)},za=function(Na){co(!0),Zr==null||Zr({key:pn,domEvent:Na})},ds=function(Na){co(!1),xr==null||xr({key:pn,domEvent:Na})},wo=Fe.useMemo(function(){return qi||(Kn!=="inline"?Ra||Ua([pi],pn):!1)},[Kn,qi,pi,Ra,pn,Ua]),xo=Xt(Da.length),Za=function(Na){ma||(Nr==null||Nr({key:pn,domEvent:Na}),Kn==="inline"&&Br(pn,!Or))},va=Qe(function(Wa){Gr==null||Gr(wn(Wa)),oa(Wa)}),di=function(Na){Kn!=="inline"&&Br(pn,Na)},Ri=function(){Ar(pn)},ki=Bi&&"".concat(Bi,"-popup"),ci=Fe.createElement("div",(0,ue.Z)({role:"menuitem",style:xo,className:"".concat(Wi,"-title"),tabIndex:ma?null:-1,ref:na,title:typeof vn=="string"?vn:null,"data-menu-id":ri&&Bi?null:Bi,"aria-expanded":Ki,"aria-haspopup":!0,"aria-controls":ki,"aria-disabled":ma,onClick:Za,onFocus:Ri},ia),vn,Fe.createElement(gn,{icon:Kn!=="horizontal"?cr:void 0,props:(0,ke.Z)((0,ke.Z)({},on),{},{isOpen:Ki,isSubMenu:!0})},Fe.createElement("i",{className:"".concat(Wi,"-arrow")}))),Qi=Fe.useRef(Kn);if(Kn!=="inline"&&Da.length>1?Qi.current="vertical":Qi.current=Kn,!ri){var ji=Qi.current;ci=Fe.createElement(Bt,{mode:ji,prefixCls:Wi,visible:!Gn&&Ki&&Kn!=="inline",popupClassName:Lr,popupOffset:vr,popupStyle:Jr,popup:Fe.createElement(He,{mode:ji==="horizontal"?"vertical":ji},Fe.createElement(Dr,{id:ki,ref:sr},Er)),disabled:ma,onVisibleChange:di},ci)}var Pa=Fe.createElement(Me.Z.Item,(0,ue.Z)({role:"none"},hi,{component:"li",style:xn,className:xe()(Wi,"".concat(Wi,"-").concat(Kn),dn,(un={},(0,Ae.Z)(un,"".concat(Wi,"-open"),Ki),(0,Ae.Z)(un,"".concat(Wi,"-active"),wo),(0,Ae.Z)(un,"".concat(Wi,"-selected"),ea),(0,Ae.Z)(un,"".concat(Wi,"-disabled"),ma),un)),onMouseEnter:za,onMouseLeave:ds}),ci,!ri&&Fe.createElement(Xe,{id:ki,open:Ki,keyPath:Da},Er));return mi&&(Pa=mi(Pa,on,{selected:ea,active:wo,open:Ki,disabled:ma})),Fe.createElement(He,{onItemClick:va,mode:Kn==="horizontal"?"vertical":Kn,itemIcon:ur,expandIcon:cr},Pa)};function Rt(It){var on=It.eventKey,un=It.children,xn=Ye(on),dn=Fr(un,xn),vn=Ue();Fe.useEffect(function(){if(vn)return vn.registerPath(on,xn),function(){vn.unregisterPath(on,xn)}},[xn]);var pn;return vn?pn=dn:pn=Fe.createElement(Ct,It,dn),Fe.createElement(vt.Provider,{value:xn},pn)}var rn=oe(43749),Vt=["className","title","eventKey","children"],ln=["children"],Cn=function(on){var un=on.className,xn=on.title,dn=on.eventKey,vn=on.children,pn=(0,Ee.Z)(on,Vt),On=Fe.useContext(ft),Rn=On.prefixCls,Gn="".concat(Rn,"-item-group");return Fe.createElement("li",(0,ue.Z)({role:"presentation"},pn,{onClick:function(Hr){return Hr.stopPropagation()},className:xe()(Gn,un)}),Fe.createElement("div",{role:"presentation",className:"".concat(Gn,"-title"),title:typeof xn=="string"?xn:void 0},xn),Fe.createElement("ul",{role:"group",className:"".concat(Gn,"-list")},vn))};function An(It){var on=It.children,un=(0,Ee.Z)(It,ln),xn=Ye(un.eventKey),dn=Fr(on,xn),vn=Ue();return vn?dn:Fe.createElement(Cn,(0,dt.Z)(un,["warnKey"]),dn)}function Tn(It){var on=It.className,un=It.style,xn=Fe.useContext(ft),dn=xn.prefixCls,vn=Ue();return vn?null:Fe.createElement("li",{role:"separator",className:xe()("".concat(dn,"-item-divider"),on),style:un})}var Ut=["label","children","key","type"];function bn(It){return(It||[]).map(function(on,un){if(on&&(0,rn.Z)(on)==="object"){var xn=on,dn=xn.label,vn=xn.children,pn=xn.key,On=xn.type,Rn=(0,Ee.Z)(xn,Ut),Gn=pn!=null?pn:"tmp-".concat(un);return vn||On==="group"?On==="group"?Fe.createElement(An,(0,ue.Z)({key:Gn},Rn,{title:dn}),bn(vn)):Fe.createElement(Rt,(0,ue.Z)({key:Gn},Rn,{title:dn}),bn(vn)):On==="divider"?Fe.createElement(Tn,(0,ue.Z)({key:Gn},Rn)):Fe.createElement(Zn,(0,ue.Z)({key:Gn},Rn),dn)}return null}).filter(function(on){return on})}function Vn(It,on,un){var xn=It;return on&&(xn=bn(on)),Fr(xn,un)}var Fn=["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"],Jn=[],Wn=Fe.forwardRef(function(It,on){var un,xn,dn=It,vn=dn.prefixCls,pn=vn===void 0?"rc-menu":vn,On=dn.rootClassName,Rn=dn.style,Gn=dn.className,Er=dn.tabIndex,Hr=Er===void 0?0:Er,Xr=dn.items,Lr=dn.children,vr=dn.direction,Jr=dn.id,Gr=dn.mode,Zr=Gr===void 0?"vertical":Gr,xr=dn.inlineCollapsed,Nr=dn.disabled,Qr=dn.disabledOverflow,Kr=dn.subMenuOpenDelay,hi=Kr===void 0?.1:Kr,Bi=dn.subMenuCloseDelay,Ur=Bi===void 0?.1:Bi,Xn=dn.forceSubMenuRender,Kn=dn.defaultOpenKeys,Wr=dn.openKeys,Tr=dn.activeKey,ri=dn.defaultActiveFirst,pi=dn.selectable,li=pi===void 0?!0:pi,$i=dn.multiple,xi=$i===void 0?!1:$i,oa=dn.defaultSelectedKeys,Br=dn.selectedKeys,Ar=dn.onSelect,fi=dn.onDeselect,mi=dn.inlineIndent,la=mi===void 0?24:mi,Ua=dn.motion,Da=dn.defaultMotions,Wi=dn.triggerSubMenuAction,ma=Wi===void 0?"hover":Wi,na=dn.builtinPlacements,sr=dn.itemIcon,ur=dn.expandIcon,cr=dn.overflowedIndicator,Or=cr===void 0?"...":cr,Ki=dn.overflowedIndicatorPopupClassName,ea=dn.getPopupContainer,ra=dn.onClick,qi=dn.onOpenChange,ia=dn.onKeyDown,ga=dn.openAnimation,Va=dn.openTransitionName,Ra=dn._internalRenderMenuItem,ko=dn._internalRenderSubMenuItem,co=(0,Ee.Z)(dn,Fn),za=Fe.useMemo(function(){return Vn(Lr,Xr,Jn)},[Lr,Xr]),ds=Fe.useState(!1),wo=(0,be.Z)(ds,2),xo=wo[0],Za=wo[1],va=Fe.useRef(),di=mt(Jr),Ri=vr==="rtl",ki=(0,Pe.Z)(Kn,{value:Wr,postState:function(_a){return _a||Jn}}),ci=(0,be.Z)(ki,2),Qi=ci[0],ji=ci[1],Pa=function(_a){var Qa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function bs(){ji(_a),qi==null||qi(_a)}Qa?(0,et.flushSync)(bs):bs()},Wa=Fe.useState(Qi),Na=(0,be.Z)(Wa,2),mn=Na[0],lr=Na[1],Pr=Fe.useRef(!1),gi=Fe.useMemo(function(){return(Zr==="inline"||Zr==="vertical")&&xr?["vertical",xr]:[Zr,!1]},[Zr,xr]),Ti=(0,be.Z)(gi,2),wi=Ti[0],Ji=Ti[1],eo=wi==="inline",to=Fe.useState(wi),Ba=(0,be.Z)(to,2),ja=Ba[0],sl=Ba[1],as=Fe.useState(Ji),uo=(0,be.Z)(as,2),ao=uo[0],fs=uo[1];Fe.useEffect(function(){sl(wi),fs(Ji),Pr.current&&(eo?ji(mn):Pa(Jn))},[wi,Ji]);var vs=Fe.useState(0),Ms=(0,be.Z)(vs,2),ll=Ms[0],Fs=Ms[1],No=ll>=za.length-1||ja!=="horizontal"||Qr;Fe.useEffect(function(){eo&&lr(Qi)},[Qi]),Fe.useEffect(function(){return Pr.current=!0,function(){Pr.current=!1}},[]);var Ko=ut(),Fa=Ko.registerPath,Js=Ko.unregisterPath,Dl=Ko.refreshOverflowKeys,Us=Ko.isSubPathKey,ha=Ko.getKeyPath,ca=Ko.getKeys,Ga=Ko.getSubPathKeys,mo=Fe.useMemo(function(){return{registerPath:Fa,unregisterPath:Js}},[Fa,Js]),no=Fe.useMemo(function(){return{isSubPathKey:Us}},[Us]);Fe.useEffect(function(){Dl(No?Jn:za.slice(ll+1).map(function(Aa){return Aa.key}))},[ll,No]);var $o=(0,Pe.Z)(Tr||ri&&((un=za[0])===null||un===void 0?void 0:un.key),{value:Tr}),Go=(0,be.Z)($o,2),ys=Go[0],Qo=Go[1],Ks=Qe(function(Aa){Qo(Aa)}),Ps=Qe(function(){Qo(void 0)});(0,Fe.useImperativeHandle)(on,function(){return{list:va.current,focus:function(_a){var Qa,bs=ca(),Xo=pe(bs,di),Vs=Xo.elements,hs=Xo.key2element,Ho=Xo.element2key,qs=le(va.current,Vs),el=ys!=null?ys:qs[0]?Ho.get(qs[0]):(Qa=za.find(function(Xc){return!Xc.props.disabled}))===null||Qa===void 0?void 0:Qa.key,tl=hs.get(el);if(el&&tl){var Tl;tl==null||(Tl=tl.focus)===null||Tl===void 0||Tl.call(tl,_a)}}}});var Yo=(0,Pe.Z)(oa||[],{value:Br,postState:function(_a){return Array.isArray(_a)?_a:_a==null?Jn:[_a]}}),gc=(0,be.Z)(Yo,2),gl=gc[0],vl=gc[1],nc=function(_a){if(li){var Qa=_a.key,bs=gl.includes(Qa),Xo;xi?bs?Xo=gl.filter(function(hs){return hs!==Qa}):Xo=[].concat((0,nt.Z)(gl),[Qa]):Xo=[Qa],vl(Xo);var Vs=(0,ke.Z)((0,ke.Z)({},_a),{},{selectedKeys:Xo});bs?fi==null||fi(Vs):Ar==null||Ar(Vs)}!xi&&Qi.length&&ja!=="inline"&&Pa(Jn)},jl=Qe(function(Aa){ra==null||ra(wn(Aa)),nc(Aa)}),Ll=Qe(function(Aa,_a){var Qa=Qi.filter(function(Xo){return Xo!==Aa});if(_a)Qa.push(Aa);else if(ja!=="inline"){var bs=Ga(Aa);Qa=Qa.filter(function(Xo){return!bs.has(Xo)})}(0,ct.Z)(Qi,Qa,!0)||Pa(Qa,!0)}),Yc=function(_a,Qa){var bs=Qa!=null?Qa:!Qi.includes(_a);Ll(_a,bs)},cl=ae(ja,ys,Ri,di,va,ca,ha,Qo,Yc,ia);Fe.useEffect(function(){Za(!0)},[]);var rc=Fe.useMemo(function(){return{_internalRenderMenuItem:Ra,_internalRenderSubMenuItem:ko}},[Ra,ko]),ul=ja!=="horizontal"||Qr?za:za.map(function(Aa,_a){return Fe.createElement(He,{key:Aa.key,overflowDisabled:_a>ll},Aa)}),yl=Fe.createElement(Me.Z,(0,ue.Z)({id:Jr,ref:va,prefixCls:"".concat(pn,"-overflow"),component:"ul",itemComponent:Zn,className:xe()(pn,"".concat(pn,"-root"),"".concat(pn,"-").concat(ja),Gn,(xn={},(0,Ae.Z)(xn,"".concat(pn,"-inline-collapsed"),ao),(0,Ae.Z)(xn,"".concat(pn,"-rtl"),Ri),xn),On),dir:vr,style:Rn,role:"menu",tabIndex:Hr,data:ul,renderRawItem:function(_a){return _a},renderRawRest:function(_a){var Qa=_a.length,bs=Qa?za.slice(-Qa):null;return Fe.createElement(Rt,{eventKey:yt,title:Or,disabled:No,internalPopupClose:Qa===0,popupClassName:Ki},bs)},maxCount:ja!=="horizontal"||Qr?Me.Z.INVALIDATE:Me.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(_a){Fs(_a)},onKeyDown:cl},co));return Fe.createElement(Mt.Provider,{value:rc},Fe.createElement(We.Provider,{value:di},Fe.createElement(He,{prefixCls:pn,rootClassName:On,mode:ja,openKeys:Qi,rtl:Ri,disabled:Nr,motion:xo?Ua:null,defaultMotions:xo?Da:null,activeKey:ys,onActive:Ks,onInactive:Ps,selectedKeys:gl,inlineIndent:la,subMenuOpenDelay:hi,subMenuCloseDelay:Ur,forceSubMenuRender:Xn,builtinPlacements:na,triggerSubMenuAction:ma,getPopupContainer:ea,itemIcon:sr,expandIcon:ur,onItemClick:jl,onOpenChange:Ll},Fe.createElement(st.Provider,{value:no},yl),Fe.createElement("div",{style:{display:"none"},"aria-hidden":!0},Fe.createElement(Ke.Provider,{value:mo},za)))))}),mr=Wn,Bn=mr;Bn.Item=Zn,Bn.SubMenu=Rt,Bn.ItemGroup=An,Bn.Divider=Tn;var rr=Bn},83836:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return Nt}});var ue=oe(60499),Ae=oe(85899),ke=oe(72190),nt=oe(42244),be=oe(59301),Ee=oe(92310),he=oe.n(Ee),xe=oe(29301),Me=oe(34280),Pe=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ct=void 0;function De(Tt,Ve){var ye=Tt.prefixCls,bt=Tt.invalidate,Qt=Tt.item,Kt=Tt.renderItem,at=Tt.responsive,lt=Tt.responsiveDisabled,Dt=Tt.registerSize,yn=Tt.itemKey,$t=Tt.className,hn=Tt.style,tn=Tt.children,en=Tt.display,Gt=Tt.order,ve=Tt.component,ce=ve===void 0?"div":ve,le=(0,nt.Z)(Tt,Pe),de=at&&!en;function pe(Be){Dt(yn,Be)}be.useEffect(function(){return function(){pe(null)}},[]);var ae=Kt&&Qt!==ct?Kt(Qt,{index:Gt}):tn,Te;bt||(Te={opacity:de?0:1,height:de?0:ct,overflowY:de?"hidden":ct,order:at?Gt:ct,pointerEvents:de?"none":ct,position:de?"absolute":ct});var gt={};de&&(gt["aria-hidden"]=!0);var Re=be.createElement(ce,(0,ue.Z)({className:he()(!bt&&ye,$t),style:(0,Ae.Z)((0,Ae.Z)({},Te),hn)},gt,le,{ref:Ve}),ae);return at&&(Re=be.createElement(xe.Z,{onResize:function(yt){var ut=yt.offsetWidth;pe(ut)},disabled:lt},Re)),Re}var Fe=be.forwardRef(De);Fe.displayName="Item";var et=Fe,We=oe(6089),je=oe(4676),pt=oe(16089);function rt(Tt){if(typeof MessageChannel=="undefined")(0,pt.Z)(Tt);else{var Ve=new MessageChannel;Ve.port1.onmessage=function(){return Tt()},Ve.port2.postMessage(void 0)}}function kt(){var Tt=be.useRef(null),Ve=function(bt){Tt.current||(Tt.current=[],rt(function(){(0,je.unstable_batchedUpdates)(function(){Tt.current.forEach(function(Qt){Qt()}),Tt.current=null})})),Tt.current.push(bt)};return Ve}function ft(Tt,Ve){var ye=be.useState(Ve),bt=(0,ke.Z)(ye,2),Qt=bt[0],Kt=bt[1],at=(0,We.Z)(function(lt){Tt(function(){Kt(lt)})});return[Qt,at]}var it=be.createContext(null),He=["component"],Se=["className"],Ke=["className"],Ue=function(Ve,ye){var bt=be.useContext(it);if(!bt){var Qt=Ve.component,Kt=Qt===void 0?"div":Qt,at=(0,nt.Z)(Ve,He);return be.createElement(Kt,(0,ue.Z)({},at,{ref:ye}))}var lt=bt.className,Dt=(0,nt.Z)(bt,Se),yn=Ve.className,$t=(0,nt.Z)(Ve,Ke);return be.createElement(it.Provider,{value:null},be.createElement(et,(0,ue.Z)({ref:ye,className:he()(lt,yn)},Dt,$t)))},vt=be.forwardRef(Ue);vt.displayName="RawItem";var Ye=vt,st=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],Ie="responsive",Mt="invalidate";function Ge(Tt){return"+ ".concat(Tt.length," ...")}function Ot(Tt,Ve){var ye=Tt.prefixCls,bt=ye===void 0?"rc-overflow":ye,Qt=Tt.data,Kt=Qt===void 0?[]:Qt,at=Tt.renderItem,lt=Tt.renderRawItem,Dt=Tt.itemKey,yn=Tt.itemWidth,$t=yn===void 0?10:yn,hn=Tt.ssr,tn=Tt.style,en=Tt.className,Gt=Tt.maxCount,ve=Tt.renderRest,ce=Tt.renderRawRest,le=Tt.prefix,de=Tt.suffix,pe=Tt.component,ae=pe===void 0?"div":pe,Te=Tt.itemComponent,gt=Tt.onVisibleChange,Re=(0,nt.Z)(Tt,st),Be=hn==="full",yt=kt(),ut=ft(yt,null),Qe=(0,ke.Z)(ut,2),St=Qe[0],Jt=Qe[1],mt=St||0,Ft=ft(yt,new Map),nn=(0,ke.Z)(Ft,2),ht=nn[0],Le=nn[1],dt=ft(yt,0),Pt=(0,ke.Z)(dt,2),_t=Pt[0],Xt=Pt[1],gn=ft(yt,0),En=(0,ke.Z)(gn,2),wn=En[0],_n=En[1],$n=ft(yt,0),Dn=(0,ke.Z)($n,2),qn=Dn[0],fr=Dn[1],br=ft(yt,0),Zn=(0,ke.Z)(br,2),ar=Zn[0],Cr=Zn[1],jn=(0,be.useState)(null),Dr=(0,ke.Z)(jn,2),ei=Dr[0],Fr=Dr[1],ai=(0,be.useState)(null),ti=(0,ke.Z)(ai,2),er=ti[0],hr=ti[1],zn=be.useMemo(function(){return er===null&&Be?Number.MAX_SAFE_INTEGER:er||0},[er,St]),Hn=(0,be.useState)(!1),wr=(0,ke.Z)(Hn,2),Bt=wr[0],ze=wr[1],Xe="".concat(bt,"-item"),Je=Math.max(_t,wn),qe=Gt===Ie,Ct=Kt.length&&qe,Rt=Gt===Mt,rn=Ct||typeof Gt=="number"&&Kt.length>Gt,Vt=(0,be.useMemo)(function(){var vn=Kt;return Ct?St===null&&Be?vn=Kt:vn=Kt.slice(0,Math.min(Kt.length,mt/$t)):typeof Gt=="number"&&(vn=Kt.slice(0,Gt)),vn},[Kt,$t,St,Gt,Ct]),ln=(0,be.useMemo)(function(){return Ct?Kt.slice(zn+1):Kt.slice(Vt.length)},[Kt,Vt,Ct,zn]),Cn=(0,be.useCallback)(function(vn,pn){var On;return typeof Dt=="function"?Dt(vn):(On=Dt&&(vn==null?void 0:vn[Dt]))!==null&&On!==void 0?On:pn},[Dt]),An=(0,be.useCallback)(at||function(vn){return vn},[at]);function Tn(vn,pn,On){er===vn&&(pn===void 0||pn===ei)||(hr(vn),On||(ze(vn<Kt.length-1),gt==null||gt(vn)),pn!==void 0&&Fr(pn))}function Ut(vn,pn){Jt(pn.clientWidth)}function bn(vn,pn){Le(function(On){var Rn=new Map(On);return pn===null?Rn.delete(vn):Rn.set(vn,pn),Rn})}function Vn(vn,pn){_n(pn),Xt(wn)}function Fn(vn,pn){fr(pn)}function Jn(vn,pn){Cr(pn)}function Wn(vn){return ht.get(Cn(Vt[vn],vn))}(0,Me.Z)(function(){if(mt&&typeof Je=="number"&&Vt){var vn=qn+ar,pn=Vt.length,On=pn-1;if(!pn){Tn(0,null);return}for(var Rn=0;Rn<pn;Rn+=1){var Gn=Wn(Rn);if(Be&&(Gn=Gn||0),Gn===void 0){Tn(Rn-1,void 0,!0);break}if(vn+=Gn,On===0&&vn<=mt||Rn===On-1&&vn+Wn(On)<=mt){Tn(On,null);break}else if(vn+Je>mt){Tn(Rn-1,vn-Gn-ar+wn);break}}de&&Wn(0)+ar>mt&&Fr(null)}},[mt,ht,wn,qn,ar,Cn,Vt]);var mr=Bt&&!!ln.length,Bn={};ei!==null&&Ct&&(Bn={position:"absolute",left:ei,top:0});var rr={prefixCls:Xe,responsive:Ct,component:Te,invalidate:Rt},It=lt?function(vn,pn){var On=Cn(vn,pn);return be.createElement(it.Provider,{key:On,value:(0,Ae.Z)((0,Ae.Z)({},rr),{},{order:pn,item:vn,itemKey:On,registerSize:bn,display:pn<=zn})},lt(vn,pn))}:function(vn,pn){var On=Cn(vn,pn);return be.createElement(et,(0,ue.Z)({},rr,{order:pn,key:On,item:vn,renderItem:An,itemKey:On,registerSize:bn,display:pn<=zn}))},on={order:mr?zn:Number.MAX_SAFE_INTEGER,className:"".concat(Xe,"-rest"),registerSize:Vn,display:mr},un=ve||Ge,xn=ce?be.createElement(it.Provider,{value:(0,Ae.Z)((0,Ae.Z)({},rr),on)},ce(ln)):be.createElement(et,(0,ue.Z)({},rr,on),typeof un=="function"?un(ln):un),dn=be.createElement(ae,(0,ue.Z)({className:he()(!Rt&&bt,en),style:tn,ref:Ve},Re),le&&be.createElement(et,(0,ue.Z)({},rr,{responsive:qe,responsiveDisabled:!Ct,order:-1,className:"".concat(Xe,"-prefix"),registerSize:Fn,display:!0}),le),Vt.map(It),rn?xn:null,de&&be.createElement(et,(0,ue.Z)({},rr,{responsive:qe,responsiveDisabled:!Ct,order:zn,className:"".concat(Xe,"-suffix"),registerSize:Jn,display:!0,style:Bn}),de));return qe?be.createElement(xe.Z,{onResize:Ut,disabled:!Ct},dn):dn}var wt=be.forwardRef(Ot);wt.displayName="Overflow",wt.Item=Ye,wt.RESPONSIVE=Ie,wt.INVALIDATE=Mt;var At=wt,Nt=At},91735:function(fn,Wt){"use strict";Wt.Z={items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875",page_size:"\u9875\u7801"}},17115:function(fn,Wt,oe){"use strict";oe.d(Wt,{ZP:function(){return he}});var ue=oe(72190),Ae=oe(59301),ke=oe(47273),nt=0,be=(0,ke.Z)();function Ee(){var xe;return be?(xe=nt,nt+=1):xe="TEST_OR_SSR",xe}function he(xe){var Me=Ae.useState(),Pe=(0,ue.Z)(Me,2),ct=Pe[0],De=Pe[1];return Ae.useEffect(function(){De("rc_select_".concat(Ee()))},[]),xe||ct}},77861:function(fn,Wt,oe){"use strict";oe.d(Wt,{Ac:function(){return St},Xo:function(){return wn},Wx:function(){return $n},ZP:function(){return Xe},lk:function(){return it}});var ue=oe(60499),Ae=oe(77654),ke=oe(18642),nt=oe(85899),be=oe(72190),Ee=oe(42244),he=oe(43749),xe=oe(18929),Me=oe(48736),Pe=oe(59301),ct=oe(92310),De=oe.n(ct),Fe=oe(34280),et=oe(49658),We=oe(10228),je=oe(8654),pt=function(qe){var Ct=qe.className,Rt=qe.customizeIcon,rn=qe.customizeIconProps,Vt=qe.onMouseDown,ln=qe.onClick,Cn=qe.children,An;return typeof Rt=="function"?An=Rt(rn):An=Rt,Pe.createElement("span",{className:Ct,onMouseDown:function(Ut){Ut.preventDefault(),Vt&&Vt(Ut)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:ln,"aria-hidden":!0},An!==void 0?An:Pe.createElement("span",{className:De()(Ct.split(/\s+/).map(function(Tn){return"".concat(Tn,"-icon")}))},Cn))},rt=pt;function kt(Je,qe,Ct,Rt,rn){var Vt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,ln=arguments.length>6?arguments[6]:void 0,Cn=arguments.length>7?arguments[7]:void 0,An=Pe.useMemo(function(){if((0,he.Z)(Rt)==="object")return Rt.clearIcon;if(rn)return rn},[Rt,rn]),Tn=Pe.useMemo(function(){return!!(!Vt&&Rt&&(Ct.length||ln)&&!(Cn==="combobox"&&ln===""))},[Rt,Vt,Ct.length,ln,Cn]);return{allowClear:Tn,clearIcon:Pe.createElement(rt,{className:"".concat(Je,"-clear"),onMouseDown:qe,customizeIcon:An},"\xD7")}}var ft=Pe.createContext(null);function it(){return Pe.useContext(ft)}function He(){var Je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,qe=Pe.useState(!1),Ct=(0,be.Z)(qe,2),Rt=Ct[0],rn=Ct[1],Vt=Pe.useRef(null),ln=function(){window.clearTimeout(Vt.current)};Pe.useEffect(function(){return ln},[]);var Cn=function(Tn,Ut){ln(),Vt.current=window.setTimeout(function(){rn(Tn),Ut&&Ut()},Je)};return[Rt,Cn,ln]}function Se(){var Je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,qe=Pe.useRef(null),Ct=Pe.useRef(null);Pe.useEffect(function(){return function(){window.clearTimeout(Ct.current)}},[]);function Rt(rn){(rn||qe.current===null)&&(qe.current=rn),window.clearTimeout(Ct.current),Ct.current=window.setTimeout(function(){qe.current=null},Je)}return[function(){return qe.current},Rt]}function Ke(Je,qe,Ct,Rt){var rn=Pe.useRef(null);rn.current={open:qe,triggerOpen:Ct,customizedTrigger:Rt},Pe.useEffect(function(){function Vt(ln){var Cn;if(!((Cn=rn.current)!==null&&Cn!==void 0&&Cn.customizedTrigger)){var An=ln.target;An.shadowRoot&&ln.composed&&(An=ln.composedPath()[0]||An),rn.current.open&&Je().filter(function(Tn){return Tn}).every(function(Tn){return!Tn.contains(An)&&Tn!==An})&&rn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Vt),function(){return window.removeEventListener("mousedown",Vt)}},[])}var Ue=oe(26112),vt=oe(83836),Ye=function(qe,Ct){var Rt,rn,Vt=qe.prefixCls,ln=qe.id,Cn=qe.inputElement,An=qe.disabled,Tn=qe.tabIndex,Ut=qe.autoFocus,bn=qe.autoComplete,Vn=qe.editable,Fn=qe.activeDescendantId,Jn=qe.value,Wn=qe.maxLength,mr=qe.onKeyDown,Bn=qe.onMouseDown,rr=qe.onChange,It=qe.onPaste,on=qe.onCompositionStart,un=qe.onCompositionEnd,xn=qe.open,dn=qe.attrs,vn=Cn||Pe.createElement("input",null),pn=vn,On=pn.ref,Rn=pn.props,Gn=Rn.onKeyDown,Er=Rn.onChange,Hr=Rn.onMouseDown,Xr=Rn.onCompositionStart,Lr=Rn.onCompositionEnd,vr=Rn.style;return(0,Me.Kp)(!("maxLength"in vn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),vn=Pe.cloneElement(vn,(0,nt.Z)((0,nt.Z)((0,nt.Z)({type:"search"},Rn),{},{id:ln,ref:(0,je.sQ)(Ct,On),disabled:An,tabIndex:Tn,autoComplete:bn||"off",autoFocus:Ut,className:De()("".concat(Vt,"-selection-search-input"),(Rt=vn)===null||Rt===void 0||(rn=Rt.props)===null||rn===void 0?void 0:rn.className),role:"combobox","aria-label":"Search","aria-expanded":xn||!1,"aria-haspopup":"listbox","aria-owns":"".concat(ln,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(ln,"_list"),"aria-activedescendant":xn?Fn:void 0},dn),{},{value:Vn?Jn:"",maxLength:Wn,readOnly:!Vn,unselectable:Vn?null:"on",style:(0,nt.Z)((0,nt.Z)({},vr),{},{opacity:Vn?null:0}),onKeyDown:function(Gr){mr(Gr),Gn&&Gn(Gr)},onMouseDown:function(Gr){Bn(Gr),Hr&&Hr(Gr)},onChange:function(Gr){rr(Gr),Er&&Er(Gr)},onCompositionStart:function(Gr){on(Gr),Xr&&Xr(Gr)},onCompositionEnd:function(Gr){un(Gr),Lr&&Lr(Gr)},onPaste:It})),vn},st=Pe.forwardRef(Ye);st.displayName="Input";var Ie=st;function Mt(Je){return Array.isArray(Je)?Je:Je!==void 0?[Je]:[]}var Ge=typeof window!="undefined"&&window.document&&window.document.documentElement,Ot=Ge;function wt(Je){return Je!=null}function At(Je){return!Je&&Je!==0}function Nt(Je){return["string","number"].includes((0,he.Z)(Je))}function Tt(Je){var qe=void 0;return Je&&(Nt(Je.title)?qe=Je.title.toString():Nt(Je.label)&&(qe=Je.label.toString())),qe}function Ve(Je,qe){Ot?Pe.useLayoutEffect(Je,qe):Pe.useEffect(Je,qe)}function ye(Je){var qe;return(qe=Je.key)!==null&&qe!==void 0?qe:Je.value}var bt=function(qe){qe.preventDefault(),qe.stopPropagation()},Qt=function(qe){var Ct=qe.id,Rt=qe.prefixCls,rn=qe.values,Vt=qe.open,ln=qe.searchValue,Cn=qe.autoClearSearchValue,An=qe.inputRef,Tn=qe.placeholder,Ut=qe.disabled,bn=qe.mode,Vn=qe.showSearch,Fn=qe.autoFocus,Jn=qe.autoComplete,Wn=qe.activeDescendantId,mr=qe.tabIndex,Bn=qe.removeIcon,rr=qe.maxTagCount,It=qe.maxTagTextLength,on=qe.maxTagPlaceholder,un=on===void 0?function(pi){return"+ ".concat(pi.length," ...")}:on,xn=qe.tagRender,dn=qe.onToggleOpen,vn=qe.onRemove,pn=qe.onInputChange,On=qe.onInputPaste,Rn=qe.onInputKeyDown,Gn=qe.onInputMouseDown,Er=qe.onInputCompositionStart,Hr=qe.onInputCompositionEnd,Xr=Pe.useRef(null),Lr=(0,Pe.useState)(0),vr=(0,be.Z)(Lr,2),Jr=vr[0],Gr=vr[1],Zr=(0,Pe.useState)(!1),xr=(0,be.Z)(Zr,2),Nr=xr[0],Qr=xr[1],Kr="".concat(Rt,"-selection"),hi=Vt||bn==="multiple"&&Cn===!1||bn==="tags"?ln:"",Bi=bn==="tags"||bn==="multiple"&&Cn===!1||Vn&&(Vt||Nr);Ve(function(){Gr(Xr.current.scrollWidth)},[hi]);function Ur(pi,li,$i,xi,oa){return Pe.createElement("span",{className:De()("".concat(Kr,"-item"),(0,ke.Z)({},"".concat(Kr,"-item-disabled"),$i)),title:Tt(pi)},Pe.createElement("span",{className:"".concat(Kr,"-item-content")},li),xi&&Pe.createElement(rt,{className:"".concat(Kr,"-item-remove"),onMouseDown:bt,onClick:oa,customizeIcon:Bn},"\xD7"))}function Xn(pi,li,$i,xi,oa){var Br=function(fi){bt(fi),dn(!Vt)};return Pe.createElement("span",{onMouseDown:Br},xn({label:li,value:pi,disabled:$i,closable:xi,onClose:oa}))}function Kn(pi){var li=pi.disabled,$i=pi.label,xi=pi.value,oa=!Ut&&!li,Br=$i;if(typeof It=="number"&&(typeof $i=="string"||typeof $i=="number")){var Ar=String(Br);Ar.length>It&&(Br="".concat(Ar.slice(0,It),"..."))}var fi=function(la){la&&la.stopPropagation(),vn(pi)};return typeof xn=="function"?Xn(xi,Br,li,oa,fi):Ur(pi,Br,li,oa,fi)}function Wr(pi){var li=typeof un=="function"?un(pi):un;return Ur({title:li},li,!1)}var Tr=Pe.createElement("div",{className:"".concat(Kr,"-search"),style:{width:Jr},onFocus:function(){Qr(!0)},onBlur:function(){Qr(!1)}},Pe.createElement(Ie,{ref:An,open:Vt,prefixCls:Rt,id:Ct,inputElement:null,disabled:Ut,autoFocus:Fn,autoComplete:Jn,editable:Bi,activeDescendantId:Wn,value:hi,onKeyDown:Rn,onMouseDown:Gn,onChange:pn,onPaste:On,onCompositionStart:Er,onCompositionEnd:Hr,tabIndex:mr,attrs:(0,Ue.Z)(qe,!0)}),Pe.createElement("span",{ref:Xr,className:"".concat(Kr,"-search-mirror"),"aria-hidden":!0},hi,"\xA0")),ri=Pe.createElement(vt.Z,{prefixCls:"".concat(Kr,"-overflow"),data:rn,renderItem:Kn,renderRest:Wr,suffix:Tr,itemKey:ye,maxCount:rr});return Pe.createElement(Pe.Fragment,null,ri,!rn.length&&!hi&&Pe.createElement("span",{className:"".concat(Kr,"-placeholder")},Tn))},Kt=Qt,at=function(qe){var Ct=qe.inputElement,Rt=qe.prefixCls,rn=qe.id,Vt=qe.inputRef,ln=qe.disabled,Cn=qe.autoFocus,An=qe.autoComplete,Tn=qe.activeDescendantId,Ut=qe.mode,bn=qe.open,Vn=qe.values,Fn=qe.placeholder,Jn=qe.tabIndex,Wn=qe.showSearch,mr=qe.searchValue,Bn=qe.activeValue,rr=qe.maxLength,It=qe.onInputKeyDown,on=qe.onInputMouseDown,un=qe.onInputChange,xn=qe.onInputPaste,dn=qe.onInputCompositionStart,vn=qe.onInputCompositionEnd,pn=qe.title,On=Pe.useState(!1),Rn=(0,be.Z)(On,2),Gn=Rn[0],Er=Rn[1],Hr=Ut==="combobox",Xr=Hr||Wn,Lr=Vn[0],vr=mr||"";Hr&&Bn&&!Gn&&(vr=Bn),Pe.useEffect(function(){Hr&&Er(!1)},[Hr,Bn]);var Jr=Ut!=="combobox"&&!bn&&!Wn?!1:!!vr,Gr=pn===void 0?Tt(Lr):pn,Zr=function(){if(Lr)return null;var Nr=Jr?{visibility:"hidden"}:void 0;return Pe.createElement("span",{className:"".concat(Rt,"-selection-placeholder"),style:Nr},Fn)};return Pe.createElement(Pe.Fragment,null,Pe.createElement("span",{className:"".concat(Rt,"-selection-search")},Pe.createElement(Ie,{ref:Vt,prefixCls:Rt,id:rn,open:bn,inputElement:Ct,disabled:ln,autoFocus:Cn,autoComplete:An,editable:Xr,activeDescendantId:Tn,value:vr,onKeyDown:It,onMouseDown:on,onChange:function(Nr){Er(!0),un(Nr)},onPaste:xn,onCompositionStart:dn,onCompositionEnd:vn,tabIndex:Jn,attrs:(0,Ue.Z)(qe,!0),maxLength:Hr?rr:void 0})),!Hr&&Lr?Pe.createElement("span",{className:"".concat(Rt,"-selection-item"),title:Gr,style:Jr?{visibility:"hidden"}:void 0},Lr.label):null,Zr())},lt=at;function Dt(Je){return![We.Z.ESC,We.Z.SHIFT,We.Z.BACKSPACE,We.Z.TAB,We.Z.WIN_KEY,We.Z.ALT,We.Z.META,We.Z.WIN_KEY_RIGHT,We.Z.CTRL,We.Z.SEMICOLON,We.Z.EQUALS,We.Z.CAPS_LOCK,We.Z.CONTEXT_MENU,We.Z.F1,We.Z.F2,We.Z.F3,We.Z.F4,We.Z.F5,We.Z.F6,We.Z.F7,We.Z.F8,We.Z.F9,We.Z.F10,We.Z.F11,We.Z.F12].includes(Je)}var yn=function(qe,Ct){var Rt=(0,Pe.useRef)(null),rn=(0,Pe.useRef)(!1),Vt=qe.prefixCls,ln=qe.open,Cn=qe.mode,An=qe.showSearch,Tn=qe.tokenWithEnter,Ut=qe.autoClearSearchValue,bn=qe.onSearch,Vn=qe.onSearchSubmit,Fn=qe.onToggleOpen,Jn=qe.onInputKeyDown,Wn=qe.domRef;Pe.useImperativeHandle(Ct,function(){return{focus:function(){Rt.current.focus()},blur:function(){Rt.current.blur()}}});var mr=Se(0),Bn=(0,be.Z)(mr,2),rr=Bn[0],It=Bn[1],on=function(vr){var Jr=vr.which;(Jr===We.Z.UP||Jr===We.Z.DOWN)&&vr.preventDefault(),Jn&&Jn(vr),Jr===We.Z.ENTER&&Cn==="tags"&&!rn.current&&!ln&&(Vn==null||Vn(vr.target.value)),Dt(Jr)&&Fn(!0)},un=function(){It(!0)},xn=(0,Pe.useRef)(null),dn=function(vr){bn(vr,!0,rn.current)!==!1&&Fn(!0)},vn=function(){rn.current=!0},pn=function(vr){rn.current=!1,Cn!=="combobox"&&dn(vr.target.value)},On=function(vr){var Jr=vr.target.value;if(Tn&&xn.current&&/[\r\n]/.test(xn.current)){var Gr=xn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Jr=Jr.replace(Gr,xn.current)}xn.current=null,dn(Jr)},Rn=function(vr){var Jr=vr.clipboardData,Gr=Jr.getData("text");xn.current=Gr},Gn=function(vr){var Jr=vr.target;if(Jr!==Rt.current){var Gr=document.body.style.msTouchAction!==void 0;Gr?setTimeout(function(){Rt.current.focus()}):Rt.current.focus()}},Er=function(vr){var Jr=rr();vr.target!==Rt.current&&!Jr&&Cn!=="combobox"&&vr.preventDefault(),(Cn!=="combobox"&&(!An||!Jr)||!ln)&&(ln&&Ut!==!1&&bn("",!0,!1),Fn())},Hr={inputRef:Rt,onInputKeyDown:on,onInputMouseDown:un,onInputChange:On,onInputPaste:Rn,onInputCompositionStart:vn,onInputCompositionEnd:pn},Xr=Cn==="multiple"||Cn==="tags"?Pe.createElement(Kt,(0,ue.Z)({},qe,Hr)):Pe.createElement(lt,(0,ue.Z)({},qe,Hr));return Pe.createElement("div",{ref:Wn,className:"".concat(Vt,"-selector"),onClick:Gn,onMouseDown:Er},Xr)},$t=Pe.forwardRef(yn);$t.displayName="Selector";var hn=$t,tn=oe(35593),en=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Gt=function(qe){var Ct=qe===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Ct,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Ct,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Ct,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Ct,adjustY:1},htmlRegion:"scroll"}}},ve=function(qe,Ct){var Rt=qe.prefixCls,rn=qe.disabled,Vt=qe.visible,ln=qe.children,Cn=qe.popupElement,An=qe.animation,Tn=qe.transitionName,Ut=qe.dropdownStyle,bn=qe.dropdownClassName,Vn=qe.direction,Fn=Vn===void 0?"ltr":Vn,Jn=qe.placement,Wn=qe.builtinPlacements,mr=qe.dropdownMatchSelectWidth,Bn=qe.dropdownRender,rr=qe.dropdownAlign,It=qe.getPopupContainer,on=qe.empty,un=qe.getTriggerDOMNode,xn=qe.onPopupVisibleChange,dn=qe.onPopupMouseEnter,vn=(0,Ee.Z)(qe,en),pn="".concat(Rt,"-dropdown"),On=Cn;Bn&&(On=Bn(Cn));var Rn=Pe.useMemo(function(){return Wn||Gt(mr)},[Wn,mr]),Gn=An?"".concat(pn,"-").concat(An):Tn,Er=typeof mr=="number",Hr=Pe.useMemo(function(){return Er?null:mr===!1?"minWidth":"width"},[mr,Er]),Xr=Ut;Er&&(Xr=(0,nt.Z)((0,nt.Z)({},Xr),{},{width:mr}));var Lr=Pe.useRef(null);return Pe.useImperativeHandle(Ct,function(){return{getPopupElement:function(){return Lr.current}}}),Pe.createElement(tn.Z,(0,ue.Z)({},vn,{showAction:xn?["click"]:[],hideAction:xn?["click"]:[],popupPlacement:Jn||(Fn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Rn,prefixCls:pn,popupTransitionName:Gn,popup:Pe.createElement("div",{ref:Lr,onMouseEnter:dn},On),stretch:Hr,popupAlign:rr,popupVisible:Vt,getPopupContainer:It,popupClassName:De()(bn,(0,ke.Z)({},"".concat(pn,"-empty"),on)),popupStyle:Xr,getTriggerDOMNode:un,onPopupVisibleChange:xn}),ln)},ce=Pe.forwardRef(ve);ce.displayName="SelectTrigger";var le=ce,de=oe(48745);function pe(Je,qe){var Ct=Je.key,Rt;return"value"in Je&&(Rt=Je.value),Ct!=null?Ct:Rt!==void 0?Rt:"rc-index-key-".concat(qe)}function ae(Je,qe){var Ct=Je||{},Rt=Ct.label,rn=Ct.value,Vt=Ct.options,ln=Ct.groupLabel,Cn=Rt||(qe?"children":"label");return{label:Cn,value:rn||"value",options:Vt||"options",groupLabel:ln||Cn}}function Te(Je){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ct=qe.fieldNames,Rt=qe.childrenAsData,rn=[],Vt=ae(Ct,!1),ln=Vt.label,Cn=Vt.value,An=Vt.options,Tn=Vt.groupLabel;function Ut(bn,Vn){bn.forEach(function(Fn){if(Vn||!(An in Fn)){var Jn=Fn[Cn];rn.push({key:pe(Fn,rn.length),groupOption:Vn,data:Fn,label:Fn[ln],value:Jn})}else{var Wn=Fn[Tn];Wn===void 0&&Rt&&(Wn=Fn.label),rn.push({key:pe(Fn,rn.length),group:!0,data:Fn,label:Wn}),Ut(Fn[An],!0)}})}return Ut(Je,!1),rn}function gt(Je){var qe=(0,nt.Z)({},Je);return"props"in qe||Object.defineProperty(qe,"props",{get:function(){return(0,Me.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),qe}}),qe}function Re(Je,qe){if(!qe||!qe.length)return null;var Ct=!1;function Rt(Vt,ln){var Cn=(0,de.Z)(ln),An=Cn[0],Tn=Cn.slice(1);if(!An)return[Vt];var Ut=Vt.split(An);return Ct=Ct||Ut.length>1,Ut.reduce(function(bn,Vn){return[].concat((0,Ae.Z)(bn),(0,Ae.Z)(Rt(Vn,Tn)))},[]).filter(function(bn){return bn})}var rn=Rt(Je,qe);return Ct?rn:null}var Be=["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"],yt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function ut(Je){return Je==="tags"||Je==="multiple"}var Qe=Pe.forwardRef(function(Je,qe){var Ct,Rt,rn=Je.id,Vt=Je.prefixCls,ln=Je.className,Cn=Je.showSearch,An=Je.tagRender,Tn=Je.direction,Ut=Je.omitDomProps,bn=Je.displayValues,Vn=Je.onDisplayValuesChange,Fn=Je.emptyOptions,Jn=Je.notFoundContent,Wn=Jn===void 0?"Not Found":Jn,mr=Je.onClear,Bn=Je.mode,rr=Je.disabled,It=Je.loading,on=Je.getInputElement,un=Je.getRawInputElement,xn=Je.open,dn=Je.defaultOpen,vn=Je.onDropdownVisibleChange,pn=Je.activeValue,On=Je.onActiveValueChange,Rn=Je.activeDescendantId,Gn=Je.searchValue,Er=Je.autoClearSearchValue,Hr=Je.onSearch,Xr=Je.onSearchSplit,Lr=Je.tokenSeparators,vr=Je.allowClear,Jr=Je.suffixIcon,Gr=Je.clearIcon,Zr=Je.OptionList,xr=Je.animation,Nr=Je.transitionName,Qr=Je.dropdownStyle,Kr=Je.dropdownClassName,hi=Je.dropdownMatchSelectWidth,Bi=Je.dropdownRender,Ur=Je.dropdownAlign,Xn=Je.placement,Kn=Je.builtinPlacements,Wr=Je.getPopupContainer,Tr=Je.showAction,ri=Tr===void 0?[]:Tr,pi=Je.onFocus,li=Je.onBlur,$i=Je.onKeyUp,xi=Je.onKeyDown,oa=Je.onMouseDown,Br=(0,Ee.Z)(Je,Be),Ar=ut(Bn),fi=(Cn!==void 0?Cn:Ar)||Bn==="combobox",mi=(0,nt.Z)({},Br);yt.forEach(function(ha){delete mi[ha]}),Ut==null||Ut.forEach(function(ha){delete mi[ha]});var la=Pe.useState(!1),Ua=(0,be.Z)(la,2),Da=Ua[0],Wi=Ua[1];Pe.useEffect(function(){Wi((0,et.Z)())},[]);var ma=Pe.useRef(null),na=Pe.useRef(null),sr=Pe.useRef(null),ur=Pe.useRef(null),cr=Pe.useRef(null),Or=He(),Ki=(0,be.Z)(Or,3),ea=Ki[0],ra=Ki[1],qi=Ki[2];Pe.useImperativeHandle(qe,function(){var ha,ca;return{focus:(ha=ur.current)===null||ha===void 0?void 0:ha.focus,blur:(ca=ur.current)===null||ca===void 0?void 0:ca.blur,scrollTo:function(mo){var no;return(no=cr.current)===null||no===void 0?void 0:no.scrollTo(mo)}}});var ia=Pe.useMemo(function(){var ha;if(Bn!=="combobox")return Gn;var ca=(ha=bn[0])===null||ha===void 0?void 0:ha.value;return typeof ca=="string"||typeof ca=="number"?String(ca):""},[Gn,Bn,bn]),ga=Bn==="combobox"&&typeof on=="function"&&on()||null,Va=typeof un=="function"&&un(),Ra=(0,je.x1)(na,Va==null||(Ct=Va.props)===null||Ct===void 0?void 0:Ct.ref),ko=Pe.useState(!1),co=(0,be.Z)(ko,2),za=co[0],ds=co[1];(0,Fe.Z)(function(){ds(!0)},[]);var wo=(0,xe.Z)(!1,{defaultValue:dn,value:xn}),xo=(0,be.Z)(wo,2),Za=xo[0],va=xo[1],di=za?Za:!1,Ri=!Wn&&Fn;(rr||Ri&&di&&Bn==="combobox")&&(di=!1);var ki=Ri?!1:di,ci=Pe.useCallback(function(ha){var ca=ha!==void 0?ha:!di;rr||(va(ca),di!==ca&&(vn==null||vn(ca)))},[rr,di,va,vn]),Qi=Pe.useMemo(function(){return(Lr||[]).some(function(ha){return[`
|
|
|
`,`\r
|
|
|
`].includes(ha)})},[Lr]),ji=function(ca,Ga,mo){var no=!0,$o=ca;On==null||On(null);var Go=mo?null:Re(ca,Lr);return Bn!=="combobox"&&Go&&($o="",Xr==null||Xr(Go),ci(!1),no=!1),Hr&&ia!==$o&&Hr($o,{source:Ga?"typing":"effect"}),no},Pa=function(ca){!ca||!ca.trim()||Hr(ca,{source:"submit"})};Pe.useEffect(function(){!di&&!Ar&&Bn!=="combobox"&&ji("",!1,!1)},[di]),Pe.useEffect(function(){Za&&rr&&va(!1),rr&&ra(!1)},[rr]);var Wa=Se(),Na=(0,be.Z)(Wa,2),mn=Na[0],lr=Na[1],Pr=function(ca){var Ga=mn(),mo=ca.which;if(mo===We.Z.ENTER&&(Bn!=="combobox"&&ca.preventDefault(),di||ci(!0)),lr(!!ia),mo===We.Z.BACKSPACE&&!Ga&&Ar&&!ia&&bn.length){for(var no=(0,Ae.Z)(bn),$o=null,Go=no.length-1;Go>=0;Go-=1){var ys=no[Go];if(!ys.disabled){no.splice(Go,1),$o=ys;break}}$o&&Vn(no,{type:"remove",values:[$o]})}for(var Qo=arguments.length,Ks=new Array(Qo>1?Qo-1:0),Ps=1;Ps<Qo;Ps++)Ks[Ps-1]=arguments[Ps];if(di&&cr.current){var Yo;(Yo=cr.current).onKeyDown.apply(Yo,[ca].concat(Ks))}xi==null||xi.apply(void 0,[ca].concat(Ks))},gi=function(ca){for(var Ga=arguments.length,mo=new Array(Ga>1?Ga-1:0),no=1;no<Ga;no++)mo[no-1]=arguments[no];if(di&&cr.current){var $o;($o=cr.current).onKeyUp.apply($o,[ca].concat(mo))}$i==null||$i.apply(void 0,[ca].concat(mo))},Ti=function(ca){var Ga=bn.filter(function(mo){return mo!==ca});Vn(Ga,{type:"remove",values:[ca]})},wi=Pe.useRef(!1),Ji=function(){ra(!0),rr||(pi&&!wi.current&&pi.apply(void 0,arguments),ri.includes("focus")&&ci(!0)),wi.current=!0},eo=function(){ra(!1,function(){wi.current=!1,ci(!1)}),!rr&&(ia&&(Bn==="tags"?Hr(ia,{source:"submit"}):Bn==="multiple"&&Hr("",{source:"blur"})),li&&li.apply(void 0,arguments))},to=[];Pe.useEffect(function(){return function(){to.forEach(function(ha){return clearTimeout(ha)}),to.splice(0,to.length)}},[]);var Ba=function(ca){var Ga,mo=ca.target,no=(Ga=sr.current)===null||Ga===void 0?void 0:Ga.getPopupElement();if(no&&no.contains(mo)){var $o=setTimeout(function(){var Ks=to.indexOf($o);if(Ks!==-1&&to.splice(Ks,1),qi(),!Da&&!no.contains(document.activeElement)){var Ps;(Ps=ur.current)===null||Ps===void 0||Ps.focus()}});to.push($o)}for(var Go=arguments.length,ys=new Array(Go>1?Go-1:0),Qo=1;Qo<Go;Qo++)ys[Qo-1]=arguments[Qo];oa==null||oa.apply(void 0,[ca].concat(ys))},ja=Pe.useState({}),sl=(0,be.Z)(ja,2),as=sl[1];function uo(){as({})}var ao;Va&&(ao=function(ca){ci(ca)}),Ke(function(){var ha;return[ma.current,(ha=sr.current)===null||ha===void 0?void 0:ha.getPopupElement()]},ki,ci,!!Va);var fs=Pe.useMemo(function(){return(0,nt.Z)((0,nt.Z)({},Je),{},{notFoundContent:Wn,open:di,triggerOpen:ki,id:rn,showSearch:fi,multiple:Ar,toggleOpen:ci})},[Je,Wn,ki,di,rn,fi,Ar,ci]),vs=!!Jr||It,Ms;vs&&(Ms=Pe.createElement(rt,{className:De()("".concat(Vt,"-arrow"),(0,ke.Z)({},"".concat(Vt,"-arrow-loading"),It)),customizeIcon:Jr,customizeIconProps:{loading:It,searchValue:ia,open:di,focused:ea,showSearch:fi}}));var ll=function(){var ca;mr==null||mr(),(ca=ur.current)===null||ca===void 0||ca.focus(),Vn([],{type:"clear",values:bn}),ji("",!1,!1)},Fs=kt(Vt,ll,bn,vr,Gr,rr,ia,Bn),No=Fs.allowClear,Ko=Fs.clearIcon,Fa=Pe.createElement(Zr,{ref:cr}),Js=De()(Vt,ln,(Rt={},(0,ke.Z)(Rt,"".concat(Vt,"-focused"),ea),(0,ke.Z)(Rt,"".concat(Vt,"-multiple"),Ar),(0,ke.Z)(Rt,"".concat(Vt,"-single"),!Ar),(0,ke.Z)(Rt,"".concat(Vt,"-allow-clear"),vr),(0,ke.Z)(Rt,"".concat(Vt,"-show-arrow"),vs),(0,ke.Z)(Rt,"".concat(Vt,"-disabled"),rr),(0,ke.Z)(Rt,"".concat(Vt,"-loading"),It),(0,ke.Z)(Rt,"".concat(Vt,"-open"),di),(0,ke.Z)(Rt,"".concat(Vt,"-customize-input"),ga),(0,ke.Z)(Rt,"".concat(Vt,"-show-search"),fi),Rt)),Dl=Pe.createElement(le,{ref:sr,disabled:rr,prefixCls:Vt,visible:ki,popupElement:Fa,animation:xr,transitionName:Nr,dropdownStyle:Qr,dropdownClassName:Kr,direction:Tn,dropdownMatchSelectWidth:hi,dropdownRender:Bi,dropdownAlign:Ur,placement:Xn,builtinPlacements:Kn,getPopupContainer:Wr,empty:Fn,getTriggerDOMNode:function(){return na.current},onPopupVisibleChange:ao,onPopupMouseEnter:uo},Va?Pe.cloneElement(Va,{ref:Ra}):Pe.createElement(hn,(0,ue.Z)({},Je,{domRef:na,prefixCls:Vt,inputElement:ga,ref:ur,id:rn,showSearch:fi,autoClearSearchValue:Er,mode:Bn,activeDescendantId:Rn,tagRender:An,values:bn,open:di,onToggleOpen:ci,activeValue:pn,searchValue:ia,onSearch:ji,onSearchSubmit:Pa,onRemove:Ti,tokenWithEnter:Qi}))),Us;return Va?Us=Dl:Us=Pe.createElement("div",(0,ue.Z)({className:Js},mi,{ref:ma,onMouseDown:Ba,onKeyDown:Pr,onKeyUp:gi,onFocus:Ji,onBlur:eo}),ea&&!di&&Pe.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(bn.map(function(ha){var ca=ha.label,Ga=ha.value;return["number","string"].includes((0,he.Z)(ca))?ca:Ga}).join(", "))),Dl,Ms,No&&Ko),Pe.createElement(ft.Provider,{value:fs},Us)}),St=Qe,Jt=function(Je,qe){var Ct=Pe.useRef({values:new Map,options:new Map}),Rt=Pe.useMemo(function(){var Vt=Ct.current,ln=Vt.values,Cn=Vt.options,An=Je.map(function(bn){if(bn.label===void 0){var Vn;return(0,nt.Z)((0,nt.Z)({},bn),{},{label:(Vn=ln.get(bn.value))===null||Vn===void 0?void 0:Vn.label})}return bn}),Tn=new Map,Ut=new Map;return An.forEach(function(bn){Tn.set(bn.value,bn),Ut.set(bn.value,qe.get(bn.value)||Cn.get(bn.value))}),Ct.current.values=Tn,Ct.current.options=Ut,An},[Je,qe]),rn=Pe.useCallback(function(Vt){return qe.get(Vt)||Ct.current.options.get(Vt)},[qe]);return[Rt,rn]};function mt(Je,qe){return Mt(Je).join("").toUpperCase().includes(qe)}var Ft=function(Je,qe,Ct,Rt,rn){return Pe.useMemo(function(){if(!Ct||Rt===!1)return Je;var Vt=qe.options,ln=qe.label,Cn=qe.value,An=[],Tn=typeof Rt=="function",Ut=Ct.toUpperCase(),bn=Tn?Rt:function(Fn,Jn){return rn?mt(Jn[rn],Ut):Jn[Vt]?mt(Jn[ln!=="children"?ln:"label"],Ut):mt(Jn[Cn],Ut)},Vn=Tn?function(Fn){return gt(Fn)}:function(Fn){return Fn};return Je.forEach(function(Fn){if(Fn[Vt]){var Jn=bn(Ct,Vn(Fn));if(Jn)An.push(Fn);else{var Wn=Fn[Vt].filter(function(mr){return bn(Ct,Vn(mr))});Wn.length&&An.push((0,nt.Z)((0,nt.Z)({},Fn),{},(0,ke.Z)({},Vt,Wn)))}return}bn(Ct,Vn(Fn))&&An.push(Fn)}),An},[Je,Rt,rn,Ct,qe])},nn=oe(17115),ht=oe(11592),Le=["children","value"],dt=["children"];function Pt(Je){var qe=Je,Ct=qe.key,Rt=qe.props,rn=Rt.children,Vt=Rt.value,ln=(0,Ee.Z)(Rt,Le);return(0,nt.Z)({key:Ct,value:Vt!==void 0?Vt:Ct,children:rn},ln)}function _t(Je){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,ht.Z)(Je).map(function(Ct,Rt){if(!Pe.isValidElement(Ct)||!Ct.type)return null;var rn=Ct,Vt=rn.type.isSelectOptGroup,ln=rn.key,Cn=rn.props,An=Cn.children,Tn=(0,Ee.Z)(Cn,dt);return qe||!Vt?Pt(Ct):(0,nt.Z)((0,nt.Z)({key:"__RC_SELECT_GRP__".concat(ln===null?Rt:ln,"__"),label:ln},Tn),{},{options:_t(An)})}).filter(function(Ct){return Ct})}function Xt(Je,qe,Ct,Rt,rn){return Pe.useMemo(function(){var Vt=Je,ln=!Je;ln&&(Vt=_t(qe));var Cn=new Map,An=new Map,Tn=function(Vn,Fn,Jn){Jn&&typeof Jn=="string"&&Vn.set(Fn[Jn],Fn)};function Ut(bn){for(var Vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Fn=0;Fn<bn.length;Fn+=1){var Jn=bn[Fn];!Jn[Ct.options]||Vn?(Cn.set(Jn[Ct.value],Jn),Tn(An,Jn,Ct.label),Tn(An,Jn,Rt),Tn(An,Jn,rn)):Ut(Jn[Ct.options],!0)}}return Ut(Vt),{options:Vt,valueOptions:Cn,labelOptions:An}},[Je,qe,Ct,Rt,rn])}function gn(Je){var qe=Pe.useRef();qe.current=Je;var Ct=Pe.useCallback(function(){return qe.current.apply(qe,arguments)},[]);return Ct}var En=function(){return null};En.isSelectOptGroup=!0;var wn=En,_n=function(){return null};_n.isSelectOption=!0;var $n=_n,Dn=oe(80547),qn=oe(2738),fr=oe(48911),br=Pe.createContext(null),Zn=br;function ar(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Cr=["disabled","title","children","style","className"];function jn(Je){return typeof Je=="string"||typeof Je=="number"}var Dr=function(qe,Ct){var Rt=it(),rn=Rt.prefixCls,Vt=Rt.id,ln=Rt.open,Cn=Rt.multiple,An=Rt.mode,Tn=Rt.searchValue,Ut=Rt.toggleOpen,bn=Rt.notFoundContent,Vn=Rt.onPopupScroll,Fn=Pe.useContext(Zn),Jn=Fn.flattenOptions,Wn=Fn.onActiveValue,mr=Fn.defaultActiveFirstOption,Bn=Fn.onSelect,rr=Fn.menuItemSelectedIcon,It=Fn.rawValues,on=Fn.fieldNames,un=Fn.virtual,xn=Fn.direction,dn=Fn.listHeight,vn=Fn.listItemHeight,pn="".concat(rn,"-item"),On=(0,Dn.Z)(function(){return Jn},[ln,Jn],function(Ur,Xn){return Xn[0]&&Ur[1]!==Xn[1]}),Rn=Pe.useRef(null),Gn=function(Xn){Xn.preventDefault()},Er=function(Xn){Rn.current&&Rn.current.scrollTo(typeof Xn=="number"?{index:Xn}:Xn)},Hr=function(Xn){for(var Kn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Wr=On.length,Tr=0;Tr<Wr;Tr+=1){var ri=(Xn+Tr*Kn+Wr)%Wr,pi=On[ri],li=pi.group,$i=pi.data;if(!li&&!$i.disabled)return ri}return-1},Xr=Pe.useState(function(){return Hr(0)}),Lr=(0,be.Z)(Xr,2),vr=Lr[0],Jr=Lr[1],Gr=function(Xn){var Kn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Jr(Xn);var Wr={source:Kn?"keyboard":"mouse"},Tr=On[Xn];if(!Tr){Wn(null,-1,Wr);return}Wn(Tr.value,Xn,Wr)};(0,Pe.useEffect)(function(){Gr(mr!==!1?Hr(0):-1)},[On.length,Tn]);var Zr=Pe.useCallback(function(Ur){return It.has(Ur)&&An!=="combobox"},[An,(0,Ae.Z)(It).toString(),It.size]);(0,Pe.useEffect)(function(){var Ur=setTimeout(function(){if(!Cn&&ln&&It.size===1){var Kn=Array.from(It)[0],Wr=On.findIndex(function(Tr){var ri=Tr.data;return ri.value===Kn});Wr!==-1&&(Gr(Wr),Er(Wr))}});if(ln){var Xn;(Xn=Rn.current)===null||Xn===void 0||Xn.scrollTo(void 0)}return function(){return clearTimeout(Ur)}},[ln,Tn,Jn.length]);var xr=function(Xn){Xn!==void 0&&Bn(Xn,{selected:!It.has(Xn)}),Cn||Ut(!1)};if(Pe.useImperativeHandle(Ct,function(){return{onKeyDown:function(Xn){var Kn=Xn.which,Wr=Xn.ctrlKey;switch(Kn){case We.Z.N:case We.Z.P:case We.Z.UP:case We.Z.DOWN:{var Tr=0;if(Kn===We.Z.UP?Tr=-1:Kn===We.Z.DOWN?Tr=1:ar()&&Wr&&(Kn===We.Z.N?Tr=1:Kn===We.Z.P&&(Tr=-1)),Tr!==0){var ri=Hr(vr+Tr,Tr);Er(ri),Gr(ri,!0)}break}case We.Z.ENTER:{var pi=On[vr];pi&&!pi.data.disabled?xr(pi.value):xr(void 0),ln&&Xn.preventDefault();break}case We.Z.ESC:Ut(!1),ln&&Xn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Xn){Er(Xn)}}}),On.length===0)return Pe.createElement("div",{role:"listbox",id:"".concat(Vt,"_list"),className:"".concat(pn,"-empty"),onMouseDown:Gn},bn);var Nr=Object.keys(on).map(function(Ur){return on[Ur]}),Qr=function(Xn){return Xn.label};function Kr(Ur,Xn){var Kn=Ur.group;return{role:Kn?"presentation":"option",id:"".concat(Vt,"_list_").concat(Xn)}}var hi=function(Xn){var Kn=On[Xn];if(!Kn)return null;var Wr=Kn.data||{},Tr=Wr.value,ri=Kn.group,pi=(0,Ue.Z)(Wr,!0),li=Qr(Kn);return Kn?Pe.createElement("div",(0,ue.Z)({"aria-label":typeof li=="string"&&!ri?li:null},pi,{key:Xn},Kr(Kn,Xn),{"aria-selected":Zr(Tr)}),Tr):null},Bi={role:"listbox",id:"".concat(Vt,"_list")};return Pe.createElement(Pe.Fragment,null,un&&Pe.createElement("div",(0,ue.Z)({},Bi,{style:{height:0,width:0,overflow:"hidden"}}),hi(vr-1),hi(vr),hi(vr+1)),Pe.createElement(fr.Z,{itemKey:"key",ref:Rn,data:On,height:dn,itemHeight:vn,fullHeight:!1,onMouseDown:Gn,onScroll:Vn,virtual:un,direction:xn,innerProps:un?null:Bi},function(Ur,Xn){var Kn,Wr=Ur.group,Tr=Ur.groupOption,ri=Ur.data,pi=Ur.label,li=Ur.value,$i=ri.key;if(Wr){var xi,oa=(xi=ri.title)!==null&&xi!==void 0?xi:jn(pi)?pi.toString():void 0;return Pe.createElement("div",{className:De()(pn,"".concat(pn,"-group")),title:oa},pi!==void 0?pi:$i)}var Br=ri.disabled,Ar=ri.title,fi=ri.children,mi=ri.style,la=ri.className,Ua=(0,Ee.Z)(ri,Cr),Da=(0,qn.Z)(Ua,Nr),Wi=Zr(li),ma="".concat(pn,"-option"),na=De()(pn,ma,la,(Kn={},(0,ke.Z)(Kn,"".concat(ma,"-grouped"),Tr),(0,ke.Z)(Kn,"".concat(ma,"-active"),vr===Xn&&!Br),(0,ke.Z)(Kn,"".concat(ma,"-disabled"),Br),(0,ke.Z)(Kn,"".concat(ma,"-selected"),Wi),Kn)),sr=Qr(Ur),ur=!rr||typeof rr=="function"||Wi,cr=typeof sr=="number"?sr:sr||li,Or=jn(cr)?cr.toString():void 0;return Ar!==void 0&&(Or=Ar),Pe.createElement("div",(0,ue.Z)({},(0,Ue.Z)(Da),un?{}:Kr(Ur,Xn),{"aria-selected":Wi,className:na,title:Or,onMouseMove:function(){vr===Xn||Br||Gr(Xn)},onClick:function(){Br||xr(li)},style:mi}),Pe.createElement("div",{className:"".concat(ma,"-content")},cr),Pe.isValidElement(rr)||Wi,ur&&Pe.createElement(rt,{className:"".concat(pn,"-option-state"),customizeIcon:rr,customizeIconProps:{isSelected:Wi}},Wi?"\u2713":null))}))},ei=Pe.forwardRef(Dr);ei.displayName="OptionList";var Fr=ei;function ai(Je){var qe=Je.mode,Ct=Je.options,Rt=Je.children,rn=Je.backfill,Vt=Je.allowClear,ln=Je.placeholder,Cn=Je.getInputElement,An=Je.showSearch,Tn=Je.onSearch,Ut=Je.defaultOpen,bn=Je.autoFocus,Vn=Je.labelInValue,Fn=Je.value,Jn=Je.inputValue,Wn=Je.optionLabelProp,mr=isMultiple(qe),Bn=An!==void 0?An:mr||qe==="combobox",rr=Ct||convertChildrenToData(Rt);if(warning(qe!=="tags"||rr.every(function(xn){return!xn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),qe==="tags"||qe==="combobox"){var It=rr.some(function(xn){return xn.options?xn.options.some(function(dn){return typeof("value"in dn?dn.value:dn.key)=="number"}):typeof("value"in xn?xn.value:xn.key)=="number"});warning(!It,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(qe!=="combobox"||!Wn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(qe==="combobox"||!rn,"`backfill` only works with `combobox` mode."),warning(qe==="combobox"||!Cn,"`getInputElement` only work with `combobox` mode."),noteOnce(qe!=="combobox"||!Cn||!Vt||!ln,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Tn&&!Bn&&qe!=="combobox"&&qe!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Ut||bn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Fn!=null){var on=toArray(Fn);warning(!Vn||on.every(function(xn){return _typeof(xn)==="object"&&("key"in xn||"value"in xn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!mr||Array.isArray(Fn),"`value` should be array when `mode` is `multiple` or `tags`")}if(Rt){var un=null;toNodeArray(Rt).some(function(xn){if(!React.isValidElement(xn)||!xn.type)return!1;var dn=xn,vn=dn.type;if(vn.isSelectOption)return!1;if(vn.isSelectOptGroup){var pn=toNodeArray(xn.props.children).every(function(On){return!React.isValidElement(On)||!xn.type||On.type.isSelectOption?!0:(un=On.type,!1)});return!pn}return un=vn,!0}),un&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(un.displayName||un.name||un,"`.")),warning(Jn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function ti(Je,qe){if(Je){var Ct=function Rt(rn){for(var Vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ln=0;ln<rn.length;ln++){var Cn=rn[ln];if(Cn[qe==null?void 0:qe.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Vt&&Array.isArray(Cn[qe==null?void 0:qe.options])&&Rt(Cn[qe==null?void 0:qe.options],!0))break}};Ct(Je)}}var er=null,hr=["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"],zn=["inputValue"];function Hn(Je){return!Je||(0,he.Z)(Je)!=="object"}var wr=Pe.forwardRef(function(Je,qe){var Ct=Je.id,Rt=Je.mode,rn=Je.prefixCls,Vt=rn===void 0?"rc-select":rn,ln=Je.backfill,Cn=Je.fieldNames,An=Je.inputValue,Tn=Je.searchValue,Ut=Je.onSearch,bn=Je.autoClearSearchValue,Vn=bn===void 0?!0:bn,Fn=Je.onSelect,Jn=Je.onDeselect,Wn=Je.dropdownMatchSelectWidth,mr=Wn===void 0?!0:Wn,Bn=Je.filterOption,rr=Je.filterSort,It=Je.optionFilterProp,on=Je.optionLabelProp,un=Je.options,xn=Je.children,dn=Je.defaultActiveFirstOption,vn=Je.menuItemSelectedIcon,pn=Je.virtual,On=Je.direction,Rn=Je.listHeight,Gn=Rn===void 0?200:Rn,Er=Je.listItemHeight,Hr=Er===void 0?20:Er,Xr=Je.value,Lr=Je.defaultValue,vr=Je.labelInValue,Jr=Je.onChange,Gr=(0,Ee.Z)(Je,hr),Zr=(0,nn.ZP)(Ct),xr=ut(Rt),Nr=!!(!un&&xn),Qr=Pe.useMemo(function(){return Bn===void 0&&Rt==="combobox"?!1:Bn},[Bn,Rt]),Kr=Pe.useMemo(function(){return ae(Cn,Nr)},[JSON.stringify(Cn),Nr]),hi=(0,xe.Z)("",{value:Tn!==void 0?Tn:An,postState:function(Ri){return Ri||""}}),Bi=(0,be.Z)(hi,2),Ur=Bi[0],Xn=Bi[1],Kn=Xt(un,xn,Kr,It,on),Wr=Kn.valueOptions,Tr=Kn.labelOptions,ri=Kn.options,pi=Pe.useCallback(function(di){var Ri=Mt(di);return Ri.map(function(ki){var ci,Qi,ji,Pa,Wa;if(Hn(ki))ci=ki;else{var Na;ji=ki.key,Qi=ki.label,ci=(Na=ki.value)!==null&&Na!==void 0?Na:ji}var mn=Wr.get(ci);if(mn){var lr;if(Qi===void 0&&(Qi=mn==null?void 0:mn[on||Kr.label]),ji===void 0&&(ji=(lr=mn==null?void 0:mn.key)!==null&&lr!==void 0?lr:ci),Pa=mn==null?void 0:mn.disabled,Wa=mn==null?void 0:mn.title,0)var Pr}return{label:Qi,value:ci,key:ji,disabled:Pa,title:Wa}})},[Kr,on,Wr]),li=(0,xe.Z)(Lr,{value:Xr}),$i=(0,be.Z)(li,2),xi=$i[0],oa=$i[1],Br=Pe.useMemo(function(){var di,Ri=pi(xi);return Rt==="combobox"&&At((di=Ri[0])===null||di===void 0?void 0:di.value)?[]:Ri},[xi,pi,Rt]),Ar=Jt(Br,Wr),fi=(0,be.Z)(Ar,2),mi=fi[0],la=fi[1],Ua=Pe.useMemo(function(){if(!Rt&&mi.length===1){var di=mi[0];if(di.value===null&&(di.label===null||di.label===void 0))return[]}return mi.map(function(Ri){var ki;return(0,nt.Z)((0,nt.Z)({},Ri),{},{label:(ki=Ri.label)!==null&&ki!==void 0?ki:Ri.value})})},[Rt,mi]),Da=Pe.useMemo(function(){return new Set(mi.map(function(di){return di.value}))},[mi]);Pe.useEffect(function(){if(Rt==="combobox"){var di,Ri=(di=mi[0])===null||di===void 0?void 0:di.value;Xn(wt(Ri)?String(Ri):"")}},[mi]);var Wi=gn(function(di,Ri){var ki,ci=Ri!=null?Ri:di;return ki={},(0,ke.Z)(ki,Kr.value,di),(0,ke.Z)(ki,Kr.label,ci),ki}),ma=Pe.useMemo(function(){if(Rt!=="tags")return ri;var di=(0,Ae.Z)(ri),Ri=function(ci){return Wr.has(ci)};return(0,Ae.Z)(mi).sort(function(ki,ci){return ki.value<ci.value?-1:1}).forEach(function(ki){var ci=ki.value;Ri(ci)||di.push(Wi(ci,ki.label))}),di},[Wi,ri,Wr,mi,Rt]),na=Ft(ma,Kr,Ur,Qr,It),sr=Pe.useMemo(function(){return Rt!=="tags"||!Ur||na.some(function(di){return di[It||"value"]===Ur})||na.some(function(di){return di[Kr.value]===Ur})?na:[Wi(Ur)].concat((0,Ae.Z)(na))},[Wi,It,Rt,na,Ur,Kr]),ur=Pe.useMemo(function(){return rr?(0,Ae.Z)(sr).sort(function(di,Ri){return rr(di,Ri)}):sr},[sr,rr]),cr=Pe.useMemo(function(){return Te(ur,{fieldNames:Kr,childrenAsData:Nr})},[ur,Kr,Nr]),Or=function(Ri){var ki=pi(Ri);if(oa(ki),Jr&&(ki.length!==mi.length||ki.some(function(ji,Pa){var Wa;return((Wa=mi[Pa])===null||Wa===void 0?void 0:Wa.value)!==(ji==null?void 0:ji.value)}))){var ci=vr?ki:ki.map(function(ji){return ji.value}),Qi=ki.map(function(ji){return gt(la(ji.value))});Jr(xr?ci:ci[0],xr?Qi:Qi[0])}},Ki=Pe.useState(null),ea=(0,be.Z)(Ki,2),ra=ea[0],qi=ea[1],ia=Pe.useState(0),ga=(0,be.Z)(ia,2),Va=ga[0],Ra=ga[1],ko=dn!==void 0?dn:Rt!=="combobox",co=Pe.useCallback(function(di,Ri){var ki=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ci=ki.source,Qi=ci===void 0?"keyboard":ci;Ra(Ri),ln&&Rt==="combobox"&&di!==null&&Qi==="keyboard"&&qi(String(di))},[ln,Rt]),za=function(Ri,ki,ci){var Qi=function(){var wi,Ji=la(Ri);return[vr?{label:Ji==null?void 0:Ji[Kr.label],value:Ri,key:(wi=Ji==null?void 0:Ji.key)!==null&&wi!==void 0?wi:Ri}:Ri,gt(Ji)]};if(ki&&Fn){var ji=Qi(),Pa=(0,be.Z)(ji,2),Wa=Pa[0],Na=Pa[1];Fn(Wa,Na)}else if(!ki&&Jn&&ci!=="clear"){var mn=Qi(),lr=(0,be.Z)(mn,2),Pr=lr[0],gi=lr[1];Jn(Pr,gi)}},ds=gn(function(di,Ri){var ki,ci=xr?Ri.selected:!0;ci?ki=xr?[].concat((0,Ae.Z)(mi),[di]):[di]:ki=mi.filter(function(Qi){return Qi.value!==di}),Or(ki),za(di,ci),Rt==="combobox"?qi(""):(!ut||Vn)&&(Xn(""),qi(""))}),wo=function(Ri,ki){Or(Ri);var ci=ki.type,Qi=ki.values;(ci==="remove"||ci==="clear")&&Qi.forEach(function(ji){za(ji.value,!1,ci)})},xo=function(Ri,ki){if(Xn(Ri),qi(null),ki.source==="submit"){var ci=(Ri||"").trim();if(ci){var Qi=Array.from(new Set([].concat((0,Ae.Z)(Da),[ci])));Or(Qi),za(ci,!0),Xn("")}return}ki.source!=="blur"&&(Rt==="combobox"&&Or(Ri),Ut==null||Ut(Ri))},Za=function(Ri){var ki=Ri;Rt!=="tags"&&(ki=Ri.map(function(Qi){var ji=Tr.get(Qi);return ji==null?void 0:ji.value}).filter(function(Qi){return Qi!==void 0}));var ci=Array.from(new Set([].concat((0,Ae.Z)(Da),(0,Ae.Z)(ki))));Or(ci),ci.forEach(function(Qi){za(Qi,!0)})},va=Pe.useMemo(function(){var di=pn!==!1&&mr!==!1;return(0,nt.Z)((0,nt.Z)({},Kn),{},{flattenOptions:cr,onActiveValue:co,defaultActiveFirstOption:ko,onSelect:ds,menuItemSelectedIcon:vn,rawValues:Da,fieldNames:Kr,virtual:di,direction:On,listHeight:Gn,listItemHeight:Hr,childrenAsData:Nr})},[Kn,cr,co,ko,ds,vn,Da,Kr,pn,mr,Gn,Hr,Nr]);return Pe.createElement(Zn.Provider,{value:va},Pe.createElement(St,(0,ue.Z)({},Gr,{id:Zr,prefixCls:Vt,ref:qe,omitDomProps:zn,mode:Rt,displayValues:Ua,onDisplayValuesChange:wo,direction:On,searchValue:Ur,onSearch:xo,autoClearSearchValue:Vn,onSearchSplit:Za,dropdownMatchSelectWidth:mr,OptionList:Fr,emptyOptions:!cr.length,activeValue:ra,activeDescendantId:"".concat(Zr,"_list_").concat(Va)})))}),Bt=wr;Bt.Option=$n,Bt.OptGroup=wn;var ze=Bt,Xe=ze},9296:function(fn,Wt,oe){"use strict";oe.r(Wt),oe.d(Wt,{ResizableTextArea:function(){return st},default:function(){return At}});var ue=oe(60499),Ae=oe(85899),ke=oe(18642),nt=oe(43749),be=oe(72190),Ee=oe(42244),he=oe(77654),xe=oe(92310),Me=oe.n(xe),Pe=oe(93681),ct=oe(5643),De=oe(18929),Fe=oe(59301),et=oe(29301),We=oe(34280),je=oe(16089),pt=`
|
|
|
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;
|
|
|
`,rt=["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"],kt={},ft;function it(Nt){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ve=Nt.getAttribute("id")||Nt.getAttribute("data-reactid")||Nt.getAttribute("name");if(Tt&&kt[Ve])return kt[Ve];var ye=window.getComputedStyle(Nt),bt=ye.getPropertyValue("box-sizing")||ye.getPropertyValue("-moz-box-sizing")||ye.getPropertyValue("-webkit-box-sizing"),Qt=parseFloat(ye.getPropertyValue("padding-bottom"))+parseFloat(ye.getPropertyValue("padding-top")),Kt=parseFloat(ye.getPropertyValue("border-bottom-width"))+parseFloat(ye.getPropertyValue("border-top-width")),at=rt.map(function(Dt){return"".concat(Dt,":").concat(ye.getPropertyValue(Dt))}).join(";"),lt={sizingStyle:at,paddingSize:Qt,borderSize:Kt,boxSizing:bt};return Tt&&Ve&&(kt[Ve]=lt),lt}function He(Nt){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ye=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ft||(ft=document.createElement("textarea"),ft.setAttribute("tab-index","-1"),ft.setAttribute("aria-hidden","true"),document.body.appendChild(ft)),Nt.getAttribute("wrap")?ft.setAttribute("wrap",Nt.getAttribute("wrap")):ft.removeAttribute("wrap");var bt=it(Nt,Tt),Qt=bt.paddingSize,Kt=bt.borderSize,at=bt.boxSizing,lt=bt.sizingStyle;ft.setAttribute("style","".concat(lt,";").concat(pt)),ft.value=Nt.value||Nt.placeholder||"";var Dt=void 0,yn=void 0,$t,hn=ft.scrollHeight;if(at==="border-box"?hn+=Kt:at==="content-box"&&(hn-=Qt),Ve!==null||ye!==null){ft.value=" ";var tn=ft.scrollHeight-Qt;Ve!==null&&(Dt=tn*Ve,at==="border-box"&&(Dt=Dt+Qt+Kt),hn=Math.max(Dt,hn)),ye!==null&&(yn=tn*ye,at==="border-box"&&(yn=yn+Qt+Kt),$t=hn>yn?"":"hidden",hn=Math.min(yn,hn))}var en={height:hn,overflowY:$t,resize:"none"};return Dt&&(en.minHeight=Dt),yn&&(en.maxHeight=yn),en}var Se=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ke=0,Ue=1,vt=2,Ye=Fe.forwardRef(function(Nt,Tt){var Ve=Nt,ye=Ve.prefixCls,bt=Ve.onPressEnter,Qt=Ve.defaultValue,Kt=Ve.value,at=Ve.autoSize,lt=Ve.onResize,Dt=Ve.className,yn=Ve.style,$t=Ve.disabled,hn=Ve.onChange,tn=Ve.onInternalAutoSize,en=(0,Ee.Z)(Ve,Se),Gt=(0,De.Z)(Qt,{value:Kt,postState:function(wn){return wn!=null?wn:""}}),ve=(0,be.Z)(Gt,2),ce=ve[0],le=ve[1],de=function(wn){le(wn.target.value),hn==null||hn(wn)},pe=Fe.useRef();Fe.useImperativeHandle(Tt,function(){return{textArea:pe.current}});var ae=Fe.useMemo(function(){return at&&(0,nt.Z)(at)==="object"?[at.minRows,at.maxRows]:[]},[at]),Te=(0,be.Z)(ae,2),gt=Te[0],Re=Te[1],Be=!!at,yt=function(){try{if(document.activeElement===pe.current){var wn=pe.current,_n=wn.selectionStart,$n=wn.selectionEnd,Dn=wn.scrollTop;pe.current.setSelectionRange(_n,$n),pe.current.scrollTop=Dn}}catch(qn){}},ut=Fe.useState(vt),Qe=(0,be.Z)(ut,2),St=Qe[0],Jt=Qe[1],mt=Fe.useState(),Ft=(0,be.Z)(mt,2),nn=Ft[0],ht=Ft[1],Le=function(){Jt(Ke)};(0,We.Z)(function(){Be&&Le()},[Kt,gt,Re,Be]),(0,We.Z)(function(){if(St===Ke)Jt(Ue);else if(St===Ue){var En=He(pe.current,!1,gt,Re);Jt(vt),ht(En)}else yt()},[St]);var dt=Fe.useRef(),Pt=function(){je.Z.cancel(dt.current)},_t=function(wn){St===vt&&(lt==null||lt(wn),at&&(Pt(),dt.current=(0,je.Z)(function(){Le()})))};Fe.useEffect(function(){return Pt},[]);var Xt=Be?nn:null,gn=(0,Ae.Z)((0,Ae.Z)({},yn),Xt);return(St===Ke||St===Ue)&&(gn.overflowY="hidden",gn.overflowX="hidden"),Fe.createElement(et.Z,{onResize:_t,disabled:!(at||lt)},Fe.createElement("textarea",(0,ue.Z)({},en,{ref:pe,style:gn,className:Me()(ye,Dt,(0,ke.Z)({},"".concat(ye,"-disabled"),$t)),disabled:$t,value:ce,onChange:de})))}),st=Ye,Ie=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function Mt(Nt,Tt){return(0,he.Z)(Nt||"").slice(0,Tt).join("")}function Ge(Nt,Tt,Ve,ye){var bt=Ve;return Nt?bt=Mt(Ve,ye):(0,he.Z)(Tt||"").length<Ve.length&&(0,he.Z)(Ve||"").length>ye&&(bt=Tt),bt}var Ot=Fe.forwardRef(function(Nt,Tt){var Ve,ye=Nt.defaultValue,bt=Nt.value,Qt=Nt.onFocus,Kt=Nt.onBlur,at=Nt.onChange,lt=Nt.allowClear,Dt=Nt.maxLength,yn=Nt.onCompositionStart,$t=Nt.onCompositionEnd,hn=Nt.suffix,tn=Nt.prefixCls,en=tn===void 0?"rc-textarea":tn,Gt=Nt.classes,ve=Nt.showCount,ce=Nt.className,le=Nt.style,de=Nt.disabled,pe=Nt.hidden,ae=Nt.classNames,Te=Nt.styles,gt=Nt.onResize,Re=(0,Ee.Z)(Nt,Ie),Be=(0,De.Z)(ye,{value:bt,defaultValue:ye}),yt=(0,be.Z)(Be,2),ut=yt[0],Qe=yt[1],St=(0,Fe.useRef)(null),Jt=Fe.useState(!1),mt=(0,be.Z)(Jt,2),Ft=mt[0],nn=mt[1],ht=Fe.useState(!1),Le=(0,be.Z)(ht,2),dt=Le[0],Pt=Le[1],_t=Fe.useRef(),Xt=Fe.useRef(0),gn=Fe.useState(null),En=(0,be.Z)(gn,2),wn=En[0],_n=En[1],$n=function(){var Hn;(Hn=St.current)===null||Hn===void 0||Hn.textArea.focus()};(0,Fe.useImperativeHandle)(Tt,function(){return{resizableTextArea:St.current,focus:$n,blur:function(){var Hn;(Hn=St.current)===null||Hn===void 0||Hn.textArea.blur()}}}),(0,Fe.useEffect)(function(){nn(function(zn){return!de&&zn})},[de]);var Dn=Number(Dt)>0,qn=function(Hn){Pt(!0),_t.current=ut,Xt.current=Hn.currentTarget.selectionStart,yn==null||yn(Hn)},fr=function(Hn){Pt(!1);var wr=Hn.currentTarget.value;if(Dn){var Bt,ze=Xt.current>=Dt+1||Xt.current===((Bt=_t.current)===null||Bt===void 0?void 0:Bt.length);wr=Ge(ze,_t.current,wr,Dt)}wr!==ut&&(Qe(wr),(0,ct.rJ)(Hn.currentTarget,Hn,at,wr)),$t==null||$t(Hn)},br=function(Hn){var wr=Hn.target.value;if(!dt&&Dn){var Bt=Hn.target.selectionStart>=Dt+1||Hn.target.selectionStart===wr.length||!Hn.target.selectionStart;wr=Ge(Bt,ut,wr,Dt)}Qe(wr),(0,ct.rJ)(Hn.currentTarget,Hn,at,wr)},Zn=function(Hn){var wr=Re.onPressEnter,Bt=Re.onKeyDown;Hn.key==="Enter"&&wr&&wr(Hn),Bt==null||Bt(Hn)},ar=function(Hn){nn(!0),Qt==null||Qt(Hn)},Cr=function(Hn){nn(!1),Kt==null||Kt(Hn)},jn=function(Hn){var wr;Qe(""),$n(),(0,ct.rJ)((wr=St.current)===null||wr===void 0?void 0:wr.textArea,Hn,at)},Dr=(0,ct.D7)(ut);!dt&&Dn&&bt==null&&(Dr=Mt(Dr,Dt));var ei=hn,Fr;if(ve){var ai=(0,he.Z)(Dr).length;(0,nt.Z)(ve)==="object"?Fr=ve.formatter({value:Dr,count:ai,maxLength:Dt}):Fr="".concat(ai).concat(Dn?" / ".concat(Dt):""),ei=Fe.createElement(Fe.Fragment,null,ei,Fe.createElement("span",{className:Me()("".concat(en,"-data-count"),ae==null?void 0:ae.count),style:Te==null?void 0:Te.count},Fr))}var ti=function(Hn){var wr;gt==null||gt(Hn),(wr=St.current)!==null&&wr!==void 0&&wr.textArea.style.height&&_n(!0)},er=!Re.autoSize&&!ve&&!lt,hr=Fe.createElement(Pe.BaseInput,{value:Dr,allowClear:lt,handleReset:jn,suffix:ei,prefixCls:en,classes:{affixWrapper:Me()(Gt==null?void 0:Gt.affixWrapper,(Ve={},(0,ke.Z)(Ve,"".concat(en,"-show-count"),ve),(0,ke.Z)(Ve,"".concat(en,"-textarea-allow-clear"),lt),Ve))},disabled:de,focused:Ft,className:ce,style:(0,Ae.Z)((0,Ae.Z)({},le),wn&&!er?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Fr=="string"?Fr:void 0}},hidden:pe,inputElement:Fe.createElement(st,(0,ue.Z)({},Re,{onKeyDown:Zn,onChange:br,onFocus:ar,onBlur:Cr,onCompositionStart:qn,onCompositionEnd:fr,className:ae==null?void 0:ae.textarea,style:(0,Ae.Z)((0,Ae.Z)({},Te==null?void 0:Te.textarea),{},{resize:le==null?void 0:le.resize}),disabled:de,prefixCls:en,onResize:ti,ref:St}))});return hr}),wt=Ot,At=wt},39417:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return Ue}});var ue=oe(60499),Ae=oe(18642),ke=oe(42244),nt=oe(85899),be=oe(38705),Ee=oe(17212),he=oe(15793),xe=oe(39153),Me=oe(55401),Pe=oe(92310),ct=oe.n(Pe),De=oe(26112),Fe=oe(59301),et=oe(39378),We=function(Ye){for(var st=Ye.prefixCls,Ie=Ye.level,Mt=Ye.isStart,Ge=Ye.isEnd,Ot="".concat(st,"-indent-unit"),wt=[],At=0;At<Ie;At+=1){var Nt;wt.push(Fe.createElement("span",{key:At,className:ct()(Ot,(Nt={},(0,Ae.Z)(Nt,"".concat(Ot,"-start"),Mt[At]),(0,Ae.Z)(Nt,"".concat(Ot,"-end"),Ge[At]),Nt))}))}return Fe.createElement("span",{"aria-hidden":"true",className:"".concat(st,"-indent")},wt)},je=Fe.memo(We),pt=oe(67841),rt=oe(71430),kt=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ft="open",it="close",He="---",Se=function(vt){(0,xe.Z)(st,vt);var Ye=(0,Me.Z)(st);function st(){var Ie;(0,be.Z)(this,st);for(var Mt=arguments.length,Ge=new Array(Mt),Ot=0;Ot<Mt;Ot++)Ge[Ot]=arguments[Ot];return Ie=Ye.call.apply(Ye,[this].concat(Ge)),Ie.state={dragNodeHighlight:!1},Ie.selectHandle=void 0,Ie.cacheIndent=void 0,Ie.onSelectorClick=function(wt){var At=Ie.props.context.onNodeClick;At(wt,(0,rt.F)(Ie.props)),Ie.isSelectable()?Ie.onSelect(wt):Ie.onCheck(wt)},Ie.onSelectorDoubleClick=function(wt){var At=Ie.props.context.onNodeDoubleClick;At(wt,(0,rt.F)(Ie.props))},Ie.onSelect=function(wt){if(!Ie.isDisabled()){var At=Ie.props.context.onNodeSelect;At(wt,(0,rt.F)(Ie.props))}},Ie.onCheck=function(wt){if(!Ie.isDisabled()){var At=Ie.props,Nt=At.disableCheckbox,Tt=At.checked,Ve=Ie.props.context.onNodeCheck;if(!(!Ie.isCheckable()||Nt)){var ye=!Tt;Ve(wt,(0,rt.F)(Ie.props),ye)}}},Ie.onMouseEnter=function(wt){var At=Ie.props.context.onNodeMouseEnter;At(wt,(0,rt.F)(Ie.props))},Ie.onMouseLeave=function(wt){var At=Ie.props.context.onNodeMouseLeave;At(wt,(0,rt.F)(Ie.props))},Ie.onContextMenu=function(wt){var At=Ie.props.context.onNodeContextMenu;At(wt,(0,rt.F)(Ie.props))},Ie.onDragStart=function(wt){var At=Ie.props.context.onNodeDragStart;wt.stopPropagation(),Ie.setState({dragNodeHighlight:!0}),At(wt,(0,he.Z)(Ie));try{wt.dataTransfer.setData("text/plain","")}catch(Nt){}},Ie.onDragEnter=function(wt){var At=Ie.props.context.onNodeDragEnter;wt.preventDefault(),wt.stopPropagation(),At(wt,(0,he.Z)(Ie))},Ie.onDragOver=function(wt){var At=Ie.props.context.onNodeDragOver;wt.preventDefault(),wt.stopPropagation(),At(wt,(0,he.Z)(Ie))},Ie.onDragLeave=function(wt){var At=Ie.props.context.onNodeDragLeave;wt.stopPropagation(),At(wt,(0,he.Z)(Ie))},Ie.onDragEnd=function(wt){var At=Ie.props.context.onNodeDragEnd;wt.stopPropagation(),Ie.setState({dragNodeHighlight:!1}),At(wt,(0,he.Z)(Ie))},Ie.onDrop=function(wt){var At=Ie.props.context.onNodeDrop;wt.preventDefault(),wt.stopPropagation(),Ie.setState({dragNodeHighlight:!1}),At(wt,(0,he.Z)(Ie))},Ie.onExpand=function(wt){var At=Ie.props,Nt=At.loading,Tt=At.context.onNodeExpand;Nt||Tt(wt,(0,rt.F)(Ie.props))},Ie.setSelectHandle=function(wt){Ie.selectHandle=wt},Ie.getNodeState=function(){var wt=Ie.props.expanded;return Ie.isLeaf()?null:wt?ft:it},Ie.hasChildren=function(){var wt=Ie.props.eventKey,At=Ie.props.context.keyEntities,Nt=(0,pt.Z)(At,wt)||{},Tt=Nt.children;return!!(Tt||[]).length},Ie.isLeaf=function(){var wt=Ie.props,At=wt.isLeaf,Nt=wt.loaded,Tt=Ie.props.context.loadData,Ve=Ie.hasChildren();return At===!1?!1:At||!Tt&&!Ve||Tt&&Nt&&!Ve},Ie.isDisabled=function(){var wt=Ie.props.disabled,At=Ie.props.context.disabled;return!!(At||wt)},Ie.isCheckable=function(){var wt=Ie.props.checkable,At=Ie.props.context.checkable;return!At||wt===!1?!1:At},Ie.syncLoadData=function(wt){var At=wt.expanded,Nt=wt.loading,Tt=wt.loaded,Ve=Ie.props.context,ye=Ve.loadData,bt=Ve.onNodeLoad;Nt||ye&&At&&!Ie.isLeaf()&&!Ie.hasChildren()&&!Tt&&bt((0,rt.F)(Ie.props))},Ie.isDraggable=function(){var wt=Ie.props,At=wt.data,Nt=wt.context.draggable;return!!(Nt&&(!Nt.nodeDraggable||Nt.nodeDraggable(At)))},Ie.renderDragHandler=function(){var wt=Ie.props.context,At=wt.draggable,Nt=wt.prefixCls;return At!=null&&At.icon?Fe.createElement("span",{className:"".concat(Nt,"-draggable-icon")},At.icon):null},Ie.renderSwitcherIconDom=function(wt){var At=Ie.props.switcherIcon,Nt=Ie.props.context.switcherIcon,Tt=At||Nt;return typeof Tt=="function"?Tt((0,nt.Z)((0,nt.Z)({},Ie.props),{},{isLeaf:wt})):Tt},Ie.renderSwitcher=function(){var wt=Ie.props.expanded,At=Ie.props.context.prefixCls;if(Ie.isLeaf()){var Nt=Ie.renderSwitcherIconDom(!0);return Nt!==!1?Fe.createElement("span",{className:ct()("".concat(At,"-switcher"),"".concat(At,"-switcher-noop"))},Nt):null}var Tt=ct()("".concat(At,"-switcher"),"".concat(At,"-switcher_").concat(wt?ft:it)),Ve=Ie.renderSwitcherIconDom(!1);return Ve!==!1?Fe.createElement("span",{onClick:Ie.onExpand,className:Tt},Ve):null},Ie.renderCheckbox=function(){var wt=Ie.props,At=wt.checked,Nt=wt.halfChecked,Tt=wt.disableCheckbox,Ve=Ie.props.context.prefixCls,ye=Ie.isDisabled(),bt=Ie.isCheckable();if(!bt)return null;var Qt=typeof bt!="boolean"?bt:null;return Fe.createElement("span",{className:ct()("".concat(Ve,"-checkbox"),At&&"".concat(Ve,"-checkbox-checked"),!At&&Nt&&"".concat(Ve,"-checkbox-indeterminate"),(ye||Tt)&&"".concat(Ve,"-checkbox-disabled")),onClick:Ie.onCheck},Qt)},Ie.renderIcon=function(){var wt=Ie.props.loading,At=Ie.props.context.prefixCls;return Fe.createElement("span",{className:ct()("".concat(At,"-iconEle"),"".concat(At,"-icon__").concat(Ie.getNodeState()||"docu"),wt&&"".concat(At,"-icon_loading"))})},Ie.renderSelector=function(){var wt=Ie.state.dragNodeHighlight,At=Ie.props,Nt=At.title,Tt=Nt===void 0?He:Nt,Ve=At.selected,ye=At.icon,bt=At.loading,Qt=At.data,Kt=Ie.props.context,at=Kt.prefixCls,lt=Kt.showIcon,Dt=Kt.icon,yn=Kt.loadData,$t=Kt.titleRender,hn=Ie.isDisabled(),tn="".concat(at,"-node-content-wrapper"),en;if(lt){var Gt=ye||Dt;en=Gt?Fe.createElement("span",{className:ct()("".concat(at,"-iconEle"),"".concat(at,"-icon__customize"))},typeof Gt=="function"?Gt(Ie.props):Gt):Ie.renderIcon()}else yn&&bt&&(en=Ie.renderIcon());var ve;typeof Tt=="function"?ve=Tt(Qt):$t?ve=$t(Qt):ve=Tt;var ce=Fe.createElement("span",{className:"".concat(at,"-title")},ve);return Fe.createElement("span",{ref:Ie.setSelectHandle,title:typeof Tt=="string"?Tt:"",className:ct()("".concat(tn),"".concat(tn,"-").concat(Ie.getNodeState()||"normal"),!hn&&(Ve||wt)&&"".concat(at,"-node-selected")),onMouseEnter:Ie.onMouseEnter,onMouseLeave:Ie.onMouseLeave,onContextMenu:Ie.onContextMenu,onClick:Ie.onSelectorClick,onDoubleClick:Ie.onSelectorDoubleClick},en,ce,Ie.renderDropIndicator())},Ie.renderDropIndicator=function(){var wt=Ie.props,At=wt.disabled,Nt=wt.eventKey,Tt=Ie.props.context,Ve=Tt.draggable,ye=Tt.dropLevelOffset,bt=Tt.dropPosition,Qt=Tt.prefixCls,Kt=Tt.indent,at=Tt.dropIndicatorRender,lt=Tt.dragOverNodeKey,Dt=Tt.direction,yn=!!Ve,$t=!At&&yn&<===Nt,hn=Kt!=null?Kt:Ie.cacheIndent;return Ie.cacheIndent=Kt,$t?at({dropPosition:bt,dropLevelOffset:ye,indent:hn,prefixCls:Qt,direction:Dt}):null},Ie}return(0,Ee.Z)(st,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Mt=this.props.selectable,Ge=this.props.context.selectable;return typeof Mt=="boolean"?Mt:Ge}},{key:"render",value:function(){var Mt,Ge=this.props,Ot=Ge.eventKey,wt=Ge.className,At=Ge.style,Nt=Ge.dragOver,Tt=Ge.dragOverGapTop,Ve=Ge.dragOverGapBottom,ye=Ge.isLeaf,bt=Ge.isStart,Qt=Ge.isEnd,Kt=Ge.expanded,at=Ge.selected,lt=Ge.checked,Dt=Ge.halfChecked,yn=Ge.loading,$t=Ge.domRef,hn=Ge.active,tn=Ge.data,en=Ge.onMouseMove,Gt=Ge.selectable,ve=(0,ke.Z)(Ge,kt),ce=this.props.context,le=ce.prefixCls,de=ce.filterTreeNode,pe=ce.keyEntities,ae=ce.dropContainerKey,Te=ce.dropTargetKey,gt=ce.draggingNodeKey,Re=this.isDisabled(),Be=(0,De.Z)(ve,{aria:!0,data:!0}),yt=(0,pt.Z)(pe,Ot)||{},ut=yt.level,Qe=Qt[Qt.length-1],St=this.isDraggable(),Jt=!Re&&St,mt=gt===Ot,Ft=Gt!==void 0?{"aria-selected":!!Gt}:void 0;return Fe.createElement("div",(0,ue.Z)({ref:$t,className:ct()(wt,"".concat(le,"-treenode"),(Mt={},(0,Ae.Z)(Mt,"".concat(le,"-treenode-disabled"),Re),(0,Ae.Z)(Mt,"".concat(le,"-treenode-switcher-").concat(Kt?"open":"close"),!ye),(0,Ae.Z)(Mt,"".concat(le,"-treenode-checkbox-checked"),lt),(0,Ae.Z)(Mt,"".concat(le,"-treenode-checkbox-indeterminate"),Dt),(0,Ae.Z)(Mt,"".concat(le,"-treenode-selected"),at),(0,Ae.Z)(Mt,"".concat(le,"-treenode-loading"),yn),(0,Ae.Z)(Mt,"".concat(le,"-treenode-active"),hn),(0,Ae.Z)(Mt,"".concat(le,"-treenode-leaf-last"),Qe),(0,Ae.Z)(Mt,"".concat(le,"-treenode-draggable"),St),(0,Ae.Z)(Mt,"dragging",mt),(0,Ae.Z)(Mt,"drop-target",Te===Ot),(0,Ae.Z)(Mt,"drop-container",ae===Ot),(0,Ae.Z)(Mt,"drag-over",!Re&&Nt),(0,Ae.Z)(Mt,"drag-over-gap-top",!Re&&Tt),(0,Ae.Z)(Mt,"drag-over-gap-bottom",!Re&&Ve),(0,Ae.Z)(Mt,"filter-node",de&&de((0,rt.F)(this.props))),Mt)),style:At,draggable:Jt,"aria-grabbed":mt,onDragStart:Jt?this.onDragStart:void 0,onDragEnter:St?this.onDragEnter:void 0,onDragOver:St?this.onDragOver:void 0,onDragLeave:St?this.onDragLeave:void 0,onDrop:St?this.onDrop:void 0,onDragEnd:St?this.onDragEnd:void 0,onMouseMove:en},Ft,Be),Fe.createElement(je,{prefixCls:le,level:ut,isStart:bt,isEnd:Qt}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),st}(Fe.Component),Ke=function(Ye){return Fe.createElement(et.k.Consumer,null,function(st){return Fe.createElement(Se,(0,ue.Z)({},Ye,{context:st}))})};Ke.displayName="TreeNode",Ke.isTreeNode=1;var Ue=Ke},39378:function(fn,Wt,oe){"use strict";oe.d(Wt,{k:function(){return Ae}});var ue=oe(59301),Ae=ue.createContext(null)},38028:function(fn,Wt,oe){"use strict";oe.d(Wt,{O:function(){return Ue.Z},Z:function(){return ce}});var ue=oe(60499),Ae=oe(18642),ke=oe(43749),nt=oe(85899),be=oe(77654),Ee=oe(38705),he=oe(17212),xe=oe(15793),Me=oe(39153),Pe=oe(55401),ct=oe(92310),De=oe.n(ct),Fe=oe(10228),et=oe(26112),We=oe(48736),je=oe(59301),pt=oe(39378);function rt(le){var de=le.dropPosition,pe=le.dropLevelOffset,ae=le.indent,Te={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(de){case-1:Te.top=0,Te.left=-pe*ae;break;case 1:Te.bottom=0,Te.left=-pe*ae;break;case 0:Te.bottom=0,Te.left=ae;break}return je.createElement("div",{style:Te})}function kt(le){if(le==null)throw new TypeError("Cannot destructure "+le)}var ft=oe(72190),it=oe(42244),He=oe(34280),Se=oe(48911),Ke=oe(77900),Ue=oe(39417);function vt(le,de){var pe=je.useState(!1),ae=(0,ft.Z)(pe,2),Te=ae[0],gt=ae[1];je.useLayoutEffect(function(){if(Te)return le(),function(){de()}},[Te]),je.useLayoutEffect(function(){return gt(!0),function(){gt(!1)}},[])}var Ye=oe(71430),st=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Ie=function(de,pe){var ae=de.className,Te=de.style,gt=de.motion,Re=de.motionNodes,Be=de.motionType,yt=de.onMotionStart,ut=de.onMotionEnd,Qe=de.active,St=de.treeNodeRequiredProps,Jt=(0,it.Z)(de,st),mt=je.useState(!0),Ft=(0,ft.Z)(mt,2),nn=Ft[0],ht=Ft[1],Le=je.useContext(pt.k),dt=Le.prefixCls,Pt=Re&&Be!=="hide";(0,He.Z)(function(){Re&&Pt!==nn&&ht(Pt)},[Re]);var _t=function(){Re&&yt()},Xt=je.useRef(!1),gn=function(){Re&&!Xt.current&&(Xt.current=!0,ut())};vt(_t,gn);var En=function(_n){Pt===_n&&gn()};return Re?je.createElement(Ke.default,(0,ue.Z)({ref:pe,visible:nn},gt,{motionAppear:Be==="show",onVisibleChanged:En}),function(wn,_n){var $n=wn.className,Dn=wn.style;return je.createElement("div",{ref:_n,className:De()("".concat(dt,"-treenode-motion"),$n),style:Dn},Re.map(function(qn){var fr=(0,ue.Z)({},(kt(qn.data),qn.data)),br=qn.title,Zn=qn.key,ar=qn.isStart,Cr=qn.isEnd;delete fr.children;var jn=(0,Ye.H8)(Zn,St);return je.createElement(Ue.Z,(0,ue.Z)({},fr,jn,{title:br,active:Qe,data:qn.data,key:Zn,isStart:ar,isEnd:Cr}))}))}):je.createElement(Ue.Z,(0,ue.Z)({domRef:pe,className:ae,style:Te},Jt,{active:Qe}))};Ie.displayName="MotionTreeNode";var Mt=je.forwardRef(Ie),Ge=Mt;function Ot(){var le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],pe=le.length,ae=de.length;if(Math.abs(pe-ae)!==1)return{add:!1,key:null};function Te(gt,Re){var Be=new Map;gt.forEach(function(ut){Be.set(ut,!0)});var yt=Re.filter(function(ut){return!Be.has(ut)});return yt.length===1?yt[0]:null}return pe<ae?{add:!0,key:Te(le,de)}:{add:!1,key:Te(de,le)}}function wt(le,de,pe){var ae=le.findIndex(function(Be){return Be.key===pe}),Te=le[ae+1],gt=de.findIndex(function(Be){return Be.key===pe});if(Te){var Re=de.findIndex(function(Be){return Be.key===Te.key});return de.slice(gt+1,Re)}return de.slice(gt+1)}var At=["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"],Nt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Tt=function(){},Ve="RC_TREE_MOTION_".concat(Math.random()),ye={key:Ve},bt={key:Ve,level:0,index:0,pos:"0",node:ye,nodes:[ye]},Qt={parent:null,children:[],pos:bt.pos,data:ye,title:null,key:Ve,isStart:[],isEnd:[]};function Kt(le,de,pe,ae){return de===!1||!pe?le:le.slice(0,Math.ceil(pe/ae)+1)}function at(le){var de=le.key,pe=le.pos;return(0,Ye.km)(de,pe)}function lt(le){for(var de=String(le.data.key),pe=le;pe.parent;)pe=pe.parent,de="".concat(pe.data.key," > ").concat(de);return de}var Dt=je.forwardRef(function(le,de){var pe=le.prefixCls,ae=le.data,Te=le.selectable,gt=le.checkable,Re=le.expandedKeys,Be=le.selectedKeys,yt=le.checkedKeys,ut=le.loadedKeys,Qe=le.loadingKeys,St=le.halfCheckedKeys,Jt=le.keyEntities,mt=le.disabled,Ft=le.dragging,nn=le.dragOverNodeKey,ht=le.dropPosition,Le=le.motion,dt=le.height,Pt=le.itemHeight,_t=le.virtual,Xt=le.focusable,gn=le.activeItem,En=le.focused,wn=le.tabIndex,_n=le.onKeyDown,$n=le.onFocus,Dn=le.onBlur,qn=le.onActiveChange,fr=le.onListChangeStart,br=le.onListChangeEnd,Zn=(0,it.Z)(le,At),ar=je.useRef(null),Cr=je.useRef(null);je.useImperativeHandle(de,function(){return{scrollTo:function(bn){ar.current.scrollTo(bn)},getIndentWidth:function(){return Cr.current.offsetWidth}}});var jn=je.useState(Re),Dr=(0,ft.Z)(jn,2),ei=Dr[0],Fr=Dr[1],ai=je.useState(ae),ti=(0,ft.Z)(ai,2),er=ti[0],hr=ti[1],zn=je.useState(ae),Hn=(0,ft.Z)(zn,2),wr=Hn[0],Bt=Hn[1],ze=je.useState([]),Xe=(0,ft.Z)(ze,2),Je=Xe[0],qe=Xe[1],Ct=je.useState(null),Rt=(0,ft.Z)(Ct,2),rn=Rt[0],Vt=Rt[1],ln=je.useRef(ae);ln.current=ae;function Cn(){var Ut=ln.current;hr(Ut),Bt(Ut),qe([]),Vt(null),br()}(0,He.Z)(function(){Fr(Re);var Ut=Ot(ei,Re);if(Ut.key!==null)if(Ut.add){var bn=er.findIndex(function(Bn){var rr=Bn.key;return rr===Ut.key}),Vn=Kt(wt(er,ae,Ut.key),_t,dt,Pt),Fn=er.slice();Fn.splice(bn+1,0,Qt),Bt(Fn),qe(Vn),Vt("show")}else{var Jn=ae.findIndex(function(Bn){var rr=Bn.key;return rr===Ut.key}),Wn=Kt(wt(ae,er,Ut.key),_t,dt,Pt),mr=ae.slice();mr.splice(Jn+1,0,Qt),Bt(mr),qe(Wn),Vt("hide")}else er!==ae&&(hr(ae),Bt(ae))},[Re,ae]),je.useEffect(function(){Ft||Cn()},[Ft]);var An=Le?wr:ae,Tn={expandedKeys:Re,selectedKeys:Be,loadedKeys:ut,loadingKeys:Qe,checkedKeys:yt,halfCheckedKeys:St,dragOverNodeKey:nn,dropPosition:ht,keyEntities:Jt};return je.createElement(je.Fragment,null,En&&gn&&je.createElement("span",{style:Nt,"aria-live":"assertive"},lt(gn)),je.createElement("div",null,je.createElement("input",{style:Nt,disabled:Xt===!1||mt,tabIndex:Xt!==!1?wn:null,onKeyDown:_n,onFocus:$n,onBlur:Dn,value:"",onChange:Tt,"aria-label":"for screen reader"})),je.createElement("div",{className:"".concat(pe,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},je.createElement("div",{className:"".concat(pe,"-indent")},je.createElement("div",{ref:Cr,className:"".concat(pe,"-indent-unit")}))),je.createElement(Se.Z,(0,ue.Z)({},Zn,{data:An,itemKey:at,height:dt,fullHeight:!1,virtual:_t,itemHeight:Pt,prefixCls:"".concat(pe,"-list"),ref:ar,onVisibleChange:function(bn,Vn){var Fn=new Set(bn),Jn=Vn.filter(function(Wn){return!Fn.has(Wn)});Jn.some(function(Wn){return at(Wn)===Ve})&&Cn()}}),function(Ut){var bn=Ut.pos,Vn=(0,ue.Z)({},(kt(Ut.data),Ut.data)),Fn=Ut.title,Jn=Ut.key,Wn=Ut.isStart,mr=Ut.isEnd,Bn=(0,Ye.km)(Jn,bn);delete Vn.key,delete Vn.children;var rr=(0,Ye.H8)(Bn,Tn);return je.createElement(Ge,(0,ue.Z)({},Vn,rr,{title:Fn,active:!!gn&&Jn===gn.key,pos:bn,data:Ut.data,isStart:Wn,isEnd:mr,motion:Le,motionNodes:Jn===Ve?Je:null,motionType:rn,onMotionStart:fr,onMotionEnd:Cn,treeNodeRequiredProps:Tn,onMouseMove:function(){qn(null)}}))}))});Dt.displayName="NodeList";var yn=Dt,$t=oe(35654),hn=oe(90782),tn=oe(67841),en=10,Gt=function(le){(0,Me.Z)(pe,le);var de=(0,Pe.Z)(pe);function pe(){var ae;(0,Ee.Z)(this,pe);for(var Te=arguments.length,gt=new Array(Te),Re=0;Re<Te;Re++)gt[Re]=arguments[Re];return ae=de.call.apply(de,[this].concat(gt)),ae.destroyed=!1,ae.delayedDragEnterLogic=void 0,ae.loadingRetryTimes={},ae.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,Ye.w$)()},ae.dragStartMousePosition=null,ae.dragNode=void 0,ae.currentMouseOverDroppableNodeKey=null,ae.listRef=je.createRef(),ae.onNodeDragStart=function(Be,yt){var ut=ae.state,Qe=ut.expandedKeys,St=ut.keyEntities,Jt=ae.props.onDragStart,mt=yt.props.eventKey;ae.dragNode=yt,ae.dragStartMousePosition={x:Be.clientX,y:Be.clientY};var Ft=(0,$t._5)(Qe,mt);ae.setState({draggingNodeKey:mt,dragChildrenKeys:(0,$t.wA)(mt,St),indent:ae.listRef.current.getIndentWidth()}),ae.setExpandedKeys(Ft),window.addEventListener("dragend",ae.onWindowDragEnd),Jt==null||Jt({event:Be,node:(0,Ye.F)(yt.props)})},ae.onNodeDragEnter=function(Be,yt){var ut=ae.state,Qe=ut.expandedKeys,St=ut.keyEntities,Jt=ut.dragChildrenKeys,mt=ut.flattenNodes,Ft=ut.indent,nn=ae.props,ht=nn.onDragEnter,Le=nn.onExpand,dt=nn.allowDrop,Pt=nn.direction,_t=yt.props,Xt=_t.pos,gn=_t.eventKey,En=(0,xe.Z)(ae),wn=En.dragNode;if(ae.currentMouseOverDroppableNodeKey!==gn&&(ae.currentMouseOverDroppableNodeKey=gn),!wn){ae.resetDragState();return}var _n=(0,$t.OM)(Be,wn,yt,Ft,ae.dragStartMousePosition,dt,mt,St,Qe,Pt),$n=_n.dropPosition,Dn=_n.dropLevelOffset,qn=_n.dropTargetKey,fr=_n.dropContainerKey,br=_n.dropTargetPos,Zn=_n.dropAllowed,ar=_n.dragOverNodeKey;if(Jt.indexOf(qn)!==-1||!Zn){ae.resetDragState();return}if(ae.delayedDragEnterLogic||(ae.delayedDragEnterLogic={}),Object.keys(ae.delayedDragEnterLogic).forEach(function(Cr){clearTimeout(ae.delayedDragEnterLogic[Cr])}),wn.props.eventKey!==yt.props.eventKey&&(Be.persist(),ae.delayedDragEnterLogic[Xt]=window.setTimeout(function(){if(ae.state.draggingNodeKey!==null){var Cr=(0,be.Z)(Qe),jn=(0,tn.Z)(St,yt.props.eventKey);jn&&(jn.children||[]).length&&(Cr=(0,$t.L0)(Qe,yt.props.eventKey)),"expandedKeys"in ae.props||ae.setExpandedKeys(Cr),Le==null||Le(Cr,{node:(0,Ye.F)(yt.props),expanded:!0,nativeEvent:Be.nativeEvent})}},800)),wn.props.eventKey===qn&&Dn===0){ae.resetDragState();return}ae.setState({dragOverNodeKey:ar,dropPosition:$n,dropLevelOffset:Dn,dropTargetKey:qn,dropContainerKey:fr,dropTargetPos:br,dropAllowed:Zn}),ht==null||ht({event:Be,node:(0,Ye.F)(yt.props),expandedKeys:Qe})},ae.onNodeDragOver=function(Be,yt){var ut=ae.state,Qe=ut.dragChildrenKeys,St=ut.flattenNodes,Jt=ut.keyEntities,mt=ut.expandedKeys,Ft=ut.indent,nn=ae.props,ht=nn.onDragOver,Le=nn.allowDrop,dt=nn.direction,Pt=(0,xe.Z)(ae),_t=Pt.dragNode;if(_t){var Xt=(0,$t.OM)(Be,_t,yt,Ft,ae.dragStartMousePosition,Le,St,Jt,mt,dt),gn=Xt.dropPosition,En=Xt.dropLevelOffset,wn=Xt.dropTargetKey,_n=Xt.dropContainerKey,$n=Xt.dropAllowed,Dn=Xt.dropTargetPos,qn=Xt.dragOverNodeKey;Qe.indexOf(wn)!==-1||!$n||(_t.props.eventKey===wn&&En===0?ae.state.dropPosition===null&&ae.state.dropLevelOffset===null&&ae.state.dropTargetKey===null&&ae.state.dropContainerKey===null&&ae.state.dropTargetPos===null&&ae.state.dropAllowed===!1&&ae.state.dragOverNodeKey===null||ae.resetDragState():gn===ae.state.dropPosition&&En===ae.state.dropLevelOffset&&wn===ae.state.dropTargetKey&&_n===ae.state.dropContainerKey&&Dn===ae.state.dropTargetPos&&$n===ae.state.dropAllowed&&qn===ae.state.dragOverNodeKey||ae.setState({dropPosition:gn,dropLevelOffset:En,dropTargetKey:wn,dropContainerKey:_n,dropTargetPos:Dn,dropAllowed:$n,dragOverNodeKey:qn}),ht==null||ht({event:Be,node:(0,Ye.F)(yt.props)}))}},ae.onNodeDragLeave=function(Be,yt){ae.currentMouseOverDroppableNodeKey===yt.props.eventKey&&!Be.currentTarget.contains(Be.relatedTarget)&&(ae.resetDragState(),ae.currentMouseOverDroppableNodeKey=null);var ut=ae.props.onDragLeave;ut==null||ut({event:Be,node:(0,Ye.F)(yt.props)})},ae.onWindowDragEnd=function(Be){ae.onNodeDragEnd(Be,null,!0),window.removeEventListener("dragend",ae.onWindowDragEnd)},ae.onNodeDragEnd=function(Be,yt){var ut=ae.props.onDragEnd;ae.setState({dragOverNodeKey:null}),ae.cleanDragState(),ut==null||ut({event:Be,node:(0,Ye.F)(yt.props)}),ae.dragNode=null,window.removeEventListener("dragend",ae.onWindowDragEnd)},ae.onNodeDrop=function(Be,yt){var ut,Qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,St=ae.state,Jt=St.dragChildrenKeys,mt=St.dropPosition,Ft=St.dropTargetKey,nn=St.dropTargetPos,ht=St.dropAllowed;if(ht){var Le=ae.props.onDrop;if(ae.setState({dragOverNodeKey:null}),ae.cleanDragState(),Ft!==null){var dt=(0,nt.Z)((0,nt.Z)({},(0,Ye.H8)(Ft,ae.getTreeNodeRequiredProps())),{},{active:((ut=ae.getActiveItem())===null||ut===void 0?void 0:ut.key)===Ft,data:(0,tn.Z)(ae.state.keyEntities,Ft).node}),Pt=Jt.indexOf(Ft)!==-1;(0,We.ZP)(!Pt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var _t=(0,$t.yx)(nn),Xt={event:Be,node:(0,Ye.F)(dt),dragNode:ae.dragNode?(0,Ye.F)(ae.dragNode.props):null,dragNodesKeys:[ae.dragNode.props.eventKey].concat(Jt),dropToGap:mt!==0,dropPosition:mt+Number(_t[_t.length-1])};Qe||Le==null||Le(Xt),ae.dragNode=null}}},ae.cleanDragState=function(){var Be=ae.state.draggingNodeKey;Be!==null&&ae.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),ae.dragStartMousePosition=null,ae.currentMouseOverDroppableNodeKey=null},ae.triggerExpandActionExpand=function(Be,yt){var ut=ae.state,Qe=ut.expandedKeys,St=ut.flattenNodes,Jt=yt.expanded,mt=yt.key,Ft=yt.isLeaf;if(!(Ft||Be.shiftKey||Be.metaKey||Be.ctrlKey)){var nn=St.filter(function(Le){return Le.key===mt})[0],ht=(0,Ye.F)((0,nt.Z)((0,nt.Z)({},(0,Ye.H8)(mt,ae.getTreeNodeRequiredProps())),{},{data:nn.data}));ae.setExpandedKeys(Jt?(0,$t._5)(Qe,mt):(0,$t.L0)(Qe,mt)),ae.onNodeExpand(Be,ht)}},ae.onNodeClick=function(Be,yt){var ut=ae.props,Qe=ut.onClick,St=ut.expandAction;St==="click"&&ae.triggerExpandActionExpand(Be,yt),Qe==null||Qe(Be,yt)},ae.onNodeDoubleClick=function(Be,yt){var ut=ae.props,Qe=ut.onDoubleClick,St=ut.expandAction;St==="doubleClick"&&ae.triggerExpandActionExpand(Be,yt),Qe==null||Qe(Be,yt)},ae.onNodeSelect=function(Be,yt){var ut=ae.state.selectedKeys,Qe=ae.state,St=Qe.keyEntities,Jt=Qe.fieldNames,mt=ae.props,Ft=mt.onSelect,nn=mt.multiple,ht=yt.selected,Le=yt[Jt.key],dt=!ht;dt?nn?ut=(0,$t.L0)(ut,Le):ut=[Le]:ut=(0,$t._5)(ut,Le);var Pt=ut.map(function(_t){var Xt=(0,tn.Z)(St,_t);return Xt?Xt.node:null}).filter(function(_t){return _t});ae.setUncontrolledState({selectedKeys:ut}),Ft==null||Ft(ut,{event:"select",selected:dt,node:yt,selectedNodes:Pt,nativeEvent:Be.nativeEvent})},ae.onNodeCheck=function(Be,yt,ut){var Qe=ae.state,St=Qe.keyEntities,Jt=Qe.checkedKeys,mt=Qe.halfCheckedKeys,Ft=ae.props,nn=Ft.checkStrictly,ht=Ft.onCheck,Le=yt.key,dt,Pt={event:"check",node:yt,checked:ut,nativeEvent:Be.nativeEvent};if(nn){var _t=ut?(0,$t.L0)(Jt,Le):(0,$t._5)(Jt,Le),Xt=(0,$t._5)(mt,Le);dt={checked:_t,halfChecked:Xt},Pt.checkedNodes=_t.map(function(Dn){return(0,tn.Z)(St,Dn)}).filter(function(Dn){return Dn}).map(function(Dn){return Dn.node}),ae.setUncontrolledState({checkedKeys:_t})}else{var gn=(0,hn.S)([].concat((0,be.Z)(Jt),[Le]),!0,St),En=gn.checkedKeys,wn=gn.halfCheckedKeys;if(!ut){var _n=new Set(En);_n.delete(Le);var $n=(0,hn.S)(Array.from(_n),{checked:!1,halfCheckedKeys:wn},St);En=$n.checkedKeys,wn=$n.halfCheckedKeys}dt=En,Pt.checkedNodes=[],Pt.checkedNodesPositions=[],Pt.halfCheckedKeys=wn,En.forEach(function(Dn){var qn=(0,tn.Z)(St,Dn);if(qn){var fr=qn.node,br=qn.pos;Pt.checkedNodes.push(fr),Pt.checkedNodesPositions.push({node:fr,pos:br})}}),ae.setUncontrolledState({checkedKeys:En},!1,{halfCheckedKeys:wn})}ht==null||ht(dt,Pt)},ae.onNodeLoad=function(Be){var yt=Be.key,ut=new Promise(function(Qe,St){ae.setState(function(Jt){var mt=Jt.loadedKeys,Ft=mt===void 0?[]:mt,nn=Jt.loadingKeys,ht=nn===void 0?[]:nn,Le=ae.props,dt=Le.loadData,Pt=Le.onLoad;if(!dt||Ft.indexOf(yt)!==-1||ht.indexOf(yt)!==-1)return null;var _t=dt(Be);return _t.then(function(){var Xt=ae.state.loadedKeys,gn=(0,$t.L0)(Xt,yt);Pt==null||Pt(gn,{event:"load",node:Be}),ae.setUncontrolledState({loadedKeys:gn}),ae.setState(function(En){return{loadingKeys:(0,$t._5)(En.loadingKeys,yt)}}),Qe()}).catch(function(Xt){if(ae.setState(function(En){return{loadingKeys:(0,$t._5)(En.loadingKeys,yt)}}),ae.loadingRetryTimes[yt]=(ae.loadingRetryTimes[yt]||0)+1,ae.loadingRetryTimes[yt]>=en){var gn=ae.state.loadedKeys;(0,We.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),ae.setUncontrolledState({loadedKeys:(0,$t.L0)(gn,yt)}),Qe()}St(Xt)}),{loadingKeys:(0,$t.L0)(ht,yt)}})});return ut.catch(function(){}),ut},ae.onNodeMouseEnter=function(Be,yt){var ut=ae.props.onMouseEnter;ut==null||ut({event:Be,node:yt})},ae.onNodeMouseLeave=function(Be,yt){var ut=ae.props.onMouseLeave;ut==null||ut({event:Be,node:yt})},ae.onNodeContextMenu=function(Be,yt){var ut=ae.props.onRightClick;ut&&(Be.preventDefault(),ut({event:Be,node:yt}))},ae.onFocus=function(){var Be=ae.props.onFocus;ae.setState({focused:!0});for(var yt=arguments.length,ut=new Array(yt),Qe=0;Qe<yt;Qe++)ut[Qe]=arguments[Qe];Be==null||Be.apply(void 0,ut)},ae.onBlur=function(){var Be=ae.props.onBlur;ae.setState({focused:!1}),ae.onActiveChange(null);for(var yt=arguments.length,ut=new Array(yt),Qe=0;Qe<yt;Qe++)ut[Qe]=arguments[Qe];Be==null||Be.apply(void 0,ut)},ae.getTreeNodeRequiredProps=function(){var Be=ae.state,yt=Be.expandedKeys,ut=Be.selectedKeys,Qe=Be.loadedKeys,St=Be.loadingKeys,Jt=Be.checkedKeys,mt=Be.halfCheckedKeys,Ft=Be.dragOverNodeKey,nn=Be.dropPosition,ht=Be.keyEntities;return{expandedKeys:yt||[],selectedKeys:ut||[],loadedKeys:Qe||[],loadingKeys:St||[],checkedKeys:Jt||[],halfCheckedKeys:mt||[],dragOverNodeKey:Ft,dropPosition:nn,keyEntities:ht}},ae.setExpandedKeys=function(Be){var yt=ae.state,ut=yt.treeData,Qe=yt.fieldNames,St=(0,Ye.oH)(ut,Be,Qe);ae.setUncontrolledState({expandedKeys:Be,flattenNodes:St},!0)},ae.onNodeExpand=function(Be,yt){var ut=ae.state.expandedKeys,Qe=ae.state,St=Qe.listChanging,Jt=Qe.fieldNames,mt=ae.props,Ft=mt.onExpand,nn=mt.loadData,ht=yt.expanded,Le=yt[Jt.key];if(!St){var dt=ut.indexOf(Le),Pt=!ht;if((0,We.ZP)(ht&&dt!==-1||!ht&&dt===-1,"Expand state not sync with index check"),Pt?ut=(0,$t.L0)(ut,Le):ut=(0,$t._5)(ut,Le),ae.setExpandedKeys(ut),Ft==null||Ft(ut,{node:yt,expanded:Pt,nativeEvent:Be.nativeEvent}),Pt&&nn){var _t=ae.onNodeLoad(yt);_t&&_t.then(function(){var Xt=(0,Ye.oH)(ae.state.treeData,ut,Jt);ae.setUncontrolledState({flattenNodes:Xt})}).catch(function(){var Xt=ae.state.expandedKeys,gn=(0,$t._5)(Xt,Le);ae.setExpandedKeys(gn)})}}},ae.onListChangeStart=function(){ae.setUncontrolledState({listChanging:!0})},ae.onListChangeEnd=function(){setTimeout(function(){ae.setUncontrolledState({listChanging:!1})})},ae.onActiveChange=function(Be){var yt=ae.state.activeKey,ut=ae.props.onActiveChange;yt!==Be&&(ae.setState({activeKey:Be}),Be!==null&&ae.scrollTo({key:Be}),ut==null||ut(Be))},ae.getActiveItem=function(){var Be=ae.state,yt=Be.activeKey,ut=Be.flattenNodes;return yt===null?null:ut.find(function(Qe){var St=Qe.key;return St===yt})||null},ae.offsetActiveKey=function(Be){var yt=ae.state,ut=yt.flattenNodes,Qe=yt.activeKey,St=ut.findIndex(function(Ft){var nn=Ft.key;return nn===Qe});St===-1&&Be<0&&(St=ut.length),St=(St+Be+ut.length)%ut.length;var Jt=ut[St];if(Jt){var mt=Jt.key;ae.onActiveChange(mt)}else ae.onActiveChange(null)},ae.onKeyDown=function(Be){var yt=ae.state,ut=yt.activeKey,Qe=yt.expandedKeys,St=yt.checkedKeys,Jt=yt.fieldNames,mt=ae.props,Ft=mt.onKeyDown,nn=mt.checkable,ht=mt.selectable;switch(Be.which){case Fe.Z.UP:{ae.offsetActiveKey(-1),Be.preventDefault();break}case Fe.Z.DOWN:{ae.offsetActiveKey(1),Be.preventDefault();break}}var Le=ae.getActiveItem();if(Le&&Le.data){var dt=ae.getTreeNodeRequiredProps(),Pt=Le.data.isLeaf===!1||!!(Le.data[Jt.children]||[]).length,_t=(0,Ye.F)((0,nt.Z)((0,nt.Z)({},(0,Ye.H8)(ut,dt)),{},{data:Le.data,active:!0}));switch(Be.which){case Fe.Z.LEFT:{Pt&&Qe.includes(ut)?ae.onNodeExpand({},_t):Le.parent&&ae.onActiveChange(Le.parent.key),Be.preventDefault();break}case Fe.Z.RIGHT:{Pt&&!Qe.includes(ut)?ae.onNodeExpand({},_t):Le.children&&Le.children.length&&ae.onActiveChange(Le.children[0].key),Be.preventDefault();break}case Fe.Z.ENTER:case Fe.Z.SPACE:{nn&&!_t.disabled&&_t.checkable!==!1&&!_t.disableCheckbox?ae.onNodeCheck({},_t,!St.includes(ut)):!nn&&ht&&!_t.disabled&&_t.selectable!==!1&&ae.onNodeSelect({},_t);break}}}Ft==null||Ft(Be)},ae.setUncontrolledState=function(Be){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!ae.destroyed){var Qe=!1,St=!0,Jt={};Object.keys(Be).forEach(function(mt){if(mt in ae.props){St=!1;return}Qe=!0,Jt[mt]=Be[mt]}),Qe&&(!yt||St)&&ae.setState((0,nt.Z)((0,nt.Z)({},Jt),ut))}},ae.scrollTo=function(Be){ae.listRef.current.scrollTo(Be)},ae}return(0,he.Z)(pe,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Te=this.props.activeKey;Te!==void 0&&Te!==this.state.activeKey&&(this.setState({activeKey:Te}),Te!==null&&this.scrollTo({key:Te}))}},{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 Te,gt=this.state,Re=gt.focused,Be=gt.flattenNodes,yt=gt.keyEntities,ut=gt.draggingNodeKey,Qe=gt.activeKey,St=gt.dropLevelOffset,Jt=gt.dropContainerKey,mt=gt.dropTargetKey,Ft=gt.dropPosition,nn=gt.dragOverNodeKey,ht=gt.indent,Le=this.props,dt=Le.prefixCls,Pt=Le.className,_t=Le.style,Xt=Le.showLine,gn=Le.focusable,En=Le.tabIndex,wn=En===void 0?0:En,_n=Le.selectable,$n=Le.showIcon,Dn=Le.icon,qn=Le.switcherIcon,fr=Le.draggable,br=Le.checkable,Zn=Le.checkStrictly,ar=Le.disabled,Cr=Le.motion,jn=Le.loadData,Dr=Le.filterTreeNode,ei=Le.height,Fr=Le.itemHeight,ai=Le.virtual,ti=Le.titleRender,er=Le.dropIndicatorRender,hr=Le.onContextMenu,zn=Le.onScroll,Hn=Le.direction,wr=Le.rootClassName,Bt=Le.rootStyle,ze=(0,et.Z)(this.props,{aria:!0,data:!0}),Xe;return fr&&((0,ke.Z)(fr)==="object"?Xe=fr:typeof fr=="function"?Xe={nodeDraggable:fr}:Xe={}),je.createElement(pt.k.Provider,{value:{prefixCls:dt,selectable:_n,showIcon:$n,icon:Dn,switcherIcon:qn,draggable:Xe,draggingNodeKey:ut,checkable:br,checkStrictly:Zn,disabled:ar,keyEntities:yt,dropLevelOffset:St,dropContainerKey:Jt,dropTargetKey:mt,dropPosition:Ft,dragOverNodeKey:nn,indent:ht,direction:Hn,dropIndicatorRender:er,loadData:jn,filterTreeNode:Dr,titleRender:ti,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}},je.createElement("div",{role:"tree",className:De()(dt,Pt,wr,(Te={},(0,Ae.Z)(Te,"".concat(dt,"-show-line"),Xt),(0,Ae.Z)(Te,"".concat(dt,"-focused"),Re),(0,Ae.Z)(Te,"".concat(dt,"-active-focused"),Qe!==null),Te)),style:Bt},je.createElement(yn,(0,ue.Z)({ref:this.listRef,prefixCls:dt,style:_t,data:Be,disabled:ar,selectable:_n,checkable:!!br,motion:Cr,dragging:ut!==null,height:ei,itemHeight:Fr,virtual:ai,focusable:gn,focused:Re,tabIndex:wn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:hr,onScroll:zn},this.getTreeNodeRequiredProps(),ze))))}}],[{key:"getDerivedStateFromProps",value:function(Te,gt){var Re=gt.prevProps,Be={prevProps:Te};function yt(gn){return!Re&&gn in Te||Re&&Re[gn]!==Te[gn]}var ut,Qe=gt.fieldNames;if(yt("fieldNames")&&(Qe=(0,Ye.w$)(Te.fieldNames),Be.fieldNames=Qe),yt("treeData")?ut=Te.treeData:yt("children")&&((0,We.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ut=(0,Ye.zn)(Te.children)),ut){Be.treeData=ut;var St=(0,Ye.I8)(ut,{fieldNames:Qe});Be.keyEntities=(0,nt.Z)((0,Ae.Z)({},Ve,bt),St.keyEntities)}var Jt=Be.keyEntities||gt.keyEntities;if(yt("expandedKeys")||Re&&yt("autoExpandParent"))Be.expandedKeys=Te.autoExpandParent||!Re&&Te.defaultExpandParent?(0,$t.r7)(Te.expandedKeys,Jt):Te.expandedKeys;else if(!Re&&Te.defaultExpandAll){var mt=(0,nt.Z)({},Jt);delete mt[Ve],Be.expandedKeys=Object.keys(mt).map(function(gn){return mt[gn].key})}else!Re&&Te.defaultExpandedKeys&&(Be.expandedKeys=Te.autoExpandParent||Te.defaultExpandParent?(0,$t.r7)(Te.defaultExpandedKeys,Jt):Te.defaultExpandedKeys);if(Be.expandedKeys||delete Be.expandedKeys,ut||Be.expandedKeys){var Ft=(0,Ye.oH)(ut||gt.treeData,Be.expandedKeys||gt.expandedKeys,Qe);Be.flattenNodes=Ft}if(Te.selectable&&(yt("selectedKeys")?Be.selectedKeys=(0,$t.BT)(Te.selectedKeys,Te):!Re&&Te.defaultSelectedKeys&&(Be.selectedKeys=(0,$t.BT)(Te.defaultSelectedKeys,Te))),Te.checkable){var nn;if(yt("checkedKeys")?nn=(0,$t.E6)(Te.checkedKeys)||{}:!Re&&Te.defaultCheckedKeys?nn=(0,$t.E6)(Te.defaultCheckedKeys)||{}:ut&&(nn=(0,$t.E6)(Te.checkedKeys)||{checkedKeys:gt.checkedKeys,halfCheckedKeys:gt.halfCheckedKeys}),nn){var ht=nn,Le=ht.checkedKeys,dt=Le===void 0?[]:Le,Pt=ht.halfCheckedKeys,_t=Pt===void 0?[]:Pt;if(!Te.checkStrictly){var Xt=(0,hn.S)(dt,!0,Jt);dt=Xt.checkedKeys,_t=Xt.halfCheckedKeys}Be.checkedKeys=dt,Be.halfCheckedKeys=_t}}return yt("loadedKeys")&&(Be.loadedKeys=Te.loadedKeys),Be}}]),pe}(je.Component);Gt.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:rt,allowDrop:function(){return!0},expandAction:!1},Gt.TreeNode=Ue.Z;var ve=Gt,ce=ve},35654:function(fn,Wt,oe){"use strict";oe.d(Wt,{BT:function(){return je},E6:function(){return kt},L0:function(){return Pe},OM:function(){return We},_5:function(){return Me},r7:function(){return ft},wA:function(){return De},yx:function(){return ct}});var ue=oe(77654),Ae=oe(43749),ke=oe(48736),nt=oe(59301),be=oe(39417),Ee=oe(67841),he=oe(71430),xe=null;function Me(it,He){if(!it)return[];var Se=it.slice(),Ke=Se.indexOf(He);return Ke>=0&&Se.splice(Ke,1),Se}function Pe(it,He){var Se=(it||[]).slice();return Se.indexOf(He)===-1&&Se.push(He),Se}function ct(it){return it.split("-")}function De(it,He){var Se=[],Ke=(0,Ee.Z)(He,it);function Ue(){var vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];vt.forEach(function(Ye){var st=Ye.key,Ie=Ye.children;Se.push(st),Ue(Ie)})}return Ue(Ke.children),Se}function Fe(it){if(it.parent){var He=ct(it.pos);return Number(He[He.length-1])===it.parent.children.length-1}return!1}function et(it){var He=ct(it.pos);return Number(He[He.length-1])===0}function We(it,He,Se,Ke,Ue,vt,Ye,st,Ie,Mt){var Ge,Ot=it.clientX,wt=it.clientY,At=it.target.getBoundingClientRect(),Nt=At.top,Tt=At.height,Ve=(Mt==="rtl"?-1:1)*(((Ue==null?void 0:Ue.x)||0)-Ot),ye=(Ve-12)/Ke,bt=(0,Ee.Z)(st,Se.props.eventKey);if(wt<Nt+Tt/2){var Qt=Ye.findIndex(function(ce){return ce.key===bt.key}),Kt=Qt<=0?0:Qt-1,at=Ye[Kt].key;bt=(0,Ee.Z)(st,at)}var lt=bt.key,Dt=bt,yn=bt.key,$t=0,hn=0;if(!Ie.includes(lt))for(var tn=0;tn<ye&&Fe(bt);tn+=1)bt=bt.parent,hn+=1;var en=He.props.data,Gt=bt.node,ve=!0;return et(bt)&&bt.level===0&&wt<Nt+Tt/2&&vt({dragNode:en,dropNode:Gt,dropPosition:-1})&&bt.key===Se.props.eventKey?$t=-1:(Dt.children||[]).length&&Ie.includes(yn)?vt({dragNode:en,dropNode:Gt,dropPosition:0})?$t=0:ve=!1:hn===0?ye>-1.5?vt({dragNode:en,dropNode:Gt,dropPosition:1})?$t=1:ve=!1:vt({dragNode:en,dropNode:Gt,dropPosition:0})?$t=0:vt({dragNode:en,dropNode:Gt,dropPosition:1})?$t=1:ve=!1:vt({dragNode:en,dropNode:Gt,dropPosition:1})?$t=1:ve=!1,{dropPosition:$t,dropLevelOffset:hn,dropTargetKey:bt.key,dropTargetPos:bt.pos,dragOverNodeKey:yn,dropContainerKey:$t===0?null:((Ge=bt.parent)===null||Ge===void 0?void 0:Ge.key)||null,dropAllowed:ve}}function je(it,He){if(it){var Se=He.multiple;return Se?it.slice():it.length?[it[0]]:it}}var pt=function(He){return He};function rt(it,He){if(!it)return[];var Se=He||{},Ke=Se.processProps,Ue=Ke===void 0?pt:Ke,vt=Array.isArray(it)?it:[it];return vt.map(function(Ye){var st=Ye.children,Ie=_objectWithoutProperties(Ye,xe),Mt=rt(st,He);return React.createElement(TreeNode,_extends({key:Ie.key},Ue(Ie)),Mt)})}function kt(it){if(!it)return null;var He;if(Array.isArray(it))He={checkedKeys:it,halfCheckedKeys:void 0};else if((0,Ae.Z)(it)==="object")He={checkedKeys:it.checked||void 0,halfCheckedKeys:it.halfChecked||void 0};else return(0,ke.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return He}function ft(it,He){var Se=new Set;function Ke(Ue){if(!Se.has(Ue)){var vt=(0,Ee.Z)(He,Ue);if(vt){Se.add(Ue);var Ye=vt.parent,st=vt.node;st.disabled||Ye&&Ke(Ye.key)}}}return(it||[]).forEach(function(Ue){Ke(Ue)}),(0,ue.Z)(Se)}},90782:function(fn,Wt,oe){"use strict";oe.d(Wt,{S:function(){return he}});var ue=oe(48736),Ae=oe(67841);function ke(xe,Me){var Pe=new Set;return xe.forEach(function(ct){Me.has(ct)||Pe.add(ct)}),Pe}function nt(xe){var Me=xe||{},Pe=Me.disabled,ct=Me.disableCheckbox,De=Me.checkable;return!!(Pe||ct)||De===!1}function be(xe,Me,Pe,ct){for(var De=new Set(xe),Fe=new Set,et=0;et<=Pe;et+=1){var We=Me.get(et)||new Set;We.forEach(function(kt){var ft=kt.key,it=kt.node,He=kt.children,Se=He===void 0?[]:He;De.has(ft)&&!ct(it)&&Se.filter(function(Ke){return!ct(Ke.node)}).forEach(function(Ke){De.add(Ke.key)})})}for(var je=new Set,pt=Pe;pt>=0;pt-=1){var rt=Me.get(pt)||new Set;rt.forEach(function(kt){var ft=kt.parent,it=kt.node;if(!(ct(it)||!kt.parent||je.has(kt.parent.key))){if(ct(kt.parent.node)){je.add(ft.key);return}var He=!0,Se=!1;(ft.children||[]).filter(function(Ke){return!ct(Ke.node)}).forEach(function(Ke){var Ue=Ke.key,vt=De.has(Ue);He&&!vt&&(He=!1),!Se&&(vt||Fe.has(Ue))&&(Se=!0)}),He&&De.add(ft.key),Se&&Fe.add(ft.key),je.add(ft.key)}})}return{checkedKeys:Array.from(De),halfCheckedKeys:Array.from(ke(Fe,De))}}function Ee(xe,Me,Pe,ct,De){for(var Fe=new Set(xe),et=new Set(Me),We=0;We<=ct;We+=1){var je=Pe.get(We)||new Set;je.forEach(function(ft){var it=ft.key,He=ft.node,Se=ft.children,Ke=Se===void 0?[]:Se;!Fe.has(it)&&!et.has(it)&&!De(He)&&Ke.filter(function(Ue){return!De(Ue.node)}).forEach(function(Ue){Fe.delete(Ue.key)})})}et=new Set;for(var pt=new Set,rt=ct;rt>=0;rt-=1){var kt=Pe.get(rt)||new Set;kt.forEach(function(ft){var it=ft.parent,He=ft.node;if(!(De(He)||!ft.parent||pt.has(ft.parent.key))){if(De(ft.parent.node)){pt.add(it.key);return}var Se=!0,Ke=!1;(it.children||[]).filter(function(Ue){return!De(Ue.node)}).forEach(function(Ue){var vt=Ue.key,Ye=Fe.has(vt);Se&&!Ye&&(Se=!1),!Ke&&(Ye||et.has(vt))&&(Ke=!0)}),Se||Fe.delete(it.key),Ke&&et.add(it.key),pt.add(it.key)}})}return{checkedKeys:Array.from(Fe),halfCheckedKeys:Array.from(ke(et,Fe))}}function he(xe,Me,Pe,ct){var De=[],Fe;ct?Fe=ct:Fe=nt;var et=new Set(xe.filter(function(rt){var kt=!!(0,Ae.Z)(Pe,rt);return kt||De.push(rt),kt})),We=new Map,je=0;Object.keys(Pe).forEach(function(rt){var kt=Pe[rt],ft=kt.level,it=We.get(ft);it||(it=new Set,We.set(ft,it)),it.add(kt),je=Math.max(je,ft)}),(0,ue.ZP)(!De.length,"Tree missing follow keys: ".concat(De.slice(0,100).map(function(rt){return"'".concat(rt,"'")}).join(", ")));var pt;return Me===!0?pt=be(et,We,je,Fe):pt=Ee(et,Me.halfCheckedKeys,We,je,Fe),pt}},67841:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return ue}});function ue(Ae,ke){return Ae[ke]}},71430:function(fn,Wt,oe){"use strict";oe.d(Wt,{F:function(){return ft},H8:function(){return kt},I8:function(){return rt},km:function(){return De},oH:function(){return je},w$:function(){return Fe},zn:function(){return We}});var ue=oe(43749),Ae=oe(77654),ke=oe(85899),nt=oe(42244),be=oe(11592),Ee=oe(2738),he=oe(48736),xe=oe(67841),Me=["children"];function Pe(it,He){return"".concat(it,"-").concat(He)}function ct(it){return it&&it.type&&it.type.isTreeNode}function De(it,He){return it!=null?it:He}function Fe(it){var He=it||{},Se=He.title,Ke=He._title,Ue=He.key,vt=He.children,Ye=Se||"title";return{title:Ye,_title:Ke||[Ye],key:Ue||"key",children:vt||"children"}}function et(it,He){var Se=new Map;function Ke(Ue){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Ue||[]).forEach(function(Ye){var st=Ye[He.key],Ie=Ye[He.children];warning(st!=null,"Tree node must have a certain key: [".concat(vt).concat(st,"]"));var Mt=String(st);warning(!Se.has(Mt)||st===null||st===void 0,"Same 'key' exist in the Tree: ".concat(Mt)),Se.set(Mt,!0),Ke(Ie,"".concat(vt).concat(Mt," > "))})}Ke(it)}function We(it){function He(Se){var Ke=(0,be.Z)(Se);return Ke.map(function(Ue){if(!ct(Ue))return(0,he.ZP)(!Ue,"Tree/TreeNode can only accept TreeNode as children."),null;var vt=Ue.key,Ye=Ue.props,st=Ye.children,Ie=(0,nt.Z)(Ye,Me),Mt=(0,ke.Z)({key:vt},Ie),Ge=He(st);return Ge.length&&(Mt.children=Ge),Mt}).filter(function(Ue){return Ue})}return He(it)}function je(it,He,Se){var Ke=Fe(Se),Ue=Ke._title,vt=Ke.key,Ye=Ke.children,st=new Set(He===!0?[]:He),Ie=[];function Mt(Ge){var Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ge.map(function(wt,At){for(var Nt=Pe(Ot?Ot.pos:"0",At),Tt=De(wt[vt],Nt),Ve,ye=0;ye<Ue.length;ye+=1){var bt=Ue[ye];if(wt[bt]!==void 0){Ve=wt[bt];break}}var Qt=(0,ke.Z)((0,ke.Z)({},(0,Ee.Z)(wt,[].concat((0,Ae.Z)(Ue),[vt,Ye]))),{},{title:Ve,key:Tt,parent:Ot,pos:Nt,children:null,data:wt,isStart:[].concat((0,Ae.Z)(Ot?Ot.isStart:[]),[At===0]),isEnd:[].concat((0,Ae.Z)(Ot?Ot.isEnd:[]),[At===Ge.length-1])});return Ie.push(Qt),He===!0||st.has(Tt)?Qt.children=Mt(wt[Ye]||[],Qt):Qt.children=[],Qt})}return Mt(it),Ie}function pt(it,He,Se){var Ke={};(0,ue.Z)(Se)==="object"?Ke=Se:Ke={externalGetKey:Se},Ke=Ke||{};var Ue=Ke,vt=Ue.childrenPropName,Ye=Ue.externalGetKey,st=Ue.fieldNames,Ie=Fe(st),Mt=Ie.key,Ge=Ie.children,Ot=vt||Ge,wt;Ye?typeof Ye=="string"?wt=function(Tt){return Tt[Ye]}:typeof Ye=="function"&&(wt=function(Tt){return Ye(Tt)}):wt=function(Tt,Ve){return De(Tt[Mt],Ve)};function At(Nt,Tt,Ve,ye){var bt=Nt?Nt[Ot]:it,Qt=Nt?Pe(Ve.pos,Tt):"0",Kt=Nt?[].concat((0,Ae.Z)(ye),[Nt]):[];if(Nt){var at=wt(Nt,Qt),lt={node:Nt,index:Tt,pos:Qt,key:at,parentPos:Ve.node?Ve.pos:null,level:Ve.level+1,nodes:Kt};He(lt)}bt&&bt.forEach(function(Dt,yn){At(Dt,yn,{node:Nt,pos:Qt,level:Ve?Ve.level+1:-1},Kt)})}At(null)}function rt(it){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Se=He.initWrapper,Ke=He.processEntity,Ue=He.onProcessFinished,vt=He.externalGetKey,Ye=He.childrenPropName,st=He.fieldNames,Ie=arguments.length>2?arguments[2]:void 0,Mt=vt||Ie,Ge={},Ot={},wt={posEntities:Ge,keyEntities:Ot};return Se&&(wt=Se(wt)||wt),pt(it,function(At){var Nt=At.node,Tt=At.index,Ve=At.pos,ye=At.key,bt=At.parentPos,Qt=At.level,Kt=At.nodes,at={node:Nt,nodes:Kt,index:Tt,key:ye,pos:Ve,level:Qt},lt=De(ye,Ve);Ge[Ve]=at,Ot[lt]=at,at.parent=Ge[bt],at.parent&&(at.parent.children=at.parent.children||[],at.parent.children.push(at)),Ke&&Ke(at,wt)},{externalGetKey:Mt,childrenPropName:Ye,fieldNames:st}),Ue&&Ue(wt),wt}function kt(it,He){var Se=He.expandedKeys,Ke=He.selectedKeys,Ue=He.loadedKeys,vt=He.loadingKeys,Ye=He.checkedKeys,st=He.halfCheckedKeys,Ie=He.dragOverNodeKey,Mt=He.dropPosition,Ge=He.keyEntities,Ot=(0,xe.Z)(Ge,it),wt={eventKey:it,expanded:Se.indexOf(it)!==-1,selected:Ke.indexOf(it)!==-1,loaded:Ue.indexOf(it)!==-1,loading:vt.indexOf(it)!==-1,checked:Ye.indexOf(it)!==-1,halfChecked:st.indexOf(it)!==-1,pos:String(Ot?Ot.pos:""),dragOver:Ie===it&&Mt===0,dragOverGapTop:Ie===it&&Mt===-1,dragOverGapBottom:Ie===it&&Mt===1};return wt}function ft(it){var He=it.data,Se=it.expanded,Ke=it.selected,Ue=it.checked,vt=it.loaded,Ye=it.loading,st=it.halfChecked,Ie=it.dragOver,Mt=it.dragOverGapTop,Ge=it.dragOverGapBottom,Ot=it.pos,wt=it.active,At=it.eventKey,Nt=(0,ke.Z)((0,ke.Z)({},He),{},{expanded:Se,selected:Ke,checked:Ue,loaded:vt,loading:Ye,halfChecked:st,dragOver:Ie,dragOverGapTop:Mt,dragOverGapBottom:Ge,pos:Ot,active:wt,key:At});return"props"in Nt||Object.defineProperty(Nt,"props",{get:function(){return(0,he.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),it}}),Nt}},8224:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return Ae}});var ue=oe(4676);function Ae(ke,nt,be,Ee){var he=ue.unstable_batchedUpdates?function(Me){ue.unstable_batchedUpdates(be,Me)}:be;return ke!=null&&ke.addEventListener&&ke.addEventListener(nt,he,Ee),{remove:function(){ke!=null&&ke.removeEventListener&&ke.removeEventListener(nt,he,Ee)}}}},55468:function(fn,Wt,oe){"use strict";oe.d(Wt,{g1:function(){return ct},os:function(){return Fe}});var ue=/margin|padding|width|height|max|min|offset/,Ae={left:!0,top:!0},ke={cssFloat:1,styleFloat:1,float:1};function nt(et){return et.nodeType===1?et.ownerDocument.defaultView.getComputedStyle(et,null):{}}function be(et,We,je){if(We=We.toLowerCase(),je==="auto"){if(We==="height")return et.offsetHeight;if(We==="width")return et.offsetWidth}return We in Ae||(Ae[We]=ue.test(We)),Ae[We]?parseFloat(je)||0:je}function Ee(et,We){var je=arguments.length,pt=nt(et);return We=ke[We]?"cssFloat"in et.style?"cssFloat":"styleFloat":We,je===1?pt:be(et,We,pt[We]||et.style[We])}function he(et,We,je){var pt=arguments.length;if(We=ke[We]?"cssFloat"in et.style?"cssFloat":"styleFloat":We,pt===3)return typeof je=="number"&&ue.test(We)&&(je="".concat(je,"px")),et.style[We]=je,je;for(var rt in We)We.hasOwnProperty(rt)&&he(et,rt,We[rt]);return nt(et)}function xe(et){return et===document.body?document.documentElement.clientWidth:et.offsetWidth}function Me(et){return et===document.body?window.innerHeight||document.documentElement.clientHeight:et.offsetHeight}function Pe(){var et=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),We=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:et,height:We}}function ct(){var et=document.documentElement.clientWidth,We=window.innerHeight||document.documentElement.clientHeight;return{width:et,height:We}}function De(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Fe(et){var We=et.getBoundingClientRect(),je=document.documentElement;return{left:We.left+(window.pageXOffset||je.scrollLeft)-(je.clientLeft||document.body.clientLeft||0),top:We.top+(window.pageYOffset||je.scrollTop)-(je.clientTop||document.body.clientTop||0)}}},24514:function(fn,Wt,oe){"use strict";oe.d(Wt,{G:function(){return nt}});var ue=oe(47273),Ae=function(Ee){if((0,ue.Z)()&&window.document.documentElement){var he=Array.isArray(Ee)?Ee:[Ee],xe=window.document.documentElement;return he.some(function(Me){return Me in xe.style})}return!1},ke=function(Ee,he){if(!Ae(Ee))return!1;var xe=document.createElement("div"),Me=xe.style[Ee];return xe.style[Ee]=he,xe.style[Ee]!==Me};function nt(be,Ee){return!Array.isArray(be)&&Ee!==void 0?ke(be,Ee):Ae(be)}},48911:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return Gt}});var ue=oe(60499),Ae=oe(43749),ke=oe(85899),nt=oe(18642),be=oe(72190),Ee=oe(42244),he=oe(92310),xe=oe.n(he),Me=oe(29301),Pe=oe(70425),ct=oe(34280),De=oe(59301),Fe=oe(4676),et=De.forwardRef(function(ve,ce){var le=ve.height,de=ve.offsetY,pe=ve.offsetX,ae=ve.children,Te=ve.prefixCls,gt=ve.onInnerResize,Re=ve.innerProps,Be=ve.rtl,yt=ve.extra,ut={},Qe={display:"flex",flexDirection:"column"};return de!==void 0&&(ut={height:le,position:"relative",overflow:"hidden"},Qe=(0,ke.Z)((0,ke.Z)({},Qe),{},(0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)({transform:"translateY(".concat(de,"px)")},Be?"marginRight":"marginLeft",-pe),"position","absolute"),"left",0),"right",0),"top",0))),De.createElement("div",{style:ut},De.createElement(Me.Z,{onResize:function(Jt){var mt=Jt.offsetHeight;mt&>&>()}},De.createElement("div",(0,ue.Z)({style:Qe,className:xe()((0,nt.Z)({},"".concat(Te,"-holder-inner"),Te)),ref:ce},Re),ae,yt)))});et.displayName="Filler";var We=et;function je(ve){var ce=ve.children,le=ve.setRef,de=De.useCallback(function(pe){le(pe)},[]);return De.cloneElement(ce,{ref:de})}function pt(ve,ce,le,de,pe,ae,Te,gt){var Re=gt.getKey;return ve.slice(ce,le+1).map(function(Be,yt){var ut=ce+yt,Qe=Te(Be,ut,{style:{width:de},offsetX:pe}),St=Re(Be);return De.createElement(je,{key:St,setRef:function(mt){return ae(Be,mt)}},Qe)})}function rt(ve,ce,le,de){var pe=le-ve,ae=ce-le,Te=Math.min(pe,ae)*2;if(de<=Te){var gt=Math.floor(de/2);return de%2?le+gt+1:le-gt}return pe>ae?le-(de-ae):le+(de-pe)}function kt(ve,ce,le){var de=ve.length,pe=ce.length,ae,Te;if(de===0&&pe===0)return null;de<pe?(ae=ve,Te=ce):(ae=ce,Te=ve);var gt={__EMPTY_ITEM__:!0};function Re(Jt){return Jt!==void 0?le(Jt):gt}for(var Be=null,yt=Math.abs(de-pe)!==1,ut=0;ut<Te.length;ut+=1){var Qe=Re(ae[ut]),St=Re(Te[ut]);if(Qe!==St){Be=ut,yt=yt||Qe!==Re(Te[ut+1]);break}}return Be===null?null:{index:Be,multiple:yt}}function ft(ve,ce,le){var de=De.useState(ve),pe=(0,be.Z)(de,2),ae=pe[0],Te=pe[1],gt=De.useState(null),Re=(0,be.Z)(gt,2),Be=Re[0],yt=Re[1];return De.useEffect(function(){var ut=kt(ae||[],ve||[],ce);(ut==null?void 0:ut.index)!==void 0&&(le==null||le(ut.index),yt(ve[ut.index])),Te(ve)},[ve]),[Be]}var it=oe(16089),He=(typeof navigator=="undefined"?"undefined":(0,Ae.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Se=He,Ke=function(ve,ce,le,de){var pe=(0,De.useRef)(!1),ae=(0,De.useRef)(null);function Te(){clearTimeout(ae.current),pe.current=!0,ae.current=setTimeout(function(){pe.current=!1},50)}var gt=(0,De.useRef)({top:ve,bottom:ce,left:le,right:de});return gt.current.top=ve,gt.current.bottom=ce,gt.current.left=le,gt.current.right=de,function(Re,Be){var yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ut=Re?Be<0&>.current.left||Be>0&>.current.right:Be<0&>.current.top||Be>0&>.current.bottom;return yt&&ut?(clearTimeout(ae.current),pe.current=!1):(!ut||pe.current)&&Te(),!pe.current&&ut}};function Ue(ve,ce,le,de,pe,ae,Te){var gt=(0,De.useRef)(0),Re=(0,De.useRef)(null),Be=(0,De.useRef)(null),yt=(0,De.useRef)(!1),ut=Ke(ce,le,de,pe);function Qe(ht,Le){if(it.Z.cancel(Re.current),!ut(!1,Le)){var dt=ht;if(!dt._virtualHandled)dt._virtualHandled=!0;else return;gt.current+=Le,Be.current=Le,Se||dt.preventDefault(),Re.current=(0,it.Z)(function(){var Pt=yt.current?10:1;Te(gt.current*Pt,!1),gt.current=0})}}function St(ht,Le){Te(Le,!0),Se||ht.preventDefault()}var Jt=(0,De.useRef)(null),mt=(0,De.useRef)(null);function Ft(ht){if(ve){it.Z.cancel(mt.current),mt.current=(0,it.Z)(function(){Jt.current=null},2);var Le=ht.deltaX,dt=ht.deltaY,Pt=ht.shiftKey,_t=Le,Xt=dt;(Jt.current==="sx"||!Jt.current&&Pt&&dt&&!Le)&&(_t=dt,Xt=0,Jt.current="sx");var gn=Math.abs(_t),En=Math.abs(Xt);Jt.current===null&&(Jt.current=ae&&gn>En?"x":"y"),Jt.current==="y"?Qe(ht,Xt):St(ht,_t)}}function nn(ht){ve&&(yt.current=ht.detail===Be.current)}return[Ft,nn]}function vt(ve,ce,le,de){var pe=De.useMemo(function(){return[new Map,[]]},[ve,le.id,de]),ae=(0,be.Z)(pe,2),Te=ae[0],gt=ae[1],Re=function(yt){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:yt,Qe=Te.get(yt),St=Te.get(ut);if(Qe===void 0||St===void 0)for(var Jt=ve.length,mt=gt.length;mt<Jt;mt+=1){var Ft,nn=ve[mt],ht=ce(nn);Te.set(ht,mt);var Le=(Ft=le.get(ht))!==null&&Ft!==void 0?Ft:de;if(gt[mt]=(gt[mt-1]||0)+Le,ht===yt&&(Qe=mt),ht===ut&&(St=mt),Qe!==void 0&&St!==void 0)break}return{top:gt[Qe-1]||0,bottom:gt[St]}};return Re}var Ye=oe(38705),st=oe(17212),Ie=function(){function ve(){(0,Ye.Z)(this,ve),(0,nt.Z)(this,"maps",void 0),(0,nt.Z)(this,"id",0),(0,nt.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,st.Z)(ve,[{key:"set",value:function(le,de){this.diffRecords.set(le,this.maps[le]),this.maps[le]=de,this.id+=1}},{key:"get",value:function(le){return this.maps[le]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),ve}(),Mt=Ie;function Ge(ve){var ce=parseFloat(ve);return isNaN(ce)?0:ce}function Ot(ve,ce,le){var de=De.useState(0),pe=(0,be.Z)(de,2),ae=pe[0],Te=pe[1],gt=(0,De.useRef)(new Map),Re=(0,De.useRef)(new Mt),Be=(0,De.useRef)(0);function yt(){Be.current+=1}function ut(){var St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;yt();var Jt=function(){var nn=!1;gt.current.forEach(function(ht,Le){if(ht&&ht.offsetParent){var dt=ht.offsetHeight,Pt=getComputedStyle(ht),_t=Pt.marginTop,Xt=Pt.marginBottom,gn=Ge(_t),En=Ge(Xt),wn=dt+gn+En;Re.current.get(Le)!==wn&&(Re.current.set(Le,wn),nn=!0)}}),nn&&Te(function(ht){return ht+1})};if(St)Jt();else{Be.current+=1;var mt=Be.current;Promise.resolve().then(function(){mt===Be.current&&Jt()})}}function Qe(St,Jt){var mt=ve(St),Ft=gt.current.get(mt);Jt?(gt.current.set(mt,Jt),ut()):gt.current.delete(mt),!Ft!=!Jt&&(Jt?ce==null||ce(St):le==null||le(St))}return(0,De.useEffect)(function(){return yt},[]),[Qe,ut,Re.current,ae]}var wt=14/15;function At(ve,ce,le){var de=(0,De.useRef)(!1),pe=(0,De.useRef)(0),ae=(0,De.useRef)(0),Te=(0,De.useRef)(null),gt=(0,De.useRef)(null),Re,Be=function(St){if(de.current){var Jt=Math.ceil(St.touches[0].pageX),mt=Math.ceil(St.touches[0].pageY),Ft=pe.current-Jt,nn=ae.current-mt,ht=Math.abs(Ft)>Math.abs(nn);ht?pe.current=Jt:ae.current=mt;var Le=le(ht,ht?Ft:nn,!1,St);Le&&St.preventDefault(),clearInterval(gt.current),Le&&(gt.current=setInterval(function(){ht?Ft*=wt:nn*=wt;var dt=Math.floor(ht?Ft:nn);(!le(ht,dt,!0)||Math.abs(dt)<=.1)&&clearInterval(gt.current)},16))}},yt=function(){de.current=!1,Re()},ut=function(St){Re(),St.touches.length===1&&!de.current&&(de.current=!0,pe.current=Math.ceil(St.touches[0].pageX),ae.current=Math.ceil(St.touches[0].pageY),Te.current=St.target,Te.current.addEventListener("touchmove",Be,{passive:!1}),Te.current.addEventListener("touchend",yt,{passive:!0}))};Re=function(){Te.current&&(Te.current.removeEventListener("touchmove",Be),Te.current.removeEventListener("touchend",yt))},(0,ct.Z)(function(){return ve&&ce.current.addEventListener("touchstart",ut,{passive:!0}),function(){var Qe;(Qe=ce.current)===null||Qe===void 0||Qe.removeEventListener("touchstart",ut),Re(),clearInterval(gt.current)}},[ve])}function Nt(ve){return Math.floor(Math.pow(ve,.5))}function Tt(ve,ce){var le="touches"in ve?ve.touches[0]:ve;return le[ce?"pageX":"pageY"]-window[ce?"scrollX":"scrollY"]}function Ve(ve,ce,le){De.useEffect(function(){var de=ce.current;if(ve&&de){var pe=!1,ae,Te,gt=function(){it.Z.cancel(ae)},Re=function Qe(){gt(),ae=(0,it.Z)(function(){le(Te),Qe()})},Be=function(){pe=!1,gt()},yt=function(St){if(!(St.target.draggable||St.button!==0)){var Jt=St;Jt._virtualHandled||(Jt._virtualHandled=!0,pe=!0)}},ut=function(St){if(pe){var Jt=Tt(St,!1),mt=de.getBoundingClientRect(),Ft=mt.top,nn=mt.bottom;if(Jt<=Ft){var ht=Ft-Jt;Te=-Nt(ht),Re()}else if(Jt>=nn){var Le=Jt-nn;Te=Nt(Le),Re()}else gt()}};return de.addEventListener("mousedown",yt),de.ownerDocument.addEventListener("mouseup",Be),de.ownerDocument.addEventListener("mousemove",ut),de.ownerDocument.addEventListener("dragend",Be),function(){de.removeEventListener("mousedown",yt),de.ownerDocument.removeEventListener("mouseup",Be),de.ownerDocument.removeEventListener("mousemove",ut),de.ownerDocument.removeEventListener("dragend",Be),gt()}}},[ve])}var ye=10;function bt(ve,ce,le,de,pe,ae,Te,gt){var Re=De.useRef(),Be=De.useState(null),yt=(0,be.Z)(Be,2),ut=yt[0],Qe=yt[1];return(0,ct.Z)(function(){if(ut&&ut.times<ye){if(!ve.current){Qe(function(Cr){return(0,ke.Z)({},Cr)});return}ae();var St=ut.targetAlign,Jt=ut.originAlign,mt=ut.index,Ft=ut.offset,nn=ve.current.clientHeight,ht=!1,Le=St,dt=null;if(nn){for(var Pt=St||Jt,_t=0,Xt=0,gn=0,En=Math.min(ce.length-1,mt),wn=0;wn<=En;wn+=1){var _n=pe(ce[wn]);Xt=_t;var $n=le.get(_n);gn=Xt+($n===void 0?de:$n),_t=gn}for(var Dn=Pt==="top"?Ft:nn-Ft,qn=En;qn>=0;qn-=1){var fr=pe(ce[qn]),br=le.get(fr);if(br===void 0){ht=!0;break}if(Dn-=br,Dn<=0)break}switch(Pt){case"top":dt=Xt-Ft;break;case"bottom":dt=gn-nn+Ft;break;default:{var Zn=ve.current.scrollTop,ar=Zn+nn;Xt<Zn?Le="top":gn>ar&&(Le="bottom")}}dt!==null&&Te(dt),dt!==ut.lastTop&&(ht=!0)}ht&&Qe((0,ke.Z)((0,ke.Z)({},ut),{},{times:ut.times+1,targetAlign:Le,lastTop:dt}))}},[ut,ve.current]),function(St){if(St==null){gt();return}if(it.Z.cancel(Re.current),typeof St=="number")Te(St);else if(St&&(0,Ae.Z)(St)==="object"){var Jt,mt=St.align;"index"in St?Jt=St.index:Jt=ce.findIndex(function(ht){return pe(ht)===St.key});var Ft=St.offset,nn=Ft===void 0?0:Ft;Qe({times:0,index:Jt,offset:nn,originAlign:mt})}}}var Qt=De.forwardRef(function(ve,ce){var le=ve.prefixCls,de=ve.rtl,pe=ve.scrollOffset,ae=ve.scrollRange,Te=ve.onStartMove,gt=ve.onStopMove,Re=ve.onScroll,Be=ve.horizontal,yt=ve.spinSize,ut=ve.containerSize,Qe=ve.style,St=ve.thumbStyle,Jt=ve.showScrollBar,mt=De.useState(!1),Ft=(0,be.Z)(mt,2),nn=Ft[0],ht=Ft[1],Le=De.useState(null),dt=(0,be.Z)(Le,2),Pt=dt[0],_t=dt[1],Xt=De.useState(null),gn=(0,be.Z)(Xt,2),En=gn[0],wn=gn[1],_n=!de,$n=De.useRef(),Dn=De.useRef(),qn=De.useState(Jt),fr=(0,be.Z)(qn,2),br=fr[0],Zn=fr[1],ar=De.useRef(),Cr=function(){Jt===!0||Jt===!1||(clearTimeout(ar.current),Zn(!0),ar.current=setTimeout(function(){Zn(!1)},3e3))},jn=ae-ut||0,Dr=ut-yt||0,ei=De.useMemo(function(){if(pe===0||jn===0)return 0;var Bt=pe/jn;return Bt*Dr},[pe,jn,Dr]),Fr=function(ze){ze.stopPropagation(),ze.preventDefault()},ai=De.useRef({top:ei,dragging:nn,pageY:Pt,startTop:En});ai.current={top:ei,dragging:nn,pageY:Pt,startTop:En};var ti=function(ze){ht(!0),_t(Tt(ze,Be)),wn(ai.current.top),Te(),ze.stopPropagation(),ze.preventDefault()};De.useEffect(function(){var Bt=function(qe){qe.preventDefault()},ze=$n.current,Xe=Dn.current;return ze.addEventListener("touchstart",Bt,{passive:!1}),Xe.addEventListener("touchstart",ti,{passive:!1}),function(){ze.removeEventListener("touchstart",Bt),Xe.removeEventListener("touchstart",ti)}},[]);var er=De.useRef();er.current=jn;var hr=De.useRef();hr.current=Dr,De.useEffect(function(){if(nn){var Bt,ze=function(qe){var Ct=ai.current,Rt=Ct.dragging,rn=Ct.pageY,Vt=Ct.startTop;it.Z.cancel(Bt);var ln=$n.current.getBoundingClientRect(),Cn=ut/(Be?ln.width:ln.height);if(Rt){var An=(Tt(qe,Be)-rn)*Cn,Tn=Vt;!_n&&Be?Tn-=An:Tn+=An;var Ut=er.current,bn=hr.current,Vn=bn?Tn/bn:0,Fn=Math.ceil(Vn*Ut);Fn=Math.max(Fn,0),Fn=Math.min(Fn,Ut),Bt=(0,it.Z)(function(){Re(Fn,Be)})}},Xe=function(){ht(!1),gt()};return window.addEventListener("mousemove",ze,{passive:!0}),window.addEventListener("touchmove",ze,{passive:!0}),window.addEventListener("mouseup",Xe,{passive:!0}),window.addEventListener("touchend",Xe,{passive:!0}),function(){window.removeEventListener("mousemove",ze),window.removeEventListener("touchmove",ze),window.removeEventListener("mouseup",Xe),window.removeEventListener("touchend",Xe),it.Z.cancel(Bt)}}},[nn]),De.useEffect(function(){return Cr(),function(){clearTimeout(ar.current)}},[pe]),De.useImperativeHandle(ce,function(){return{delayHidden:Cr}});var zn="".concat(le,"-scrollbar"),Hn={position:"absolute",visibility:br?null:"hidden"},wr={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Be?(Object.assign(Hn,{height:8,left:0,right:0,bottom:0}),Object.assign(wr,(0,nt.Z)({height:"100%",width:yt},_n?"left":"right",ei))):(Object.assign(Hn,(0,nt.Z)({width:8,top:0,bottom:0},_n?"right":"left",0)),Object.assign(wr,{width:"100%",height:yt,top:ei})),De.createElement("div",{ref:$n,className:xe()(zn,(0,nt.Z)((0,nt.Z)((0,nt.Z)({},"".concat(zn,"-horizontal"),Be),"".concat(zn,"-vertical"),!Be),"".concat(zn,"-visible"),br)),style:(0,ke.Z)((0,ke.Z)({},Hn),Qe),onMouseDown:Fr,onMouseMove:Cr},De.createElement("div",{ref:Dn,className:xe()("".concat(zn,"-thumb"),(0,nt.Z)({},"".concat(zn,"-thumb-moving"),nn)),style:(0,ke.Z)((0,ke.Z)({},wr),St),onMouseDown:ti}))}),Kt=Qt,at=20;function lt(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,le=ve/ce*ve;return isNaN(le)&&(le=0),le=Math.max(le,at),Math.floor(le)}var Dt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],yn=[],$t={overflowY:"auto",overflowAnchor:"none"};function hn(ve,ce){var le=ve.prefixCls,de=le===void 0?"rc-virtual-list":le,pe=ve.className,ae=ve.height,Te=ve.itemHeight,gt=ve.fullHeight,Re=gt===void 0?!0:gt,Be=ve.style,yt=ve.data,ut=ve.children,Qe=ve.itemKey,St=ve.virtual,Jt=ve.direction,mt=ve.scrollWidth,Ft=ve.component,nn=Ft===void 0?"div":Ft,ht=ve.onScroll,Le=ve.onVirtualScroll,dt=ve.onVisibleChange,Pt=ve.innerProps,_t=ve.extraRender,Xt=ve.styles,gn=ve.showScrollBar,En=gn===void 0?"optional":gn,wn=(0,Ee.Z)(ve,Dt),_n=De.useCallback(function(Br){return typeof Qe=="function"?Qe(Br):Br==null?void 0:Br[Qe]},[Qe]),$n=Ot(_n,null,null),Dn=(0,be.Z)($n,4),qn=Dn[0],fr=Dn[1],br=Dn[2],Zn=Dn[3],ar=!!(St!==!1&&ae&&Te),Cr=De.useMemo(function(){return Object.values(br.maps).reduce(function(Br,Ar){return Br+Ar},0)},[br.id,br.maps]),jn=ar&&yt&&(Math.max(Te*yt.length,Cr)>ae||!!mt),Dr=Jt==="rtl",ei=xe()(de,(0,nt.Z)({},"".concat(de,"-rtl"),Dr),pe),Fr=yt||yn,ai=(0,De.useRef)(),ti=(0,De.useRef)(),er=(0,De.useRef)(),hr=(0,De.useState)(0),zn=(0,be.Z)(hr,2),Hn=zn[0],wr=zn[1],Bt=(0,De.useState)(0),ze=(0,be.Z)(Bt,2),Xe=ze[0],Je=ze[1],qe=(0,De.useState)(!1),Ct=(0,be.Z)(qe,2),Rt=Ct[0],rn=Ct[1],Vt=function(){rn(!0)},ln=function(){rn(!1)},Cn={getKey:_n};function An(Br){wr(function(Ar){var fi;typeof Br=="function"?fi=Br(Ar):fi=Br;var mi=Hr(fi);return ai.current.scrollTop=mi,mi})}var Tn=(0,De.useRef)({start:0,end:Fr.length}),Ut=(0,De.useRef)(),bn=ft(Fr,_n),Vn=(0,be.Z)(bn,1),Fn=Vn[0];Ut.current=Fn;var Jn=De.useMemo(function(){if(!ar)return{scrollHeight:void 0,start:0,end:Fr.length-1,offset:void 0};if(!jn){var Br;return{scrollHeight:((Br=ti.current)===null||Br===void 0?void 0:Br.offsetHeight)||0,start:0,end:Fr.length-1,offset:void 0}}for(var Ar=0,fi,mi,la,Ua=Fr.length,Da=0;Da<Ua;Da+=1){var Wi=Fr[Da],ma=_n(Wi),na=br.get(ma),sr=Ar+(na===void 0?Te:na);sr>=Hn&&fi===void 0&&(fi=Da,mi=Ar),sr>Hn+ae&&la===void 0&&(la=Da),Ar=sr}return fi===void 0&&(fi=0,mi=0,la=Math.ceil(ae/Te)),la===void 0&&(la=Fr.length-1),la=Math.min(la+1,Fr.length-1),{scrollHeight:Ar,start:fi,end:la,offset:mi}},[jn,ar,Hn,Fr,Zn,ae]),Wn=Jn.scrollHeight,mr=Jn.start,Bn=Jn.end,rr=Jn.offset;Tn.current.start=mr,Tn.current.end=Bn,De.useLayoutEffect(function(){var Br=br.getRecord();if(Br.size===1){var Ar=Array.from(Br.keys())[0],fi=Br.get(Ar),mi=Fr[mr];if(mi&&fi===void 0){var la=_n(mi);if(la===Ar){var Ua=br.get(Ar),Da=Ua-Te;An(function(Wi){return Wi+Da})}}}br.resetRecord()},[Wn]);var It=De.useState({width:0,height:ae}),on=(0,be.Z)(It,2),un=on[0],xn=on[1],dn=function(Ar){xn({width:Ar.offsetWidth,height:Ar.offsetHeight})},vn=(0,De.useRef)(),pn=(0,De.useRef)(),On=De.useMemo(function(){return lt(un.width,mt)},[un.width,mt]),Rn=De.useMemo(function(){return lt(un.height,Wn)},[un.height,Wn]),Gn=Wn-ae,Er=(0,De.useRef)(Gn);Er.current=Gn;function Hr(Br){var Ar=Br;return Number.isNaN(Er.current)||(Ar=Math.min(Ar,Er.current)),Ar=Math.max(Ar,0),Ar}var Xr=Hn<=0,Lr=Hn>=Gn,vr=Xe<=0,Jr=Xe>=mt,Gr=Ke(Xr,Lr,vr,Jr),Zr=function(){return{x:Dr?-Xe:Xe,y:Hn}},xr=(0,De.useRef)(Zr()),Nr=(0,Pe.useEvent)(function(Br){if(Le){var Ar=(0,ke.Z)((0,ke.Z)({},Zr()),Br);(xr.current.x!==Ar.x||xr.current.y!==Ar.y)&&(Le(Ar),xr.current=Ar)}});function Qr(Br,Ar){var fi=Br;Ar?((0,Fe.flushSync)(function(){Je(fi)}),Nr()):An(fi)}function Kr(Br){var Ar=Br.currentTarget.scrollTop;Ar!==Hn&&An(Ar),ht==null||ht(Br),Nr()}var hi=function(Ar){var fi=Ar,mi=mt?mt-un.width:0;return fi=Math.max(fi,0),fi=Math.min(fi,mi),fi},Bi=(0,Pe.useEvent)(function(Br,Ar){Ar?((0,Fe.flushSync)(function(){Je(function(fi){var mi=fi+(Dr?-Br:Br);return hi(mi)})}),Nr()):An(function(fi){var mi=fi+Br;return mi})}),Ur=Ue(ar,Xr,Lr,vr,Jr,!!mt,Bi),Xn=(0,be.Z)(Ur,2),Kn=Xn[0],Wr=Xn[1];At(ar,ai,function(Br,Ar,fi,mi){var la=mi;return Gr(Br,Ar,fi)?!1:!la||!la._virtualHandled?(la&&(la._virtualHandled=!0),Kn({preventDefault:function(){},deltaX:Br?Ar:0,deltaY:Br?0:Ar}),!0):!1}),Ve(jn,ai,function(Br){An(function(Ar){return Ar+Br})}),(0,ct.Z)(function(){function Br(fi){var mi=Xr&&fi.detail<0,la=Lr&&fi.detail>0;ar&&!mi&&!la&&fi.preventDefault()}var Ar=ai.current;return Ar.addEventListener("wheel",Kn,{passive:!1}),Ar.addEventListener("DOMMouseScroll",Wr,{passive:!0}),Ar.addEventListener("MozMousePixelScroll",Br,{passive:!1}),function(){Ar.removeEventListener("wheel",Kn),Ar.removeEventListener("DOMMouseScroll",Wr),Ar.removeEventListener("MozMousePixelScroll",Br)}},[ar,Xr,Lr]),(0,ct.Z)(function(){if(mt){var Br=hi(Xe);Je(Br),Nr({x:Br})}},[un.width,mt]);var Tr=function(){var Ar,fi;(Ar=vn.current)===null||Ar===void 0||Ar.delayHidden(),(fi=pn.current)===null||fi===void 0||fi.delayHidden()},ri=bt(ai,Fr,br,Te,_n,function(){return fr(!0)},An,Tr);De.useImperativeHandle(ce,function(){return{nativeElement:er.current,getScrollInfo:Zr,scrollTo:function(Ar){function fi(mi){return mi&&(0,Ae.Z)(mi)==="object"&&("left"in mi||"top"in mi)}fi(Ar)?(Ar.left!==void 0&&Je(hi(Ar.left)),ri(Ar.top)):ri(Ar)}}}),(0,ct.Z)(function(){if(dt){var Br=Fr.slice(mr,Bn+1);dt(Br,Fr)}},[mr,Bn,Fr]);var pi=vt(Fr,_n,br,Te),li=_t==null?void 0:_t({start:mr,end:Bn,virtual:jn,offsetX:Xe,offsetY:rr,rtl:Dr,getSize:pi}),$i=pt(Fr,mr,Bn,mt,Xe,qn,ut,Cn),xi=null;ae&&(xi=(0,ke.Z)((0,nt.Z)({},Re?"height":"maxHeight",ae),$t),ar&&(xi.overflowY="hidden",mt&&(xi.overflowX="hidden"),Rt&&(xi.pointerEvents="none")));var oa={};return Dr&&(oa.dir="rtl"),De.createElement("div",(0,ue.Z)({ref:er,style:(0,ke.Z)((0,ke.Z)({},Be),{},{position:"relative"}),className:ei},oa,wn),De.createElement(Me.Z,{onResize:dn},De.createElement(nn,{className:"".concat(de,"-holder"),style:xi,ref:ai,onScroll:Kr,onMouseEnter:Tr},De.createElement(We,{prefixCls:de,height:Wn,offsetX:Xe,offsetY:rr,scrollWidth:mt,onInnerResize:fr,ref:ti,innerProps:Pt,rtl:Dr,extra:li},$i))),jn&&Wn>ae&&De.createElement(Kt,{ref:vn,prefixCls:de,scrollOffset:Hn,scrollRange:Wn,rtl:Dr,onScroll:Qr,onStartMove:Vt,onStopMove:ln,spinSize:Rn,containerSize:un.height,style:Xt==null?void 0:Xt.verticalScrollBar,thumbStyle:Xt==null?void 0:Xt.verticalScrollBarThumb,showScrollBar:En}),jn&&mt>un.width&&De.createElement(Kt,{ref:pn,prefixCls:de,scrollOffset:Xe,scrollRange:mt,rtl:Dr,onScroll:Qr,onStartMove:Vt,onStopMove:ln,spinSize:On,containerSize:un.width,horizontal:!0,style:Xt==null?void 0:Xt.horizontalScrollBar,thumbStyle:Xt==null?void 0:Xt.horizontalScrollBarThumb,showScrollBar:En}))}var tn=De.forwardRef(hn);tn.displayName="List";var en=tn,Gt=en},90034:function(fn,Wt,oe){var ue={"./doc.png":63604,"./docx.png":30045,"./jpg.png":13740,"./md.png":58881,"./pdf.png":28982,"./png.png":2487,"./txt.png":3164,"./xls.png":88745,"./xlsx.png":49321};function Ae(nt){var be=ke(nt);return oe(be)}function ke(nt){if(!oe.o(ue,nt)){var be=new Error("Cannot find module '"+nt+"'");throw be.code="MODULE_NOT_FOUND",be}return ue[nt]}Ae.keys=function(){return Object.keys(ue)},Ae.resolve=ke,fn.exports=Ae,Ae.id=90034},71986:function(fn){"use strict";fn.exports="data:image/png;base64,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"},37166:function(fn){"use strict";fn.exports="data:image/png;base64,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"},28984:function(fn){"use strict";fn.exports="data:image/png;base64,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"},63604:function(fn){"use strict";fn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAQWUlEQVR4nO3df2zU9R3H8c/3SqECSpFUyGCjYCYmG9DTDCgILc4pLhNrUBMNC+wPdXFumdPplrg5jckyp45sarb5j0QjiT9Cp/uD6YQCKuLiWmB/yKZQHDiwYK9YoPTXd+9X8aC9u8/nvnf3/Vzv+7nXI+n1c9jefe7u+/z+uhM8NQo6Ozvr+vtja5Tn18nVRkWhOHGyRx04dFhVVY3tjsVi78eU94vL58/ZLv+J8lTUQCSM6r6B2O885a9VFLpkIMONG1u5eVysd1U8Hk/IVcpR0QKROOr6B7wtMqyWL7IgUyDgxbzTFd7goiUL4m1ylXJQlEAkjlqJo1WG1fJFlugCgZjn9cZigwsZSW6KEkjH0QS2HI2KrDIFAowkd9YDOXq0s8lX3kYZkmXZAgFGkhvrgXQc7WyWu7lehmRZkECAkQRXhEASvnyjIggaCDCSYKwGIgfnOHPVKkMqglwCAUaSndVAOjo6G5U3dGqXiiDXQICRmDEQh+QTCDASPQbikHwDAUaSGQNxSCGBACNJx0AcUmggwEhGYiAOCSMQYCTnMBCHhBUIMJIzGIhDwgwEGIliIC4JOxAo90gYiENsBALlHAkDcYitQKBcI2EgDrEZCJRjJAzEIbYDgXKLhIE4pBiBQDlFwkAcUqxAoFwiYSAOKWYgUA6RMBCHFDsQcD0SBuKQ0QgEXI6EgThktAIBVyNhIA4ZzUDAxUgYiENGOxBwLRIG4pBSCARcioSBOKRUAgFXImEgDimlQMCFSBiIQ0otEIh6JAzEIaUYCEQ5EgbikFINBKIaCQNxSCkHAlGMhIE4pNQDgahFwkAcEoVAIEqRMBCHRCUQiEokDMQhUQoEohAJA3FI1AKBUo+EgTgkioFAKUfCQBwS1UCgVCNhIA6JciBQipEwEIdEPRAotUgYiENcCARKKRIG4hBXAoFSiYSBOMSlQACR+P7gHcvq48+qUcJAHOJaIEme8r83WpEwEIe4GgiMViQMxCEuBwKjEQkDcYjrgUCxI2EgDimHQKCYkTAQh/Sc7lX7Pv5ERu4bU+HHi3EKmIE45oOPPlaDg4MycpvnqZOVvv+1+vp4u7KIgTjm0OGjquvzbhm5T94n2bB00fxbZWgNA3FMb1+/+rD9oIzKw1jlz7K5FWEgDjrWeVwdOfqZjNznef7dyxbF18nQCgbiqLLZ1fL9vzQsjjfJyAoG4rBy2JLIAvz2svq6K2Rohdy+PQxk9OGYpONYQn1+4qSTZ7fGVFS0LVkwNy5DKxhIGcEbiYD3S1yJRR7Lby6bd8nPZGgFA6Fo8/3lNTWTW5QlDISijYEQGTAQIgMGQmTAQIgMGAiRAQMhMmAgRAYMhMiAgRAZMBAiAwZCZMBAiAwYCJEBAyEyYCBEBgyEyICBEBkwECIDBkJkwECIDKIcyN/f2fOd+Zd8+TUZElmx69//ve6qxXP/KkMrrAUy4Rt31k2pHv/k+xseWCJXiay4/JZH3j6WOHnXiX883SZXQ2clEMTRN9C/ZcqkCe27X3qwTv6IyIp5Nz3UdqzrRG1lxZjlNiIJPZBkHDKslkDaGAjZ9EUgWMYSNiIJNZDhcciXYiBk27BAIPRIQgskNQ5gIGRbSiAQaiShBJIpDmAgZFuGQCC0SAoORBcHMBCyTRMIhBJJQYGY4gAGQrYZAoGCI8k7kGxxAAMh27IEAgVFklcgQeIABkK2BQgE8o4k50CCxgEMhGwLGAjkFUlOgeQSBzAQsi2HQCDnSAIHkmscwEDIthwDgZwiCRRIPnEAAyHb8ggEAkeSNZB84wAGQrblGQgEisQYSCFxAAMh2woIBLJGog2k0DiAgZBtBQYCxkgyBhJGHMBAyLYQAgFtJGmBVF/52MxTxw8876vBiXK1IF+6aErX73++pkGGRFb86Nfrt37y6bFJMiyIp2Ld510wc3Vi870H5OpZnnyNULViQ6Pv+1tkSFRWPM9b3rPplhY1DAMh+gIDITJgIEQGDITIgIEQGTAQIgMGQmTAQIgMGEiJua5+upp/8WQZKTVv9mRVPbFSRkoluvvU7n2dMlLqtR2H1K6PzoyLZfi8ls27SC7P2PVRQnWd6JXvnWr7nk+H5ukSpwLBCzhpwpkFKl/bdn8ql8WFBe6735olC+EMCWKs/El2ie5eCeWgeu6N/dbmnM+8tu0+oh55/l/y3c6cis2pQF5/9JtDL2qhkgvfq+8clO+H5E/smDl1gvrtHZeplYtnyLX8PffGvqGF8sCRE3KtcGHMC6Hc9vjO0OY0WhhIFth1+Omf/ikveLhrRKyZn7lnkYzCc9vj70os+2WUP8wLcQTdYphgRXP7EzuHVjRRxUACwloaoYSxj/3MPQtlQZwto/D9YePeoXnmA3GEHS0s/MGmoRVNFDGQHOBFvub+NwuKxGYcSYgZuze5sBUHYEtyzf2bh56/qGEgOcKLnG8kP7xhztDuiwnOCGGXBLt0qfvveGw4LsDZrWywFcHWJAgcc+x8akWg3SrMC2fTsNDDsnlT5eRItZwcMf8unjdsSaKmLALBwoIXyAS/hwUEa9JsL/aTzXvVvX/MbTcGZ9iwEOogDCzQONjOBgv0Y9+/bOjskg4W4KBr7dcfvVIe/1QZZYa5YV7YMulWDHjeHlg9d2huOo88v0e+sj++UlIWgVx935tDa76g8GJjATSFkutt7l1/nSw8mf+HTKyRb3poe9oWI5ts80Qc2dbauA3TrhXmhseqC2M4vGeDLaRuFxLRXrr2Vfme/bZKBQPRwIuN29Ptzhw40q3mrAn2j/WaFsJcFsBMsGXCFkAXyc0Pbx/aZdMxhYvn7OaHt+U8N9NxVtS2IgzEIFsk2Ra+JNNCiDU81vSFMB3b4P2Iq+/bLKN0eK7w+DLBbtWcNfmv7d97ekXG5w1bkWk3viKjaGAgWWANrTt2MC18SaatR5hrU91jB93jf+nBpdrjmKDx65iet0Jvu5gYSACmXQasZU3HDrqFsNA1dCo8bjz+THQnFeSFl8t0eDyYW6F0jx2fUsAxVxQwkABwZmbv+pUySoczZDj7pHP45VWyq5Z+fKBbaAuhe/x47HgOhsPP4eczCeMdecB94CuTsLactjGQgHT71Dj1qXtTzrSbEcaxRyrTsYi8hnJ5julnp934cmhbtqhjIAE9sPrr8jVXRiOZzmaZFkJ5TuUyXKYgU58D3e5PWLtXrmAgAeEd7Bd/uVRG6eT5kct0uqgwF8zJBnkx5TId7g/3m6R7rkxbxHLEQALC7eL2M5HnRy7TjUYgR15ZlfE9Edwf7jcJjwWPKVWYZ9ZcwEACwu3i9jOR50cu0+nOfmEumJMNmCPmmgr3h/tN0v0cAxmJgQSE28XtZ6I74MbP4/dS2dyN0d1n6nsPup9jICMxkIBwu7j9TOT5kct0+JzUXU1zZDQS5oI52YA5Yq6pcH+43yTdz9mMN4oYSEC4Xdx+JvL8yGW60TgGkRdTLtPh/nC/SXgseEyp8DP4WTqDgQSE28XtZyLPj1ym0wViOjVcCHx27PDLN8ooXepzgMeCx5QKP4OfpTMYSEC69zRM7xuYPoeF38HvhgmPHc9BJqlv/ulOIIT9YUJ80hhwZg3v0yRFZVeOgQSkW6BML7TpIyphfZxjON0xDz5Sv+DOTTI6Rxc8pMaUL9N7R6knDUoVAwlI95mqbJ/FQiAIJRXOeuHsV5h0c8z0uS+szXXvuocVr26lgg9qTl0V3lbKJgYSgGlNmG1XSbeQQKHzGs60O6dbW8sLL5fpwvi0rel4yLTVLTUMJADd//CUadclFbYe2IpkgoN1bEUK3Z3BwvjBsyvle/rWA/Ei4kxM8eJ38Lv50p2gADxmbEGjgIFkYdpXD7orovtgIISxNjUt6KY3/ky7WUH+ZzAd00oBrwNej6hgIAam3RbsR2MtG2TtjzlhbjqFRGKKI8gcdR/jh6ArgFSIDvFlku9rMVoYiIZpFwFyXXhMWxHAMcLtT7xrXJiHw1oaWzYcH+lkO4EA+H3d8RWYtkCpsKv3558sGrrNTPAa4LWIEgbyBSxw+MJCvHLxdBmnH3Mk4bZwm7nAwrPzqWvldtPPaCXhPQhEh7NOuv1/rJlXXzVLthqz5DbTjzmScpljtnhxrIRIcPCuCxjzwUrF9Lxha6Z7XKWqLAIJE3ZbsG+ez0EmFm7sfgSB28d9YYFKRmX6y92Gw+/h5AF+NwjEi2MGvJmXzfB5AeYWZF65bIlKCQPJARaMfONIwppWd1wTBswRp2ixBcmFzXlhLkG3ZqWGgQSEBa/QOJKwJcFHMIKssXNR6BwRCd6ND3NeOBWOYJNbnKhhIAFg3xsH5br973wgEhxkhzVfrKUxx0IXRMwLB+3YdSoU5pTP38xYShiIAcLAQTPOMNmCMz4IJd8FEkEgDCyMYcExCT7ThfeA8tmaYEuGj7bguYs6pwLB7oHunH4QOFuDBQ5fiKOYaz6EgrhxNilbLMn5IQqb8WIemBd2vYI8r5gP5oX3dYr53NnkVCCuwBo8uUBilwf/MCkWPsA+/WgtfAgYknOCUpiXTQyEyOD0325N6yHtD2DcNS/48o2onHRJINXyfQRNIBualfKvlyFRWfA8tb5n061rVYqMgYy/9oWmgUG1UYZEZSHT8QdkDASqVrzQ4vuqQYZETtNtPUAbSHXTxupTp061K6UmyReRq3add955jYnmGxIyTqMNBCZ8+8W6gcH+ZtmSzJSrRK7ZJbtWTbJr1a40jIEAtiQ9PafWSSRr5CqREzzPf6iqavw63ZYjKWsgSfL+SK3caJOE0iRXlXxvkG9EkSDHGVt930vEYn6LfG82bTWGCxxIPjo6OhtlZltkSGSH7y+vqZncoixhIBRtDITIgIEQGTAQIgMGQmTAQIgMGAiRAQMhMmAgRAYMhMiAgRAZMBAiAwZCZMBAiAwYCJEBAyEyYCBEBgyEyICBEOl98J/9y5fWx1uUJVYD2b6jtfHSr85iIGRN5AOZXTvjubGVlfp/VpUoT93dJ9sO/u/I3ZEO5PzzJz44fVpNoyIK2cefHN568sSpX0U6kEHlNV968VdULBbjX2FKoent6zv4Yfuh82PKb4p6IFuqxla+NXvm9Cvkj4hC8WH7wZ29ff0LJZBoH4MgEBmqmimT36q5cBIjoYK1H5Jdq5M9DTJUzgQC48dXba2dPq1BhkR52Xfg0Fs9vX1nV7ROBTLEUwdrLqxul6+zD5LIZHBwsOtY4viejs8StcpXM+SPznIvkHO6Kioq9o8bV9k1Jlbhy3WiEXp7e8f0DQxOHBgYqJOrGY2p8ONLFsTbZGiF1UDefq+1rn/Aa5UhkRUN9XVWl2GrNw5bd7Rx60BW+Mo/0Fgfr1UW2Q/kndZm5XnXy5AoZP76hvr4WmWR9UC27Wxt8ge9jTIkCpXtA3SwHghs3dHaInfVoIhCY3/rAUUJZMeO1trTSrV5ypskV4kKIsceuyZVqcZ4PJ6Qq1YVJRDAGa2+AdXCSKgQiKOyQq21eWp3uKIFAq2trdXHe9Q6uds1cpUoR/76C6rUj4ux5UgqaiBJ2Jr096u1cu91iscmpCFbiy5ZQNtk2DJWqWfr6+Ptqsj+Dz/HRYzs4T73AAAAAElFTkSuQmCC"},30045:function(fn){"use strict";fn.exports="data:image/png;base64,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"},13740:function(fn){"use strict";fn.exports="data:image/png;base64,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"},58881:function(fn){"use strict";fn.exports="data:image/png;base64,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"},28982:function(fn){"use strict";fn.exports="data:image/png;base64,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"},2487:function(fn){"use strict";fn.exports="data:image/png;base64,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"},3164:function(fn){"use strict";fn.exports="data:image/png;base64,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"},88745:function(fn){"use strict";fn.exports="data:image/png;base64,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"},49321:function(fn){"use strict";fn.exports="data:image/png;base64,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"},48136:function(fn,Wt,oe){"use strict";var ue=Object.defineProperty,Ae=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,nt=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,he=(a,y,b)=>y in a?ue(a,y,{enumerable:!0,configurable:!0,writable:!0,value:b}):a[y]=b,xe=(a,y)=>{for(var b in y||(y={}))be.call(y,b)&&he(a,b,y[b]);if(nt)for(var b of nt(y))Ee.call(y,b)&&he(a,b,y[b]);return a},Me=(a,y)=>Ae(a,ke(y)),Pe=a=>typeof a=="symbol"?a:a+"",ct=(a,y)=>{var b={};for(var E in a)be.call(a,E)&&y.indexOf(E)<0&&(b[E]=a[E]);if(a!=null&&nt)for(var E of nt(a))y.indexOf(E)<0&&Ee.call(a,E)&&(b[E]=a[E]);return b};function De(a){return Array.isArray(a)}var Fe={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 et(){return"window"in globalThis&&"document"in globalThis}function We(){return"matchMedia"in window?window.matchMedia("(pointer: coarse)").matches:"ontouchstart"in window||navigator.maxTouchPoints>0}function je(){return typeof navigator.vibrate=="function"}function pt(){var a,y;if(!et())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 rt(){if(!et())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 kt(){return HTMLElement.prototype.hasOwnProperty("popover")}var ft={strings:Fe,_locale:"",_dirty:!1,_subscribers:[],_numberFormatter:void 0,get locale(){return ft._locale||(ft._locale=et()?navigator.language.slice(0,5):"en-US"),ft._locale},set locale(a){ft._locale=a,ft._numberFormatter=void 0,ft.dirty=!0},get numberFormatter(){return ft._numberFormatter||(ft._numberFormatter=new Intl.NumberFormat(ft.locale)),ft._numberFormatter},merge(a,y){if(typeof a=="string"&&y)ft.strings[a]=xe(xe({},ft.strings[a]),y),ft.dirty=!0;else for(const b of Object.keys(a))ft.merge(b,a[b])},get dirty(){return ft._dirty},set dirty(a){ft._dirty||ft._dirty===a||(ft._dirty=!0,setTimeout(()=>{ft._dirty=!1,this._subscribers.forEach(y=>y==null?void 0:y())},0))},subscribe(a){return ft._subscribers.push(a),ft._subscribers.length-1},unsubscribe(a){a<0||a>=ft._subscribers.length||(ft._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=it(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=it(E);ee&&b.setAttribute("aria-label",ee)}}}};function it(a,...y){if(a===void 0)return;let b="";const E=ft.locale;ft.strings[E]&&(b=ft.strings[E][a]);const ee=E.slice(0,2);if(!b&&ft.strings[ee]&&(b=ft.strings[ee][a]),b||(b=ft.strings.en[a]),!b)return;const re=/(%@|%([0-9]+)\$@)/g;let se=re.exec(b),me=0;for(;se;){if(y[me++]){const we=se[2]?parseInt(se[2],10)-1:me-1;let Oe=y[we];typeof Oe=="number"&&(Oe=ft.numberFormatter.format(Oe)),b=b.replace(se[1],Oe)}se=re.exec(b)}return b=b.replace(/%%/g,"%"),b}var He={m0:"#3F3D99",m1:"#993D71",m2:"#998B3D",m3:"#3D9956",m4:"#3D5A99",m5:"#993D90",m6:"#996D3D",m7:"#43993D",m8:"#3D7999",m9:"#843D99"},Se={blue:"#0072BD",orange:"#D95319",yellow:"#EDB120",purple:"#7E2F8E",green:"#77AC30",cyan:"#4DBEEE",red:"#A2142F"},Ke={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"},Ue={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"},vt={Red:"red",Orange:"orange",Yellow:"yellow",LimeGreen:"lime",Green:"green",TealBlue:"teal",Blue:"blue",Violet:"indigo",Purple:"purple",Magenta:"magenta",Black:"black",Gray:"grey",White:"white"},Ye={Apricot:"#FBB982",Aquamarine:"#00B5BE",Bittersweet:"#C04F17",Black:"#221E1F",Blue:"#2D2F92",BlueGreen:"#00B3B8",BlueViolet:"#473992",BrickRed:"#B6321C",Brown:"#792500",BurntOrange:"#F7921D",CadetBlue:"#74729A",CarnationPink:"#F282B4",Cerulean:"#00A2E3",CornflowerBlue:"#41B0E4",Cyan:"#00AEEF",Dandelion:"#FDBC42",DarkOrchid:"#A4538A",Emerald:"#00A99D",ForestGreen:"#009B55",Fuchsia:"#8C368C",Goldenrod:"#FFDF42",Gray:"#949698",Green:"#00A64F",GreenYellow:"#DFE674",JungleGreen:"#00A99A",Lavender:"#F49EC4",Limegreen:"#8DC73E",Magenta:"#EC008C",Mahogany:"#A9341F",Maroon:"#AF3235",Melon:"#F89E7B",MidnightBlue:"#006795",Mulberry:"#A93C93",NavyBlue:"#006EB8",OliveGreen:"#3C8031",Orange:"#F58137",OrangeRed:"#ED135A",Orchid:"#AF72B0",Peach:"#F7965A",Periwinkle:"#7977B8",PineGreen:"#008B72",Plum:"#92268F",ProcessBlue:"#00B0F0",Purple:"#99479B",RawSienna:"#974006",Red:"#ED1B23",RedOrange:"#F26035",RedViolet:"#A1246B",Rhodamine:"#EF559F",RoyalBlue:"#0071BC",RoyalPurple:"#613F99",RubineRed:"#ED017D",Salmon:"#F69289",SeaGreen:"#3FBC9D",Sepia:"#671800",SkyBlue:"#46C5DD",SpringGreen:"#C6DC67",Tan:"#DA9D76",TealBlue:"#00AEB3",Thistle:"#D883B7",Turquoise:"#00B4CE",Violet:"#58429B",VioletRed:"#EF58A0",White:"#FFFFFF",WildStrawberry:"#EE2967",Yellow:"#FFF200",YellowGreen:"#98CC70",YellowOrange:"#FAA21A"};function st(a){var y,b,E,ee,re,se;const me=a.split("!");let ge,we,Oe,ot=255,Et=255,Zt=255,Yt=-1;const Pn=me.length>0&&me[0].startsWith("-");Pn&&(me[0]=me[0].slice(1));for(let Ir=0;Ir<me.length;Ir++){ge=ot,we=Et,Oe=Zt;const Ln=(y=me[Ir].trim().match(/^([A-Za-z\d-]+)/))==null?void 0:y[1],ir=Ln==null?void 0:Ln.toLowerCase(),zr=Ln&&(se=(re=(ee=(E=(b=Ue[ir])!=null?b:Ue[vt[Ln]])!=null?E:Se[Ln])!=null?ee:Ye[Ln])!=null?re:He[Ln])!=null?se:me[Ir].trim();let or=zr.match(/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);if(or!=null&&or[1]&&or[2]&&or[3])ot=Math.max(0,Math.min(255,Number.parseInt(or[1],16))),Et=Math.max(0,Math.min(255,Number.parseInt(or[2],16))),Zt=Math.max(0,Math.min(255,Number.parseInt(or[3],16)));else if(or=zr.match(/^#([\da-f]{3})$/i),or!=null&&or[1]){const Ci=Number.parseInt(or[1][0],16),Ni=Number.parseInt(or[1][1],16),Li=Number.parseInt(or[1][2],16);ot=Math.max(0,Math.min(255,Ci*16+Ci)),Et=Math.max(0,Math.min(255,Ni*16+Ni)),Zt=Math.max(0,Math.min(255,Li*16+Li))}else if(or=zr.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i),or!=null&&or[1]&&or[2]&&or[3])ot=Math.max(0,Math.min(255,Number.parseInt(or[1]))),Et=Math.max(0,Math.min(255,Number.parseInt(or[2]))),Zt=Math.max(0,Math.min(255,Number.parseInt(or[3])));else return;Yt>=0&&(ot=(1-Yt)*ot+Yt*ge,Et=(1-Yt)*Et+Yt*we,Zt=(1-Yt)*Zt+Yt*Oe,Yt=-1),Ir+1<me.length&&(Yt=Math.max(0,Math.min(100,Number.parseInt(me[++Ir])))/100)}return Yt>=0&&(ot=Yt*ot+(1-Yt)*ge,Et=Yt*Et+(1-Yt)*we,Zt=Yt*Zt+(1-Yt)*Oe),Pn&&(ot=255-ot,Et=255-Et,Zt=255-Zt),"#"+("00"+Math.round(ot).toString(16)).slice(-2)+("00"+Math.round(Et).toString(16)).slice(-2)+("00"+Math.round(Zt).toString(16)).slice(-2)}function Ie(a){var y,b;return a=a.trim(),(b=(y=Ke[a.toLowerCase()])!=null?y:Ke[vt[a]])!=null?b:st(a)}function Mt(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 Ge(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 Ot(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,re=E*2-ee;return{r:Math.round(255*Ge(re,ee,y+2)),g:Math.round(255*Ge(re,ee,y)),b:Math.round(255*Ge(re,ee,y-2))}}function wt(a){return a<0?0:a>255?255:Math.round(a)}function At(a){const{r:y,g:b,b:E}=a;let ee=((1<<24)+(wt(y)<<16)+(wt(b)<<8)+wt(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 Nt(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),re=Math.max(y,b,E),se=re-ee;let me,ge;re===ee?me=0:y===re?me=(b-E)/se:b===re?me=2+(E-y)/se:E===re&&(me=4+(y-b)/se),me=Math.min(me*60,360),me<0&&(me+=360);const we=(ee+re)/2;return re===ee?ge=0:we<=.5?ge=se/(re+ee):ge=se/(2-re-ee),{h:me,s:ge,l:we}}function Tt(a){let y=Mt(a);if(!y)return a;let{h:b,s:E,l:ee}=Nt(y);return E+=.1,ee-=.1,At(Ot({h:b,s:E,l:ee}))}var Ve={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"},ye={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},bt=[{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 Qt(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 bt)if((!y||ee.variant===y)&&(!b||ee.style===b)&&E>=ee.offset&&E<ee.offset+ee.len){const re=ee.start+E-ee.offset;return String.fromCodePoint(ye[re]||re)}return a}function Kt(a){var y;if((a<119808||a>120831)&&(a<8448||a>8527))return{char:String.fromCodePoint(a)};for(const b in ye)if(ye[b]===a){a=(y=b.codePointAt(0))!=null?y:0;break}for(const b of bt)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 at(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 re=Ve[ee];if(re)re.startsWith("\\")?b+=re+" ":b+=re;else{const{char:se,variant:me,style:ge}=Kt(ee);switch(re=se,me){case"double-struck":re=`\\mathbb{${re}}`;break;case"fraktur":re=`\\mathfrak{${re}}`;break;case"script":re=`\\mathscr{${re}}`;break;case"sans-serif":re=`\\mathsf{${re}}`;break;case"monospace":re=`\\mathtt{${re}}`;break;case"calligraphic":re=`\\mathcal{${re}}`;break}switch(ge){case"bold":re=`\\mathbf{${re}}`;break;case"italic":re=`\\mathit{${re}}`;break;case"bolditalic":re=`\\mathbfit{${re}}`;break}b+=re}}return b}function lt(a){return a?Array.isArray(a)?a:typeof a=="object"&&"group"in a?a.group:[]:[]}var Dt={},yn=xe({},Ve),$t={},hn={},tn={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}"},en={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}},Gt={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}},ve={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:Gt},"amsmath.sty":{package:en,primitive:!0},"texvc.sty":{package:tn,primitive:!1}},ce={" ":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},le=/[\w!@*()-=+{}\[\]\\';:?/.,~<>`|$%#&^" ]/,de,pe;rt()?(de=new RegExp("\\p{Letter}","u"),pe=new RegExp("[0-9\\p{Letter}]","u")):(de=/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/,pe=/[\da-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/);function ae(a,y,b="mord",E){y!==void 0&&(Dt[a]={definitionType:"symbol",type:b,variant:E,codepoint:y},yn[y]||(yn[y]=a))}function Te(a,y,b){if(typeof a=="string"){for(let E=0;E<a.length;E++){const ee=a.charAt(E);ae(ee,ee.codePointAt(0))}return}for(const[E,ee,re,se]of a)ae(E,ee,re!=null?re:y,se!=null?se:b)}function gt(a,y){for(let b=a;b<=y;b++)ae(String.fromCodePoint(b),b)}function Re(a){var y;return(y=hn[a])!=null?y:null}function Be(a,y){var b,E;if(y.length===0||y==="\\"||!y.startsWith("\\"))return[];const ee=[];for(const se in $t)se.startsWith(y)&&!$t[se].infix&&ee.push({match:se,frequency:(b=$t[se].frequency)!=null?b:0});for(const se in Dt)se.startsWith(y)&&ee.push({match:se,frequency:(E=Dt[se].frequency)!=null?E:0});const re=y.substring(1);for(const se of Object.keys(a.options.macros))se.startsWith(re)&&ee.push({match:"\\"+se,frequency:0});return ee.sort((se,me)=>{var ge,we;return se.frequency===me.frequency?se.match.length===me.match.length?se.match<me.match?-1:1:se.match.length-me.match.length:((ge=me.frequency)!=null?ge:0)-((we=se.frequency)!=null?we:0)}),ee.map(se=>se.match)}function yt(a){let y="auto";const b=a.match(/:([^=]+)/);return b&&(y=b[1].trim()),y}function ut(a){if(!a)return[];const y=[];let b=a.split("]");if(b[0].startsWith("[")){y.push({isOptional:!0,type:yt(b[0].slice(1))});for(let E=1;E<=b.length;E++)y.push(...ut(b[E]))}else if(b=a.split("}"),b[0].startsWith("{")){y.push({isOptional:!1,type:yt(b[0].slice(1))});for(let E=1;E<=b.length;E++)y.push(...ut(b[E]))}return y}function Qe(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 St(a,y){typeof a=="string"&&(a=[a]);const b={tabular:!1,params:[],createAtom:y};for(const E of a)hn[E]=b}function Jt(a,y,b){typeof a=="string"&&(a=[a]);const ee={tabular:!0,params:ut(y),createAtom:b};for(const re of a)hn[re]=ee}function mt(a,y,b){var E,ee;b||(b={});const re={definitionType:"function",params:ut(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")$t["\\"+a]=re;else for(const se of a)$t["\\"+se]=re}var Ft;function nn(a){return Ft||(Ft=Le(ve)),a?Le(xe(xe({},Ft),a)):Ft}function ht(a,y){var b,E,ee,re;if(typeof a=="string"){let se=0;const me=a;return/(^|[^\\])#1/.test(me)&&(se=1),/(^|[^\\])#2/.test(me)&&(se=2),/(^|[^\\])#3/.test(me)&&(se=3),/(^|[^\\])#4/.test(me)&&(se=4),/(^|[^\\])#5/.test(me)&&(se=5),/(^|[^\\])#6/.test(me)&&(se=6),/(^|[^\\])#7/.test(me)&&(se=7),/(^|[^\\])#8/.test(me)&&(se=8),/(^|[^\\])#9/.test(me)&&(se=9),{expand:(b=y==null?void 0:y.expand)!=null?b:!0,captureSelection:(E=y==null?void 0:y.captureSelection)!=null?E:!0,args:se,def:me}}return xe({expand:(ee=y==null?void 0:y.expand)!=null?ee:!0,captureSelection:(re=y==null?void 0:y.captureSelection)!=null?re:!0,args:0},a)}function Le(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]=ht(E.package[ee],{expand:!E.primitive,captureSelection:E.captureSelection});else y[b]=ht(E)}return y}function dt(a,y="math"){if(!a||a.length===0)return null;let b=null;if(a.startsWith("\\")){if(b=$t[a],b)return!b.ifMode||b.ifMode===y?b:null;y==="math"?b=Dt[a]:ce[a]&&(b={definitionType:"symbol",type:"mord",codepoint:ce[a]})}else if(y==="math"){if(b=Dt[a],!b&&a.length===1){const E=_t("math",a.codePointAt(0));return E.startsWith("\\")?Me(xe({},dt(E,"math")),{command:E}):null}}else ce[a]?b={definitionType:"symbol",type:"mord",codepoint:ce[a]}:y==="text"&&(b={definitionType:"symbol",type:"mord",codepoint:a.codePointAt(0)});return b!=null?b:null}function Pt(a,y){if(!a.startsWith("\\"))return null;const b=a.slice(1);return y[b]}function _t(a,y){if(y===void 0)return"";if(a==="math"&&yn[y])return yn[y];if(a==="text"){const b=Object.keys(ce).find(E=>ce[E]===y);return b||String.fromCodePoint(y)}return String.fromCodePoint(y)}var Xt=[0,.68889,0,0,.72222],gn=[0,.68889,0,0,.66667],En=[0,.68889,0,0,.77778],wn=[0,.68889,0,0,.61111],_n=[.16667,.68889,0,0,.77778],$n=[0,.68889,0,0,.55556],Dn=[0,0,0,0,.25],qn=[0,.825,0,0,2.33334],fr=[0,.9,0,0,2.33334],br=[0,.68889,0,0,.54028],Zn=[-.03598,.46402,0,0,.5],ar=[-.13313,.36687,0,0,1],Cr=[.01354,.52239,0,0,1],jn=[.01354,.52239,0,0,1.11111],Dr=[0,.54986,0,0,1],ei=[0,.69224,0,0,.5],Fr=[0,.43056,0,0,1],ai=[.08198,.58198,0,0,.77778],ti=[.19444,.69224,0,0,.41667],er=[.1808,.675,0,0,1],hr=[.19444,.69224,0,0,.83334],zn=[.13667,.63667,0,0,1],Hn=[-.064,.437,0,0,1.334],wr=[.08167,.58167,0,0,.77778],Bt=[0,.69224,0,0,.72222],ze=[0,.69224,0,0,.66667],Xe=[-.13313,.36687,0,0,.77778],Je=[.06062,.54986,0,0,.77778],qe=[0,.69224,0,0,.77778],Ct=[.25583,.75583,0,0,.77778],Rt=[.25142,.75726,0,0,.77778],rn=[.20576,.70576,0,0,.77778],Vt=[.30274,.79383,0,0,.77778],ln=[.22958,.72958,0,0,.77778],Cn=[.1808,.675,0,0,.77778],An=[.13667,.63667,0,0,.77778],Tn=[.13597,.63597,0,0,.77778],Ut=[.03517,.54986,0,0,.77778],bn=[0,.675,0,0,.77778],Vn=[.19444,.69224,0,0,.61111],Fn=[0,.54986,0,0,.76042],Jn=[0,.54986,0,0,.66667],Wn=[.0391,.5391,0,0,.77778],mr=[.03517,.54986,0,0,1.33334],Bn=[.38569,.88569,0,0,.77778],rr=[.23222,.74111,0,0,.77778],It=[.19444,.69224,0,0,.77778],on=[0,.37788,0,0,.5],un=[0,.54986,0,0,.72222],xn=[0,.69224,0,0,.83334],dn=[.11111,.69224,0,0,.66667],vn=[.26167,.75726,0,0,.77778],pn=[.48256,.98256,0,0,.77778],On=[.28481,.79383,0,0,.77778],Rn=[.08167,.58167,0,0,.22222],Gn=[.08167,.58167,0,0,.38889],Er=[0,.43056,.04028,0,.66667],Hr=[.41951,.91951,0,0,.77778],Xr=[.24982,.74947,0,0,.38865],Lr=[.08319,.58283,0,0,.75623],vr=[0,.10803,0,0,.27764],Jr=[0,.47534,0,0,.50181],Gr=[.18906,.47534,0,0,.50181],Zr=[0,.69141,0,0,.50181],xr=[.24982,.74947,0,0,.27764],Nr=[0,.69141,0,0,.21471],Qr=[.25,.75,0,0,.44722],Kr=[0,.64444,0,0,.575],hi=[.08556,.58556,0,0,.89444],Bi=[0,.69444,0,0,.89444],Ur=[0,.68611,0,0,.9],Xn=[0,.68611,0,0,.86944],Kn=[.25,.75,0,0,.575],Wr=[.25,.75,0,0,.31944],Tr=[0,.69444,0,0,.63889],ri=[0,.69444,0,0,.31944],pi=[0,.44444,0,0,.63889],li=[0,.44444,0,0,.51111],$i=[0,.69444,0,0,.575],xi=[.13333,.63333,0,0,.89444],oa=[0,.44444,0,0,.31944],Br=[0,.69444,0,0,.86944],Ar=[0,.68611,0,0,.69166],fi=[0,.68611,0,0,.83055],mi=[0,.68611,0,0,.89444],la=[0,.69444,0,0,.60278],Ua=[.19444,.69444,0,0,.51111],Da=[0,.69444,0,0,.83055],Wi=[-.10889,.39111,0,0,1.14999],ma=[.19444,.69444,0,0,.575],na=[.19444,.69444,0,0,1.14999],sr=[.19444,.69444,0,0,.70277],ur=[.05556,.75,0,0,.575],cr=[0,.68611,0,0,.95833],Or=[.08556,.58556,0,0,.76666],Ki=[-.02639,.47361,0,0,.575],ea=[0,.44444,0,0,.89444],ra=[0,.55556,0,0,.76666],qi=[-.10889,.39111,0,0,.89444],ia=[.00222,.50222,0,0,.89444],ga=[.19667,.69667,0,0,.89444],Va=[.08556,.58556,0,0,1.14999],Ra=[0,.69444,0,0,.70277],ko=[-.02778,.47222,0,0,.575],co=[.25,.75,0,0,.51111],za=[-.13889,.36111,0,0,1.14999],ds=[.19444,.69444,0,0,1.02222],wo=[.12963,.69444,0,0,.89444],xo=[.19444,.69444,0,0,.44722],Za=[0,.64444,.13167,0,.59111],va=[.19444,.64444,.13167,0,.59111],di=[0,.68611,.17208,0,.8961],Ri=[.19444,.44444,.105,0,.53222],ki=[0,.44444,.085,0,.82666],ci=[0,.69444,.06709,0,.59111],Qi=[0,.69444,.12945,0,.35555],ji=[0,.69444,0,0,.94888],Pa=[0,.69444,.11472,0,.59111],Wa=[0,.68611,.10778,0,.88555],Na=[0,.69444,.07939,0,.62055],mn=[0,.69444,.12417,0,.30667],lr=[0,.64444,.13556,0,.51111],Pr=[.19444,.64444,.13556,0,.51111],gi=[0,.68333,.16389,0,.74333],Ti=[.19444,.43056,.08847,0,.46],wi=[0,.43056,.07514,0,.71555],Ji=[0,.69444,.06646,0,.51111],eo=[0,.69444,0,0,.83129],to=[0,.69444,.1225,0,.51111],Ba=[0,.68333,.09403,0,.76666],ja=[0,.68333,.11111,0,.76666],sl=[0,.69444,.06961,0,.51444],as=[0,.69444,0,0,.27778],uo=[.25,.75,0,0,.38889],ao=[0,.64444,0,0,.5],fs=[0,.69444,0,0,.77778],vs=[0,.68333,0,0,.75],Ms=[0,.68333,0,0,.77778],ll=[0,.68333,0,0,.68056],Fs=[0,.68333,0,0,.72222],No=[.25,.75,0,0,.5],Ko=[.25,.75,0,0,.27778],Fa=[0,.69444,0,0,.5],Js=[0,.69444,0,0,.55556],Dl=[0,.43056,0,0,.44445],Us=[0,.43056,0,0,.5],ha=[.19444,.43056,0,0,.55556],ca=[0,.43056,0,0,.55556],Ga=[.08333,.58333,0,0,.77778],mo=[0,.43056,0,0,.27778],no=[0,.66786,0,0,.27778],$o=[0,.69444,0,0,.75],Go=[0,.66786,0,0,.5],ys=[0,.68333,0,0,.625],Qo=[.19444,.69444,0,0,.44445],Ks=[0,.69444,0,0,.72222],Ps=[.19444,.69444,0,0,.5],Yo=[.19444,.69444,0,0,1],gc=[.011,.511,0,0,1.126],gl=[.19444,.69444,0,0,.61111],vl=[.05556,.75,0,0,.5],nc=[0,.68333,0,0,.83334],jl=[.0391,.5391,0,0,.66667],Ll=[-.05555,.44445,0,0,.5],Yc=[0,.43056,0,0,.77778],cl=[0,.55556,0,0,.66667],rc=[-.03625,.46375,0,0,.77778],ul=[-.01688,.48312,0,0,.77778],yl=[.0391,.5391,0,0,1],Aa=[0,.69444,0,0,.61111],_a=[-.03472,.46528,0,0,.5],Qa=[.25,.75,0,0,.44445],bs=[-.14236,.35764,0,0,1],Xo=[.244,.744,0,0,.412],Vs=[.19444,.69444,0,0,.88889],hs=[.12963,.69444,0,0,.77778],Ho=[.19444,.69444,0,0,.38889],qs=[.011,.511,0,0,1.638],el=[.19444,.69444,0,0,0],tl=[0,.44444,0,0,.575],Tl=[.19444,.44444,0,0,.575],Xc=[0,.68611,0,0,.75555],vc=[0,.69444,0,0,.66759],Vu=[0,.68611,0,0,.80555],bu=[0,.68611,.08229,0,.98229],Fc=[0,.68611,0,0,.76666],Id=[0,.44444,0,0,.58472],Jc=[.19444,.44444,0,0,.6118],Kc=[.19444,.43056,0,0,.5],xu=[0,.68333,.02778,.08334,.76278],Su=[0,.68333,.08125,.05556,.83125],ic=[0,.43056,0,.05556,.48472],qc=[.19444,.43056,0,.08334,.51702],Cu=[.25,.75,0,0,.42778],os=[0,.69444,0,0,.55],Bl=[0,.69444,0,0,.73334],ac=[0,.69444,0,0,.79445],Gu=[0,.69444,0,0,.51945],eu=[0,.69444,0,0,.70278],tu=[0,.69444,0,0,.76389],yc=[.25,.75,0,0,.34306],oc=[0,.69444,0,0,.56111],Dd=[0,.69444,0,0,.25556],$c=[.19444,.45833,0,0,.56111],Qu=[0,.45833,0,0,.56111],Ul=[0,.69444,0,0,.30556],Yu=[0,.69444,0,0,.58056],Ol=[0,.69444,0,0,.67223],bc=[0,.69444,0,0,.85556],Pl=[0,.69444,0,0,.55834],$s=[0,.65556,.11156,0,.5],Vl=[0,.69444,.08094,0,.70834],nu=[.17014,0,0,0,.44445],wu=[0,.69444,.0799,0,.5],Eu=[0,.69444,0,0,.73752],Xu=[0,.69444,.09205,0,.5],ks=[0,.69444,.09031,0,.77778],Nl=[0,.69444,.07816,0,.27778],Ju=[0,.69444,.00316,0,.5],_e=[.19444,.69444,0,0,.83334],Ze=[.05556,.75,0,0,.83334],xt=[0,.75,0,0,.5],Lt=[.125,.08333,0,0,.27778],jt=[0,.08333,0,0,.27778],zt=[0,.65556,0,0,.5],cn=[0,.69444,0,0,.47222],sn=[0,.69444,0,0,.66667],an=[0,.69444,0,0,.59722],Mn=[0,.69444,0,0,.54167],Nn=[0,.69444,0,0,.70834],In=[.25,.75,0,0,.28889],nr=[0,.69444,0,0,.51667],Yn=[0,.44444,0,0,.44445],tr=[.19444,.44444,0,0,.51667],_r=[0,.44444,0,0,.38333],Sr=[0,.44444,0,0,.51667],Rr=[0,.69444,0,0,.83334],Mr=[.35001,.85,0,0,.45834],Yr=[.35001,.85,0,0,.57778],Ei=[.35001,.85,0,0,.41667],Ai=[.35001,.85,0,0,.58334],ui=[0,.72222,0,0,.55556],zi=[1e-5,.6,0,0,.66667],Yi=[1e-5,.6,0,0,.77778],ni=[.25001,.75,0,0,.94445],yi=[.306,.805,.19445,0,.47222],ii=[.30612,.805,.19445,0,.47222],gr=[.25001,.75,0,0,.83334],oi=[.35001,.85,0,0,.47222],_i=[.25001,.75,0,0,1.11111],aa=[.65002,1.15,0,0,.59722],Oi=[.65002,1.15,0,0,.81111],$r=[.65002,1.15,0,0,.47222],Ui=[.65002,1.15,0,0,.66667],Xi=[0,.75,0,0,1],Ea=[.55001,1.05,0,0,1.27778],ba=[.862,1.36,.44445,0,.55556],oo=[.86225,1.36,.44445,0,.55556],Ya=[.55001,1.05,0,0,1.11111],Gi=[.65002,1.15,0,0,.52778],So=[.65002,1.15,0,0,.61111],da=[.55001,1.05,0,0,1.51112],ro=[.95003,1.45,0,0,.73611],Xa=[.95003,1.45,0,0,1.04445],Do=[.95003,1.45,0,0,.52778],Pi=[.95003,1.45,0,0,.75],Ii=[0,.75,0,0,1.44445],Di=[.95003,1.45,0,0,.58334],Si=[1.25003,1.75,0,0,.79167],xa=[1.25003,1.75,0,0,1.27778],Mi=[1.25003,1.75,0,0,.58334],Vi=[1.25003,1.75,0,0,.80556],fa=[0,.825,0,0,1.8889],ua=[1.25003,1.75,0,0,.63889],Jo=[.64502,1.155,0,0,.875],Lo=[1e-5,.6,0,0,.875],Hs=[-99e-5,.601,0,0,.66667],Co=[.64502,1.155,0,0,.66667],Gs=[1e-5,.9,0,0,.88889],Eo=[.65002,1.15,0,0,.88889],Zo=[.90001,0,0,0,.88889],bl=[-.00499,.605,0,0,1.05556],ya=[0,.12,0,0,.45],pr=[0,.61111,0,0,.525],Ma=[.08333,.69444,0,0,.525],Ao=[-.08056,.53055,0,0,.525],To=[-.05556,.55556,0,0,.525],Hi=[0,.43056,0,0,.525],Oa=[.22222,.43056,0,0,.525],Wo=[0,0,0,0,.525],Ns={"AMS-Regular":{32:Dn,65:Xt,66:gn,67:Xt,68:Xt,69:gn,70:wn,71:En,72:En,73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:En,76:gn,77:[0,.68889,0,0,.94445],78:Xt,79:_n,80:wn,81:_n,82:Xt,83:$n,84:gn,85:Xt,86:Xt,87:[0,.68889,0,0,1],88:Xt,89:Xt,90:gn,107:$n,160:Dn,165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:$n,295:br,710:qn,732:fr,770:qn,771:fr,989:wr,1008:Er,8245:[0,.54986,0,0,.275],8463:br,8487:Xt,8498:$n,8502:gn,8503:[0,.68889,0,0,.44445],8504:gn,8513:[0,.68889,0,0,.63889],8592:Zn,8594:Zn,8602:ar,8603:ar,8606:Cr,8608:Cr,8610:jn,8611:jn,8619:Dr,8620:Dr,8621:[-.13313,.37788,0,0,1.38889],8622:ar,8624:ei,8625:ei,8630:Fr,8631:Fr,8634:ai,8635:ai,8638:ti,8639:ti,8642:ti,8643:ti,8644:er,8646:er,8647:er,8648:hr,8649:er,8650:hr,8651:Cr,8652:Cr,8653:ar,8654:ar,8655:ar,8666:zn,8667:zn,8669:[-.13313,.37788,0,0,1],8672:Hn,8674:Hn,8705:[0,.825,0,0,.5],8708:$n,8709:wr,8717:[0,.43056,0,0,.42917],8722:Zn,8724:[.08198,.69224,0,0,.77778],8726:wr,8733:qe,8736:Bt,8737:Bt,8738:[.03517,.52239,0,0,.72222],8739:Rn,8740:[.25142,.74111,0,0,.27778],8741:Gn,8742:[.25142,.74111,0,0,.5],8756:ze,8757:ze,8764:Xe,8765:[-.13313,.37788,0,0,.77778],8769:Xe,8770:rc,8774:Vt,8776:ul,8778:wr,8782:Je,8783:Je,8785:ai,8786:ai,8787:ai,8790:qe,8791:ln,8796:[.08198,.91667,0,0,.77778],8806:Ct,8807:Ct,8808:Rt,8809:Rt,8812:[.25583,.75583,0,0,.5],8814:rn,8815:rn,8816:Vt,8817:Vt,8818:ln,8819:ln,8822:Cn,8823:Cn,8828:An,8829:An,8830:ln,8831:ln,8832:rn,8833:rn,8840:Vt,8841:Vt,8842:Tn,8843:Tn,8847:Ut,8848:Ut,8858:ai,8859:ai,8861:ai,8862:bn,8863:bn,8864:bn,8865:bn,8872:[0,.69224,0,0,.61111],8873:Bt,8874:[0,.69224,0,0,.88889],8876:wn,8877:wn,8878:Xt,8879:Xt,8882:Ut,8883:Ut,8884:An,8885:An,8888:[0,.54986,0,0,1.11111],8890:ha,8891:Vn,8892:Vn,8901:[0,.54986,0,0,.27778],8903:wr,8905:wr,8906:wr,8907:qe,8908:qe,8909:[-.03598,.46402,0,0,.77778],8910:Fn,8911:Fn,8912:Ut,8913:Ut,8914:Jn,8915:Jn,8916:ze,8918:Wn,8919:Wn,8920:mr,8921:mr,8922:Bn,8923:Bn,8926:An,8927:An,8928:Vt,8929:Vt,8934:rr,8935:rr,8936:rr,8937:rr,8938:rn,8939:rn,8940:Vt,8941:Vt,8994:It,8995:It,9416:[.15559,.69224,0,0,.90222],9484:ei,9488:ei,9492:on,9496:on,9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:bn,9633:bn,9650:un,9651:un,9654:Ut,9660:un,9661:un,9664:Ut,9674:dn,9733:[.19444,.69224,0,0,.94445],10003:xn,10016:xn,10731:dn,10846:[.19444,.75583,0,0,.61111],10877:An,10878:An,10885:Ct,10886:Ct,10887:Tn,10888:Tn,10889:vn,10890:vn,10891:pn,10892:pn,10901:An,10902:An,10933:Rt,10934:Rt,10935:vn,10936:vn,10937:vn,10938:vn,10949:Ct,10950:Ct,10955:On,10956:On,57350:Rn,57351:Gn,57352:wr,57353:Er,57356:Rt,57357:Rt,57358:Hr,57359:Vt,57360:Vt,57361:Hr,57366:Rt,57367:Rt,57368:Rt,57369:Rt,57370:Tn,57371:Tn},"Caligraphic-Regular":{32:Dn,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:Dn},"Fraktur-Regular":{32:Dn,33:[0,.69141,0,0,.29574],34:Nr,38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:Xr,41:Xr,42:[0,.62119,0,0,.27764],43:Lr,44:vr,45:Lr,46:vr,47:[.24982,.74947,0,0,.50181],48:Jr,49:Jr,50:Jr,51:Gr,52:Gr,53:Gr,54:Zr,55:Gr,56:Zr,57:Gr,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:xr,93:xr,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:Dn,8216:Nr,8217:Nr,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:Dn,33:[0,.69444,0,0,.35],34:la,35:[.19444,.69444,0,0,.95833],36:ur,37:[.05556,.75,0,0,.95833],38:Bi,39:ri,40:Qr,41:Qr,42:[0,.75,0,0,.575],43:xi,44:[.19444,.15556,0,0,.31944],45:_r,46:[0,.15556,0,0,.31944],47:Kn,48:Kr,49:Kr,50:Kr,51:Kr,52:Kr,53:Kr,54:Kr,55:Kr,56:Kr,57:Kr,58:oa,59:[.19444,.44444,0,0,.31944],60:hi,61:qi,62:hi,63:[0,.69444,0,0,.54305],64:Bi,65:Xn,66:[0,.68611,0,0,.81805],67:fi,68:[0,.68611,0,0,.88194],69:Xc,70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:Ur,73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:Ar,77:[0,.68611,0,0,1.09166],78:Ur,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:Xn,89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:Wr,92:Kn,93:Wr,94:$i,95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:Tr,99:li,100:Tr,101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:Tr,105:ri,106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:ri,109:[0,.44444,0,0,.95833],110:pi,111:tl,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:pi,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:li,123:Kn,124:Wr,125:Kn,126:[.35,.34444,0,0,.575],160:Dn,163:[0,.69444,0,0,.86853],168:$i,172:[0,.44444,0,0,.76666],176:Br,177:xi,184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:xi,216:[.04861,.73472,0,0,.89444],223:an,230:[0,.44444,0,0,.83055],247:xi,248:[.09722,.54167,0,0,.575],305:oa,338:[0,.68611,0,0,1.16944],339:ea,567:[.19444,.44444,0,0,.35139],710:$i,711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:$i,715:$i,728:$i,729:ri,730:Br,732:$i,733:$i,915:Ar,916:cr,920:mi,923:Vu,926:Fc,928:Ur,931:fi,933:mi,934:fi,936:mi,937:fi,8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:ri,8217:ri,8220:la,8221:la,8224:Ua,8225:Ua,8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:vc,8465:Da,8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:Da,8501:Ra,8592:Wi,8593:ma,8594:Wi,8595:ma,8596:Wi,8597:Kn,8598:na,8599:na,8600:na,8601:na,8636:Wi,8637:Wi,8640:Wi,8641:Wi,8656:Wi,8657:sr,8658:Wi,8659:sr,8660:Wi,8661:[.25,.75,0,0,.70277],8704:Tr,8706:[0,.69444,.06389,0,.62847],8707:Tr,8709:ur,8711:cr,8712:Or,8715:Or,8722:xi,8723:xi,8725:Kn,8726:Kn,8727:ko,8728:Ki,8729:Ki,8730:[.18,.82,0,0,.95833],8733:ea,8734:[0,.44444,0,0,1.14999],8736:Bt,8739:Wr,8741:Kn,8743:ra,8744:ra,8745:ra,8746:ra,8747:[.19444,.69444,.12778,0,.56875],8764:qi,8768:[.19444,.69444,0,0,.31944],8771:ia,8776:[.02444,.52444,0,0,.89444],8781:ia,8801:ia,8804:ga,8805:ga,8810:Va,8811:Va,8826:hi,8827:hi,8834:hi,8835:hi,8838:ga,8839:ga,8846:ra,8849:ga,8850:ga,8851:ra,8852:ra,8853:xi,8854:xi,8855:xi,8856:xi,8857:xi,8866:Ra,8867:Ra,8868:Bi,8869:Bi,8900:Ki,8901:[-.02639,.47361,0,0,.31944],8902:ko,8968:co,8969:co,8970:co,8971:co,8994:za,8995:za,9651:ds,9657:ko,9661:ds,9667:ko,9711:na,9824:wo,9825:wo,9826:wo,9827:wo,9837:[0,.75,0,0,.44722],9838:xo,9839:xo,10216:Qr,10217:Qr,10815:Ur,10927:ga,10928:ga,57376:el},"Main-BoldItalic":{32:Dn,33:[0,.69444,.11417,0,.38611],34:Na,35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:Qi,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:Za,49:Za,50:Za,51:Za,52:va,53:Za,54:Za,55:va,56:Za,57:Za,58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:Pa,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:di,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:di,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:ci,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:Ri,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:Ri,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:Dn,168:[0,.69444,.11473,0,.59111],176:ji,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:ki,248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:ki,567:[.19444,.44444,.04611,0,.385],710:ci,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:Qi,730:ji,732:Pa,733:Pa,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:di,931:[0,.68611,.11431,0,.82666],933:Wa,934:[0,.68611,.05632,0,.82666],936:Wa,937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:Qi,8217:Qi,8220:[0,.69444,.16772,0,.62055],8221:Na},"Main-Italic":{32:Dn,33:mn,34:sl,35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:mn,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:lr,49:lr,50:lr,51:lr,52:Pr,53:lr,54:lr,55:Pr,56:lr,57:lr,58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:to,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:gi,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:gi,79:Ba,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:gi,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:Ji,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:Ti,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:Ti,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:Dn,168:[0,.66786,.10474,0,.51111],176:eo,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:wi,248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:wi,710:Ji,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:eo,732:[0,.66786,.11585,0,.51111],733:to,915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:Ba,923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:gi,931:[0,.68333,.12028,0,.71555],933:ja,934:[0,.68333,.05986,0,.71555],936:ja,937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:mn,8217:mn,8220:[0,.69444,.1685,0,.51444],8221:sl,8463:br},"Main-Regular":{32:Dn,33:as,34:Fa,35:_e,36:vl,37:Ze,38:fs,39:as,40:uo,41:uo,42:xt,43:Ga,44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:No,48:ao,49:ao,50:ao,51:ao,52:ao,53:ao,54:ao,55:ao,56:ao,57:ao,58:mo,59:[.19444,.43056,0,0,.27778],60:Wn,61:Xe,62:Wn,63:cn,64:fs,65:vs,66:[0,.68333,0,0,.70834],67:Fs,68:[0,.68333,0,0,.76389],69:ll,70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:vs,73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:Ms,76:ys,77:[0,.68333,0,0,.91667],78:vs,79:Ms,80:ll,81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:Fs,85:vs,86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:vs,89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:Ko,92:No,93:Ko,94:Fa,95:[.31,.12056,.02778,0,.5],97:Us,98:Js,99:Dl,100:Js,101:Dl,102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:Js,105:no,106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:as,109:[0,.43056,0,0,.83334],110:ca,111:Us,112:ha,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:ca,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:Dl,123:No,124:Ko,125:No,126:[.35,.31786,0,0,.5],160:Dn,163:[0,.69444,0,0,.76909],167:Qo,168:Go,172:[0,.43056,0,0,.66667],176:$o,177:Ga,182:gl,184:nu,198:[0,.68333,0,0,.90278],215:Ga,216:[.04861,.73194,0,0,.77778],223:Fa,230:[0,.43056,0,0,.72222],247:Ga,248:[.09722,.52778,0,0,.5],305:mo,338:[0,.68333,0,0,1.01389],339:Yc,567:[.19444,.43056,0,0,.30556],710:Fa,711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:Fa,715:Fa,728:Fa,729:no,730:$o,732:Go,733:Fa,915:ys,916:nc,920:Ms,923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:vs,931:Fs,933:Ms,934:Fs,936:Ms,937:Fs,8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:as,8217:as,8220:Fa,8221:Fa,8224:Qo,8225:Qo,8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:br,8465:Ks,8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:Ks,8501:Aa,8592:ar,8593:Ps,8594:ar,8595:Ps,8596:ar,8597:No,8598:Yo,8599:Yo,8600:Yo,8601:Yo,8614:[.011,.511,0,0,1],8617:gc,8618:gc,8636:ar,8637:ar,8640:ar,8641:ar,8652:[.011,.671,0,0,1],8656:ar,8657:gl,8658:ar,8659:gl,8660:ar,8661:[.25,.75,0,0,.61111],8704:Js,8706:[0,.69444,.05556,.08334,.5309],8707:Js,8709:vl,8711:nc,8712:jl,8715:jl,8722:Ga,8723:Ga,8725:No,8726:No,8727:_a,8728:Ll,8729:Ll,8730:[.2,.8,0,0,.83334],8733:Yc,8734:Fr,8736:Bt,8739:Ko,8741:No,8743:cl,8744:cl,8745:cl,8746:cl,8747:[.19444,.69444,.11111,0,.41667],8764:Xe,8768:[.19444,.69444,0,0,.27778],8771:rc,8773:[-.022,.589,0,0,1],8776:ul,8781:rc,8784:[-.133,.67,0,0,.778],8801:rc,8804:Tn,8805:Tn,8810:yl,8811:yl,8826:Wn,8827:Wn,8834:Wn,8835:Wn,8838:Tn,8839:Tn,8846:cl,8849:Tn,8850:Tn,8851:cl,8852:cl,8853:Ga,8854:Ga,8855:Ga,8856:Ga,8857:Ga,8866:Aa,8867:Aa,8868:fs,8869:fs,8872:[.249,.75,0,0,.867],8900:Ll,8901:[-.05555,.44445,0,0,.27778],8902:_a,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:Qa,8969:Qa,8970:Qa,8971:Qa,8994:bs,8995:bs,9136:Xo,9137:Xo,9651:Vs,9657:_a,9661:Vs,9667:_a,9711:Yo,9824:hs,9825:hs,9826:hs,9827:hs,9837:[0,.75,0,0,.38889],9838:Ho,9839:Ho,10216:uo,10217:uo,10222:Xo,10223:Xo,10229:[.011,.511,0,0,1.609],10230:qs,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:qs,10815:vs,10927:Tn,10928:Tn,57376:el},"Math-BoldItalic":{32:Dn,48:tl,49:tl,50:tl,51:Tl,52:Tl,53:Tl,54:Kr,55:Tl,56:Kr,57:Tl,65:Xn,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:bu,73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:Xc,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:vc,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:Id,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:Dn,915:[0,.68611,.15972,0,.65694],916:cr,920:[0,.68611,.03194,0,.86722],923:Vu,926:[0,.68611,.07458,0,.84125],928:bu,931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:Fc,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:Id,960:[0,.44444,.03704,0,.68241],961:Jc,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:Jc,1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:Dn,48:Us,49:Us,50:Us,51:Kc,52:Kc,53:Kc,54:ao,55:Kc,56:ao,57:Kc,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:Su,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:xu,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:ic,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:Dn,915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:xu,923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:Su,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:ic,960:[0,.43056,.03588,0,.57003],961:qc,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:qc,1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:Dn,33:[0,.69444,0,0,.36667],34:Pl,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:Ul,40:Cu,41:Cu,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:os,49:os,50:os,51:os,52:os,53:os,54:os,55:os,56:os,57:os,58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:Gu,64:Bl,65:Bl,66:Bl,67:eu,68:ac,69:[0,.69444,0,0,.64167],70:Aa,71:Bl,72:ac,73:[0,.69444,0,0,.33056],74:Gu,75:tu,76:Yu,77:[0,.69444,0,0,.97778],78:ac,79:ac,80:eu,81:[.10556,.69444,0,0,.79445],82:eu,83:Aa,84:Bl,85:tu,86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:Bl,89:[0,.69444,.0275,0,.73334],90:Ol,91:yc,93:yc,94:os,95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:oc,99:[0,.45833,0,0,.48889],100:oc,101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:oc,105:Dd,106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:Dd,109:[0,.45833,0,0,.86667],110:Qu,111:[0,.45833,0,0,.55],112:$c,113:$c,114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:Qu,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:Dn,168:os,176:Bl,180:os,184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:os,711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:os,729:Ul,730:Bl,732:os,733:os,915:Yu,916:[0,.69444,0,0,.91667],920:bc,923:Ol,926:Bl,928:ac,931:ac,933:bc,934:ac,936:bc,937:ac,8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:Ul,8217:Ul,8220:Pl,8221:Pl},"SansSerif-Italic":{32:Dn,33:[0,.69444,.05733,0,.31945],34:Ju,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:Nl,40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:Lt,45:[0,.44444,.01946,0,.33333],46:jt,47:[.25,.75,.13164,0,.5],48:$s,49:$s,50:$s,51:$s,52:$s,53:$s,54:$s,55:$s,56:$s,57:$s,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:sn,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:Vl,73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:Mn,77:[0,.69444,.08094,0,.875],78:Vl,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:wu,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:Dn,168:[0,.67937,.06385,0,.5],176:Eu,184:nu,305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:wu,711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:Xu,715:Fa,728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:Eu,732:[0,.67659,.08826,0,.5],733:Xu,915:[0,.69444,.13372,0,.54167],916:Rr,920:[0,.69444,.07555,0,.77778],923:Aa,926:[0,.69444,.12816,0,.66667],928:Vl,931:[0,.69444,.11983,0,.72222],933:ks,934:[0,.69444,.04603,0,.72222],936:ks,937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:Nl,8217:Nl,8220:[0,.69444,.14205,0,.5],8221:Ju},"SansSerif-Regular":{32:Dn,33:[0,.69444,0,0,.31945],34:Fa,35:_e,36:vl,37:Ze,38:[0,.69444,0,0,.75834],39:as,40:uo,41:uo,42:xt,43:Ga,44:Lt,45:[0,.44444,0,0,.33333],46:jt,47:No,48:zt,49:zt,50:zt,51:zt,52:zt,53:zt,54:zt,55:zt,56:zt,57:zt,58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:cn,64:sn,65:sn,66:sn,67:Tr,68:[0,.69444,0,0,.72223],69:an,70:[0,.69444,0,0,.56945],71:sn,72:Nn,73:as,74:cn,75:[0,.69444,0,0,.69445],76:Mn,77:[0,.69444,0,0,.875],78:Nn,79:[0,.69444,0,0,.73611],80:Tr,81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:Js,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:sn,89:[0,.69444,.025,0,.66667],90:Aa,91:In,93:In,94:Fa,95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:nr,99:Yn,100:nr,101:Yn,102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:nr,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:Sr,111:[0,.44444,0,0,.5],112:tr,113:tr,114:[0,.44444,.01389,0,.34167],115:_r,116:[0,.57143,0,0,.36111],117:Sr,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:Dn,168:[0,.67937,0,0,.5],176:sn,184:nu,305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:Fa,711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:Fa,715:Fa,728:Fa,729:[0,.67937,0,0,.27778],730:sn,732:[0,.67659,0,0,.5],733:Fa,915:Mn,916:Rr,920:fs,923:Aa,926:sn,928:Nn,931:Ks,933:fs,934:Ks,936:fs,937:Ks,8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:as,8217:as,8220:Fa,8221:Fa},"Script-Regular":{32:Dn,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:Dn},"Size1-Regular":{32:Dn,40:Mr,41:Mr,47:Yr,91:Ei,92:Yr,93:Ei,123:Ai,125:Ai,160:Dn,710:ui,732:ui,770:ui,771:ui,8214:[-99e-5,.601,0,0,.77778],8593:zi,8595:zi,8657:Yi,8659:Yi,8719:ni,8720:ni,8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:ii,8748:yi,8749:yi,8750:ii,8896:gr,8897:gr,8898:gr,8899:gr,8968:oi,8969:oi,8970:oi,8971:oi,9168:Hs,10216:oi,10217:oi,10752:_i,10753:_i,10754:_i,10756:gr,10758:gr},"Size2-Regular":{32:Dn,40:aa,41:aa,47:Oi,91:$r,92:Oi,93:$r,123:Ui,125:Ui,160:Dn,710:Xi,732:Xi,770:Xi,771:Xi,8719:Ea,8720:Ea,8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:oo,8748:ba,8749:ba,8750:oo,8896:Ya,8897:Ya,8898:Ya,8899:Ya,8968:Gi,8969:Gi,8970:Gi,8971:Gi,10216:So,10217:So,10752:da,10753:da,10754:da,10756:Ya,10758:Ya},"Size3-Regular":{32:Dn,40:ro,41:ro,47:Xa,91:Do,92:Xa,93:Do,123:Pi,125:Pi,160:Dn,710:Ii,732:Ii,770:Ii,771:Ii,8730:[.95003,1.45,0,0,1],8968:Di,8969:Di,8970:Di,8971:Di,10216:Pi,10217:Pi},"Size4-Regular":{32:Dn,40:Si,41:Si,47:xa,91:Mi,92:xa,93:Mi,123:Vi,125:Vi,160:Dn,710:fa,732:fa,770:fa,771:fa,8730:[1.25003,1.75,0,0,1],8968:ua,8969:ua,8970:ua,8971:ua,9115:Jo,9116:Lo,9117:Jo,9118:Jo,9119:Lo,9120:Jo,9121:Co,9122:Hs,9123:Co,9124:Co,9125:Hs,9126:Co,9127:Gs,9128:Eo,9129:Zo,9130:[0,.3,0,0,.88889],9131:Gs,9132:Eo,9133:Zo,9143:[.88502,.915,0,0,1.05556],10216:Vi,10217:Vi,57344:bl,57345:bl,57680:ya,57681:ya,57682:ya,57683:ya},"Typewriter-Regular":{32:Wo,33:pr,34:pr,35:pr,36:Ma,37:Ma,38:pr,39:pr,40:Ma,41:Ma,42:[0,.52083,0,0,.525],43:Ao,44:[.13889,.125,0,0,.525],45:Ao,46:[0,.125,0,0,.525],47:Ma,48:pr,49:pr,50:pr,51:pr,52:pr,53:pr,54:pr,55:pr,56:pr,57:pr,58:Hi,59:[.13889,.43056,0,0,.525],60:To,61:[-.19549,.41562,0,0,.525],62:To,63:pr,64:pr,65:pr,66:pr,67:pr,68:pr,69:pr,70:pr,71:pr,72:pr,73:pr,74:pr,75:pr,76:pr,77:pr,78:pr,79:pr,80:pr,81:[.13889,.61111,0,0,.525],82:pr,83:pr,84:pr,85:pr,86:pr,87:pr,88:pr,89:pr,90:pr,91:Ma,92:Ma,93:Ma,94:pr,95:[.09514,0,0,0,.525],96:pr,97:Hi,98:pr,99:Hi,100:pr,101:Hi,102:pr,103:Oa,104:pr,105:pr,106:[.22222,.61111,0,0,.525],107:pr,108:pr,109:Hi,110:Hi,111:Hi,112:Oa,113:Oa,114:Hi,115:Hi,116:[0,.55358,0,0,.525],117:Hi,118:Hi,119:Hi,120:Hi,121:Oa,122:Hi,123:Ma,124:Ma,125:Ma,126:pr,127:pr,160:Wo,176:pr,184:[.19445,0,0,0,.525],305:Hi,567:Oa,711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:pr,715:pr,728:pr,730:pr,770:pr,771:pr,776:pr,915:pr,916:pr,920:pr,923:pr,926:pr,928:pr,931:pr,933:pr,934:pr,936:pr,937:pr,8216:pr,8217:pr,8242:pr,9251:[.11111,.21944,0,0,.525]}},dl=/[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FAF]|[\uAC00-\uD7AF]/,xs=10,qo=.25,nl=1.2,es=.431,Ss={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[es,es,es],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:[qo,qo,qo],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]},ss=[0,.5,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],so=5,lo={"\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 ps(a,y){a===void 0&&(a=77);const b=Ns[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 lo)a=lo[E].codePointAt(0);else if(dl.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 xl={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]},Zs={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]},fl={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 _l(a){if(Zs[a]){const[we,Oe,ot]=Zs[a],Et=`<span class="stretchy" style="height:${ot}em"><svg width="100%" height="${ot}em" viewBox="0 0 ${we} ${Oe}" preserveAspectRatio="none" ><path fill="currentcolor" d="${fl[a]}"></path></svg></span>`;return`<span style="display:inline-block;height:${Math.floor(100*ot/2)/100}em;min-width:0">${Et}</span>`}const[y,b,E,ee]=xl[a];let re,se;const me=E/1e3;y.length===3?(re=["slice-1-of-3","slice-2-of-3","slice-3-of-3"],se=["xMinYMin","xMidYMin","xMaxYMin"]):y.length===2?(re=["slice-1-of-2","slice-2-of-2"],se=["xMinYMin","xMaxYMin"]):(re=["slice-1-of-1"],se=[ee]);const ge=y.map((we,Oe)=>`<span class="${re[Oe]}" style=height:${me}em><svg width=400em height=${me}em viewBox="0 0 400000 ${E}" preserveAspectRatio="${se[Oe]} slice"><path fill="currentcolor" d="${fl[we]}"></path></svg></span>`).join("");return`<span style="display:inline-block;height:${me}em;min-width:${b}em;">${ge}</span>`}function ru(a){return xl[a]?xl[a][2]/1e3:Zs[a][2]}function Sa(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 re=E-55296,se=ee-56320;E=zc(2,16)+re*zc(2,10)+se,b++}}y.push(E)}return y}var Ka=8205,_o=[[Ka,1],[65038,2],[127995,5],[129456,4],[917536,96]],$a,Ro=[127462,127487];function ts(a){var y;if($a===void 0){$a={};for(const b of _o)for(let E=b[0];E<=b[0]+b[1]-1;E++)$a[E]=!0}return(y=$a[a])!=null?y:!1}function As(a){return a>=Ro[0]&&a<=Ro[1]}function Sl(a){if(/^[\u0020-\u00FF]*$/.test(a))return a;const y=[],b=Sa(a);let E=0;for(;E<b.length;){const ee=b[E++],re=b[E];if(re===Ka){const se=E-1;for(E+=2;b[E]===Ka;)E+=2;y.push(String.fromCodePoint(...b.slice(se,E-se+1)))}else if(ts(re)){const se=E-1;for(;ts(b[E]);)E+=b[E]===Ka?2:1;y.push(String.fromCodePoint(...b.slice(se,2*E-se-1)))}else As(ee)?(E+=1,y.push(String.fromCodePoint(...b.slice(E-2,2)))):y.push(String.fromCodePoint(ee))}return y}var Mu=class{constructor(a){this.obeyspaces=!1,this.pos=0,this.s=Sl(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 Gl(a,y){var b,E,ee,re;const se=[];let me=a.next();if(me&&me!=="\\relax"){if(me==="\\noexpand")me=a.next(),me&&se.push(me);else if(me==="\\obeyspaces")a.obeyspaces=!0;else if(me==="\\bgroup")se.push("<{>");else if(me==="\\egroup")se.push("<}>");else if(me==="\\string"){if(me=a.next(),me)if(me.startsWith("\\"))for(const ge of me)se.push(ge==="\\"?"\\backslash":ge);else me==="<{>"?se.push("\\{"):me==="<space>"?se.push("~"):me==="<}>"&&se.push("\\}")}else if(me==="\\csname"){for(;a.peek()==="<space>";)a.next();let ge="",we=!1,Oe=[];do{if(Oe.length===0)if(/^#[\d?@]$/.test(a.peek())){const ot=a.get().slice(1);Oe=Cl((E=(b=y==null?void 0:y(ot))!=null?b:y==null?void 0:y("?"))!=null?E:"\\placeholder{}",y),me=Oe[0]}else me=a.next(),Oe=me?[me]:[];we=Oe.length===0,!we&&me==="\\endcsname"&&(we=!0,Oe.shift()),we||(we=me==="<$>"||me==="<$$>"||me==="<{>"||me==="<}>"||typeof me=="string"&&me.length>1&&me.startsWith("\\")),we||(ge+=Oe.shift())}while(!we);ge&&se.push("\\"+ge),se.push(...Oe)}else if(me!=="\\endcsname")if(me.length>1&&me.startsWith("#")){const ge=me.slice(1);se.push(...Cl((re=(ee=y==null?void 0:y(ge))!=null?ee:y==null?void 0:y("?"))!=null?re:"\\placeholder{}",y))}else se.push(me)}return se}function Cl(a,y=null){const b=[];let E="";for(const se of a.toString().split(/\r?\n/)){E&&b.push(E),E=" ";const me=se.match(/((?:\\%)|[^%])*/);me!==null&&b.push(me[0])}const ee=new Mu(at(b.join(""))),re=[];do re.push(...Gl(ee,y));while(!ee.end());return re}function pa(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 fo(a,...y){return console.assert(a.startsWith("\\")),y.length===0?a:pa([a,...y.map(b=>`{${b}}`)])}function hl(a){return pa(a.map(y=>{var b;return(b={"<space>":" ","<$$>":"$$","<$>":"$","<{>":"{","<}>":"}"}[y])!=null?b:y}))}var sc=class ff{constructor(y){ff._registry[y]=this}static createAtom(y,b,E){return ff._registry[y].createAtom(b,dt(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 re of qu(y)){const se=ff._registry[re[0].mode];ee.push(...se.serialize(re,b))}return pa(ee)}return pa(iu(y,b))}static getFont(y,b,E){return ff._registry[y].getFont(b,E)}};sc._registry={};var Ws=sc;function qu(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 Bo(a,y){const b=[];let E=[],ee;for(const re of a)if(re.type!=="first"&&re.style){let se;y==="variant"?(se=re.style.variant,re.style.variantStyle&&re.style.variantStyle!=="up"&&(se+="-"+re.style.variantStyle)):se=re.style[y],se===ee?E.push(re):(E.length>0&&b.push(E),E=[re],ee=se)}return E.length>0&&b.push(E),b}function ku(a,y){var b;const{parent:E}=a[0],ee=E==null?void 0:E.computedStyle.color,re=[];for(const se of qu(a)){const me=y.defaultMode;for(const ge of Bo(se,"color")){const we=ge[0].computedStyle,Oe=Ws._registry[ge[0].mode].serialize(ge,Me(xe({},y),{defaultMode:me==="text"?"text":"math"}));!y.skipStyles&&we.color&&we.color!=="none"&&(!E||ee!==we.color)?re.push(fo("\\textcolor",(b=we.verbatimColor)!=null?b:we.color,pa(Oe))):re.push(pa(Oe))}}return re}function ed(a,y){const{parent:b}=a[0],E=b==null?void 0:b.computedStyle.backgroundColor;return Bo(a,"backgroundColor").map(ee=>{var re;if(ee.length>0||ee[0].type!=="box"){const se=ee[0].computedStyle;if(se.backgroundColor&&se.backgroundColor!=="none"&&(!b||E!==se.backgroundColor))return fo("\\colorbox",(re=se.verbatimBackgroundColor)!=null?re:se.backgroundColor,pa(ku(ee,Me(xe({},y),{defaultMode:"text"}))))}return pa(ku(ee,y))})}function iu(a,y){if(a.length===0)return[];const{parent:b}=a[0],E=b==null?void 0:b.computedStyle.fontSize,ee=[];for(const re of Bo(a,"fontSize")){const se=re[0].computedStyle.fontSize,me=ed(re,y);me&&(se&&se!=="auto"&&(!b||E!==se)?ee.push(["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][se],...me):ee.push(...me))}return ee}function au(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 xc(a){if(a.length===0)return"ord";const y=au(a[0].type),b=au(a[a.length-1].type);return y&&y===b?y:"ord"}function lc(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 kr=class Ep{constructor(y,b){var E,ee,re,se,me;if(typeof y=="number"?this.value=String.fromCodePoint(y):typeof y=="string"?this.value=y:De(y)?this.children=y.filter(we=>we!==null):y&&y instanceof Ep&&(this.children=[y]),this.children)for(const we of this.children)we.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=(re=b==null?void 0:b.isTight)!=null?re:!1,b!=null&&b.attributes&&(this.attributes=b.attributes);let ge=b==null?void 0:b.fontFamily;b!=null&&b.style&&this.value&&(ge=(me=Ws.getFont((se=b.mode)!=null?se:"math",this,Me(xe({variant:"normal"},b.style),{letterShapeStyle:b.letterShapeStyle})))!=null?me:void 0),ge||(ge="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),Ql(this,ge)}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=lc(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=lc(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"]=lc(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"]=lc(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"]=lc(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=Tt(ee)),ee&&ee!==b.backgroundColor&&(this.setStyle("background-color",ee),this.setStyle("display","inline-block"));const re=y.scalingFactor;return this.scale=re,this.skew*=re,this.italic*=re,this}toMarkup(){var y,b,E,ee;let re=(y=this.value)!=null?y:"";if(this.children)for(const Zt of this.children)re+=Zt.toMarkup();let se="";if(this.svgBody)se=_l(this.svgBody);else if(this.svgOverlay){se='<span style="',se+="display: inline-block;",se+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`,se+=`vertical-align:${Math.floor(100*this.depth)/100}em;`,se+='">',se+=re,se+="</span>",se+='<svg style="position:absolute;overflow:visible;',se+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`;const Zt=(b=this.cssProperties)==null?void 0:b.padding;Zt?(se+=`top:${Zt};`,se+=`left:${Zt};`,se+=`width:calc(100% - 2 * ${Zt} );`):se+="top:0;left:0;width:100%;",se+="z-index:2;",se+='"',this.svgStyle&&(se+=this.svgStyle),se+=` viewBox="0 0 ${Math.floor(100*this.width)/100} ${Math.floor(100*(this.height+this.depth))/100}"`,se+=`>${this.svgOverlay}</svg>`}let me="";const ge=this.classes.split(" ");ge.push((E={latex:"ML__raw-latex",placeholder:"ML__placeholder",error:"ML__error"}[this.type])!=null?E:""),this.caret==="latex"&&ge.push("ML__latex-caret"),this.isSelected&&ge.push("ML__selected");const we=ge.length===1?ge[0]:ge.filter((Zt,Yt,Pn)=>Zt.length>0&&Pn.indexOf(Zt)===Yt).join(" ");if(we.length>0&&(me+=` class="${we}"`),this.id&&(me+=` data-atom-id=${this.id}`),this.cssId&&(me+=` id="${this.cssId.replace(/ /g,"-")}" `),this.attributes&&(me+=" "+Object.keys(this.attributes).map(Zt=>`${Zt}="${this.attributes[Zt]}"`).join(" ")),this.htmlData){const Zt=this.htmlData.split(",");for(const Yt of Zt){const Pn=Yt.match(/([^=]+)=(.+$)/);if(Pn){const Ir=Pn[1].trim().replace(/ /g,"-");Ir&&(me+=` data-${Ir}="${Pn[2]}" `)}else{const Ir=Yt.trim().replace(/ /g,"-");Ir&&(me+=` data-${Ir} `)}}}const Oe=(ee=this.cssProperties)!=null?ee:{};this.hasExplicitWidth&&Oe.width===void 0&&(Oe.width=`${Math.ceil(this._width*100)/100}em`);const ot=Object.keys(Oe).map(Zt=>`${Zt}:${Oe[Zt]}`);if(this.scale!==void 0&&this.scale!==1&&(re.length>0||se.length>0)&&ot.push(`font-size: ${Math.ceil(this.scale*1e4)/100}%`),this.htmlStyle){const Zt=this.htmlStyle.split(";");let Yt="";for(const Pn of Zt){const Ir=Pn.match(/([^=]+):(.+$)/);if(Ir){const Ln=Ir[1].trim().replace(/ /g,"-");Ln&&(Yt+=`${Ln}:${Ir[2]};`)}}Yt&&(me+=` style="${Yt}"`)}ot.length>0&&(me+=` style="${ot.join(";")}"`);let Et="";return me.length>0||se.length>0?Et=`<span${me}>${re}${se}</span>`:Et=re,this.caret==="text"?Et+='<span class="ML__text-caret"></span>':this.caret==="math"&&(Et+='<span class="ML__caret"></span>'),Et}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 ge of["border","border-left","border-right","border-right-width","left","margin","margin-left","margin-right","padding","position","width"])if(y.cssProperties&&ge in y.cssProperties||this.cssProperties&&ge in this.cssProperties)return!1}const ee=this.cssProperties?Object.keys(this.cssProperties).length:0,re=y.cssProperties?Object.keys(y.cssProperties).length:0;if(ee!==re)return!1;if(ee>0){for(const ge of Object.keys(this.cssProperties))if(this.cssProperties[ge]!==y.cssProperties[ge])return!1}const se=this.classes.trim().replace(/\s+/g," ").split(" "),me=y.classes.trim().replace(/\s+/g," ").split(" ");if(se.length!==me.length)return!1;se.sort(),me.sort();for(const[ge,we]of se.entries())if(we==="vertical-separator"||we!==me[ge])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 Au(a){if(!a||a.length===0)return[];a[0].children=Au(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=Au(a[b].children),y.push(a[b]));return y}function ou(a){return a.children&&(a.children=Au(a.children)),a}function su(a,y){if(!a)return new kr(null,y);const b=new kr(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 kr(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 kr(E,Me(xe({},y),{type:"lift"}))}function rl(a){const y=ru(a)/2,b=new kr(null,{maxFontSize:0});return b.height=y+.166,b.depth=y-.166,b.svgBody=a,b}function Ql(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=ps(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,re=0;for(const se of a.children)se.height>E&&(E=se.height),se.depth>ee&&(ee=se.depth),re=Math.max(re,(b=se.maxFontSize)!=null?b:0);a.height=E,a.depth=ee,a._width=a.children.reduce((se,me)=>se+me.width,0),a.maxFontSize=re}}function Sc(a){if("individualShift"in a){const y=a.individualShift;let b=y[0];const E=[b],ee=-b.shift-b.box.depth;let re=ee;for(let se=1;se<y.length;se++){const me=y[se],ge=-me.shift-re-me.box.depth,we=ge-(b.box.height+b.box.depth);re=re+ge,E.push(we),E.push(me),b=me}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 cc(a){var y;const[b,E]=Sc(a);if(!b)return[[],0,0];const ee=new kr(null,{classes:"pstrut"});let re=0;for(const Yt of b)if(typeof Yt!="number"){const Pn=Yt.box;re=Math.max(re,Pn.maxFontSize,Pn.height)}re+=2,ee.height=re,ee.setStyle("height",re,"em");const se=[];let me=E,ge=E,we=E,Oe=0;for(const Yt of b){if(typeof Yt=="number")we+=Yt;else{const Pn=Yt.box,Ir=(y=Yt.classes)!=null?y:[],Ln=new kr([ee,Pn],{classes:Ir.join(" "),style:Yt.style});Pn.setStyle("height",Pn.height+Pn.depth,"em"),Pn.setStyle("display","inline-block"),Ln.setStyle("top",-re-we-Pn.depth,"em"),Yt.marginLeft&&Ln.setStyle("margin-left",Yt.marginLeft,"em"),Yt.marginRight&&Ln.setStyle("margin-right",Yt.marginRight,"em"),se.push(Ln),we+=Pn.height+Pn.depth,Oe=Math.max(Oe,Ln.width)}me=Math.min(me,we),ge=Math.max(ge,we)}se.forEach(Yt=>{Yt.softWidth=Oe});const ot=new kr(se,{classes:"vlist"});if(ot.softWidth=Oe,ot.height=ge,ot.setStyle("height",ge,"em"),me>=0)return[[new kr(ot,{classes:"vlist-r"})],ge,-me];const Et=new kr(new kr(null),{classes:"vlist"});Et.height=-me,Et.setStyle("height",-me,"em");const Zt=new kr(8203,{classes:"vlist-s",maxFontSize:0});return Zt.softWidth=0,Zt.height=0,Zt.depth=0,[[new kr([ot,Zt],{classes:"vlist-r"}),new kr(Et,{classes:"vlist-r"})],ge,-me]}var io=class extends kr{constructor(a,y){var b;const[E,ee,re]=cc(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=re,this.softWidth=E.reduce((se,me)=>Math.max(se,me.width),0)}};function td(a,y){var b,E,ee,re,se;const me=a.metrics,ge=new kr(y.base),we=(b=y.baseShift)!=null?b:0,Oe=(E=y.slant)!=null?E:0;let ot=0,Et=0;y.above&&(ot=(ee=y.aboveShift)!=null?ee:Math.max(me.bigOpSpacing1,me.bigOpSpacing3-y.above.depth)),y.below&&(Et=(re=y.belowShift)!=null?re:Math.max(me.bigOpSpacing2,me.bigOpSpacing4-y.below.height));let Zt=null;if(y.below&&y.above){const Yt=me.bigOpSpacing5+y.below.height+y.below.depth+Et+ge.depth+we;Zt=new io({bottom:Yt,children:[me.bigOpSpacing5,{box:y.below,marginLeft:-Oe,classes:["ML__center"]},Et,{box:ge,classes:["ML__center"]},ot,{box:y.above,marginLeft:Oe,classes:["ML__center"]},me.bigOpSpacing5]}).wrap(a)}else if(y.below&&!y.above)Zt=new io({top:ge.height-we,children:[me.bigOpSpacing5,{box:y.below,marginLeft:-Oe,classes:["ML__center"]},Et,{box:ge,classes:["ML__center"]}]}).wrap(a);else if(!y.below&&y.above){const Yt=ge.depth+we;Zt=new io({bottom:Yt,children:[{box:ge,classes:["ML__center"]},ot,{box:y.above,marginLeft:Oe,classes:["ML__center"]},me.bigOpSpacing5]}).wrap(a)}else{const Yt=ge.depth+we;Zt=new io({bottom:Yt,children:[{box:ge},me.bigOpSpacing5]}).wrap(a)}return new kr(Zt,{type:(se=y.type)!=null?se:"op"})}var lu=7,wl=6,Hc=5,Rl=4,zl=3,Cs=2,js=1,ls=0,El=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(Ss).reduce((ee,re)=>Me(xe({},ee),{[re]:Ss[re][E]}),{})}getFontSize(a){return Math.max(1,a+this.sizeDelta)}get sup(){return La[[ls,js,ls,js,Cs,zl,Cs,zl][this.id]]}get sub(){return La[[ls,ls,ls,ls,Cs,Cs,Cs,Cs][this.id]]}get fracNum(){return La[[ls,js,ls,js,Cs,zl,Rl,Hc][this.id]]}get fracDen(){return La[[ls,ls,ls,ls,Cs,Cs,Rl,Rl][this.id]]}get cramp(){return La[[ls,ls,Cs,Cs,Rl,Rl,wl,wl][this.id]]}get isTight(){return this.sizeDelta<0}},Ca={7:new El(lu,0,!1),6:new El(wl,0,!0),5:new El(Hc,0,!1),4:new El(Rl,0,!0),3:new El(zl,-3,!1),2:new El(Cs,-3,!0),1:new El(js,-4,!1),0:new El(ls,-4,!0)},La=Me(xe({},Ca),{displaystyle:Ca[lu],textstyle:Ca[Hc],scriptstyle:Ca[zl],scriptscriptstyle:Ca[js]});function ws(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:xs,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=zc(10,y);return Math.round(a.dimension/xs*E*ee)/ee}return a.dimension*E}function Ml(a,y){if(a===null)return 0;const b=ws(a)/xs;if(Number.isFinite(y)){const E=zc(10,y);return Math.round(b*E)/E}return b}function kl(a){var y;return`${a.dimension}${(y=a.unit)!=null?y:"pt"}`}function Iu(a){let y=kl(a.glue);return a.grow&&a.grow.dimension!==0&&(y+=` plus ${kl(a.grow)}`),a.shrink&&a.shrink.dimension!==0&&(y+=` minus ${kl(a.shrink)}`),y}function Oo(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=Iu(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 il(a,y){return a==null?null:"number"in a?Me(xe({},a),{number:a.number*y}):"register"in a?"factor"in a&&a.factor?Me(xe({},a),{factor:a.factor*y}):Me(xe({},a),{factor:y}):"dimension"in a?Me(xe({},a),{dimension:a.dimension*y}):"glue"in a?a.shrink&&a.grow?{glue:il(a.glue,y),shrink:il(a.shrink,y),grow:il(a.grow,y)}:a.shrink?{glue:il(a.glue,y),shrink:il(a.shrink,y)}:a.grow?{glue:il(a.glue,y),grow:il(a.grow,y)}:{glue:il(a.glue,y)}:null}var Du={"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 Yl(){return xe({},Du)}function nd(){return{registers:Yl(),smartFence:!1,renderPlaceholder:void 0,placeholderSymbol:"\u25A2",letterShapeStyle:ft.locale.startsWith("fr")?"french":"tex",minFontScale:0,colorMap:st,backgroundColorMap:Ie,getMacro:a=>Pt(a,nn())}}var Ia=class Mp{constructor(y,b){var E,ee,re,se,me,ge,we,Oe,ot,Et,Zt,Yt,Pn,Ir,Ln;let ir;y!=null&&y.parent?(this.parent=y.parent,ir=y.parent,this.registers={}):(ir=xe(xe({},nd()),(E=y==null?void 0:y.from)!=null?E:{}),this.registers=ir.registers),ir.atomIdsSettings&&(this.atomIdsSettings=xe({},ir.atomIdsSettings)),this.renderPlaceholder=ir.renderPlaceholder,this.isPhantom=(se=(re=y==null?void 0:y.isPhantom)!=null?re:(ee=this.parent)==null?void 0:ee.isPhantom)!=null?se:!1,this.letterShapeStyle=ir.letterShapeStyle,this.minFontScale=ir.minFontScale,b!=null&&b.color&&b.color!=="none"?this.color=b.color:this.color=(ge=(me=this.parent)==null?void 0:me.color)!=null?ge:"",b!=null&&b.backgroundColor&&b.backgroundColor!=="none"?this.backgroundColor=b.backgroundColor:this.backgroundColor=(Oe=(we=this.parent)==null?void 0:we.backgroundColor)!=null?Oe:"",b!=null&&b.fontSize&&b.fontSize!=="auto"&&b.fontSize!==((ot=this.parent)==null?void 0:ot.size)?this.size=b.fontSize:this.size=(Zt=(Et=this.parent)==null?void 0:Et.size)!=null?Zt:so;let zr=(Pn=(Yt=this.parent)==null?void 0:Yt.mathstyle)!=null?Pn:La.displaystyle;if(typeof(y==null?void 0:y.mathstyle)=="string"){if(ir instanceof Mp)switch(y.mathstyle){case"cramp":zr=zr.cramp;break;case"superscript":zr=zr.sup;break;case"subscript":zr=zr.sub;break;case"numerator":zr=zr.fracNum;break;case"denominator":zr=zr.fracDen;break}switch(y.mathstyle){case"textstyle":zr=La.textstyle;break;case"displaystyle":zr=La.displaystyle;break;case"scriptstyle":zr=La.scriptstyle;break;case"scriptscriptstyle":zr=La.scriptscriptstyle;break;case"":case"auto":break}}this.mathstyle=zr,this.smartFence=ir.smartFence,this.placeholderSymbol=ir.placeholderSymbol,this.colorMap=(Ir=ir.colorMap)!=null?Ir:or=>or,this.backgroundColorMap=(Ln=ir.backgroundColorMap)!=null?Ln:or=>or,this.getMacro=ir.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===lu||this.mathstyle.id===wl}get isCramped(){return this.mathstyle.cramped}get isTight(){return this.mathstyle.isTight}get metrics(){return this.mathstyle.metrics}get effectiveFontSize(){return Math.max(ss[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 Ml(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 re=b.evaluate(ee);if(re!==void 0)return"string"in re?{string:Number(ee).toString()+re.string}:"number"in re?{number:E*re.number}:"dimension"in re?Me(xe({},re),{dimension:E*re.dimension}):"glue"in re?Me(xe({},re),{glue:Me(xe({},re.glue),{dimension:E*re.glue.dimension}),shrink:re.shrink?Me(xe({},re.shrink),{dimension:E*re.shrink.dimension}):void 0,grow:re.grow?Me(xe({},re.grow),{dimension:E*re.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:ws(E,b)/xs}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}},cu=["body","above","below","superscript","subscript"];function uc(a){return typeof a=="string"&&cu.includes(a)}function Lu(a){return a!==void 0&&Array.isArray(a)&&a.length===2}var Un=class Gc{constructor(y){var b,E,ee,re,se,me;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=xe({},y.style),this.displayContainsHighlight=(re=y.displayContainsHighlight)!=null?re:!1,this.captureSelection=(se=y.captureSelection)!=null?se:!1,this.skipBoundary=(me=y.skipBoundary)!=null?me:!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 re=hf(b),se=[];for(const ge of re){const we=ge[0].style,Oe=pf(y,ge,{style:{color:we.color,backgroundColor:we.backgroundColor,fontSize:we.fontSize}});Oe&&se.push(Oe)}if(se.length===0)return null;const me=((ee=E==null?void 0:E.classes)!=null?ee:"").trim();return se.length===1&&!me&&!(E!=null&&E.type)?se[0].wrap(y):new kr(se,{classes:me,type:E==null?void 0:E.type}).wrap(y)}static serialize(y,b){return Ws.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 Gc({type:"mord",value:y,mode:"math"}):new Gc(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=xe({},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=Td(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=dt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):this.body&&this.command?pa([fo(this.command,this.bodyToLatex(y)),this.supsubToLatex(y)]):this.body?pa([this.bodyToLatex(y),this.supsubToLatex(y)]):!this.value||this.value==="\u200B"?"":this.command}bodyToLatex(y){var b;return Ws.serialize(this.body,Me(xe({},y),{defaultMode:(b=y.defaultMode)!=null?b:this.latexMode}))}aboveToLatex(y){return Ws.serialize(this.above,y)}belowToLatex(y){return Ws.serialize(this.below,y)}supsubToLatex(y){let b="";if(y=Me(xe({},y),{defaultMode:"math"}),this.branch("subscript")!==void 0){const E=Ws.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=Ws.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(uc(y)&&this._branches)return this._branches[y]}get branches(){if(!this._branches)return[];const y=[];for(const b of cu)this._branches[b]&&y.push(b);return y}createBranch(y){return console.assert(uc(y)),uc(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 Lu(this.parentBranch)?this.parentBranch[0]:-1}get col(){return Lu(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",re=xe(xe({},(b=(y=this.parent)==null?void 0:y.computedStyle)!=null?b:{}),this.style);return delete re.variant,delete re.variantStyle,ee||delete re.verbatimBackgroundColor,E||delete re.verbatimColor,re}applyStyle(y){this.isDirty=!0,this.style=xe(xe({},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(uc(b)),!uc(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 re of y)re.parent=this,re.parentBranch=b;this.isDirty=!0}makeFirstAtom(y){const b=new Gc({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(uc(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 cu)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=dt(this.command,this.mode);if(b!=null&&b.render)return b.render(this,y);const E=new Ia({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,re=this.superscript,se=this.subscript;if(!re&&!se)return ee;let me=null,ge=null;const we=(E=b.isCharacterBox)!=null?E:this.isCharacterBox();let Oe=0;if(re){const Pn=new Ia({parent:y,mathstyle:"superscript"});me=Gc.createBox(Pn,re),we||(Oe=ee.height-y.metrics.supDrop*Pn.scalingFactor)}let ot=0;if(se){const Pn=new Ia({parent:y,mathstyle:"subscript"});ge=Gc.createBox(Pn,se),we||(ot=ee.depth+y.metrics.subDrop*Pn.scalingFactor)}let Et;y.isDisplayStyle?Et=y.metrics.sup1:y.isCramped?Et=y.metrics.sup3:Et=y.metrics.sup2;const Zt=.5/xs/y.scalingFactor;let Yt=null;if(ge&&me){Oe=Math.max(Oe,Et,me.depth+.25*y.metrics.xHeight),ot=Math.max(ot,y.metrics.sub2);const Pn=y.metrics.defaultRuleThickness;if(Oe-me.depth-(ge.height-ot)<4*Pn){ot=4*Pn-(Oe-me.depth)+ge.height;const Ln=.8*y.metrics.xHeight-(Oe-me.depth);Ln>0&&(Oe+=Ln,ot-=Ln)}const Ir=this.isExtensibleSymbol&&ee.italic?-ee.italic:0;Yt=new io({individualShift:[{box:ge,shift:ot,marginLeft:Ir},{box:me,shift:-Oe}]}).wrap(y)}else ge&&!me?(ot=Math.max(ot,y.metrics.sub1,ge.height-.8*es),Yt=new io({shift:ot,children:[{box:ge,marginRight:Zt,marginLeft:this.isCharacterBox()?-ee.italic:0}]})):!ge&&me&&(Oe=Math.max(Oe,Et,me.depth+.25*es),Yt=new io({shift:-Oe,children:[{box:me,marginRight:Zt}]}));return new kr([ee,new kr(Yt,{caret:this.caret,isSelected:this.isSelected,classes:"msubsup"})],{type:b.type})}attachLimits(y,b){const E=this.superscript?Gc.createBox(new Ia({parent:y,mathstyle:"superscript"},this.style),this.superscript):null,ee=this.subscript?Gc.createBox(new Ia({parent:y,mathstyle:"subscript"},this.style),this.subscript):null;return!E&&!ee?b.base.wrap(y):td(y,Me(xe({},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,re,se;const me=(E=this.value)!=null?E:this.body,ge=(ee=b==null?void 0:b.boxType)!=null?ee:au(this.type);let we=(re=b==null?void 0:b.classes)!=null?re:"";this.mode==="text"&&(we+=" ML__text");const Oe=typeof me=="string"||me===void 0?new kr(me!=null?me:null,{type:ge,isSelected:this.isSelected,mode:this.mode,maxFontSize:y.scalingFactor,style:Me(xe({variant:"normal"},this.style),{fontSize:Math.max(1,y.size+y.mathstyle.sizeDelta)}),letterShapeStyle:y.letterShapeStyle,classes:we}):(se=Gc.createBox(y,me,{type:ge,classes:we}))!=null?se:new kr(null);return y.isTight&&(Oe.isTight=!0),(this.mode!=="math"||this.style.variant==="main")&&(Oe.italic=0),Oe.right=Oe.italic,this.bind(y,Oe),this.caret&&!this.superscript&&!this.subscript&&(Oe.caret=this.caret),Oe}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 hf(a){let y;const b=[];let E=[];for(const ee of a)if(!y&&!ee.style)E.push(ee);else{const re=ee.computedStyle;y&&re.color===y.color&&re.backgroundColor===y.backgroundColor&&re.fontSize===y.fontSize?E.push(ee):(E.length>0&&b.push(E),E=[ee],y=re)}return E.length>0&&b.push(E),b}function pf(a,y,b){var E,ee,re,se,me;if(!y||y.length===0)return null;const ge=new Ia({parent:a},b.style),we=!((E=ge.atomIdsSettings)!=null&&E.groupNumbers);let Oe=[];if(y.length===1){const Et=y[0],Zt=Et.render(ge);Zt&&(we&&Et.isSelected&&Zt.selected(!0),Oe=[Zt])}else{let Et="",Zt=!0;for(const Yt of y){(ee=ge.atomIdsSettings)!=null&&ee.groupNumbers&&Et&&(Zt&&Yt.isDigit()||!Zt&&Ld(Yt))&&(ge.atomIdsSettings.overrideID=Et);const Pn=Yt.render(ge);ge.atomIdsSettings&&(ge.atomIdsSettings.overrideID=void 0),Pn&&((re=ge.atomIdsSettings)!=null&&re.groupNumbers&&((Yt.isDigit()||Ld(Yt))&&(!Et||Zt!==Yt.isDigit())&&(Zt=Yt.isDigit(),Et=(se=Yt.id)!=null?se:""),Et&&(!(Yt.isDigit()||Ld(Yt))||!Yt.hasEmptyBranch("superscript")||!Yt.hasEmptyBranch("subscript"))&&(Et="")),we&&Yt.isSelected&&Pn.selected(!0),Oe.push(Pn))}}if(Oe.length===0)return null;const ot=new kr(Oe,Me(xe({isTight:ge.isTight},b),{type:(me=b.type)!=null?me:"lift"}));return ot.isSelected=Oe.every(Et=>Et.isSelected),ot.wrap(ge)}function Ld(a){return a.mode==="text"}function Td(a){return a.map(y=>y===null?"<null>":Array.isArray(y)&&y[0]instanceof Un?{atoms:y.map(b=>b.toJson())}:typeof y=="object"&&"group"in y?{group:y.group.map(b=>b.toJson())}:y)}var dc=class kp extends Un{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:_t("text",this.value.codePointAt(0))}};function Tu(a,y){if(a.direction===y.direction){const b=a.ranges.length;if(y.ranges.length===b){let E=0;for(;E<b&&ih(a.ranges[E],y.ranges[E])==="equal";)E++;return E===b?"equal":"different"}}return"different"}function ih(a,y){return a[0]===y[0]&&a[1]===y[1]?"equal":"different"}function Is(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 Cc(a){return typeof a=="number"&&!Number.isNaN(a)}function rd(a){return Array.isArray(a)&&a.length===2}function id(a){return a!=null&&typeof a=="object"&&"ranges"in a&&Array.isArray(a.ranges)}function ah(a,y){const b=a.at(y);let E;if(b){E=b.mode;let ee=b.parent;for(;!E&ⅇ)ee&&(E=ee.mode),ee=ee.parent}return E}function mf(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,re=!1,se=!1,me=!1,ge=!1,we=!1,Oe=!1,ot=!1,Et=!1,Zt=!1,Yt=!1,Pn=!1,Ir=!1,Ln=a[0],ir=0;for(;Ln!=null&&Ln.type&&/^(subsup|placeholder)$/.test(Ln.type);)ir+=1,Ln=a[ir];return b=!Ln||Ln.type==="first",Ln&&(Pn=Ln.mode==="text",E=!Pn&&Ln.type==="mord"&&de.test(Ln.value),ee=!Pn&&Ln.type==="mord"&&/\d+$/.test(Ln.value),re=!Pn&&Ln.isFunction,se=Ln.type==="genfrac",me=Ln.type==="surd",ge=Ln.type==="mbin",we=Ln.type==="mrel",Oe=Ln.type==="mop"||Ln.type==="operator"||Ln.type==="extensible-symbol",ot=Ln.type==="mpunct"||Ln.type==="minner",Et=Ln.type==="array",Zt=Ln.type==="mopen",Yt=Ln.type==="mclose"||Ln.type==="leftright",Ir=Ln.type==="space"),y.after.includes("nothing")&&b||y.after.includes("letter")&&E||y.after.includes("digit")&&ee||y.after.includes("function")&&re||y.after.includes("frac")&&se||y.after.includes("surd")&&me||y.after.includes("binop")&&ge||y.after.includes("relop")&&we||y.after.includes("operator")&&Oe||y.after.includes("punct")&&ot||y.after.includes("array")&&Et||y.after.includes("openfence")&&Zt||y.after.includes("closefence")&&Yt||y.after.includes("text")&&Pn||y.after.includes("space")&&Ir?y.value:""}function Bd(a,y,b){return b?mf(a,b[y]):""}var gf={"&":"\\&","%":"\\%",$:"\\$","''":"^{\\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 Bu(a,y){var b;let E=(b=y==null?void 0:y.format)!=null?b:"auto";return E==="auto"&&([E,a]=yf(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",_s(a,{inlineShortcuts:y==null?void 0:y.inlineShortcuts})]):["latex",a]}function _s(a,y){var b,E,ee;if(!a)return"";let re=!1,se;const me=(b=y.inlineShortcuts)!=null?b:gf;if(!re&&(a.startsWith("^")||a.startsWith("_"))&&(se=wc(a.slice(1),{inlineShortcuts:me,noWrap:!0}),a=a[0]+"{"+se.match+"}",a+=_s(se.rest,y),re=!0),re||(se=a.match(/^(sqrt|\u221A)(.*)/),se&&(se=wc(se[2],{inlineShortcuts:me,noWrap:!0}),a="\\sqrt{"+((E=se.match)!=null?E:"\\placeholder{}")+"}",a+=_s(se.rest,y),re=!0)),re||(se=a.match(/^(\\cbrt|\u221B)(.*)/),se&&(se=wc(se[2],{inlineShortcuts:me,noWrap:!0}),a="\\sqrt[3]{"+((ee=se.match)!=null?ee:"\\placeholder{}")+"}",a+=_s(se.rest,y),re=!0)),re||(se=a.match(/^abs(.*)/),se&&(se=wc(se[1],{inlineShortcuts:me,noWrap:!0}),a="\\left|"+se.match+"\\right|",a+=_s(se.rest,y),re=!0)),re||(se=a.match(/^["”“](.*?)["”“](.*)/),se&&(a="\\text{"+se[1]+"}",a+=_s(se[2],y),re=!0)),re||(se=a.match(/^([^a-zA-Z\(\{\[\_\^\\\s"]+)(.*)/),se&&(a=vf(se[1],me),a+=_s(se[2],y),re=!0)),!re&&/^([fgh])[^a-zA-Z]/.test(a)&&(se=wc(a.slice(1),{inlineShortcuts:me,noWrap:!0}),a=a[1]==="("?a[0]+"\\left("+se.match+"\\right)":a[0]+se.match,a+=_s(se.rest,y),re=!0),re||(se=a.match(/^([a-zA-Z]+)(.*)/),se&&(a=vf(se[1],me),a+=_s(se[2],y),re=!0)),!re)if(se=wc(a,{inlineShortcuts:me,noWrap:!0}),se.match&&se.rest[0]==="/"){const ge=wc(se.rest.slice(1),{inlineShortcuts:me,noWrap:!0});ge.match&&(a="\\frac{"+se.match+"}{"+ge.match+"}"+_s(ge.rest,y)),re=!0}else se.match&&(a=a.startsWith("(")?"\\left("+se.match+"\\right)"+_s(se.rest,y):se.match+_s(se.rest,y),re=!0);return re||(se=a.match(/^(\s+)(.*)$/),se&&(a=" "+_s(se[2],y),re=!0)),a}function wc(a,y){let b="";a=a.trim();let E=a,ee=a.charAt(0),re={"(":")","{":"}","[":"]"}[ee];if(re){let se=1,me=1;for(;me<a.length&&se>0;)a[me]===ee&&se++,a[me]===re&&se--,me++;se===0?(y.noWrap&&ee==="("?b=_s(a.substring(1,me-1),y):(ee==="{"&&re==="}"&&(ee="\\{",re="\\}"),b="\\left"+ee+_s(a.substring(1,me-1),y)+"\\right"+re),E=a.slice(Math.max(0,me))):(b=a.substring(1,me),E="")}else{let se=a.match(/^([a-zA-Z]+)/);if(se){let me=Bd(null,a,y.inlineShortcuts);if(me)return me=me.replace("_{#?}",""),me=me.replace("^{#?}",""),{match:me,rest:a.slice(me.length)}}if(se=a.match(/^([a-zA-Z])/),se)return{match:se[1],rest:a.slice(1)};if(se=a.match(/^(-)?\d+(\.\d*)?/),se)return{match:se[0],rest:a.slice(se[0].length)};/^\\(left|right)/.test(a)||(se=a.match(/^(\\[a-zA-Z]+)/),se&&(E=a.slice(se[1].length),b=se[1]))}return{match:b,rest:E}}function vf(a,y){let b=Bd(null,a,y);return b?(b=b.replace("_{#?}",""),b=b.replace("^{#?}",""),b+=" "):b=a,b}var Od=[["\\[","\\]"],["\\(","\\)"],["$$","$$"],["$","$"],["\\begin{math}","\\end{math}"],["\\begin{displaymath}","\\end{displaymath}"],["\\begin{equation}","\\end{equation}"],["\\begin{equation*}","\\end{equation*}"]];function Ec(a){const y=a.trim();for(const b of Od)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 yf(a){if(a=a.trim(),a.length<=1)return["latex",a];let y;return[y,a]=Ec(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 ad="$$",oh="$$",sh=(a,y,b)=>(Od.some(E=>y.startsWith(E[0])&&y.endsWith(E[1]))||(y=`${ad} ${y} ${oh}`),y),bf=class rh{constructor(y){rh._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 se=new DataTransfer;se.setData("text/plain",E),E=se}const re=new ClipboardEvent("paste",{clipboardData:E,cancelable:!0});return(ee=b.host)!=null&&ee.dispatchEvent(re)?rh._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]:Is(E.selection),re=E.getValue(ee,b);navigator.clipboard.writeText(re).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,re=ee.selectionIsCollapsed?[0,ee.lastOffset]:Is(ee.selection);let se=ee.getAtoms(re);if(se.every(me=>me.mode==="text"||!me.mode))b.clipboardData.setData("text/plain",se.filter(me=>me instanceof dc).map(me=>me.value).join(""));else if(se.every(me=>me.mode==="latex"))b.clipboardData.setData("text/plain",ee.getAtoms(re,{includeChildren:!0}).map(me=>{var ge;return(ge=me.value)!=null?ge:""}).join(""));else{let me;se.length===1&&se[0].verbatimLatex!==void 0?me=se[0].verbatimLatex:me=ee.getValue(re,"latex-expanded"),b.clipboardData.setData("application/x-latex",me);try{b.clipboardData.setData("text/plain",y.options.onExport(y,me,re))}catch(ge){}if(se.length===1){const ge=se[0];(ge.type==="root"||ge.type==="group")&&(se=ge.body.filter(we=>we.type!=="first"))}try{b.clipboardData.setData("application/json+mathlive",JSON.stringify(se.map(ge=>ge.toJson())))}catch(ge){}if((E=window[Symbol.for("io.cortexjs.compute-engine")])!=null&&E.ComputeEngine){const ge=window.MathfieldElement.computeEngine;if(ge)try{const we=ge.jsonSerializationOptions;ge.jsonSerializationOptions={metadata:["latex"]};const Oe=ge.parse(ee.getValue(re,"latex-unstyled"));ge.jsonSerializationOptions=we;const ot=JSON.stringify(Oe.json);ot&&b.clipboardData.setData("application/json",ot)}catch(we){}}}b.preventDefault()}static insert(y,b,E={}){var ee;const re=E.mode==="auto"?y.mode:(ee=E.mode)!=null?ee:y.mode;return rh._modes[re].insert(y,b,E)}onPaste(y,b){return!1}insert(y,b,E){return!1}};bf._modes={};var ta=bf,lh=[{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","^"]}],Pd={"\\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 Fl(a){var y;return((y=a.element)==null?void 0:y.mathfield)===a}function Kl(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 Mc(a){const y=Kl(a);if(!y)return null;const b=y.getBoundingClientRect();return{x:b.right,y:b.bottom,height:b.height}}function Nd(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 _d(a,y,b){if(!y)return null;const E=a.field.getBoundingClientRect(),ee=y.right-y.left,re=y.bottom-y.top,se=Math.ceil(y.left-E.left+a.field.scrollLeft*b),me=Math.ceil(y.top-E.top);return{left:se,right:se+ee,top:me,bottom:me+re}}function Rd(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 re=Rd(ee);E.left=Math.min(E.left,re.left),E.right=Math.max(E.right,re.right),E.top=Math.min(E.top,re.top),E.bottom=Math.max(E.bottom,re.bottom)}return E}function uu(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 re=a.field.querySelector(`[data-atom-id="${y.id}"]`);return ee=re?Rd(re):null,a.atomBoundsCache&&(ee?a.atomBoundsCache.set(y.id,ee):a.atomBoundsCache.delete(y.id)),ee!=null?ee:null}function xf(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 re=a.field,se=re.offsetWidth;let ge=Math.floor(re.getBoundingClientRect().width)/se;ge=isNaN(ge)?1:ge;const we=_d(a,uu(a,ee),ge);if(we){const Oe=Nd(ee);if(E.has(Oe)){const ot=E.get(Oe);E.set(Oe,{left:Math.min(ot.left,we.left),right:Math.max(ot.right,we.right),top:Math.min(ot.top,we.top),bottom:Math.max(ot.bottom,we.bottom)})}else E.set(Oe,we)}}return[...E.values()]}function zd(a,y){return a.model.selection.ranges.reduce((b,E)=>b.concat(...xf(a,E,y)),[])}function Fd(a,y){return a==="*"||y==="none"?!0:y==="same-origin"?!window.origin||a===window.origin:typeof y=="function"?y(a):!1}function od(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 Sf=`@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;
|
|
|
}
|
|
|
`,ho=`.ML__container {
|
|
|
min-height: auto !important;
|
|
|
--_hue: var(--hue, 212);
|
|
|
--_placeholder-color: var(--placeholder-color, hsl(var(--_hue), 40%, 49%));
|
|
|
--_placeholder-opacity: var(--placeholder-opacity, 0.4);
|
|
|
--_text-font-family: var(--text-font-family, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif);
|
|
|
}
|
|
|
.ML__sr-only {
|
|
|
position: absolute;
|
|
|
width: 1px;
|
|
|
height: 1px;
|
|
|
margin: -1px;
|
|
|
padding: 0;
|
|
|
overflow: hidden;
|
|
|
clip: rect(0, 0, 0, 0);
|
|
|
clip-path: inset(50%);
|
|
|
white-space: nowrap;
|
|
|
border: 0;
|
|
|
}
|
|
|
.ML__is-inline {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__base {
|
|
|
visibility: inherit;
|
|
|
display: inline-block;
|
|
|
position: relative;
|
|
|
cursor: text;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
box-sizing: content-box;
|
|
|
border: 0;
|
|
|
outline: 0;
|
|
|
vertical-align: baseline;
|
|
|
font-weight: inherit;
|
|
|
font-family: inherit;
|
|
|
font-style: inherit;
|
|
|
text-decoration: none;
|
|
|
width: min-content;
|
|
|
}
|
|
|
.ML__strut,
|
|
|
.ML__strut--bottom {
|
|
|
display: inline-block;
|
|
|
min-height: 0.5em;
|
|
|
}
|
|
|
.ML__small-delim {
|
|
|
font-family: KaTeX_Main;
|
|
|
}
|
|
|
/* Text mode */
|
|
|
.ML__text {
|
|
|
font-family: var(--_text-font-family);
|
|
|
white-space: pre;
|
|
|
}
|
|
|
/* Use cmr for 'math upright' */
|
|
|
.ML__cmr {
|
|
|
font-family: KaTeX_Main;
|
|
|
font-style: normal;
|
|
|
}
|
|
|
.ML__mathit {
|
|
|
font-family: KaTeX_Math;
|
|
|
/* The KaTeX_Math font is italic by default, so the font-style below is only
|
|
|
useful when a fallback font is used
|
|
|
*/
|
|
|
font-style: italic;
|
|
|
}
|
|
|
.ML__mathbf {
|
|
|
font-family: KaTeX_Main;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
/* Lowercase greek symbols should stick to math font when \\mathbf is applied
|
|
|
to match TeX idiosyncratic behavior */
|
|
|
.lcGreek.ML__mathbf {
|
|
|
font-family: KaTeX_Math;
|
|
|
font-weight: normal;
|
|
|
}
|
|
|
.ML__mathbfit {
|
|
|
font-family: KaTeX_Math;
|
|
|
font-weight: bold;
|
|
|
font-style: italic;
|
|
|
}
|
|
|
.ML__ams {
|
|
|
font-family: KaTeX_AMS;
|
|
|
}
|
|
|
/* Blackboard */
|
|
|
.ML__bb {
|
|
|
font-family: KaTeX_AMS;
|
|
|
}
|
|
|
.ML__cal {
|
|
|
font-family: KaTeX_Caligraphic;
|
|
|
}
|
|
|
.ML__frak {
|
|
|
font-family: KaTeX_Fraktur;
|
|
|
}
|
|
|
.ML__tt {
|
|
|
font-family: KaTeX_Typewriter;
|
|
|
}
|
|
|
.ML__script {
|
|
|
font-family: KaTeX_Script;
|
|
|
}
|
|
|
.ML__sans {
|
|
|
font-family: KaTeX_SansSerif;
|
|
|
}
|
|
|
.ML__series_ul {
|
|
|
font-weight: 100;
|
|
|
}
|
|
|
.ML__series_el {
|
|
|
font-weight: 100;
|
|
|
}
|
|
|
.ML__series_l {
|
|
|
font-weight: 200;
|
|
|
}
|
|
|
.ML__series_sl {
|
|
|
font-weight: 300;
|
|
|
}
|
|
|
.ML__series_sb {
|
|
|
font-weight: 500;
|
|
|
}
|
|
|
.ML__bold,
|
|
|
.ML__boldsymbol {
|
|
|
font-weight: 700;
|
|
|
}
|
|
|
.ML__series_eb {
|
|
|
font-weight: 800;
|
|
|
}
|
|
|
.ML__series_ub {
|
|
|
font-weight: 900;
|
|
|
}
|
|
|
.ML__series_uc {
|
|
|
font-stretch: ultra-condensed;
|
|
|
}
|
|
|
.ML__series_ec {
|
|
|
font-stretch: extra-condensed;
|
|
|
}
|
|
|
.ML__series_c {
|
|
|
font-stretch: condensed;
|
|
|
}
|
|
|
.ML__series_sc {
|
|
|
font-stretch: semi-condensed;
|
|
|
}
|
|
|
.ML__series_sx {
|
|
|
font-stretch: semi-expanded;
|
|
|
}
|
|
|
.ML__series_x {
|
|
|
font-stretch: expanded;
|
|
|
}
|
|
|
.ML__series_ex {
|
|
|
font-stretch: extra-expanded;
|
|
|
}
|
|
|
.ML__series_ux {
|
|
|
font-stretch: ultra-expanded;
|
|
|
}
|
|
|
.ML__it {
|
|
|
font-style: italic;
|
|
|
}
|
|
|
.ML__shape_ol {
|
|
|
-webkit-text-stroke: 1px black;
|
|
|
text-stroke: 1px black;
|
|
|
color: transparent;
|
|
|
}
|
|
|
.ML__shape_sc {
|
|
|
font-variant: small-caps;
|
|
|
}
|
|
|
.ML__shape_sl {
|
|
|
font-style: oblique;
|
|
|
}
|
|
|
/* First level emphasis */
|
|
|
.ML__emph {
|
|
|
color: #bc2612;
|
|
|
}
|
|
|
/* Second level emphasis */
|
|
|
.ML__emph .ML__emph {
|
|
|
color: #0c7f99;
|
|
|
}
|
|
|
.ML__highlight {
|
|
|
color: #007cb2;
|
|
|
background: #edd1b0;
|
|
|
}
|
|
|
.ML__center {
|
|
|
text-align: center;
|
|
|
}
|
|
|
.ML__label_padding {
|
|
|
padding: 0 0.5em;
|
|
|
}
|
|
|
.ML__frac-line {
|
|
|
width: 100%;
|
|
|
min-height: 1px;
|
|
|
}
|
|
|
.ML__frac-line:after {
|
|
|
content: '';
|
|
|
display: block;
|
|
|
margin-top: max(-1px, -0.04em);
|
|
|
min-height: max(1px, 0.04em);
|
|
|
/* Ensure the line is visible when printing even if "turn off background images" is on*/
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
/* There's a bug since Chrome 62 where
|
|
|
sub-pixel border lines don't draw at some zoom
|
|
|
levels (110%, 90%).
|
|
|
Setting the min-height used to work around it, but that workaround
|
|
|
broke in Chrome 84 or so.
|
|
|
Setting the background (and the min-height) seems to work for now.
|
|
|
*/
|
|
|
background: currentColor;
|
|
|
box-sizing: content-box;
|
|
|
/* Vuetify sets the box-sizing to inherit
|
|
|
causes the fraction line to not draw at all sizes (see #26) */
|
|
|
/* On some versions of Firefox on Windows, the line fails to
|
|
|
draw at some zoom levels, but setting the transform triggers
|
|
|
the hardware accelerated path, which works */
|
|
|
transform: translate(0, 0);
|
|
|
}
|
|
|
.ML__sqrt {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__sqrt-sign {
|
|
|
display: inline-block;
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__sqrt-line {
|
|
|
display: inline-block;
|
|
|
height: max(1px, 0.04em);
|
|
|
width: 100%;
|
|
|
}
|
|
|
.ML__sqrt-line:before {
|
|
|
content: '';
|
|
|
display: block;
|
|
|
margin-top: min(-1px, -0.04em);
|
|
|
min-height: max(1px, 0.04em);
|
|
|
/* Ensure the line is visible when printing even if "turn off background images" is on*/
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
background: currentColor;
|
|
|
/* On some versions of Firefox on Windows, the line fails to
|
|
|
draw at some zoom levels, but setting the transform triggers
|
|
|
the hardware accelerated path, which works */
|
|
|
transform: translate(0, 0);
|
|
|
}
|
|
|
.ML__sqrt-line:after {
|
|
|
border-bottom-width: 1px;
|
|
|
content: ' ';
|
|
|
display: block;
|
|
|
margin-top: -0.1em;
|
|
|
}
|
|
|
.ML__sqrt-index {
|
|
|
margin-left: 0.27777778em;
|
|
|
margin-right: -0.55555556em;
|
|
|
}
|
|
|
.ML__delim-size1 {
|
|
|
font-family: KaTeX_Size1;
|
|
|
}
|
|
|
.ML__delim-size2 {
|
|
|
font-family: KaTeX_Size2;
|
|
|
}
|
|
|
.ML__delim-size3 {
|
|
|
font-family: KaTeX_Size3;
|
|
|
}
|
|
|
.ML__delim-size4 {
|
|
|
font-family: KaTeX_Size4;
|
|
|
}
|
|
|
.ML__delim-mult .delim-size1 > span {
|
|
|
font-family: KaTeX_Size1;
|
|
|
}
|
|
|
.ML__delim-mult .delim-size4 > span {
|
|
|
font-family: KaTeX_Size4;
|
|
|
}
|
|
|
.ML__accent-body > span {
|
|
|
font-family: KaTeX_Main;
|
|
|
width: 0;
|
|
|
}
|
|
|
.ML__accent-vec {
|
|
|
position: relative;
|
|
|
left: 0.24em;
|
|
|
}
|
|
|
/** The markup for a LaTeX formula, either in an editable mathfield or
|
|
|
in a static display.
|
|
|
*/
|
|
|
.ML__latex {
|
|
|
display: inline-block;
|
|
|
direction: ltr;
|
|
|
text-align: left;
|
|
|
text-indent: 0;
|
|
|
text-rendering: auto;
|
|
|
font-family: KaTeX_Main, 'Times New Roman', serif;
|
|
|
font-style: normal;
|
|
|
font-size-adjust: none;
|
|
|
font-stretch: normal;
|
|
|
font-variant-caps: normal;
|
|
|
letter-spacing: normal;
|
|
|
line-height: 1.2;
|
|
|
word-wrap: normal;
|
|
|
word-spacing: normal;
|
|
|
white-space: nowrap;
|
|
|
text-shadow: none;
|
|
|
-webkit-user-select: none;
|
|
|
user-select: none;
|
|
|
width: min-content;
|
|
|
}
|
|
|
.ML__latex .style-wrap {
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .mfrac {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .left-right {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .vlist-t {
|
|
|
display: inline-table;
|
|
|
table-layout: fixed;
|
|
|
border-collapse: collapse;
|
|
|
}
|
|
|
.ML__latex .vlist-r {
|
|
|
display: table-row;
|
|
|
}
|
|
|
.ML__latex .vlist {
|
|
|
display: table-cell;
|
|
|
vertical-align: bottom;
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .vlist > span {
|
|
|
display: block;
|
|
|
height: 0;
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .vlist > span > span {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .vlist > span > .pstrut {
|
|
|
overflow: hidden;
|
|
|
width: 0;
|
|
|
}
|
|
|
.ML__latex .vlist-t2 {
|
|
|
margin-right: -2px;
|
|
|
}
|
|
|
.ML__latex .vlist-s {
|
|
|
display: table-cell;
|
|
|
vertical-align: bottom;
|
|
|
font-size: 1px;
|
|
|
width: 2px;
|
|
|
min-width: 2px;
|
|
|
}
|
|
|
.ML__latex .msubsup {
|
|
|
text-align: left;
|
|
|
}
|
|
|
.ML__latex .negativethinspace {
|
|
|
display: inline-block;
|
|
|
margin-left: -0.16667em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .thinspace {
|
|
|
display: inline-block;
|
|
|
width: 0.16667em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .mediumspace {
|
|
|
display: inline-block;
|
|
|
width: 0.22222em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .thickspace {
|
|
|
display: inline-block;
|
|
|
width: 0.27778em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .enspace {
|
|
|
display: inline-block;
|
|
|
width: 0.5em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .quad {
|
|
|
display: inline-block;
|
|
|
width: 1em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .qquad {
|
|
|
display: inline-block;
|
|
|
width: 2em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .llap,
|
|
|
.ML__latex .rlap {
|
|
|
width: 0;
|
|
|
position: relative;
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .llap > .inner,
|
|
|
.ML__latex .rlap > .inner {
|
|
|
position: absolute;
|
|
|
}
|
|
|
.ML__latex .llap > .fix,
|
|
|
.ML__latex .rlap > .fix {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .llap > .inner {
|
|
|
right: 0;
|
|
|
}
|
|
|
.ML__latex .rlap > .inner {
|
|
|
left: 0;
|
|
|
}
|
|
|
.ML__latex .rule {
|
|
|
display: inline-block;
|
|
|
border: solid 0;
|
|
|
position: relative;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
.ML__latex .overline .overline-line,
|
|
|
.ML__latex .underline .underline-line {
|
|
|
width: 100%;
|
|
|
}
|
|
|
.ML__latex .overline .overline-line:before,
|
|
|
.ML__latex .underline .underline-line:before {
|
|
|
content: '';
|
|
|
border-bottom-style: solid;
|
|
|
border-bottom-width: max(1px, 0.04em);
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
display: block;
|
|
|
}
|
|
|
.ML__latex .overline .overline-line:after,
|
|
|
.ML__latex .underline .underline-line:after {
|
|
|
border-bottom-style: solid;
|
|
|
border-bottom-width: max(1px, 0.04em);
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
content: '';
|
|
|
display: block;
|
|
|
margin-top: -1px;
|
|
|
}
|
|
|
.ML__latex .stretchy {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
|
left: 0;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .stretchy:before,
|
|
|
.ML__latex .stretchy:after {
|
|
|
content: '';
|
|
|
}
|
|
|
.ML__latex .stretchy svg {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
|
height: inherit;
|
|
|
fill: currentColor;
|
|
|
stroke: currentColor;
|
|
|
fill-rule: nonzero;
|
|
|
fill-opacity: 1;
|
|
|
stroke-width: 1;
|
|
|
stroke-linecap: butt;
|
|
|
stroke-linejoin: miter;
|
|
|
stroke-miterlimit: 4;
|
|
|
stroke-dasharray: none;
|
|
|
stroke-dashoffset: 0;
|
|
|
stroke-opacity: 1;
|
|
|
}
|
|
|
.ML__latex .slice-1-of-2 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
left: 0;
|
|
|
width: 50.2%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-2-of-2 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
right: 0;
|
|
|
width: 50.2%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-1-of-3 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
left: 0;
|
|
|
width: 25.1%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-2-of-3 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
left: 25%;
|
|
|
width: 50%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-3-of-3 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
right: 0;
|
|
|
width: 25.1%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-1-of-1 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
|
left: 0;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .nulldelimiter {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .op-group {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .op-symbol {
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .op-symbol.small-op {
|
|
|
font-family: KaTeX_Size1;
|
|
|
}
|
|
|
.ML__latex .op-symbol.large-op {
|
|
|
font-family: KaTeX_Size2;
|
|
|
}
|
|
|
.ML__latex .mtable .vertical-separator {
|
|
|
display: inline-block;
|
|
|
min-width: 1px;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
.ML__latex .mtable .arraycolsep {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-m > .vlist-t {
|
|
|
text-align: center;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-c > .vlist-t {
|
|
|
text-align: center;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-l > .vlist-t {
|
|
|
text-align: left;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-r > .vlist-t {
|
|
|
text-align: right;
|
|
|
}
|
|
|
.ML__error {
|
|
|
display: inline-block;
|
|
|
background-image: radial-gradient(ellipse at center, hsl(341, 100%, 40%), rgba(0, 0, 0, 0) 70%);
|
|
|
background-color: hsla(341, 100%, 40%, 0.1);
|
|
|
background-repeat: repeat-x;
|
|
|
background-size: 3px 3px;
|
|
|
padding-bottom: 3px;
|
|
|
background-position: 0 100%;
|
|
|
}
|
|
|
.ML__error > .ML__error {
|
|
|
background: transparent;
|
|
|
padding: 0;
|
|
|
}
|
|
|
.ML__placeholder {
|
|
|
color: var(--_placeholder-color);
|
|
|
opacity: var(--_placeholder-opacity);
|
|
|
padding-left: 0.4ex;
|
|
|
padding-right: 0.4ex;
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
}
|
|
|
.ML__notation {
|
|
|
position: absolute;
|
|
|
box-sizing: border-box;
|
|
|
line-height: 0;
|
|
|
}
|
|
|
/* This class is used to implement the \`\\mathtip\` and \`\\texttip\` commands
|
|
|
For UI elements, see \`[data-ML__tooltip]\`
|
|
|
*/
|
|
|
.ML__tooltip-container {
|
|
|
position: relative;
|
|
|
transform: scale(0);
|
|
|
}
|
|
|
.ML__tooltip-container .ML__tooltip-content {
|
|
|
position: fixed;
|
|
|
display: inline-table;
|
|
|
visibility: hidden;
|
|
|
z-index: 2;
|
|
|
width: max-content;
|
|
|
max-width: 400px;
|
|
|
padding: 12px 12px;
|
|
|
border-radius: 8px;
|
|
|
background: #616161;
|
|
|
--_selection-color: #fff;
|
|
|
color: #fff;
|
|
|
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
|
|
|
opacity: 0;
|
|
|
transition: opacity 0.15s cubic-bezier(0.4, 0, 1, 1);
|
|
|
}
|
|
|
.ML__tooltip-container .ML__tooltip-content .ML__text {
|
|
|
white-space: normal;
|
|
|
}
|
|
|
.ML__tooltip-container .ML__tooltip-content .ML__base {
|
|
|
display: contents;
|
|
|
}
|
|
|
.ML__tooltip-container:hover .ML__tooltip-content {
|
|
|
visibility: visible;
|
|
|
opacity: 1;
|
|
|
font-size: 0.75em;
|
|
|
transform: scale(1) translate(0, 3em);
|
|
|
}
|
|
|
`,Cf=`#mathlive-environment-popover.is-visible {
|
|
|
visibility: visible;
|
|
|
}
|
|
|
#mathlive-environment-popover {
|
|
|
--_environment-panel-height: var(--environment-panel-height, 70px);
|
|
|
--_accent-color: var(--accent-color, #aaa);
|
|
|
--_background: var(--environment-panel-background, #fff);
|
|
|
--_button-background: var(--environment-panel-button-background, white);
|
|
|
--_button-background-hover: var(--environment-panel-button-background-hover, #f5f5f7);
|
|
|
--_button-background-active: var(--environment-panel-button-background-active, #f5f5f7);
|
|
|
--_button-text: var(--environment-panel-button-text, #e3e4e8);
|
|
|
position: absolute;
|
|
|
width: calc(var(--_environment-panel-height) * 2);
|
|
|
height: var(--_environment-panel-height);
|
|
|
border-radius: 4px;
|
|
|
border: 1.5px solid var(--_accent-color);
|
|
|
background-color: var(--_background);
|
|
|
box-shadow: 0 0 30px 0 var(--environment-shadow, rgba(0, 0, 0, 0.4));
|
|
|
pointer-events: all;
|
|
|
visibility: hidden;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons {
|
|
|
height: calc(var(--_environment-panel-height) * 5/4);
|
|
|
width: calc(var(--_environment-panel-height) * 5/4);
|
|
|
margin-left: calc(0px - var(--_environment-panel-height) * 0.16);
|
|
|
margin-top: calc(0px - var(--_environment-panel-height) * 0.19);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons .font {
|
|
|
fill: white;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons circle {
|
|
|
fill: #7f7f7f;
|
|
|
transition: fill 300ms;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons .MLEP__array-insert-background {
|
|
|
fill-opacity: 1;
|
|
|
fill: var(--_background);
|
|
|
stroke: var(--_accent-color);
|
|
|
stroke-width: 3px;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons line {
|
|
|
stroke: var(--_accent-color);
|
|
|
stroke-opacity: 0;
|
|
|
stroke-width: 40;
|
|
|
pointer-events: none;
|
|
|
transition: stroke-opacity 300ms;
|
|
|
stroke-linecap: round;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons g[data-command]:hover circle {
|
|
|
fill: var(--_accent-color);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons g[data-command]:hover line {
|
|
|
stroke-opacity: 1;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls {
|
|
|
height: 100%;
|
|
|
width: 50%;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options {
|
|
|
width: var(--_environment-panel-height);
|
|
|
height: var(--_environment-panel-height);
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
|
flex-direction: row;
|
|
|
justify-content: space-around;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg {
|
|
|
pointer-events: all;
|
|
|
margin-top: 2px;
|
|
|
width: calc(var(--_environment-panel-height) / 3 * 28 / 24);
|
|
|
height: calc(var(--_environment-panel-height) / 3 - 2px);
|
|
|
border-radius: calc(var(--_environment-panel-height) / 25);
|
|
|
background-color: var(--_button-background);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg:hover {
|
|
|
background-color: var(--_button-background-hover);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg path,
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg line {
|
|
|
stroke: var(--_button-text);
|
|
|
stroke-width: 2;
|
|
|
stroke-linecap: round;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg rect,
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg path {
|
|
|
fill-opacity: 0;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active {
|
|
|
pointer-events: none;
|
|
|
background-color: var(--_button-background-active);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active path,
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active line {
|
|
|
stroke: var(--_accent-color);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active circle {
|
|
|
fill: var(--_accent-color);
|
|
|
}
|
|
|
`,ch=`/* 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;
|
|
|
}
|
|
|
`,du=`/* 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);*/
|
|
|
}
|
|
|
`,uh=`.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));
|
|
|
}
|
|
|
`,sd=`: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;
|
|
|
}
|
|
|
`,go;function Zc(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=ho;break;case"mathfield":y=Sf;break;case"environment-popover":y=Cf;break;case"suggestion-popover":y=ch;break;case"keystroke-caption":y=du;break;case"virtual-keyboard":y=uh;break;case"ui":y=sd;break;case"menu":y=dh;break;default:debugger}return y}function fu(a){return go||(go={}),go[a]||(go[a]=new CSSStyleSheet,go[a].replaceSync(Zc(a))),go[a]}var fc;function Al(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(Zc(a))),window.document.head.appendChild(b);return}if(fc||(fc={}),((y=fc[a])!=null?y:0)!==0)fc[a]+=1;else{const b=fu(a);document.adoptedStyleSheets=[...document.adoptedStyleSheets,b],fc[a]=1}}function x(a){if("adoptedStyleSheets"in document&&fc!=null&&fc[a]&&(fc[a]-=1,fc[a]<=0)){const y=go[a];document.adoptedStyleSheets=document.adoptedStyleSheets.filter(b=>b!==y)}}var z=class Ap extends Un{constructor(y){var b;super(Me(xe({},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 Ap(y)}toJson(){return Me(xe({},super.toJson()),{accentChar:this.accent,svgAccent:this.svgAccent})}render(y){var b;const E=new Ia({parent:y,mathstyle:"cramp"},this.style),ee=(b=Un.createBox(E,this.body))!=null?b:new kr("\u25A2",{style:this.style});let re=0;!this.hasEmptyBranch("body")&&this.body.length===2&&this.body[1].isCharacterBox()&&(re=ee.skew);let se=Math.min(ee.height,es),me;if(this.svgAccent)me=rl(this.svgAccent),se=E.metrics.bigOpSpacing1-se;else if(this.accent){const we=new kr(this.accent,{fontFamily:"Main-Regular"});we.italic=0;const Oe=this.accent===8407?" ML__accent-vec":"";me=new kr(new kr(we),{classes:"ML__accent-body"+Oe})}me=new io({shift:0,children:[{box:new kr(ee)},-se,{box:me,marginLeft:ee.left+2*re,classes:["ML__center"]}]});const ge=new kr(me,{type:"lift"});return this.caret&&(ge.caret=this.caret),this.bind(E,ge.wrap(E)),this.attachSupsub(E,{base:ge})}},ne={"(":")","{":"}","[":"]","|":"|","\\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"},te=Object.fromEntries(Object.entries(ne).map(([a,y])=>[y,a]));function ie(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 fe(a,y,b,E){var ee;const se=new kr(ie(a),{fontFamily:"Main-Regular",isSelected:E.isSelected,classes:"ML__small-delim "+((ee=E.classes)!=null?ee:"")}).wrap(y);return b&&se.setTop((1-y.scalingFactor)*qo),se}function Ce(a,y,b,E,ee){var re,se;const me=new Ia({parent:E,mathstyle:"textstyle"},ee==null?void 0:ee.style),ge=new kr(ie(a),{fontFamily:`Size${y}-Regular`,isSelected:ee.isSelected,classes:((re=ee.classes)!=null?re:"")+` ML__delim-size${y}`,type:(se=ee.type)!=null?se:"ignore"}).wrap(me);return b&&ge.setTop((1-me.scalingFactor)*qo),ge}function Ne(a,y,b,E,ee){var re;let se,me,ge,we;se=ge=we=ie(a),me=null;let Oe="Size1-Regular";a==="\\vert"||a==="\\lvert"||a==="\\rvert"||a==="\\mvert"||a==="\\mid"?ge=se=we=8739:a==="\\Vert"||a==="\\lVert"||a==="\\rVert"||a==="\\mVert"||a==="\\|"?ge=se=we=8741:a==="\\uparrow"?ge=we=9168:a==="\\Uparrow"?ge=we=8214:a==="\\downarrow"?se=ge=9168:a==="\\Downarrow"?se=ge=8214:a==="\\updownarrow"?(se=8593,ge=9168,we=8595):a==="\\Updownarrow"?(se=8657,ge=8214,we=8659):a==="["||a==="\\lbrack"?(se=9121,ge=9122,we=9123,Oe="Size4-Regular"):a==="]"||a==="\\rbrack"?(se=9124,ge=9125,we=9126,Oe="Size4-Regular"):a==="\\lfloor"||a==="\u230A"?(ge=se=9122,we=9123,Oe="Size4-Regular"):a==="\\lceil"||a==="\u2308"?(se=9121,ge=we=9122,Oe="Size4-Regular"):a==="\\rfloor"||a==="\u230B"?(ge=se=9125,we=9126,Oe="Size4-Regular"):a==="\\rceil"||a==="\u2309"?(se=9124,ge=we=9125,Oe="Size4-Regular"):a==="("||a==="\\lparen"?(se=9115,ge=9116,we=9117,Oe="Size4-Regular"):a===")"||a==="\\rparen"?(se=9118,ge=9119,we=9120,Oe="Size4-Regular"):a==="\\{"||a==="\\lbrace"?(se=9127,me=9128,we=9129,ge=9130,Oe="Size4-Regular"):a==="\\}"||a==="\\rbrace"?(se=9131,me=9132,we=9133,ge=9130,Oe="Size4-Regular"):a==="\\lgroup"||a==="\u27EE"?(se=9127,we=9129,ge=9130,Oe="Size4-Regular"):a==="\\rgroup"||a==="\u27EF"?(se=9131,we=9133,ge=9130,Oe="Size4-Regular"):a==="\\lmoustache"||a==="\u23B0"?(se=9127,we=9133,ge=9130,Oe="Size4-Regular"):a==="\\rmoustache"||a==="\u23B1"?(se=9131,we=9129,ge=9130,Oe="Size4-Regular"):a==="\\surd"?(se=57345,we=9143,ge=57344,Oe="Size4-Regular"):a==="\\ulcorner"?(se=9484,ge=we=32):a==="\\urcorner"?(se=9488,ge=we=32):a==="\\llcorner"?(we=9492,ge=se=32):a==="\\lrcorner"&&(se=9496,ge=se=32);const ot=ps(se,Oe),Et=ot.height+ot.depth,Zt=ps(ge,Oe),Yt=Zt.height+Zt.depth,Pn=ps(we,Oe),Ir=Pn.height+Pn.depth;let Ln=0,ir=1;if(me!==null){const Bs=ps(me,Oe);Ln=Bs.height+Bs.depth,ir=2}const zr=Et+Ir+Ln,or=Math.max(0,Math.ceil((y-zr)/(ir*Yt))),Ci=zr+or*ir*Yt;let Ni=qo;b&&(Ni=Ni*E.scalingFactor);const Li=Ci/2-Ni,Ta=.008,po=[];po.push({box:new kr(we,{fontFamily:Oe})}),po.push(-Ta);const Vr=new kr(ge,{fontFamily:Oe});if(me===null)for(let Bs=0;Bs<or;Bs++)po.push({box:Vr});else{for(let Bs=0;Bs<or;Bs++)po.push({box:Vr});po.push(-Ta),po.push({box:new kr(me,{fontFamily:Oe})}),po.push(-Ta);for(let Bs=0;Bs<or;Bs++)po.push({box:Vr})}po.push(-Ta),po.push({box:new kr(se,{fontFamily:Oe})});let Zl="";Oe==="Size1-Regular"?Zl=" delim-size1":Oe==="Size4-Regular"&&(Zl=" delim-size4");const Oc=new io({bottom:Li,children:po},{classes:Zl});return new kr(Oc,Me(xe({},ee!=null?ee:{}),{classes:((re=ee==null?void 0:ee.classes)!=null?re:"")+" ML__delim-mult"}))}var $e=new Set(["(",")","\\lparen","\\rparen","[","]","\\lbrack","\\rbrack","\\{","\\}","\\lbrace","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","\\surd","\u230A","\u230B","\u2308","\u2309"]),tt=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\mvert","\\mid","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache","\u27EE","\u27EF","\u23B0","\u23B1"]),Ht=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),qt=[0,1.2,1.8,2.4,3];function kn(a,y,b,E){return a===void 0||a==="."?bi(b,E.classes):(a==="<"||a==="\\lt"||a==="\u27E8"?a="\\langle":(a===">"||a==="\\gt"||a==="\u27E9")&&(a="\\rangle"),$e.has(a)||Ht.has(a)?Ce(a,y,!1,b,E):tt.has(a)?Ne(a,qt[y],!1,b,E):(console.assert(!1,"Unknown delimiter '"+a+"'"),null))}var Sn=[{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}],Qn=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"stack"}],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},{type:"stack"}];function jr(a){return a.type==="small"?"Main-Regular":a.type==="large"?"Size"+a.size+"-Regular":(console.assert(a.type==="stack"),"Size4-Regular")}function si(a,y,b,E){const ee={"-4":0,"-3":1,0:2}[E.mathstyle.sizeDelta];for(let re=ee;re<b.length&&b[re].type!=="stack";re++){const se=ps(a,jr(b[re]));if(se.defaultMetrics)return{type:"small",mathstyle:"scriptstyle"};let me=se.height+se.depth;if(b[re].type==="small"&&(b[re].mathstyle==="scriptscriptstyle"?me*=Math.max(ss[Math.max(1,E.size-2)],E.minFontScale):b[re].mathstyle==="scriptstyle"&&(me*=Math.max(ss[Math.max(1,E.size-1)],E.minFontScale))),me>y)return b[re]}return b[b.length-1]}function vi(a,y,b,E,ee,re){if(!y||y.length===0||y===".")return bi(ee);y==="<"||y==="\\lt"?y="\\langle":(y===">"||y==="\\gt")&&(y="\\rangle");let se;Ht.has(y)?se=Sn:$e.has(y)?se=dr:se=Qn;const me=si(ie(y),b,se,ee),ge=new Ia({parent:ee,mathstyle:me.mathstyle},re==null?void 0:re.style);return me.type==="small"?fe(y,ge,E,Me(xe({},re),{type:a})):me.type==="large"?Ce(y,me.size,E,ge,Me(xe({},re),{type:a})):(console.assert(me.type==="stack"),Ne(y,b,E,ge,Me(xe({},re),{type:a})))}function qr(a,y,b,E,ee,re){if(y===".")return bi(ee,re==null?void 0:re.classes);const se=qo*ee.scalingFactor,me=901,ge=5/xs,we=Math.max(b-se,E+se),Oe=Math.max(we/500*me,2*we-ge);return vi(a,y,Oe,!0,ee,re)}function bi(a,y){const b=new kr(null,{classes:" nulldelimiter "+(y!=null?y:""),type:"ignore"});return b.width=a.getRegisterAsEm("nulldelimiterspace"),b.wrap(new Ia({parent:a,mathstyle:"textstyle"}))}var Fi=class Ip extends Un{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 Ip(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{}"}},Zi=["matrix","matrix*","pmatrix","pmatrix*","bmatrix","bmatrix*","Bmatrix","Bmatrix*","vmatrix","vmatrix*","Vmatrix","Vmatrix*"],wa=["cases","dcases","rcases"],vo=["align","align*","aligned","gather","gathered","split"],Es=["array","subequations","eqnarray"];function zo(a){return Es.concat(vo).concat(wa).concat(Zi).includes(a)}function Qs(a){return Zi.includes(a)}function Ys(a){return wa.includes(a)}function cs(a){return vo.includes(a)}function Xs(a,y,b){let E=0;for(const we of b)"align"in we&&(E+=1);let ee=0;const re=[];for(const we of y){let Oe=0;for(ee=Math.max(ee,Math.min(we.length,E));Oe<we.length;){const ot=[],Et=Math.min(we.length,Oe+E);for(;Oe<Et;){const Zt=we[Oe];Zt.length===0?ot.push([new Un({type:"first",mode:a.mode})]):Zt[0].type!=="first"?ot.push([new Un({type:"first",mode:a.mode}),...Zt]):(console.assert(!Zt.slice(1).some(Yt=>Yt.type==="first")),ot.push(Zt)),Oe+=1}re.push(ot)}}re.length>0&&re[re.length-1].length===1&&re[re.length-1][0].length===1&&re[re.length-1][0][0].type==="first"&&re.pop();const se=[];for(const we of re){if(we.length!==ee)for(let Oe=we.length;Oe<ee;Oe++)we.push([new Un({type:"first",mode:a.mode}),new Fi]);se.push(we)}let me=0,ge=0;for(const we of se){ge=0;for(const Oe of we){for(const ot of Oe)ot.parent=a,ot.parentBranch=[me,ge];ge+=1}me+=1}return a.isDirty=!0,se}var sa=class Dp extends Un{constructor(y,b,E,ee={}){var re;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=Xs(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=(re=ee.minColumns)!=null?re:1}static fromJson(y){return new Dp(y.environmentName,y.array,y.rowGaps,y)}toJson(){const y=Me(xe({},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(Lu(y))return(b=this.array[y[0]][y[1]])!=null?b:void 0}createBranch(y){var b;return Lu(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(uc(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,re,se,me;const ge=new Ia({parent:y,mathstyle:this.mathstyleName},this.style),we=ge.getRegisterAsEm("arrayrulewidth"),Oe=ge.getRegisterAsEm("arraycolsep"),ot=ge.getRegisterAsEm("doublerulesep"),Et=(E=(b=this.arraystretch)!=null?b:ge.getRegisterAsNumber("arraystretch"))!=null?E:1;let Zt=typeof this.arraycolsep=="number"?this.arraycolsep:Oe;this.colSeparationType==="small"&&(Zt=.2778*(new Ia({parent:y,mathstyle:"scriptstyle"}).scalingFactor/y.scalingFactor));const Yt=Et*nl,Pn=.7*Yt,Ir=.3*Yt;let Ln=0;const ir=[];let zr=0;const or=this.array.length;for(let bo=0;bo<or;++bo){const is=this.array[bo];zr=Math.max(zr,is.length);const Os=new Ia({parent:ge,mathstyle:this.mathstyleName},this.style);let Pc=Pn/Os.scalingFactor,Nc=Ir/Os.scalingFactor;const _c={cells:[],height:0,depth:0,pos:0};for(const mc of is){const e0=(ee=Un.createBox(Os,mc,{type:"ignore"}))!=null?ee:new kr(null,{type:"ignore"});Nc=Math.max(Nc,e0.depth),Pc=Math.max(Pc,e0.height),_c.cells.push(e0)}let Rc=(re=Ml(this.rowGaps[bo]))!=null?re:0;Rc>0&&(Rc+=Ir,Nc=Math.max(Nc,Rc),Rc=0),bo<or-1&&!Qs(this.environmentName)&&this.environmentName!=="cases"&&this.environmentName!=="array"&&(Nc+=ge.getRegisterAsEm("jot")),_c.height=Pc,_c.depth=Nc,Ln+=Pc,_c.pos=Ln,Ln+=Nc+Rc,ir.push(_c)}const Ci=Ln/2+qo,Ni=[];for(let bo=0;bo<zr;bo++){const is=[];for(const Os of ir){const Pc=Os.cells[bo];Pc.depth=Os.depth,Pc.height=Os.height,is.push({box:Pc,shift:Os.pos-Ci})}is.length>0&&Ni.push(new io({individualShift:is}))}const Li=[];let Ta=!1,po=!1,Vr=0,Zl=!this.leftDelim;const{colFormat:Oc}=this;for(const bo of Oc){if("align"in bo&&Vr>=Ni.length)break;if("align"in bo)Ta?Li.push(Fo(2*Zt)):(po||Zl)&&Li.push(Fo(Zt)),Li.push(new kr(Ni[Vr],{classes:"col-align-"+bo.align})),Vr++,Ta=!0,po=!1,Zl=!1;else if("gap"in bo){if(typeof bo.gap=="number")Li.push(Fo(bo.gap));else{const is=Uo(y,ir,Ci,bo.gap);is&&Li.push(is)}Ta=!1,po=!1,Zl=!1}else if("separator"in bo){const is=new kr(null,{classes:"vertical-separator"});is.height=Ln,is.setStyle("height",Ln,"em"),is.setStyle("border-right",`${we}em ${bo.separator} currentColor`),is.setStyle("vertical-align",-(Ln-Ci),"em");let Os=0;po?Os=ot-we:Ta&&(Os=Zt-we),is.left=Os,Li.push(is),Ta=!1,po=!0,Zl=!1}}Ta&&!this.rightDelim&&Li.push(Fo(Zt));const ec=new kr(Li,{classes:"mtable"});if((!this.leftDelim||this.leftDelim===".")&&(!this.rightDelim||this.rightDelim==="."))return this.caret&&(ec.caret=this.caret),this.bind(y,ec);const Bs=ec.height,Wl=ec.depth,ml=this.bind(y,new kr([this.bind(y,qr("open",(se=this.leftDelim)!=null?se:".",Bs,Wl,ge,{isSelected:this.isSelected})),ec,this.bind(y,qr("close",(me=this.rightDelim)!=null?me:".",Bs,Wl,ge,{isSelected:this.isSelected}))],{type:"ord"}));return ml?(ml.setStyle("display","inline-block"),this.caret&&(ml.caret=this.caret),this.bind(y,this.attachSupsub(y,{base:ml}))):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 re=0;re<this.array[ee].length;re++)re>0&&E.push(" & "),E.push(Un.serialize(this.array[ee][re],y));if(ee<this.array.length-1){const re=this.rowGaps[ee];re!=null&&re.dimension?E.push(`\\\\[${re.dimension} ${(b=re.unit)!=null?b:"pt"}] `):E.push("\\\\ ")}}return this.environmentName==="lines"?E.push("}"):E.push(`\\end{${this.environmentName}}`),pa(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 re of this.array[y][b])re.parent=void 0,re.parentBranch=void 0;let ee=E;(E.length===0||E[0].type!=="first")&&(ee=[new Un({type:"first",mode:this.mode}),...E]),this.array[y][b]=ee;for(const re of ee)re.parent=this,re.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(jo(this));this.array.splice(y,0,b);for(let E=y;E<this.rowCount;E++)for(let ee=0;ee<this.colCount;ee++){const re=this.array[E][ee];if(re)for(const se of re)se.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(jo(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 re=this.array[E][ee];if(re)for(const se of re)se.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 re of ee)re.parent=void 0,re.parentBranch=void 0;for(let E=y;E<this.rowCount;E++)for(let ee=0;ee<this.colCount;ee++){const re=this.array[E][ee];if(re)for(const se of re)se.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,jo(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 re of ee)re.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,jo(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 re of ee)re.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 re of ee)re.parent=void 0,re.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 re of ee)re.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 jo(a){const y=new Un({type:"first",mode:a.mode});y.parent=a;const b=new Fi;return b.parent=a,[y,b]}function Fo(a){const y=new kr(null,{classes:"arraycolsep"});return y.width=a,y}function Uo(a,y,b,E){if(!E)return null;const ee=[];for(const re of y){const se=Un.createBox(a,E,{type:"ignore"});se&&(se.depth=re.depth,se.height=re.height,ee.push({box:se,shift:re.pos-b}))}return new io({individualShift:ee}).wrap(a)}var ns=class Lp extends Un{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 Lp(y)}toJson(){return Me(xe({},super.toJson()),{framecolor:this.framecolor,backgroundcolor:this.backgroundcolor,padding:this.padding,offset:this.offset,border:this.border})}render(y){var b,E,ee,re;const se=Un.createBox(y,this.body,{type:"lift"});if(!se)return null;const me=y.toEm((b=this.offset)!=null?b:{dimension:0});se.depth+=me,se.setStyle("display","inline-block"),se.setStyle("position","relative"),se.setStyle("height",Math.floor(100*se.height+se.depth)/100,"em"),se.setStyle("vertical-align",-Math.floor(100*se.height)/100,"em");const ge=new Ia({parent:y},this.style),we=ge.toEm((E=this.padding)!=null?E:{register:"fboxsep"}),Oe=new kr(null,{classes:"ML__box"});Oe.height=se.height+we,Oe.depth=se.depth+we,Oe.setStyle("box-sizing","border-box"),Oe.setStyle("position","absolute"),Oe.setStyle("top",-we+.3,"em"),Oe.setStyle("left",0),Oe.setStyle("height",Oe.height+Oe.depth,"em"),Oe.setStyle("width","100%"),this.backgroundcolor&&Oe.setStyle("background-color",(ee=ge.toColor(this.backgroundcolor))!=null?ee:"transparent"),this.framecolor&&Oe.setStyle("border",`${ge.getRegisterAsEm("fboxrule",2)}em solid ${(re=ge.toColor(this.framecolor))!=null?re:"black"}`),this.border&&Oe.setStyle("border",this.border);const ot=new kr([Oe,se],{type:"lift"});return ot.setStyle("display","inline-block"),ot.setStyle("position","relative"),ot.setStyle("line-height",0),ot.height=se.height+we+(me>0?me:0),ot.depth=se.depth+we+(me<0?-me:0),ot.setStyle("padding-left",we,"em"),ot.setStyle("padding-right",we,"em"),ot.setStyle("height",Math.floor(100*(se.height+se.depth+2*we+Math.abs(me)))/100,"em"),ot.setStyle("margin-top",-we,"em"),ot.setStyle("top",Math.floor(100*(se.depth-se.height+2*we-me))/100,"em"),ot.setStyle("vertical-align",Math.floor(100*(se.depth+2*we))/100,"em"),this.caret&&(ot.caret=this.caret),this.attachSupsub(y,{base:ot})}_serialize(y){return y.skipStyles?pa([this.bodyToLatex(y),this.supsubToLatex(y)]):super._serialize(y)}},Wc=class Tp extends Un{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 kr(this.value,{classes:"ML__composition",type:"composition"});return this.bind(y,b),this.caret&&(b.caret=this.caret),b}_serialize(y){return""}},al=class Bp extends Un{constructor(y){super({type:"error",value:y,command:y,mode:"math"}),this.verbatimLatex=y}static fromJson(y){return new Bp(y.command)}toJson(){return super.toJson()}render(y){const b=this.createBox(y,{classes:"ML__error"});return this.caret&&(b.caret=this.caret),b}},Ds=class Op extends Un{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 Op(y.body,y.mode,y.style)}render(y){const b=Un.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=dt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):`{${this.bodyToLatex(y)}}`}},Ja=class Pp extends Un{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 Pp((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"?pa(["\\left",(b=this.leftDelim)!=null?b:".",this.bodyToLatex(y),"\\right",ee]):this.variant==="mleft...mright"?pa(["\\mleft",(E=this.leftDelim)!=null?E:".",this.bodyToLatex(y),"\\mright",ee]):pa([!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=ne[E])!=null?b:E}render(y){var b,E;const ee=new Ia({parent:y},this.style);console.assert(this.body!==void 0);const re=new Ia({parent:y,mathstyle:"textstyle"},this.style),se=(b=Un.createBox(ee,this.body,{type:"inner"}))!=null?b:new kr(null,{type:"inner"}),me=se.height/re.scalingFactor,ge=se.depth/re.scalingFactor,we=[];if(this.leftDelim&&we.push(this.bind(re,qr("open",this.leftDelim,me,ge,re,{isSelected:this.isSelected,classes:"ML__open"+(this.containsCaret?" ML__contains-caret":""),mode:this.mode,style:this.style}))),se&&(ms(se.children,this,ee,me,ge),we.push(se)),this.rightDelim){let Zt=this.containsCaret?" ML__contains-caret":"",Yt=this.rightDelim;Yt==="?"&&(ee.smartFence?(Yt=this.matchingRightDelim(),Zt+=" ML__smart-fence__close"):Yt="."),we.push(this.bind(re,qr("close",Yt,me,ge,re,{isSelected:this.isSelected,classes:Zt+" ML__close",mode:this.mode,style:this.style})))}let Oe=this.variant==="mleft...mright";const ot=this.leftSibling;ot&&(!Oe&&ot.isFunction&&(Oe=!0),!Oe&&ot.type==="subsup"&&((E=ot.leftSibling)!=null&&E.isFunction)&&(Oe=!0));const Et=new kr(we,{type:Oe?"close":"inner",classes:"left-right"});return Et.setStyle("margin-top",`${-se.depth}em`),Et.setStyle("height",`${se.height+se.depth}em`),this.caret&&(Et.caret=this.caret),this.bind(ee,Et.wrap(ee))}};function ms(a,y,b,E,ee){if(a)for(let re=0;re<a.length;re++){const se=a[re];se.type==="middle"?(a[re]=y.bind(b,qr("inner",se.value,E,ee,b,{isSelected:y.isSelected})),a[re].caret=se.caret,a[re].isSelected=se.isSelected,a[re].cssId=se.cssId,a[re].htmlData=se.htmlData,a[re].htmlStyle=se.htmlStyle,a[re].attributes=se.attributes,a[re].cssProperties=se.cssProperties):se.children&&ms(se.children,y,b,E,ee)}}var ld=class Np extends Un{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 Np(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=Un.createBox(y,this.body);return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}},hc=class _p extends Un{constructor(){super({type:"macro-argument"})}static fromJson(y){return new _p}toJson(){return super.toJson()}_serialize(y){return""}render(y){return null}},kc=class Rp extends Un{constructor(y,b,E=!1,ee,re){var se;super({type:"prompt",mode:(se=re==null?void 0:re.mode)!=null?se:"math",style:re==null?void 0:re.style,command:"\\placeholder"}),this.body=ee,this.correctness=b,this.placeholderId=y,this.locked=E,this.captureSelection=this.locked}static fromJson(y){return new Rp(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 Ia({parent:y}),E=b.getRegisterAsEm("fboxsep"),ee=E,re=E,se=Un.createBox(y,this.body);if(!se)return null;se.height||(se.height=b.metrics.xHeight),se.setStyle("vertical-align",-se.height,"em"),this.correctness==="correct"?se.setStyle("color","var(--correct-color, var(--ML__correct-color))"):this.correctness==="incorrect"&&se.setStyle("color","var(--incorrect-color, var(--ML__incorrect-color))");const me=new kr(se,{type:"ord"});me.setStyle("display","inline-block"),me.setStyle("height",se.height+se.depth,"em"),me.setStyle("vertical-align",-re,"em");let ge="ML__prompt ";this.locked?ge+=" ML__lockedPromptBox ":ge+=" ML__editablePromptBox ",this.correctness==="correct"?ge+=" ML__correctPromptBox ":this.correctness==="incorrect"&&(ge+=" ML__incorrectPromptBox "),this.containsCaret&&(ge+=" ML__focusedPromptBox ");const we=new kr(null,{classes:ge,attributes:{part:"prompt"}});we.height=me.height+re,we.depth=me.depth+re,we.width=me.width+2*ee,we.setStyle("box-sizing","border-box"),we.setStyle("position","absolute"),we.setStyle("height",me.height+me.depth+2*re,"em"),ee===0&&we.setStyle("width","100%"),ee!==0&&(we.setStyle("width",`calc(100% + ${2*ee}em)`),we.setStyle("top",E,"em"),we.setStyle("left",-ee,"em")),(!this.body||this.body.length===1)&&(we.width=3*ee,we.setStyle("width",`calc(100% + ${3*ee}em)`),we.setStyle("left",-1.5*ee,"em"));let Oe="";this.correctness==="incorrect"&&(Oe+='<line x1="3%" y1="97%" x2="97%" y2="3%" stroke-width="0.5" stroke="var(--incorrect-color, var(--ML__incorrect-color))" stroke-linecap="round" />'),Oe&&(we.svgOverlay=Oe);const ot=new kr([we,me],{classes:"ML__prompt-atom"});return ot.setStyle("position","relative"),ot.setStyle("display","inline-block"),ot.setStyle("line-height",0),ot.height=me.height+re+.2,ot.depth=me.depth+re,ot.left=ee,ot.right=ee,ot.setStyle("height",me.height+re,"em"),ot.setStyle("top",me.depth-me.height,"em"),ot.setStyle("vertical-align",me.depth+re,"em"),ot.setStyle("margin-left",.5,"em"),ot.setStyle("margin-right",.5,"em"),this.caret&&(ot.caret=this.caret),this.bind(b,this.attachSupsub(y,{base:ot}))}_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]"),fo(ee,E)}},Xl=class zp extends Un{constructor(y){super({type:"subsup",style:y==null?void 0:y.style}),this.subsupPlacement="auto"}static fromJson(y){const b=new zp(y);for(const E of cu)y[E]&&b.setChildren(y[E],E);return b}render(y){var b;const E=new Ia({parent:y,isPhantom:!0}),ee=this.leftSibling,re=(b=ee.render(E))!=null?b:new kr(null),se=new kr(null);return se.height=re.height,se.depth=re.depth,this.attachSupsub(y,{base:se,isCharacterBox:ee.isCharacterBox(),type:"ignore"})}_serialize(y){return this.supsubToLatex(y)}};function us(a){return a?!/^(<$$>|<$>|<space>|<{>|<}>|#[0-9\?]|\\.+)$/.test(a):!1}var jc=class{constructor(a,y,b){this.errors=[],this.index=0,this.endCount=0;var E,ee,re,se;b!=null||(b={}),this.tokens=a,this.context=y instanceof Ia&&!(b!=null&&b.parseMode)&&!b.mathstyle?y:new Ia({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:(re=b.parseMode)!=null?re:"math",mathstyle:(se=b.mathstyle)!=null?se:"displaystyle",tabular:!1}}beginContext(a){var y,b,E;const ee=this.parsingContext,re={parent:ee,mathlist:[],style:xe({},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=re}endContext(){this.parsingContext=this.parsingContext.parent}onError(a){this.errors.push(xe({before:hl(this.tokens.slice(this.index,this.index+10)),after:hl(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 xe({},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 Xl({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=dt(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?Ls(y,{parseMode:this.parseMode,mathstyle:"textstyle"}):[new Fi({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 re=this.get();us(re)?(E+=re,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(us(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 re=10,se=/\d/;if(this.match("'"))re=8,se=/[0-7]/,a=!0;else if(this.match('"'))re=16,se=/[\dA-F]/,a=!0;else if(this.match("x"))re=16,se=/[\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 me="";for(;this.hasPattern(se);)me+=this.get();if(!a&&(this.match(".")||this.match(",")))for(me+=".";this.hasPattern(se);)me+=this.get();const ge=a?Number.parseInt(me,re):Number.parseFloat(me);return Number.isNaN(ge)?null:{number:E?-ge:ge,base:re===16?"hexadecimal":re===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 re=this.peek();if(re==="-")E=!E;else if(re!=="+")break;this.next(),this.skipWhitespace()}if(this.match("\\global")){this.skipWhitespace();const re=this.get();return re.startsWith("\\")?b?{register:re,global:!0,factor:(E?-1:1)*b.number}:E?{register:re,global:!0,factor:-1}:{register:re,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()||!us(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=Re(a);if(!y)return this.onError({code:"unknown-environment",arg:a}),null;const b=[];if(y.params)for(const me of y.params)if(me.isOptional)b.push(this.scanOptionalArgument(me.type));else{const ge=this.scanArgument(me.type);ge||this.onError({code:"missing-argument",arg:a}),b.push(ge)}this.beginContext({tabular:y.tabular});const E=[],ee=[];let re=[],se=!1;do if(this.end()&&(this.onError({code:"unbalanced-environment",arg:a}),se=!0),!se&&this.match("\\end")&&(this.scanArgument("string")!==a&&this.onError({code:"unbalanced-environment",arg:a}),se=!0),!se)if(this.matchColumnSeparator())re.push(this.mathlist),this.mathlist=[];else if(this.matchRowSeparator()){re.push(this.mathlist),this.mathlist=[];let me=null;this.skipWhitespace(),this.match("[")&&(me=this.scanDimen(),this.skipWhitespace(),this.match("]")),ee.push(me!=null?me:{dimension:0}),E.push(re),re=[]}else this.mathlist.push(...this.scan(me=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline"].includes(me)));while(!se);return re.push(this.mathlist),re.length>0&&E.push(re),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=se=>se==="<}>");let y="",b=null,E=[],ee=null;for(;!this.end()&&!a(this.peek());)this.hasInfixCommand()&&!y?(y=this.get(),b=dt(y,"math"),b&&(E=this.scanArguments(b)[1]),ee=this.mathlist,this.mathlist=[]):this.parseExpression();let re;return y?(console.assert(!!b),E.unshift(this.mathlist),ee&&E.unshift(ee),re=[b.createAtom({command:y,args:E,style:this.style,mode:this.parseMode})]):re=this.mathlist,this.endContext(),re}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 Ds(y,this.parseMode,this.style);return b.verbatimLatex=hl(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 Ja("",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(!us(a)&&!a.startsWith("\\"))return null;this.next();const y=dt(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 al("\\right");if(this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),new al("\\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 al(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 Ja(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 Un({type:"mord",command:"\\doubleprime",mode:"math",value:"\u2032\u2032"}),"superscript"):y.addChild(new Un({type:"mord",command:"\\prime",mode:"math",value:"\u2032"}),"superscript"):(this.match("^")||this.match("_"))&&y.addChildren(lt(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(re=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline","\\right"].includes(re))):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(us(a)){const b=Ws.createAtom(this.parseMode,a,xe({},this.style));return b?[b]:null}if(y=this.scanMacro(a),y)return[y];if(a.startsWith("\\")){const b=dt(a,this.parseMode);if(!b)return this.onError({code:"unknown-command",arg:a}),[new al(a)];if(b.definitionType==="symbol"){const E=xe({},this.style);b.variant&&(E.variant=b.variant),y=new Un({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 al(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 re=ee.match(/^\s*([\d.]+)\s*([a-z]{2})/);if(re)b.padding={dimension:parseInt(re[1]),unit:re[2]};else{const se=ee.match(/^\s*border\s*:\s*(.*)/);se?b.border=se[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 me=this.scanOptionalArgument("string"),ge=this.scanOptionalArgument("math"),we=Un.serialize(ge,{defaultMode:"math"});let Oe=[],ot;!ot&&we==="correct"?ot="correct":!ot&&we==="incorrect"?ot="incorrect":we!==""&&(Oe=ge);const Et=this.scanOptionalArgument("string")==="locked",Zt=this.scanArgument("auto");let Yt;return Zt&&Array.isArray(Zt)&&Zt.length>0?Yt=Zt:Zt&&typeof Zt=="object"&&"group"in Zt?Yt=Zt.group:Yt=Oe,me?[new kc(me,ot,Et,Yt!=null?Yt:Oe,{mode:this.parseMode,style:this.style})]:[new Fi({mode:this.parseMode,style:this.style})]}if(a==="\\renewcommand"||a==="\\newcommand"||a==="\\providecommand"||a==="\\def"){const me=this.index,ge=this.scanLiteralGroup()||this.next();if(!ge)return null;if(this.context.registers[ge.substring(1)]){const we=this.scanArgument("string");we!==null&&(this.context.registers[ge.substring(1)]=we);const Oe=pa([a,hl(this.tokens.slice(me,this.index))]);return[new Un({type:"text",value:"",verbatimLatex:Oe})]}}let ee=this.scanMacro(a);if(ee)return[ee];const re=dt(a,this.parseMode);if(!re)return this.parseMode==="text"?(/[a-zA-Z]/.test((y=this.peek())!=null?y:"")&&(a+=" "),[...a].map(me=>new Un({type:"text",value:me,mode:"text",style:this.style}))):(this.onError({code:"unknown-command",arg:a}),[new al(a)]);const se=this.index;if(re.definitionType==="symbol"){const me=xe({},this.style);re.variant&&(me.variant=re.variant),ee=new Un({type:re.type,command:a,style:me,value:String.fromCodePoint(re.codepoint),mode:this.parseMode})}else{if(re.ifMode&&!re.ifMode.includes(this.parseMode))return[];const me=this.parseMode;re.applyMode&&(this.parseMode=re.applyMode);let ge,we=[];if(re.parse?we=re.parse(this):[ge,we]=this.scanArguments(re),this.parseMode=me,re.applyMode&&!re.applyStyle&&!re.createAtom)return lt(we[0]);if(re.infix)return this.onError({code:"too-many-infix-commands",arg:a}),null;if(typeof re.createAtom=="function")ee=re.createAtom({command:a,args:we,style:this.style,mode:this.parseMode}),ge&&(ee.body=lt(this.scanArgument(ge)));else if(typeof re.applyStyle=="function"){const Oe=xe(xe({},this.style),re.applyStyle(a,we,this.context)),ot=this.parseMode;if(re.applyMode&&(this.parseMode=re.applyMode),ge){const Et=this.style;this.style=Oe;const Zt=this.scanArgument(ge);return this.style=Et,this.parseMode=ot,lt(Zt)}this.style=Oe}else ee=new Un({type:"mord",command:(b=re.command)!=null?b:a,style:xe({},this.style),value:a,mode:(E=re.applyMode)!=null?E:this.parseMode})}if(!ee)return null;if(ee instanceof Un&&ee.verbatimLatex===void 0&&!/^\\(llap|rlap|class|cssId|htmlData)$/.test(a)){const me=pa([a,hl(this.tokens.slice(se,this.index))]);me&&(ee.verbatimLatex=me)}if(ee.verbatimLatex===null&&(ee.verbatimLatex=void 0),ee.isFunction&&this.smartFence){const me=this.scanSmartFence();if(me)return[ee,me]}return[ee]}scanSymbolCommandOrLiteral(){const a=this.get();if(!a)return null;if(us(a)){const y=Ws.createAtom(this.parseMode,a,xe({},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 dc(" "," ",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,re={"?":(y=this.args)==null?void 0:y.call(this,"?")};for(let se=1;se<=ee;se++){let me=this.scanLiteralGroup();if(!me){const ge=this.index;this.scanExpression(),me=hl(this.tokens.slice(ge,this.index))}re[se]=me}return new ld(a,{expand:b.expand,captureSelection:b.captureSelection,args:E===this.index?null:hl(this.tokens.slice(E,this.index)),style:this.parsingContext.style,body:Ls(b.def,{context:this.context,parseMode:this.parseMode,args:se=>re[se],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 Ls(a,y){var b,E,ee,re;const se=(b=y==null?void 0:y.args)!=null?b:void 0,me=new jc(Cl(a,se),y==null?void 0:y.context,{args:se,mathstyle:(E=y==null?void 0:y.mathstyle)!=null?E:"displaystyle",parseMode:(ee=y==null?void 0:y.parseMode)!=null?ee:"math",style:(re=y==null?void 0:y.style)!=null?re:{}}),ge=[];for(;!me.end();)ge.push(...me.scan(()=>!1));return ge}function t0(a,y){var b;const E=new jc(Cl(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 Fp extends Un{constructor(y,b){super({type:"chem"},{command:y,mode:"math"});const E=Po.go(yr.go(b,y==="\\pu"?"pu":"ce"),!1);this.body=Ls(E),this._verbatimLatex=y+"{"+b+"}",this.arg=b,this.captureSelection=!0}static fromJson(y){return new Fp(y.command,y.arg)}set verbatimLatex(y){}get verbatimLatex(){return this._verbatimLatex}toJson(){return Me(xe({},super.toJson()),{arg:this.arg})}render(y){const b=Un.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}};mt(["ce","pu"],"{chemformula:balanced-string}",{createAtom:a=>{var y;return new n0(a.command,(y=a.args[0])!=null?y:"")}});var yr={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,re=10,se=[];;){ee!==a?(re=10,ee=a):re--;var me=yr.stateMachines[y],ge=me.transitions[b]||me.transitions["*"];e:for(var we=0;we<ge.length;we++){var Oe=yr.patterns.match_(ge[we].pattern,a);if(Oe){for(var ot=ge[we].task,Et=0;Et<ot.action_.length;Et++){var Zt;if(me.actions[ot.action_[Et].type_])Zt=me.actions[ot.action_[Et].type_](E,Oe.match_,ot.action_[Et].option);else if(yr.actions[ot.action_[Et].type_])Zt=yr.actions[ot.action_[Et].type_](E,Oe.match_,ot.action_[Et].option);else throw["MhchemBugA","mhchem bug A. Please report. ("+ot.action_[Et].type_+")"];yr.concatArray(se,Zt)}if(b=ot.nextState||b,a.length>0){if(ot.revisit||(a=Oe.remainder),!ot.toContinue)break e}else return se}}if(re<=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=yr.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 yr.patterns.findObserveGroups(a,"^{","","","}")},"^($...$)":function(a){return yr.patterns.findObserveGroups(a,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(a){return yr.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(a){return yr.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(a){return yr.patterns.findObserveGroups(a,"_{","","","}")},"_($...$)":function(a){return yr.patterns.findObserveGroups(a,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(a){return yr.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(a){return yr.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}":/^\{\}/,"{...}":function(a){return yr.patterns.findObserveGroups(a,"","{","}","")},"{(...)}":function(a){return yr.patterns.findObserveGroups(a,"{","","","}")},"$...$":function(a){return yr.patterns.findObserveGroups(a,"","$","$","")},"${(...)}$":function(a){return yr.patterns.findObserveGroups(a,"${","","","}$")},"$(...)$":function(a){return yr.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 yr.patterns.findObserveGroups(a,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(a){return yr.patterns.findObserveGroups(a,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(a){return yr.patterns.findObserveGroups(a,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(a){return yr.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 yr.patterns.findObserveGroups(a,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(a){return yr.patterns.findObserveGroups(a,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(a){return yr.patterns.findObserveGroups(a,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(a){return yr.patterns.findObserveGroups(a,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(a){return yr.patterns.findObserveGroups(a,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(a){return yr.patterns.findObserveGroups(a,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(a){return yr.patterns.findObserveGroups(a,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(a){return yr.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=yr.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,re,se,me,ge,we){var Oe=function(Ln,ir){if(typeof ir=="string")return Ln.indexOf(ir)!==0?null:ir;var zr=Ln.match(ir);return zr?zr[0]:null},ot=function(Ln,ir,zr){for(var or=0;ir<Ln.length;){var Ci=Ln.charAt(ir),Ni=Oe(Ln.substr(ir),zr);if(Ni!==null&&or===0)return{endMatchBegin:ir,endMatchEnd:ir+Ni.length};if(Ci==="{")or++;else if(Ci==="}"){if(or===0)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];or--}ir++}return or>0,null},Et=Oe(a,y);if(Et===null||(a=a.substr(Et.length),Et=Oe(a,b),Et===null))return null;var Zt=ot(a,Et.length,E||ee);if(Zt===null)return null;var Yt=a.substring(0,E?Zt.endMatchEnd:Zt.endMatchBegin);if(re||se){var Pn=this.findObserveGroups(a.substr(Zt.endMatchEnd),re,se,me,ge);if(Pn===null)return null;var Ir=[Yt,Pn.match_];return{match_:we?Ir.join(""):Ir,remainder:Pn.remainder}}else return{match_:Yt,remainder:a.substr(Zt.endMatchEnd)}},match_:function(a,y){var b=yr.patterns.patterns[a];if(b===void 0)throw["MhchemBugP","mhchem bug P. Please report. ("+a+")"];if(typeof b=="function")return yr.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 yr.go(y,"text")},"{text}":function(a,y){var b=["{"];return yr.concatArray(b,yr.go(y,"text")),b.push("}"),b},"tex-math":function(a,y){return yr.go(y,"tex-math")},"tex-math tight":function(a,y){return yr.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 yr.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 yr.go(y,"9,9")}},createTransitions:function(a){var y,b,E,ee,re={};for(y in a)for(b in a[y])for(E=b.split("|"),a[y][b].stateArray=E,ee=0;ee<E.length;ee++)re[E[ee]]=[];for(y in a)for(b in a[y])for(E=a[y][b].stateArray||[],ee=0;ee<E.length;ee++){var se=a[y][b];if(se.action_){se.action_=[].concat(se.action_);for(var me=0;me<se.action_.length;me++)typeof se.action_[me]=="string"&&(se.action_[me]={type_:se.action_[me]})}else se.action_=[];for(var ge=y.split("|"),we=0;we<ge.length;we++)if(E[ee]==="*")for(var Oe in re)re[Oe].push({pattern:ge[we],task:se});else re[E[ee]].push({pattern:ge[we],task:se})}return re},stateMachines:{}};yr.stateMachines={ce:{transitions:yr.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 yr.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 yr.concatArray(b,this.output(a)),yr.concatArray(b,yr.actions.bond(a,y,"-")),b}else a.d=y},"- after o/d":function(a,y,b){var E=yr.patterns.match_("orbital",a.o||""),ee=yr.patterns.match_("one lowercase greek letter $",a.o||""),re=yr.patterns.match_("one lowercase latin letter $",a.o||""),se=yr.patterns.match_("$one lowercase latin letter$ $",a.o||""),me=y==="-"&&(E&&E.remainder===""||ee||re||se);me&&!a.a&&!a.b&&!a.p&&!a.d&&!a.q&&!E&&re&&(a.o="$"+a.o+"$");var ge=[];return me?(yr.concatArray(ge,this.output(a)),ge.push({type_:"hyphen"})):(E=yr.patterns.match_("digits",a.d||""),b&&E&&E.remainder===""?(yr.concatArray(ge,yr.actions["d="](a,y)),yr.concatArray(ge,this.output(a))):(yr.concatArray(ge,this.output(a)),yr.concatArray(ge,yr.actions.bond(a,y,"-")))),ge},"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:yr.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"&&yr.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:yr.go(a.a,"a"),b:yr.go(a.b,"bd"),p:yr.go(a.p,"pq"),o:yr.go(a.o,"o"),q:yr.go(a.q,"pq"),d:yr.go(a.d,a.dType==="oxidation"?"oxidation":"bd"),dType:a.dType}));else{var ee;a.rdt==="M"?ee=yr.go(a.rd,"tex-math"):a.rdt==="T"?ee=[{type_:"text",p1:a.rd||""}]:ee=yr.go(a.rd);var re;a.rqt==="M"?re=yr.go(a.rq,"tex-math"):a.rqt==="T"?re=[{type_:"text",p1:a.rq||""}]:re=yr.go(a.rq),E={type_:"arrow",r:a.r,rd:ee,rq:re}}for(var se in a)se!=="parenthesisLevel"&&se!=="beginsWithBond"&&delete a[se];return E},"oxidation-output":function(a,y){var b=["{"];return yr.concatArray(b,yr.go(y,"oxidation")),b.push("}"),b},"frac-output":function(a,y){return{type_:"frac-ce",p1:yr.go(y[0]),p2:yr.go(y[1])}},"overset-output":function(a,y){return{type_:"overset",p1:yr.go(y[0]),p2:yr.go(y[1])}},"underset-output":function(a,y){return{type_:"underset",p1:yr.go(y[0]),p2:yr.go(y[1])}},"underbrace-output":function(a,y){return{type_:"underbrace",p1:yr.go(y[0]),p2:yr.go(y[1])}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:yr.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:yr.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:yr.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:yr.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:yr.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:yr.go(y,"o")}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:yr.go(y[1],"pq")}}}},bd:{transitions:yr.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:yr.go(y[1],"bd")}}}},oxidation:{transitions:yr.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:yr.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:yr.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:yr.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:yr.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]&&(yr.concatArray(b,yr.go(y[1],"pu-9,9")),y[2]&&(y[2].match(/[,.]/)?yr.concatArray(b,yr.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]),yr.concatArray(b,yr.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=yr.patterns.match_("{(...)}",a.d||"");b&&b.remainder===""&&(a.d=b.match_);var E=yr.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:yr.go(a.d,"pu"),q:yr.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_:"/"}),yr.concatArray(y,ee.q))}else y=yr.go(a.d,"pu-2");for(var re in a)delete a[re];return y}}},"pu-2":{transitions:yr.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=yr.patterns.match_("{(...)}",a.rm||"");b&&b.remainder===""?y=yr.go(b.match_,"pu"):y={type_:"rm",p1:a.rm}}for(var E in a)delete a[E];return y}}},"pu-9,9":{transitions:yr.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 Po={go:function(a,y){if(!a)return"";for(var b="",E=!1,ee=0;ee<a.length;ee++){var re=a[ee];typeof re=="string"?b+=re:(b+=Po._go2(re),re.type_==="1st-level escape"&&(E=!0))}return!y&&!E&&b&&(b="{"+b+"}"),b},_goInner:function(a){return a&&Po.go(a,!0)},_go2:function(a){var y;switch(a.type_){case"chemfive":y="";var b={a:Po._goInner(a.a),b:Po._goInner(a.b),p:Po._goInner(a.p),o:Po._goInner(a.o),q:Po._goInner(a.q),d:Po._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 "+Po._goInner(a.p1);break;case"state of aggregation subscript":y="\\mskip1mu "+Po._goInner(a.p1);break;case"bond":if(y=Po._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{"+Po._goInner(a.p1)+"}{"+Po._goInner(a.p2)+"}";y="\\mathchoice{\\textstyle"+ee+"}{"+ee+"}{"+ee+"}{"+ee+"}";break;case"tex-math":y=a.p1+" ";break;case"frac-ce":y="\\frac{"+Po._goInner(a.p1)+"}{"+Po._goInner(a.p2)+"}";break;case"overset":y="\\overset{"+Po._goInner(a.p1)+"}{"+Po._goInner(a.p2)+"}";break;case"underset":y="\\underset{"+Po._goInner(a.p1)+"}{"+Po._goInner(a.p2)+"}";break;case"underbrace":y="\\underbrace{"+Po._goInner(a.p1)+"}_{"+Po._goInner(a.p2)+"}";break;case"color":y="{\\color{"+a.color1+"}{"+Po._goInner(a.color2)+"}}";break;case"color0":y="\\color{"+a.color+"}";break;case"arrow":var re={rd:Po._goInner(a.rd),rq:Po._goInner(a.rq)},se=Po._getArrow(a.r);re.rd||re.rq?a.r==="<=>"||a.r==="<=>>"||a.r==="<<=>"||a.r==="<-->"?(se="\\long"+se,re.rd&&(se="\\overset{"+re.rd+"}{"+se+"}"),re.rq&&(a.r==="<-->"?se="\\underset{\\lower2mu{"+re.rq+"}}{"+se+"}":se="\\underset{\\lower6mu{"+re.rq+"}}{"+se+"}"),se=" {}\\mathrel{"+se+"}{} "):(re.rq&&(se+="[{"+re.rq+"}]"),se+="{"+re.rd+"}",se=" {}\\mathrel{\\x"+se+"}{} "):se=" {}\\mathrel{\\long"+se+"}{} ",y=se;break;case"operator":y=Po._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 Kp extends Un{constructor(y){super(Me(xe({},y),{type:"delim"})),this.value=y.delim,this.size=y.size}static fromJson(y){return new Kp(y)}toJson(){return Me(xe({},super.toJson()),{delim:this.value,size:this.size})}render(y){return new kr(this.value,{type:"middle"})}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=dt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):fo(this.command,this.value)}},i0=class $p extends Un{constructor(y){super(Me(xe({},y),{type:"sizeddelim",value:y.delim})),this.delimType=y.delimType,this.size=y.size}static fromJson(y){return new $p(y)}toJson(){return Me(xe({},super.toJson()),{delim:this.value,size:this.size,delimType:this.delimType})}render(y){let b=kn(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=dt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):fo(this.command,this.value)}},Kd=class Hp extends Un{constructor(y,b,E,ee){var re,se;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=(re=ee.shadow)!=null?re:"none",this.strokeWidth=(se=ee.strokeWidth)!=null?se:"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 Me(xe({},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=dt(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 re="",se="";this.backgroundcolor&&this.backgroundcolor!=="transparent"&&(re+=se+'mathbackground="'+this.backgroundcolor+'"',se=","),this.shadow&&this.shadow!=="auto"&&(re+=se+'shadow="'+this.shadow+'"',se=","),this.strokeWidth||this.strokeStyle!=="solid"?(re+=se+this.borderStyle,se=","):this.strokeColor&&this.strokeColor!=="currentColor"&&(re+=se+'mathcolor="'+this.strokeColor+'"',se=","),re&&(ee+=`[${re}]`)}return fo(ee,this.bodyToLatex(y))}render(y){const b=new Ia({parent:y},this.style),E=Un.createBox(b,this.body);if(!E)return null;const ee=im(this.borderStyle),re=b.toEm(!this.padding||this.padding==="auto"?{register:"fboxsep"}:{string:this.padding});E.setStyle("position","relative"),E.setStyle("display","inline-block"),E.setStyle("top",re,"em"),E.setStyle("height",E.height+E.depth,"em"),E.setStyle("width",E.width,"em");const se=new kr(null,{classes:"ML__notation"});let me=E.height+E.depth+2*re;const ge=E.width+2*re;let we="";if(this.notation.horizontalstrike&&(we+=this.line(3,50,97,50)),this.notation.verticalstrike&&(we+=this.line(50,3,50,97)),this.notation.updiagonalstrike&&(we+=this.line(3,97,97,3)),this.notation.downdiagonalstrike&&(we+=this.line(3,3,97,97)),this.notation.updiagonalarrow){we+=this.line(re.toString(),(re+E.depth+E.height).toString(),(re+E.width).toString(),re.toString());const Yt=.03*Math.sqrt(ge*ge+me*me)*1,Pn=E.width*Yt,Ir=(E.depth+E.height)*Yt,Ln=re+E.width;let ir=re;ir+Ir-.4*Pn<0&&(ir=.4*Pn-Ir),we+='<polygon points="',we+=`${Ln},${ir} ${Ln-Pn-.4*Ir},${ir+Ir-.4*Pn} `,we+=`${Ln-.7*Pn},${ir+.7*Ir} ${Ln-Pn+.4*Ir},${ir+Ir+.4*Pn} `,we+=`${Ln},${ir}`,we+=`" stroke='none' fill="${this.strokeColor}"`,we+="/>"}let Oe=0;if(this.notation.phasorangle){const Et=a0(b),Zt=(E.height+E.depth+2*Et+re).toString(),Yt=(E.height+E.depth)/2;we+=this.line(re.toString(),Zt,(re+Yt+E.width).toString(),Zt),we+=this.line(re.toString(),Zt,(re+Yt).toString(),(re-Et).toString()),me+=Et,Oe=Yt,E.left+=me/2-re}if(this.notation.longdiv){const Et=a0(b);me+=Et,we+=this.line(re.toString(),re.toString(),(re+E.width).toString(),re.toString());const Zt=.3;Oe=Zt+Et,E.left+=Zt+Et,E.setTop(re+Et),we+='<path d="',we+=`M ${re} ${re} a${Zt} ${(E.depth+E.height+2*Et)/2}, 0, 1, 1, 0 ${E.depth+E.height+2*Et} "`,we+=` stroke-width="${am(b)}" stroke="${this.strokeColor}" fill="none"`,we+="/>"}if(se.width=E.width+2*re+Oe,se.height=E.height+re,se.depth=E.depth+re,se.setStyle("box-sizing","border-box"),se.setStyle("left",`calc(-${ee} / 2 )`),se.setStyle("height",`${Math.floor(100*me)/100}em`),se.setStyle("top",`calc(${ee} / 2 )`),this.backgroundcolor&&se.setStyle("background-color",this.backgroundcolor),this.notation.box&&se.setStyle("border","1px solid red"),this.notation.actuarial&&(se.setStyle("border-top",this.borderStyle),se.setStyle("border-right",this.borderStyle)),this.notation.madruwb&&(se.setStyle("border-bottom",this.borderStyle),se.setStyle("border-right",this.borderStyle)),this.notation.roundedbox&&(se.setStyle("border-radius","8px"),se.setStyle("border",this.borderStyle)),this.notation.circle&&(se.setStyle("border-radius","50%"),se.setStyle("border",this.borderStyle)),this.notation.top&&se.setStyle("border-top",this.borderStyle),this.notation.left&&se.setStyle("border-left",this.borderStyle),this.notation.right&&se.setStyle("border-right",this.borderStyle),this.notation.bottom&&se.setStyle("border-bottom",this.borderStyle),we){let Et="";this.shadow==="auto"&&(Et+="filter: drop-shadow(0 0 .5px rgba(255, 255, 255, .7)) drop-shadow(1px 1px 2px #333)"),this.shadow!=="none"&&(Et+=`filter: drop-shadow(${this.shadow})`),Et+=` stroke-width="${this.strokeWidth}" stroke="${this.strokeColor}"`,Et+=' stroke-linecap="round"',this.svgStrokeStyle&&(Et+=` stroke-dasharray="${this.svgStrokeStyle}"`),se.svgStyle=Et,se.svgOverlay=we}const ot=new kr([se,E]);return ot.setStyle("position","relative"),ot.setStyle("vertical-align",re,"em"),ot.setStyle("height",`${Math.floor(100*(E.height+E.depth+2*re))/100}em`),ot.setStyle("display","inline-block"),ot.height=se.height,ot.depth=se.depth,ot.width=se.width-2*re,ot.left=re,ot.right=re,this.caret&&(ot.caret=this.caret),ot.wrap(b)}line(y,b,E,ee){return`<line x1="${wf(y)}" y1="${wf(b)}" x2="${wf(E)}" y2="${wf(ee)}" vector-effect="non-scaling-stroke"></line>`}};function wf(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?es:a.metrics.defaultRuleThickness;return a.metrics.defaultRuleThickness+a.scalingFactor*y/4}var cd=class Zp extends Un{constructor(y,b,E){var ee,re;super(Me(xe({},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=(re=E==null?void 0:E.continuousFraction)!=null?re:!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),xe(xe({},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 Ia({parent:y,mathstyle:this.mathstyleName},this.style),re=ee.metrics,se=new Ia({parent:ee,mathstyle:this.continuousFraction?"":"numerator"},this.style),me=this.numerPrefix?new kr([new kr(this.numerPrefix),Un.createBox(se,this.above)],{isTight:se.isTight,type:"ignore"}):(b=Un.createBox(se,this.above,{type:"ignore"}))!=null?b:new kr(null,{type:"ignore"}),ge=new Ia({parent:ee,mathstyle:this.continuousFraction?"":"denominator"},this.style),we=this.denomPrefix?new kr([new kr(this.denomPrefix),Un.createBox(ge,this.below,{type:"ignore"})]):(E=Un.createBox(ge,this.below,{type:"ignore"}))!=null?E:new kr(null,{type:"ignore"}),Oe=this.hasBarLine?re.defaultRuleThickness:0;let ot,Et=0,Zt;ee.isDisplayStyle?(ot=se.metrics.num1,Et=Oe>0?3*Oe:7*Oe,Zt=ge.metrics.denom1):(Oe>0?(ot=se.metrics.num2,Et=Oe):(ot=se.metrics.num3,Et=3*re.defaultRuleThickness),Zt=ge.metrics.denom2);const Yt=[];this.isSelected&&Yt.push("ML__selected");const Pn=me.depth,Ir=we.height;let Ln;if(Oe<=0){const Li=ot-Pn-(Ir-Zt);Li<Et&&(ot+=(Et-Li)/2,Zt+=(Et-Li)/2),Ln=new io({individualShift:[{box:me,shift:-ot,classes:[...Yt,"ML__center"]},{box:we,shift:Zt,classes:[...Yt,"ML__center"]}]}).wrap(ee)}else{const Li=new kr(null,{classes:"ML__frac-line",mode:this.mode,style:this.style});Li.softWidth=Math.max(me.width,we.width),Li.height=Oe/2,Li.depth=Oe/2;const Ta=qo+Oe/2;ot<Et+Pn+Ta&&(ot=Et+Pn+Ta);const po=qo-Oe/2;Zt<Et+Ir-po&&(Zt=Et+Ir-po),Ln=new io({individualShift:[{box:we,shift:Zt,classes:[...Yt,"ML__center"]},{box:Li,shift:-po,classes:Yt},{box:me,shift:-ot,classes:[...Yt,"ML__center"]}]}).wrap(ee)}const ir=ee.isDisplayStyle?re.delim1:re.delim2,zr=this.leftDelim?this.bind(y,vi("open",this.leftDelim,ir,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):bi(ee,"open");let or=null;this.continuousFraction?or=new kr(null,{type:"close"}):this.rightDelim?or=this.bind(y,vi("close",this.rightDelim,ir,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):or=bi(ee,"close");const Ci=new kr([zr,Ln,or],{isTight:ee.isTight,type:"inner",classes:"mfrac"}),Ni=this.bind(y,Ci);return this.caret&&(Ni.caret=this.caret),this.attachSupsub(y,{base:Ni})}},Rs=class Wp extends Un{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),xe({type:"latex",value:this.value},y)}get computedStyle(){return{}}render(y){const b=new kr(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}},$d=class jp extends Un{constructor(y){super({type:"latexgroup",mode:"latex"}),this.body=[...y].map(b=>new Rs(b)),this.skipBoundary=!1}static fromJson(y){return new jp("")}toJson(){return super.toJson()}render(y){const b=Un.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 Up extends Un{constructor(y,b){super(Me(xe({},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 Up(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 kr(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 re=(ee.height-ee.depth)/2-qo*y.scalingFactor,se=ee.italic;ee.setTop(re);let me=ee;if(this.superscript||this.subscript){const ge=(b=this.subsupPlacement)!=null?b:"auto";me=ge==="over-under"||ge==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:ee,baseShift:re,slant:se}):this.attachSupsub(y,{base:ee})}return new kr(this.bind(y,me),{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=dt(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)),pa(E)}},Ou=class Vp extends Un{constructor(y){const b=y.body;super(Me(xe({},y),{type:"overlap",body:typeof b=="string"?[new Un({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 Vp(y)}toJson(){const y={};return this.align&&(y.align=this.align),this.boxType&&(y.boxType=this.boxType),xe(xe({},super.toJson()),y)}render(y){const b=Un.createBox(y,this.body,{classes:"inner"});return b?(this.caret&&(b.caret=this.caret),this.bind(y,new kr([b,new kr(null,{classes:"fix"})],{classes:this.align==="right"?"rlap":"llap",type:this.boxType}))):null}},Jl=class Gp extends Un{constructor(y){var b,E,ee,re;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=(re=y.paddedLabels)!=null?re:!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?rl(this.svgBody):Un.createBox(y,this.body,{type:"ignore"});const E=new Ia({parent:y,mathstyle:"scriptstyle"},this.style);let ee=null;this.svgAbove?ee=rl(this.svgAbove):this.above&&(ee=Un.createBox(E,this.above,{type:"ignore"}));let re=null;this.svgBelow?re=rl(this.svgBelow):this.below&&(re=Un.createBox(E,this.below,{type:"ignore"})),this.paddedBody&&(b=new kr([bi(y,"open"),b,bi(y,"close")],{type:"ignore"}));let se=om(y,{base:b,above:ee,below:re,type:this.boxType==="bin"||this.boxType==="rel"?this.boxType:"ord",paddedAboveBelow:this.paddedLabels});return se?(this.subsupPlacement==="over-under"?se=this.attachLimits(y,{base:se,type:se.type}):se=this.attachSupsub(y,{base:se}),this.caret&&(se.caret=this.caret),this.bind(y,se)):null}};function om(a,y){if(!y.base)return null;if(!y.above&&!y.below){const me=new kr(y.base,{type:y.type});return me.setStyle("position","relative"),me}let b=0;y.above&&(b=a.metrics.bigOpSpacing5);let E=null;const ee=y.base,re=0,se=["ML__center"];if(y.paddedAboveBelow&&se.push("ML__label_padding"),y.below&&y.above){const me=a.metrics.bigOpSpacing5+y.below.height+y.below.depth+ee.depth+re;E=new io({bottom:me,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:se},{box:ee,classes:["ML__center"]},b,{box:y.above,classes:se},a.metrics.bigOpSpacing5]})}else y.below?E=new io({top:ee.height-re,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:se},{box:ee,classes:["ML__center"]}]}):y.above&&(E=new io({bottom:ee.depth+re,children:[{box:ee,classes:["ML__center"]},b,{box:y.above,classes:se},a.metrics.bigOpSpacing5]}));return new kr(E,{type:y.type})}var Hd=class Qp extends Un{constructor(y){var b,E,ee,re;super(Me(xe({},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=(re=y.smashWidth)!=null?re:!1}static fromJson(y){return new Qp(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),xe(xe({},super.toJson()),y)}render(y){const b=new Ia({parent:y,isPhantom:!0});if(!this.smashDepth&&!this.smashHeight&&!this.smashWidth)return console.assert(this.isInvisible),Un.createBox(b,this.body,{classes:"inner"});const E=Un.createBox(this.isInvisible?b:y,this.body);if(!E)return null;if(this.smashWidth){const ee=new kr(null,{classes:"fix"});return new kr([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)}},Zd=class Yp extends Un{constructor(y){var b;super(xe({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 Yp(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 kr(this.mode==="math"?null:" ");let E;if(this.width!==void 0)E=new kr(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 kr(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=dt(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}{${Oo(this.width)}}`:`${ee}${Oo(this.width)}`}},o0=class Xp extends Un{constructor(y){var b;super(Me(xe({},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 Xp(Me(xe({},y),{index:y.above}))}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=dt(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")?fo(`${E}[${this.aboveToLatex(y)}]`,ee):/^[0-9]$/.test(ee)?`${E}${ee}`:fo(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 Ia({parent:y,mathstyle:"cramp"},this.style),ee=(b=Un.createBox(E,this.body,{type:"inner"}))!=null?b:new kr(null),re=E.scalingFactor,se=E.metrics.defaultRuleThickness/re,me=y.isDisplayStyle?es:se,ge=new kr(null,{classes:"ML__sqrt-line",style:this.style});ge.height=se,ge.softWidth=ee.width;let we=re*(se+me/4);const ot=Math.max(re*2*me,ee.height+ee.depth)+we+se,Et=new Ia({parent:y},this.style),Zt=this.bind(Et,new kr(vi("inner","\\surd",ot,!1,Et,{isSelected:this.isSelected}),{isSelected:this.isSelected,classes:"ML__sqrt-sign",style:this.style}));if(!Zt)return null;const Yt=Zt.height+Zt.depth-se;Yt>ee.height+ee.depth+we&&(we=(we+Yt-(ee.height+ee.depth))/2),Zt.setTop(Zt.height-ee.height-we);const Pn=this.bind(y,new io({firstBaseline:[{box:new kr(ee)},we-2*se,{box:ge},se]})),Ir=Un.createBox(new Ia({parent:y,mathstyle:"scriptscriptstyle"}),this.above,{type:"ignore"});if(!Ir){const zr=new kr([Zt,Pn],{classes:this.containsCaret?"ML__contains-caret":"",type:"inner"});return zr.setStyle("display","inline-block"),zr.setStyle("height",zr.height+zr.depth,"em"),this.caret&&(zr.caret=this.caret),this.bind(y,zr)}const Ln=new io({shift:-.6*(Math.max(Zt.height,Pn.height)-Math.max(Zt.depth,Pn.depth)),children:[{box:Ir}]}),ir=new kr([new kr(Ln,{classes:"ML__sqrt-index",type:"ignore"}),Zt,Pn],{type:"inner",classes:this.containsCaret?"ML__contains-caret":""});return ir.height=Zt.height,ir.depth=Zt.depth,this.caret&&(ir.caret=this.caret),this.bind(y,ir)}},sm=class extends kr{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 Ef(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"){Ef(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}},cm={ord:{op:3},op:{ord:3,op:3},close:{op:3},inner:{op:3}};function um(a){jd(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 Wd(a,y){if(!a.children)return a;const b=a.children;um(b);const E=y.getRegisterAsEm("thinmuskip"),ee=y.getRegisterAsEm("medmuskip"),re=y.getRegisterAsEm("thickmuskip");return jd(b,(se,me)=>{var ge,we,Oe;if(!se)return;const ot=se.type,Et=me.isTight?(ge=cm[ot])!=null?ge:null:(we=lm[ot])!=null?we:null,Zt=(Oe=Et==null?void 0:Et[me.type])!=null?Oe:null;Zt===3&&Ef(me,E),Zt===4&&Ef(me,ee),Zt===5&&Ef(me,re)}),a}function jd(a,y,b=void 0){if(!a)return b;a=[...a];for(const E of a)E.type==="lift"?b=jd(E.children,y,b):E.type==="ignore"?jd(E.children,y):(y(b,E),jd(E.children,y),b=E);return b}var hh=class Jp extends Un{constructor(y){super({type:"tooltip",command:y.command,mode:y.mode,style:y.style,body:y.body,displayContainsHighlight:!0}),this.tooltip=new Un({type:"root",mode:y.content,body:y.tooltip,style:{}}),this.skipBoundary=!0,this.captureSelection=!1}static fromJson(y){return new Jp(Me(xe({},y),{tooltip:hu(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 Me(xe({},super.toJson()),{tooltip:b})}render(y){const b=Un.createBox(new Ia,this.body);if(!b)return null;const E=new Ia({parent:y,mathstyle:"displaystyle"},{fontSize:so}),ee=ou(Wd(new kr(this.tooltip.render(E),{classes:"ML__tooltip-content"}),E)),re=new kr([ee,b],{classes:"ML__tooltip-container"});return this.caret&&(re.caret=this.caret),this.bind(y,re)}},Pu=class qp extends Un{constructor(y,b){super(Me(xe({},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 kr(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 re=(b=this.subsupPlacement)!=null?b:"auto";ee=re==="over-under"||re==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:E}):this.attachSupsub(y,{base:E})}return new kr(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=dt(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)),pa(E)}};function hu(a){if(De(a))return a.map(E=>hu(E));if(typeof a=="string")return Un.fromJson(a);a=xe({},a);for(const E of cu)a[E]&&(a[E]=hu(a[E]));a.args&&(a.args=dm(a.args)),a.array&&(a.array=hu(a.array));const y=a.type;let b;y==="accent"&&(b=z.fromJson(a)),y==="array"&&(b=sa.fromJson(a)),y==="box"&&(b=ns.fromJson(a)),y==="chem"&&(b=n0.fromJson(a)),y==="composition"&&(b=Wc.fromJson(a)),y==="delim"&&(b=r0.fromJson(a)),y==="enclose"&&(b=Kd.fromJson(a)),y==="error"&&(b=al.fromJson(a)),y==="extensible-symbol"&&(b=fh.fromJson(a)),y==="genfrac"&&(b=cd.fromJson(a)),y==="group"&&(b=Ds.fromJson(a)),y==="latex"&&(b=Rs.fromJson(a)),y==="latexgroup"&&(b=$d.fromJson(a)),y==="leftright"&&(b=Ja.fromJson(a)),y==="macro"&&(b=ld.fromJson(a)),y==="macro-argument"&&(b=hc.fromJson(a)),y==="operator"&&(b=Pu.fromJson(a)),y==="overlap"&&(b=Ou.fromJson(a)),y==="overunder"&&(b=Jl.fromJson(a)),y==="placeholder"&&(b=Fi.fromJson(a)),y==="prompt"&&(b=kc.fromJson(a)),y==="phantom"&&(b=Hd.fromJson(a)),y==="sizeddelim"&&(b=i0.fromJson(a)),y==="spacing"&&(b=Zd.fromJson(a)),y==="subsup"&&(b=Xl.fromJson(a)),y==="surd"&&(b=o0.fromJson(a)),y==="text"&&(b=dc.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=Un.fromJson(a));for(const E of cu)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=>hu(b))}:typeof y=="object"&&"atoms"in y?y.atoms.map(b=>hu(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 Ws{constructor(){super("math")}createAtom(a,y,b){var E,ee,re,se;if(y===null)return new Un({type:"mord",mode:"math",command:a,value:a,style:b});const me=window.MathfieldElement.isFunction((E=y.command)!=null?E:a);if(y.definitionType==="symbol"){const we=new Un({type:(ee=y.type)!=null?ee:"mord",mode:"math",command:(re=y.command)!=null?re:a,value:String.fromCodePoint(y.codepoint),style:b});return me&&(we.isFunction=!0),a.startsWith("\\")&&(we.verbatimLatex=a),we}const ge=new Un({type:"mord",mode:"math",command:(se=y.command)!=null?se:a,value:a,style:b});return me&&(ge.isFunction=!0),a.startsWith("\\")&&(ge.verbatimLatex=a),ge}serialize(a,y){const b=gm(a,Me(xe({},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((me,ge)=>{var we;me.test(a.value)&&pm[(we=y.letterShapeStyle)!=null?we:"tex"][ge]==="it"&&(E="italic")}),E==="up"&&(E=void 0);const ee=E?b+"-"+E:b;console.assert(s0[ee]!==void 0);const[re,se]=s0[ee];return ph[b]&&!ph[b].test(a.value)?(a.value=Qt(a.value,b,E),null):(l0.test(a.value)&&(a.classes+=" lcGreek"),se&&(a.classes+=" "+se),re)}};function gm(a,y){const{parent:b}=a[0],E=c0(b);return Bo(a,"variant").map(ee=>{const re=c0(ee[0]);let se="";re&&re!==E&&(se={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"}[re],console.assert(se!==void 0));const me=pa(ee.map(ge=>ge._serialize(y)));return se?fo(se,me):me})}function c0(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 Bo(a,"fontShape").map(b=>{const E=vm(b,y),{fontShape:ee}=b[0].style;let re="";return ee==="it"&&(re="\\textit"),ee==="sl"&&(re="\\textsl"),ee==="sc"&&(re="\\textsc"),ee==="n"&&(re="\\textup"),!re&&ee?`{${fo("\\fontshape",ee)}${pa(E)}}`:re?fo(re,pa(E)):pa(E)})}function bm(a,y){return Bo(a,"fontSeries").map(b=>{const E=ym(b,y),{fontSeries:ee}=b[0].style;let re="";return ee==="b"&&(re="\\textbf"),ee==="l"&&(re="\\textlf"),ee==="m"&&(re="\\textmd"),ee&&!re?`{${fo("\\fontseries",ee)}${pa(E)}}`:re?fo(re,pa(E)):pa(E)})}function xm(a,y){return Bo(a,"fontSize").map(b=>{var E,ee;const re=bm(b,y),se=(ee=["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][(E=b[0].style.fontSize)!=null?E:""])!=null?ee:"";return se?`${se} ${pa(re)}`:pa(re)})}function Sm(a,y,b){return Bo(a,"fontFamily").map(E=>{var ee,re;const se=xm(E,y),me=(re={roman:"textrm",monospace:"texttt","sans-serif":"textsf"}[(ee=E[0].style.fontFamily)!=null?ee:""])!=null?re:"";return me?`\\${me}{${pa(se)}}`:E[0].style.fontFamily?`{\\fontfamily{${E[0].style.fontFamily}} ${pa(se)}}`:b?`\\text{${pa(se)}}`:pa(se)})}var u0={roman:"","sans-serif":"ML__sans",monospace:"ML__tt"},Cm=class extends Ws{constructor(){super("text")}createAtom(a,y,b){return y&&y.definitionType==="symbol"?new dc(a,String.fromCodePoint(y.codepoint),b!=null?b:{}):null}serialize(a,y){return Sm(a,Me(xe({},y),{defaultMode:"text"}),y.defaultMode!=="text")}getFont(a,y){var b,E,ee,re,se;const{fontFamily:me}=y;if(u0[me]?a.classes+=" "+u0[me]:me&&a.setStyle("font-family",me),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 ge=y.fontSeries.match(/(.?[lbm])?(.?[cx])?/);ge&&(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=ge[1])!=null?E:""])!=null?ee:"",a.classes+=" ",a.classes+=(se={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"}[(re=ge[2])!=null?re:""])!=null?se:"")}return"Main-Regular"}};new Cm;var wm=class extends Ws{constructor(){super("latex")}createAtom(a){return new Rs(a)}serialize(a,y){return a.filter(b=>b instanceof Rs&&!b.isSuggestion).map(b=>b.value)}getFont(){return null}};new wm;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:["<",">","",""]}},Am={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"]}},Im={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:["=","=","=","="]}},Dm={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:["<",">","|",""]}},Lm={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"]}},Bm={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:["<",">","",""]}},Om={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 ud(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 Pm={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]"},Ud=[],Vd;function gh(){switch(pt()){case"macos":case"ios":return"apple";case"windows":return"windows"}return"linux"}function $l(a){(!a.platform||a.platform===gh())&&Ud.push(a)}function Nm(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,re]of Object.entries(y.mapping)){if(re[0]===a)return E.key=`[${ee}]`,E;if(re[1]===a)return E.shift=!0,E.key=`[${ee}]`,E;if(re[2]===a)return E.alt=!0,E.key=`[${ee}]`,E;if(re[3]===a)return E.shift=!0,E.alt=!0,E.key=`[${ee}]`,E}return E.key=(b=Pm[a])!=null?b:"",E}function _m(a){if(a.code)return a;const y=Object.entries(Gd().mapping);let b=!1,E=!1,ee="";for(let re=0;re<4;re++){for(const[se,me]of y)if(me[re]===a.key){ee=se,re===3?(b=!0,E=!0):re===2?b=!0:re===1&&(E=!0);break}if(ee)break}return new KeyboardEvent(a.type,Me(xe({},a),{altKey:b,shiftKey:E,code:ee}))}function Rm(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 Ud)((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);Ud.sort((ee,re)=>re.score-ee.score)}function zm(a){Vd=Ud.find(y=>a.startsWith(y.locale))}function Gd(){return Vd!=null?Vd:Ud[0]}function Fm(){switch(gh()){case"apple":return mh;case"windows":return d0;case"linux":return f0}return mh}switch(gh()){case"apple":$l(mh),$l(Mm),$l(Tm),$l(Im);break;case"windows":$l(d0),$l(km),$l(Bm),$l(Dm);break;case"linux":$l(f0),$l(Am),$l(Om),$l(Lm);break}$l(Em);function vh(a){var y;const b=/macos|ios/.test(pt()),E=a.split("+");let ee="";for(const re of E)ee&&(ee+=b?"\u2009":'<span class="ML__shortcut-join">+</span>'),re.startsWith("[Key")?ee+=re.slice(4,5):re.startsWith("Key")?ee+=re.slice(3,4):re.startsWith("[Digit")?ee+=re.slice(6,7):re.startsWith("Digit")?ee+=re.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:"* 🔢",numpaddivide:"/ 🔢",numpadsubtract:"- 🔢",numpadadd:"+ 🔢",numpaddecimal:". 🔢",numpadcomma:", 🔢",help:"help",left:"\u21E0",up:"\u21E1",right:"\u21E2",down:"\u21E3","[arrowleft]":"\u21E0","[arrowup]":"\u21E1","[arrowright]":"\u21E2","[arrowdown]":"\u21E3"}[re.toLowerCase()])!=null?y:re.toUpperCase();return ee}function Mf(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 Nu(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 Km(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 $m=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 kf(a){return a.ctrlKey||a.metaKey||["Dead","Process"].includes(a.key)?!1:a.code===""?!0:$m.has(a.code)}function Af(){var a;let y=document.activeElement;for(;(a=y==null?void 0:y.shadowRoot)!=null&&a.activeElement;)y=y.shadowRoot.activeElement;return y}var Ac=class Qc{static get scrim(){return Qc._scrim||(Qc._scrim=new Qc),Qc._scrim}static open(y){Qc.scrim.open(y)}static close(){Qc.scrim.close()}static get state(){return Qc.scrim.state}static get element(){return Qc.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=Af();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 re=Number.parseFloat(getComputedStyle(document.body).marginRight);document.body.style.marginRight=`${re+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:re}=this;re.removeEventListener("click",this),document.removeEventListener("touchmove",this,!1),document.removeEventListener("scroll",this,!1),re.remove(),document.body.style.overflow=(y=this.savedOverflow)!=null?y:"",document.body.style.marginRight=(b=this.savedMarginRight)!=null?b:"",Af()!==this.savedActiveElement&&((ee=(E=this.savedActiveElement)==null?void 0:E.focus)==null||ee.call(E)),re.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,re=!1,se=!1,me=!1;const ge=new AbortController,we=ge.signal;return a.addEventListener("keydown",Oe=>{if(re||Oe.key==="Process"||Oe.code==="CapsLock"||/(Control|Meta|Alt|Shift)(Left|Right)/.test(Oe.code)){E=null;return}E=Oe,ee=null,b.onKeystroke(Oe)?a.textContent="":E=null},{capture:!0,signal:we}),a.addEventListener("keypress",Oe=>{re||(E&&ee&&b.onKeystroke(E),ee=Oe)},{capture:!0,signal:we}),a.addEventListener("compositionstart",Oe=>{a.textContent="",re=!0,b.onCompositionStart(Oe.data)},{capture:!0,signal:we}),a.addEventListener("compositionupdate",Oe=>{re&&b.onCompositionUpdate(Oe.data)},{capture:!0,signal:we}),a.addEventListener("compositionend",Oe=>{a.textContent="",re&&(re=!1,b.onCompositionEnd(Oe.data))},{capture:!0,signal:we}),a.addEventListener("beforeinput",Oe=>Oe.stopImmediatePropagation(),{signal:we}),a.addEventListener("input",Oe=>{var ot;if(!re&&(a.textContent="",Oe.inputType!=="insertCompositionText")){if(Oe.inputType==="insertFromPaste"){Oe.preventDefault(),Oe.stopPropagation();return}b.onInput((ot=Oe.data)!=null?ot:""),Oe.preventDefault(),Oe.stopPropagation()}},{signal:we}),a.addEventListener("paste",Oe=>{a.focus({preventScroll:!0}),a.textContent="",b.onPaste(Oe)||Oe.preventDefault(),Oe.stopImmediatePropagation()},{signal:we}),a.addEventListener("cut",Oe=>b.onCut(Oe),{capture:!0,signal:we}),a.addEventListener("copy",Oe=>b.onCopy(Oe),{capture:!0,signal:we}),a.addEventListener("blur",Oe=>{var ot,Et;if(((Et=(ot=Oe.relatedTarget)==null?void 0:ot._mathfield)==null?void 0:Et.element)===y){a.focus({preventScroll:!0}),Oe.preventDefault(),Oe.stopPropagation();return}const Zt=Ac.state;if(Zt==="open"||Zt==="opening"){Oe.preventDefault(),Oe.stopPropagation();return}if(Oe.relatedTarget===Oe.target.getRootNode().host){Oe.preventDefault(),Oe.stopPropagation();return}me||se||(me=!0,E=null,ee=null,b.onBlur(),me=!1)},{capture:!0,signal:we}),a.addEventListener("focus",Oe=>{me||se||(se=!0,b.onFocus(),se=!1)},{capture:!0,signal:we}),{dispose:()=>ge.abort(),cancelComposition:()=>{re&&(a.blur(),requestAnimationFrame(()=>a.focus({preventScroll:!0})))},blur:()=>{typeof a.blur=="function"&&a.blur()},focus:()=>{!se&&typeof a.focus=="function"&&a.focus({preventScroll:!0})},hasFocus:()=>Af()===a,setAriaLabel:Oe=>a.setAttribute("aria-label",Oe),setValue:Oe=>{var ot;a.textContent=Oe,a.style.left="-1000px",(ot=window.getSelection())==null||ot.selectAllChildren(a)},moveTo:(Oe,ot)=>{a.style.top=`${ot}px`,a.style.left=`${Oe}px`}}}function dd(a){var y;if(!a||!kf(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=_m(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(et()){const y=pt(),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=ud(h0(p0(b))),ee=ud({key:b.key,shift:b.shiftKey,alt:b.altKey,ctrl:b.ctrlKey,meta:b.metaKey||b.ctrlKey&&/macos|ios/.test(pt()),cmd:!1,win:!1});for(let re=a.length-1;re>=0;re--)if((a[re].key===E||a[re].key===ee)&&(!a[re].ifMode||a[re].ifMode===y))return a[re].command;return""}function m0(a){let y=a;return De(y)&&(y=y.length>0?y[0]+"("+y.slice(1).join("")+")":""),y}function jm(a,y){let b=[];if(typeof y=="string"){const re=Pd[y];De(re)?b=re.slice():re&&b.push(re)}const E=m0(y),ee=new RegExp("^"+E.replace("\\","\\\\").replace("|","\\|").replace("*","\\*").replace("$","\\$").replace("^","\\^")+"([^*a-zA-Z]|$)");for(const re of a)ee.test(m0(re.command))&&b.push(re.key);return b.map(vh)}function Um(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=pt()==="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 Me(xe({},a),{key:ud(b)});const ee=Nm(b.key,y);if(!ee)return Me(xe({},a),{key:ud(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 ${ud(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,Me(xe({},a),{key:ud(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 Vm(a,y){const b=[],E=[];for(const ee of a)try{const re=Um(ee,y);if(!re)continue;const se=E.find(me=>me.key===re.key&&me.ifMode===re.ifMode);if(se)throw new Error(`Ambiguous key binding ${ee.key} (${yh(ee.command)}) matches ${se.key} (${yh(se.command)}) with the ${y.displayName} keyboard layout`);E.push(re)}catch(re){re instanceof Error&&b.push(re.message)}return[E,b]}var Gm=class extends ta{constructor(){super("latex")}createAtom(a){return new Rs(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"}),Vo(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(Is(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 re=[];for(const ge of y)le.test(ge)&&re.push(new Rs(ge));let se=a.at(a.position);if(se instanceof $d&&(se=se.lastChild),!(se.parent instanceof $d)){const ge=new $d("");se.parent.addChildAfter(ge,se),se=ge.firstChild}const me=se.parent.addChildrenAfter(re,se);return a.silenceNotifications=ee,b.selectionMode==="before"||(b.selectionMode==="item"?a.setSelection(a.anchor,a.offsetOf(me)):me&&(a.position=a.offsetOf(me))),a.contentDidChange({data:y,inputType:"insertText"}),a.silenceNotifications=E,!0}};function Qm(a){return a.atoms.find(y=>y.type==="latexgroup")}function Qd(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 re=Number.isFinite(y==null?void 0:y.before)?(b=y==null?void 0:y.before)!=null?b:0:a.lastOffset;for(;E<=re&&!ee;){const ge=a.at(E);ee=ge instanceof Rs&&ge.isSuggestion,ee||E++}if(!ee)return[void 0,void 0];let se=E,me=!1;for(;se<=re&&!me;){const ge=a.at(se);me=!(ge instanceof Rs&&ge.isSuggestion),me||se++}return[E-1,se-1]}new Gm;function If(a){const y=Qd(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 Yd(a,y){var b;const{model:E}=a;If(a);for(const Oe of Qd(E))Oe.isError=!1;if(!E.selectionIsCollapsed||a.options.popoverPolicy==="off"){hd(a);return}const ee=[];let re=E.at(E.position);for(;re&&re instanceof Rs&&/^[a-zA-Z\*]$/.test(re.value);)re=re.leftSibling;if(re&&re instanceof Rs&&re.value==="\\")for(ee.push(re),re=re.rightSibling;re&&re instanceof Rs&&/^[a-zA-Z\*]$/.test(re.value);)ee.push(re),re=re.rightSibling;const se=ee.map(Oe=>Oe.value).join(""),me=Be(a,se);if(me.length===0){if(/^\\[a-zA-Z\*]+$/.test(se))for(const Oe of ee)Oe.isError=!0;hd(a);return}const ge=(b=y==null?void 0:y.atIndex)!=null?b:0;a.suggestionIndex=ge<0?me.length-1:ge%me.length;const we=me[a.suggestionIndex];if(we!==se){const Oe=ee[ee.length-1];Oe.parent.addChildrenAfter([...we.slice(se.length-we.length)].map(ot=>new Rs(ot,{isSuggestion:!0})),Oe),_u(a,{interactive:!0})}Xm(a,me)}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 fd(a,y="accept",b){var E,ee;hd(a);const re=Qm(a.model);if(!re)return!1;if(y==="accept-suggestion"||y==="accept-all"){const we=Qd(a.model).filter(Oe=>Oe.isSuggestion);if(we.length!==0){for(const Oe of we)Oe.isSuggestion=!1;a.model.position=a.model.offsetOf(we[we.length-1])}if(y==="accept-suggestion")return we.length!==0}const me=Qd(a.model).filter(we=>!we.isSuggestion).map(we=>we.value).join(""),ge=re.leftSibling;return re.parent.removeChild(re),a.model.position=a.model.offsetOf(ge),a.switchMode((E=b==null?void 0:b.mode)!=null?E:"math"),y==="reject"||(ta.insert(a.model,me,{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 Df(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 Ym(a,y){const b=new Ia({from:a.context}),E=new Un({mode:"math",type:"root",body:Ls(y,{context:b})}),ee=ou(Wd(new kr(E.render(b),{classes:"ML__base"}),b));return su(ee,{classes:"ML__latex"}).toMarkup()}function Xm(a,y){var b;if(y.length===0){hd(a);return}let E="";for(const[re,se]of y.entries()){const me=se,ge=Ym(a,se),we=jm(a.keybindings,me).join("<br>");E+=`<li role="button" data-command="${me}" ${re===a.suggestionIndex?"class=ML__popover__current":""}><span class="ML__popover__latex">${me}</span><span class="ML__popover__command">${ge}</span>`,we&&(E+=`<span class="ML__popover__keybinding">${we}</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 re;ee&&!xh()&&(ee.classList.add("is-visible"),Lf(a),(re=ee.querySelector(".ML__popover__current"))==null||re.scrollIntoView({block:"nearest",inline:"nearest"}))},32)}function xh(){const a=document.getElementById("mathlive-suggestion-popover");return a?a.classList.contains("is-visible"):!1}function Lf(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(()=>Lf(a),32);return}const E=Mc(a.field);if(!E)return;const ee=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,re=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,se=window.innerWidth-document.documentElement.clientWidth,me=window.innerHeight-document.documentElement.clientHeight,ge=window.mathVirtualKeyboard.boundingRect.height,we=document.getElementById("mathlive-suggestion-popover");E.x+we.offsetWidth/2>re-se?we.style.left=`${re-we.offsetWidth-se}px`:E.x-we.offsetWidth/2<0?we.style.left="0":we.style.left=`${E.x-we.offsetWidth/2}px`;const Oe=E.y-E.height;ee-me-ge-E.y<Oe?(we.classList.add("ML__popover--reverse-direction"),we.classList.remove("top-tip"),we.classList.add("bottom-tip"),we.style.top=`${E.y-E.height-we.offsetHeight-15}px`):(we.classList.remove("ML__popover--reverse-direction"),we.classList.add("top-tip"),we.classList.remove("bottom-tip"),we.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=Df("mathlive-suggestion-popover"),Al("suggestion-popover"),Al("core"),b.addEventListener("pointerdown",E=>E.preventDefault()),b.addEventListener("click",E=>{let ee=E.target;for(;ee&&!ee.dataset.command;)ee=ee.parentElement;ee&&(fd(a,"reject"),ta.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 Tf=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 yu(this,null,function*(){if(/^(?:[a-z+]+:)?\/\//i.test(a))return new URL(a).href;if(Tf===null)try{const y=yield fetch(Sh,{method:"HEAD"});y.status===200&&(Tf=y.url)}catch(y){console.error(`Invalid URL "${a}" (relative to "${Sh}")`)}return new URL(a,Tf!=null?Tf:Sh).href})}function tg(a,y,b={}){return new FontFace(a,`url(${y}.woff2) format('woff2')`,b)}var Hl="not-loaded";function ng(){return yu(this,null,function*(){return Hl="not-loaded",Bf()})}function Bf(){return yu(this,null,function*(){var a;if(Hl!=="not-loaded")return;if(Hl="loading",(a=getComputedStyle(document.documentElement).getPropertyValue("--ML__static-fonts"))!=null?a:!1){Hl="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(se=>se.family);if(b.every(se=>E.includes(se))){Hl="ready";return}if(!window.MathfieldElement.fontsDirectory){Hl="not-loaded";return}const ee=yield x0(window.MathfieldElement.fontsDirectory);if(!ee){document.body.classList.add("ML__fonts-did-not-load"),Hl="error";return}const re=[["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(se=>tg(se[0].replace(/-[a-zA-Z]+$/,""),`${ee}/${se[0]}`,se[1]));try{(yield Promise.all(re.map(me=>{try{return me.load()}catch(ge){}}))).forEach(me=>document.fonts.add(me)),Hl="ready";return}catch(se){console.error(`MathLive 0.98.5: The math fonts could not be loaded from "${ee}"`,{cause:se}),document.body.classList.add("ML__fonts-did-not-load")}Hl="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 Vo(a,y){a&&(a.dirty||(a.dirty=!0,requestAnimationFrame(()=>{Fl(a)&&a.dirty&&(a.atomBoundsCache=new Map,_u(a,y),a.atomBoundsCache=void 0)})))}function ig(a,y){var b;y=y!=null?y:{};const E=new Ia({from:Me(xe({},a.context),{atomIdsSettings:{seed:y.forHighlighting?rg(Un.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 su(Wd(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 re=ee.parent;for(;re;)re.containsCaret=!0,re=re.parent}else{const ee=b.getAtoms(b.selection,{includeChildren:!0});for(const re of ee)re.isSelected=!0}return ig(a,y).toMarkup()}function _u(a,y){if(!Fl(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(),re=E.classList.contains("ML__focused");re&&!ee?E.classList.remove("ML__focused"):!re&&ee&&E.classList.add("ML__focused");let se=S0(a,y);const me=a.element.querySelector("[part=menu-toggle]");if(me&&(a.model.atoms.length<=1||a.disabled||a.readOnly&&!a.hasEditableContent||a.userSelect==="none"?me.style.display="none":me.style.display=""),a.model.atoms.length<=1){const ge=a.options.contentPlaceholder;ge&&(se+=`<span part=placeholder class="ML__content-placeholder">${Ts(ge)}</span>`)}E.innerHTML=window.MathfieldElement.createHTML(se),Of(a,y.interactive),a.dirty=!1}function Of(a,y){const b=a.field;if(!b)return;for(const me of b.querySelectorAll(".ML__selection, .ML__contains-highlight"))me.remove();!(y!=null&&y)&&Hl!=="error"&&Hl!=="ready"&&setTimeout(()=>{Hl==="ready"?Of(a):setTimeout(()=>Of(a),128)},32);const E=a.model,ee=b.offsetWidth,re=b.getBoundingClientRect().width;let se=Math.floor(re)/ee;if(se=isNaN(se)?1:se,E.selectionIsCollapsed){Lf(a,{deferred:!0});let me=E.at(E.position);for(;me&&me.type!=="prompt"&&!(me.containsCaret&&me.displayContainsHighlight);)me=me.parent;if(me!=null&&me.containsCaret&&me.displayContainsHighlight){const ge=_d(a,uu(a,me),se);if(ge){ge.left/=se,ge.right/=se,ge.top/=se,ge.bottom/=se;const we=document.createElement("div");we.classList.add("ML__contains-highlight"),we.style.position="absolute",we.style.left=`${ge.left+1}px`,we.style.top=`${Math.ceil(ge.top)}px`,we.style.width=`${Math.ceil(ge.right-ge.left)}px`,we.style.height=`${Math.ceil(ge.bottom-ge.top)}px`,b.insertBefore(we,b.childNodes[0])}}return}for(const me of ag(zd(a,{excludeAtomsWithBackground:!0}))){me.left/=se,me.right/=se,me.top/=se,me.bottom/=se;const ge=document.createElement("div");ge.classList.add("ML__selection"),ge.style.position="absolute",ge.style.left=`${me.left}px`,ge.style.top=`${me.top}px`,ge.style.width=`${Math.ceil(me.right-me.left)}px`,ge.style.height=`${Math.ceil(me.bottom-me.top-1)}px`,b.insertBefore(ge,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 C0=3,Ic;function Il(a,y){y=xe({target:"mathfield",canUndo:!1,audioFeedback:void 0,changeContent:!1,changeSelection:!1},y!=null?y:{}),Ic||(Ic={});for(const b of Object.keys(a))console.assert(!Ic[b],"Selector already defined: ",b),Ic[b]=Me(xe({},y),{fn:a[b]})}function Ch(a){let y;if(Array.isArray(a)){if(a[0]==="performWithFeedback")return Ch(a[1]);y=a[0]}else y=a;return y=y.replace(/-\w/g,b=>b[1].toUpperCase()),Ic[y]}function pd(a){var y;return(y=Ch(a))==null?void 0:y.target}function og(a,y){var b;if(!y)return!1;let E,ee=[],re=!1,se=!1;De(y)?(E=y[0],ee=y.slice(1)):E=y,E=E.replace(/-\w/g,we=>we[1].toUpperCase());const me=Ic[E],ge=me==null?void 0:me.target;if(ge==="model"){if(!a.isSelectionEditable&&(me!=null&&me.changeContent))return a.model.announce("plonk"),!1;/^(delete|add)/.test(E)&&(E!=="deleteBackward"&&a.flushInlineShortcutBuffer(),a.snapshot(E)),/^complete/.test(E)||If(a),Ic[E].fn(a.model,...ee),Yd(a),se=!0,re=!0}else if(ge==="virtual-keyboard")se=(b=window.mathVirtualKeyboard.executeCommand(y))!=null?b:!1,re=!0;else if(Ic[E]){if(!a.isSelectionEditable&&(me!=null&&me.changeContent))return a.model.announce("plonk"),!1;/^(undo|redo)/.test(E)&&a.flushInlineShortcutBuffer(),se=Ic[E].fn(a,...ee),re=!0}else throw new Error(`Unknown command "${E}"`);return ge!=="virtual-keyboard"&&(!a.model.selectionIsCollapsed||me!=null&&me.changeSelection&&y!=="deleteBackward")&&(a.flushInlineShortcutBuffer(),me!=null&&me.changeContent||a.stopCoalescingUndo(),a.defaultStyle={}),se&&Vo(a),re}function sg(a,y){var b;if(!a)return!1;a.focus(),vp.keypressVibration&&je()&&navigator.vibrate(C0);const E=Ch(y);window.MathfieldElement.playSound((b=E==null?void 0:E.audioFeedback)!=null?b:"keypress");const ee=a.executeCommand(y);return a.scrollIntoView(),ee}Il({performWithFeedback:(a,y)=>sg(a,y)});function lg(a){return Yd(a,{atIndex:a.suggestionIndex+1}),!1}function cg(a){return Yd(a,{atIndex:a.suggestionIndex-1}),!1}Il({complete:fd},{target:"mathfield",audioFeedback:"return",canUndo:!0,changeContent:!0,changeSelection:!0}),Il({nextSuggestion:lg,previousSuggestion:cg},{target:"mathfield",audioFeedback:"keypress",changeSelection:!0});var Pf="mathlive#virtual-keyboard-message";function wh(a){var y;return a.type!=="message"?!1:((y=a.data)==null?void 0:y.type)===Pf}var ug=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(wh(y)){if(!Fd(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;pd(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(xe({type:Pf,action:y},b),this.targetOrigin)}},w0={numeric:{label:"123",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.numeric",rows:[[{latex:"x",shift:"y",variants:["y","z","t","r","x^2","x^n","x^{#?}","x_n","x_i","x_{#?}",{latex:"f(#?)",class:"small"},{latex:"g(#?)",class:"small"}]},{latex:"n",shift:"a",variants:["i","j","p","k","a","u"]},"[separator-5]","[7]","[8]","[9]","[/]","[separator-5]",{latex:"\\exponentialE",shift:"\\ln",variants:["\\exp","\\times 10^{#?}","\\ln","\\log_{10}","\\log"]},{latex:"\\imaginaryI",variants:["\\Re","\\Im","\\imaginaryJ","\\Vert #0 \\Vert"]},{latex:"\\pi",shift:"\\sin",variants:["\\prod",{latex:"\\theta",aside:"theta"},{latex:"\\rho",aside:"rho"},{latex:"\\tau",aside:"tau"},"\\sin","\\cos","\\tan"]}],[{label:"<",latex:"<",class:"hide-shift",shift:{latex:"\\le",label:"\u2264"}},{label:">",latex:">",class:"hide-shift",shift:{latex:"\\ge",label:"\u2265"}},"[separator-5]","[4]","[5]","[6]","[*]","[separator-5]",{class:"hide-shift",latex:"#@^2}",shift:"#@^{\\prime}}"},{latex:"#@^{#0}}",class:"hide-shift",shift:"#@_{#?}"},{class:"hide-shift",latex:"\\sqrt{#0}",shift:{latex:"\\sqrt[#0]{#?}}"}}],["[(]","[)]","[separator-5]","[1]","[2]","[3]","[-]","[separator-5]",{latex:"\\int^{\\infty}_{0}\\!#?\\,\\mathrm{d}x",class:"small hide-shift",shift:"\\int",variants:[{latex:"\\int_{#?}^{#?}",class:"small"},{latex:"\\int",class:"small"},{latex:"\\iint",class:"small"},{latex:"\\iiint",class:"small"},{latex:"\\oint",class:"small"},"\\mathrm{d}x",{latex:"\\dfrac{\\mathrm{d}}{\\mathrm{d} x}",class:"small"},{latex:"\\frac{\\partial}{\\partial x}",class:"small"},"\\partial"]},{class:"hide-shift",latex:"\\forall",shift:"\\exists"},{label:"[backspace]",width:1}],[{label:"[shift]",width:2},"[separator-5]","[0]","[.]","[=]","[+]","[separator-5]","[left]","[right]",{label:"[action]",width:1}]]},greek:{label:"αβγ",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.greek",rows:[[{label:"<i>φ</i>",class:"MLK__tex hide-shift",insert:"\\varphi",aside:"phi var.",shift:"\\Phi"},{label:"<i>ς</i>",class:"MLK__tex hide-shift",insert:"\\varsigma",aside:"sigma var.",shift:"\\Sigma"},{label:"<i>ϵ</i>",class:"MLK__tex hide-shift",insert:"\\epsilon",aside:"espilon",shift:'\\char"0190'},{label:"<i>ρ</i>",class:"MLK__tex hide-shift",insert:"\\rho",aside:"rho",shift:'\\char"3A1'},{label:"<i>τ</i>",class:"MLK__tex hide-shift",insert:"\\tau",aside:"tau",shift:'\\char"3A4'},{label:"<i>υ</i>",class:"MLK__tex hide-shift",insert:"\\upsilon",aside:"upsilon",shift:"\\Upsilon"},{label:"<i>θ</i>",class:"MLK__tex hide-shift",insert:"\\theta",aside:"theta",shift:"\\Theta"},{label:"<i>ι</i>",class:"MLK__tex hide-shift",insert:"\\iota",aside:"iota",shift:'\\char"399'},{label:"<i>ο</i>",class:"MLK__tex hide-shift",insert:"\\omicron",aside:"omicron",shift:'\\char"39F'},{label:"<i>π</i>",class:"MLK__tex hide-shift",insert:"\\pi",aside:"pi",shift:"\\Pi"}],["[separator-5]",{label:"<i>α</i>",class:"MLK__tex hide-shift",insert:"\\alpha",aside:"alpha",shift:'\\char"391'},{label:"<i>σ</i>",class:"MLK__tex hide-shift",insert:"\\sigma",aside:"sigma",shift:"\\Sigma"},{label:"<i>δ</i>",class:"MLK__tex hide-shift",insert:"\\delta",aside:"delta",shift:"\\Delta"},{latex:"\\phi",class:"MLK__tex hide-shift",insert:"\\phi",aside:"phi",shift:"\\Phi"},{label:"<i>γ</i>",class:"MLK__tex hide-shift",insert:"\\gamma",aside:"gamma",shift:"\\Gamma"},{label:"<i>η</i>",class:"MLK__tex hide-shift",insert:"\\eta",aside:"eta",shift:'\\char"397'},{label:"<i>ξ</i>",class:"MLK__tex hide-shift",insert:"\\xi",aside:"xi",shift:"\\Xi"},{label:"<i>κ</i>",class:"MLK__tex hide-shift",insert:"\\kappa",aside:"kappa",shift:"\\Kappa"},{label:"<i>λ</i>",class:"MLK__tex hide-shift",insert:"\\lambda",aside:"lambda",shift:"\\Lambda"},"[separator-5]"],["[shift]",{label:"<i>ζ</i>",class:"MLK__tex hide-shift",insert:"\\zeta",aside:"zeta",shift:'\\char"396'},{label:"<i>χ</i>",class:"MLK__tex hide-shift",insert:"\\chi",aside:"chi",shift:'\\char"3A7'},{label:"<i>ψ</i>",class:"MLK__tex hide-shift",insert:"\\psi",aside:"zeta",shift:"\\Psi"},{label:"<i>ω</i>",class:"MLK__tex hide-shift",insert:"\\omega",aside:"omega",shift:"\\Omega"},{label:"<i>β</i>",class:"MLK__tex hide-shift",insert:"\\beta",aside:"beta",shift:'\\char"392'},{label:"<i>ν</i>",class:"MLK__tex hide-shift",insert:"\\nu",aside:"nu",shift:'\\char"39D'},{label:"<i>μ</i>",class:"MLK__tex hide-shift",insert:"\\mu",aside:"mu",shift:'\\char"39C'},"[backspace]"],["[separator]",{label:"<i>ε</i>",class:"MLK__tex",insert:"\\varepsilon",aside:"espilon var."},{label:"<i>ϑ</i>",class:"MLK__tex",insert:"\\vartheta",aside:"theta var."},{label:"<i>ϰ</i>",class:"MLK__tex",insert:"\\varkappa",aside:"kappa var."},{label:"<i>ϖ</i>",class:"MLK__tex",insert:"\\varpi",aside:"pi var."},{label:"<i>ϱ</i>",class:"MLK__tex",insert:"\\varrho",aside:"rho var."},"[left]","[right]","[action]"]]},symbols:{label:"∞\u2260\u2208",labelClass:"MLK__tex",tooltip:"keyboard.tooltip.symbols",rows:[[{latex:"\\sin",shift:"\\sin^{-1}",variants:[{class:"small",latex:"\\sinh"},{class:"small",latex:"\\sin^{-1}"},{class:"small",latex:"\\arsinh"}]},"\\ln",{latex:"\\mathrm{abs}",insert:"\\mathrm{abs}\\left(#0\\right)"},{latex:"\\rarr",shift:"\\rArr",variants:[{latex:"\\implies",aside:"implies"},{latex:"\\to",aside:"to"},"\\dashv",{latex:"\\roundimplies",aside:"round implies"}]},{latex:"\\exists",variants:["\\nexists"],shift:"\\nexists"},{latex:"\\in",shift:"\\notin",variants:["\\notin","\\owns"]},"\\cup",{latex:"\\overrightarrow{#@}",shift:"\\overleftarrow{#@}",variants:["\\overleftarrow{#@}","\\bar{#@}","\\vec{#@}","\\hat{#@}","\\check{#@}","\\dot{#@}","\\ddot{#@}","\\mathring{#@}","\\breve{#@}","\\acute{#@}","\\tilde{#@}","\\grave{#@}"]},{class:"small",latex:"\\lim_{#?}",shift:"\\lim_{x\\to\\infty}",variants:[{class:"small",latex:"\\liminf_{#?}"},{class:"small",latex:"\\limsup_{#?}"}]},"\\exponentialE"],[{latex:"\\cos",shift:"\\cos^{-1}",variants:[{class:"small",latex:"\\cosh"},{class:"small",latex:"\\cos^{-1}"},{class:"small",latex:"\\arcosh"}]},{latex:"\\log",shift:"\\log_{10}",variants:["\\log_{#0}","\\log_{10}"]},"\\left\\vert#0\\right\\vert",{latex:"\\larr",shift:"\\lArr",variants:[{latex:"\\impliedby",aside:"implied by"},{latex:"\\gets",aside:"gets"},"\\lArr","\\vdash",{latex:"\\models",aside:"models"}]},{latex:"\\forall",shift:"\\lnot",variants:[{latex:"\\land",aside:"and"},{latex:"\\lor",aside:"or"},{latex:"\\oplus",aside:"xor"},{latex:"\\lnot",aside:"not"},{latex:"\\downarrow",aside:"nor"},{latex:"\\uparrow",aside:"nand"},{latex:"\\curlywedge",aside:"nor"},{latex:"\\bar\\curlywedge",aside:"nand"}]},{latex:"\\ni",shift:"\\not\\owns"},"\\cap",{latex:"\\overline{#@}",shift:"\\underline{#@}",variants:["\\overbrace{#@}","\\overlinesegment{#@}","\\overleftrightarrow{#@}","\\overrightarrow{#@}","\\overleftarrow{#@}","\\overgroup{#@}","\\underbrace{#@}","\\underlinesegment{#@}","\\underleftrightarrow{#@}","\\underrightarrow{#@}","\\underleftarrow{#@}","\\undergroup{#@}"]},{class:"hide-shift",latex:"\\int",shift:"\\iint",variants:[{latex:"\\int_{#?}^{#?}",class:"small"},{latex:"\\int",class:"small"},{latex:"\\smallint",class:"small"},{latex:"\\iint",class:"small"},{latex:"\\iiint",class:"small"},{latex:"\\oint",class:"small"},"\\intop","\\iiint","\\oiint","\\oiiint","\\intclockwise","\\varointclockwise","\\ointctrclockwise","\\intctrclockwise"]},{latex:"\\pi",shift:"\\tau",variants:["\\tau"]}],[{latex:"\\tan",shift:"\\tan^{-1}",variants:[{class:"small",latex:"\\tanh"},{class:"small",latex:"\\tan^{-1}"},{class:"small",latex:"\\artanh"},{class:"small",latex:"\\arctan"},{class:"small",latex:"\\arctg"},{class:"small",latex:"\\tg"}]},{latex:"\\exp",insert:"\\exp\\left(#0\\right)",variants:["\\exponentialE^{#0}"]},"\\left\\Vert#0\\right\\Vert",{latex:"\\lrArr",shift:"\\leftrightarrow",variants:[{latex:"\\iff",aside:"if and only if"},"\\leftrightarrow","\\leftrightarrows","\\Leftrightarrow",{latex:"^\\biconditional",aside:"biconditional"}]},{latex:"\\vert",shift:"!"},{latex:"#@^{\\complement}",aside:"complement",variants:[{latex:"\\setminus",aside:"set minus"},{latex:"\\smallsetminus",aside:"small set minus"}]},{latex:"\\subset",shift:"\\subseteq",variants:["\\subset","\\subseteq","\\subsetneq","\\varsubsetneq","\\subsetneqq","\\nsubset","\\nsubseteq","\\supset","\\supseteq","\\supsetneq","\\supsetneqq","\\nsupset","\\nsupseteq"]},{latex:"#@^{\\prime}",shift:"#@^{\\doubleprime}",variants:["#@^{\\doubleprime}","#@\\degree"]},{latex:"\\mathrm{d}",shift:"\\partial",variants:["\\mathrm{d}x",{latex:"\\dfrac{\\mathrm{d}}{\\mathrm{d} x}",class:"small"},{latex:"\\frac{\\partial}{\\partial x}",class:"small"},"\\partial"]},{latex:"\\infty",variants:["\\aleph_0","\\aleph_1","\\omega","\\mathfrak{m}"]}],[{label:"[shift]",width:2},{class:"box",latex:",",shift:";",variants:[";","?"]},{class:"box",latex:"\\colon",shift:"\\Colon",variants:[{latex:"\\Colon",aside:"such that",class:"box"},{latex:":",aside:"ratio",class:"box"},{latex:"\\vdots",aside:"",class:"box"},{latex:"\\ddots",aside:"",class:"box"},{latex:"\\ldotp",aside:"low dot",class:"box"},{latex:"\\cdotp",aside:"center dot",class:"box"},{latex:"\\ldots",aside:"low ellipsis",class:"box"},{latex:"\\cdots",aside:"center ellipsis",class:"box"},{latex:"\\therefore",aside:"therefore",class:"box"},{latex:"\\because",aside:"because",class:"box"}]},{class:"box",latex:"\\cdot",aside:"centered dot",shift:"\\ast",variants:["\\circ","\\bigcirc","\\bullet","\\odot","\\oslash","\\circledcirc","\\ast","\\star","\\times","\\doteq","\\doteqdot"]},"[separator]","[left]","[right]",{label:"[backspace]",width:1,class:"action hide-shift"},{label:"[action]",width:1}]]},compact:{label:"compact",rows:[["[+]","[-]","[*]","[/]","[=]","[.]","[(]","[)]","\\sqrt{#0}","#@^{#?}"],["[1]","[2]","[3]","[4]","[5]","[6]","[7]","[8]","[9]","[0]"],["[hr]"],["[undo]","[redo]","[separator]","[separator]","[separator]","[left]","[right]",{label:"[backspace]",class:"action hide-shift"},"[hide-keyboard]"]]},minimalist:{label:"minimalist",layers:[{style:`
|
|
|
.minimalist-backdrop {
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
}
|
|
|
.minimalist-container {
|
|
|
--keycap-height: 40px;
|
|
|
--keycap-max-width: 53px;
|
|
|
--keycap-small-font-size: 12px;
|
|
|
background: var(--keyboard-background);
|
|
|
padding: 20px;
|
|
|
border-top-left-radius: 8px;
|
|
|
border-top-right-radius: 8px;
|
|
|
border: 1px solid var(--keyboard-border);
|
|
|
box-shadow: 0 0 32px rgb(0 0 0 / 30%);
|
|
|
}
|
|
|
`,backdrop:"minimalist-backdrop",container:"minimalist-container",rows:[["+","-","\\times",{latex:"\\frac{#@}{#0}",class:"small"},"=","[.]","(",")",{latex:"\\sqrt{#0}",class:"small"},{latex:"#@^{#?}",class:"small"}],["1","2","3","4","5","6","7","8","9","0"],["[hr]"],["[undo]","[redo]","[separator]","[separator]","[separator]","[left]","[right]",{label:"[backspace]",class:"action hide-shift"},"[hide-keyboard]"]]}]},"numeric-only":{label:"123",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.numeric",id:"numeric-only",rows:[["7","8","9","[separator]",{label:"[backspace]",width:2}],["4","5","6","[separator]","[separator]","[separator]"],["1","2","3","[separator]","[separator]","[separator]"],["0",{label:"[.]",variants:[]},"-","[separator]","[left]","[right]"]]}},Nf={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"}]},Xd;function E0(a,y){var b,E,ee;const re=pu.singleton;if(!re)return;const se=md(a),me=(E=(b=re.getKeycap(se==null?void 0:se.id))==null?void 0:b.variants)!=null?E:"";if(typeof me=="string"&&!M0(me)||Array.isArray(me)&&me.length===0){y==null||y();return}const ge={};let we="";for(const Pn of fg(me)){const Ir=A0(Pn),Ln=Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);ge[Ln]=Ir;const[ir,zr]=_f(Ir);we+=`<div id=${Ln} class="item ${zr}">${ir}</div>`}const Oe=document.createElement("div");Oe.setAttribute("aria-hidden","true"),Oe.className="MLK__variant-panel",Oe.style.height="auto";const ot=Object.keys(ge).length;let Et=5;ot===1?Et=1:ot===2||ot===4?Et=2:ot===3||ot===5||ot===6?Et=3:ot>=7&&ot<14&&(Et=4),Oe.style.width=`calc(var(--variant-keycap-length) * ${Et} + 12px)`,Oe.innerHTML=vp.createHTML(we),Ac.open({root:(ee=re==null?void 0:re.container)==null?void 0:ee.querySelector(".ML__keyboard"),child:Oe}),Xd=new AbortController;const{signal:Zt}=Xd,Yt=a==null?void 0:a.getBoundingClientRect();if(Yt){Yt.top-Oe.clientHeight<0&&(Oe.style.width="auto",ot<=6?Oe.style.height="56px":ot<=12?Oe.style.height="108px":ot<=18?Oe.style.height="205px":Oe.classList.add("compact"));const Pn=Math.max(0,Math.min(window.innerWidth-Oe.offsetWidth,(Yt.left+Yt.right-Oe.offsetWidth)/2)),Ir=Yt.top-Oe.clientHeight+5;Oe.style.transform=`translate(${Pn}px, ${Ir}px)`,Oe.classList.add("is-visible"),requestAnimationFrame(()=>{Oe.addEventListener("pointerup",Ln=>{const ir=md(Ln.target);!(ir!=null&&ir.id)||!ge[ir.id]||(Eh(ge[ir.id]),Jd(),y==null||y(),Ln.preventDefault())},{capture:!0,passive:!1,signal:Zt}),Oe.addEventListener("pointerenter",Ln=>{const ir=md(Ln.target);!(ir!=null&&ir.id)||!ge[ir.id]||ir.classList.add("is-active")},{capture:!0,signal:Zt}),Oe.addEventListener("pointerleave",Ln=>{const ir=md(Ln.target);!(ir!=null&&ir.id)||!ge[ir.id]||ir.classList.remove("is-active")},{capture:!0,signal:Zt}),window.addEventListener("pointercancel",()=>{Jd(),y==null||y()},{signal:Zt}),window.addEventListener("pointerup",()=>{Jd(),y==null||y()},{signal:Zt})})}}function Jd(){Xd==null||Xd.abort(),Xd=null,Ac.state==="open"&&Ac.close()}function dg(a){if(a==="foreground-color"){const y=[];for(const b of Object.keys(Ue))y.push({class:"swatch-button",label:'<span style="border: 3px solid '+Ue[b]+'"></span>',command:["applyStyle",{color:b}]});return y}if(a==="background-color"){const y=[];for(const b of Object.keys(Ke))y.push({class:"swatch-button",label:'<span style="background:'+Ke[b]+'"></span>',command:["applyStyle",{backgroundColor:b}]});return y}}function M0(a){return Nf[a]!==void 0}function fg(a){var y;return typeof a!="string"?a:(Nf[a]||(Nf[a]=(y=dg(a))!=null?y:[]),Nf[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 qd(a){if(!a)return"";const y=new Ia,b=new Un({mode:"math",type:"root",body:Ls(a,{context:y,args:ee=>ee==="@"?"{\\class{ML__box-placeholder}{\\blacksquare}}":"\\placeholder{}"})}),E=ou(Wd(new kr(b.render(y),{classes:"ML__base"}),y));return su(E,{classes:"ML__latex"}).toMarkup()}function ef(a){var y;if(Array.isArray(a))return a.map(E=>ef(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=>A0(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 me=Gd();me&&(E=me.virtualLayout),(!E||E==="auto")&&(E=(a={fr:"azerty",be:"azerty",al:"qwertz",ba:"qwertz",cz:"qwertz",de:"qwertz",hu:"qwertz",sk:"qwertz",ch:"qwertz"}[ft.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~"]},re=(y=ee[E])!=null?y:ee.qwerty,se=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 me of re){const ge=[];for(const we of me)/[a-z]/.test(we)?ge.push({label:we,class:"hide-shift",shift:{label:we.toUpperCase()},variants:M0(we)?we:void 0}):we==="~"?E!=="dvorak"?ge.push("[backspace]"):ge.push({label:"[backspace]",width:1}):we==="^"?ge.push("[shift]"):we===" "&&ge.push("[separator-5]");se.push(ge)}return se.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:ef({rows:se})}}function k0(a){if(a==="alphabetic")return mg();if(typeof a=="string")return console.assert(w0[a]!==void 0,`MathLive 0.98.5: unknown keyboard layout "${a}"`),k0(w0[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:re}=ee,se=ct(ee,["rows"]);y=Me(xe({},se),{layers:ef({rows:a.rows})})}else if("markup"in a&&typeof a.markup=="string"){const ee=a,{markup:re}=ee,se=ct(ee,["markup"]);y=Me(xe({},se),{layers:ef(a.markup)})}else y=xe({},a),"layers"in a?y.layers=ef(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 re of ee.rows.flat()){gd(re)&&(b=!0);const se=re.command;typeof se=="string"&&["undo","redo","cut","copy","paste"].includes(se)&&(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[re,se]of a.normalizedLayouts.entries()){const me=se,ge=[re===y?"selected":"layer-switch"];me.tooltip&&ge.push("MLK__tooltip"),me.labelClass&&ge.push(...me.labelClass.split(" ")),ee+=`<div class="${ge.join(" ")}"`,me.tooltip&&(ee+=" data-tooltip='"+((b=it(me.tooltip))!=null?b:me.tooltip)+"' "),re!==y&&(ee+=`data-layer="${me.layers[0].id}"`),ee+=`>${(E=me.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 re={undo:`<div class='action ${y.canUndo===!1?"disabled":""}'
|
|
|
data-command='"undo"'
|
|
|
data-tooltip='${it("tooltip.undo")}'>
|
|
|
<svg><use xlink:href='#svg-undo' /></svg>
|
|
|
</div>`,redo:`<div class='action ${y.canRedo===!1?"disabled":""}'
|
|
|
data-command='"redo"'
|
|
|
data-tooltip='${it("tooltip.redo")}'>
|
|
|
<svg><use xlink:href='#svg-redo' /></svg>
|
|
|
</div>`,cutToClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"cutToClipboard"'
|
|
|
data-tooltip='${it("tooltip.cut to clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-cut' /></svg>
|
|
|
</div>
|
|
|
`,copyToClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"copyToClipboard"'
|
|
|
data-tooltip='${it("tooltip.copy to clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-copy' /></svg>
|
|
|
</div>
|
|
|
`,pasteFromClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"pasteFromClipboard"'
|
|
|
data-tooltip='${it("tooltip.paste from clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-paste' /></svg>
|
|
|
</div>
|
|
|
`};return b+=ee.map(se=>re[se]).join(""),b}function yg(a){for(const y of a)bg(y)}function bg(a){const y=pu.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]=_f(b);a.innerHTML=window.MathfieldElement.createHTML(E)}}function xg(){Al("virtual-keyboard"),Al("core"),Bf()}function Sg(){x("core"),x("virtual-keyboard")}var Cg=`<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 wg(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(Cg+a.normalizedLayouts.map((se,me)=>Eg(a,se,me)).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 se of ee)se.addEventListener("click",me=>{var ge,we;let Oe=me.target,ot="";for(;Oe&&!ot;)ot=(ge=Oe==null?void 0:Oe.getAttribute("data-command"))!=null?ge:"",Oe=(we=Oe==null?void 0:Oe.parentElement)!=null?we:null;ot&&a.executeCommand(JSON.parse(ot))});yg(y.querySelectorAll(".MLK__keycap, .action, .fnbutton, .bigfnbutton"));const re=y.querySelectorAll(".MLK__layer");console.assert(re.length>0,"No virtual keyboards available");for(const se of re)se.addEventListener("pointerdown",me=>me.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 re=a.registerKeycap(ee),[se,me]=_f(ee);/(^|\s)separator/.test(me)?b+=`<div class="${me}"`:b+=`<div tabindex="-1" id="${re}" class="${me}"`,ee.tooltip&&(b+=` data-tooltip="${ee.tooltip}"`),b+=`>${se}</div>`}b+="</div>"}b+="</div>"}else y.markup&&(b+=y.markup);return y.container&&(b+="</div>"),y.backdrop&&(b+="</div>"),b}function _f(a,y={shifted:!1}){var b,E,ee,re,se,me,ge;let we="",Oe=(b=a.class)!=null?b:"";if(y.shifted&&gd(a)&&(Oe+=" is-active"),y.shifted&&"shift"in a)typeof a.shift=="string"?we=qd(a.shift):typeof a.shift=="object"&&(we=a.shift.label?a.shift.label:(E=qd(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?E:""),typeof a.shift=="object"&&(Oe=(re=(ee=a.shift.class)!=null?ee:a.class)!=null?re:"");else{if(we=a.label?a.label:(se=qd(a.latex||a.insert||"")||a.key)!=null?se:"",a.shift){let ot;typeof a.shift=="string"?ot=qd(a.shift):a.shift.label?ot=a.shift.label:ot=(me=qd(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?me:"",we+=`<span class="MLK__shift">${ot}</span>`}a.aside&&(we+=`<aside>${a.aside}</aside>`)}return a.layer&&!/layer-switch/.test(Oe)&&(Oe+=" layer-switch"),/(^|\s)(separator|action|shift|fnbutton|bigfnbutton)($|\s)/.test(Oe)||(Oe+=" MLK__keycap"),!/\bw[0-9]+\b/.test(Oe)&&a.width&&(Oe+=(ge={0:" w0",.5:" w5",1.5:" w15",2:" w20",5:" w50"}[a.width])!=null?ge:""),[we,Oe||"MLK__keycap"]}var Ru={"[left]":{class:"action hide-shift",label:"<svg class=svg-glyph><use xlink:href=#svg-arrow-left /></svg>",command:["performWithFeedback","moveToPreviousChar"],shift:{label:"<svg class=svg-glyph><use xlink:href=#svg-angle-double-left /></svg>",command:["performWithFeedback","extendSelectionBackward"]}},"[right]":{class:"action hide-shift",label:"<svg class=svg-glyph><use xlink:href=#svg-arrow-right /></svg>",command:["performWithFeedback","moveToNextChar"],shift:{label:"<svg class=svg-glyph><use xlink:href=#svg-angle-double-right /></svg>",command:["performWithFeedback","extendSelectionForward"]}},"[up]":{class:"action hide-shift",label:"\u2191",command:["performWithFeedback","moveUp"],shift:{label:"\u219F",command:["performWithFeedback","extendSelectionUpward"]}},"[down]":{class:"action hide-shift",label:"\u2193",command:["performWithFeedback","moveDown"],shift:{label:"\u21A1",command:["performWithFeedback","extendSelectionDownward"]}},"[return]":{class:"action hide-shift",command:["performWithFeedback","commit"],shift:{command:["performWithFeedback","addRowAfter"]},width:1.5,label:"<svg class=svg-glyph><use xlink:href=#svg-commit /></svg>"},"[action]":{class:"action hide-shift",command:["performWithFeedback","commit"],shift:{label:"<svg class=svg-glyph><use xlink:href=#circle-plus /></svg>",command:["performWithFeedback","addRowAfter"]},width:1.5,label:"<svg class=svg-glyph><use xlink:href=#svg-commit /></svg>"},"[hr]":{class:"separator horizontal-rule"},"[hide-keyboard]":{class:"action",command:["hideVirtualKeyboard"],width:1.5,label:"<svg class=svg-glyph-lg><use xlink:href=#svg-keyboard-down /></svg>"},"[.]":{variants:".",command:["performWithFeedback","insertDecimalSeparator"],shift:",",class:"big-op hide-shift",label:"."},"[,]":{variants:",",command:["performWithFeedback","insertDecimalSeparator"],shift:".",class:"big-op hide-shift",label:","},"[+]":{variants:[{latex:"\\sum_{#0}^{#0}",class:"small"},"\\oplus"],latex:"+",label:"+",class:"big-op hide-shift",shift:{latex:"\\sum",insert:"\\sum",class:"small"}},"[-]":{variants:["\\pm","\\ominus"],latex:"-",label:"−",shift:"\\pm",class:"big-op hide-shift"},"[/]":{class:"big-op hide-shift",shift:{class:"",latex:"\\frac{1}{#@}"},variants:["/","\\div","\\%","\\oslash"],latex:"\\frac{#@}{#?}",label:"÷"},"[*]":{variants:[{latex:"\\prod_{#0}^{#0}",class:"small"},"\\otimes","\\cdot"],latex:"\\cdot",label:"×",shift:{latex:"\\times"},class:"big-op hide-shift"},"[=]":{variants:["\\neq","\\equiv","\\varpropto","\\thickapprox","\\lt","\\gt","\\le","\\ge"],latex:"=",label:"=",shift:{label:"\u2260",latex:"\\ne"},class:"big-op hide-shift"},"[backspace]":{class:"action bottom right hide-shift",width:1.5,command:["performWithFeedback","deleteBackward"],label:"<svg class=svg-glyph><use xlink:href=#svg-delete-backward /></svg>",shift:{class:"action warning",label:"<svg class=svg-glyph><use xlink:href=#svg-trash /></svg>",command:"deleteAll"}},"[undo]":{class:"ghost if-can-undo",command:"undo",label:"<svg class=svg-glyph><use xlink:href=#svg-undo /></svg>",tooltip:"tooltip.undo"},"[redo]":{class:"ghost if-can-redo",command:"redo",label:"<svg class=svg-glyph><use xlink:href=#svg-redo /></svg>",tooltip:"tooltip.redo"},"[(]":{variants:[{latex:"\\lbrack",key:"["},"\\langle","\\lfloor","\\lceil",{latex:"\\lbrace",key:"{"}],key:"(",label:"(",shift:{label:"[",key:"["},class:"hide-shift"},"[)]":{variants:[{latex:"\\rbrack",key:"]"},"\\rangle","\\rfloor","\\rceil",{latex:"\\rbrace",key:"]"}],key:")",label:")",shift:{label:"]",latex:"\\rbrack"},class:"hide-shift"},"[0]":{variants:"0",latex:"0",label:"0",shift:"\\infty",class:"hide-shift"},"[1]":{variants:"1",latex:"1",label:"1",shift:"#@^{-1}",class:"hide-shift"},"[2]":{variants:"2",latex:"2",label:"2",shift:"#@^2",class:"hide-shift"},"[3]":{variants:"3",latex:"3",label:"3",shift:"#@^3",class:"hide-shift"},"[4]":{variants:"4",latex:"4",label:"4",shift:"#@^4",class:"hide-shift"},"[5]":{variants:"5",latex:"5",label:"5",shift:"#@^5",class:"hide-shift"},"[6]":{variants:"6",latex:"6",label:"6",shift:"#@^6",class:"hide-shift"},"[7]":{variants:"7",latex:"7",label:"7",shift:"#@^7",class:"hide-shift"},"[8]":{variants:"8",latex:"8",label:"8",shift:"#@^8",class:"hide-shift"},"[9]":{variants:"9",latex:"9",label:"9",shift:"#@^9",class:"hide-shift"},"[separator-5]":{class:"separator",width:.5},"[separator]":{class:"separator"},"[separator-10]":{class:"separator"},"[separator-15]":{class:"separator",width:1.5},"[separator-20]":{class:"separator",width:2},"[separator-50]":{class:"separator",width:5},"[shift]":{class:"shift bottom left",width:1.5,label:"<span class=caps-lock-indicator></span><svg class=svg-glyph><use xlink:href=#svg-shift /></svg>"},"[foreground-color]":{variants:"foreground-color",command:["applyStyle",{color:"red"}],label:"<span style='border-radius: 50%;width:22px;height:22px; border: 3px solid #cc2428; box-sizing: border-box'>"},"[background-color]":{variants:"background-color",command:["applyStyle",{backgroundColor:"yellow"}],label:"<span style='border-radius: 50%;width:22px;height:22px; background:#fff590; box-sizing: border-box'></span>"}};function A0(a){var y;if(typeof a=="string"){if(a==="[.]"&&window.MathfieldElement.decimalSeparator===","&&(a="[,]"),!Ru[a])return{latex:a};a={label:a}}let b;return"label"in a&&a.label&&Ru[a.label]&&(b=Me(xe(xe({},Ru[a.label]),a),{label:Ru[a.label].label})),"key"in a&&a.key&&Ru[a.key]&&(b=Me(xe(xe({},Ru[a.key]),a),{key:Ru[a.key].key})),b?(b.command==="insertDecimalSeparator"&&(b.label=(y=window.MathfieldElement.decimalSeparator)!=null?y:"."),a.label==="[action]"&&(b=xe(xe({},b),window.mathVirtualKeyboard.actionKeycap)),a.label==="[shift]"&&(b=xe(xe({},b),window.mathVirtualKeyboard.shiftKeycap)),a.label==="[backspace]"&&(b=xe(xe({},b),window.mathVirtualKeyboard.backspaceKeycap)),a.label==="[tab]"&&(b=xe(xe({},b),window.mathVirtualKeyboard.tabKeycap)),b):a}var tf;function kg(a){var y;if(a.button!==0)return;const b=pu.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=md(a.target);if(!(ee!=null&&ee.id))return;const re=b.getKeycap(ee.id);if(!re)return;console.assert(a.type==="pointerdown");const se=new AbortController,me=se.signal;ee.classList.add("is-pressed"),ee.addEventListener("pointerenter",Rf(se),{capture:!0,signal:me}),ee.addEventListener("pointerleave",Rf(se),{capture:!0,signal:me}),ee.addEventListener("pointercancel",Rf(se),{signal:me}),ee.addEventListener("pointerup",Rf(se),{signal:me}),gd(re)&&(ee.classList.add("is-active"),b.shiftPressCount++),re.variants&&(tf&&clearTimeout(tf),tf=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,()=>{se.abort(),ee==null||ee.classList.remove("is-active")}))},300)),a.preventDefault()}function Rf(a){return y=>{const b=md(y.target);if(!(b!=null&&b.id))return;const E=pu.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"),gd(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"),gd(ee)&&(E.shiftPressCount--,b.classList.toggle("is-active",E.isShifted));return}if(y.type==="pointerup"){tf&&clearTimeout(tf),gd(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=pu.singleton)==null||y.executeCommand(b)}function Ag(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 md(a){if(!a)return;let y=a;for(;y&&!Ag(y);)y=y.parentElement;return y!=null?y:void 0}function gd(a){return!!a.class&&/(^|\s)shift($|\s)/.test(a.class)}var pu=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 re=ee.target;re!=null&&re.isConnected&&setTimeout(()=>{const se=I0();se&&!se.readOnly&&se.mathVirtualKeyboardPolicy==="auto"&&We()&&this.show({animate:!0})},300)}),document.addEventListener("focusout",ee=>{ee.target.mathVirtualKeyboardPolicy!=="manual"&&setTimeout(()=>{I0()||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[re,se]=_f(ee,{shifted:this.isShifted});E.innerHTML=window.MathfieldElement.createHTML(re),E.className=se}}}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 re=E.style.paddingBottom;this.originalContainerBottomPadding=re;const se=ee.offsetHeight-1;E.style.paddingBottom=re?`calc(${re} + ${se}px)`:`${se}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}),Jd(),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=wg(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(wh(y)){if(!Fd(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,re=pd(ee);if(window.top!==void 0&&re!=="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:xe({type:Pf,action:y},b)}));return}if(E)E.postMessage(xe({type:Pf,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 re of ee)this.dispatchEvent(new KeyboardEvent("keydown",{key:re,bubbles:!0})),this.dispatchEvent(new KeyboardEvent("keyup",{key:re,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=pd(y);return De(y)?(b=y[0],b==="performWithFeedback"&&(y=y.slice(1),ee=pd(y)),E=y.slice(1)):b=y,b=b.replace(/-\w/g,re=>re[1].toUpperCase()),ee==="virtual-keyboard"?Ic[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 I0(){var a,y;let b=Af(),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(et()&&!("mathVirtualKeyboard"in window))if(window===window.top){const a=pu.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>a})}else Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>ug.singleton,configurable:!0});function zf(a){const y={};for(const b of Object.keys(a))switch(b){case"scriptDepth":const E=a.scriptDepth;if(De(E))y.scriptDepth=[E[0],E[1]];else if(typeof E=="number")y.scriptDepth=[E,E];else if(typeof E=="string"){const[re,se]=E.split(",").map(me=>parseInt(me.trim()));y.scriptDepth=[re,se]}else throw new TypeError("Unexpected value for scriptDepth");break;case"mathVirtualKeyboardPolicy":let ee=a.mathVirtualKeyboardPolicy.toLowerCase();if(ee==="sandboxed"){if(window!==window.top){const re=pu.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>re})}ee="manual"}y.mathVirtualKeyboardPolicy=ee;break;case"letterShapeStyle":a.letterShapeStyle==="auto"?ft.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=Le(a.macros);break;default:De(a[b])?y[b]=[...a[b]]:typeof a[b]=="object"&&!(a[b]instanceof Element)&&b!=="computeEngine"?y[b]=xe({},a[b]):y[b]=a[b]}return y}function zu(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:De(a[ee])?E[ee]=[...a[ee]]:typeof a[ee]=="object"&&!(a[ee]instanceof Element)&&ee!=="computeEngine"?E[ee]=xe({},a[ee]):E[ee]=a[ee];return typeof y=="string"?E[y]:E}function Ff(){return{readOnly:!1,defaultMode:"math",macros:{},registers:{},colorMap:st,backgroundColorMap:Ie,letterShapeStyle:ft.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:lh,inlineShortcuts:gf,inlineShortcutTimeout:0,mathVirtualKeyboardPolicy:"auto",virtualKeyboardTargetOrigin:window==null?void 0:window.origin,originValidator:"none",onInlineShortcut:()=>"",onScrollIntoView:null,onExport:sh,value:""}}function D0(a){return a.defaultMode==="inline-math"?"math":a.defaultMode}function mu(a,y){!a||!y||(De(a)?a.forEach(b=>mu(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),mu(a.body,y),mu(a.above,y),mu(a.below,y),mu(a.subscript,y),mu(a.superscript,y)))}function Mh(a,y,b,E){function ee(se,me){for(const ge of re)if(ge.style[se]!==me)return!1;return!0}if(y=a.normalizeRange(y),y[0]===y[1])return!1;const re=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=so),b.variant&&ee("variant",b.variant)&&(b.variant="normal"),b.variantStyle&&ee("variantStyle",b.variantStyle)&&(b.variantStyle=""));for(const se of re)se.applyStyle(b);return!0}function Ig(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 Wc(y,{mode:b.mode});ee.caret=E,b.parent.addChildAfter(ee,b),a.position+=1}}function Dg(a){const y=a.at(a.position);y.type==="composition"&&(y.parent.removeChild(y),a.position-=1)}St(["math","displaymath"],ql),St("center",ql),mt("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 sa("lines",a.args,[],{leftDelim:".",rightDelim:".",columns:[{align:"l"}]})}),Jt("array","{columns:colspec}",(a,y,b,E)=>new sa(a,kh(y),b,{columns:E[0],mathstyleName:"textstyle"})),Jt(["equation","equation*","subequations"],"",(a,y,b)=>new sa(a,kh(y),b,{columns:[{align:"c"}]})),Jt(["multline","multline*"],"",ql),Jt(["align","align*","aligned","eqnarray"],"",ql),Jt("split","",ql),Jt(["gather","gathered"],"",ql),Jt(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],"[columns:colspec]",ql),Jt(["smallmatrix","smallmatrix*"],"[columns:colspec]",ql),Jt(["cases","dcases","rcases"],"",ql);function Lg(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 Lg(a)?Array(y).fill([[new Un({type:"first"}),new Fi]]):a.map(b=>b.length===0?[[new Un({type:"first"})]]:b.map(E=>E.length===0?[new Un({type:"first"})]:(E[0].type!=="first"&&E.unshift(new Un({type:"first"})),E)))}function ql(a,y=[[[]]],b=[],E=[]){switch(y=kh(y,["split","align","align*","aligned","eqnarray"].includes(a)?2:1),a){case"math":return new sa(a,y,b,{mathstyleName:"textstyle"});case"displaymath":return new sa(a,y,b,{mathstyleName:"textstyle"});case"center":return new sa(a,y,b,{columns:[{align:"c"}]});case"multline":case"multline*":return new sa(a,y,b,{columns:[{align:"m"}],leftDelim:".",rightDelim:"."});case"split":return new sa(a,y,b,{columns:[{align:"r"},{align:"l"}],minColumns:2});case"gather":case"gathered":return new sa(a,y,b,{columns:[{gap:.25},{align:"c"},{gap:0}]});case"pmatrix":case"pmatrix*":return new sa(a,y,b,{mathstyleName:"textstyle",leftDelim:"(",rightDelim:")",columns:Fu(E[0])});case"bmatrix":case"bmatrix*":return new sa(a,y,b,{mathstyleName:"textstyle",leftDelim:"[",rightDelim:"]",columns:Fu(E[0])});case"Bmatrix":case"Bmatrix*":return new sa(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\lbrace",rightDelim:"\\rbrace",columns:Fu(E[0])});case"vmatrix":case"vmatrix*":return new sa(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\vert",rightDelim:"\\vert",columns:Fu(E[0])});case"Vmatrix":case"Vmatrix*":return new sa(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\Vert",rightDelim:"\\Vert",columns:Fu(E[0])});case"matrix":case"matrix*":return new sa(a,y,b,{mathstyleName:"textstyle",leftDelim:".",rightDelim:".",columns:Fu(E==null?void 0:E[0])});case"smallmatrix":case"smallmatrix*":return new sa(a,y,b,{mathstyleName:"scriptstyle",columns:Fu(E==null?void 0:E[0]),colSeparationType:"small",arraystretch:.5});case"cases":case"dcases":return new sa(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 sa(a,y,b,{arraystretch:1.2,leftDelim:".",rightDelim:"\\rbrace",columns:[{align:"l"},{gap:1},{align:"l"}]});case"lines":return new sa(a,y,b,{leftDelim:".",rightDelim:".",columns:[{align:"l"}]});case"align":case"align*":case"aligned":case"eqnarray":{let ee=0;for(const me of y)ee=Math.max(ee,me.length);const re=[{gap:0},{align:"r"},{gap:.25},{align:"l"}];let se=2;for(;se<ee;)re.push({gap:1},{align:"r"},{gap:.25},{align:"l"}),se+=2;return re.push({gap:0}),new sa(a,y,b,{arraycolsep:0,columns:re,minColumns:2})}}return new sa(a,y,b,{mathstyleName:"textstyle"})}function Fu(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 sa);)b=b.parent;if(b&&b.type==="array"&&b.environmentName,!b||!(b.parent instanceof sa)){const E=a.at(a.position);if(b=E,!b.parent.parent){let ee=a.extractAtoms([a.position,a.lastOffset]),re=a.extractAtoms([0,a.position]);re.length===0&&(re=Hf()),ee.length===0&&(ee=Hf());let se;return y.endsWith("column")?(se=ql("split",[[re,ee]]),a.root=se,Ku(se,0,0)?$u(a,se,0,0):Ku(se,0,1)?$u(a,se,0,1):a.position=a.offsetOf(E)):(se=ql("lines",[[re],[ee]]),a.root=se,Ku(se,0,0)?$u(a,se,0,0):Ku(se,1,0)?$u(a,se,1,0):a.position=a.offsetOf(E)),[void 0,[0,0]]}if(b.parent instanceof Ja){const ee=b.parent;let re=a.extractAtoms([a.position,a.offsetOf(ee.lastChild)]),se=a.extractAtoms([a.offsetOf(ee.firstChild),a.position]);se.length===0&&(se=Hf()),re.length===0&&(re=Hf());let me="pmatrix";const ge=ee.leftDelim,we=ee.rightDelim;ge==="("&&(we===")"||we==="?")?me="pmatrix":(ge==="["||ge==="\\lbrack")&&(we==="]"||we==="\\rbrack"||we==="?")?me="bmatrix":ge==="\\vert"&&we==="\\vert"?me="vmatrix":ge==="\\Vert"&&we==="\\Vert"?me="Vmatrix":(ge==="{"||ge==="\\lbrace")&&(we==="."||we==="?")&&(me="cases");const Oe=ql(me,y.endsWith("column")?[[se,re]]:[[se],[re]]);return ee.parent.addChildBefore(Oe,ee),ee.parent.removeChild(ee),Ku(Oe,0,0)?$u(a,Oe,0,0):y.endsWith("column")?Ku(Oe,0,1)?$u(a,Oe,0,1):a.position=a.offsetOf(b):Ku(Oe,1,0)?$u(a,Oe,1,0):a.position=a.offsetOf(b),[void 0,[0,0]]}}return b&&b.parent instanceof sa?[b.parent,b.parentBranch]:[void 0,[0,0]]}function Ku(a,y,b){const E=a.getCell(y,b);return!E||E.length!==2?!1:E[1].type==="placeholder"}function Bg(a,y,b,E){const ee=y.getCell(b,E);return ee?[a.offsetOf(ee[0]),a.offsetOf(ee[ee.length-1])]:-1}function $u(a,y,b,E){const ee=Bg(a,y,b,E);typeof ee!="number"&&a.setSelection(ee)}function Kf(a,y,b,E,ee){const re=y.getCell(b,E);re&&a.setPositionHandlingPlaceholder(a.offsetOf(re[ee==="start"?0:re.length-1]))}function $f(a,y){const[b,[E,ee]]=Tg(a,y);if(b)switch(y){case"after row":b.addRowAfter(E),Kf(a,b,E+1,0,"end");break;case"after column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnAfter(ee),Kf(a,b,E,ee+1,"end");break;case"before row":b.addRowBefore(E),Kf(a,b,E,0,"start");break;case"before column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnBefore(ee),Kf(a,b,E,ee,"start");break}}function L0(a){return a.contentWillChange({inputType:"insertText"})?($f(a,"after row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Og(a){return a.contentWillChange({inputType:"insertText"})?($f(a,"before row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function T0(a){return a.contentWillChange({inputType:"insertText"})?($f(a,"after column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Pg(a){return a.contentWillChange({inputType:"insertText"})?($f(a,"before column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function B0(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),re=ee.type==="array"?ee:a.parentEnvironment;return re.environmentName=y,re.leftDelim=b,re.rightDelim=E,a.contentDidChange({}),!0}function O0(a,y){let b=a.at(a.position);for(;b&&!(Array.isArray(b.parentBranch)&&b.parent instanceof sa);)b=b.parent;if(Array.isArray(b==null?void 0:b.parentBranch)&&(b==null?void 0:b.parent)instanceof sa){const E=b.parent,ee=b.parentBranch;let re;switch(y){case"row":if(E.rowCount>1){E.removeRow(ee[0]);const se=E.getCell(Math.max(0,ee[0]-1),ee[1]);re=a.offsetOf(se[se.length-1])}break;case"column":if(E.colCount>E.minColumns){E.removeColumn(ee[1]);const se=E.getCell(ee[0],Math.max(0,ee[1]-1));re=a.offsetOf(se[se.length-1])}break}re&&a.setPositionHandlingPlaceholder(re)}}function Ng(a){return a.contentWillChange({inputType:"deleteContent"})?(O0(a,"row"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}function _g(a){return a.contentWillChange({inputType:"deleteContent"})?(O0(a,"column"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}Il({addRowAfter:L0,addColumnAfter:T0,addRowBefore:Og,addColumnBefore:Pg,removeRow:Ng,removeColumn:_g,setEnvironment:B0},{target:"model",canUndo:!0,changeContent:!0,changeSelection:!0});function Hf(){return[new Fi]}var P0=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}};P0.maximumDepth=1e3;var Rg=P0;function Ah(a,y,b){if(a.at(y).mode!=="text")return y;const E=b==="backward"?-1:1;let ee;if(pe.test(a.at(y).value)){let re=y,se;do se=a.at(re).mode==="text"&&pe.test(a.at(re).value),re+=E;while(a.at(re)&&se);ee=a.at(re)?re-2*E:re-E}else if(/\s/.test(a.at(y).value)){let re=y;for(;a.at(re)&&a.at(re).mode==="text"&&/\s/.test(a.at(re).value);)re+=E;if(!a.at(re))ee=re-E;else{let se=!0;do se=a.at(re).mode==="text"&&!/\s/.test(a.at(re).value),re+=E;while(a.at(re)&&se);ee=a.at(re)?re-2*E:re-E}}else{let re=y;for(;a.at(re)&&a.at(re).mode==="text"&&!/\s/.test(a.at(re).value);)re+=E;ee=a.at(re)?re:re-E;let se=!0;for(;a.at(re)&&se;)se=a.at(re).mode==="text"&&/\s/.test(a.at(re).value),se&&(ee=re),re+=E;ee=a.at(re)?re-2*E:re-E}return ee-(E>0?0:1)}function vd(a,y,b){var E,ee,re,se,me,ge,we;const Oe=a.position;(E=b==null?void 0:b.extend)!=null&&E||a.collapseSelection(y);let ot=a.at(a.position);if(y==="forward"&&(ot.type==="subsup"?(ot=ot.rightSibling,ot||(ot=a.at(a.position+1))):ot=a.at(a.position+1)),!ot)return a.announce("plonk"),!1;let Et=a.offsetOf(ot);if(ot instanceof dc)Et=Ah(a,Et,y);else if(ot instanceof Rs)if(ot.isSuggestion)for(console.assert(y==="forward");ot&&ot instanceof Rs;)ot.isSuggestion=!1,Et=a.offsetOf(ot),ot=ot.rightSibling;else if(y==="forward"){if(ot=ot.rightSibling,!ot||!(ot instanceof Rs))return a.announce("plonk"),!1;for(;ot&&ot instanceof Rs&&/[a-zA-Z\*]/.test(ot.value);)Et=a.offsetOf(ot),ot=ot.rightSibling}else{if(ot=ot.leftSibling,!ot||!(ot instanceof Rs))return a.announce("plonk"),!1;for(;ot&&ot instanceof Rs&&/[a-zA-Z\*]/.test(ot.value);)Et=a.offsetOf(ot),ot=ot.leftSibling}else if(y==="forward"&&ot.type==="mopen"){let Zt=0;do ot.type==="mopen"?Zt+=1:ot.type==="mclose"&&(Zt-=1),ot=ot.rightSibling;while(!ot.isLastSibling&&Zt!==0);Et=a.offsetOf(ot.leftSibling)}else if(y==="backward"&&ot.type==="mclose"){let Zt=0;do ot.type==="mopen"?Zt+=1:ot.type==="mclose"&&(Zt-=1),ot=ot.leftSibling;while(!ot.isFirstSibling&&Zt!==0);Et=a.offsetOf(ot)}else if(y==="backward")if(ot.type==="first")for(;Et>0&&ot.type==="first";)Et-=1,ot=a.at(Et);else{const Zt=ot.type;ot.type==="subsup"&&(Et=a.offsetOf(a.at(Et).leftSibling)),Et-=1;let Yt=(ee=a.at(Et))==null?void 0:ee.type;for(;Et>=0&&Yt===Zt;)((re=a.at(Et))==null?void 0:re.type)==="subsup"?Et=a.offsetOf(a.at(Et).leftSibling):Et-=1,Yt=a.at(Et).type}else{const{type:Zt}=ot;let Yt=(se=a.at(Et))==null?void 0:se.type;const{lastOffset:Pn}=a;for(;Et<=Pn&&(Yt===Zt||Yt==="subsup");){for(;((me=a.at(Et).rightSibling)==null?void 0:me.type)==="subsup";)Et=a.offsetOf(a.at(Et).rightSibling);Et+=1,Yt=(ge=a.at(Et))==null?void 0:ge.type}Et-=1}if((we=b==null?void 0:b.extend)!=null&&we){if(!a.setSelection(a.anchor,Et))return a.announce("plonk"),!1}else{if(Et===a.position)return a.announce("plonk"),!1;a.position=Et}return a.announce("move",Oe),a.mathfield.stopCoalescingUndo(),!0}function Dc(a,y,b){var E,ee;if(b=b!=null?b:{extend:!1},a.mathfield.adoptStyle=y==="backward"?"right":"left",y!=="forward"){const[me,ge]=g0(a);me!==void 0&&ge!==void 0&&a.deleteAtoms([me,ge])}if(y==="upward")return Fg(a,b);if(y==="downward")return Kg(a,b);if(b.extend){let me=Zf(a,a.position,y);me<0&&(me=0),me>a.lastOffset&&(me=a.lastOffset);const ge=a.setSelection(a.anchor,me);return a.mathfield.stopCoalescingUndo(),ge}if(a.selectionIsPlaceholder){a.collapseSelection(y);const me=Dc(a,y);return a.mathfield.stopCoalescingUndo(),me}let re=a.position;const se=re;if(a.collapseSelection(y)?(re=a.position,N0(a,re)||(re=Zf(a,re,y))):re=Zf(a,re,y),re<0||re>a.lastOffset){let me=!0;return a.silenceNotifications||(me=(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),me&&a.announce("plonk"),me}return a.setPositionHandlingPlaceholder(re),a.mathfield.stopCoalescingUndo(),a.announce("move",se),!0}function Zf(a,y,b){return y=y+(b==="forward"?1:-1),y<0||y>a.lastOffset||N0(a,y)?y:Zf(a,y,b)}function N0(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 zg(a,y,b){let E=1/0,ee=0;for(;ee<y.length;ee++){const re=od(a.getHTMLElement(y[ee])).right,se=Math.abs(b-re);if(se<=E)E=se;else break}return y[ee-1]}function Wf(a,y,b,E,ee){const re=a.mathfield.hasEditablePrompts,se=re?b.filter(we=>we.type==="prompt"&&!we.captureSelection):b,me=od(a.mathfield.getHTMLElement(y)).right,ge=a.offsetOf(zg(a.mathfield,se,me))-(re?1:0);if(E){const[we,Oe]=a.selection.ranges[0];let ot;ge<(ee==="up"?we:Oe)?ot={ranges:[[ge,Oe]],direction:"backward"}:ot={ranges:[[we,ge]],direction:"forward"},a.setSelection(ot)}else a.setPositionHandlingPlaceholder(ge);a.announce(`move ${ee}`)}function Fg(a,y){var b,E;const ee=(b=y==null?void 0:y.extend)!=null?b:!1;ee||a.collapseSelection("backward");const re=()=>{var ge,we;let Oe=!0;return a.silenceNotifications||(Oe=(we=(ge=a.mathfield.host)==null?void 0:ge.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"upward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?we:!0),a.announce(Oe?"plonk":"line"),Oe},se=a.at(a.position);let me=se;for(;me&&me.parentBranch!=="below"&&!(Array.isArray(me.parentBranch)&&me.parent instanceof sa);)me=me.parent;if(Array.isArray(me==null?void 0:me.parentBranch)&&me.parent instanceof sa){const ge=me.parent;if(me.parentBranch[0]<1)return re();const we=me.parentBranch[0]-1,Oe=ge.array[we][me.parentBranch[1]];if(!Oe.some(Et=>Et.type==="prompt"&&!Et.captureSelection)&&a.mathfield.hasEditablePrompts)return re();Wf(a,se,Oe,ee,"up")}else if(me){const ge=(E=me.parent.branch("above"))!=null?E:me.parent.createBranch("above");if(!ge.some(Oe=>Oe.type==="prompt"&&Oe.placeholderId)&&a.mathfield.hasEditablePrompts)return re();Wf(a,se,ge,ee,"up")}else return re();return a.mathfield.stopCoalescingUndo(),!0}function Kg(a,y){var b,E;const ee=(b=y==null?void 0:y.extend)!=null?b:!1;ee||a.collapseSelection("forward");const re=()=>{var ge,we;let Oe=!0;return a.silenceNotifications||(Oe=(we=(ge=a.mathfield.host)==null?void 0:ge.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"downward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?we:!0),a.announce(Oe?"plonk":"line"),Oe},se=a.at(a.position);let me=se;for(;me&&me.parentBranch!=="above"&&!(Array.isArray(me.parentBranch)&&me.parent instanceof sa);)me=me.parent;if(Array.isArray(me==null?void 0:me.parentBranch)&&me.parent instanceof sa){const ge=me.parent;if(me.parentBranch[0]+1>ge.array.length-1)return re();const we=me.parentBranch[0]+1,Oe=ge.array[we][me.parentBranch[1]];if(!Oe.some(Et=>Et.type==="prompt"&&!Et.captureSelection)&&a.mathfield.hasEditablePrompts)return re();Wf(a,se,Oe,ee,"down")}else if(me){const ge=(E=me.parent.branch("below"))!=null?E:me.parent.createBranch("below");if(!ge.some(Oe=>Oe.type==="prompt")&&a.mathfield.hasEditablePrompts)return re();Wf(a,se,ge,ee,"down")}else return re();return!0}function _0(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 $g(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 R0(a){var y;if(a.collapseSelection(),$g(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 Xl({style:b.computedStyle}),b),b=b.rightSibling),b.createBranch("superscript"),a.setSelection(a.getSiblingsRange(a.offsetOf(b.superscript[0]))),!0}function z0(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 Xl({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(ge){const we=[],Oe=[];return[...ge.querySelectorAll(`input, select, textarea, a[href], button,
|
|
|
[tabindex], audio[controls], video[controls],
|
|
|
[contenteditable]:not([contenteditable="false"]), details>summary`)].filter(y).forEach((Et,Zt)=>{const Yt=E(Et);Yt===0?we.push(Et):Oe.push({documentOrder:Zt,tabIndex:Yt,node:Et})}),Oe.sort((Et,Zt)=>Et.tabIndex===Zt.tabIndex?Et.documentOrder-Zt.documentOrder:Et.tabIndex-Zt.tabIndex).map(Et=>Et.node).concat(we)}function y(ge){return!(!b(ge)||ee(ge)||E(ge)<0)}function b(ge){return!(ge.disabled||ge.type==="hidden"&&ge.tagName.toUpperCase()==="INPUT"||me(ge))}function E(ge){var we;const Oe=Number.parseInt((we=ge.getAttribute("tabindex"))!=null?we:"NaN",10);return Number.isNaN(Oe)?ge.contentEditable==="true"||(ge.nodeName==="AUDIO"||ge.nodeName==="VIDEO")&&ge.getAttribute("tabindex")===null?0:ge.tabIndex:Oe}function ee(ge){return ge.tagName.toUpperCase()==="INPUT"&&ge.type==="radio"&&!se(ge)}function re(ge,we){for(const Oe of ge)if(Oe.checked&&Oe.form===we)return Oe;return null}function se(ge){var we;if(!ge.name)return!0;const ot=((we=ge.form)!=null?we:ge.ownerDocument).querySelectorAll('input[type="radio"][name="'+ge.name+'"]'),Et=re(ot,ge.form);return!Et||Et===ge}function me(ge){if(!et()||ge===document.activeElement||ge.contains(document.activeElement))return!1;if(getComputedStyle(ge).visibility==="hidden")return!0;const we=ge.getBoundingClientRect();if(we.width===0||we.height===0)return!0;for(;ge;){if(getComputedStyle(ge).display==="none")return!0;ge=ge.parentElement}return!1}return et()?a(document.body):[]}function ol(a,y,b="forward"){const E=a.position;if(Array.isArray(y)){const ee=a.offsetOf(y[0]),re=a.offsetOf(y[y.length-1]);return b==="forward"?a.setSelection(ee,re):a.setSelection(re,ee),a.announce("move",E),a.mathfield.stopCoalescingUndo(),!0}return b==="forward"?ol(a,[y.leftSibling,y]):ol(a,[y,y.leftSibling])}function pc(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 re=y==="forward"?1:-1;a.at(a.anchor).type==="placeholder"&&Dc(a,y);let se;const me=a.at(a.anchor).parentPrompt;me?y==="forward"?se=a.offsetOf(me)+1:se=a.offsetOf(me.leftSibling):se=Math.max(a.position+re,0);const ge=Ih(a,se,y);if(!ge||y==="forward"&&a.offsetOf(ge)<se||y==="backward"&&a.offsetOf(ge)>se){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 Oe=Zg();if(!document.activeElement||Oe.length<=1)return a.announce("plonk"),!1;let ot=Oe.indexOf(document.activeElement)+re;return ot<0&&(ot=Oe.length-1),ot>=Oe.length&&(ot=0),Oe[ot].focus(),a.mathfield.stopCoalescingUndo(),!0}return pc(a,ge),!0}function Ih(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)}Il({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 re;if(typeof ee=="string"&&(re=y[ee]),!re){const me=b.subsupPlacement?z0(a):R0(a);return a.mathfield.stopCoalescingUndo(),me}E.branch(re)||E.createBranch(re);const se=a.setSelection(a.getBranchRange(a.offsetOf(E),re));return a.mathfield.stopCoalescingUndo(),se},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=>_0(a),moveToNextChar:a=>Dc(a,"forward"),moveToPreviousChar:a=>Dc(a,"backward"),moveUp:a=>Dc(a,"upward"),moveDown:a=>Dc(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 re=a.at(a.position);if(re.mode==="text"){if(a.selectionIsCollapsed){let Et=re;for(;Et&&Et.mode==="text";)Et=Et.leftSibling;let Zt=re;for(;((y=Zt.rightSibling)==null?void 0:y.mode)==="text";)Zt=Zt.rightSibling;if(Et&&Zt)return ol(a,[Et,Zt])}if(re.rightSibling.mode==="text"){let Et=re;for(;Et&&Et.mode==="text";)Et=Et.rightSibling;return Et?(pc(a,(b=Et.leftSibling)!=null?b:Et),a.mathfield.switchMode("math"),!0):pc(a,a.lastOffset)}}const me=a.at(a.anchor).parentPrompt,ge=me?a.offsetOf(me)+1:Math.max(a.position+1,0),we=Ih(a,ge,"forward");if(we)return pc(a,we);const Oe=F0(a,re,Et=>Et.type==="leftright"||Et.type==="text","forward");if(Oe){if(Oe.mode==="text"){let Et=Oe;for(;Et&&Et.mode==="text";)Et=Et.rightSibling;return ol(a,[(E=Oe.leftSibling)!=null?E:Oe,(ee=Et.leftSibling)!=null?ee:Et])}return ol(a,Oe)}const ot=re.parent;if(ot){if(ot.type==="leftright"||ot.type==="surd")return ol(a,ot);if(re.parentBranch==="superscript"&&ot.subscript)return ol(a,ot.subscript);if(re.parentBranch==="above"&&ot.below)return ol(a,ot.below);if(re.parentBranch==="superscript"||re.parentBranch==="subscript")return pc(a,ot);if(re.parentBranch==="above"||re.parentBranch==="below")return ol(a,ot)}return pc(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 me=b;for(;me&&me.mode==="text";)me=me.leftSibling;let ge=b;for(;((y=ge.rightSibling)==null?void 0:y.mode)==="text";)ge=ge.rightSibling;if(me&&ge)return ol(a,[me,ge])}for(;b&&b.mode==="text";)b=b.leftSibling;return b?pc(a,b):pc(a,0)}const ee=a.at(a.anchor).parentPrompt,re=ee?a.offsetOf(ee.leftSibling):Math.max(a.position-1,0),se=Ih(a,re,"backward");if(se)return pc(a,se);if(E==="math"){const me=F0(a,b,we=>we.type==="leftright"||we.type==="text","backward");if(me){if(me.mode==="text"){let we=me;for(;we&&we.mode==="text";)we=we.leftSibling;return ol(a,[me,we])}return ol(a,me)}const ge=b.parent;if(ge){if(ge.type==="leftright"||ge.type==="surd")return ol(a,ge);if(b.parentBranch==="subscript"&&ge.superscript)return ol(a,ge.superscript);if(b.parentBranch==="below"&&ge.above)return ol(a,ge.above);if(b.parentBranch==="superscript"||b.parentBranch==="subscript")return pc(a,ge);if(b.parentBranch==="above"||b.parentBranch==="below")return ol(a,ge)}return pc(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:R0,moveToSubscript:z0},{target:"model",changeSelection:!0}),Il({moveToNextPlaceholder:a=>jf(a,"forward"),moveToPreviousPlaceholder:a=>jf(a,"backward")},{target:"model",changeSelection:!0,audioFeedback:"return"});function F0(a,y,b,E){if(E==="forward"){let re=y.rightSibling;for(;re&&!b(re);)re=re.rightSibling;return re}let ee=y.leftSibling;for(;ee&&!b(ee);)ee=ee.leftSibling;return ee}function Uf(a,y,b){typeof y=="function"&&(b=y,y=1/0),y===void 0&&(y=1/0);let E=a.position,ee=!1,re="";for(;!ee;){const se=a.at(E);ee=y===0||se===void 0||se.type==="first"||se.mode!=="math"||!(se.type&&/mord|mpunct|operator/.test(se.type)||se.type==="mop"&&/[a-zA-Z ]+/.test(se.value))||!se.hasEmptyBranch("superscript")||!se.hasEmptyBranch("subscript")||typeof b=="function"&&!b(se),ee||(se.mode="text",se.command=se.value,se.verbatimLatex=void 0,re+=se.value),E-=1,y-=1}a.contentDidChange({data:re,inputType:"insertText"})}function Hu(a,y,b){typeof y=="function"&&(b=y,y=1/0),y===void 0&&(y=1/0);let E=a.position,ee=!1;const re=[];for(;!ee;){const se=a.at(E);ee=y===0||!se||se.type==="first"||se.isFirstSibling||se.mode!=="text"||se.value===" "||typeof b=="function"&&!b(se),ee||(re.push(Un.serialize([se],{defaultMode:"math"})),se.mode="math"),E-=1,y-=1}Dh(a),a.contentDidChange({data:pa(re),inputType:"insertText"})}function Dh(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 jg(a,y,b){const{model:E}=a;if(E.mode==="latex"||!E.at(E.position).isLastSibling||!b||!kf(b))return!1;const ee=dd(b);if(!E.selectionIsCollapsed)return!!(a.model.mode==="text"&&/[/_^]/.test(ee));const re=Wg(E)+ee;if(a.model.mode==="text"){if(y==="Esc"||/[/\\]/.test(ee))return!0;if(/[\^_]/.test(ee))return/(^|\s)[a-zA-Z][^_]$/.test(re)&&Hu(E,1),!0;const se={")":"(","}":"{","]":"["}[ee],{parent:me}=E.at(E.position);if(se&&me instanceof Ja&&me.leftDelim===se)return!0;if(/(^|[^a-zA-Z])(a|I) $/.test(re))return!1;if(/[$€£₤₺¥¤฿¢₡₧₨₹₩₱]/u.test(ee))return!0;if(/(^|[^a-zA-Z'’])[a-zA-Z] $/.test(re))return Hu(E,1),!1;if(/\D\.[^\d\s]$/.test(re)){Hu(E,1);const ge=E.at(E.position);return ge.value="\u22C5",ge.style.variant="normal",ge.command="\\cdot",ge.verbatimLatex=void 0,E.contentDidChange({data:"\\cdot",inputType:"insertText"}),!0}if(/(^|\s)[a-zA-Z][^a-zA-Z]$/.test(re)||/\.\d$/.test(re)||/\([\d+\-.]$/.test(re))return Hu(E,1),!0;if(/\([a-z][,;]$/.test(re))return Hu(E,2),!0;if(/[\d+\-=><*|]$/.test(ee))return Dh(E),!0}else{if(y==="[Space]")return Uf(E,void 0,se=>/[a-z][:,;.]$/.test(se.value)),!0;if(/[a-zA-Z]{3,}$/.test(re)&&!/(dxd|abc|xyz|uvw)$/.test(re))return Uf(E,void 0,se=>/[a-zA-Z]/.test(se.value)),!0;if(/(^|\W)(if)$/i.test(re))return Uf(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(re)&&!/(αβγ)$/.test(re))return Uf(E,void 0,se=>/(:|,|;|.|\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5)/u.test(se.value)),!0;if(ee==="?"||ee==="."&&!/[\d-+]\.$/.test(re))return!0}return!1}function Ug(a,y){if(!a.isSelectionEditable||!a.keystrokeCaptionVisible)return;const b=K0(),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 Vg(a){if(a.keystrokeCaptionVisible=!a.keystrokeCaptionVisible,a.keystrokeCaptionVisible){const y=K0();y.innerHTML=""}else{const y=Df("mathlive-keystroke-caption-panel");y.style.visibility="hidden"}return!1}function K0(){const a=document.getElementById("mathlive-keystroke-caption-panel");return a||(Al("keystroke-caption"),Al("core"),Df("mathlive-keystroke-caption-panel"))}function Gg(){document.getElementById("mathlive-keystroke-caption-panel")&&(bh("mathlive-keystroke-caption-panel"),x("core"),x("keystroke-caption"))}function $0(a,y){var b,E,ee;const{model:re}=a,se=p0(y);if(y.isTrusted){Rm(y);const Zt=Gd();a.keyboardLayout!==Zt.id&&(a.keyboardLayout=Zt.id,a._keybindings=void 0)}if(clearTimeout(a.inlineShortcutBufferFlushTimer),a.inlineShortcutBufferFlushTimer=0,Ug(a,se),y.isTrusted&&y.defaultPrevented)return a.flushInlineShortcutBuffer(),!1;let me,ge="",we;const Oe=a.inlineShortcutBuffer;if(a.isSelectionEditable){if(re.mode==="math")if(se==="[Backspace]")Oe.pop();else if(!kf(y))a.flushInlineShortcutBuffer();else{const Zt=dd(y),Yt=[...(E=(b=Oe[Oe.length-1])==null?void 0:b.keystrokes)!=null?E:[],Zt];Oe.push({state:re.getState(),keystrokes:Yt,leftSiblings:Qg(a)});let Pn=0,Ir="";for(;!me&&Pn<Yt.length;)we=Oe.length-(Yt.length-Pn),Ir=Yt.slice(Pn).join(""),me=Bd(Oe[we].leftSiblings,Ir,a.options.inlineShortcuts),!me&&/^[a-zA-Z][a-zA-Z0-9]+?([_\^][a-zA-Z0-9\*\+\-]+?)?$/.test(Ir)&&(me=a.options.onInlineShortcut(a,Ir)),Pn+=1;a.flushInlineShortcutBuffer({defer:!0})}a.options.smartMode&&(me?a.switchMode("math"):jg(a,se,y)&&(a.switchMode({math:"text",text:"math"}[re.mode]),ge=""))}if(!me){if(ge||(ge=Wm(a.keybindings,re.mode,y)),!ge&&(se==="[Enter]"||se==="[Return]")){let Zt=!1;return re.contentWillChange({inputType:"insertLineBreak"})&&(a.host&&(Zt=!a.host.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),Zt||y.preventDefault&&(y.preventDefault(),y.stopPropagation()),re.contentDidChange({inputType:"insertLineBreak"})),Zt}if((!ge||se==="[Space]")&&re.mode==="math"){if(se==="[Space]"){if(a.adoptStyle="none",a.flushInlineShortcutBuffer(),a.options.mathModeSpace)return ta.insert(re,a.options.mathModeSpace,{format:"latex",mode:"math"}),a.snapshot("insert-space"),ge="",a.dirty=!0,a.scrollIntoView(),y.preventDefault&&(y.preventDefault(),y.stopPropagation()),!1;const Zt=re.at(re.position+1),Yt=re.at(re.position-1);if((Zt==null?void 0:Zt.mode)==="text"||(Yt==null?void 0:Yt.mode)==="text")return ta.insert(re," ",{mode:"text"}),a.snapshot("insert-space"),a.dirty=!0,a.scrollIntoView(),!1}(ee=re.at(re.position))!=null&&ee.isDigit()&&window.MathfieldElement.decimalSeparator===","&&dd(y)===","&&(ge="insertDecimalSeparator")}}if(!me&&!ge){if(re.mathfield.smartFence){if(Th(re,dd(y),a.effectiveStyle))return a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}else{const{parent:Zt}=re.at(re.position);if(Zt instanceof Ja&&Zt.rightDelim==="?"&&re.at(re.position).isLastSibling&&/^[)}\]|]$/.test(se))return a.snapshot(),Zt.isDirty=!0,Zt.rightDelim=se,re.position+=1,re.selectionDidChange(),re.contentDidChange({data:dd(y),inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1;if(!re.selectionIsCollapsed){const Yt=dd(y);if(Yt==="("||Yt==="{"||Yt==="["){const Pn={"(":"(","{":"\\lbrace","[":"\\lbrack"}[Yt],Ir={"(":")","{":"\\rbrace","[":"\\rbrack"}[Yt],[Ln,ir]=Is(re.selection);return a.snapshot(),re.position=ir,ta.insert(re,Ir,{format:"latex"}),re.position=Ln,ta.insert(re,Pn,{format:"latex"}),re.setSelection(Ln+1,ir+1),re.contentDidChange({data:Yt,inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}}}return!0}const ot=re.at(Math.max(re.position,re.anchor)),{parent:Et}=ot;if(ge==="moveAfterParent"&&(Et==null?void 0:Et.type)==="leftright"&&ot.isLastSibling&&a.options.smartFence&&Th(re,".",a.defaultStyle)&&(ge="",Vo(a)),a.keyboardDelegate.cancelComposition(),ge)a.executeCommand(ge);else if(me){const Zt=a.effectiveStyle;re.setState(Oe[we].state);const Yt=Oe[Oe.length-1].keystrokes;for(const Pn of Yt)ta.insert(re,Pn,{silenceNotifications:!0,style:Zt});a.snapshot("insert-shortcut"),re.setState(Oe[we].state),re.deferNotifications({content:!0,selection:!0,data:me,type:"insertText"},()=>(ta.insert(re,me,{format:"latex",style:Zt}),Dh(a.model),me.endsWith(" ")&&(a.switchMode("text"),ta.insert(re," ",{style:Zt,mode:"text"})),a.snapshot(),re.selectionIsCollapsed||a.flushInlineShortcutBuffer(),!0)),a.dirty=!0,re.announce("replacement")}return a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}function Lh(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=Sl(y);const re=window.mathVirtualKeyboard;if(re!=null&&re.isShifted&&(ee=typeof ee=="string"?ee.toUpperCase():ee.map(ge=>ge.toUpperCase())),b.simulateKeystroke){let ge=!0;for(const we of ee)$0(a,new KeyboardEvent("keypress",{key:we}))&&(ge=!1);if(ge)return}const se=E.at(E.position),me=xe(xe({},se.computedStyle),a.defaultStyle);if(E.selectionIsCollapsed||(E.deleteAtoms(Is(E.selection)),a.snapshot("delete")),E.mode==="latex")E.deferNotifications({content:!0,selection:!0,data:y,type:"insertText"},()=>{If(a);for(const ge of ee)ta.insert(E,ge);a.snapshot("insert-latex"),Yd(a)});else if(E.mode==="text"){for(const ge of ee)ta.insert(E,ge,{style:me});a.snapshot("insert-text")}else if(E.mode==="math")for(const ge of ee)Yg(a,ge,me,se);a.dirty=!0,a.scrollIntoView()}function Qg(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 Yg(a,y,b,E){const ee=a.model;let re={"^":"moveToSuperscript",_:"moveToSubscript"," ":"moveAfterParent"}[y];if(y===" "&&a.options.mathModeSpace&&(re=["insert",a.options.mathModeSpace]),re){a.executeCommand(re);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){Xg(ee),ta.insert(ee,y,{style:b}),a.snapshot(),_0(ee),a.snapshot();return}if(/[a-zA-Z0-9]/.test(y)&&a.adoptStyle!=="none"){const se=a.adoptStyle==="left"?E:E.parent?E.rightSibling:null;(se==null?void 0:se.type)==="mord"&&/[a-zA-Z0-9]/.test(se.value)&&(b=xe({},b),se.style.variant&&(b.variant=se.style.variant),se.style.variantStyle&&(b.variantStyle=se.style.variantStyle))}ta.insert(ee,y,{style:b}),a.snapshot(`insert-${ee.at(ee.position).type}`)}function Xg(a){a.selectionIsCollapsed||(a.deleteAtoms(Is(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,re={"(":"(",")":")","{":"\\lbrace","}":"\\rbrace","[":"\\lbrack","]":"\\rbrack","|":"|"}[y];if(!re)return!1;const se=te[re],me=ne[re];if(!a.selectionIsCollapsed){a.mathfield.snapshot();const[ge,we]=Is(a.selection),Oe=a.extractAtoms([ge,we]),ot=ee.addChildrenAfter([new Ja("left...right",Oe,{leftDelim:re,rightDelim:me})],a.at(ge));return a.setSelection(a.offsetOf(ot.firstChild),a.offsetOf(ot.lastChild)),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:re,inputType:"insertText"}),!0}if(re==="|"){const ge=ee instanceof Ja?ee.leftDelim+ee.rightDelim:"";if(ge==="\\lbrace\\rbrace"||ge==="\\{\\}"||ge==="\\lbrace?")return a.mathfield.snapshot(),ta.insert(a,"\\,\\middle\\vert\\,",{format:"latex",style:b}),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:re,inputType:"insertText"}),!0}if(me){if(ee instanceof Ja&&ee.firstChild===E&&(ee.leftDelim==="?"||ee.leftDelim==="."))return ee.leftDelim=re,ee.isDirty=!0,a.mathfield.snapshot(),a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(!(ee instanceof Ja)){let ot=E;for(;ot&&!(ot.type==="mclose"&&ot.value===me);)ot=ot.rightSibling;if(ot){a.mathfield.snapshot();const Et=a.extractAtoms([a.offsetOf(E),a.offsetOf(ot)]);return Et.pop(),ee.addChildrenAfter([new Ja("left...right",Et,{leftDelim:re,rightDelim:me})],E),a.position=a.offsetOf(ee.firstChild)+1,a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}}const ge=a.offsetOf(E.lastSibling);let we;for(we=a.position;we<=ge;we++){const ot=a.at(we);if(ot instanceof Ja&&(ot.leftDelim==="?"||ot.leftDelim===".")&&H0(re,ot.rightDelim))break}const Oe=a.at(we);if(we<=ge&&Oe instanceof Ja){Oe.leftDelim=re,a.mathfield.snapshot();let ot=a.extractAtoms([a.position,we-1]);return ot=ot.filter(Et=>Et.type!=="first"),Oe.addChildren(ot,Oe.parentBranch),a.position+=1,a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(ee instanceof Ja&&(ee.leftDelim==="?"||ee.leftDelim===".")&&H0(re,ee.rightDelim)){ee.isDirty=!0,ee.leftDelim=re,a.mathfield.snapshot();const ot=a.extractAtoms([a.offsetOf(E.firstSibling),a.position]);for(const Et of ot)ee.parent.addChildBefore(Et,ee);return a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(!(ee instanceof Ja&&ee.leftDelim==="|")){if(a.mathfield.snapshot(),ta.insert(a,`\\left${re}\\right?`,{format:"latex",style:b}),E.lastSibling.type!=="first"){const ot=a.offsetOf(E.lastSibling),Et=a.extractAtoms([a.position,ot]);a.at(a.position).body=Et,a.position-=1}return a.mathfield.snapshot("insert-fence"),!0}}if(se){let ge=E;for(;ge;){if(ge.type==="mopen"&&ge.value===se){a.mathfield.snapshot();const Zt=ge.leftSibling,Yt=a.extractAtoms([a.offsetOf(ge.leftSibling),a.offsetOf(E)]);Yt.shift();const Pn=new Ja("left...right",Yt,{leftDelim:se,rightDelim:re});return ee.addChildrenAfter([Pn],Zt),a.position=a.offsetOf(Pn),a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}ge=ge.leftSibling}if(ee instanceof Ja&&E.isLastSibling&&Bh(ee.leftDelim,re))return a.mathfield.snapshot(),ee.isDirty=!0,ee.rightDelim=re,a.position+=1,a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;const we=a.offsetOf(E.firstSibling);let Oe;for(Oe=a.position;Oe>=we;Oe--){const Zt=a.at(Oe);if(Zt instanceof Ja&&(Zt.rightDelim==="?"||Zt.rightDelim===".")&&Bh(Zt.leftDelim,re))break}const ot=a.at(Oe);if(Oe>=we&&ot instanceof Ja)return a.mathfield.snapshot(),ot.rightDelim=re,ot.addChildren(a.extractAtoms([Oe,a.position]),ot.parentBranch),a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(ee instanceof Ja&&(ee.rightDelim==="?"||ee.rightDelim===".")&&Bh(ee.leftDelim,re))return a.mathfield.snapshot(),ee.isDirty=!0,ee.rightDelim=re,ee.parent.addChildren(a.extractAtoms([a.position,a.offsetOf(E.lastSibling)]),ee.parentBranch),a.position=a.offsetOf(ee),a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;const Et=ee.parent;return Et instanceof Ja&&(Et.rightDelim==="?"||Et.rightDelim===".")&&a.at(a.position).isLastSibling?(a.position=a.offsetOf(Et),Th(a,re,b)):!1}return!1}function Bh(a,y){return a?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a)?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y):ne[a]===y:!0}function H0(a,y){return y?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y)?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a):te[y]===a:!0}Il({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:Vg,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)=>(Lh(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),re=0;for(;E.includes(ee)&&re<100;){if(re===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),re++}return a.insert(`\\placeholder[${y!=null?y:ee}]{}`,b),!0}}),Il({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"}),Il({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})&&(Yd(a),a.startRecording(),a.snapshot("paste"),a.model.contentDidChange({inputType:"insertFromPaste"}),Vo(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=Oh(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=xe(xe({},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}Il({applyStyle:Jg},{target:"mathfield",canUndo:!0,changeContent:!0});function Oh(a,y){var b,E,ee,re,se,me,ge,we,Oe,ot;const Et={};if(typeof y.color=="string"){const Yt=(E=a.colorMap((b=y.color)!=null?b:y.verbatimColor))!=null?E:"none";Yt!==y.color&&(Et.verbatimColor=(ee=y.verbatimColor)!=null?ee:y.color),Et.color=Yt}if(typeof y.backgroundColor=="string"){const Yt=(se=a.backgroundColorMap((re=y.backgroundColor)!=null?re:y.verbatimBackgroundColor))!=null?se:"none";Yt!==y.backgroundColor&&(Et.verbatimBackgroundColor=(me=y.verbatimBackgroundColor)!=null?me:y.backgroundColor),Et.backgroundColor=Yt}typeof y.fontFamily=="string"&&(Et.fontFamily=y.fontFamily),typeof y.series=="string"&&(Et.fontSeries=y.series),typeof y.fontSeries=="string"&&(Et.fontSeries=y.fontSeries.toLowerCase()),Et.fontSeries&&(Et.fontSeries=(ge={bold:"b",medium:"m",normal:"m"}[Et.fontSeries])!=null?ge:Et.fontSeries),typeof y.shape=="string"&&(Et.fontShape=y.shape),typeof y.fontShape=="string"&&(Et.fontShape=y.fontShape.toLowerCase()),Et.fontShape&&(Et.fontShape=(we={italic:"it",up:"n",upright:"n",normal:"n"}[Et.fontShape])!=null?we:Et.fontShape),y.variant&&(Et.variant=y.variant.toLowerCase()),y.variantStyle&&(Et.variantStyle=y.variantStyle.toLowerCase());const Zt=(Oe=y.size)!=null?Oe:y.fontSize;return typeof Zt=="number"?Et.fontSize=Math.max(1,Math.min(10,Zt)):typeof Zt=="string"&&(Et.fontSize=(ot={size1:1,size2:2,size3:3,size4:4,size5:5,size6:6,size7:7,size8:8,size9:9,size10:10}[Zt.toLowerCase()])!=null?ot:{tiny:1,scriptsize:2,footnotesize:3,small:4,normal:5,normalsize:5,large:6,Large:7,LARGE:8,huge:9,Huge:10}[Zt]),Et}function Ph(a){let[y,b]=Is(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,re;let se=a.at(y);if(!se)return y;const me=b==="forward"?1:-1;if(se.mode==="text"){for(;se&&!(se.mode!=="text"||!pe.test(se.value));)y+=me,se=a.at(y);return b==="backward"?y-1:y}if(se.mode==="latex"){if(/[a-zA-Z\*]/.test(se.value))if(b==="backward")for(;se&&se.mode==="latex"&&se.value!=="\\"&&/[a-zA-Z]/.test(se.value);)y+=me,se=a.at(y);else for(;se&&se.mode==="latex"&&/[a-zA-Z\*]/.test(se.value);)y+=me,se=a.at(y);else if(se.value==="{"){if(b==="forward"){for(;se&&se.mode==="latex"&&se.value!=="}";)y+=me,se=a.at(y);return y}return y-1}else if(se.value==="}"){if(b==="backward"){for(;se&&se.mode==="latex"&&se.value!=="{";)y+=me,se=a.at(y);return y-1}return y}return y-1}if(se.mode==="math"){if(se.isDigit()){for(;(E=a.at(y+me))!=null&&E.isDigit();)y+=me;return b==="backward"?y-1:y}if(se.style.variant||se.style.variantStyle){let ge=(ee=a.at(y))==null?void 0:ee.style;for(;ge&&ge.variant===se.style.variant&&ge.variantStyle===se.style.variantStyle;)ge=(re=a.at(y+me))==null?void 0:re.style,y+=me;return b==="backward"?y-1:y}return y}return y}Il({selectGroup:a=>{const y=Ph(a);return y||a.announce("plonk"),y},selectAll:a=>a.setSelection(0,a.lastOffset),extendSelectionForward:a=>Dc(a,"forward",{extend:!0}),extendSelectionBackward:a=>Dc(a,"backward",{extend:!0}),extendToNextWord:a=>vd(a,"forward",{extend:!0}),extendToPreviousWord:a=>vd(a,"backward",{extend:!0}),extendSelectionUpward:a=>Dc(a,"upward",{extend:!0}),extendSelectionDownward:a=>Dc(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 Zu=null,nf=0,Vf=class tc{static start(y,b,E,ee){var re;tc.element=y,(re=tc.controller)==null||re.abort(),tc.controller=new AbortController;const se={signal:tc.controller.signal};"PointerEvent"in window?(y.addEventListener("pointermove",E,se),y.addEventListener("pointerup",ee,se),y.addEventListener("pointercancel",ee,se),Nh(b)&&(tc.pointerId=b.pointerId,y.setPointerCapture(b.pointerId))):(window.addEventListener("mousemove",E,se),window.addEventListener("blur",ee,se),window.addEventListener("mouseup",ee,se))}static stop(){var y;(y=tc.controller)==null||y.abort(),tc.controller=void 0,typeof tc.pointerId=="number"&&(tc.element.releasePointerCapture(tc.pointerId),tc.pointerId=void 0)}};function Nh(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,re=!1,se=!1,me="none",ge=!1,we=!1;const Oe=y.clientX,ot=y.clientY,Et=Date.now(),Zt=E.field,Yt=setInterval(()=>{ge?Zt.scroll({top:0,left:Zt.scrollLeft-16}):we&&Zt.scroll({top:0,left:Zt.scrollLeft+16})},32);function Pn(){Vf.stop(),re=!1,clearInterval(Yt),a.element.classList.remove("tracking"),y&&y.preventDefault()}function Ir(ir){if(!E.hasFocus()){Pn();return}const zr=ir.clientX,or=ir.clientY,Ci=Nh(ir)&&ir.pointerType==="touch"?20:5;if(Date.now()<Et+500&&Math.abs(Oe-zr)<Ci&&Math.abs(ot-or)<Ci){ir.preventDefault(),ir.stopPropagation();return}const Ni=Zt.getBoundingClientRect();we=zr>Ni.right,ge=zr<Ni.left;let Li=ee;Nh(ir)&&(ir.isPrimary||(Li=rf(E,ir.clientX,ir.clientY,{bias:0})));const Ta=rf(E,zr,or,{bias:zr<=Oe?zr===Oe?0:-1:1});Li>=0&&Ta>=0&&(E.model.extendSelectionTo(Li,Ta),Vo(a)),se&&Ph(E.model)}Zu&&Math.abs(Zu.x-Oe)<5&&Math.abs(Zu.y-ot)<5&&Date.now()<Zu.time+500?(nf+=1,Zu.time=Et):(Zu={x:Oe,y:ot,time:Et},nf=1);const Ln=Zt.getBoundingClientRect();if(Oe>=Ln.left&&Oe<=Ln.right&&ot>=Ln.top&&ot<=Ln.bottom){if(a.flushInlineShortcutBuffer(),a.adoptStyle="left",ee=rf(a,Oe,ot,{bias:0}),ee>=0){if(a.element.classList.add("tracking"),y.shiftKey){const ir=a.model.selectionIsCollapsed;a.model.extendSelectionTo(a.model.anchor,ee),v0(a.model)||ir?me="all":me="selection"}else a.model.at(ee).type==="placeholder"?(a.model.setSelection(ee-1,ee),me="selection"):((b=a.model.at(ee).rightSibling)==null?void 0:b.type)==="placeholder"?(a.model.setSelection(ee,ee+1),me="selection"):(a.model.position=ee,v0(a.model)?me="all":me="selection");a.defaultStyle={},y.detail===3||nf>2?(Pn(),(y.detail===3||nf===3)&&(a.model.selection={ranges:[[0,a.model.lastOffset]]},me="all")):re||(re=!0,Vf.start(Zt,y,Ir,Pn),(y.detail===2||nf===2)&&(se=!0,Ph(a.model),me="all"))}a.hasFocus()||(me="none",a.focus({preventScroll:!0}))}else Zu=null;a.stopCoalescingUndo(),me!=="none"&&(a.model.selectionIsCollapsed&&(me="all"),Vo(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 j0(a,y,b,E,ee){if(!b.id)return[1/0,null];if(y.has(b.id))return y.get(b.id);const re=uu(a,b);if(!re)return[1/0,null];let se=[1/0,null];if(b.hasChildren&&!b.captureSelection&&E>=re.left&&E<=re.right)for(const me of b.children){const ge=j0(a,y,me,E,ee);ge[0]<=se[0]&&(se=ge)}return se[1]||(se=[qg(E,ee,re),b]),y.set(b.id,se),se}function ev(a,y,b){const[,E]=j0(a,new Map,a.model.root,y,b);return E}function rf(a,y,b,E){var ee;const re=a.field.querySelector(".ML__latex").getBoundingClientRect();if(!re)return 0;if(y>re.right||b>re.bottom+8)return a.model.lastOffset;if(y<re.left||b<re.top-8)return 0;E=E!=null?E:{},E.bias=(ee=E.bias)!=null?ee:0;let se=ev(a,y,b);const me=[];let ge=se;for(;ge;)me.unshift(ge),ge=ge.parent;for(const Oe of me)if(Oe.captureSelection){se=Oe;break}let we=a.model.offsetOf(se);if(we<0)return-1;if(se.leftSibling)if(E.bias===0&&se.type!=="placeholder"){const Oe=uu(a,se);Oe&&y<(Oe.left+Oe.right)/2&&(we=a.model.offsetOf(se.leftSibling))}else E.bias<0&&(we=a.model.offsetOf(se.leftSibling));return we}var tv=class extends ta{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 re=JSON.parse(ee);if(re&&Array.isArray(re)){a.snapshot();const se=hu(re),{model:me}=a;me.selectionIsCollapsed||me.deleteAtoms(Is(me.selection));const ge=me.at(me.position);if(ge.parent instanceof sa){console.assert(ge.parentBranch!==void 0);const we=[];let Oe=[];se[0].type==="first"&&se.shift(),se[se.length-1].type==="first"&&se.pop();for(const Yt of se)Yt.type==="first"&&Oe.length>0?(we.push(Oe),Oe=[Yt]):Oe.push(Yt);Oe.length>0&&we.push(Oe);let ot=Number(ge.parentBranch[0]),Et=Number(ge.parentBranch[1]);const Zt=ge.parent.maxColumns;for(;ge.parent.colCount-Et<we.length&&ge.parent.colCount<Zt;)ge.parent.addColumn();ge.parent.addChildrenAfter(we[0],ge);for(let Yt=1;Yt<we.length;Yt++)Et++,Et>=Zt&&(Et=0,ge.parent.addRowAfter(ot),ot++),ge.parent.setCell(ot,Et,we[Yt])}else ge.parent.addChildrenAfter(se.filter(we=>we.type!=="first"),ge);return me.position=me.offsetOf(se[se.length-1]),me.contentDidChange({inputType:"insertFromPaste"}),Vo(a),!0}}catch(re){}if(ee=typeof y!="string"?y.getData("application/json"):"",ee&&window.MathfieldElement.computeEngine)try{const re=JSON.parse(ee);if(typeof re=="object"&&"latex"in re&&re.latex&&(b=re.latex),!b){const se=window.MathfieldElement.computeEngine.box(re);se&&!se.has("Error")&&(b=se.latex)}b||(E="latex")}catch(re){}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 re;return[re,b]=Ec(b),E==="auto"&&re&&(E="latex"),a.stopCoalescingUndo(),a.stopRecording(),this.insert(a.model,b,{format:E})&&(a.startRecording(),a.snapshot("paste"),Vo(a)),a.startRecording(),!0}return!1}insert(a,y,b){var E,ee;const re=typeof y=="string"?y:(ee=(E=window.MathfieldElement.computeEngine)==null?void 0:E.box(y).latex)!=null?ee:"";if(!b.silenceNotifications&&!a.contentWillChange({data:re,inputType:"insertText"}))return!1;b.insertionMode||(b.insertionMode="replaceSelection"),b.selectionMode||(b.selectionMode="placeholder"),b.format||(b.format="auto");const{silenceNotifications:se}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const me=a.silenceNotifications;a.silenceNotifications=!0;const ge={"?":"\\placeholder{}","@":"\\placeholder{}"};ge[0]=b.insertionMode==="replaceAll"?"":a.getValue(a.selection,"latex-unstyled"),b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(Is(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 we=-1;ge[0]?ge["@"]=ge[0]:typeof y=="string"&&/(^|[^\\])#@/.test(y)&&(we=rv(a),we>=0&&(ge["@"]=a.getValue(we,a.position,"latex"))),ge[0]||(ge[0]=ge["?"]);let Oe=!1;const ot=zr=>(Oe=!0,ge[zr]);let[Et,Zt]=U0(a,y,ot,b);if(!Zt)return!1;const Yt=Zt.length===1&&Zt[0].type==="genfrac";Yt&&we>=0&&typeof a.mathfield.options.isImplicitFunction=="function"&&a.mathfield.options.isImplicitFunction(a.at(a.position).command)?(ge["@"]=ge["?"],Oe=!1,[Et,Zt]=U0(a,y,ot,b)):we>=0&&a.deleteAtoms([we,a.position]);const{parent:Pn}=a.at(a.position),Ir=Pn.hasEmptyBranch("body");if(Yt&&Et!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Pn instanceof Ja&&Pn.leftDelim==="("&&Ir){const zr=Pn.parent,or=Pn.parentBranch;zr.removeChild(Pn),zr.setChildren(Zt,or)}const Ln=a.at(a.position);Ln.parent.addChildrenAfter(Zt,Ln),Et==="latex"&&typeof y=="string"&&(Pn==null?void 0:Pn.type)==="root"&&Ir&&!Oe&&(Pn.verbatimLatex=y),a.silenceNotifications=me;const ir=Zt[Zt.length-1];if(b.selectionMode==="placeholder"){const zr=Zt.flatMap(or=>[or,...or.children]).find(or=>or.type==="placeholder");if(zr){const or=a.offsetOf(zr);a.setSelection(or-1,or),a.announce("move")}else ir&&(a.position=a.offsetOf(ir))}else b.selectionMode==="before"||(b.selectionMode==="after"?ir&&(a.position=a.offsetOf(ir)):b.selectionMode==="item"&&a.setSelection(a.anchor,a.offsetOf(ir)));return a.contentDidChange({data:re,inputType:"insertText"}),a.silenceNotifications=se,!0}};function U0(a,y,b,E){var ee;let re,se=[];if(typeof y!="string"||E.format==="math-json"){const me=window.MathfieldElement.computeEngine;if(!me)return["math-json",[]];[re,y]=["latex",me.box(y).latex],se=Ls(y,{context:a.mathfield.context})}else typeof y=="string"&&E.format==="ascii-math"?([re,y]=Bu(y,{format:"ascii-math",inlineShortcuts:a.mathfield.options.inlineShortcuts}),se=Ls(y,{context:a.mathfield.context}),re!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Gf(se)):(E.format==="auto"||(ee=E.format)!=null&&ee.startsWith("latex"))&&(E.format==="auto"&&([re,y]=Bu(y,{format:"auto",inlineShortcuts:a.mathfield.options.inlineShortcuts})),E.format==="latex"&&([,y]=Ec(y)),se=Ls(y,{context:a.mathfield.context,args:b}),E.format!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Gf(se));return mu(se,E.style),[re!=null?re:"latex",se]}function nv(a){if(!a||(console.assert(a[0].type==="first"),a.length>1))return null;const y=a[0];return y instanceof Ja&&y.leftDelim==="("&&y.rightDelim===")"?y.removeBranch("body"):null}function Gf(a){if(a){for(let y=0;a[y];y++){const b=a[y];if(b instanceof Ja&&b.leftDelim==="("){let E=0,ee=0,re=0;for(let se=0;b.body[se];se++)b.body[se].type==="genfrac"&&(E++,ee=se),re++;re===0&&E===1&&(a[y]=b.body[ee])}}for(const y of a){for(const b of y.branches)if(!y.hasEmptyBranch(b)){Gf(y.branch(b));const E=nv(y.branch(b));E&&y.setChildren(E,b)}if(y instanceof sa)for(const b of y.cells)Gf(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=te[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||V0(y));)y=y.leftSibling;else{const ee=[];for(;!y.isFirstSibling&&(V0(y)||ee.length>0);)y.type==="mclose"&&ee.unshift(y.value),y.type==="mopen"&&ee.length>0&&y.value===te[ee[0]]&&ee.shift(),y=y.leftSibling}return b===y?-1:a.offsetOf(y)}function V0(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 ta{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"),Vo(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(Is(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 re=av(y,a.mathfield.context);if(mu(re,b.style),!re)return!1;const se=a.at(a.position),me=se.parent.addChildrenAfter(re,se);return a.silenceNotifications=ee,b.selectionMode==="before"||(b.selectionMode==="item"?a.setSelection(a.anchor,a.offsetOf(me)):me&&(a.position=a.offsetOf(me))),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 "),Ls(a,{context:y,parseMode:"text"})}new iv;function Lc(a){return{value:a.model.getValue(),selectionIsCollapsed:a.model.selectionIsCollapsed,canUndo:a.canUndo(),canRedo:a.canRedo(),style:a.selectionStyle,mode:a.model.mode}}var Mo=4,pl=20,gs=2*(pl+Mo),Qf=(a,y)=>`
|
|
|
<line x1="${a+pl}" y1="${y+pl}"
|
|
|
x2="${a>y?a+pl:7*pl+10*Mo}"
|
|
|
y2="${a<y?y+pl:7*pl+10*Mo}"/>
|
|
|
<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+pl}" y1="${y+pl}"
|
|
|
x2="${a>y?a+pl:7*pl+10*Mo}"
|
|
|
y2="${a<y?y+pl:7*pl+10*Mo}"/>
|
|
|
<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>`,Yf=(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*pl+10*Mo+5} ${8*pl+10*Mo+5}">
|
|
|
<rect
|
|
|
class="MLEP__array-insert-background rows"
|
|
|
x="0"
|
|
|
y="${gs+Mo}"
|
|
|
height="${3*gs}"
|
|
|
width="${gs}"
|
|
|
rx="${gs/2}"/>
|
|
|
<rect
|
|
|
class="MLEP__array-insert-background columns"
|
|
|
x="${gs+Mo}"
|
|
|
y="0"
|
|
|
height="${gs}"
|
|
|
width="${3*gs}"
|
|
|
rx="${gs/2}"/>
|
|
|
<g data-command='"moveDown"'>
|
|
|
${Yf(2*(Mo+gs),2*Mo+3*gs,0)}
|
|
|
</g>
|
|
|
<g data-command='"moveUp"'>
|
|
|
${Yf(2*(Mo+gs),2*Mo+gs,180)}
|
|
|
</g>
|
|
|
<g data-command='"moveToNextWord"'>
|
|
|
${Yf(2*Mo+3*gs,2*(Mo+gs),-90)}
|
|
|
</g>
|
|
|
<g data-command='"moveToPreviousWord"'>
|
|
|
${Yf(2*Mo+gs,2*(Mo+gs),90)}
|
|
|
</g>
|
|
|
<g>
|
|
|
|
|
|
<g data-command='"addColumnBefore"'>
|
|
|
${Qf(2*Mo+gs,Mo)}
|
|
|
</g>
|
|
|
<g data-command='"removeColumn"'>
|
|
|
${G0(2*Mo+2*gs,Mo)}
|
|
|
</g>
|
|
|
<g data-command='"addColumnAfter"'>
|
|
|
${Qf(2*Mo+3*gs,Mo)}
|
|
|
</g>
|
|
|
<g data-command='"addRowBefore"'>
|
|
|
${Qf(Mo,2*Mo+gs)}
|
|
|
</g>
|
|
|
<g data-command='"removeRow"'>
|
|
|
${G0(Mo,2*Mo+2*gs)}
|
|
|
</g>
|
|
|
<g data-command='"addRowAfter"'>
|
|
|
${Qf(Mo,2*Mo+3*gs)}
|
|
|
</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>`,Q0=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>`,cv=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>`,uv=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>`,_h={matrix:sv,pmatrix:lv,bmatrix:cv,Bmatrix:Q0,vmatrix:uv,Vmatrix:dv},Rh={cases:fv,rcases:hv,Bmatrix:Q0};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(Yt=>{(!ee||Yt.length>ee)&&(ee=Yt.length)});let re=document.getElementById("mathlive-environment-popover");re||(re=Df("mathlive-environment-popover"),Al("environment-popover"),Al("core"),re.setAttribute("aria-hidden","true"));let se;const me=re.querySelector(".MLEP__environment-controls");me?se=me:(se=document.createElement("div"),re.innerHTML="",re.appendChild(se)),se.className="MLEP__environment-controls",se.style.display="flex",se.style.width="100%",se.style.height="100%",se.style.boxSizing="border-box",se.innerHTML=ov;let ge=[],we="";const Oe=a.model.parentEnvironment.environmentName;if(Qs(Oe)){const Yt=gv(Oe);we=_h[Yt]("active");const Pn=_h,{[Yt]:Ir}=Pn,Ln=ct(Pn,[Pe(Yt)]);ge=Object.values(Ln).map(ir=>ir("inactive"))}else if(Ys(Oe)){const Yt=vv(Oe);we=Rh[Yt]("active");const Pn=Rh,{[Yt]:Ir}=Pn,Ln=ct(Pn,[Pe(Yt)]);ge=Object.values(Ln).map(ir=>ir("inactive"))}else cs(Oe)&&(we=_h.matrix("active"),ge=Object.values(Rh).map(Yt=>Yt("inactive")));const ot=document.createElement("div");ot.className="MLEP__environment-delimiter-controls",ot.style.display="flex",ot.style.flexDirection="column",ot.innerHTML=`
|
|
|
<div class='MLEP__array-delimiter-options'>
|
|
|
${we}
|
|
|
${ge.join("")}
|
|
|
</div>`,we&&se.appendChild(ot),se.querySelectorAll("[data-command]").forEach(Yt=>{const Pn=Yt.dataset.command;let Ir=Pn;try{Ir=JSON.parse(Pn)}catch(Ln){}Yt.addEventListener("mousedown",Ln=>Ln.preventDefault()),Ir&&Yt.addEventListener("click",()=>a.executeCommand(Ir))});const Zt=(b=a.field)==null?void 0:b.getBoundingClientRect();Zt&&(re.style.top=`${window.scrollY+(Zt.top-re.clientHeight-15)}px`,re.style.left=`${Zt.left+20}px`,re.classList.add("is-visible"))}function zh(){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 Xf(a){if(!a.hasFocus())return;let y=!1;if(a.model.mode==="math"){const b=a.model.parentEnvironment;if(b!=null&&b.array&&zo(b.environmentName)){const E=a.options.environmentPopoverPolicy;y=E==="auto"||E==="on"}}y?pv(a):zh()}function gv(a){return a.replace("*","")}function vv(a){return a==="dcases"?"cases":a}function Y0(a){const y=getComputedStyle(a).direction;return y==="ltr"||y==="rtl"?y:"ltr"}function X0(a,y,b){return y==="left"||y==="leading"&&b==="ltr"||y==="trailing"&&b==="rtl"?a.left:a.right}function Fh(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 re=(b=Y0(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 se=a.getBoundingClientRect(),me=Number.isFinite(y.maxHeight)?Math.min(y.maxHeight,window.innerHeight):window.innerHeight;let ge=Math.min(me,(E=y.height)!=null?E:se.height),we=Fh(y.location.y,ge,y.verticalPos,re);we+ge>window.innerHeight-8&&(y.alternateLocation?(we=Fh(y.alternateLocation.y,ge,y.verticalPos,re),we+ge>window.innerHeight-8&&(we=void 0)):we=void 0),Number.isFinite(we)||(we=Math.max(8,window.innerHeight-8-ge),8+ge>window.innerHeight-8&&(a.style.bottom="8px")),ge=Math.min(we+ge,window.innerHeight-8)-we;const Oe=Number.isFinite(y.maxWidth)?Math.min(y.maxWidth,window.innerWidth):window.innerWidth;let ot=Math.min(Oe,(ee=y.width)!=null?ee:se.width),Et=Fh(y.location.x,ot,y.horizontalPos,re);Et+ot>window.innerWidth-8&&(y.alternateLocation?(Et=yv(y.alternateLocation.x,ot,y.verticalPos,re),Et+ot>window.innerWidth-8&&(Et=void 0)):Et=void 0),Number.isFinite(Et)||(Et=Math.max(8,window.innerWidth-8-ot),8+ot>window.innerWidth-8&&(a.style.right="8px")),ot=Math.min(Et+ot,window.innerWidth-8)-Et,re==="rtl"?a.style.right=`${Math.ceil(window.innerWidth-Et-ot).toString()}px`:a.style.left=`${Math.ceil(Et).toString()}px`,a.style.top=`${Math.ceil(we).toString()}px`,ge!==se.height&&(a.style.height=`${Math.ceil(ge).toString()}px`),ot!==se.width&&(a.style.width=`${Math.ceil(ot).toString()}px`)}function xv(a,y){return Math.hypot(y.x-a.x,y.y-a.y)}function yd(a){return"submenu"in a}function Tc(a){return"type"in a&&a.type==="command"||"onMenuSelect"in a||"id"in a}function Kh(a){return"type"in a&&a.type==="divider"}function $h(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,yd(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=Tc(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(Kh(ee)){this.enabled=!1,this.checked=!1;return}$h(ee)&&(this.enabled=!1,this.checked=!1,this.visible=!0),Tc(ee)&&(this.checked=Tc(ee)&&((y=bd(ee.checked,a))!=null?y:!1)),(Tc(ee)||yd(ee))&&(this.enabled=(b=bd(ee.enabled,a))!=null?b:!0,this.visible=(E=bd(ee.visible,a))!=null?E:!0,this.visible&&this.enabled&&this.submenu&&(this.submenu.updateState(a),this.submenu.visible||(this.visible=!1))),(Tc(ee)||$h(ee)||yd(ee))&&(this.label=bd(ee.label,a),this.tooltip=bd(ee.tooltip,a),this.ariaLabel=bd(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),Tc(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(Kh(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,(Tc(this._declaration)||$h(this._declaration)||yd(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(!Tc(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=Y0(this.element);this.submenu.show({container:this.rootMenu.element.parentNode,location:{x:X0(b,"trailing",E),y:b.top-4},alternateLocation:{x:X0(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 re="right";if(this.submenu.element){const se=this.submenu.element.getBoundingClientRect(),me=this.element.getBoundingClientRect();se.left<me.left+me.width/2&&(re="left")}return re==="right"?E>0:E<0}};function Sv(a,y,b){return Math.hypot(a,y)/b}function bd(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 Ad{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(we=>we.updateState(y));const re=this.hasCheck;this.hasCheck=this._menuItems.some(we=>we.visible&&we.hasCheck),this.hasCheck!==re&&this._menuItems.forEach(we=>we.updateState(y));let se,me=0;for(const we of this._menuItems)we.type==="heading"?(se&&me===0&&(se.visible=!1),se=we,me=0):we.type==="divider"&&se?(se.visible=me>0,se=void 0,me=0):se&&we.visible&&(me+=1);se&&(se.visible=me>0);let ge=!0;for(const we of this._menuItems)we.type==="divider"?(we.visible=!ge,ge=!0):we.visible&&(ge=!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,re;if(this.rootMenu.cancelDelayedOperation(),y!==this._activeMenuItem){if(this.activeMenuItem){const se=this.activeMenuItem;se.active=!1,(b=se.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}):(re=this._element)==null||re.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),re=1;for(;ee>=b&&ee<=E;){ee+=y>0?1:-1;const se=this._menuItems[ee];if(!se)break;if(se.visible&&se.enabled){if(re===Math.abs(y))return this._menuItems[ee];re+=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 Ad._collator||(Ad._collator=new Intl.Collator(void 0,{usage:"search",sensitivity:"base"})),Ad._collator}findMenuItem(y){var b;this.updateIfDirty();const E=this._menuItems.filter(me=>me.type!=="divider"&&me.visible&&me.enabled);if(E.length===0)return null;const ee=Math.max(...E.map(me=>me.label.length))-y.length;if(ee<0)return null;let re=null,se=0;for(;se<ee&&!re;)re=(b=E.find(me=>Ad.collator.compare(y,me.label.substring(se,y.length))===0))!=null?b:null,se++;return re}show(y){return!this.visible||!y.container?!1:(this.updateElement(),y.container.appendChild(this.element),kt()&&(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,re;this.openSubmenu=null,this.activeMenuItem=null,this.parentMenu&&(this.parentMenu.openSubmenu=null),kt()&&((y=this._element)!=null&&y.popover)&&this.element.hidePopover(),(E=(b=this.parentMenu)==null?void 0:b.element)==null||E.focus(),(re=(ee=this._element)==null?void 0:ee.parentNode)==null||re.removeChild(this._element)}set openSubmenu(y){var b,E,ee,re;const se=y!==null;((b=this.activeMenuItem)==null?void 0:b.type)==="submenu"&&((E=this.activeMenuItem.element)==null||E.setAttribute("aria-expanded",se.toString())),(re=(ee=this.activeMenuItem)==null?void 0:ee.element)==null||re.classList.toggle("is-submenu-open",se),this.isSubmenuOpen=se}},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){Km(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=Nu(y)),y.stopImmediatePropagation()}handleKeydownEvent(y){var b,E,ee;if(y.key==="Tab"||y.key==="Escape"){this.hide();return}this.isDynamic&&(this.modifiers=Nu(y));let re=!0;const se=this.activeSubmenu,me=se.activeMenuItem;switch(y.key){case" ":case"Space":case"Return":case"Enter":me==null||me.select(Nu(y));break;case"ArrowRight":if((me==null?void 0:me.type)==="submenu")me.select(Nu(y)),this.activeSubmenu.activeMenuItem=this.activeSubmenu.firstMenuItem;else if(!me)se.activeMenuItem=se.firstMenuItem;else{const ge=(b=se.getMenuItemColumn(me))!=null?b:-1;if(ge>=0&&ge<((E=se.columnCount)!=null?E:1)-1){const we=se.nextMenuItem(1);we&&(se.activeMenuItem=we)}}break;case"ArrowLeft":if(se===this.rootMenu)me||(se.activeMenuItem=se.firstMenuItem);else if((me&&(ee=se.getMenuItemColumn(me))!=null?ee:-1)<=0||!me){se.hide();const we=se.parentMenu.activeMenuItem;if(we){const{element:Oe}=we;Oe==null||Oe.focus(),Oe==null||Oe.classList.remove("is-submenu-open")}}else{const we=se.nextMenuItem(-1);we&&(se.activeMenuItem=we)}break;case"ArrowDown":se.activeMenuItem=se.nextMenuItem(se.columnCount);break;case"ArrowUp":se.activeMenuItem=se.nextMenuItem(-se.columnCount);break;case"Home":case"PageUp":se.activeMenuItem=se.firstMenuItem;break;case"End":case"PageDown":se.activeMenuItem=se.lastMenuItem;break;case"Backspace":if(this.typingBuffer&&(this.typingBuffer=this.typingBuffer.slice(0,-1),this.typingBuffer)){clearTimeout(this.typingBufferResetTimer);const ge=se.findMenuItem(this.typingBuffer);ge&&(se.activeMenuItem=ge),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}break;default:if(kf(y)){isFinite(this.typingBufferResetTimer)&&clearTimeout(this.typingBufferResetTimer),this.typingBuffer+=y.key;const ge=se.findMenuItem(this.typingBuffer);ge&&(se.activeMenuItem=ge),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}else re=!1}re&&(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 Ac.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),Ac.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),Ac.state==="open"&&Ac.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(Me(xe({},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,Ac.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 Cv=np;function rp(a){return Kh(a)?!1:typeof a.label=="function"||typeof a.ariaLabel=="function"||typeof a.tooltip=="function"||(Tc(a)||yd(a))&&(typeof a.enabled=="function"||typeof a.visible=="function")||Tc(a)&&typeof a.checked=="function"?!0:yd(a)?a.submenu.some(rp):!1}var Jf=class{};Jf.DELAY=300,Jf.MAX_DISTANCE=10;function wv(a){return new Promise((y,b)=>{const E=Mf(a);E||y(!1);let ee=E;const re=setTimeout(()=>{se.abort(),y(xv(ee,E)<Jf.MAX_DISTANCE)},Jf.DELAY),se=new AbortController,me=se.signal;for(const ge of["pointermove","pointerup","pointercancel"])window.addEventListener(ge,we=>{if(we.type==="pointerup"||we.type==="pointercancel")clearTimeout(re),se.abort(),y(!1);else if(we.type==="pointermove"){const Oe=Mf(we);Oe&&(ee=Oe)}},{passive:!0,signal:me})})}function ip(a,y,b){return yu(this,null,function*(){if(a.type==="contextmenu"){const E=a;if(b.show({target:y,location:Mf(E),modifiers:Nu(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:Nu(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=Mf(a);if(yield wv(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};mt(Object.keys(ap),"{body:auto}",{createAtom:a=>new z(Me(xe({},a),{body:lt(a.args[0]),accentChar:ap[a.command.slice(1)]}))}),mt(["widehat","widecheck","widetilde"],"{body:auto}",{createAtom:a=>{const y=Qe(lt(a.args[0]));return new z(Me(xe({},a),{body:lt(a.args[0]),svgAccent:a.command.slice(1)+(y.length>5?"4":["1","1","2","2","3","3"][y.length])}))}}),mt(["overarc","overparen","wideparen"],"{body:auto}",{createAtom:a=>new z(Me(xe({},a),{body:lt(a.args[0]),svgAccent:"overarc"}))}),mt(["underarc","underparen"],"{body:auto}",{createAtom:a=>new Jl(Me(xe({},a),{body:lt(a.args[0]),svgBelow:"underarc"}))}),mt("utilde","{body:auto}",{createAtom:a=>{const y=lt(a.args[0]),b=Qe(y),E="widetilde"+(b.length>5?"4":["1","1","2","2","3","3"][b.length]);return new Jl(Me(xe({},a),{body:y,svgBelow:E,boxType:xc(y)}))}}),mt("^","{:string}",{createAtom:a=>{var y;return new Un(Me(xe({},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:"^"}))}}),mt("`","{:string}",{createAtom:a=>{var y;return new Un(Me(xe({},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:"`"}))}}),mt("'","{:string}",{createAtom:a=>{var y;return new Un(Me(xe({},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:"'"}))}}),mt('"',"{:string}",{createAtom:a=>{var y,b;return new Un(Me(xe({},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]:'"'}))}}),mt(".","{:string}",{createAtom:a=>{var y,b;return new Un(Me(xe({},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]:"."}))}}),mt("=","{:string}",{createAtom:a=>{var y,b;return new Un(Me(xe({},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]:"="}))}}),mt("~","{:string}",{createAtom:a=>{var y;return new Un(Me(xe({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"}))}}),mt("c","{:string}",{createAtom:a=>{var y;return new Un(Me(xe({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={c:"\xE7",C:"\xC7"}[a.args[0]])!=null?y:""}))}}),mt("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 se=E[1].split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const me of se){const ge=me.match(/\s*(\S+)\s+(\S+)\s+(.*)/);if(ge)ee.strokeWidth=ge[1],ee.strokeStyle=ge[2],ee.strokeColor=ge[3];else{const we=me.match(/\s*([a-z]*)\s*=\s*"(.*)"/);we&&(we[1]==="mathbackground"?ee.backgroundcolor=we[2]:we[1]==="mathcolor"?ee.strokeColor=we[2]:we[1]==="padding"?ee.padding=we[2]:we[1]==="shadow"&&(ee.shadow=we[2]))}}ee.strokeStyle==="dashed"?ee.svgStrokeStyle="5,5":ee.strokeStyle==="dotted"&&(ee.svgStrokeStyle="1,5")}ee.borderStyle=`${ee.strokeWidth} ${ee.strokeStyle} ${ee.strokeColor}`;const re={};return((b=E[0])!=null?b:"").split(/[, ]/).filter(se=>se.length>0).forEach(se=>{re[se.toLowerCase()]=!0}),new Kd(a.command,lt(E[2]),re,ee)}}),mt("cancel","{body:auto}",{createAtom:a=>{var y;return new Kd(a.command,lt(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:{}})}}),mt("bcancel","{body:auto}",{createAtom:a=>{var y;return new Kd(a.command,lt(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:{}})}}),mt("xcancel","{body:auto}",{createAtom:a=>{var y;return new Kd(a.command,lt(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:{}})}}),mt(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overlinesegment","overgroup"],"{:auto}",{createAtom:a=>{var y;return new Jl(Me(xe({},a),{body:lt((y=a.args)==null?void 0:y[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgAbove:a.command.slice(1)}))}}),mt("overbrace","{:auto}",{createAtom:a=>new Jl(Me(xe({},a),{body:lt(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgAbove:a.command.slice(1)}))}),mt(["underrightarrow","underleftarrow","underleftrightarrow","underlinesegment","undergroup"],"{:auto}",{createAtom:a=>new Jl(Me(xe({},a),{body:lt(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgBelow:a.command.slice(1)}))}),mt(["underbrace"],"{:auto}",{createAtom:a=>new Jl(Me(xe({},a),{body:lt(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgBelow:a.command.slice(1)}))}),mt(["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,re;return new Jl(Me(xe({},a),{svgBody:a.command.slice(1),above:((b=lt((y=a.args)==null?void 0:y[1]))==null?void 0:b.length)===0?void 0:lt((E=a.args)==null?void 0:E[1]),below:(re=lt((ee=a.args)==null?void 0:ee[0]))!=null?re: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)}`}),mt(["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 Pu(a.command.slice(1),Me(xe({},a),{limits:"adjacent",isFunction:!0,variant:"main",variantStyle:"up"}))}),mt(["liminf","limsup"],"",{ifMode:"math",createAtom:a=>new Pu({"\\liminf":"lim inf","\\limsup":"lim sup"}[a.command],Me(xe({},a),{limits:"over-under",variant:"main"}))}),mt(["lim","mod"],"",{ifMode:"math",createAtom:a=>new Pu(a.command.slice(1),Me(xe({},a),{limits:"over-under",variant:"main"}))}),mt(["det","max","min"],"",{ifMode:"math",isFunction:!0,createAtom:a=>new Pu(a.command.slice(1),Me(xe({},a),{limits:"over-under",isFunction:!0,variant:"main"}))}),mt(["ang"],"{:math}",{ifMode:"math",createAtom:a=>new Un(Me(xe({},a),{body:lt(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 kr("\xB0",{style:Me(xe({},a.style),{variant:"normal",variantStyle:"up"})});return new kr([b,ee],{type:"inner",isSelected:a.isSelected,caret:E})}}),mt("sqrt","[index:auto]{radicand:expression}",{ifMode:"math",createAtom:a=>new o0(Me(xe({},a),{body:lt(a.args[1]),index:a.args[0]?lt(a.args[0]):void 0}))}),mt(["frac","dfrac","tfrac","cfrac","binom","dbinom","tbinom"],"{:expression}{:expression}",{ifMode:"math",createAtom:a=>{const y=xe({},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 cd(E[0]?lt(E[0]):[new Fi],E[1]?lt(E[1]):[new Fi],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}`:fo(a.command,b,E)}}),mt(["brace","brack"],"",{infix:!0,createAtom:a=>new cd(lt(a.args[0]),lt(a.args[1]),Me(xe({},a),{hasBarLine:!1,leftDelim:a.command==="\\brace"?"\\lbrace":"\\lbrack",rightDelim:a.command==="\\brace"?"\\rbrace":"\\rbrack"})),serialize:(a,y)=>pa([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),mt(["over","atop","choose"],"",{infix:!0,createAtom:a=>{let y,b;const E=a.args;return a.command==="\\choose"&&(y="(",b=")"),new cd(lt(E[0]),lt(E[1]),Me(xe({},a),{hasBarLine:a.command==="\\over",leftDelim:y,rightDelim:b}))},serialize:(a,y)=>pa([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),mt(["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 cd(lt(E[0]),lt(E[1]),Me(xe({},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)}`}),mt("pdiff","{numerator}{denominator}",{ifMode:"math",createAtom:a=>new cd(lt(a.args[0]),lt(a.args[1]),Me(xe({},a),{hasBarLine:!0,numerPrefix:"\u2202",denomPrefix:"\u2202"}))}),mt(["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)],Me(xe({},a),{limits:"auto",variant:"main"}))}),mt("smallint","",{ifMode:"math",createAtom:a=>new Pu("\u222B",Me(xe({},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"};mt(Object.keys(op),"",{ifMode:"math",createAtom:a=>{const y=a.command,b=op[y.slice(1)];return new fh(b,Me(xe({},a),{limits:"adjacent",variant:{"\u22D2":"ams","\u22D3":"ams"}[b]}))}}),mt(["Re","Im"],"",{ifMode:"math",createAtom:a=>new Pu({"\\Re":"\u211C","\\Im":"\u2111"}[a.command],Me(xe({},a),{limits:"adjacent",isFunction:!0,variant:"fraktur"}))}),mt("middle","{:delim}",{ifMode:"math",createAtom:a=>{var y;return new r0(Me(xe({},a),{delim:(y=a.args[0])!=null?y:"|",size:1}))}}),mt("the","{:value}",{createAtom:a=>new Un(Me(xe({},a),{captureSelection:!0,verbatimLatex:null})),render:(a,y)=>{var b;const E=new Ia({parent:y},a.style);let ee="";a.isSelected&&(ee+=" ML__selected");const re=E.evaluate(a.args[0]);return new kr(((b=Oo(re))!=null?b:"").split("").map(se=>new kr(se,{type:"ord",classes:ee,mode:a.mode,isSelected:a.isSelected,style:xe({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=Oo(a.args[0]))!=null?y:"\\relax"}`}}),mt("mathtip","{:auto}{:math}",{createAtom:a=>new hh(Me(xe({},a),{body:lt(a.args[0]),tooltip:lt(a.args[1]),content:"math"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${Un.serialize([a.tooltip],Me(xe({},y),{defaultMode:"math"}))}}`}),mt("texttip","{:auto}{:text}",{createAtom:a=>new hh(Me(xe({},a),{body:lt(a.args[0]),tooltip:lt(a.args[1]),content:"text"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${Un.serialize([a.tooltip],Me(xe({},y),{defaultMode:"text"}))}}`}),mt("error","{:math}",{createAtom:a=>new Un(Me(xe({},a),{body:lt(a.args[0])})),serialize:(a,y)=>`\\error{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__error"})}),mt("ensuremath","{:math}",{createAtom:a=>new Un(Me(xe({},a),{body:lt(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(Me(xe({},y),{defaultMode:"math"}))}}`}),mt("color","{:value}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimColor:(E=Oo(y[0]))!=null?E:void 0,color:b.toColor((ee=y[0])!=null?ee:{string:"red"})}}}),mt("textcolor","{:value}{content:auto*}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimColor:(E=Oo(y[0]))!=null?E:void 0,color:b.toColor((ee=y[0])!=null?ee:{string:"red"})}}}),mt("boxed","{content:math}",{createAtom:a=>new ns(Me(xe({},a),{body:lt(a.args[0]),framecolor:{string:"black"}}))}),mt("colorbox","{:value}{:text*}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimBackgroundColor:(E=Oo(y[0]))!=null?E:void 0,backgroundColor:b.toBackgroundColor((ee=y[0])!=null?ee:{string:"yellow"})}}}),mt("fcolorbox","{frame-color:value}{background-color:value}{content:text}",{applyMode:"text",createAtom:a=>{var y,b;return new ns(Me(xe({},a),{body:lt(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(Me(xe({},y),{defaultMode:"text"})):fo(a.command,(b=Oo(a.framecolor))!=null?b:"",(E=Oo(a.backgroundcolor))!=null?E:"",a.bodyToLatex(Me(xe({},y),{defaultMode:"text"})))}}),mt("bbox","[:bbox]{body:auto}",{createAtom:a=>{var y;const b=a.args[0],E=lt(a.args[1]);return b?new ns(Me(xe({},a),{body:E,padding:b.padding,border:b.border,backgroundcolor:(y=b.backgroundcolor)!=null?y:void 0})):new ns(Me(xe({},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 re=[];a.padding&&re.push((b=Oo(a.padding))!=null?b:""),a.border&&re.push(`border: ${a.border}`),a.backgroundcolor&&re.push((E=Oo(a.backgroundcolor))!=null?E:""),ee+=`[${re.join(",")}]`}return fo(ee,a.bodyToLatex(y))}}),mt(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"{:rest}",{createAtom:a=>new Un(Me(xe({},a),{body:lt(a.args[0])})),render:(a,y)=>{const b=new Ia({parent:y,mathstyle:a.command.slice(1)},a.style),E=Un.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):`{${pa([a.command,a.bodyToLatex(y)])}}`}),mt(["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]})}),mt("fontseries","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontSeries:(b=y[0])!=null?b:"auto"}}}),mt("fontshape","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontShape:(b=y[0])!=null?b:"auto"}}}),mt("fontfamily","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontFamily:(b=y[0])!=null?b:"roman"}}}),mt("selectfont","",{ifMode:"text",applyStyle:()=>({})}),mt("bf","{:rest}",{applyStyle:()=>({fontSeries:"b",fontShape:"n",fontFamily:"roman"})}),mt(["boldsymbol","bm"],"{:math}",{applyMode:"math",createAtom:a=>new Un(Me(xe({},a),{body:lt(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__boldsymbol"})}),mt("bold","{:math*}",{applyMode:"math",applyStyle:()=>({variantStyle:"bold"})}),mt("bfseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),mt("mdseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),mt("upshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),mt("slshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),mt("scshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),mt("textbf","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),mt("textmd","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),mt("textup","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),mt("textnormal","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n",fontSeries:"m"})}),mt("textsl","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),mt("textit","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"it"})}),mt("textsc","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),mt("textrm","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"roman"})}),mt("textsf","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"sans-serif"})}),mt("texttt","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"monospace"})}),mt("mathbf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"bold"})}),mt("mathit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"italic"})}),mt("mathnormal","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"italic"})}),mt("mathbfit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"bolditalic"})}),mt("mathrm","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"up"})}),mt("mathsf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"sans-serif",variantStyle:"up"})}),mt("mathtt","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"monospace",variantStyle:"up"})}),mt("it","{:rest}",{applyStyle:()=>({fontSeries:"m",fontShape:"it",fontFamily:"roman",variantStyle:"italic"})}),mt("rmfamily","",{applyStyle:()=>({fontFamily:"roman"})}),mt("sffamily","",{applyStyle:()=>({fontFamily:"sans-serif"})}),mt("ttfamily","",{applyStyle:()=>({fontFamily:"monospace"})}),mt(["Bbb","mathbb"],"{:math*}",{applyStyle:()=>({variant:"double-struck",variantStyle:"up"})}),mt(["frak","mathfrak"],"{:math*}",{applyStyle:()=>({variant:"fraktur",variantStyle:"up"})}),mt("mathcal","{:math*}",{applyStyle:()=>({variant:"calligraphic",variantStyle:"up"})}),mt("mathscr","{:math*}",{applyStyle:()=>({variant:"script",variantStyle:"up"})}),mt("mbox","{:text}",{ifMode:"math",createAtom:a=>new Un(Me(xe({},a),{type:"mord",body:lt(a.args[0]),mode:"math"})),serialize:(a,y)=>fo("\\mbox",a.bodyToLatex(Me(xe({},y),{defaultMode:"text"})))}),mt("text","{:text}",{ifMode:"math",applyMode:"text"}),mt(["class","htmlClass"],"{name:string}{content:auto}",{createAtom:a=>new Un(Me(xe({},a),{body:lt(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:""})}}),mt(["cssId","htmlId"],"{id:string}{content:auto}",{createAtom:a=>new Un(Me(xe({},a),{body:lt(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}}),mt("htmlData","{data:string}{content:auto}",{createAtom:a=>new Un(Me(xe({},a),{body:lt(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}}),mt(["style","htmlStyle"],"{data:string}{content:auto}",{createAtom:a=>new Un(Me(xe({},a),{body:lt(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}}),mt("em","{:rest}",{createAtom:a=>new Un(Me(xe({},a),{body:lt(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"})}),mt("emph","{:auto}",{createAtom:a=>new Un(Me(xe({},a),{body:lt(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}};mt(["bigl","Bigl","biggl","Biggl","bigr","Bigr","biggr","Biggr","bigm","Bigm","biggm","Biggm","big","Big","bigg","Bigg"],"{:delim}",{createAtom:a=>{var y;return new i0(Me(xe({},a),{delim:(y=a.args[0])!=null?y:".",size:sp[a.command].size,delimType:sp[a.command].mclass}))}}),mt(["hspace","hspace*"],"{width:value}",{createAtom:a=>{var y;return new Zd(Me(xe({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),mt(["mkern","kern","mskip","hskip","mspace"],"{width:value}",{createAtom:a=>{var y;return new Zd(Me(xe({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),mt("mathchoice","{:math}{:math}{:math}{:math}",{createAtom:a=>new Un(a),render:(a,y)=>{let b=0;const E=y.mathstyle.id;(E===Hc||E===Rl)&&(b=1),(E===zl||E===Cs)&&(b=2),(E===js||E===ls)&&(b=3);const ee=lt(a.args[b]);return Un.createBox(y,ee)},serialize:(a,y)=>`\\mathchoice{${Un.serialize(a.args[0],y)}}{${Un.serialize(a.args[1],y)}}{${Un.serialize(a.args[2],y)}}{${Un.serialize(a.args[3],y)}}`}),mt("mathop","{:auto}",{createAtom:a=>new Un(Me(xe({},a),{type:"mop",body:lt(a.args[0]),limits:"over-under",isFunction:!0,captureSelection:!0})),render:(a,y)=>{var b;let E=Un.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 kr(a.bind(y,E),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[fo(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)),pa(b)}}),mt(["mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",{createAtom:a=>new Un(Me(xe({},a),{type:{"\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[a.command],body:lt(a.args[0])}))}),mt(["operatorname","operatorname*"],"{operator:math}",{createAtom:a=>{const y=lt(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 Un(Me(xe({},a),{type:"mop",body:y,isFunction:!0,limits:a.command==="\\operatorname"?"adjacent":"over-under"}))},render:(a,y)=>{var b;let E=Un.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 kr(a.bind(y,E),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[fo(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)),pa(b)}}),mt(["char","unicode"],"{charcode:value}",{createAtom:a=>new Un(Me(xe({},a),{type:a.mode==="text"?"text":"mord"})),serialize:a=>{var y;return`${a.command}${Oo((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)}}),mt("rule","[raise:value]{width:value}{thickness:value}",{createAtom:a=>new Un(a),render:(a,y)=>{var b,E,ee;const re=new Ia({parent:y,mathstyle:"textstyle"},a.style),se=re.toEm((b=a.args[0])!=null?b:{dimension:0}),me=re.toEm((E=a.args[1])!=null?E:{dimension:10}),ge=re.toEm((ee=a.args[2])!=null?ee:{dimension:10}),we=new kr(null,{classes:"rule",type:"ord"});return we.width=me,we.height=ge+se,we.depth=-se,we.setStyle("border-right-width",me,"em"),we.setStyle("border-top-width",ge,"em"),we.setStyle("border-color",a.style.color),we.setStyle("vertical-align",se,"em"),a.isSelected&&we.setStyle("opacity","50%"),a.bind(re,we),a.caret&&(we.caret=a.caret),we.wrap(y)},serialize:a=>`\\rule${a.args[0]?`[${Oo(a.args[0])}]`:""}{${Oo(a.args[1])}}{${Oo(a.args[2])}}`}),mt(["overline","underline"],"{:auto}",{createAtom:a=>new Un(Me(xe({},a),{body:lt(a.args[0])})),render:(a,y)=>{const b=a.command.substring(1),E=new Ia({parent:y,mathstyle:"cramp"},a.style),ee=Un.createBox(E,a.body);if(!ee)return null;const re=E.metrics.defaultRuleThickness/E.scalingFactor,se=new kr(null,{classes:b+"-line"});se.height=re,se.maxFontSize=re*1.125*E.scalingFactor;let me;return b==="overline"?me=new io({shift:0,children:[{box:ee},3*re,{box:se},re]}):me=new io({top:ee.height,children:[re,{box:se},3*re,{box:ee}]}),a.caret&&(me.caret=a.caret),new kr(me,{classes:b,type:"ignore"})}}),mt("overset","{:auto}{base:auto}",{createAtom:a=>{const y=lt(a.args[1]);return new Jl(Me(xe({},a),{above:lt(a.args[0]),body:y,skipBoundary:!1,boxType:xc(y)}))},serialize:(a,y)=>fo(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),mt("underset","{:auto}{base:auto}",{createAtom:a=>{const y=lt(a.args[1]);return new Jl(Me(xe({},a),{below:lt(a.args[0]),body:y,skipBoundary:!1,boxType:xc(y)}))},serialize:(a,y)=>fo(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),mt("overunderset","{above:auto}{below:auto}{base:auto}",{createAtom:a=>{const y=lt(a.args[2]);return new Jl(Me(xe({},a),{above:lt(a.args[0]),below:lt(a.args[1]),body:y,skipBoundary:!1,boxType:xc(y)}))},serialize:(a,y)=>fo(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),mt(["stackrel","stackbin"],"[below:auto]{above:auto}{base:auto}",{createAtom:a=>new Jl(Me(xe({},a),{body:lt(a.args[2]),above:lt(a.args[1]),below:lt(a.args[0]),skipBoundary:!1,boxType:a.command==="\\stackrel"?"rel":"bin"})),serialize:(a,y)=>fo(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),mt("smash","[:string]{:auto}",{createAtom:a=>{var y,b,E,ee;return new Hd(Me(xe({},a),{body:lt(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}))}}),mt(["vphantom"],"{:auto}",{createAtom:a=>new Hd(Me(xe({},a),{body:lt(a.args[0]),isInvisible:!0,smashWidth:!0}))}),mt(["hphantom"],"{:auto}",{createAtom:a=>new Hd(Me(xe({},a),{body:lt(a.args[0]),isInvisible:!0,smashHeight:!0,smashDepth:!0}))}),mt(["phantom"],"{:auto}",{createAtom:a=>new Hd(Me(xe({},a),{body:lt(a.args[0]),isInvisible:!0}))}),mt("not","{:math}",{createAtom:a=>{const y=lt(a.args[0]);return y.length===0?new Un(Me(xe({},a),{type:"mrel",value:"\uE020"})):new Un(Me(xe({},a),{body:[new Ou(Me(xe({},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{${Un.serialize(b.group,y)}}`:`\\not${Un.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":xc(lt(a.args[0])),ee=Un.createBox(y,a.body,{type:E});return a.caret&&(ee.caret=a.caret),a.bind(y,ee)}}),mt(["ne","neq"],"",{createAtom:a=>new Un(Me(xe({},a),{type:"mrel",body:[new Ou(Me(xe({},a),{body:"\uE020",align:"right",boxType:"rel"})),new Un(Me(xe({},a),{value:"="}))],captureSelection:!0})),serialize:a=>a.command}),mt("rlap","{:auto}",{createAtom:a=>new Ou(Me(xe({},a),{body:lt(a.args[0]),align:"right"}))}),mt("llap","{:auto}",{createAtom:a=>new Ou(Me(xe({},a),{body:lt(a.args[0]),align:"left"}))}),mt("mathrlap","{:math}",{createAtom:a=>new Ou(Me(xe({},a),{body:lt(a.args[0]),align:"left"}))}),mt("mathllap","{:math}",{createAtom:a=>new Ou(Me(xe({},a),{body:lt(a.args[0]),align:"left"}))}),mt("raisebox","{:value}{:text}",{createAtom:a=>{var y;return new ns(Me(xe({},a),{body:lt(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return fo("\\raisebox",(b=Oo(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),mt("raise","{:value}{:auto}",{createAtom:a=>{var y;return new ns(Me(xe({},a),{body:lt(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return fo("\\raise",(b=Oo(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),mt("lower","{:value}{:auto}",{createAtom:a=>{var y;return new ns(Me(xe({},a),{body:lt(a.args[1]),padding:{dimension:0},offset:(y=il(a.args[0],-1))!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b,E;return fo("\\lower",(E=Oo(il((b=a.offset)!=null?b:{dimension:0},-1)))!=null?E:"0pt",a.bodyToLatex(y))}}),Te("0123456789/@.?!"),gt(65,90),gt(97,122),Te([["\\forall",8704],["\\exists",8707],["\\nexists",8708,"mord","ams"],["\\mid",8739,"mrel"],["\\top",8868],["\\bot",8869]]),Te([["\\#",35],["\\&",38],["\\parallelogram",9649],["\\spadesuit",9824],["\\heartsuit",9825],["\\diamondsuit",9826],["\\clubsuit",9827],["\\flat",9837],["\\natural",9838],["\\sharp",9839]]),Te([["\\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]]),Te([["\\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"),Te([["\\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"]]),Te([["\\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"]]),Te([["\\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"),Te([["+",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"),Te([["\\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"),Te([["\\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]]),Te([["=",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"),Te([["\\lnot",172],["\\neg",172],["\\triangle",9651],["\\subsetneq",8842],["\\varsubsetneq",57370],["\\subsetneqq",10955],["\\varsubsetneqq",57367],["\\nsubset",8836],["\\nsupset",8837],["\\nsubseteq",8840],["\\nsupseteq",8841]],"mrel","ams"),Te([["\\wp",8472],["\\aleph",8501]]),Te([["\\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"),Te([["\\ ",160],["~",160]],"space"),mt(["!",",",":",";",">","enskip","enspace","quad","qquad"],"",{createAtom:a=>new Zd(a)}),mt("space","",{createAtom:a=>new Zd(a)}),Te([["\\colon",58],["\\cdotp",8901],["\\vdots",8942,"mord"],["\\ldotp",46],[",",44],[";",59]],"mpunct"),Te([["\\cdots",8943],["\\ddots",8945],["\\ldots",8230],["\\mathellipsis",8230]],"minner"),Te([["\\/",47],["|",8739,"mord"],["\\imath",305],["\\jmath",567],["\\degree",176],["'",8242],['"',8221]]);var lp="<mo>⁡</mo>",qf="<mo>⁢</mo>";function eh(a){return a.replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function yo(a,y){return!a||!y.generateID?"":` extid="${a}"`}function Ev(a,y,b){var E,ee,re,se,me,ge,we,Oe,ot,Et,Zt;let Yt=!1;y=y!=null?y:a.atoms.length;let Pn="",Ir="",Ln=a.atoms[a.index];const ir=(ee=(E=Ln.style)==null?void 0:E.variant)!=null?ee:"",zr=(se=(re=Ln.style)==null?void 0:re.variantStyle)!=null?se:"";let or="";if(ir||zr){const Ni=Qt(Ln.value,(me=Ln.style)==null?void 0:me.variant,(ge=Ln.style)==null?void 0:ge.variantStyle);if(Ni!==Ln.value)return a.index+=1,Pn=`<mi${yo(Ln.id,b)}>${Ni}</mi>`,Uc(Pn,a,b)||(a.mathML+=Pn,a.lastType="mi"),!0;or=(we={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"}[zr+ir])!=null?we:"",or=` mathvariant="${or}"`}const Ci={"\\exponentialE":"ⅇ","\\imaginaryI":"ⅈ","\\differentialD":"ⅆ","\\capitalDifferentialD":"ⅅ","\\alpha":"α","\\pi":"π","\\infty":"∞","\\forall":"∀","\\nexists":"∄","\\exists":"∃","\\hbar":"\u210F","\\cdotp":"\u22C5","\\ldots":"\u2026","\\cdots":"\u22EF","\\ddots":"\u22F1","\\vdots":"\u22EE","\\ldotp":"."};if(Ln.command==="!")return a.index+=1,Pn="<mo>!</mo>",Uc(Pn,a,b)||(a.mathML+=Pn,a.lastType="mo"),!0;if(Ci[Ln.command]){a.index+=1;let Ni=`<mi${yo(Ln.id,b)}${or}>${Ci[Ln.command]}</mi>`;return(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mtext"||a.lastType==="fence")&&(Ni=qf+Ni),Uc(Ni,a,b)||(a.mathML+=Ni,a.lastType="mi"),!0}if(Ln.command==="\\operatorname")Ir=xd(Ln.body),a.index+=1;else if(ir||zr)for(;a.index<y&&(Ln.type==="mord"||Ln.type==="macro")&&!Ln.isDigit()&&ir===((ot=(Oe=Ln.style)==null?void 0:Oe.variant)!=null?ot:"")&&zr===((Zt=(Et=Ln.style)==null?void 0:Et.variantStyle)!=null?Zt:"");)Ir+=xd([Ln]),a.index+=1,Ln=a.atoms[a.index];else(Ln.type==="mord"||Ln.type==="macro")&&!Ln.isDigit()&&(Ir+=xd([Ln]),a.index+=1);if(Ir.length>0){Yt=!0,Pn=`<mi${or}>${Ir}</mi>`;const Ni=a.lastType;Pn.endsWith(">f</mi>")||Pn.endsWith(">g</mi>")?(Pn+=lp,a.lastType="applyfunction"):a.lastType=/^<mo>(.*)<\/mo>$/.test(Pn)?"mo":"mi",Uc(Pn,a,b)||((Ni==="mi"||Ni==="mn"||Ni==="mtext"||Ni==="fence")&&(Pn=qf+Pn),a.mathML+=Pn)}return Yt}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 re=a.atoms[b];E=!re.isDigit(),ee=!E&&re.superscript!==void 0,b++}return ee&&(y=b-1),y}function Uc(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 re=y.lastType;y.lastType="";const se=qa(ee.superscript,b);y.lastType="";const me=qa(ee.subscript,b);if(y.lastType=re,!se&&!me)return!1;let ge="";return se&&me?ge=`<msubsup>${a}${me}${se}</msubsup>`:se?ge=`<msup>${a}${se}</msup>`:me&&(ge=`<msub>${a}${me}</msub>`),y.mathML+=ge,y.lastType="",!0}function Av(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 ${yo(a.atoms[E].id,b)}>${ee}</mtext>`,a.lastType="mtext",!0):!1}function Iv(a,y,b){y=y!=null?y:a.atoms.length;const E=a.index;let ee="",re=kv(a);for(re>=0&&re<y&&(y=re);a.index<y&&a.atoms[a.index].isDigit();)ee+=a.atoms[a.index].asDigit(),a.index+=1;return ee.length<=0?!1:(ee="<mn"+yo(a.atoms[E].id,b)+">"+ee+"</mn>",re<0&&Mv(a)&&(re=a.index,a.index+=1),Uc(ee,a,b)||(a.mathML+=ee,a.lastType="mn"),!0)}function Dv(a,y,b){let E=!1;y=y!=null?y:a.atoms.length;let ee="",re="";if(a.index<y&&a.atoms[a.index].type==="mopen"){let se=!1,me=0;const ge=a.index;let we=-1,Oe=ge+1;for(;Oe<y&&!se;)a.atoms[Oe].type==="mopen"?me+=1:a.atoms[Oe].type==="mclose"&&(me-=1),me===-1&&(se=!0,we=Oe),Oe+=1;se&&(ee="<mrow>",ee+=Wu(a.atoms[ge],b),ee+=qa(a.atoms,b,ge+1,we),ee+=Wu(a.atoms[we],b),ee+="</mrow>",a.index=we+1,(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mfrac"||a.lastType==="fence")&&(a.mathML+=qf),Uc(ee,a,b)&&(E=!0,a.lastType="",ee=""),re="fence")}return ee.length>0&&(E=!0,a.mathML+=ee,a.lastType=re),E}function Lv(a,y,b){let E=!1;y=y!=null?y:a.atoms.length;let ee="",re="";const se=a.atoms[a.index];if(!se)return!1;const me={"\\ne":"≠","\\neq":"&neq;","\\pm":"±","\\times":"×","\\colon":":","\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lbrack":"[","\\rbrack":"]","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"};if(me[se.command]){a.index+=1;const ge=`<mo${yo(se.id,b)}>${me[se.command]}</mo>`;return Uc(ge,a,b)||(a.mathML+=ge,a.lastType="mo"),!0}if(a.index<y&&(se.type==="mbin"||se.type==="mrel"))ee+=Zh(a.atoms[a.index],b),a.index+=1,re="mo";else if(a.index<y&&(se.type==="mop"||se.type==="operator"||se.type==="extensible-symbol")){if(se.subsupPlacement==="over-under"&&(se.superscript||se.subscript)){const ge=Wu(se,b);return se.superscript&&se.subscript?(ee+="<munderover>"+ge,ee+=qa(se.subscript,b),ee+=qa(se.superscript,b),ee+="</munderover>"):se.superscript?(ee+="<mover>"+ge,ee+=qa(se.superscript,b),ee+="</mover>"):se.subscript&&(ee+="<munder>"+ge,ee+=qa(se.subscript,b),ee+="</munder>"),a.mathML+=ee,a.lastType="mo",a.index+=1,!0}{const ge=a.atoms[a.index],we=ge.value==="\\operatorname",Oe=we?'<mi class="MathML-Unit"'+yo(ge.id,b)+">"+xd(ge.value)+"</mi>":Wu(ge,b);ee+=Oe,!we&&!/^<mo>(.*)<\/mo>$/.test(Oe)?(ee+=lp,re="applyfunction"):re=we?"mi":"mo"}(a.lastType==="mi"||a.lastType==="mn")&&!/^<mo>(.*)<\/mo>$/.test(ee)&&(ee=qf+ee),a.index+=1}return ee.length>0&&(E=!0,Uc(ee,a,b)||(a.mathML+=ee,a.lastType=re)),E}function qa(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 Un)ee.mathML=Zh(a,y);else if(Array.isArray(a)){ee.atoms=a;let re=0;for(E=E||(a?a.length:0);ee.index<E;)if(Av(ee,E,y)||Iv(ee,E,y)||Ev(ee,E,y)||Lv(ee,E,y)||Dv(ee,E,y))re+=1;else if(ee.index<E){let se=Zh(ee.atoms[ee.index],y);ee.lastType==="mn"&&se.length>0&&ee.atoms[ee.index].type==="genfrac"&&(se="<mo>⁤</mo>"+se),ee.atoms[ee.index].type==="genfrac"?ee.lastType="mfrac":ee.lastType="",ee.index+=1,Uc(se,ee,y)?re+=1:se.length>0&&(ee.mathML+=se,re+=1)}re>1&&(ee.mathML="<mrow>"+ee.mathML+"</mrow>")}return ee.mathML}function Wu(a,y){let b="";const E=xd(a.value);return E&&(b="<mo"+yo(a.id,y)+">"+E+"</mo>"),b}function xd(a){if(!a)return"";if(typeof a=="string")return eh(a);if(!Array.isArray(a)&&typeof a.body=="string")return eh(a.body);let y="";for(const b of a)typeof b.value=="string"&&(y+=b.value);return eh(y)}function Zh(a,y){var b,E,ee,re,se,me,ge,we,Oe,ot,Et,Zt,Yt,Pn,Ir,Ln,ir,zr,or,Ci,Ni,Li;if(a.mode==="text")return`<mi${yo(a.id,y)}>${a.value}</mi>`;const Ta={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"},po={"\\!":-3/18,"\\ ":6/18,"\\,":3/18,"\\:":4/18,"\\>":4/18,"\\;":5/18,"\\enspace":.5,"\\quad":1,"\\qquad":2,"\\enskip":.5};let Vr="",Zl="",Oc,ec,Bs,Wl,ml,bo;const{command:is}=a;if(a.command==="\\error")return`<merror${yo(a.id,y)}>${qa(a.body,y)}</merror>`;const Os={"\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\lbrack":"[","\\rbrack":"]","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"},Pc={"\\vec":"⃗","\\acute":"´","\\grave":"`","\\dot":"˙","\\ddot":"¨","\\tilde":"~","\\bar":"¯","\\breve":"˘","\\check":"ˇ","\\hat":"^"};switch(a.type){case"first":break;case"group":case"root":Vr=qa(a.body,y);break;case"array":if((a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(Vr+="<mrow>",a.leftDelim&&a.leftDelim!=="."&&(Vr+="<mo>"+(Os[a.leftDelim]||a.leftDelim)+"</mo>")),Vr+="<mtable",a.colFormat){for(Vr+=' columnalign="',Bs=0;Bs<a.colFormat.length;Bs++)a.colFormat[Bs].align&&(Vr+={l:"left",c:"center",r:"right"}[a.colFormat[Bs].align]+" ");Vr+='"'}for(Vr+=">",ec=0;ec<a.array.length;ec++){for(Vr+="<mtr>",Oc=0;Oc<a.array[ec].length;Oc++)Vr+="<mtd>"+qa(a.array[ec][Oc],y)+"</mtd>";Vr+="</mtr>"}Vr+="</mtable>",(a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(a.rightDelim&&a.rightDelim!=="."&&(Vr+="<mo>"+(Os[a.leftDelim]||a.rightDelim)+"</mo>"),Vr+="</mrow>");break;case"genfrac":(a.leftDelim||a.rightDelim)&&(Vr+="<mrow>"),a.leftDelim&&a.leftDelim!=="."&&(Vr+="<mo"+yo(a.id,y)+">"+(Os[a.leftDelim]||a.leftDelim)+"</mo>"),a.hasBarLine?(Vr+="<mfrac>",Vr+=qa(a.above,y)||"<mi> </mi>",Vr+=qa(a.below,y)||"<mi> </mi>",Vr+="</mfrac>"):(Vr+="<mtable"+yo(a.id,y)+">",Vr+="<mtr>"+qa(a.above,y)+"</mtr>",Vr+="<mtr>"+qa(a.below,y)+"</mtr>",Vr+="</mtable>"),a.rightDelim&&a.rightDelim!=="."&&(Vr+="<mo"+yo(a.id,y)+">"+(Os[a.rightDelim]||a.rightDelim)+"</mo>"),(a.leftDelim||a.rightDelim)&&(Vr+="</mrow>");break;case"surd":a.hasEmptyBranch("above")?(Vr+="<msqrt"+yo(a.id,y)+">",Vr+=qa(a.body,y),Vr+="</msqrt>"):(Vr+="<mroot"+yo(a.id,y)+">",Vr+=qa(a.body,y),Vr+=qa(a.above,y),Vr+="</mroot>");break;case"leftright":const Nc=a,_c=Nc.leftDelim;Vr="<mrow>",_c&&_c!=="."&&(Vr+=`<mo${yo(a.id,y)}>${(b=Os[_c])!=null?b:_c}</mo>`),a.body&&(Vr+=qa(a.body,y));const Rc=Nc.matchingRightDelim();Rc&&Rc!=="."&&(Vr+=`<mo${yo(a.id,y)}>${(E=Os[Rc])!=null?E:Rc}</mo>`),Vr+="</mrow>";break;case"sizeddelim":case"delim":Vr+=`<mo${yo(a.id,y)}>${Os[a.value]||a.value}</mo>`;break;case"accent":Vr+='<mover accent="true"'+yo(a.id,y)+">",Vr+=qa(a.body,y),Vr+="<mo>"+(Pc[is]||a.accent)+"</mo>",Vr+="</mover>";break;case"line":case"overlap":break;case"overunder":ml=a.above,Wl=a.below,(a.svgAbove||ml)&&(a.svgBelow||Wl)?bo=a.body:ml&&ml.length>0?(bo=a.body,(re=(ee=a.body)==null?void 0:ee[0])!=null&&re.below?(Wl=a.body[0].below,bo=a.body[0].body):((me=(se=a.body)==null?void 0:se[0])==null?void 0:me.type)==="first"&&((we=(ge=a.body)==null?void 0:ge[1])!=null&&we.below)&&(Wl=a.body[1].below,bo=a.body[1].body)):Wl&&Wl.length>0&&(bo=a.body,(ot=(Oe=a.body)==null?void 0:Oe[0])!=null&&ot.above?(ml=a.body[0].above,bo=a.body[0].body):((Zt=(Et=a.body)==null?void 0:Et[0])==null?void 0:Zt.type)==="first"&&((Pn=(Yt=a.body)==null?void 0:Yt[1])!=null&&Pn.above)&&(ml=a.body[1].overscript,bo=a.body[1].body)),(a.svgAbove||ml)&&(a.svgBelow||Wl)?(Vr+=`<munderover ${yo(a.id,y)}>`,Vr+=(Ir=Ta[a.svgBody])!=null?Ir:qa(bo,y),Vr+=(Ln=Ta[a.svgBelow])!=null?Ln:qa(Wl,y),Vr+=(ir=Ta[a.svgAbove])!=null?ir:qa(ml,y),Vr+="</munderover>"):a.svgAbove||ml?(Vr+=`<mover ${yo(a.id,y)}>`+((zr=Ta[a.svgBody])!=null?zr:qa(bo,y)),Vr+=(or=Ta[a.svgAbove])!=null?or:qa(ml,y),Vr+="</mover>"):(a.svgBelow||Wl)&&(Vr+=`<munder ${yo(a.id,y)}>`+((Ci=Ta[a.svgBody])!=null?Ci:qa(bo,y)),Vr+=(Ni=Ta[a.svgBelow])!=null?Ni:qa(Wl,y),Vr+="</munder>");break;case"placeholder":Vr+="?";break;case"mord":{Vr=typeof a.value=="string"?a.value:is,is==="\\char"?Vr="&#x"+("000000"+a.args[0].number.toString(16)).slice(-4)+";":Vr.length>0&&Vr.startsWith("\\")&&(typeof a.value=="string"&&a.value.charCodeAt(0)>255?Vr="&#x"+("000000"+a.value.charCodeAt(0).toString(16)).slice(-4)+";":typeof a.value=="string"?Vr=a.value.charAt(0):(console.error("Did not expect this"),Vr=""));const mc=/\d/.test(Vr)?"mn":"mi";Vr=`<${mc}${yo(a.id,y)}>${eh(Vr)}</${mc}>`;break}case"mbin":case"mrel":case"minner":Vr=Wu(a,y);break;case"mpunct":Vr='<mo separator="true"'+yo(a.id,y)+">"+is+"</mo>";break;case"mop":case"operator":case"extensible-symbol":a.body!=="\u200B"&&(Vr="<mo"+yo(a.id,y)+">",Vr+=is==="\\operatorname"?a.body:is||a.body,Vr+="</mo>");break;case"box":Vr='<menclose notation="box"',a.backgroundcolor&&(Vr+=' mathbackground="'+a.backgroundcolor+'"'),Vr+=yo(a.id,y)+">"+qa(a.body,y)+"</menclose>";break;case"spacing":Vr+='<mspace width="'+((Li=po[is])!=null?Li:0)+'em"/>';break;case"enclose":Vr='<menclose notation="';for(const mc in a.notation)Object.prototype.hasOwnProperty.call(a.notation,mc)&&a.notation[mc]&&(Vr+=Zl+mc,Zl=" ");Vr+=yo(a.id,y)+'">'+qa(a.body,y)+"</menclose>";break;case"prompt":Vr='<menclose notation="roundexbox""">'+qa(a.body,y)+"</menclose>";break;case"space":Vr+=" ";break;case"subsup":break;case"phantom":break;case"composition":break;case"rule":break;case"chem":break;case"mopen":Vr+=Wu(a,y);break;case"mclose":Vr+=Wu(a,y);break;case"macro":{const mc=a.command+xd(a.macroArgs);mc&&(Vr+=`<mo ${yo(a.id,y)}>${mc}</mo>`)}break;case"latexgroup":Vr+=qa(a.body,y);break;case"latex":Vr+="<mtext"+yo(a.id,y)+">"+a.value+"</mtext>";break;case"tooltip":Vr+=qa(a.body,y);break;case"text":Vr+=`<mtext ${yo(a.id,y)}x>${a.value}</mtext>`;break;default:if(a.command==="\\displaystyle")return`<mrow ${yo(a.id,y)} displaystyle="true">${qa(a.body,y)}</mrow>`;if(a.command==="\\textstyle")return`<mrow ${yo(a.id,y)} displaystyle="false">${qa(a.body,y)}</mrow>`;console.info("Unexpected element in conversion to MathML:",a)}return Vr}var Sd={"\\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 af(a){let y=0;if(De(a))for(const b of a)b.type!=="first"&&(y+=1);return y===1}function Bv(a){if(De(a)){for(const y of a)if(y.type!=="first"&&y.id)return y.id.toString()}return""}function cp(a){let y="";if(De(a))for(const b of a)b.type!=="first"&&typeof b.value=="string"&&(y+=b.value);return y}function Ov(a){return a?a.map(y=>y.value).join(""):""}function ka(a,y){var b,E,ee,re,se;function me(Oe){return window.MathfieldElement.textToSpeechMarkup?/[a-z]/.test(Oe)?` <say-as interpret-as="character">${Oe}</say-as>`:/[A-Z]/.test(Oe)?`capital <say-as interpret-as="character">${Oe.toLowerCase()}</say-as>`:Oe:/[a-z]/.test(Oe)?" '"+Oe.toUpperCase()+"'":/[A-Z]/.test(Oe)?" 'capital "+Oe.toUpperCase()+"'":Oe}function ge(Oe){return"<emphasis>"+Oe+"</emphasis>"}if(!y)return"";let we="";if(De(y)){let Oe=!1,ot=!1;for(let Et=0;Et<y.length;Et++)y[Et].type!=="first"&&(y[Et].mode!=="text"&&(ot=!1),Et<y.length-2&&y[Et].type==="mopen"&&y[Et+2].type==="mclose"&&y[Et+1].type==="mord"?(we+=" of ",we+=ge(ka(a,y[Et+1])),Et+=2):y[Et].mode==="text"?ot?we+=(b=y[Et].value)!=null?b:" ":(ot=!0,we+=ka("text",y[Et])):y[Et].isDigit()?Oe?we+=y[Et].asDigit():(Oe=!0,we+=ka(a,y[Et])):(Oe=!1,we+=ka(a,y[Et])))}else if(y.mode==="text")y.id&&a==="math"&&(we+='<mark name="'+y.id.toString()+'"/>'),we+=y.value;else{y.id&&a==="math"&&(we+='<mark name="'+y.id.toString()+'"/>');let Oe="",ot="",Et="",Zt=!1;const{command:Yt}=y;switch(Yt){case"\\vec":return"vector "+ka(a,y.body);case"\\acute":return ka(a,y.body)+" acute";case"\\grave":return ka(a,y.body)+" grave";case"\\dot":return"dot over"+ka(a,y.body);case"\\ddot":return"double dot over"+ka(a,y.body);case"\\mathring":return"ring over"+ka(a,y.body);case"\\tilde":case"\\widetilde":return"tilde over"+ka(a,y.body);case"\\bar":return ka(a,y.body)+" bar";case"\\breve":return ka(a,y.body)+" breve";case"\\check":case"\\widecheck":return"check over "+ka(a,y.body);case"\\hat":case"\\widehat":return"hat over"+ka(a,y.body);case"\\overarc":case"\\overparen":case"\\wideparen":return"arc over "+ka(a,y.body);case"\\underarc":case"\\underparen":return"arc under "+ka(a,y.body)}switch(y.type){case"prompt":const Pn=y.body.length>1?'start input . <break time="500ms"/> '+ka(a,y.body)+'. <break time="500ms"/> end input':"blank";we+=' <break time="300ms"/> '+Pn+'. <break time="700ms"/>'+((E=y.correctness)!=null?E:"")+' . <break time="700ms"/> ';break;case"array":const Ir=y.array,Ln=y.environmentName;if(Object.keys(Wh).includes(Ln)){we+=` begin ${Wh[Ln]} `;for(let or=0;or<Ir.length;or++){or>0&&(we+=","),we+=` row ${or+1} `;for(let Ci=0;Ci<Ir[or].length;Ci++)Ci>0&&(we+=","),we+=` column ${Ci+1}: `,we+=ka("math",Ir[or][Ci])}we+=` end ${Wh[Ln]} `}break;case"group":Yt==="\\ne"?we+=" not equal ":(Yt==="\\not"&&(we+=" not "),we+=ka("math",y.body));break;case"root":we+=ka("math",y.body);break;case"genfrac":if(Oe=ka("math",y.above),ot=ka("math",y.below),af(y.above)&&af(y.below)){const Ci={"1/2":" half ","1/3":" one third ","2/3":" two third","1/4":" one quarter ","3/4":" three quarter ","1/5":" one fifth ","2/5":" two fifths ","3/5":" three fifths ","4/5":" four fifths ","1/6":" one sixth ","5/6":" five sixths ","1/8":" one eight ","3/8":" three eights ","5/8":" five eights ","7/8":" seven eights ","1/9":" one ninth ","2/9":" two ninths ","4/9":" four ninths ","5/9":" five ninths ","7/9":" seven ninths ","8/9":" eight ninths "}[cp(y.above)+"/"+cp(y.below)];Ci?we=Ci:we+=Oe+" over "+ot}else we+=' the fraction <break time="150ms"/>'+Oe+' over <break time="150ms"/>'+ot+'.<break time="150ms"/> End fraction.<break time="150ms"/>';break;case"surd":if(Et=ka("math",y.body),y.hasEmptyBranch("above"))we+=af(y.body)?" the square root of "+Et+" , ":' the square root of <break time="200ms"/>'+Et+'. <break time="200ms"/> End square root';else{let or=ka("math",y.above);or=or.trim();const Ci=or.replace(/<mark([^/]*)\/>/g,"");Ci==="3"?we+=' the cube root of <break time="200ms"/>'+Et+'. <break time="200ms"/> End cube root':Ci==="n"?we+=' the nth root of <break time="200ms"/>'+Et+'. <break time="200ms"/> End root':we+=' the root with index: <break time="200ms"/>'+or+', of <break time="200ms"/>'+Et+'. <break time="200ms"/> End root'}break;case"leftright":{const or=y;we+=(ee=or.leftDelim?Sd[or.leftDelim]:void 0)!=null?ee:or.leftDelim,we+=ka("math",y.body),we+=(re=or.rightDelim?Sd[or.rightDelim]:void 0)!=null?re:or.rightDelim}break;case"rule":break;case"overunder":break;case"overlap":break;case"macro":const ir=Yt.replace(/^\\/g,""),zr=nn()[ir];zr&&(zr!=null&&zr.expand?we+=ka("math",y.body):we+=`${ir} `);break;case"placeholder":we+="placeholder ";break;case"delim":case"sizeddelim":case"mord":case"minner":case"mbin":case"mrel":case"mpunct":case"mopen":case"mclose":{if(Yt==="\\mathbin"||Yt==="\\mathrel"||Yt==="\\mathopen"||Yt==="\\mathclose"||Yt==="\\mathpunct"||Yt==="\\mathord"||Yt==="\\mathinner"){we=ka(a,y.body);break}let or=y.isDigit()?y.asDigit():y.value,Ci=y.command;if((y.type==="delim"||y.type==="sizeddelim")&&(Ci=y.value,or=Ci),a==="text")we+=or;else{if(y.type==="mbin"&&(we+='<break time="150ms"/>'),or){const Ni=Sd[or]||(Ci?Sd[Ci.trim()]:"");if(Ni)we+=" "+Ni;else{const Li=Ci?Tv(Ci.trim()):"";we+=Li||me(or)}}else we+=ka("math",y.body);y.type==="mbin"&&(we+='<break time="150ms"/>')}break}case"mop":case"operator":case"extensible-symbol":if(y.value!=="\u200B"){const or=y.command;if(or==="\\sum")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let Ci=ka("math",y.superscript);Ci=Ci.trim();let Ni=ka("math",y.subscript);Ni=Ni.trim(),we+=' the summation from <break time="200ms"/>'+Ni+'<break time="200ms"/> to <break time="200ms"/>'+Ci+'<break time="200ms"/> of <break time="150ms"/>',Zt=!0}else if(y.hasEmptyBranch("subscript"))we+=" the summation of";else{let Ci=ka("math",y.subscript);Ci=Ci.trim(),we+=' the summation from <break time="200ms"/>'+Ci+'<break time="200ms"/> of <break time="150ms"/>',Zt=!0}else if(or==="\\prod")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let Ci=ka("math",y.superscript);Ci=Ci.trim();let Ni=ka("math",y.subscript);Ni=Ni.trim(),we+=' the product from <break time="200ms"/>'+Ni+'<break time="200ms"/> to <break time="200ms"/>'+Ci+'<break time="200ms"/> of <break time="150ms"/>',Zt=!0}else if(y.hasEmptyBranch("subscript"))we+=" the product of ";else{let Ci=ka("math",y.subscript);Ci=Ci.trim(),we+=' the product from <break time="200ms"/>'+Ci+'<break time="200ms"/> of <break time="150ms"/>',Zt=!0}else if(or==="\\int")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let Ci=ka("math",y.superscript);Ci=Ci.trim();let Ni=ka("math",y.subscript);Ni=Ni.trim(),we+=' the integral from <break time="200ms"/>'+ge(Ni)+'<break time="200ms"/> to <break time="200ms"/>'+ge(Ci)+' <break time="200ms"/> of ',Zt=!0}else we+=' the integral of <break time="200ms"/> ';else if(typeof y.value=="string"){const Ci=(se=Sd[y.value])!=null?se:y.command?Sd[y.command]:void 0;we+=Ci||" "+y.value}else y.command&&(y.command==="\\mathop"?we+=ka("math",y.body):y.command==="\\operatorname"?we+=Ov(y.body):we+=y.command.startsWith("\\")?" "+y.command.slice(1):" "+y.command)}break;case"enclose":Et=ka("math",y.body),we+=" crossed out "+Et+". End crossed out.";break;case"space":case"spacing":break}if(!Zt&&!y.hasEmptyBranch("superscript")){let Pn=ka(a,y.superscript);Pn=Pn.trim();const Ir=Pn.replace(/<[^>]*>/g,"");if(af(y.superscript)){if(a==="math"){const Ln=Bv(y.superscript);Ln&&(we+='<mark name="'+Ln+'"/>')}Ir==="\u2032"?we+=" prime ":Ir==="2"?we+=" squared ":Ir==="3"?we+=" cubed ":Number.isNaN(Number.parseInt(Ir))?we+=" to the "+Pn+"; ":we+=' to the <say-as interpret-as="ordinal">'+Ir+"</say-as> power; "}else Number.isNaN(Number.parseInt(Ir))?we+=" raised to the "+Pn+"; ":we+=' raised to the <say-as interpret-as="ordinal">'+Ir+"</say-as> power; "}if(!Zt&&!y.hasEmptyBranch("subscript")){let Pn=ka("math",y.subscript);Pn=Pn.trim(),we+=af(y.subscript)?" sub "+Pn:" subscript "+Pn+". End subscript. "}}return we}function Cd(a){var y,b;if(window.MathfieldElement.textToSpeechRules==="sre"&&("sre"in window||"SRE"in window)){const ee=qa(a);if(ee){window.MathfieldElement.textToSpeechMarkup&&(window.MathfieldElement.textToSpeechRulesOptions=(y=window.MathfieldElement.textToSpeechRulesOptions)!=null?y:{},window.MathfieldElement.textToSpeechRulesOptions=Me(xe({},window.MathfieldElement.textToSpeechRulesOptions),{markup:window.MathfieldElement.textToSpeechMarkup}),window.MathfieldElement.textToSpeechRulesOptions.markup==="ssml"&&(window.MathfieldElement.textToSpeechRulesOptions=Me(xe({},window.MathfieldElement.textToSpeechRulesOptions),{markup:"ssml_step"})),window.MathfieldElement.textToSpeechRulesOptions=Me(xe({},window.MathfieldElement.textToSpeechRulesOptions),{rate:window.MathfieldElement.speechEngineRate}));const re=(b=window.SRE)!=null?b:window.sre.System.getInstance();window.MathfieldElement.textToSpeechRulesOptions&&re.setupEngine(window.MathfieldElement.textToSpeechRulesOptions);let se="";try{se=re.toSpeech(ee)}catch(me){console.error("MathLive 0.98.5: `SRE.toSpeech()` runtime error",me)}return se}return""}let E=ka("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"&&pt()==="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 of={"\\ne":"\u2260","\\neq":"\u2260","\u2212":"-","-":"-","\\alpha":"alpha","\\beta":"beta","\\gamma":"gamma","\\delta":"delta","\\epsilon":"epsilon","\\varepsilon":"varepsilon","\\zeta":"zeta","\\eta":"eta","\\theta":"theta","\\vartheta":"vartheta","\\iota":"iota","\\kappa":"kappa","\\lambda":"lambda","\\mu":"mu","\\nu":"nu","\\xi":"xi","\\pi":"pi","\\rho":"rho","\\sigma":"sigma","\\tau":"tau","\\upsilon":"upsilon","\\phi":"phi","\\varphi":"varphi","\\chi":"chi","\\psi":"psi","\\omega":"omega","\\Gamma":"Gamma","\\Delta":"Delta","\\Theta":"Theta","\\Lambda":"Lambda","\\Xi":"Xi","\\Pi":"Pi","\\Sigma":"Sigma","\\Phi":"Phi","\\Psi":"Psi","\\Omega":"Omega","\\exponentialE":"e","\\imaginaryI":"i","\\imaginaryJ":"j","\\!":" ","\\,":" ","\\:":" ","\\>":" ","\\;":" ","\\enskip":" ","\\enspace":" ","\\qquad":" ","\\quad":" ","\\infty":"oo"},sf={"\\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 Pv(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 rs(a){var y,b,E,ee,re,se,me,ge,we,Oe,ot,Et,Zt;if(!a)return"";if(De(a)){if(a.length===0)return"";if(a[0].mode==="latex")return a.map(rs).join("");if(a[0].mode==="text"){let zr=0,or="";for(;((y=a[zr])==null?void 0:y.mode)==="text";)or+=a[zr].body?rs(a[zr].body):a[zr].value,zr++;return`"${or}" ${rs(a.slice(zr))}`}let Ln=0;const ir=[];for(;a[Ln]&&a[Ln].mode==="math";){let zr="";for(;a[Ln]&&a[Ln].type==="mord"&&/\d/.test(a[Ln].value);)zr+=a[Ln++].value;zr?ir.push(zr):ir.push(rs(a[Ln++]))}return ir.push(rs(a.slice(Ln))),Pv(ir)}if(a.mode==="text")return`"${a.value}"`;let Yt="";const{command:Pn}=a;let Ir;if(Pn==="\\placeholder")return`(${rs(a.body)})`;switch(a.type){case"accent":const Ln={"\\vec":"vec","\\dot":"dot","\\ddot":"ddot","\\bar":"bar","\\hat":"hat","\\acute":"acute;","\\grave":"grave","\\tilde":"tilde","\\breve":"breave","\\check":"check"}[Pn];Yt=`${Ln!=null?Ln:""} ${rs(a.body)} `;break;case"first":return"";case"latexgroup":return a.body.map(Li=>Li.value).join("");case"group":case"root":Yt=(b=of[Pn])!=null?b:rs(a.body);break;case"genfrac":{const Li=a;(Li.leftDelim||Li.rightDelim)&&(Yt=Li.leftDelim==="."||!Li.leftDelim?"{:":Li.leftDelim),Li.hasBarLine?(Yt+="(",Yt+=rs(Li.above),Yt+=")/(",Yt+=rs(Li.below),Yt+=")"):(Yt+="("+rs(Li.above)+"),",Yt+="("+rs(Li.below)+")"),(Li.leftDelim||Li.rightDelim)&&(Yt+=Li.rightDelim==="."||!Li.rightDelim?"{:":Li.rightDelim)}break;case"surd":Yt+=a.hasEmptyBranch("above")?"sqrt("+rs(a.body)+")":"root("+rs(a.above)+")("+rs(a.body)+")";break;case"latex":Yt=a.value;break;case"leftright":{const Li=a,Ta=Li.leftDelim;Yt+=Ta==="."||!Ta?"{:":Ta,Yt+=rs(Li.body);const po=Li.matchingRightDelim();Yt+=po==="."||!po?":}":po}break;case"sizeddelim":case"delim":Yt=a.value;break;case"overlap":break;case"overunder":break;case"mord":Yt=(ee=(E=of[Pn])!=null?E:Pn)!=null?ee:typeof a.value=="string"?a.value:"",Yt.startsWith("\\")&&(Yt+=" "),Ir=Pn?Pn.match(/{?\\char"([\dabcdefABCDEF]+)}?/):null,Ir?Yt=String.fromCodePoint(Number.parseInt("0x"+Ir[1])):Yt.length>0&&Yt.startsWith("\\")&&(Yt=typeof a.value=="string"?a.value.charAt(0):a.command),Yt=Nv(Yt,a.style);break;case"mbin":case"mrel":case"minner":Yt=(se=(re=of[Pn])!=null?re:sf[Pn])!=null?se:a.value;break;case"mopen":case"mclose":Yt=a.value;break;case"mpunct":Yt=(me=sf[Pn])!=null?me:Pn;break;case"mop":case"operator":case"extensible-symbol":a.value!=="\u200B"&&(sf[Pn]?Yt=sf[Pn]:Yt=Pn==="\\operatorname"?rs(a.body):(ge=a.value)!=null?ge:Pn,Yt+=" ");break;case"array":const ir=a.array,zr=a.environmentName,or=(we={bmatrix:["[","]"],"bmatrix*":["[","]"]}[zr])!=null?we:["(",")"],Ci=[];for(const Li of ir){const Ta=[];for(const po of Li)Ta.push(or[0]+rs(po)+or[1]);Ci.push(Ta.join(","))}const Ni=(Oe={bmatrix:["[","]"],"bmatrix*":["[","]"],cases:["{",":}"]}[zr])!=null?Oe:["(",")"];Yt=Ni[0]+Ci.join(",")+Ni[1];break;case"box":break;case"spacing":Yt=(ot=of[Pn])!=null?ot:" ";break;case"enclose":Yt="("+rs(a.body)+")";break;case"space":Yt=" ";break;case"subsup":Yt="";break;case"macro":Yt=(Zt=(Et=of[Pn])!=null?Et:sf[Pn])!=null?Zt:rs(a.body);break}if(!a.hasEmptyBranch("subscript")){Yt+="_";const Ln=rs(a.subscript);Yt+=Ln.length!==1?`(${Ln})`:Ln}if(!a.hasEmptyBranch("superscript")){Yt+="^";const Ln=rs(a.superscript);Yt+=Ln.length!==1?`(${Ln})`:Ln}return Yt}function Nv(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 Ts(a,y){var b,E;y!=null||(y={}),y.mathstyle=(b=y.mathstyle)!=null?b:"displaystyle";const ee=new Ia({from:Me(xe({},nd()),{renderPlaceholder:()=>new kr(160,{maxFontSize:1}),letterShapeStyle:(E=y==null?void 0:y.letterShapeStyle)!=null?E:"tex"}),mathstyle:y.mathstyle}),se=new Un({mode:"math",type:"root",body:Ls(a,{context:ee,parseMode:"math",mathstyle:y.mathstyle})}).render(ee);return se?(ou(Wd(se,ee)),su(se,{classes:"ML__latex"}).toMarkup()):""}function A1(a){return t0(a,{context:nd()})}function _v(a,y={}){return qa(Ls(a,{parseMode:"math",args:()=>"",mathstyle:"displaystyle"}),y)}function Rv(a){const y=Ls(a,{parseMode:"math",mathstyle:"displaystyle"});return Cd(y)}var th;function zv(a){var y,b;if(!th){const E=(y=globalThis[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:y.ComputeEngine;E?th=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=th==null?void 0:th.box(a).latex)!=null?b:""}function I1(a,y="math"){return rs(new Un({type:"root",body:Ls(a,{parseMode:y})}))}function D1(a){return Bu(a,{format:"ascii-math"})[1]}function jh(a){if(typeof a=="string"){const y=Fv(a);if(!y)throw new Error(`Invalid color: ${a}`);return y}return"C"in a?$v(a):"a"in a?up(a):a}function wd(a){return a<0?0:a>255?255:Math.round(a)}function Fv(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 Uh(a){const[y,b,E]=[a.L,a.C,a.H],ee=E*Math.PI/180,re={L:y,a:b*Math.cos(ee),b:b*Math.sin(ee)};return a.alpha!==void 0&&(re.alpha=a.alpha),re}function Kv(a){const[y,b,E]=[a.L,a.a,a.b],ee=Math.sqrt(b*b+E*E),se=Math.atan2(E,b)*180/Math.PI,me={L:y,C:ee,H:se};return a.alpha!==void 0&&(me.alpha=a.alpha),me}function Vh(a){const[y,b,E]=[a.L,a.a,a.b],ee=Math.pow(.9999999984505198*y+.39633779217376786*b+.2158037580607588*E,3),re=Math.pow(1.00000000888176*y-.10556134232365635*b-.0638541747717059*E,3),se=Math.pow(y*1.000000054672411-.0894841820949657*b-1.2914855378640917*E,3),me=4.076741661347994*ee-3.307711590408193*re+.230969928729428*se,ge=-1.2684380040921763*ee+2.6097574006633715*re-.3413193963102197*se,we=-.004196086541837188*ee-.7034186144594493*re+1.7076147009309444*se,Oe=ot=>{const Et=Math.abs(ot);return Et<=.0031308?ot*12.92:(Math.sign(ot)||1)*(1.055*Math.pow(Et,1/2.4)-.055)};return[Oe(me),Oe(ge),Oe(we)]}function Gh(a){const[y,b,E]=a;return y>=0&&y<=1&&b>=0&&b<=1&&E>=0&&E<=1}function Qh(a,y){let[b,E,ee]=a;return b=wd(b*255),E=wd(E*255),ee=wd(ee*255),y!==void 0?{r:b,g:E,b:ee,alpha:y}:{r:b,g:E,b:ee}}function up(a){let[y,b,E]=Vh(a);if(Gh([y,b,E]))return Qh([y,b,E],a.alpha);const ee=Kv(a);if(ee.C=0,[y,b,E]=Vh(Uh(ee)),!Gh([y,b,E]))return Qh([y,b,E],a.alpha);let re=0,se=a.L,me=(re+se)/2;ee.C=me;const ge=.36/Math.pow(2,12);for(;se-re>ge;)me=(re+se)/2,ee.C=me,[y,b,E]=Vh(Uh(ee)),Gh([y,b,E])?re=me:se=me;return Qh([y,b,E],a.alpha)}function $v(a){return up(Uh(a))}function dp(a,y){const b=jh(a),E=jh(y),ee=.56,re=.57,se=.62,me=.65,ge=.022,we=1.414,Oe=.1,ot=5e-4,Et=1.14,Zt=.027,Yt=1.14,Pn=.027;function Ir(Li){return Li>=ge?Li:Li+zc(ge-Li,we)}function Ln(Li){return(Li<0?-1:1)*Math.pow(Math.abs(Li),2.4)}const ir=Ir(Ln(E.r/255)*.2126729+Ln(E.g/255)*.7151522+Ln(E.b/255)*.072175),zr=Ir(Ln(b.r/255)*.2126729+Ln(b.g/255)*.7151522+Ln(b.b/255)*.072175);let or,Ci,Ni;return Math.abs(zr-ir)<ot?Ci=0:zr>ir?(or=zc(zr,ee)-zc(ir,re),Ci=or*Et):(or=zc(zr,me)-zc(ir,se),Ci=or*Yt),Math.abs(Ci)<Oe?Ni=0:Ci>0?Ni=Ci-Pn:Ni=Ci+Zt,Ni*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=jh(a);let b=((1<<24)+(wd(y.r)<<16)+(wd(y.g)<<8)+wd(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 Io(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 Io(a).length>0}function jv(a){return[Yh(a,"double-struck","mathbb","tooltip.blackboard"),Yh(a,"fraktur","mathfrak","tooltip.fraktur"),Yh(a,"calligraphic","mathcal","tooltip.caligraphic"),Xh(a,"up","mathrm","tooltip.roman-upright"),Xh(a,"bold","mathbf","tooltip.bold"),Xh(a,"italic","mathit","tooltip.italic")]}function Uv(a){return[{label:()=>Ts(`\\vec{${Io(a)}}`),visible:()=>Io(a).length===1,onMenuSelect:()=>a.insert("\\vec{#@}",{selectionMode:"item"})},{label:()=>Ts(`\\overrightarrow{${Io(a)}}`),visible:()=>Io(a).length>0,onMenuSelect:()=>a.insert("\\overrightarrow{#@}",{selectionMode:"item"})},{label:()=>Ts(`\\overleftarrow{${Io(a)}}`),visible:()=>Io(a).length>0,onMenuSelect:()=>a.insert("\\overleftarrow{#@}",{selectionMode:"item"})},{label:()=>Ts(`\\dot{${Io(a)}}`),visible:()=>Io(a).length===1,onMenuSelect:()=>a.insert("\\dot{#@}",{selectionMode:"item"})},{label:()=>Ts(`\\ddot{${Io(a)}}`),visible:()=>Io(a).length===1,onMenuSelect:()=>a.insert("\\ddot{#@}",{selectionMode:"item"})},{label:()=>Ts(`\\bar{${Io(a)}}`),visible:()=>Io(a).length===1,onMenuSelect:()=>a.insert("\\bar{#@}",{selectionMode:"item"})},{label:()=>Ts(`\\overline{${Io(a)}}`),visible:()=>Io(a).length>0,onMenuSelect:()=>a.insert("\\overline{#@}",{selectionMode:"item"})},{label:()=>Ts(`\\overgroup{${Io(a)}}`),visible:()=>Io(a).length>0,onMenuSelect:()=>a.insert("\\overgroup{#@}",{selectionMode:"item"})},{label:()=>Ts(`\\overbrace{${Io(a)}}`),visible:()=>Io(a).length>0,onMenuSelect:()=>a.insert("\\overbrace{#@}",{selectionMode:"item"})},{label:()=>Ts(`\\underline{${Io(a)}}`),visible:()=>Io(a).length>0,onMenuSelect:()=>a.insert("\\underline{#@}",{selectionMode:"item"})},{label:()=>Ts(`\\undergroup{${Io(a)}}`),visible:()=>Io(a).length>0,onMenuSelect:()=>a.insert("\\undergroup{#@}",{selectionMode:"item"})},{label:()=>Ts(`\\underbrace{${Io(a)}}`),visible:()=>Io(a).length>0,onMenuSelect:()=>a.insert("\\underbrace{#@}",{selectionMode:"item"})}]}function Vv(a){return[{label:()=>Ts(`\\boxed{${a.getValue(a.model.selection)}}}`),onMenuSelect:()=>a.insert("\\boxed{#@}",{selectionMode:"item"})},{label:()=>Ts(`\\bbox[5px, border: 2px solid red]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px solid red]{#@}",{selectionMode:"item"})},{label:()=>Ts(`\\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(Ke))y.push({class:(Hv(fp(Ke[b]))==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${Ke[b]} "></span>`,ariaLabel:()=>{var E;return(E=it(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 Qv(a){const y=[];for(const b of Object.keys(Ue))y.push({class:(fp(Ue[b])==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${Ue[b]} "></span>`,ariaLabel:()=>{var E;return(E=it(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 Yv=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 Xv(a){const y=[];for(let b=1;b<=5;b++)for(let E=1;E<=5;E++)y.push({onCreate:(ee,re)=>new Yv(ee,re,b,E),label:"\u2610",tooltip:()=>it("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:()=>it("menu.array.add row above"),id:"add-row-above",onMenuSelect:()=>a.executeCommand("addRowBefore"),visible:()=>ju(a)},{label:()=>it("menu.array.add row below"),id:"add-row-below",onMenuSelect:()=>a.executeCommand("addRowAfter"),visible:()=>ju(a)},{label:()=>it("menu.array.add column before"),id:"add-column-before",onMenuSelect:()=>a.executeCommand("addColumnBefore"),visible:()=>ju(a),enabled:()=>{const y=a.model.parentEnvironment;if(!y)return!1;const[b,E]=e1(a);return b<y.maxColumns}},{label:()=>it("menu.array.add column after"),id:"add-column-after",onMenuSelect:()=>a.executeCommand("addColumnAfter"),visible:()=>ju(a)},{type:"divider"},{label:()=>it("menu.array.delete row"),id:"delete-row",onMenuSelect:()=>a.executeCommand("removeRow"),visible:()=>ju(a)},{label:()=>it("menu.array.delete column"),id:"delete-column",onMenuSelect:()=>a.executeCommand("removeColumn"),visible:()=>ju(a)},{type:"divider"},{label:()=>it("menu.borders"),visible:()=>(qv(a)||ju(a))&&a.isSelectionEditable,submenu:[{label:" \u22F1 ",id:"environment-no-border",onMenuSelect:()=>lf(a,"matrix")},{label:"(\u22F1)",id:"environment-parentheses",onMenuSelect:()=>lf(a,"pmatrix")},{label:"[\u22F1]",id:"environment-brackets",onMenuSelect:()=>lf(a,"bmatrix")},{label:"|\u22F1|",id:"environment-bar",onMenuSelect:()=>lf(a,"vmatrix")},{label:"{\u22F1}",id:"environment-braces",onMenuSelect:()=>lf(a,"Bmatrix")}],submenuClass:"border-submenu"},{type:"divider"},{label:()=>it("menu.insert matrix"),id:"insert-matrix",visible:()=>a.isSelectionEditable,submenu:Xv(a),submenuClass:"insert-matrix-submenu",columnCount:5},{label:()=>it("menu.mode"),id:"mode",visible:()=>a.isSelectionEditable&&a.model.selectionIsCollapsed,submenu:[{label:()=>it("menu.mode-math"),id:"mode-math",onMenuSelect:()=>{fd(a,"accept-all"),a.executeCommand(["switchMode","math"])},checked:()=>a.model.mode==="math"},{label:()=>it("menu.mode-text"),id:"mode-text",onMenuSelect:()=>{fd(a,"accept-all"),a.executeCommand(["switchMode","text"])},checked:()=>a.model.mode==="text"},{label:()=>it("menu.mode-latex"),id:"mode-latex",onMenuSelect:()=>a.executeCommand(["switchMode","latex"]),checked:()=>a.model.mode==="latex"}]},{type:"divider"},{label:()=>it("menu.font-style"),id:"variant",visible:()=>a.isSelectionEditable,submenu:jv(a),submenuClass:"variant-submenu"},{label:()=>it("menu.color"),id:"color",visible:()=>a.isSelectionEditable,submenu:Qv(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>it("menu.background-color"),id:"background-color",visible:()=>a.isSelectionEditable,submenu:Gv(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>it("menu.accent"),id:"accent",visible:()=>a.isSelectionEditable,submenu:Uv(a),submenuClass:"variant-submenu"},{label:()=>it("menu.decoration"),id:"decoration",visible:()=>a.isSelectionEditable&&Io(a).length>0,submenu:Vv(a),submenuClass:"variant-submenu"},{type:"divider"},{label:()=>it("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:()=>it("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?it("menu.solve-for",Ts(b)):it("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(re=>{var se;return(se=re.simplify().latex)!=null?se:""});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:()=>it("menu.cut"),onMenuSelect:()=>a.executeCommand("cutToClipboard"),visible:()=>!a.options.readOnly&&a.isSelectionEditable,keyboardShortcut:"meta+X"},{label:()=>it("menu.copy"),id:"copy",submenu:[{label:()=>it("menu.copy-as-latex"),id:"copy-latex",onMenuSelect:()=>ta.copyToClipboard(a,"latex"),keyboardShortcut:"meta+C"},{label:()=>it("menu.copy-as-ascii-math"),id:"copy-ascii-math",onMenuSelect:()=>ta.copyToClipboard(a,"ascii-math")},{label:()=>it("menu.copy-as-mathml"),id:"copy-math-ml",onMenuSelect:()=>ta.copyToClipboard(a,"math-ml")}]},{label:()=>it("menu.paste"),id:"paste",onMenuSelect:()=>a.executeCommand("pasteFromClipboard"),visible:()=>a.hasEditableContent,keyboardShortcut:"meta+V"},{label:()=>it("menu.select-all"),id:"select-all",keyboardShortcut:"meta+A",onMenuSelect:()=>a.executeCommand("selectAll")}]}function ju(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 lf(a,y){If(a),a.flushInlineShortcutBuffer(),B0(a.model,y),Vo(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 Yh(a,y,b,E){return{label:()=>Ts(`\\${b}{${Io(a)}}`),tooltip:()=>{var ee;return(ee=it(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 Xh(a,y,b,E){return{label:()=>Ts(`\\${b}{${Io(a)}}`),tooltip:()=>{var ee;return(ee=it(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 Ed(a,y){return a+Cd(y)}Il({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:re}=a;function se(Oe){let ot=null;switch(Oe){case"all":ot=re.root;break;case"selection":ot=re.getAtoms(re.selection);break;case"left":{ot=re.getAtoms(re.offsetOf(re.at(re.position).leftSibling),re.position);break}case"right":{ot=re.getAtoms(re.position,re.offsetOf(re.at(re.position).rightSibling));break}case"group":ot=re.getAtoms(re.getSiblingsRange(re.position));break;case"parent":{const{parent:Et}=re.at(re.position);Et!=null&&Et.parent?ot=Et:ot=re.root;break}default:ot=re.root}return ot}function me(Oe){let ot="";switch(Oe){case"all":console.log("Internal failure: speak all failed");break;case"selection":ot="no selection";break;case"left":ot="at start";break;case"right":ot="at end";break;case"group":console.log("Internal failure: speak group failed");break;case"parent":ot="no parent";break;default:console.log('unknown speak_ param value: "'+Oe+'"');break}return ot}const ge=se(y);if(ge===null)return(ee=(E=window.MathfieldElement).speakHook)==null||ee.call(E,me(y)),!1;(b.withHighlighting||window.MathfieldElement.speechEngine==="amazon")&&(window.MathfieldElement.textToSpeechMarkup=window.sre&&window.MathfieldElement.textToSpeechRules==="sre"?"ssml_step":"ssml");const we=Cd(ge);return et()&&b.withHighlighting?(vu().readAloudMathfield=a,_u(a,{forHighlighting:!0}),window.MathfieldElement.readAloudHook&&window.MathfieldElement.readAloudHook(a.field,we)):window.MathfieldElement.speakHook&&window.MathfieldElement.speakHook(we),!1}function r1(a){var y,b;if(!et()){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,(re,se)=>{if(re)console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${re}`);else if(se!=null&&se.AudioStream){const me=new Uint8Array(se.AudioStream),ge=new Blob([me.buffer],{type:"audio/mpeg"}),we=URL.createObjectURL(ge);new Audio(we).play().catch(ot=>console.log(ot))}else console.log("polly.synthesizeSpeech():",se)})}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=Ed("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=Ed("",a.model.at(a.model.position));else if(y==="line"){const re=Ed("",a.model.root);a.keyboardDelegate.setAriaLabel(re)}else ee=E?Ed(y+" ",E):y;if(ee){const re=a.ariaLiveText.textContent.includes("\xA0")?" \u202F ":" \xA0 ";a.ariaLiveText.textContent=ee+re}}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 re=a.at(a.position).parent;for(;ee!==a.root&&ee!==re;)E+=`out of ${pp(ee)};`,ee=ee.parent;return E}function o1(a){if(!a.selectionIsCollapsed)return Ed("",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+=Ed("",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 re=this.silenceNotifications;this.silenceNotifications=!0,this.mode=a.mode,this.root=hu(a.content),this.selection=a.selection,this.silenceNotifications=re,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 re=this.normalizeSelection(a,y);if(re===void 0)throw new TypeError("Invalid selection");if(re.ranges.length===1&&re.ranges[0][0]===re.ranges[0][1]){const Oe=re.ranges[0][0];if(!this.mathfield.dirty&&!((b=this.at(Oe))!=null&&b.parentPrompt)&&this.mathfield.hasEditablePrompts){if((E=this.at(Oe-1))!=null&&E.parentPrompt){this._anchor=this.normalizeOffset(Oe-1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}if((ee=this.at(Oe+1))!=null&&ee.parentPrompt){this._anchor=this.normalizeOffset(Oe+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=Oe,this._position=Oe,this._selection=re;return}const se=Is(re);re.direction==="backward"?[this._position,this._anchor]=se:[this._anchor,this._position]=se;const me=this.at(se[0]+1),ge=this.at(se[1]),we=Un.commonAncestor(me,ge);(we==null?void 0:we.type)==="array"&&me.parent===we&&ge.parent===we?this._selection={ranges:[se],direction:re.direction}:this._selection={ranges:[se],direction:re.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 Rs&&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(id(a)){if(E=y!=null?y:{},a.ranges.length>1)return a.ranges.reduce((we,Oe)=>[...we,...this.getAtoms(Oe,E)],[]);a=a.ranges[0]}let ee,re;if(Cc(a)){if(ee=a,!Cc(y))return[];re=y}else[ee,re]=a,E=y!=null?y:{};if(!Number.isFinite(ee))return[];E.includeChildren===void 0&&(E.includeChildren=!1),ee<0&&(ee=this.lastOffset-ee+1),re<0&&(re=this.lastOffset-re+1);const se=Math.min(ee,re)+1,me=Math.max(ee,re);if(!E.includeChildren&&se===1&&me===this.lastOffset)return[this.root];let ge=[];for(let we=se;we<=me;we++){const Oe=this.atoms[we];mp(this,Oe,se,me)&&ge.push(Oe)}return E.includeChildren||(ge=ge.filter(we=>{let Oe=!1,{parent:ot}=we;for(;ot&&!Oe;)Oe=mp(this,ot,se,me),ot=ot.parent;return!Oe})),ge}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 re=y;re<=ee;re++)if(E=this.atoms[re],a(E))return E;for(let re=0;re<y;re++)if(E=this.atoms[re],a(E))return E;return}for(let re=y;re>=0;re--)if(E=this.atoms[re],a(E))return E;for(let re=ee;re>y;re--)if(E=this.atoms[re],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 Un({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 Un.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 qa(a);if(b==="spoken")return Cd(a);if(b==="spoken-text"){const E=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="";const ee=Cd(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=Cd(a);return window.MathfieldElement.textToSpeechMarkup=E,ee}return b==="ascii-math"?rs(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(Cc(a)&&Cc(y)?(E=[this.normalizeRange([a,y])],ee=b):rd(a)?(E=[this.normalizeRange(a)],ee=y):id(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 re=this.getValue({ranges:E},"latex-unstyled");try{const se=window.MathfieldElement.computeEngine.parse(re);return JSON.stringify(se.json)}catch(se){return JSON.stringify(["Error",`'${se.toString()}'`])}}if(ee.startsWith("latex")){const re={expandMacro:ee==="latex-expanded",skipStyles:ee==="latex-unstyled",skipPlaceholders:ee==="latex-without-placeholders",defaultMode:this.mathfield.options.defaultMode};return pa(E.map(se=>Un.serialize(this.getAtoms(se),re)))}return E.map(re=>this.getAtoms(re).map(se=>this.atomToString(se,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:re}=this.at(ee);if(re&&(re.type==="genfrac"||re.type==="subsup"))for(;re!==this.root&&Jh(this,re,[E,ee]);)ee=this.offsetOf(re),re=re.parent;for(re=this.at(E).parent;re!==this.root&&Jh(this,re,[E,ee]);)E=this.offsetOf(re.leftSibling),re=re.parent;if(re=this.at(ee).parent,(re==null?void 0:re.type)==="genfrac")for(;re!==this.root&&Jh(this,re,[E,ee]);)ee=this.offsetOf(re),console.assert(ee>=0),re=re.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,re=this.silenceNotifications;this.silenceNotifications=!0;const se=this.root.changeCounter;y();const me=this.root.changeCounter!==se,ge=E!==this._anchor||ee!==this._position||Tu(this._selection,b)==="different";return this.silenceNotifications=re,a.content&&me&&this.contentDidChange({inputType:a.type}),a.selection&&ge&&this.selectionDidChange(),me||ge}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(Cc(a)){const ee=this.normalizeOffset(a);if(Cc(y)){const re=this.normalizeOffset(y);E=ee<=re?{ranges:[[ee,re]],direction:"none"}:{ranges:[[re,ee]],direction:"backward"}}else E={ranges:[[ee,ee]],direction:"none"}}else if(rd(a)){const ee=this.normalizeOffset(a[0]),re=this.normalizeOffset(a[1]);E=ee<=re?{ranges:[[ee,re]],direction:"none"}:{ranges:[[re,ee]],direction:"backward"}}else id(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(Lc(this.mathfield)),this.silenceNotifications||!this.mathfield.host||!this.mathfield)return;const b=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.host.dispatchEvent(new InputEvent("input",Me(xe({},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(Lc(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 re=a.offsetOf(y.firstChild);if(re>=b&&re<=E){const se=a.offsetOf(y.lastChild);if(se>=b&&se<=E)return!0}return!1}function Jh(a,y,b){if(!(y!=null&&y.hasChildren))return!1;const[E,ee]=b,re=a.offsetOf(y.firstChild),se=a.offsetOf(y.lastChild);return re>=E&&re<=ee&&se>=re&&se<=ee}function cf(a,y,b,E){var ee,re,se,me,ge,we;const Oe=b.parent;if(Oe&&b instanceof Ja){const ot=!E&&y==="forward"||E==="body"&&y==="backward";let Et=ot?a.offsetOf(b.firstChild):a.offsetOf(b.lastChild);return ot?b.rightDelim!=="?"&&b.rightDelim!=="."?(b.leftDelim=".",b.isDirty=!0):(Oe.addChildrenAfter(b.removeBranch("body"),b),Oe.removeChild(b),Et--):b.leftDelim!=="?"&&b.leftDelim!=="."?(b.rightDelim=".",b.isDirty=!0):(Oe.addChildrenAfter(b.removeBranch("body"),b),Oe.removeChild(b),Et--),a.position=Et,!0}if(Oe&&b.type==="surd"){if(y==="forward"&&!E||y==="backward"&&E==="body"){const ot=b.leftSibling;b.hasChildren&&Oe.addChildrenAfter(b.removeBranch("body"),b),Oe.removeChild(b),a.position=a.offsetOf(ot)}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),Oe.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(Oe&&(b.type==="box"||b.type==="enclose")){const ot=E&&y==="backward"||!E&&y==="forward"?b.leftSibling:b.lastChild;return Oe.addChildrenAfter(b.removeBranch("body"),b),Oe.removeChild(b),a.position=a.offsetOf(ot),!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 ot=uf.fractionNavigationOrder==="numerator-denominator"?"above":"below",Et=ot==="above"?"below":"above";if(Oe&&(y==="forward"&&E===ot||y==="backward"&&E===Et)){const Zt=b.removeBranch(ot),Yt=b.removeBranch(Et);return Oe.addChildrenAfter([...Zt,...Yt],b),Oe.removeChild(b),a.position=a.offsetOf(Zt.length>0?Zt[Zt.length-1]:Yt[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 ot=y==="forward"?(se=(ee=b.superscript)==null?void 0:ee[0])!=null?se:(re=b.subscript)==null?void 0:re[0]:(we=(me=b.subscript)==null?void 0:me[0].lastSibling)!=null?we:(ge=b.superscript)==null?void 0:ge[0].lastSibling;return ot&&(a.position=a.offsetOf(ot)),!0}return!1}if(!b.hasChildren&&b.type==="subsup"){const ot=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);return b.parent.removeChild(b),a.position=ot,!0}if(E==="superscript")if(y==="backward"){const ot=a.offsetOf(b.firstChild)-1;console.assert(ot>=0),a.position=ot}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 ot=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);b.parent.removeChild(b),a.position=ot}return!0}if((Oe==null?void 0:Oe.type)==="genfrac"&&!E&&b.type!=="first"){let ot=a.offsetOf(b.leftSibling);return Oe.removeChild(b),Oe.hasEmptyBranch("above")&&Oe.hasEmptyBranch("below")?(ot=a.offsetOf(Oe.leftSibling),Oe.parent.removeChild(Oe),a.announce("delete",void 0,[Oe]),a.position=ot,!0):(a.announce("delete",void 0,[b]),a.position=ot,!0)}if(y==="backward"&&((Oe==null?void 0:Oe.command)==="\\ln"||(Oe==null?void 0:Oe.command)==="\\log")&&b.parentBranch!=="body"){const ot=a.offsetOf(Oe.leftSibling);return Oe.parent.removeChild(Oe),a.announce("delete",void 0,[Oe]),a.position=ot,!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&&cf(a,"backward",y))){if(y!=null&&y.isFirstSibling){if(cf(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])}}):Bc(a,Is(a.selection),"deleteContentBackward")}function c1(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&&cf(a,"forward",E))return;if(E){if(a.at(a.position).isLastSibling&&cf(a,"forward",E.parent,E.parentBranch))return}else{if(E=a.at(a.position),E.isLastSibling&&cf(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])}):Bc(a,Is(a.selection),"deleteContentForward")}function Bc(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 re=E[E.length-1].parent.lastChild;let se=E[0];se.type==="first"&&(se=se.rightSibling);const me=E[E.length-1];if(se===ee&&me===re){const ge=E[0].parent;ge.parent&&ge.type!=="prompt"&&(y=[a.offsetOf(ge.leftSibling),a.offsetOf(ge)])}if(E.length===1&&E[0].type==="placeholder"&&E[0].parent.type==="genfrac"){const ge=E[0].parent,we=E[0].parentBranch==="below"?"above":"below",Oe=a.offsetOf(ge.leftSibling);return a.deferNotifications({content:!0,selection:!0,type:b},()=>{var ot,Et;const Zt=ge.removeBranch(we);if(Zt.length===1&&Zt[0].type==="placeholder")(Et=ge.parent)==null||Et.removeChild(ge),a.position=Math.max(0,Oe);else{const Yt=ge.parent.addChildrenAfter(Zt,ge);(ot=ge.parent)==null||ot.removeChild(ge),a.position=a.offsetOf(Yt)}})}}return a.deferNotifications({content:!0,selection:!0,type:b},()=>a.deleteAtoms(y))}Il({deleteAll:a=>a.contentWillChange({inputType:"deleteContent"})&&Bc(a,[0,-1],"deleteContent"),deleteForward:a=>c1(a),deleteBackward:a=>l1(a),deleteNextWord:a=>a.contentWillChange({inputType:"deleteWordForward"})&&Bc(a,[a.anchor,Ah(a,a.position,"forward")],"deleteWordForward"),deletePreviousWord:a=>a.contentWillChange({inputType:"deleteWordBackward"})&&Bc(a,[a.anchor,Ah(a,a.position,"backward")],"deleteWordBackward"),deleteToGroupStart:a=>a.contentWillChange({inputType:"deleteSoftLineBackward"})&&Bc(a,[a.anchor,a.offsetOf(a.at(a.position).firstSibling)],"deleteSoftLineBackward"),deleteToGroupEnd:a=>a.contentWillChange({inputType:"deleteSoftLineForward"})&&Bc(a,[a.anchor,a.offsetOf(a.at(a.position).lastSibling)],"deleteSoftLineForward"),deleteToMathFieldStart:a=>a.contentWillChange({inputType:"deleteHardLineBackward"})&&Bc(a,[a.anchor,0],"deleteHardLineBackward"),deleteToMathFieldEnd:a=>a.contentWillChange({inputType:"deleteHardLineForward"})&&Bc(a,[a.anchor,-1],"deleteHardLineForward")},{target:"model",audioFeedback:"delete",canUndo:!0,changeContent:!0,changeSelection:!0});var u1=`<svg xmlns="http://www.w3.org/2000/svg" style="width: 21px;" viewBox="0 0 576 512" role="img" aria-label="${it("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="${it("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=xe(Me(xe({},Ff()),{macros:nn(),registers:Yl()}),zf(y)),this.eventController=new AbortController;const re=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 se=(E=(b=y.value)!=null?b:this.element.textContent)!=null?E:"";se=se.trim();const me=D0(this.options),ge=new Un({type:"root",mode:me,body:Ls(se,{context:this.context})});this.model=new s1(this,me,ge),this.undoManager=new Rg(this.model);const we=[];if(we.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>"),we.push('<span part=container class=ML__container aria-hidden=true style="visibility:hidden">'),we.push("<span part=content class=ML__content>"),we.push(S0(this)),we.push("</span>"),window.mathVirtualKeyboard&&(we.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">`),we.push(u1),we.push("</div>")),we.push('<div part=menu-toggle class=ML__menu-toggle role=button data-l10n-tooltip="tooltip.menu">'),we.push(d1),we.push("</div>"),we.push("</span>"),we.push("<span class=ML__sr-only>"),we.push("<span role=status aria-live=assertive aria-atomic=true></span>"),we.push("</span>"),this.element.innerHTML=window.MathfieldElement.createHTML(we.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=ft.subscribe(()=>ft.update(this.element)),ft.update(this.element),this.field=this.element.querySelector("[part=content]"),this.field.addEventListener("click",ot=>ot.stopImmediatePropagation(),{capture:!1,signal:re}),this.field.addEventListener("wheel",this,{passive:!1,signal:re}),"PointerEvent"in window?this.field.addEventListener("pointerdown",this,{signal:re}):this.field.addEventListener("mousedown",this,{signal:re}),(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(Lc(this)))},{signal:re}),this._menu=new Cv(Jv(this),{host:this.host}),this.field.addEventListener("contextmenu",this,{signal:re});const Oe=this.element.querySelector("[part=menu-toggle]");Oe==null||Oe.addEventListener("pointerdown",ot=>{if(ot.currentTarget!==Oe||this._menu.state!=="closed")return;this.element.classList.add("tracking");const Et=Oe.getBoundingClientRect();this._menu.modifiers=Nu(ot),this._menu.show({target:Oe,location:{x:Et.left,y:Et.bottom},onDismiss:()=>this.element.classList.remove("tracking")}),ot.preventDefault(),ot.stopPropagation()},{signal:re}),(this.model.atoms.length<=1||this.disabled||this.readOnly&&!this.hasEditableContent||this.userSelect==="none")&&(Oe.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:re}),document.addEventListener("scroll",this,{signal:re}),this.resizeObserver=new ResizeObserver(()=>Vo(this)),this.resizeObserver.observe(this.field),window.mathVirtualKeyboard.addEventListener("virtual-keyboard-toggle",this,{signal:re}),Vd&&!ft.locale.startsWith(Vd.locale)&&zm(ft.locale),Hl!=="ready"&&document.fonts.ready.then(()=>Of(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(Lc(this)),Xf(this))}disconnectFromVirtualKeyboard(){this.connectedToVirtualKeyboard&&(window.removeEventListener("message",this),window.mathVirtualKeyboard.disconnect(),this.connectedToVirtualKeyboard=!1,zh())}showMenu(a){var y,b;const E=(b=(y=a==null?void 0:a.location)!=null?y:Mc(this.field))!=null?b:void 0,ee=a==null?void 0:a.modifiers,re=this.element.querySelector("[part=container]");return this._menu.show({target:re,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:st(a)}}get backgroundColorMap(){return a=>{var y,b,E,ee,re,se;return(se=(re=(b=(y=this.options).backgroundColorMap)==null?void 0:b.call(y,a))!=null?re:(ee=(E=this.options).colorMap)==null?void 0:ee.call(E,a))!=null?se:Ie(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=Un.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=xe({},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=Oh(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 ge of Object.keys(y)){const we=this.queryStyle({[ge]:y[ge]});if(we==="none")return"none";if(we==="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 re=this.model.getAtoms(this.model.selection,{includeChildren:!0});let se=re.length;if(se===0)return"none";let me=0;for(const ge of re){if(ge.type==="first"){se-=1;continue}ge.style[E]===ee&&(me+=1)}return me===0?"none":me===se?"all":"some"}get keybindings(){var a,y;if(this._keybindings)return this._keybindings;const[b,E]=Vm(this.options.keybindings,(a=Gd())!=null?a:Fm());return((y=Gd())==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=xe(xe({},this.options),zf(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=Un.serialize([this.model.root],{expandMacro:!1,defaultMode:this.options.defaultMode});("macros"in a||this.model.getValue()!==E)&&ta.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)&&Vo(this)}getOptions(a){return zu(this.options,a)}getOption(a){return zu(this.options,a)}handleEvent(a){return yu(this,null,function*(){var y;if(Fl(this)){if(wh(a)){if(!Fd(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(pd(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))&&Vf.stop());break;case"contextmenu":this.userSelect!=="none"&&a.shiftKey===!1&&(yield ip(a,this.element.querySelector("[part=container]"),this._menu))&&Vf.stop();break;case"virtual-keyboard-toggle":this.hasFocus()&&Xf(this);break;case"resize":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>Fl(this)&&this.onGeometryChange());break;case"scroll":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>Fl(this)&&this.onGeometryChange());break;case"wheel":this.onWheel(a);break;default:console.warn("Unexpected event type",a.type)}}})}dispose(){if(!Fl(this))return;ft.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 pd(a)==="virtual-keyboard"?(this.focus({preventScroll:!0}),window.mathVirtualKeyboard.executeCommand(a),requestAnimationFrame(()=>window.mathVirtualKeyboard.update(Lc(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=ah(this.model,this.model.position))!=null?b:"math");const E=this.undoManager.canUndo();ta.insert(this.model,a,y)&&(Vo(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&&_u(this,{interactive:!0});const y=this.field.getBoundingClientRect();let b=null;if(this.model.selectionIsCollapsed)b=Mc(this.field);else{const E=zd(this);if(E.length>0){let ee=-1/0,re=-1/0;for(const se of E)se.right>ee&&(ee=se.right),se.top<re&&(re=se.top);b={x:ee+y.left-this.field.scrollLeft,y:re+y.top-this.field.scrollTop,height:0}}}if(this.host&&b){const E=this.host.getBoundingClientRect(),ee=b.y;let re=this.host.scrollTop;ee<E.top?re=ee-E.top+this.host.scrollTop:ee>E.bottom&&(re=ee-E.bottom+this.host.scrollTop+b.height),this.host.scroll({top:re,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&&je()&&navigator.vibrate(C0),window.MathfieldElement.playSound("keypress")),a==="\\\\"?L0(this.model):a==="&"?T0(this.model):this.model.selectionIsCollapsed?ta.insert(this.model,a,xe({style:this.model.at(this.model.position).computedStyle},y)):ta.insert(this.model,a,y),this.snapshot(`insert-${this.model.at(this.model.position).type}`),Vo(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 re=this.model.mode,{model:se}=this;se.deferNotifications({content:!!b||!!y,selection:!0,type:"insertText"},()=>{let me=!1;if(this.flushInlineShortcutBuffer(),this.stopCoalescingUndo(),y&&a!=="latex"){const ge=Ls(y,{context:this.context,parseMode:a});se.collapseSelection("forward");const we=se.at(se.position);se.position=se.offsetOf(we.parent.addChildrenAfter(ge,we)),me=!0}if(this.model.mode=a,a==="latex"){let ge=se.selectionIsCollapsed;fd(this,"accept");let we,Oe=se.at(se.position);if(ge)we="\\";else{const Et=Is(se.selection);we=this.model.getValue(Et,"latex");const Zt=this.model.extractAtoms(Et);Zt.length===1&&Zt[0].type==="placeholder"&&(we=y,ge=!0),Oe=se.at(Et[0])}const ot=new $d(we);Oe.parent.addChildAfter(ot,Oe),ge?se.position=se.offsetOf(ot.lastChild):se.setSelection(se.offsetOf(ot.firstChild),se.offsetOf(ot.lastChild))}else Qd(se).forEach(ge=>{ge.isError=!1});if(b){const ge=Ls(b,{context:this.context,parseMode:re});se.collapseSelection("forward");const we=se.at(se.position);se.position=se.offsetOf(we.parent.addChildrenAfter(ge,we)),me=!0}return Vo(this),this.undoManager.snapshot(a==="latex"?"insert-latex":"insert"),me}),this.model.mode=a,window.mathVirtualKeyboard.update(Lc(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};rd(y)?ee.range=y:(y.operation==="toggle"&&(ee.operation="toggle"),ee.range=y.range,ee.silenceNotifications=(b=y.silenceNotifications)!=null?b:!1);const re=Oh(this,a),se=(E=ee.operation)!=null?E:"set";if(ee.range===void 0&&this.model.selectionIsCollapsed){if(se==="set"){this.defaultStyle=xe(xe({},this.defaultStyle),re);return}const me=xe({},this.defaultStyle);for(const ge of Object.keys(re))me[ge]===re[ge]?(ge==="color"&&delete me.verbatimColor,ge==="backgroundColor"&&delete me.verbatimBackgroundColor,delete me[ge]):me[ge]=re[ge];this.defaultStyle=me;return}this.model.deferNotifications({content:!ee.silenceNotifications,type:"insertText"},()=>{if(ee.range===void 0)for(const me of this.model.selection.ranges)Mh(this.model,me,re,{operation:se});else Mh(this.model,ee.range,re,{operation:se})}),Vo(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=Mc(this.field);return a?{x:a.x,y:a.y}:null}setCaretPoint(a,y){const b=rf(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),Vo(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,Me(xe({},b),{insertionMode:"replaceSelection"}))}b!=null&&b.silenceNotifications&&(this.valueOnFocus=this.getValue()),Vo(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),Vo(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(Lc(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(Lc(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(Lc(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:D0(this.options);this.model.mode!==ee&&(this.model.mode==="latex"?(fd(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(Lc(this)),Xf(this)}onContentWillChange(a){var y,b,E;return(E=(b=this.host)==null?void 0:b.dispatchEvent(new InputEvent("beforeinput",Me(xe({},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(),_u(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})),Vo(this),this.focusBlurInProgress=!1,zh();const E=new AbortController,ee=E.signal;document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&document.addEventListener("visibilitychange",()=>{Fl(this)&&document.visibilityState==="visible"&&this.focus({preventScroll:!0})},{once:!0,signal:ee})},{once:!0,signal:ee}),setTimeout(()=>E.abort(),100)}onInput(a){Lh(this,a)}onKeystroke(a){return $0(this,a)}onCompositionStart(a){this.model.deleteAtoms(Is(this.model.selection));const y=Mc(this.field);y&&requestAnimationFrame(()=>{_u(this),this.keyboardDelegate.moveTo(y.x,y.y-y.height)})}onCompositionUpdate(a){Ig(this.model,a),Vo(this)}onCompositionEnd(a){Dg(this.model),Lh(this,a,{simulateKeystroke:!0})}onCut(a){if(!this.isSelectionEditable){this.model.announce("plonk");return}this.model.contentWillChange({inputType:"deleteByCut"})&&(this.stopCoalescingUndo(),ta.onCopy(this,a),Bc(this.model,Is(this.model.selection),"deleteByCut"),this.snapshot("cut"),Vo(this))}onCopy(a){ta.onCopy(this,a)}onPaste(a){let y=this.isSelectionEditable;return y&&(y=ta.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(),Lf(this),Xf(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=>Pt(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(!et())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"]};vu().readAloudElement=a,E.synthesizeSpeech(ee,(re,se)=>{if(re){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${re}`);return}if(!(se!=null&&se.AudioStream)){console.log("polly.synthesizeSpeech():",se);return}const me=new TextDecoder("utf-8").decode(new Uint8Array(se.AudioStream));vu().readAloudMarks=me.split(`
|
|
|
`).map(ge=>ge?JSON.parse(ge):{}),vu().readAloudTokens=[];for(const ge of vu().readAloudMarks)ge.value&&vu().readAloudTokens.push(ge.value);vu().readAloudCurrentMark="",ee.OutputFormat="mp3",ee.SpeechMarkTypes=[],E.synthesizeSpeech(ee,(ge,we)=>{if(ge){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech("${y}") error:${ge}`);return}if(!(we!=null&&we.AudioStream))return;const Oe=new Uint8Array(we.AudioStream),ot=new Blob([Oe.buffer],{type:"audio/mpeg"}),Et=URL.createObjectURL(ot),Zt=vu();Zt.readAloudAudio?Zt.readAloudAudio.pause():(Zt.readAloudAudio=new Audio,Zt.readAloudAudio.addEventListener("ended",()=>{const Yt=Zt.readAloudMathfield;Zt.readAloudStatus="ended",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),Yt?(_u(Yt),Zt.readAloudElement=null,Zt.readAloudMathfield=null,Zt.readAloudTokens=[],Zt.readAloudMarks=[],Zt.readAloudCurrentMark=""):gp(Zt.readAloudElement)}),Zt.readAloudAudio.addEventListener("timeupdate",()=>{let Yt="";const Pn=Zt.readAloudAudio.currentTime*1e3+100;for(const Ir of Zt.readAloudMarks)Ir.time<Pn&&(Yt=Ir.value);Zt.readAloudCurrentMark!==Yt&&(Zt.readAloudCurrentToken=Yt,Yt&&Yt===Zt.readAloudFinalToken?Zt.readAloudAudio.pause():(Zt.readAloudCurrentMark=Yt,qh(Zt.readAloudElement,Zt.readAloudCurrentMark)))})),Zt.readAloudAudio.src=Et,Zt.readAloudStatus="playing",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),Zt.readAloudAudio.play()})})}et()||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 Ha=new WeakMap,p1=.5,gu={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 = ..."},zs=class Uu extends HTMLElement{static get formAssociated(){return Md()}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 ft.locale}static set locale(y){y==="auto"&&(y=navigator.language.slice(0,5)),ft.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 ft.strings}static set strings(y){ft.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 yu(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 re=yield(yield fetch(yield x0(`${E}/${b}`))).arrayBuffer(),se=yield this.audioContext.decodeAudioData(re);this.audioBuffers[y]=se}catch(ee){}})}static playSound(y){return yu(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(gu[E])if(gu[E].startsWith("mf."))if(gu[E].startsWith(`mf.${E}`))b.push(`Option \`${E}\` cannot be used as a constructor option. Use ${gu[E]}`);else{const ee=gu[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 ${gu[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(Md()&&(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=[fu("core"),fu("mathfield"),fu("mathfield-element"),fu("ui"),fu("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>"+Zc("core")+Zc("mathfield")+Zc("mathfield-element")+Zc("ui")+Zc("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=Uu.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?zu(this._mathfield.options,y):Ha.has(this)?xe({},zu(xe(xe({},Ff()),zf(Ha.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?zu(this._mathfield.options,y):Ha.has(this)?zu(xe(xe({},Ff()),zf(Ha.get(this).options)),y):null}reflectAttributes(){const y=Ff(),b=this._getOptions();Object.keys(Uu.optionsAttributes).forEach(E=>{const ee=Vc(E);Uu.optionsAttributes[E]==="on/off"?y[ee]!==b[ee]?this.setAttribute(E,b[ee]?"on":"off"):this.removeAttribute(E):y[ee]!==b[ee]&&(Uu.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(Ha.has(this)){const b=xe(xe({},Ha.get(this).options),y);Ha.set(this,Me(xe({},Ha.get(this)),{selection:{ranges:b.readOnly?[[0,0]]:[[0,-1]]},options:b}))}else Ha.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))gu[b]&&console.warn(`\`mf.setOptions({${b}:...})\` -> ${gu[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,re;if(this._mathfield)return this._mathfield.model.getValue(y,b,E);if(Ha.has(this)){let se,me,ge;if(id(y)?([se,me]=y.ranges[0],ge=b):rd(y)?([se,me]=y,ge=b):Cc(y)&&Cc(b)?(se=y,me=b,ge=E):(se=0,me=-1,ge=y),(ge===void 0||ge==="latex")&&se===0&&me===-1)return(re=(ee=Ha.get(this).value)!=null?ee:this.textContent)!=null?re:""}return""}setValue(y,b){if(this._mathfield&&y!==void 0){b!=null||(b={silenceNotifications:!0,mode:"math"}),this._mathfield.setValue(y,b);return}if(Ha.has(this)){const ee=Ha.get(this).options;Ha.set(this,{value:y,selection:{ranges:[[-1,-1]],direction:"forward"},options:ee,menuItems:void 0});return}const E=df(this);Ha.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?rf(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=uu(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,re;Ac.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"&&((re=this._mathfield)==null||re.blur()))}connectedCallback(){var y,b,E,ee;const re=window.getComputedStyle(this),se=this.shadowRoot,me=re.userSelect!=="none";if(me)se.host.addEventListener("pointerdown",this,!0);else{const Oe=se.querySelector("span");Oe.style.pointerEvents="none"}se.host.addEventListener("focus",this,!0),se.host.addEventListener("blur",this,!0),Md()||(this.hasAttribute("role")||this.setAttribute("role","math"),this.hasAttribute("aria-label")||this.setAttribute("aria-label","math input field"),this.setAttribute("aria-multiline","false")),me&&!this.hasAttribute("contenteditable")&&this.setAttribute("contenteditable","true"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0");const ge=se.querySelector("slot:not([name])");if(ge)try{this._style=ge.assignedElements().filter(Oe=>Oe.tagName.toLowerCase()==="style").map(Oe=>Oe.textContent).join("")}catch(Oe){console.error(Oe)}if(this._style){const Oe=document.createElement("style");Oe.textContent=this._style,se.appendChild(Oe)}let we="";if(this.hasAttribute("value")?we=this.getAttribute("value"):we=(y=ge==null?void 0:ge.assignedNodes().map(Oe=>Oe.nodeType===3?Oe.textContent:"").join("").trim())!=null?y:"",this._mathfield=new f1(se.querySelector(":host > span"),Me(xe({},(E=(b=Ha.get(this))==null?void 0:b.options)!=null?E:df(this)),{eventSink:this,value:we})),!Ha.has(this)){this.upgradeProperty("disabled"),this.upgradeProperty("readonly");for(const Oe of Object.keys(Uu.optionsAttributes))this.upgradeProperty(Vc(Oe))}if(!((ee=this._mathfield)!=null&&ee.model)){this._mathfield=null;return}if(Ha.has(this)){const Oe=this._mathfield,ot=Ha.get(this),Et=ot.menuItems;Oe.model.deferNotifications({content:!1,selection:!1},()=>{const Zt=ot.value;Zt!==void 0&&Oe.setValue(Zt),Oe.model.selection=ot.selection,Ha.delete(this)}),Et&&(this.menuItems=Et)}window.queueMicrotask(()=>{this.isConnected&&this.dispatchEvent(new Event("mount",{cancelable:!1,bubbles:!0,composed:!0}))}),Bf()}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=zu(this._mathfield.options,Object.keys(Uu.optionsAttributes).map(ee=>Vc(ee)));Ha.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":Vo(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",""),Md()?this._internals.ariaReadOnly="true":this.setAttribute("aria-readonly","true"),this.setAttribute("aria-readonly","true")):(Md()?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"),Md()?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:Me(xe({},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=Ha.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}Ha.has(this)?Ha.set(this,Me(xe({},Ha.get(this)),{menuItems:y})):Ha.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:df(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:Ha.has(this)?Ha.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,Vo(this._mathfield);return}if(Ha.has(this)){Ha.set(this,Me(xe({},Ha.get(this)),{selection:y}));return}Ha.set(this,{value:void 0,selection:y,options:df(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:Ha.has(this)?Ha.get(this).selection.ranges[0][0]:0}set position(y){if(this._mathfield&&(this._mathfield.model.position=y,Vo(this._mathfield)),Ha.has(this)){Ha.set(this,Me(xe({},Ha.get(this)),{selection:{ranges:[[y,y]]}}));return}Ha.set(this,{value:void 0,selection:{ranges:[[y,y]]},options:df(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}};zs.version="0.98.5",zs._fontsDirectory="./fonts",zs._soundsDirectory="./sounds",zs.keypressVibration=!0,zs._keypressSound={spacebar:"keypress-spacebar.wav",return:"keypress-return.wav",delete:"keypress-delete.wav",default:"keypress-standard.wav"},zs._plonkSound="plonk.wav",zs.audioBuffers={},zs.createHTML=a=>a,zs._speechEngineRate="100%",zs._speechEngineVoice="Joanna",zs._textToSpeechMarkup="",zs._textToSpeechRules="mathlive",zs._textToSpeechRulesOptions={},zs.speakHook=r1,zs.readAloudHook=h1,zs._decimalSeparator=".",zs.fractionNavigationOrder="numerator-denominator",zs._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 uf=zs;function Vc(a){return a.replace(/[^a-zA-Z\d]+(.)/g,(y,b)=>b.toUpperCase())}function df(a){const y={readOnly:!1},b=uf.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[Vc(E)]=!0:b[E]==="on/off"?ee==="on"?y[Vc(E)]=!0:ee==="off"?y[Vc(E)]=!1:y[Vc(E)]=void 0:b[E]==="number"?y[Vc(E)]=Number.parseFloat(ee!=null?ee:"0"):y[Vc(E)]=ee}}),y}function Md(){return!(!("ElementInternals"in window)||!HTMLElement.prototype.attachInternals||!("role"in window.ElementInternals.prototype))}var vp=uf,yp,bp,xp,Sp;if(et()&&!((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=uf,(Sp=window.customElements)==null||Sp.define("math-field",uf)}function m1(a,y,b){let E=b,ee=0;const re=a.length;for(;E<y.length;){const se=y[E];if(ee<=0&&y.slice(E,E+re)===a)return E;se==="\\"?E++:se==="{"?ee++:se==="}"&&ee--,E++}return-1}function nh(a,y,b,E,ee="latex"){const re=[];for(const se of a)if(se.type==="text"){const me=se.data;let ge=!0,we=0,Oe;Oe=me.indexOf(y),Oe!==-1&&(we=Oe,we>0&&re.push({type:"text",data:me.slice(0,we)}),ge=!1);let ot=!1;for(;!ot;){if(ge){if(Oe=me.indexOf(y,we),Oe===-1){ot=!0;break}we!==Oe&&re.push({type:"text",data:me.slice(we,Oe)}),we=Oe}else{if(Oe=m1(b,me,we+y.length),Oe===-1){ot=!0;break}let Et=me.slice(we+y.length,Oe);ee==="ascii-math"&&([,Et]=Bu(Et,{format:"ascii-math"})),re.push({type:"math",data:Et,rawData:me.slice(we,Oe+b.length),mathstyle:E}),we=Oe+b.length}ge=!ge}we<me.length&&re.push({type:"text",data:me.slice(we)})}else re.push(se);return re}function Cp(a,y,b){let E=[{type:"text",data:a}];return y!=null&&y.inline&&y.inline.forEach(([ee,re])=>{E=nh(E,ee,re,"textstyle")}),y!=null&&y.display&&y.display.forEach(([ee,re])=>{E=nh(E,ee,re,"displaystyle")}),b!=null&&b.inline&&b.inline.forEach(([ee,re])=>{E=nh(E,ee,re,"textstyle","ascii-math")}),b!=null&&b.display&&b.display.forEach(([ee,re])=>{E=nh(E,ee,re,"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"}),re=document.createElement("span");return re.dataset.latex=a,re.style.display=b==="displaystyle"?"flex":"inline-flex",re.setAttribute("aria-hidden","true"),re.setAttribute("translate","no"),re.innerHTML=window.MathfieldElement.createHTML(ee),re}catch(ee){if(console.error("Could not parse'"+a+"' with ",ee),E)return document.createTextNode(a)}return null}function kd(a,y,b,E){var ee;const re=v1(a,b,y||"textstyle",E),se=(ee=b.renderAccessibleContent)!=null?ee:"";if(re&&/\b(mathml|speakable-text)\b/i.test(se)){const me=document.createElement("span");if(/\bmathml\b/i.test(se)&&b.renderToMathML&&me.append(g1(a,b)),/\bspeakable-text\b/i.test(se)&&b.renderToSpeakableText){const ge=document.createElement("span");ge.setAttribute("translate","no");const we=b.renderToSpeakableText(a);ge.innerHTML=window.MathfieldElement.createHTML(we),ge.className="ML__sr-only",me.append(ge)}return me.append(re),me}return re}function y1(a,y){var b,E,ee;let re=null;if((b=y.TeX)!=null&&b.processEnvironments&&/^\s*\\begin/.test(a)){re=document.createDocumentFragment();const se=kd(a,"",y,!0);se&&re.appendChild(se)}else{if(!a.trim())return null;const se=Cp(a,(E=y.TeX)==null?void 0:E.delimiters,(ee=y.asciiMath)==null?void 0:ee.delimiters);if(se.length===1&&se[0].type==="text")return null;re=document.createDocumentFragment();for(const me of se)if(me.type==="text")re.appendChild(document.createTextNode(me.data));else{const ge=kd(me.data,me.mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);ge&&re.appendChild(ge)}}return re}function wp(a,y){var b,E,ee,re,se,me,ge,we,Oe,ot,Et,Zt,Yt,Pn,Ir,Ln;if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const ir=(b=a.childNodes[0].textContent)!=null?b:"";if((E=y.TeX)!=null&&E.processEnvironments&&/^\s*\\begin/.test(ir)){a.textContent="";const or=kd(ir,"",y,!0);or&&a.append(or);return}const zr=Cp(ir,(ee=y.TeX)==null?void 0:ee.delimiters,(re=y.asciiMath)==null?void 0:re.delimiters);if(zr.length===1&&zr[0].type==="math"){a.textContent="";const or=kd(zr[0].data,zr[0].mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);or&&a.append(or);return}if(zr.length===1&&zr[0].type==="text")return}for(let ir=a.childNodes.length-1;ir>=0;ir--){const zr=a.childNodes[ir];if(zr.nodeType===3){const or=y1((se=zr.textContent)!=null?se:"",y);or&&(ir+=or.childNodes.length-1,zr.replaceWith(or))}else if(zr.nodeType===1){const or=zr,Ci=zr.nodeName.toLowerCase();if(Ci==="script"){const Ni=zr;let Li;if((me=y.processScriptTypePattern)!=null&&me.test(Ni.type))Li=(ge=Ni.textContent)!=null?ge:"";else if((we=y.processMathJSONScriptTypePattern)!=null&&we.test(Ni.type))try{Li=(ot=y.serializeToLatex)==null?void 0:ot.call(y,JSON.parse((Oe=Ni.textContent)!=null?Oe:""))}catch(Ta){console.error(Ta)}if(Li){let Ta="textstyle";for(const Vr of Ni.type.split(";")){const[Zl,Oc]=Vr.toLowerCase().split("=");Zl.trim()==="mode"&&(Ta=Oc.trim()==="display"?"displaystyle":"textstyle")}const po=kd(Li,Ta,y,!0);po&&Ni.parentNode.replaceChild(po,Ni)}}else if(((Zt=(Et=y.processClassPattern)==null?void 0:Et.test(or.className))!=null?Zt:!1)||!((Pn=(Yt=y.skipTags)==null?void 0:Yt.includes(Ci))!=null&&Pn||(Ln=(Ir=y.ignoreClassPattern)==null?void 0:Ir.test(or.className))!=null&&Ln))if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const Li=a.textContent;a.textContent="";const Ta=kd(Li!=null?Li:"","displaystyle",y,!0);Ta&&a.append(Ta)}else wp(or,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,re;try{const se=xe(xe({},b1),y);se.ignoreClassPattern=new RegExp((b=se.ignoreClass)!=null?b:""),se.processClassPattern=new RegExp((E=se.processClass)!=null?E:""),se.processScriptTypePattern=new RegExp((ee=se.processScriptType)!=null?ee:""),se.processMathJSONScriptTypePattern=new RegExp((re=se.processMathJSONScriptType)!=null?re:""),Bf(),Al("core"),wp(a,se)}catch(se){se instanceof Error?console.error("renderMathInElement(): "+se.message):console.error("renderMathInElement(): Could not render math for element",a)}}function S1(a,y){const b=pu.singleton;return b?(b.show(),Jd(),b.currentLayer=y,b.render(),b.focus(),!0):!1}function C1(){const a=window.mathVirtualKeyboard;return a.visible?a.hide({animate:!0}):a.show({animate:!0}),!1}Il({switchKeyboardLayer:S1,toggleVirtualKeyboard:C1,hideVirtualKeyboard:()=>(window.mathVirtualKeyboard.hide({animate:!0}),!1),showVirtualKeyboard:()=>(window.mathVirtualKeyboard.show({animate:!0}),!1)},{target:"virtual-keyboard"});function vu(){var a,y;return(y=globalThis[a=Symbol.for("io.cortexjs.mathlive")])!=null||(globalThis[a]={}),globalThis[Symbol.for("io.cortexjs.mathlive")]}function L1(){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 w1(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,re;const se=w1(a);if(!se)return;const me=y!=null?y:{};(b=me.renderToMarkup)!=null||(me.renderToMarkup=Ts),(E=me.renderToMathML)!=null||(me.renderToMathML=_v),(ee=me.renderToSpeakableText)!=null||(me.renderToSpeakableText=Rv),(re=me.serializeToLatex)!=null||(me.serializeToLatex=zv),x1(se,me)}var B1={mathlive:"0.98.5"}},16722:function(fn,Wt,oe){"use strict";oe.d(Wt,{Z:function(){return xe}});const ue=Me=>typeof Me=="object"&&Me!=null&&Me.nodeType===1,Ae=(Me,Pe)=>(!Pe||Me!=="hidden")&&Me!=="visible"&&Me!=="clip",ke=(Me,Pe)=>{if(Me.clientHeight<Me.scrollHeight||Me.clientWidth<Me.scrollWidth){const ct=getComputedStyle(Me,null);return Ae(ct.overflowY,Pe)||Ae(ct.overflowX,Pe)||(De=>{const Fe=(et=>{if(!et.ownerDocument||!et.ownerDocument.defaultView)return null;try{return et.ownerDocument.defaultView.frameElement}catch(We){return null}})(De);return!!Fe&&(Fe.clientHeight<De.scrollHeight||Fe.clientWidth<De.scrollWidth)})(Me)}return!1},nt=(Me,Pe,ct,De,Fe,et,We,je)=>et<Me&&We>Pe||et>Me&&We<Pe?0:et<=Me&&je<=ct||We>=Pe&&je>=ct?et-Me-De:We>Pe&&je<ct||et<Me&&je>ct?We-Pe+Fe:0,be=Me=>{const Pe=Me.parentElement;return Pe==null?Me.getRootNode().host||null:Pe},Ee=(Me,Pe)=>{var ct,De,Fe,et;if(typeof document=="undefined")return[];const{scrollMode:We,block:je,inline:pt,boundary:rt,skipOverflowHiddenElements:kt}=Pe,ft=typeof rt=="function"?rt:Kt=>Kt!==rt;if(!ue(Me))throw new TypeError("Invalid target");const it=document.scrollingElement||document.documentElement,He=[];let Se=Me;for(;ue(Se)&&ft(Se);){if(Se=be(Se),Se===it){He.push(Se);break}Se!=null&&Se===document.body&&ke(Se)&&!ke(document.documentElement)||Se!=null&&ke(Se,kt)&&He.push(Se)}const Ke=(De=(ct=window.visualViewport)==null?void 0:ct.width)!=null?De:innerWidth,Ue=(et=(Fe=window.visualViewport)==null?void 0:Fe.height)!=null?et:innerHeight,{scrollX:vt,scrollY:Ye}=window,{height:st,width:Ie,top:Mt,right:Ge,bottom:Ot,left:wt}=Me.getBoundingClientRect(),{top:At,right:Nt,bottom:Tt,left:Ve}=(Kt=>{const at=window.getComputedStyle(Kt);return{top:parseFloat(at.scrollMarginTop)||0,right:parseFloat(at.scrollMarginRight)||0,bottom:parseFloat(at.scrollMarginBottom)||0,left:parseFloat(at.scrollMarginLeft)||0}})(Me);let ye=je==="start"||je==="nearest"?Mt-At:je==="end"?Ot+Tt:Mt+st/2-At+Tt,bt=pt==="center"?wt+Ie/2-Ve+Nt:pt==="end"?Ge+Nt:wt-Ve;const Qt=[];for(let Kt=0;Kt<He.length;Kt++){const at=He[Kt],{height:lt,width:Dt,top:yn,right:$t,bottom:hn,left:tn}=at.getBoundingClientRect();if(We==="if-needed"&&Mt>=0&&wt>=0&&Ot<=Ue&&Ge<=Ke&&(at===it&&!ke(at)||Mt>=yn&&Ot<=hn&&wt>=tn&&Ge<=$t))return Qt;const en=getComputedStyle(at),Gt=parseInt(en.borderLeftWidth,10),ve=parseInt(en.borderTopWidth,10),ce=parseInt(en.borderRightWidth,10),le=parseInt(en.borderBottomWidth,10);let de=0,pe=0;const ae="offsetWidth"in at?at.offsetWidth-at.clientWidth-Gt-ce:0,Te="offsetHeight"in at?at.offsetHeight-at.clientHeight-ve-le:0,gt="offsetWidth"in at?at.offsetWidth===0?0:Dt/at.offsetWidth:0,Re="offsetHeight"in at?at.offsetHeight===0?0:lt/at.offsetHeight:0;if(it===at)de=je==="start"?ye:je==="end"?ye-Ue:je==="nearest"?nt(Ye,Ye+Ue,Ue,ve,le,Ye+ye,Ye+ye+st,st):ye-Ue/2,pe=pt==="start"?bt:pt==="center"?bt-Ke/2:pt==="end"?bt-Ke:nt(vt,vt+Ke,Ke,Gt,ce,vt+bt,vt+bt+Ie,Ie),de=Math.max(0,de+Ye),pe=Math.max(0,pe+vt);else{de=je==="start"?ye-yn-ve:je==="end"?ye-hn+le+Te:je==="nearest"?nt(yn,hn,lt,ve,le+Te,ye,ye+st,st):ye-(yn+lt/2)+Te/2,pe=pt==="start"?bt-tn-Gt:pt==="center"?bt-(tn+Dt/2)+ae/2:pt==="end"?bt-$t+ce+ae:nt(tn,$t,Dt,Gt,ce+ae,bt,bt+Ie,Ie);const{scrollLeft:Be,scrollTop:yt}=at;de=Re===0?0:Math.max(0,Math.min(yt+de/Re,at.scrollHeight-lt/Re+Te)),pe=gt===0?0:Math.max(0,Math.min(Be+pe/gt,at.scrollWidth-Dt/gt+ae)),ye+=yt-de,bt+=Be-pe}Qt.push({el:at,top:de,left:pe})}return Qt},he=Me=>Me===!1?{block:"end",inline:"nearest"}:(Pe=>Pe===Object(Pe)&&Object.keys(Pe).length!==0)(Me)?Me:{block:"start",inline:"nearest"};function xe(Me,Pe){if(!Me.isConnected||!(Fe=>{let et=Fe;for(;et&&et.parentNode;){if(et.parentNode===document)return!0;et=et.parentNode instanceof ShadowRoot?et.parentNode.host:et.parentNode}return!1})(Me))return;const ct=(Fe=>{const et=window.getComputedStyle(Fe);return{top:parseFloat(et.scrollMarginTop)||0,right:parseFloat(et.scrollMarginRight)||0,bottom:parseFloat(et.scrollMarginBottom)||0,left:parseFloat(et.scrollMarginLeft)||0}})(Me);if((Fe=>typeof Fe=="object"&&typeof Fe.behavior=="function")(Pe))return Pe.behavior(Ee(Me,Pe));const De=typeof Pe=="boolean"||Pe==null?void 0:Pe.behavior;for(const{el:Fe,top:et,left:We}of Ee(Me,he(Pe))){const je=et-ct.top+ct.bottom,pt=We-ct.left+ct.right;Fe.scroll({top:je,left:pt,behavior:De})}}}}]);
|
|
|
}()); |