!(function(){var Ys=Math.pow;var Hl=(fn,Jt,fe)=>new Promise((ye,We)=>{var Te=_e=>{try{be(fe.next(_e))}catch(Re){We(Re)}},it=_e=>{try{be(fe.throw(_e))}catch(Re){We(Re)}},be=_e=>_e.done?ye(_e.value):Promise.resolve(_e.value).then(Te,it);be((fe=fe.apply(fn,Jt)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[5729],{40001:function(fn,Jt,fe){"use strict";fe.d(Jt,{Z:function(){return Ce}});var ye=fe(60499),We=fe(59301),Te={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"},it=Te,be=fe(7657),_e=function(Fe,lt){return We.createElement(be.Z,(0,ye.Z)({},Fe,{ref:lt,icon:it}))},Re=We.forwardRef(_e),Ce=Re},84105:function(fn,Jt,fe){"use strict";fe.d(Jt,{Z:function(){return Ce}});var ye=fe(60499),We=fe(59301),Te={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"},it=Te,be=fe(7657),_e=function(Fe,lt){return We.createElement(be.Z,(0,ye.Z)({},Fe,{ref:lt,icon:it}))},Re=We.forwardRef(_e),Ce=Re},18785:function(fn,Jt,fe){"use strict";fe.d(Jt,{Z:function(){return Ce}});var ye=fe(60499),We=fe(59301),Te={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"},it=Te,be=fe(7657),_e=function(Fe,lt){return We.createElement(be.Z,(0,ye.Z)({},Fe,{ref:lt,icon:it}))},Re=We.forwardRef(_e),Ce=Re},87169:function(fn,Jt,fe){"use strict";fe.d(Jt,{Z:function(){return Ce}});var ye=fe(60499),We=fe(59301),Te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},it=Te,be=fe(7657),_e=function(Fe,lt){return We.createElement(be.Z,(0,ye.Z)({},Fe,{ref:lt,icon:it}))},Re=We.forwardRef(_e),Ce=Re},73331:function(fn,Jt,fe){"use strict";fe.d(Jt,{Z:function(){return Ce}});var ye=fe(60499),We=fe(59301),Te={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"},it=Te,be=fe(7657),_e=function(Fe,lt){return We.createElement(be.Z,(0,ye.Z)({},Fe,{ref:lt,icon:it}))},Re=We.forwardRef(_e),Ce=Re},15277:function(fn,Jt,fe){"use strict";fe.d(Jt,{Z:function(){return Ce}});var ye=fe(60499),We=fe(59301),Te={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"},it=Te,be=fe(7657),_e=function(Fe,lt){return We.createElement(be.Z,(0,ye.Z)({},Fe,{ref:lt,icon:it}))},Re=We.forwardRef(_e),Ce=Re},33853:function(fn,Jt,fe){"use strict";fe.d(Jt,{Z:function(){return Ce}});var ye=fe(60499),We=fe(59301),Te={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"},it=Te,be=fe(7657),_e=function(Fe,lt){return We.createElement(be.Z,(0,ye.Z)({},Fe,{ref:lt,icon:it}))},Re=We.forwardRef(_e),Ce=Re},62772:function(fn,Jt,fe){"use strict";fe.d(Jt,{Z:function(){return Ce}});var ye=fe(60499),We=fe(59301),Te={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"},it=Te,be=fe(7657),_e=function(Fe,lt){return We.createElement(be.Z,(0,ye.Z)({},Fe,{ref:lt,icon:it}))},Re=We.forwardRef(_e),Ce=Re},61485:function(fn,Jt,fe){"use strict";fe.d(Jt,{Z:function(){return Ce}});var ye=fe(60499),We=fe(59301),Te={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"},it=Te,be=fe(7657),_e=function(Fe,lt){return We.createElement(be.Z,(0,ye.Z)({},Fe,{ref:lt,icon:it}))},Re=We.forwardRef(_e),Ce=Re},38819:function(fn,Jt,fe){"use strict";fe.d(Jt,{Z:function(){return Ce}});var ye=fe(60499),We=fe(59301),Te={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"},it=Te,be=fe(7657),_e=function(Fe,lt){return We.createElement(be.Z,(0,ye.Z)({},Fe,{ref:lt,icon:it}))},Re=We.forwardRef(_e),Ce=Re},47472:function(fn,Jt,fe){"use strict";fe.d(Jt,{Z:function(){return Ce}});var ye=fe(60499),We=fe(59301),Te={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"},it=Te,be=fe(7657),_e=function(Fe,lt){return We.createElement(be.Z,(0,ye.Z)({},Fe,{ref:lt,icon:it}))},Re=We.forwardRef(_e),Ce=Re},87395:function(fn,Jt,fe){"use strict";fe.d(Jt,{Z:function(){return Ce}});var ye=fe(60499),We=fe(59301),Te={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"},it=Te,be=fe(7657),_e=function(Fe,lt){return We.createElement(be.Z,(0,ye.Z)({},Fe,{ref:lt,icon:it}))},Re=We.forwardRef(_e),Ce=Re},14618:function(){"use strict"},66552:function(){"use strict"},18760:function(fn,Jt){"use strict";Jt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},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={},Jt="5.0",fe={},ye=null,We=!1,Te=!1,it=null,be=!1,_e=null,Re=null,Ce=0;Ce4?parseFloat(Qe):5};fn.setHTML5Codebase=function(Qe,Ue){Re=Qe,gt(Qe,Ue)},fn.setJavaCodebase=fn.setJavaCodebaseVersion=fn.isCompiledInstalled=fn.setPreCompiledScriptPath=fn.setPreCompiledResourcePath=function(){},fn.setHTML5CodebaseVersion=function(Qe,Ue){var kt=parseFloat(Qe);if(kt!==NaN&&kt<5){console.log("The GeoGebra HTML5 codebase version "+kt+" is deprecated. Using version latest instead.");return}_e=Qe,xe(Qe,Ue)},fn.getHTML5CodebaseVersion=function(){return ft},fn.getParameters=function(){return fe},fn.setFontsCSSURL=function(Qe){Je=Qe},fn.setGiacJSURL=function(Qe){},fn.setJNLPFile=function(Qe){Fe=Qe},fn.setJNLPBaseDir=function(Qe){},fn.inject=function(){function Qe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ue="auto",kt=fe.id,dn,Et=!1,$t=0;$t=5)return!0;var Qe=fn.getAppletObject();return Qe&&typeof Qe.recalculateEnvironments=="function"?(Qe.recalculateEnvironments(),!0):!1},fn.startAnimation=function(){var Qe=fn.getAppletObject();return Qe&&typeof Qe.startAnimation=="function"?(Qe.startAnimation(),!0):!1},fn.stopAnimation=function(){var Qe=fn.getAppletObject();return Qe&&typeof Qe.stopAnimation=="function"?(Qe.stopAnimation(),!0):!1},fn.getAppletObject=function(){var Qe=fe.id!==void 0?fe.id:"ggbApplet";return window[Qe]},fn.resize=function(){};var Lt=function(Qe,Ue,kt){var dn=document.createElement("param");dn.setAttribute("name",Ue),dn.setAttribute("value",kt),Qe.appendChild(dn)},at=function(Qe){return Qe&&Qe!=="false"},At=function(Qe,Ue,kt){Ze(ft)<=4.2&&(kt=!0);var dn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ft||ggbHTML5LoadedCodebaseIsWebSimple&&!rt)&&(dn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Et=document.createElement("div");Et.classList.add("appletParameters","notranslate");var $t=Ue.width,wt=Ue.height;if(Ue.disableAutoScale=Ue.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ue.disableAutoScale,Ue.width!==void 0)if(Ze(ft)<=4.4)at(Ue.showToolBar)&&(Ue.height-=7),at(Ue.showAlgebraInput)&&(Ue.height-=37),Ue.width<605&&at(Ue.showToolBar)&&(Ue.width=605,$t=605);else{var Dt=100;(at(Ue.showToolBar)||at(Ue.showMenuBar))&&(Ue.hasOwnProperty("customToolBar")&&(Ue.customToolbar=Ue.customToolBar),Dt=at(Ue.showMenuBar)?245:155),$t=5?(Ue.appletOnLoad=function(zt){var Yt=Qe.querySelector(".ggb_preview");Yt&&Yt.parentNode.removeChild(Yt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(le),window.GGBT_wsf_view&&$(window).trigger("resize"),ve(zt)},oe||le.appendChild(ce)):Et.appendChild(ce),le.appendChild(Et),oe||Qe.appendChild(le),setTimeout(function(){fn.resize()},1)}else{var de=document.createElement("div");de.className="applet_scaler",de.style.position="relative",de.style.display="block",de.appendChild(Et),Qe.appendChild(de),Ue.appletOnLoad=function(zt){fn.resize(),ve(zt)}}function se(zt,Yt){Yt&&typeof Yt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(zt,Yt.appletOnLoad):renderGGBElement(zt),nn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Yt)}function Le(zt,Yt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:zt,params:Yt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(on){se(on.article,on.params)}),html5AppletsToProcess=null)},Ze(ft)<5&&(zt.className+=" geogebraweb")):se(zt,Yt)}if(dn){scriptLoadStarted=!0;for(var qe=0;qe0?(Pt.remove(),le.attr("id","fullscreencontent").show(),jQuery(ve).append(le),window.dispatchEvent(new Event("resize"))):At(Pt,Ue,!1),window.GGBT_wsf_view.launchFullScreen(ve)}else Ke=dn,At(Qe,Ue,!1);if(!window.GGBT_wsf_view)for(wt=0;wtQe/4*3&&(Pt=Qe/4*3),ve=Pt/5.8,Dt.setAttribute("src",St),Dt.setAttribute("width",Pt),Dt.setAttribute("height",ve);var le=(Qe-Pt)/2,oe=(Ue-ve)/2;Dt.style.left=le+"px",Dt.style.top=oe+"px",Et.appendChild(Dt)}}return Et.appendChild(wt),Et},Ot=function(Qe){return Qe=Qe.toLowerCase(),Qe==="html5"||Qe==="screenshot"?Qe:"html5"},He=["web","webSimple","web3d","tablet","tablet3d","phone"],xe=function(Qe,Ue){if(ft=Qe,Ue){gt(ft,!0);return}var kt=!We;if(kt){var dn=Ze(ft);!isNaN(dn)&&dn<4.4&&(kt=!1)}var Et,$t;window.location.protocol.substr(0,4)==="http"?Et=window.location.protocol:Et="http:";var wt=ft.indexOf("//");wt>0?$t=ft:wt===0?$t=Et+ft:$t="https://www.geogebra.org/apps/5.2.814.0/";for(var Dt in He)if(ft.slice(He[Dt].length*-1)===He[Dt]||ft.slice((He[Dt].length+1)*-1)===He[Dt]+"/"){gt($t,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&kt&&!ye.is3D&&!ye.AV&&!ye.SV&&!ye.CV&&!ye.EV2&&!ye.CP&&!ye.PC&&!ye.DA&&!ye.FI&&!ye.PV&&!at(fe.showToolBar)&&!at(fe.showMenuBar)&&!at(fe.showAlgebraInput)&&!at(fe.enableRightClick)&&(!fe.appName||fe.appName=="classic")?$t+="webSimple/":$t+="web3d/",gt($t,!1)},gt=function(Qe,Ue){if(Qe.requirejs){lt=Qe;return}Qe.slice(-1)!=="/"&&(Qe+="/"),lt=Qe,Ue===null&&(Ue=Qe.indexOf("http")===-1),De=Ue,Ve="web.nocache.js",rt=!1;var kt=lt.split("/");kt.length>1&&(!Ue&&kt[kt.length-2]==="webSimple"?(Ve="webSimple.nocache.js",rt=!0):He.indexOf(kt[kt.length-2])>=0&&(Ve=kt[kt.length-2]+".nocache.js")),kt=Qe.split("/"),ft=kt[kt.length-3],ft.substr(0,4)==="test"?ft=ft.substr(4,1)+"."+ft.substr(5,1):(ft.substr(0,3)==="war"||ft.substr(0,4)==="beta")&&(ft="5.0");var dn=parseFloat(ft);dn!==NaN&&dn<5&&Qe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+dn+" is deprecated. Using version latest instead."),xe("5.0",Ue))},nn=function(Qe,Ue){window.console&&window.console.log&&(!Ue||typeof Ue.showLogging=="undefined"||Ue.showLogging&&Ue.showLogging!=="false")&&console.log(Qe)};fe.material_id!==void 0?$e(Vt):Vt();function Vt(){var Qe=Jt;_e!==null?Qe=_e:parseFloat(Qe)<5&&(Qe="5.0"),xe(Qe,!1),Re!==null&>(Re,De),be=!0}return fn},GGBAppletUtils=function(){"use strict";function fn(){return window.GGBT_wsf_edit!==void 0}function Jt(be,_e){_e!=1?(be.style.transformOrigin="0% 0% 0px",be.style.webkitTransformOrigin="0% 0% 0px",be.style.transform="scale("+_e+","+_e+")",be.style.webkitTransform="scale("+_e+","+_e+")",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 fe(be,_e,Re,Ce,Ee,Fe){var lt=null;if(Fe!=null&&Fe!="")for(var De=be.parentNode;De!=null;)if((" "+De.className+" ").indexOf(" "+Fe+" ")>-1){lt=De;break}else De=De.parentNode;var Ke=0,ft=0,Ve=0,rt=0,Xe=0,St=0,Kt=0;if(lt)Ke=lt.offsetWidth,ft=Math.max(Ce?lt.offsetWidth:0,lt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ke=Math.min(window.innerWidth,document.documentElement.clientWidth),ft=Math.min(window.innerHeight,document.documentElement.clientHeight),Ve=Ke):(Ke=window.innerWidth,ft=window.innerHeight,Ve=window.innerWidth),be){var Je=be.getBoundingClientRect();Je.left>0&&Je.left<=Ke&&(Ee===void 0||!Ee)&&(document.dir==="rtl"?(Xe=Ke-Je.width-Je.left,St=Ve<=480?10:30):(St=Je.left,Xe=Ve<=480?10:30),rt=St+Xe)}if(be&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var dt=be.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(rt=40,Kt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(rt=0,Kt=40)}}return be&&((Re===void 0||!Re)&&_e>0&&_e+rt1&&(Fe=!0)),_e&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Fe=!0),!(be.hasOwnProperty("disableAutoScale")&&be.disableAutoScale))Ee=ye(be,_e,Fe,Re,be.scaleContainerClass);else return Ce;return Fe&&(!be.hasOwnProperty("scale")||Ce===1)?Ee:Math.min(Ce,Ee)}function Te(be){var _e=Math.min(window.innerWidth,document.documentElement.clientWidth),Re=Math.min(window.innerHeight,document.documentElement.clientHeight),Ce=be.getBoundingClientRect(),Ee=(_e-Ce.width)/2,Fe=(Re-Ce.height)/2;Fe<0&&(Fe=0),be.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ee<40?be.style.left="40px":be.style.left=Ee+"px",be.style.top=Fe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Fe<40?be.style.top="40px":be.style.top=Fe+"px",be.style.left=Ee+"px")}function it(be,_e){var Re=be.querySelector(".appletParameters");if(Re){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(_e.id!==Re.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(be)}if(Re.parentElement&&/fullscreen/.test(Re.parentElement.className))return;var Ce=We(_e,be);fn()&&Re.setAttribute("data-param-scale",Ce);for(var Ee=null,Fe=0;Fe=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 Jt=c[fn];return Jt==null?null:Jt},r=d,webModule.__errFn=e}function B(){function fn(be){var _e=be.lastIndexOf(rb);_e==-1&&(_e=be.length);var Re=be.indexOf(sb);Re==-1&&(Re=be.length);var Ce=be.lastIndexOf(tb,Math.min(Re,_e));return Ce>=O?be.substring(O,Ce+P):W}function Jt(be){if(!be.match(/^\w+:\/\//)){var _e=o.createElement(ub);_e.src=be+vb,be=fn(_e.src)}return be}function fe(){var be=__gwt_getMetaProperty(wb);return be!=null?be:W}function ye(){for(var be=o.getElementsByTagName(_),_e=O;_eO?be[be.length-P].href:W}function Te(){var be=o.location;return be.href==be.protocol+zb+be.host+be.pathname+be.search+be.hash}var it=fe();return it==W&&(it=ye()),it==W&&(it=We()),it==W&&Te()&&(it=fn(o.location.href)),it=Jt(it),it}function C(fn){return fn.match(/^\//)||fn.match(/^[a-zA-Z]+:\/\//)?fn:webModule.__moduleBase+fn}function D(){var fn=[],Jt=O,fe=[],ye=[];function We(be){var _e=ye[be](),Re=fe[be];if(_e in Re)return _e;var Ce=[];for(var Ee in Re)Ce[Re[Ee]]=Ee;throw r&&r(be,Ce,_e),null}if(__gwt_isKnownPropertyValue=function(be,_e){return _e in fe[be]},webModule.__getPropMap=function(){var be={};for(var _e in fe)fe.hasOwnProperty(_e)&&(be[_e]=We(_e));return be},webModule.__computePropValue=We,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Te;try{Te=Cb;var it=Te.indexOf(Db);it!=-1&&(Jt=parseInt(Te.substring(it+P),$),Te=Te.substring(O,it))}catch(be){}return webModule.__softPermutationId=Jt,C(Te+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,Jt,fe){"use strict";fe.d(Jt,{Ax:function(){return it},Ds:function(){return be},KI:function(){return Re},SI:function(){return Te},f1:function(){return We}});var ye=fe(6521);function We(Ce){let Ee=!0;if(Ce.length>0){for(let Fe=0;Fert in Ve?Te(Ve,rt,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):Ve[rt]=Xe,Fe=(Ve,rt)=>{for(var Xe in rt||(rt={}))Re.call(rt,Xe)&&Ee(Ve,Xe,rt[Xe]);if(_e)for(var Xe of _e(rt))Ce.call(rt,Xe)&&Ee(Ve,Xe,rt[Xe]);return Ve},lt=(Ve,rt)=>it(Ve,be(rt)),De=(Ve,rt)=>{var Xe={};for(var St in Ve)Re.call(Ve,St)&&rt.indexOf(St)<0&&(Xe[St]=Ve[St]);if(Ve!=null&&_e)for(var St of _e(Ve))rt.indexOf(St)<0&&Ce.call(Ve,St)&&(Xe[St]=Ve[St]);return Xe},Ke=(Ve,rt,Xe)=>new Promise((St,Kt)=>{var Je=Me=>{try{Ze(Xe.next(Me))}catch(ze){Kt(ze)}},dt=Me=>{try{Ze(Xe.throw(Me))}catch(ze){Kt(ze)}},Ze=Me=>Me.done?St(Me.value):Promise.resolve(Me.value).then(Je,dt);Ze((Xe=Xe.apply(Ve,rt)).next())});const ft=Ve=>{var rt=Ve,{children:Xe}=rt,St=De(rt,["children"]);const[Kt,Je]=(0,We.useState)(!1);return We.createElement(ye.ZP,lt(Fe({},St),{loading:Kt,onClick:dt=>Ke(void 0,null,function*(){try{Je(!0),yield St.onClick(dt),Je(!1)}catch(Ze){console.error(Ze),Je(!1)}})}),Xe)}},15868:function(fn,Jt,fe){"use strict";fe.d(Jt,{Z:function(){return lt}});var ye=fe(59301),We={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Te=fe(92310),it=fe.n(Te),be=fe(71418),_e=fe(2859),Re=fe(79769),Ce=fe(25544),Ee=(De,Ke,ft)=>new Promise((Ve,rt)=>{var Xe=Je=>{try{Kt(ft.next(Je))}catch(dt){rt(dt)}},St=Je=>{try{Kt(ft.throw(Je))}catch(dt){rt(dt)}},Kt=Je=>Je.done?Ve(Je.value):Promise.resolve(Je.value).then(Xe,St);Kt((ft=ft.apply(De,Ke)).next())}),lt=({data:De,className:Ke,fullWidth:ft,style:Ve={},onClose:rt,onOk:Xe,showFullTools:St,noAssociationId:Kt})=>{const Je=(0,ye.useRef)(null),dt=(0,ye.useRef)(null),Ze=(0,ye.useRef)(null),Me=(0,ye.useRef)(null),[ze,$e]=(0,ye.useState)(!1),[pt,Ge]=(0,ye.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ye.useEffect)(()=>{Ze.current||(Ze.current=document.createElement("style"),document.head.appendChild(Ze.current)),De!=null&&De.visible?(document.body.setAttribute("data-custom","y-hidden"),Ze.current.innerHTML=" html { overflow-y: hidden; }",De!=null&&De.src&&Lt()):(document.body.removeAttribute("data-custom"),Ze.current&&(document.head.removeChild(Ze.current),Ze.current=null))},[De==null?void 0:De.visible]);const Lt=()=>Ee(void 0,null,function*(){$e(!0),Ge("\u6B63\u5728\u52A0\u8F7D\u4E2D");const tn=yield(0,Ce.ZJ)(De==null?void 0:De.src);Je.current.src="",Je.current.src=tn,Je.current.onload=function(){Nt()},$e(!1),Ge("")}),at=()=>{document.body.removeAttribute("data-custom"),Ze.current.innerHTML=" ",rt()},At=tn=>Ee(void 0,null,function*(){$e(!0),Ge("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Xt=yield(0,Re.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:De.title,file:tn.dataUrl}});Xt!=null&&Xt.id&&!Kt?(yield(0,Re.ZP)(`/api/attachments/${De.id}/add_subitem.json`,{method:"post",body:{subitem_id:Xt==null?void 0:Xt.id,settings:JSON.stringify(tn.state)}})).status===0&&Xe():Xt!=null&&Xt.id&&Xe(Xt),document.body.removeAttribute("data-custom"),Ze.current.innerHTML=" ",$e(!1),Ge("")}),tt=()=>{const tn=document.querySelector('a[href="https://markerjs.com/"]');tn&&tn.parentNode&&(tn.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(qt=>{const Ot=document.querySelector(qt.name);Ot&&Ot.setAttribute("title",qt.title)})},Nt=()=>{dt.current=new _e.hP(Je.current),dt.current.targetRoot=Me.current,dt.current.addEventListener("render",At),dt.current.addEventListener("beforeclose",at),St&&(dt.current.availableMarkerTypes=dt.current.ALL_MARKER_TYPES,dt.current.uiStyleSettings.redoButtonVisible=!0,dt.current.uiStyleSettings.notesButtonVisible=!0,dt.current.uiStyleSettings.zoomButtonVisible=!0,dt.current.uiStyleSettings.zoomOutButtonVisible=!0,dt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=dt.current.uiStyleSettings,dt.current.show(),De!=null&&De.snapshotData&&dt.current.restoreState(De.snapshotData),setTimeout(()=>{window.scrollTo(0,0),tt()},300)};return ye.createElement(ye.Fragment,null,(De==null?void 0:De.visible)&&ye.createElement(be.Z,{spinning:ze,tip:pt,style:{position:"absolute"}},ye.createElement("div",{ref:Me,className:it()(We.imageDimensions,Ke,ft?We.fullWidth:""),style:Ve},ye.createElement("img",{className:We.img,ref:Je}))))}},3315:function(fn,Jt,fe){"use strict";var ye=fe(59301),We=fe(95237),Te=fe(43604),it=fe(99313),be=fe(3113),_e=fe(39655),Re=fe(18760),Ce=fe(48136),Ee=fe(59301);const Fe=(0,ye.forwardRef)(({callback:lt,showSaveButton:De,value:Ke=""},ft)=>{const Ve=(0,ye.useRef)(),rt=[{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 "}]}]}],Xe=[{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}`}]}]}],St=dt=>{Ve.current.setValue(Ve.current.getValue()+" "+dt.value+" ")},Kt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ee.createElement(We.Z,{className:Re.Z.lists,gutter:[10,10]},rt.map((dt,Ze)=>Ee.createElement(Te.Z,{flex:"110px",className:Re.Z.item},Ee.createElement("div",null,Ee.createElement(_e.Z,{value:`$$${dt.value}$$`}),dt.name),Ee.createElement("div",{className:Re.Z.children},dt.children.map((Me,ze)=>Ee.createElement("div",{key:ze},Ee.createElement("h1",null,Me.name),Ee.createElement(We.Z,{gutter:[10,10]},Me.data.map(($e,pt)=>Ee.createElement(Te.Z,{key:pt,onClick:()=>St($e),className:Re.Z.diamond},Ee.createElement(_e.Z,{value:"`$$"+$e.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ee.createElement(We.Z,{className:Re.Z.lists,gutter:[10,10]},Xe.map((dt,Ze)=>Ee.createElement(Te.Z,{flex:"110px",className:Re.Z.item},Ee.createElement("div",null,Ee.createElement(_e.Z,{value:"`$$"+dt.value+"$$`"}),dt.name),Ee.createElement("div",{className:Re.Z.children},dt.children.map((Me,ze)=>Ee.createElement("div",{key:ze},Me.name&&Ee.createElement("h1",null,Me.name),Ee.createElement(We.Z,{gutter:[10,10]},Me.data.map(($e,pt)=>Ee.createElement(Te.Z,{key:pt,onClick:()=>St($e),className:Re.Z.diamond},Ee.createElement(_e.Z,{value:"`$$"+$e.value+"$$`"}))))))))))}],Je=()=>{var dt=document.createElement("div");dt.innerHTML=Ve.current.getValue();var Ze=dt.innerText;return lt&<(Ze),Ze};return(0,ye.useImperativeHandle)(ft,()=>({getData:Je})),Ee.createElement("div",{className:Re.Z.mathWrap},Ee.createElement(it.default,{defaultActiveKey:"1",items:Kt}),Ee.createElement("math-field",{locale:"zh_cn",className:Re.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Ve,style:{width:800,marginTop:30,fontSize:18}},Ke||""),De&&Ee.createElement("div",{className:Re.Z.button},Ee.createElement(be.ZP,{size:"large",onClick:Je,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Jt.Z=Fe},67831:function(fn,Jt,fe){"use strict";fe.d(Jt,{h:function(){return dt}});var ye=fe(59301),We=fe(57809),Te=fe(78241),it=fe(3113),be=fe(89780),_e=fe.n(be),Re=fe(14618),Ce=fe(66552),Ee=Object.defineProperty,Fe=Object.defineProperties,lt=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,Ve=(Ze,Me,ze)=>Me in Ze?Ee(Ze,Me,{enumerable:!0,configurable:!0,writable:!0,value:ze}):Ze[Me]=ze,rt=(Ze,Me)=>{for(var ze in Me||(Me={}))Ke.call(Me,ze)&&Ve(Ze,ze,Me[ze]);if(De)for(var ze of De(Me))ft.call(Me,ze)&&Ve(Ze,ze,Me[ze]);return Ze},Xe=(Ze,Me)=>Fe(Ze,lt(Me));const St=We.default.Option,Kt={labelCol:{span:4},wrapperCol:{span:20}},Je={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"]};Jt.Z=({callback:Ze,onCancel:Me})=>{const[ze,$e]=(0,ye.useState)("python");function pt(Lt){$e(Je[Lt][1])}function Ge(Lt){Ze(Lt)}return ye.createElement(Te.default,Xe(rt({},Kt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ge,style:{width:500}}),ye.createElement(Te.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ye.createElement(We.default,{getPopupContainer:Lt=>Lt.parentNode,onChange:pt},Object.keys(Je).map(Lt=>ye.createElement(St,{key:Lt,value:Lt},Je[Lt][0])))),ye.createElement(Te.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ye.createElement(dt,{mode:ze})),ye.createElement("div",{className:"flex-container flex-end"},ye.createElement(it.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ye.createElement(it.ZP,{type:"ghost",onClick:Me},"\u53D6\u6D88")))};function dt({value:Ze,onChange:Me,mode:ze,options:$e={}}){const pt=(0,ye.useRef)(),[Ge,Lt]=(0,ye.useState)();return(0,ye.useEffect)(()=>{if(Ge){let at=function(At){const tt=At.getValue();Me&&Me(tt)};return Ge.on("change",at),()=>{Ge.off("change",at)}}},[Ge,Me]),(0,ye.useEffect)(()=>{Ge&&Ge.setOption("mode",ze)},[Ge,ze]),(0,ye.useEffect)(()=>{Ge&&(Ze!==Ge.getValue()||Ze==="")&&setTimeout(()=>{Ge.setValue(Ze||"")},300)},[Ge,Ze]),(0,ye.useEffect)(()=>{if(pt.current&&!Ge){const at=_e().fromTextArea(pt.current,rt({mode:ze,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},$e));Lt(at)}},[pt.current,Ge]),ye.createElement("div",{className:"my-codemirror-container"},ye.createElement("textarea",{ref:pt}))}},40973:function(fn,Jt,fe){"use strict";fe.d(Jt,{Z:function(){return Hr}});var ye=fe(59301),We=fe(89780),Te=fe.n(We),it=fe(76374),be=fe(14618),_e=fe(6313),Re=fe(25717),Ce=fe(99498),Ee=fe(25419),Fe=fe(67549),lt=fe(39655),De=({value:er="",className:vr,showTextOnly:Dn,showLines:Bn,style:br={}})=>{const st=(0,ye.useMemo)(()=>"",[er]);return ye.createElement(ye.Fragment,null,ye.createElement("div",{dangerouslySetInnerHTML:{__html:st}}))},Ke=fe(59301),ft=Object.defineProperty,Ve=Object.defineProperties,rt=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,Kt=Object.prototype.propertyIsEnumerable,Je=(er,vr,Dn)=>vr in er?ft(er,vr,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):er[vr]=Dn,dt=(er,vr)=>{for(var Dn in vr||(vr={}))St.call(vr,Dn)&&Je(er,Dn,vr[Dn]);if(Xe)for(var Dn of Xe(vr))Kt.call(vr,Dn)&&Je(er,Dn,vr[Dn]);return er},Ze=(er,vr)=>Ve(er,rt(vr));let Me=[{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 ze({onActionCallback:er,title:vr,icon:Dn,actionName:Bn,className:br="",children:st}){function Ae(){er(Bn)}return Ke.createElement("a",{title:vr,className:br,onClick:Ae},Ke.createElement("i",{className:`${Dn}`}),st)}var $e=({watch:er,showNullButton:vr,showNullProgramButton:Dn,onActionCallback:Bn,fullScreen:br,insertTemp:st,hidetoolBar:Ae,extraUse:Ne})=>{const Be=[...Me,{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 Ke.createElement("ul",{className:"markdown-toolbar-container"},!Ae&&Be.map((Ie,Ye)=>Ke.createElement("li",{key:Ye},Ie.actionName?Ke.createElement(ze,Ze(dt({},Ie),{onActionCallback:Bn})):Ke.createElement("span",{className:"v-line"}))),vr?Ke.createElement("li",null,Ke.createElement(ze,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Bn},Ke.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,Dn?Ke.createElement(Ke.Fragment,null,Ke.createElement("li",null,Ke.createElement(ze,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Bn},Ke.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ke.createElement("li",null,Ke.createElement(ze,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Bn},Ke.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,st&&Ke.createElement("li",null,Ke.createElement(ze,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${st}`,onActionCallback:Bn},Ke.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Ne&&Ke.createElement("li",null,Ne),Ke.createElement("li",{className:"btn-full-screen"},Ke.createElement(ze,{icon:`${br?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:br?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Bn})))},pt=fe(53531),Ge=fe(78241),Lt=fe(92832),at=fe(3113),At=Object.defineProperty,tt=Object.defineProperties,Nt=Object.getOwnPropertyDescriptors,tn=Object.getOwnPropertySymbols,Xt=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable,Ot=(er,vr,Dn)=>vr in er?At(er,vr,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):er[vr]=Dn,He=(er,vr)=>{for(var Dn in vr||(vr={}))Xt.call(vr,Dn)&&Ot(er,Dn,vr[Dn]);if(tn)for(var Dn of tn(vr))qt.call(vr,Dn)&&Ot(er,Dn,vr[Dn]);return er},xe=(er,vr)=>tt(er,Nt(vr));const gt={labelCol:{span:4},wrapperCol:{span:20}};var nn=({callback:er,onCancel:vr})=>{function Dn(Bn){er(Bn)}return ye.createElement(Ge.default,xe(He({},gt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Dn,style:{width:500}}),ye.createElement(Ge.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ye.createElement(Lt.default,null)),ye.createElement(Ge.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ye.createElement(Lt.default,null)),ye.createElement("div",{className:"flex-container flex-end"},ye.createElement(at.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ye.createElement(at.ZP,{type:"ghost",onClick:vr},"\u53D6\u6D88")))},Vt=fe(67831),Qe=fe(58448),Ue=fe(43418),kt=fe(95237),dn=fe(15868),Et=fe(59301),$t=({callback:er,onCancel:vr})=>{const Dn=document.createElement("canvas"),Bn=Dn.getContext("2d");Dn.width=1e3,Dn.height=800,Bn.fillStyle="#ffffff",Bn.fillRect(0,0,Dn.width,Dn.height);const br=Dn.toDataURL("image/png");return Et.createElement(Ue.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Et.createElement(kt.Z,{style:{height:"100vh"}},Et.createElement(dn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:br,visible:!0,title:String(Date.now())},onOk:st=>{er({src:st.url})},onClose:vr})))},wt=fe(8591),Dt=fe(43428),Pt=fe(43604),ve={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},le=fe(59301),ce=(0,ye.forwardRef)(({onCancel:er,editImgId:vr,callback:Dn},Bn)=>{let br=(0,ye.useRef)(),st=(0,ye.useRef)(),Ae=(0,ye.useRef)(),Ne=(0,ye.useRef)(!1);const Be=(0,ye.useRef)(!1);console.log("ref:",Bn);const[Ie,Ye]=(0,ye.useState)(0),[ht,Ht]=(0,ye.useState)("100vh");(0,ye.useEffect)(()=>{Ye(1);try{indexedDB.databases().then(an=>{an.forEach(ln=>indexedDB.deleteDatabase(ln.name))})}catch(an){}},[]),(0,ye.useEffect)(()=>(window.addEventListener("message",Wt),()=>{window.removeEventListener("message",Wt)}),[]),(0,ye.useImperativeHandle)(Bn,()=>({setHeight:Ht}));const Mt=an=>{window.saveDrawData(ln=>{if(ln===null&&!an){wt.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}wt.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),Dn({src:`/api/attachments/${ln}`,id:ln,disabledClose:!0})})},Wt=an=>{var ln;((ln=an==null?void 0:an.data)==null?void 0:ln.type)==="closePop"&&Mt(!0)};return le.createElement("div",{ref:Be,className:"body-overflow-initial"},le.createElement(Dt.Z,{width:"100vw",height:ht,footer:null,closable:!0,placement:"bottom",open:!!Ie,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ve.drawerWrap}`,onClose:()=>{window.saveDrawData(an=>{Dn({src:`/api/attachments/${an}`,id:an})})},title:le.createElement(kt.Z,{align:"middle"},le.createElement(Pt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),le.createElement(Pt.Z,{onClick:()=>{Ht(ht==="60px"?"100vh":"60px")}},le.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),le.createElement(Pt.Z,{onClick:Mt},le.createElement(at.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},le.createElement("iframe",{src:`${window.ENV==="build"?"/react/build":""}/drawio/src/main/webapp/?id=${vr||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:st})))}),de=fe(6521),se=fe(5112),Le=fe(5871);const qe=se.ZP.Group,vt={margin:"0 8px"};var yt=({callback:er,onCancel:vr})=>{function Dn(Bn){er(Bn)}return ye.createElement(Ge.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Dn},ye.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ye.createElement("span",{style:vt},"\u5355\u5143\u683C\u6570\uFF1A"),ye.createElement("span",{style:vt},"\u884C\u6570"),ye.createElement(Ge.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ye.createElement(Le.Z,null)),ye.createElement("span",{style:vt},"\u5217\u6570"),ye.createElement(Ge.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ye.createElement(Le.Z,null))),ye.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ye.createElement("span",{style:vt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ye.createElement(Ge.default.Item,{name:"align"},ye.createElement(qe,null,ye.createElement(se.ZP,{value:"default"},ye.createElement("i",{className:"fa fa-align-justify"})),ye.createElement(se.ZP,{value:"left"},ye.createElement("i",{className:"fa fa-align-left"})),ye.createElement(se.ZP,{value:"center"},ye.createElement("i",{className:"fa fa-align-center"})),ye.createElement(se.ZP,{value:"right"},ye.createElement("i",{className:"fa fa-align-right"}))))),ye.createElement("div",{className:"flex-container flex-end"},ye.createElement(at.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ye.createElement(at.ZP,{type:"ghost",onClick:vr},"\u53D6\u6D88")))},_t=fe(78673),Tt=fe(3352),zt=fe.n(Tt),on=(0,ye.forwardRef)(({use3d:er,width:vr,height:Dn,callback:Bn,showSaveButton:br},st)=>{const Ae=(0,ye.useRef)(),Ne=(0,ye.useRef)(),[Be,Ie]=(0,ye.useState)(!1),Ye=(0,ye.useRef)({id:Ae,appName:"graphing",width:vr||1e3,height:Dn||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ye.useEffect)(()=>{Ne.current=new(zt())(Ye.current,!0),window.onload=function(){Ne.current.inject("applet_container")}},[]);const ht=()=>{var Ht=window.ggbApplet.getPNGBase64(1,!0,72);return Bn&&Bn(Ht),Ht};return(0,ye.useEffect)(()=>{Ye.current.appName=Be?"3D":"graphing",Ne.current.inject("applet_container")},[Be]),(0,ye.useEffect)(()=>{Ie(er)},[er]),(0,ye.useImperativeHandle)(st,()=>({getImgData:ht})),ye.createElement(ye.Fragment,null,ye.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Ae}),ye.createElement(kt.Z,{align:"middle"},ye.createElement(Pt.Z,{flex:1},ye.createElement(_t.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Be,onChange:Ht=>Ie(Ht)})),ye.createElement(Pt.Z,null,ye.createElement(at.ZP,{size:"large",onClick:ht,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),ot=fe(3315),Ut=fe(1012);const Cn="link",nt="upload-image",mt="add-flowchart",Bt="draw-image",xn="add-flowchart",bn="code-block",yn="add-table",Nn="------------",Vn={default:Nn,left:`:${Nn}`,center:`:${Nn}:`,right:`${Nn}:`};var In=fe(57649),lr=(er,vr,Dn)=>new Promise((Bn,br)=>{var st=Be=>{try{Ne(Dn.next(Be))}catch(Ie){br(Ie)}},Ae=Be=>{try{Ne(Dn.throw(Be))}catch(Ie){br(Ie)}},Ne=Be=>Be.done?Bn(Be.value):Promise.resolve(Be.value).then(st,Ae);Ne((Dn=Dn.apply(er,vr)).next())});function ur(){}let gn=0;const yr=1e4,Pr="\u2581",zr="@\u2581\u2581@",jr="@\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`,Xr=["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 fr(er){return/^\d+$/.test(er)?`${er}px`:er}const Yr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Vr={[Yr+"-B"]:"bold",[Yr+"-I"]:"italic"},qr={[Cn]:"\u6DFB\u52A0\u94FE\u63A5",[bn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[nt]:"\u6DFB\u52A0\u56FE\u7247",[Bt]:"\u6DFB\u52A0\u753B\u56FE",[mt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[yn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Hr=({defaultValue:er="",onChange:vr,width:Dn="100%",height:Bn=400,miniToolbar:br=!1,isFocus:st=!1,watch:Ae,insertTemp:Ne,mode:Be="markdown",id:Ie="markdown-editor-id",showResizeBar:Ye=!1,noStorage:ht=!1,showNullButton:Ht=!1,showNullProgramButton:Mt=!1,hidetoolBar:Wt=!1,fullScreen:an=!1,onBlur:ln,onCMBeforeChange:pn,onFullScreen:Ct,className:rn="",disablePaste:On=!1,disabled:Mn=!1,disabledFill:Pn=!1,placeholder:Ln="",values:tr="",extraUse:hn,onAddBlank:qn})=>{const[et,It]=(0,ye.useState)(null),[Ft,Qt]=(0,ye.useState)(er),[Rt,jt]=(0,ye.useState)(Ae),[Zt,cn]=(0,ye.useState)(an),[mn,En]=(0,ye.useState)(""),[Un,ar]=(0,ye.useState)(0),[xr,or]=(0,ye.useState)(Bn),[$n,wr]=(0,ye.useState)(!1),pr=(0,ye.useRef)((0,Ut.Z)()),mr=(0,ye.useRef)(!1),Wn=(0,ye.useRef)(),[nr,hr]=(0,ye.useState)(0),[rr,Tr]=(0,ye.useState)(0),$r=(0,ye.useRef)(),cr=(0,ye.useRef)(),kn=(0,ye.useRef)(),vn=(0,ye.useRef)(),sr=(0,ye.useRef)(),Xn=(0,ye.useRef)(),Sr=()=>lr(void 0,null,function*(){var Hn;const Fn=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:pr.current}});(Hn=Fn==null?void 0:Fn.attachments)!=null&&Hn.length&&(console.log("cm:",et,$r),Fn.attachments.map(Rn=>{Rn.content_type.indexOf("image")>-1?et.replaceSelection(`![,](/api/attachments/${Rn.id}?type=${Rn.content_type})`):Rn.content_type.indexOf("video")>-1?et.replaceSelection(``):Rn.content_type.indexOf("pdf")>-1?et.replaceSelection(`${Rn.name}`):et.replaceSelection(`[${Rn.name}](${de.Z.API_SERVER}/api/attachments/${Rn.id}?type=${Rn.content_type})`)}))});(0,ye.useEffect)(()=>{const Hn=window.scrollY||window.pageYOffset;Qt(tr),et==null||et.setValue(tr),window.scrollTo(0,Hn)},[tr]),(0,ye.useEffect)(()=>{Ct==null||Ct(Zt)},[Zt]),(0,ye.useEffect)(()=>{if($r.current){let Hn=function(Rn,Qn){var ei;if(On){Qn.preventDefault();return}const hi=Qn.clipboardData;if(hi){const bi=hi.types.toString(),mi=hi.items;if(bi==="Files"||hi.types.indexOf("Files")>-1){if(Qn.preventDefault(),Be=="stex")return;try{let ai=mi[1];((ei=mi[0])==null?void 0:ei.kind)==="file"&&(ai=mi[0]);const wi=ai.getAsFile(),Ki=wi.name.split(".").pop();(0,Qe.I)(wi,Ti=>{var pa,ea,Oi;Ti.id?((pa=wi==null?void 0:wi.type)==null?void 0:pa.indexOf("image"))>-1?Fn.replaceSelection(``):((ea=wi==null?void 0:wi.type)==null?void 0:ea.indexOf("video"))>-1?Fn.replaceSelection(``):((Oi=wi==null?void 0:wi.type)==null?void 0:Oi.indexOf("pdf"))>-1?Fn.replaceSelection(`${wi.name}`):Xr.includes(Ki)?Fn.replaceSelection(`${wi.name}`):Fn.replaceSelection(`[${wi.name}](/api/attachments/${Ti.id}?type=${Ti.content_type})`):(Ti==null?void 0:Ti.status)===401&&(wt.ZP.warning((Ti==null?void 0:Ti.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(ai){wt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Fn=Te().fromTextArea($r.current,{mode:Be,lineNumbers:!br,lineWrapping:!0,value:er,autoCloseTags:!Mt,autoCloseBrackets:!0});return Fn.on("keyup",function(Rn,Qn){Qn.keyCode===8&&(Rn.getValue()==""?Fn.setOption("placeholder",Ln):Fn.setOption("placeholder",null))}),Fn.on("keydown",function(Rn,Qn){if(Qn.keyCode===8){var ei=Mr(Rn);ei&&Qn.preventDefault()}}),st&&Fn.focus(),Fn.on("paste",Hn),Fn.on("dragleave",function(Rn,Qn){cr.current.classList.remove("mouse-hover-md")}),Mn&&Fn.on("beforeChange",function(Rn,Qn){(Qn.origin==="paste"||Qn.origin==="+input")&&Qn.cancel()}),It(Fn),()=>{Fn.off("paste",Hn)}}},[]);const Or=(0,ye.useCallback)(()=>{if(cr.current)try{}catch(Hn){console.log(Hn,"---- to set md editor body height")}},[xr,cr,Zt]);(0,ye.useEffect)(()=>{function Hn(){let Fn=new it.Z(Rn=>{for(let Qn of Rn)(Qn.target.offsetHeight>0||Qn.target.offsetWidth>0)&&(Or(),et.setSize("100%","100%"),et.refresh())});return Fn.observe($r.current.parentElement),Fn}if(et){const Fn=Hn();return()=>{var Rn,Qn;(Rn=$r.current)!=null&&Rn.parentElement&&Fn.unobserve((Qn=$r.current)==null?void 0:Qn.parentElement)}}},[et,Or]),(0,ye.useEffect)(()=>{if(et){let Hn=[];for(const[Fn,Rn]of Object.entries(Vr)){let Qn={[Fn]:()=>{Qr(Rn)}};Hn.push(Qn),et.addKeyMap(Qn)}return Wn.current=setInterval(()=>{mr.current&&Sr()},4e3),()=>{clearInterval(Wn.current);for(let Fn of Hn)et.removeKeyMap(Fn)}}},[et]),(0,ye.useEffect)(()=>{an!==Zt&&cn(an)},[an]),(0,In.Z)(()=>{if(!ht&&Un>0){let Hn=new Date().getTime(),Fn=window.sessionStorage.getItem(Ie);Hn>=Un+yr&&(!Fn||Fn!==Ft)&&(window.sessionStorage.setItem(Ie,Ft),wr(!0))}},yr),(0,ye.useEffect)(()=>{jt(Ae)},[et,Ae]),(0,ye.useEffect)(()=>{et&&st&&et.focus()},[et,st]),(0,ye.useEffect)(()=>{if(Rt&&et){let Hn=function(Rn){let Qn=Rn.target;if(vn.current){let ei=Qn.scrollTop/Qn.scrollHeight;vn.current.scrollTop=vn.current.scrollHeight*ei}};const Fn=et.getScrollerElement();return Fn.addEventListener("scroll",Hn),()=>{Fn.removeEventListener("scroll",Hn)}}},[et,Rt]),(0,ye.useEffect)(()=>{if(et&&pn){let Hn=function(Fn,Rn){pn(Fn,Rn)};return et.on("beforeChange",Hn),()=>{et.off("beforeChange",Hn)}}},[et,pn]),(0,ye.useEffect)(()=>{if(et&&ln){let Hn=function(){ln(et.getValue())};return et.on("blur",Hn),()=>{et.off("blur",Hn)}}},[et,ln]);function Mr(Hn,Fn){var Rn=Hn.getDoc(),Qn=Rn.getCursor(),ei=Rn.getLine(Qn.line),hi=ei.charAt(Qn.ch-1),bi=ei.lastIndexOf("@\u2581@",Qn.ch),mi=ei.lastIndexOf("@\u2581\u2581@",Qn.ch),ai=bi>mi?bi:mi,wi=bi>mi?3:4;if(zr.indexOf(hi)===-1)return null;if(console.log("change1:",Fn,Hn,ei,Qn,ai,bi,mi,hi),ai>=0&&Qn.ch-ai<5){var Ki=ai+wi;return Rn.replaceRange("",{line:Qn.line,ch:ai},{line:Qn.line,ch:Ki}),{line:Qn.line,ch:Ki}}return null}(0,ye.useEffect)(()=>{if(et){let Hn=function(Fn,Rn){const Qn=Fn.getValue();Qt(Qn),ar(new Date().getTime()),Fn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),vr&&(Mt?vr(Qn,Yi(Qn)):vr(Qn))};return et.on("change",Hn),()=>{et.off("change",Hn)}}},[et,vr]),(0,ye.useEffect)(()=>{if(et)if(er==null)et.setValue(""),Qt("");else{const Hn=window.scrollY||window.pageYOffset;er!==et.getValue()&&(et.setValue(er),Qt(er),et.setCursor(Mn?1:et.lineCount(),0),window.scrollTo(0,Hn))}},[et,er]);const Qr=(0,ye.useCallback)(Hn=>{const Fn=et.getCursor(),Rn=et.getSelection();let Qn=Rn.split(` `);switch(Hn){case"bold":return et.replaceSelection("**"+Rn+"**"),Rn===""&&et.setCursor(Fn.line,Fn.ch+2),et.focus();case"italic":return et.replaceSelection("*"+Rn+"*"),Rn===""&&et.setCursor(Fn.line,Fn.ch+1),et.focus();case"code":return et.replaceSelection("`"+Rn+"`"),Rn===""&&et.setCursor(Fn.line,Fn.ch+1),et.focus();case"inline-latex":return En("inline-latex"),et.focus();case"latex":return et.replaceSelection("```latex\n"+Rn+"\n```"),et.setCursor(Fn.line+1,Rn.length+1),et.focus();case"line-break":return et.replaceSelection(`
`),et.focus();case"list-ul":return Rn===""?et.replaceSelection("- "+Rn):et.replaceSelection(Qn.map(ei=>ei===""?"":`- ${ei}`).join(` `)),et.focus();case"list-ol":return Rn===""?et.replaceSelection("1. "+Rn):et.replaceSelection(Qn.map((ei,hi)=>ei===""?"":`${hi+1}. ${ei}`).join(` `)),et.focus();case"add-null-ch":qn==null||qn();return;case"add-signal":return Rn===""&&et.setCursor(Fn.line,Fn.ch),et.replaceSelection(jr),et.focus();case"add-multiple":return Rn===""&&et.setCursor(Fn.line,Fn.ch),et.replaceSelection(zr),et.focus();case"inster-template-1":return Rn===""&&et.setCursor(Fn.line,Fn.ch),et.replaceSelection(Ar),et.focus();case"eraser":return et.setValue(""),et.focus();case"trigger-watch":return jt(!Rt),et.focus();case"trigger-full-screen":return cn(!Zt),et.focus();case Cn:En(Cn);return;case bn:En(bn);return;case nt:En(nt);return;case Bt:En(Bt);return;case"maths-latex":En("maths-latex");return;case mt:sr.current="",sessionStorage.removeItem("file_id"),En(mt);return;case yn:En(yn);return;default:throw new Error}},[et,Rt,Zt]),Rr=(0,ye.useCallback)((Hn,Fn)=>{var Rn,Qn,ei,hi,bi,mi;En("");const{src:ai,alt:wi,id:Ki}=Hn||{};switch(mn){case Cn:const{title:Ja,link:Ea}=Hn;return et.replaceSelection(`[${Ja}](${Ea})`),et.focus();case bn:const{language:ma,content:ta}=Hn;return et.replaceSelection(["```"+ma,ta,"```"].join(` `)),et.focus();case"maths-latex":for(var Ti=atob(Hn),pa=new Uint8Array(Ti.length),ea=0;ea{ti.id?et.replaceSelection(`![,](/api/attachments/${ti.id}?type=${ti.content_type})`):(ti==null?void 0:ti.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":et.replaceSelection("`$$"+Hn+"$$`");break;case xn:if(!Ki)return;et.focus(),et.getValue().indexOf(ai)===-1?et.replaceSelection(`
${wi||
`):document.getElementById(Ki).src=de.Z.API_SERVER+ai+"?t="+Date.now();try{setTimeout(()=>{ln(et.getValue())},100)}catch(ti){}break;case nt:case Bt:const Si=Fn,Dr=(ei=(Qn=(Rn=Si==null?void 0:Si.name)==null?void 0:Rn.split("."))==null?void 0:Qn.pop)==null?void 0:ei.call(Qn);return((hi=Si==null?void 0:Si.type)==null?void 0:hi.indexOf("image"))>-1||!(Si!=null&&Si.type)?Si!=null&&Si.align||Si!=null&&Si.width?et.replaceSelection(`

${wi||

`):et.replaceSelection(`${wi||`):((bi=Si==null?void 0:Si.type)==null?void 0:bi.indexOf("video"))>-1?et.replaceSelection(``):((mi=Si==null?void 0:Si.type)==null?void 0:mi.indexOf("pdf"))>-1?et.replaceSelection(`${Si.name}`):Xr.includes(Dr)?et.replaceSelection(`${Si.name}`):et.replaceSelection(`[${Si.name}](${ai})`),et.focus();case yn:const{row:Ur,col:Fr,align:Er}=Hn;let ri=` `;for(let ti=0;ti{switch(mn){case Cn:return ye.createElement(nn,{callback:Rr,onCancel:Yn});case bn:return ye.createElement(Vt.Z,{callback:Rr,onCancel:Yn});case nt:return ye.createElement(Qe.Z,{callback:Rr,onCancel:Yn});case mt:return ye.createElement(ce,{editImgId:sr.current,callback:Rr,onCancel:Yn});case yn:return ye.createElement(yt,{callback:Rr,onCancel:Yn});case"maths-latex":return ye.createElement(on,{showSaveButton:!0,callback:Rr});case"inline-latex":return ye.createElement(ot.Z,{showSaveButton:!0,callback:Rr});default:return null}},[mn]);function Yn(){En("")}(0,ye.useEffect)(()=>{if(kn.current){let Hn=function(bi){ei=!0,hi=bi.pageY},Fn=function(){ei=!1},Rn=function(bi){if(ei){let mi=bi.pageY-hi;mi<0&&(mi=0),mi>300&&(mi=300);let ai=Bn+mi+"px";or(ai)}},Qn=kn.current,ei=!1,hi=0;return Qn.addEventListener("mousedown",Hn),document.addEventListener("mousemove",Rn),document.addEventListener("mouseup",Fn),()=>{Qn.removeEventListener("mousedown",Hn),document.removeEventListener("mousemove",Rn),document.removeEventListener("mouseup",Fn)}}},[et,kn]),(0,ye.useEffect)(()=>{or(Bn)},[Bn]);const jn=fr(Dn),Lr=fr(xr),Ir={width:jn,height:Lr},si=(0,ye.useMemo)(()=>{if(Un){let Hn=new Date(Un),Fn=Hn.getHours(),Rn=Hn.getMinutes(),Qn=Hn.getSeconds();return Fn=Fn<10?"0"+Fn:Fn,Rn=Rn<10?"0"+Rn:Rn,Qn=Qn<10?"0"+Qn:Qn,`${Fn}:${Rn}:${Qn}`}return 0},[Un]),Yi=Hn=>{const Fn=[];if(Mt){let Rn=-1;Hn=Hn.replace(/(@▁▁@|@▁@)/g,function(Qn,ei,hi){Fn.push({multiLine:Qn!==jr})})}return Fn};function _i(){window.sessionStorage.removeItem(Ie),wr(!1),ar(0)}function Jr(){wr(!1),ar(0),et.setValue(window.sessionStorage.getItem(Ie))}(0,ye.useEffect)(()=>{qr[mn]&&mn!==Bt&&mn!==mt&&setTimeout(()=>{const Hn=document.getElementsByClassName("markdown-popup-form")[0],Fn=window.innerWidth/2-Hn.offsetWidth/2,Rn=window.innerHeight/2-Hn.offsetHeight/2;hr(Fn),Tr(Rn)},0)},[mn]);const yi=Hn=>{Hn.preventDefault();const Fn=Hn.clientX-nr,Rn=Hn.clientY-rr;document.body.onmousemove=Qn=>{let ei=Qn.clientX-Fn,hi=Qn.clientY-Rn;const bi=document.getElementsByClassName("markdown-popup-form")[0],mi=window.innerWidth-bi.offsetWidth,ai=window.innerHeight-bi.offsetHeight;ei=Math.max(0,Math.min(ei,mi)),hi=Math.max(0,Math.min(hi,ai)),pi(Qn.clientX,Qn.clientY,Fn,Rn)&&(hr(ei),Tr(hi))},document.body.onmouseup=function(){document.body.onmousemove=null}},pi=(Hn,Fn,Rn,Qn)=>{const ei=document.body.clientHeight,hi=document.body.clientWidth;return Hn<20&&Rn>Hn||Hn>hi-20&&RnFn||Fn>ei-20&&Qn{var Fn;sr.current=Hn,(Fn=Xn.current)==null||Fn.setHeight("100vh"),setTimeout(()=>{En("add-flowchart")},150)}})):null))),Ye?ye.createElement("a",{ref:kn,className:"editor-resize"}):null,mn===Bt&&ye.createElement($t,{callback:Rr,onCancel:Yn}),mn===mt&&ye.createElement(ce,{ref:Xn,editImgId:sr.current,callback:Rr,onCancel:Yn}),ye.createElement(pt.Z,null,qr[mn]&&mn!==Bt&&mn!==mt?ye.createElement(Ue.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:nr,top:rr},title:ye.createElement("div",{style:{cursor:"move"},onMouseDown:yi},qr[mn]),open:!0,onCancel:Yn,footer:null,destroyOnClose:!0,width:mn===mt?"1200px":null,height:mn===mt?"80vh":null,className:"markdown-popup-form"},fi):null))}},58448:function(fn,Jt,fe){"use strict";fe.d(Jt,{Z:function(){return ze},I:function(){return pt}});var ye=fe(78241),We=fe(8591),Te=fe(92832),it=fe(81327),be=fe(5871),_e=fe(5112),Re=fe(3113),Ce=fe(79090),Ee=fe(59301),Fe=fe(7544),lt=fe(59301),De=Object.defineProperty,Ke=Object.defineProperties,ft=Object.getOwnPropertyDescriptors,Ve=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable,St=(Ge,Lt,at)=>Lt in Ge?De(Ge,Lt,{enumerable:!0,configurable:!0,writable:!0,value:at}):Ge[Lt]=at,Kt=(Ge,Lt)=>{for(var at in Lt||(Lt={}))rt.call(Lt,at)&&St(Ge,at,Lt[at]);if(Ve)for(var at of Ve(Lt))Xe.call(Lt,at)&&St(Ge,at,Lt[at]);return Ge},Je=(Ge,Lt)=>Ke(Ge,ft(Lt));const{useForm:dt}=ye.default,Ze={width:280,marginRight:10},Me={labelCol:{span:5},wrapperCol:{span:19}};var ze=({callback:Ge,onCancel:Lt})=>{const[at]=dt();let At=(0,Ee.useRef)();function tt(Xt){At.current.width=at.getFieldValue("width"),At.current.align=at.getFieldValue("align"),Ge(Xt,At.current)}function Nt(Xt,qt){if(Xt.status===-1){We.ZP.error(Xt.message);return}at.setFieldsValue({src:`/api/attachments/${Xt.id}`,type:qt.type})}function tn(Xt){let qt=Xt.target.files[0];At.current=qt,pt(qt,Nt)}return lt.createElement(ye.default,Je(Kt({form:at},Me),{className:"upload-image-panel",onFinish:tt,style:{width:470,overflow:"hidden"}}),lt.createElement(ye.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},lt.createElement("div",{className:"flex-container"},lt.createElement(ye.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},lt.createElement(Te.default,{style:Ze})),lt.createElement($e,{onFileChange:tn}))),lt.createElement(ye.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},lt.createElement(Te.default,{style:{width:264}})),lt.createElement(ye.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},lt.createElement(it.Z,null,lt.createElement(ye.default.Item,{name:"width",style:{margin:0}},lt.createElement(be.Z,{style:{width:264}})),lt.createElement("span",{className:"ml8"},"%"))),lt.createElement(ye.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},lt.createElement(_e.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"}]})),lt.createElement("aside",null,lt.createElement(ye.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},lt.createElement(Re.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),lt.createElement(Re.ZP,{type:"default",onClick:Lt},"\u53D6\u6D88"))))};function $e({onFileChange:Ge}){return lt.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",lt.createElement("input",{type:"file",onChange:Ge}))}function pt(Ge,Lt){if(!Ge)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Fe.bg)())throw We.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let at=new FormData;at.append("editormd-image-file",Ge),at.append("file_param_name","editormd-image-file"),at.append("byxhr","true");var At=new window.XMLHttpRequest;At.withCredentials=!0,At.addEventListener("load",function(tt){Lt(JSON.parse(tt.target.responseText),Ge)},!1),At.addEventListener("error",function(tt){console.error(tt)},!1),At.open("POST",`${Ce.KI}/api/attachments.json`),At.send(at)}},53531:function(fn,Jt,fe){"use strict";fe.d(Jt,{Z:function(){return Te}});var ye=fe(59301),We=fe(4676);class Te extends ye.Component{constructor(be){super(be);const _e=window.document;this.node=_e.createElement("div"),_e.body.appendChild(this.node)}render(){const{children:be}=this.props;return(0,We.createPortal)(be,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},57649:function(fn,Jt,fe){"use strict";fe.d(Jt,{Z:function(){return We}});var ye=fe(59301);function We(Te,it){const be=(0,ye.useRef)();(0,ye.useEffect)(()=>{be.current=Te}),(0,ye.useEffect)(()=>{function _e(){be.current()}if(it!==null){let Re=setInterval(_e,it);return()=>clearInterval(Re)}},[it])}},22473:function(fn,Jt,fe){"use strict";fe.r(Jt),fe.d(Jt,{default:function(){return dn}});var ye=fe(59301),We=fe(91482),Te=fe(79769),it=fe(78241),be=fe(8591),_e=fe(95237),Re=fe(43604),Ce=fe(20834),Ee=fe(61621),Fe=fe(3113),lt=fe(43418),De=fe(92832),Ke=fe(40973),ft=fe(5033),Ve=fe(39655),rt=fe(6521),Xe={flex_box_center:"flex_box_center___W5itf",flex_space_between:"flex_space_between___gui6v",flex_box_vertical_center:"flex_box_vertical_center___pD9t3",flex_box_center_end:"flex_box_center_end___ocOJP",flex_box_column:"flex_box_column___KhV4h",content:"content____xM73",title:"title___Q0EMb",menu:"menu___dbMGX",contcats:"contcats___uNFhe",cooperatives:"cooperatives___EVJ5n",imgWrp:"imgWrp___wcdFr",btns:"btns___gQP5Z",confirm:"confirm___Igsxy",cancel:"cancel___EPAJA"},St=fe(5112),Kt=fe(20808),Je={wrap:"wrap___AsKly",link:"link___CnaN3"},dt=fe(25544),Ze=Object.defineProperty,Me=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable,pt=(Et,$t,wt)=>$t in Et?Ze(Et,$t,{enumerable:!0,configurable:!0,writable:!0,value:wt}):Et[$t]=wt,Ge=(Et,$t)=>{for(var wt in $t||($t={}))ze.call($t,wt)&&pt(Et,wt,$t[wt]);if(Me)for(var wt of Me($t))$e.call($t,wt)&&pt(Et,wt,$t[wt]);return Et},Lt=(Et,$t)=>{var wt={};for(var Dt in Et)ze.call(Et,Dt)&&$t.indexOf(Dt)<0&&(wt[Dt]=Et[Dt]);if(Et!=null&&Me)for(var Dt of Me(Et))$t.indexOf(Dt)<0&&$e.call(Et,Dt)&&(wt[Dt]=Et[Dt]);return wt},at=(Et,$t,wt)=>new Promise((Dt,Pt)=>{var ve=ce=>{try{oe(wt.next(ce))}catch(de){Pt(de)}},le=ce=>{try{oe(wt.throw(ce))}catch(de){Pt(de)}},oe=ce=>ce.done?Dt(ce.value):Promise.resolve(ce.value).then(ve,le);oe((wt=wt.apply(Et,$t)).next())});const{TextArea:At}=De.default,tt=Et=>{var $t=Et,{user:wt,globalSetting:Dt,loading:Pt,dispatch:ve}=$t,le=Lt($t,["user","globalSetting","loading","dispatch"]);const[oe]=it.default.useForm();(0,ye.useEffect)(()=>{var de;(0,dt.W)((de=wt.userInfo)==null?void 0:de.login)||(0,Kt.o1)(ve)},[wt.userInfo.login]);const ce=de=>at(void 0,null,function*(){var se;const Le=yield(0,Te.ZP)("/api/helps/feedback.json",{method:"post",body:Ge({},de)});(Le==null?void 0:Le.status)===0&&We.history.push(`/messages/${(se=wt.userInfo)==null?void 0:se.login}/message_detail?target_ids=1`)});return ye.createElement("section",{className:`${Je.wrap} bg-white pl30 pr30 pt30`},ye.createElement("div",{className:"c-grey-999 line26"},"\u60F3\u5BF9\u6211\u4EEC\u7684\u5E73\u53F0\u63D0\u4F9B\u529F\u80FD\u5EFA\u8BAE\uFF1F",ye.createElement("br",null),"\u53D1\u73B0\u7F51\u9875\u4E2D\u7684\u95EE\u9898\u6216bug\u60F3\u544A\u8BC9\u6211\u4EEC\uFF1F",ye.createElement("br",null),"\u671F\u671B\u4E0E\u6211\u4EEC\u5C55\u5F00\u5408\u4F5C\uFF1F",ye.createElement("br",null),"\u5728\u8FD9\u91CC\u628A\u4F60\u60F3\u8BF4\u7684\u4E00\u5207\u544A\u8BC9\u6211\u4EEC\u5427\uFF1F"),ye.createElement("div",{className:"c-red-ee4 mt20 mb20"},"* ",ye.createElement(We.Link,{to:"/help/help_center",className:`${Je.link} c-red-ee4`},"\u770B\u770B\u5E2E\u52A9\u4E2D\u5FC3\u662F\u5426\u6709\u4F60\u60F3\u8981\u7684\u7B54\u6848")),ye.createElement(it.default,{layout:"vertical",form:oe,onFinish:ce,initialValues:{question_kind:"\u767B\u5F55\u6CE8\u518C"}},ye.createElement(it.default.Item,{label:"\u95EE\u9898\u5206\u7C7B\uFF1A",name:"question_kind",rules:[{required:!0,message:"\u4E0D\u80FD\u4E3A\u7A7A"}]},ye.createElement(St.ZP.Group,null,ye.createElement(St.ZP,{value:"\u767B\u5F55\u6CE8\u518C"},"\u767B\u5F55\u6CE8\u518C"),ye.createElement(St.ZP,{value:"\u4FE1\u606F\u8BA4\u8BC1"},"\u4FE1\u606F\u8BA4\u8BC1"),ye.createElement(St.ZP,{value:"\u5B9E\u8BAD\u7F16\u7A0B"},"\u5B9E\u8BAD\u7F16\u7A0B"),ye.createElement(St.ZP,{value:"\u5B9E\u8BAD\u8BFE\u7A0B"},"\u5B9E\u8BAD\u8BFE\u7A0B"),ye.createElement(St.ZP,{value:"\u8BFE\u5802"},"\u8BFE\u5802"),ye.createElement(St.ZP,{value:"\u5176\u5B83"},"\u5176\u5B83"))),ye.createElement(it.default.Item,{label:"\u95EE\u9898\u9875\u9762\u7F51\u5740\uFF1A",name:"url",rules:[{required:!0,message:"\u4E0D\u80FD\u4E3A\u7A7A"}]},ye.createElement(De.default,{placeholder:"\u53CD\u9988\u5E73\u53F0\u95EE\u9898\uFF0C\u8BF7\u540C\u65F6\u586B\u5199\u5BF9\u5E94\u7684\u95EE\u9898\u9875\u9762\u94FE\u63A5\uFF0C\u4EE5\u4FBF\u5E73\u53F0\u80FD\u591F\u53CA\u65F6\u8DDF\u8E2A\u89E3\u51B3\uFF0C\u8C22\u8C22"})),ye.createElement(it.default.Item,{label:"\u95EE\u9898\u63CF\u8FF0\uFF1A",name:"description",rules:[{required:!0,message:"\u4E0D\u80FD\u4E3A\u7A7A"}]},ye.createElement(At,{rows:4,placeholder:"\u53CD\u9988\u5E73\u53F0\u95EE\u9898\uFF0C\u8BF7\u540C\u65F6\u586B\u5199\u5BF9\u5E94\u7684\u95EE\u9898\u9875\u9762\u94FE\u63A5\uFF0C\u4EE5\u4FBF\u5E73\u53F0\u80FD\u591F\u53CA\u65F6\u8DDF\u8E2A\u89E3\u51B3\uFF0C\u8C22\u8C22"})),ye.createElement(it.default.Item,null,ye.createElement(Fe.ZP,{type:"primary",htmlType:"submit"},"\u63D0\u4EA4"))))};var Nt=(0,We.connect)(({user:Et,loading:$t,globalSetting:wt})=>({user:Et,globalSetting:wt,loading:$t.models.index}))(tt),tn=Object.defineProperty,Xt=Object.defineProperties,qt=Object.getOwnPropertyDescriptors,Ot=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,gt=(Et,$t,wt)=>$t in Et?tn(Et,$t,{enumerable:!0,configurable:!0,writable:!0,value:wt}):Et[$t]=wt,nn=(Et,$t)=>{for(var wt in $t||($t={}))He.call($t,wt)&>(Et,wt,$t[wt]);if(Ot)for(var wt of Ot($t))xe.call($t,wt)&>(Et,wt,$t[wt]);return Et},Vt=(Et,$t)=>Xt(Et,qt($t)),Qe=(Et,$t)=>{var wt={};for(var Dt in Et)He.call(Et,Dt)&&$t.indexOf(Dt)<0&&(wt[Dt]=Et[Dt]);if(Et!=null&&Ot)for(var Dt of Ot(Et))$t.indexOf(Dt)<0&&xe.call(Et,Dt)&&(wt[Dt]=Et[Dt]);return wt},Ue=(Et,$t,wt)=>new Promise((Dt,Pt)=>{var ve=ce=>{try{oe(wt.next(ce))}catch(de){Pt(de)}},le=ce=>{try{oe(wt.throw(ce))}catch(de){Pt(de)}},oe=ce=>ce.done?Dt(ce.value):Promise.resolve(ce.value).then(ve,le);oe((wt=wt.apply(Et,$t)).next())});const kt=Et=>{var $t=Et,{user:wt,globalSetting:Dt,loading:Pt,dispatch:ve}=$t,le=Qe($t,["user","globalSetting","loading","dispatch"]),oe,ce,de,se,Le,qe,vt;const[yt,_t]=(0,ye.useState)({content:"",message:"",status:0,contacts:[],address:"",data:[]}),[Tt,zt]=(0,ye.useState)(!0),[Yt]=it.default.useForm(),on=(0,We.useParams)(),ot=(0,We.useLocation)(),[Ut,Cn]=(0,ye.useState)(null),[nt,mt]=(0,ye.useState)(0),[Bt,xn]=(0,ye.useState)(!1),[bn,yn]=(0,ye.useState)(!1),[Nn,Vn]=(0,ye.useState)(Ut==null?void 0:Ut.content),In=[{name:"\u5173\u4E8E\u6211\u4EEC",key:"about_us",id:"about",editable:!0},{name:"\u52A0\u5165\u6211\u4EEC",key:"join_us",id:"join_us",editable:!0},{name:"\u8054\u7CFB\u6211\u4EEC",key:"contact_us",id:"contact"},{name:"\u5408\u4F5C\u4F19\u4F34",key:"cooperatives",id:"cooperatives"},{name:"\u670D\u52A1\u534F\u8BAE",key:"agreement",id:"agreement",editable:!0},{name:"\u5E2E\u52A9\u4E2D\u5FC3",key:"help_center",id:"help_center",editable:!0},{name:"\u610F\u89C1\u53CD\u9988",key:"feedback",id:"feedback"}].filter(gn=>{var yr;return(yr=Dt==null?void 0:Dt.setting)!=null&&yr.is_local?gn.name!=="\u5173\u4E8E\u6211\u4EEC":!0}),lr=()=>Ue(void 0,null,function*(){var gn,yr,Pr,zr;ot.pathname.indexOf("/feedback")===-1&&_t(yield(0,Te.ZP)(`/api/helps/${(yr=(gn=In.filter(jr=>jr.key===on.id))==null?void 0:gn[0])==null?void 0:yr.id}.json`,{method:"get"})),zt(!1),(0,dt.Dk)((zr=(Pr=In.filter(jr=>jr.key===on.id))==null?void 0:Pr[0])==null?void 0:zr.name)});function ur(){return Ue(this,null,function*(){let gn=yield(0,Te.ZP)("/api/helps/update_content.json",{method:"put",body:{type:on.id,content:Nn}});(gn==null?void 0:gn.status)===0&&(be.ZP.info("\u63D0\u4EA4\u6210\u529F"),xn(!1),zt(!0),lr())})}return(0,ye.useEffect)(()=>{zt(!0),lr()},[on.id]),ye.createElement("section",null,ye.createElement("aside",{className:"edu-container mt30"},ye.createElement(_e.Z,{gutter:[20,20]},ye.createElement(Re.Z,null,ye.createElement(Ce.default,{className:Xe.menu,style:{width:174},defaultSelectedKeys:[(oe=In.filter(gn=>gn.key===on.id))==null?void 0:oe[0].key],mode:"inline"},In.map(function(gn,yr){return ye.createElement(Ce.default.Item,{key:gn.key},ye.createElement(We.Link,{to:`/help/${gn.key}`,onClick:()=>{xn(!1),Cn(null)}},gn.name))}))),ye.createElement(Re.Z,{flex:"1"},ye.createElement("h1",{className:Xe.title},(ce=In.filter(gn=>gn.key===on.id))==null?void 0:ce[0].name,((de=In.filter(gn=>gn.key===on.id))==null?void 0:de[0].editable)&&((se=wt==null?void 0:wt.userInfo)==null?void 0:se.role)===1&&ye.createElement("a",{style:{float:"right",color:"#165DFF"},onClick:()=>Ue(void 0,null,function*(){xn(!0);let gn=yield(0,Te.ZP)("/api/helps/edit_content.json",{params:{type:on.id}});(gn==null?void 0:gn.status)===0&&(Cn(gn),console.log(gn))})},ye.createElement("i",{className:"iconfont icon-bianji10 font14",style:{color:"#165DFF"}})," \u7F16\u8F91")),ye.createElement("div",{className:"minH500"},on.id==="feedback"?ye.createElement(Nt,null):ye.createElement(Ee.Z,{loading:Tt},ye.createElement("div",{className:[Xe.content,"bg-white pl30 pr30 pt30"].join(" ")},Bt?ye.createElement("div",null,ye.createElement(Ke.Z,{defaultValue:Ut==null?void 0:Ut.content,onChange:gn=>Vn(gn)}),ye.createElement("div",{className:Xe.btns},ye.createElement(Fe.ZP,{className:Xe.cancel,onClick:()=>xn(!1)},"\u53D6\u6D88"),ye.createElement(ft.Z,{className:Xe.confirm,type:"primary",onClick:ur},"\u4FDD\u5B58\u66F4\u6539"))):ye.createElement("div",null,ye.createElement(Ve.Z,{value:yt.content||""})),(Le=yt.contacts)==null?void 0:Le.map(function(gn,yr){var Pr;return ye.createElement("ul",{key:yr,className:Xe.contcats},((Pr=wt==null?void 0:wt.userInfo)==null?void 0:Pr.role)===1&&ye.createElement("a",{style:{float:"right",color:"#165DFF"},onClick:()=>{yn(!0),mt(yr+1),Yt.setFieldsValue({name:gn.name,qq:gn.qq,mail:gn.mail})}},ye.createElement("i",{className:"iconfont icon-bianji10 font14",style:{color:"#165DFF"}})," \u7F16\u8F91"),ye.createElement("h1",null,gn.type),ye.createElement("li",null,ye.createElement("span",null,"\u8054\u7CFB\u4EBA:"),gn.name),ye.createElement("li",null,ye.createElement("span",null,"QQ:"),gn.qq),ye.createElement("li",null,ye.createElement("span",null,"Email:"),gn.mail))}),yt.address&&ye.createElement("ul",{className:Xe.contcats},((qe=wt==null?void 0:wt.userInfo)==null?void 0:qe.role)===1&&ye.createElement("a",{style:{float:"right",color:"#165DFF"},onClick:()=>{yn(!0),mt(4),Yt.setFieldsValue({address:yt.address})}},ye.createElement("i",{className:"iconfont icon-bianji10 font14",style:{color:"#165DFF"}})," \u7F16\u8F91"),ye.createElement("h1",null,"\u516C\u53F8\u5730\u5740"),ye.createElement("li",null,yt.address)),(vt=yt.data)==null?void 0:vt.map(function(gn,yr){var Pr;return ye.createElement("div",{className:Xe.cooperatives},ye.createElement("h1",null,gn.name),ye.createElement(_e.Z,{gutter:[10,20]},(Pr=gn.values)==null?void 0:Pr.map(function(zr,jr){return ye.createElement(Re.Z,{span:6},ye.createElement("div",{className:Xe.imgWrp},ye.createElement("img",{src:rt.Z.IMG_SERVER+zr.img})))})))}))))))),ye.createElement(lt.default,{centered:!0,title:"\u7F16\u8F91",open:bn,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",destroyOnClose:!0,onCancel:()=>{yn(!1)},onOk:()=>Ue(void 0,null,function*(){const gn=nn({},yield Yt.validateFields());(yield(0,Te.ZP)("/api/helps/update_contact.json",{method:"put",body:Vt(nn({},gn),{type:nt})})).status===0&&(be.ZP.success("\u4FEE\u6539\u6210\u529F"),lr(),yn(!1))})},ye.createElement(it.default,{form:Yt,labelAlign:"right",labelCol:{span:4},scrollToFirstError:!0},nt!==4&&ye.createElement(it.default.Item,{label:"\u8054\u7CFB\u4EBA",name:"name",placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u4EBA"},ye.createElement(De.default,{maxLength:60,size:"large",style:{height:40,marginTop:"-4px"}})),nt!==4&&ye.createElement(it.default.Item,{label:"QQ",name:"qq",placeholder:"\u8BF7\u8F93\u5165QQ"},ye.createElement(De.default,{maxLength:60,size:"large",style:{height:40,marginTop:"-4px"}})),nt!==4&&ye.createElement(it.default.Item,{label:"Email",name:"mail",placeholder:"\u8BF7\u8F93\u5165Email"},ye.createElement(De.default,{maxLength:60,size:"large",style:{height:40,marginTop:"-4px"}})),nt===4&&ye.createElement(it.default.Item,{label:"\u516C\u53F8\u5730\u5740",name:"address",placeholder:"\u8BF7\u8F93\u5165\u516C\u53F8\u5730\u5740"},ye.createElement(De.default,{maxLength:60,size:"large",style:{height:40,marginTop:"-4px"}})))))};var dn=(0,We.connect)(({user:Et,loading:$t,globalSetting:wt})=>({user:Et,globalSetting:wt,loading:$t.models.index}))(kt)},20808:function(fn,Jt,fe){"use strict";fe.d(Jt,{rX:function(){return dt},pW:function(){return Ze},gy:function(){return Me},xY:function(){return Je},O5:function(){return Kt},tJ:function(){return ft},o1:function(){return Ve},Rd:function(){return St}});var ye=fe(91482),We=fe(43418),Te=fe(28103),it=fe(8591),be=fe(7544),_e=fe(25544),Re=fe(87169),Ce=fe(25510),Ee="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAAC0CAYAAAA9zQYyAAAAAXNSR0IArs4c6QAAQABJREFUeAHsvQuQpclVmJn3We+qfkxPT89oRqN5SKPRC0mgAQRYCwgkh2ExAWvDrrVrwOBl14shYh/GRBB2EF4CdlnvbmAvsGxgWEd4l2WNsYEwMkIYCQnYkQYhZvQYzUgzPdM908/qet26z/2+k3/ee6u6qrtrpkciOiqr/vvnn3ny5MmTJ0+efPz510ajUSMdukMO3CIcqN8i5TgsxiEHggOHAn0oCLcUBw4F+paqzsPCHAr0oQzcUhw4FOhbqjoPC3Mo0IcycEtx4FCgb6nqPCzMoUAfysAtxYFDgb6lqvOwMIcCfSgDtxQHDgX6lqrOw8IcCvShDNxSHDgU6FuqOg8LcyjQhzJwS3HgUKBvqeo8LMyhQB/KwC3FgUOBvqWq87AwhwJ9KAO3FAcOBfqWqs7DwhwK9KEM3FIcOBToW6o6DwtzKNCHMnBLceBQoG+p6jwszKFAH8rALcWBQ4G+parzsDCHAn0oA7cUB5pf6tJ85PmtRwbL7btGKY3mUj6VbDBIaThItepxTGK9kQDLrkY8h5jxPEiNxs7TzHrdVAvYBnGAR+wYBOR7OPOb4B8DV6mn01RxBoW3O8YmjsXUGNU2t7/w2uPzHxtHHHq+aByofSnPtvu1Mxs/NN9q/WR9ptVq9VNqDYapV0upFhc/O1yR5enwIRI9DPiU6txrSHmNMBEIr9TxVCOO+Bt34JGIsSMfWlDgFH8hJeKH8UuKVCe8Naqn+Vq9MzMc/OcPHmn9yhjFoeeLwoEvmYb+yOnUPtdpfXertd1qbnXSTL2JoIziopUhPFlQdnJhWsgAKZGVR6EKQSwSZzgCptspoBEUP+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DzJl0jkTXjplB6FAFoxdzqNuXRv6fAe+1HuoNQfzQ2Pfri4tfbfm+vN97/x2x/9z9/euOESzP+L+UwKfR5H3/jr2yvv7myu3z3eeoo7/54gu1wqy1uBhdHyeOBqPyJhhao059VywoKJZTN/RcYGxBTPNTUCW0Vyf0rGjR1g8WNa/ow/a7IkZbh02shKusyCzmKUdMTr0hN3srzVRWlpS7PS11HT8EVJdVe06nd5b2Jq4CSgddRwbCd5GUt3YIzukjEqYazBu7NvmdiTIbdbLBzSIezzHnFva310//r4zv1XfmF+8I+vP3/ey4FOAlfrvHKFvlr2emq9BC4ngU5fcjnEHrqXwCxKoFfoWSyVnqepJdAr9NSi6xFnUQK9Qs9iqfQ8TS2BXqGnFl2POIsS6BV6Fkul52lqCfQKPbXoesRZlECv0LNYKj1PU0ugV+ipRdcjzqIEeoWexVLpeZpaAr1CTy26HnEWJdAr9CyWSs/T1BLoFXpq0fWIsyiBXqFnsVR6nqaWQK/QU4uuR5xFCfQKPYul0vM0tQR6hZ5adD3iLEqgV+hZLJWep6kl0Cv01KLrEWdRAr1Cz2Kp9DxNLYFeoacWXY84ixLoFXoWS6XnaWoJ9Ao9teh6xFmUwP8BvOeeqRbgzD0AAAAASUVORK5CYII=",Fe=fe.p+"static/newqrcode.a8740efb.png",lt=fe(32637),De=fe(59301),Ke=(ze,$e,pt)=>new Promise((Ge,Lt)=>{var at=Nt=>{try{tt(pt.next(Nt))}catch(tn){Lt(tn)}},At=Nt=>{try{tt(pt.throw(Nt))}catch(tn){Lt(tn)}},tt=Nt=>Nt.done?Ge(Nt.value):Promise.resolve(Nt.value).then(at,At);tt((pt=pt.apply(ze,$e)).next())});const ft=(ze,$e=!1)=>!!(Ve(ze)&&rt($e)),Ve=ze=>(0,be.bg)()?!0:(ze({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),rt=(ze=!1)=>{var $e;const{user:pt}=(0,ye.getDvaApp)()._store.getState();return($e=pt.userInfo)!=null&&$e.profile_completed?!0:(We.default.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,_e.xg)("/account/profile/edit"),Xe()}}),!1)},Xe=()=>{We.default.success({title:"\u63D0\u793A",width:430,closable:!0,centered:!0,content:"\u5DF2\u5B8C\u5584\u4E2A\u4EBA\u8D44\u6599\uFF1F\u8BF7\u5237\u65B0\u9875\u9762",okText:"\u7ACB\u5373\u5237\u65B0",icon:null,onOk:()=>{location.reload()}})},St=()=>{We.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:De.createElement("div",{style:{textAlign:"center"}},De.createElement("div",{style:{color:"#191919",fontSize:14,marginBottom:15,textAlign:"left"}},"\u8001\u5E08\u60A8\u597D\uFF0C\u60A8\u7684\u8BFE\u5802\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u76F8\u5173\u529F\u80FD\u88AB\u9650\u5236\u3002 \u5982\u9700\u7EE7\u7EED\u4F7F\u7528\uFF0C\u8BF7\u5C3D\u5FEB\u5BF9\u63A5\u4EBA\u5DE5\u652F\u6301\uFF01"),De.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:lt}),De.createElement("div",{style:{color:"#666666",fontSize:14,marginTop:15}},"\u6DFB\u52A0\u5BA2\u670D\u4EBA\u5458\u5FAE\u4FE1\uFF0C\u83B7\u5F97\u66F4\u591A\u652F\u6301"))})},Kt=()=>{var ze;const{user:$e}=(0,ye.getDvaApp)()._store.getState();return(ze=$e.userInfo)!=null&&ze.professional_certification?!0:(We.default.confirm({title:"\u63D0\u793A",centered:!0,content:De.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,_e.xg)("/account/certification")}}),!1)},Je=()=>(0,be.V9)()?!0:(We.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:De.createElement("div",{className:"tc",style:{marginLeft:-38}},De.createElement("p",null,"\u626B\u7801\u52A0\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),De.createElement("img",{src:Fe,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),dt=(ze,$e)=>ze?!0:(We.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:De.createElement("div",null,De.createElement("p",null,$e||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),De.createElement("div",{style:{marginLeft:"110px"}},De.createElement("img",{src:Ee,width:200}),De.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,_e.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),Ze=ze=>{We.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:De.createElement("div",null,De.createElement("div",null,De.createElement("p",{style:{color:"#191919",fontWeight:400,fontSize:14}},"\u201C\u4FDD\u5B58\u5B9E\u9A8C\u4E34\u65F6\u6570\u636E\u201D\u529F\u80FD\u4E3A\u4ED8\u8D39\u529F\u80FD\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425\u8FDB\u884C\u5F00\u901A\u3002"),De.createElement(Te.Z,null),De.createElement("p",{style:{color:"#666666",fontSize:12}}," ",De.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"1")," \u56E0\u5E73\u53F0\u7684\u5B9E\u9A8C\u6570\u636E\u50A8\u5B58\u5BB9\u91CF\u548C\u6210\u672C\u6D88\u8017\u8F83\u5927\uFF0C\u5B9E\u8DF5\u9879\u76EE\u9ED8\u8BA4\u4FDD\u5B58\u5B9E\u9A8C\u73AF\u5883\u4E2D\u4E34\u65F6\u6570\u636E ",De.createElement("a",null,ze),"\u5929\u3002"),De.createElement("p",{style:{color:"#666666",fontSize:12}}," ",De.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"2"),"\u82E5\u60A8\u9700\u8981\u4E2A\u6027\u5316\u7684\u6570\u636E\u4FDD\u5B58\u5468\u671F\u670D\u52A1\uFF0C\u6211\u4EEC\u53EF\u4EE5\u63D0\u4F9B\u76F8\u5173\u6280\u672F\u652F\u6301\uFF0C\u5E76\u6839\u636E\u60A8\u7684\u9700\u6C42\u6536\u53D6\u5B9A\u5236\u8D39\u7528\u3002")),De.createElement("div",{style:{textAlign:"center",marginTop:30}},De.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Ce,alt:"\u4E8C\u7EF4\u7801",width:160})))})},Me=(ze,$e="")=>{const{shixunsDetail:{detail:pt}}=(0,ye.getDvaApp)()._store.getState();if((pt==null?void 0:pt.public)===2||(pt==null?void 0:pt.public)===1||(pt==null?void 0:pt.shixun_status)===3){let Ge="";return(pt==null?void 0:pt.public)===2&&(Ge="\u5DF2\u516C\u5F00"),(pt==null?void 0:pt.public)===1&&(Ge="\u5F85\u5BA1\u6838"),(pt==null?void 0:pt.shixun_status)===3&&(Ge="\u5DF2\u5173\u95ED"),We.default.info({centered:!0,icon:De.createElement(Re.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:De.createElement("div",{className:"tc",style:{marginLeft:-38}},De.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},De.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",Ge,"\uFF0C",$e,"\u3002"),De.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),De.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Ce,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(pt==null?void 0:pt.shixun_status)===2?(We.default.confirm({centered:!0,icon:De.createElement(Re.Z,null),title:"\u63D0\u793A",content:De.createElement("div",null,De.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",$e,"\u3002"),De.createElement("br",null),De.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>{We.default.confirm({width:440,centered:!0,icon:De.createElement(Re.Z,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>Ke(void 0,null,function*(){(yield ze({type:"shixunsDetail/cancelRelease",payload:{id:pt==null?void 0:pt.identifier}})).status!==401&&(it.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),ze({type:"shixunsDetail/getShixunsDetail",payload:{id:pt==null?void 0:pt.identifier}}),ze({type:"practiceSetting/getCommonData",payload:{id:pt==null?void 0:pt.identifier}}))})})}}),!0):!1}},19080:function(fn,Jt,fe){"use strict";fe.d(Jt,{F:function(){return be},Z:function(){return it}});var ye=fe(92310),We=fe.n(ye);const Te=null;function it(_e,Re,Ce){return We()({[`${_e}-status-success`]:Re==="success",[`${_e}-status-warning`]:Re==="warning",[`${_e}-status-error`]:Re==="error",[`${_e}-status-validating`]:Re==="validating",[`${_e}-has-feedback`]:Ce})}const be=(_e,Re)=>Re||_e},93891:function(fn,Jt,fe){"use strict";var ye=fe(59301),We=fe(36355),Te=fe(64165);const it=be=>{const{componentName:_e}=be,{getPrefixCls:Re}=(0,ye.useContext)(We.E_),Ce=Re("empty");switch(_e){case"Table":case"List":return ye.createElement(Te.Z,{image:Te.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ye.createElement(Te.Z,{image:Te.Z.PRESENTED_IMAGE_SIMPLE,className:`${Ce}-small`});default:return ye.createElement(Te.Z,null)}};Jt.Z=it},28103:function(fn,Jt,fe){"use strict";fe.d(Jt,{Z:function(){return De}});var ye=fe(92310),We=fe.n(ye),Te=fe(59301),it=fe(36355),be=fe(17313),_e=fe(83116),Re=fe(37613);const Ce=Ke=>{const{componentCls:ft,sizePaddingEdgeHorizontal:Ve,colorSplit:rt,lineWidth:Xe,textPaddingInline:St,orientationMargin:Kt,verticalMarginInline:Je}=Ke;return{[ft]:Object.assign(Object.assign({},(0,be.Wf)(Ke)),{borderBlockStart:`${Xe}px solid ${rt}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:Je,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${Xe}px solid ${rt}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Ke.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${ft}-with-text`]:{display:"flex",alignItems:"center",margin:`${Ke.dividerHorizontalWithTextGutterMargin}px 0`,color:Ke.colorTextHeading,fontWeight:500,fontSize:Ke.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${rt}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${Xe}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${ft}-with-text-left`]:{"&::before":{width:`${Kt*100}%`},"&::after":{width:`${100-Kt*100}%`}},[`&-horizontal${ft}-with-text-right`]:{"&::before":{width:`${100-Kt*100}%`},"&::after":{width:`${Kt*100}%`}},[`${ft}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:St},"&-dashed":{background:"none",borderColor:rt,borderStyle:"dashed",borderWidth:`${Xe}px 0 0`},[`&-horizontal${ft}-with-text${ft}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${ft}-dashed`]:{borderInlineStartWidth:Xe,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${ft}-with-text`]:{color:Ke.colorText,fontWeight:"normal",fontSize:Ke.fontSize},[`&-horizontal${ft}-with-text-left${ft}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${ft}-inner-text`]:{paddingInlineStart:Ve}},[`&-horizontal${ft}-with-text-right${ft}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${ft}-inner-text`]:{paddingInlineEnd:Ve}}})}};var Ee=(0,_e.Z)("Divider",Ke=>{const ft=(0,Re.TS)(Ke,{dividerHorizontalWithTextGutterMargin:Ke.margin,dividerHorizontalGutterMargin:Ke.marginLG,sizePaddingEdgeHorizontal:0});return[Ce(ft)]},Ke=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Ke.marginXS})),Fe=function(Ke,ft){var Ve={};for(var rt in Ke)Object.prototype.hasOwnProperty.call(Ke,rt)&&ft.indexOf(rt)<0&&(Ve[rt]=Ke[rt]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,rt=Object.getOwnPropertySymbols(Ke);Xe{const{getPrefixCls:ft,direction:Ve,divider:rt}=Te.useContext(it.E_),{prefixCls:Xe,type:St="horizontal",orientation:Kt="center",orientationMargin:Je,className:dt,rootClassName:Ze,children:Me,dashed:ze,plain:$e,style:pt}=Ke,Ge=Fe(Ke,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Lt=ft("divider",Xe),[at,At]=Ee(Lt),tt=Kt.length>0?`-${Kt}`:Kt,Nt=!!Me,tn=Kt==="left"&&Je!=null,Xt=Kt==="right"&&Je!=null,qt=We()(Lt,rt==null?void 0:rt.className,At,`${Lt}-${St}`,{[`${Lt}-with-text`]:Nt,[`${Lt}-with-text${tt}`]:Nt,[`${Lt}-dashed`]:!!ze,[`${Lt}-plain`]:!!$e,[`${Lt}-rtl`]:Ve==="rtl",[`${Lt}-no-default-orientation-margin-left`]:tn,[`${Lt}-no-default-orientation-margin-right`]:Xt},dt,Ze),Ot=Te.useMemo(()=>typeof Je=="number"?Je:/^\d+$/.test(Je)?Number(Je):Je,[Je]),He=Object.assign(Object.assign({},tn&&{marginLeft:Ot}),Xt&&{marginRight:Ot});return at(Te.createElement("div",Object.assign({className:qt,style:Object.assign(Object.assign({},rt==null?void 0:rt.style),pt)},Ge,{role:"separator"}),Me&&St!=="vertical"&&Te.createElement("span",{className:`${Lt}-inner-text`,style:He},Me)))}},43428:function(fn,Jt,fe){"use strict";fe.d(Jt,{Z:function(){return wt}});var ye=fe(92310),We=fe.n(ye),Te=fe(85899),it=fe(72190),be=fe(43403),_e=fe(34280),Re=fe(59301),Ce=Re.createContext(null),Ee=Re.createContext({}),Fe=Ce,lt=fe(18642),De=fe(60499),Ke=fe(77900),ft=fe(10228),Ve=fe(26112),rt=fe(70425),Xe=function(Pt){var ve=Pt.prefixCls,le=Pt.className,oe=Pt.style,ce=Pt.children,de=Pt.containerRef,se=Pt.id,Le=Pt.onMouseEnter,qe=Pt.onMouseOver,vt=Pt.onMouseLeave,yt=Pt.onClick,_t=Pt.onKeyDown,Tt=Pt.onKeyUp,zt={onMouseEnter:Le,onMouseOver:qe,onMouseLeave:vt,onClick:yt,onKeyDown:_t,onKeyUp:Tt},Yt=Re.useContext(Ee),on=Yt.panel,ot=(0,rt.useComposeRef)(on,de);return Re.createElement(Re.Fragment,null,Re.createElement("div",(0,De.Z)({id:se,className:We()("".concat(ve,"-content"),le),style:(0,Te.Z)({},oe),"aria-modal":"true",role:"dialog",ref:ot},zt),ce))},St=Xe,Kt=fe(48736);function Je(Dt){return typeof Dt=="string"&&String(Number(Dt))===Dt?((0,Kt.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Dt)):Dt}function dt(Dt){warning(!("wrapperClassName"in Dt),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Dt.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Ze={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Me(Dt,Pt){var ve,le,oe,ce,de=Dt.prefixCls,se=Dt.open,Le=Dt.placement,qe=Dt.inline,vt=Dt.push,yt=Dt.forceRender,_t=Dt.autoFocus,Tt=Dt.keyboard,zt=Dt.rootClassName,Yt=Dt.rootStyle,on=Dt.zIndex,ot=Dt.className,Ut=Dt.id,Cn=Dt.style,nt=Dt.motion,mt=Dt.width,Bt=Dt.height,xn=Dt.children,bn=Dt.contentWrapperStyle,yn=Dt.mask,Nn=Dt.maskClosable,Vn=Dt.maskMotion,In=Dt.maskClassName,lr=Dt.maskStyle,ur=Dt.afterOpenChange,gn=Dt.onClose,yr=Dt.onMouseEnter,Pr=Dt.onMouseOver,zr=Dt.onMouseLeave,jr=Dt.onClick,Ar=Dt.onKeyDown,Xr=Dt.onKeyUp,fr=Re.useRef(),Gr=Re.useRef(),Yr=Re.useRef();Re.useImperativeHandle(Pt,function(){return fr.current});var Vr=function(Mt){var Wt=Mt.keyCode,an=Mt.shiftKey;switch(Wt){case ft.Z.TAB:{if(Wt===ft.Z.TAB){if(!an&&document.activeElement===Yr.current){var ln;(ln=Gr.current)===null||ln===void 0||ln.focus({preventScroll:!0})}else if(an&&document.activeElement===Gr.current){var pn;(pn=Yr.current)===null||pn===void 0||pn.focus({preventScroll:!0})}}break}case ft.Z.ESC:{gn&&Tt&&(Mt.stopPropagation(),gn(Mt));break}}};Re.useEffect(function(){if(se&&_t){var Ht;(Ht=fr.current)===null||Ht===void 0||Ht.focus({preventScroll:!0})}},[se]);var qr=Re.useState(!1),Hr=(0,it.Z)(qr,2),er=Hr[0],vr=Hr[1],Dn=Re.useContext(Fe),Bn;vt===!1?Bn={distance:0}:vt===!0?Bn={}:Bn=vt||{};var br=(ve=(le=(oe=Bn)===null||oe===void 0?void 0:oe.distance)!==null&&le!==void 0?le:Dn==null?void 0:Dn.pushDistance)!==null&&ve!==void 0?ve:180,st=Re.useMemo(function(){return{pushDistance:br,push:function(){vr(!0)},pull:function(){vr(!1)}}},[br]);Re.useEffect(function(){if(se){var Ht;Dn==null||(Ht=Dn.push)===null||Ht===void 0||Ht.call(Dn)}else{var Mt;Dn==null||(Mt=Dn.pull)===null||Mt===void 0||Mt.call(Dn)}},[se]),Re.useEffect(function(){return function(){var Ht;Dn==null||(Ht=Dn.pull)===null||Ht===void 0||Ht.call(Dn)}},[]);var Ae=yn&&Re.createElement(Ke.default,(0,De.Z)({key:"mask"},Vn,{visible:se}),function(Ht,Mt){var Wt=Ht.className,an=Ht.style;return Re.createElement("div",{className:We()("".concat(de,"-mask"),Wt,In),style:(0,Te.Z)((0,Te.Z)({},an),lr),onClick:Nn&&se?gn:void 0,ref:Mt})}),Ne=typeof nt=="function"?nt(Le):nt,Be={};if(er&&br)switch(Le){case"top":Be.transform="translateY(".concat(br,"px)");break;case"bottom":Be.transform="translateY(".concat(-br,"px)");break;case"left":Be.transform="translateX(".concat(br,"px)");break;default:Be.transform="translateX(".concat(-br,"px)");break}Le==="left"||Le==="right"?Be.width=Je(mt):Be.height=Je(Bt);var Ie={onMouseEnter:yr,onMouseOver:Pr,onMouseLeave:zr,onClick:jr,onKeyDown:Ar,onKeyUp:Xr},Ye=Re.createElement(Ke.default,(0,De.Z)({key:"panel"},Ne,{visible:se,forceRender:yt,onVisibleChanged:function(Mt){ur==null||ur(Mt)},removeOnLeave:!1,leavedClassName:"".concat(de,"-content-wrapper-hidden")}),function(Ht,Mt){var Wt=Ht.className,an=Ht.style;return Re.createElement("div",(0,De.Z)({className:We()("".concat(de,"-content-wrapper"),Wt),style:(0,Te.Z)((0,Te.Z)((0,Te.Z)({},Be),an),bn)},(0,Ve.Z)(Dt,{data:!0})),Re.createElement(St,(0,De.Z)({id:Ut,containerRef:Mt,prefixCls:de,className:ot,style:Cn},Ie),xn))}),ht=(0,Te.Z)({},Yt);return on&&(ht.zIndex=on),Re.createElement(Fe.Provider,{value:st},Re.createElement("div",{className:We()(de,"".concat(de,"-").concat(Le),zt,(ce={},(0,lt.Z)(ce,"".concat(de,"-open"),se),(0,lt.Z)(ce,"".concat(de,"-inline"),qe),ce)),style:ht,tabIndex:-1,ref:fr,onKeyDown:Vr},Ae,Re.createElement("div",{tabIndex:0,ref:Gr,style:Ze,"aria-hidden":"true","data-sentinel":"start"}),Ye,Re.createElement("div",{tabIndex:0,ref:Yr,style:Ze,"aria-hidden":"true","data-sentinel":"end"})))}var ze=Re.forwardRef(Me),$e=ze,pt=function(Pt){var ve=Pt.open,le=ve===void 0?!1:ve,oe=Pt.prefixCls,ce=oe===void 0?"rc-drawer":oe,de=Pt.placement,se=de===void 0?"right":de,Le=Pt.autoFocus,qe=Le===void 0?!0:Le,vt=Pt.keyboard,yt=vt===void 0?!0:vt,_t=Pt.width,Tt=_t===void 0?378:_t,zt=Pt.mask,Yt=zt===void 0?!0:zt,on=Pt.maskClosable,ot=on===void 0?!0:on,Ut=Pt.getContainer,Cn=Pt.forceRender,nt=Pt.afterOpenChange,mt=Pt.destroyOnClose,Bt=Pt.onMouseEnter,xn=Pt.onMouseOver,bn=Pt.onMouseLeave,yn=Pt.onClick,Nn=Pt.onKeyDown,Vn=Pt.onKeyUp,In=Pt.panelRef,lr=Re.useState(!1),ur=(0,it.Z)(lr,2),gn=ur[0],yr=ur[1],Pr=Re.useState(!1),zr=(0,it.Z)(Pr,2),jr=zr[0],Ar=zr[1];(0,_e.Z)(function(){Ar(!0)},[]);var Xr=jr?le:!1,fr=Re.useRef(),Gr=Re.useRef();(0,_e.Z)(function(){Xr&&(Gr.current=document.activeElement)},[Xr]);var Yr=function(vr){var Dn;if(yr(vr),nt==null||nt(vr),!vr&&Gr.current&&!((Dn=fr.current)!==null&&Dn!==void 0&&Dn.contains(Gr.current))){var Bn;(Bn=Gr.current)===null||Bn===void 0||Bn.focus({preventScroll:!0})}},Vr=Re.useMemo(function(){return{panel:In}},[In]);if(!Cn&&!gn&&!Xr&&mt)return null;var qr={onMouseEnter:Bt,onMouseOver:xn,onMouseLeave:bn,onClick:yn,onKeyDown:Nn,onKeyUp:Vn},Hr=(0,Te.Z)((0,Te.Z)({},Pt),{},{open:Xr,prefixCls:ce,placement:se,autoFocus:qe,keyboard:yt,width:Tt,mask:Yt,maskClosable:ot,inline:Ut===!1,afterOpenChange:Yr,ref:fr},qr);return Re.createElement(Ee.Provider,{value:Vr},Re.createElement(be.Z,{open:Xr||Cn||gn,autoDestroy:!1,getContainer:Ut,autoLock:Yt&&(Xr||gn)},Re.createElement($e,Hr)))},Ge=pt,Lt=Ge,at=fe(62892),At=fe(36355),tt=fe(32441),Nt=fe(47729),Xt=Dt=>{const{prefixCls:Pt,title:ve,footer:le,extra:oe,closeIcon:ce,closable:de,onClose:se,headerStyle:Le,drawerStyle:qe,bodyStyle:vt,footerStyle:yt,children:_t}=Dt,Tt=Re.useCallback(Ut=>Re.createElement("button",{type:"button",onClick:se,"aria-label":"Close",className:`${Pt}-close`},Ut),[se]),[zt,Yt]=(0,Nt.Z)(de,ce,Tt,void 0,!0),on=Re.useMemo(()=>!ve&&!zt?null:Re.createElement("div",{style:Le,className:We()(`${Pt}-header`,{[`${Pt}-header-close-only`]:zt&&!ve&&!oe})},Re.createElement("div",{className:`${Pt}-header-title`},Yt,ve&&Re.createElement("div",{className:`${Pt}-title`},ve)),oe&&Re.createElement("div",{className:`${Pt}-extra`},oe)),[zt,Yt,oe,Le,Pt,ve]),ot=Re.useMemo(()=>{if(!le)return null;const Ut=`${Pt}-footer`;return Re.createElement("div",{className:Ut,style:yt},le)},[le,yt,Pt]);return Re.createElement("div",{className:`${Pt}-wrapper-body`,style:qe},on,Re.createElement("div",{className:`${Pt}-body`,style:vt},_t),ot)},qt=fe(33234),Ot=fe(83116),He=fe(37613),gt=Dt=>{const{componentCls:Pt,motionDurationSlow:ve}=Dt,le={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${ve}`}}};return{[Pt]:{[`${Pt}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${ve}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${Pt}-panel-motion`]:{"&-left":[le,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[le,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[le,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[le,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const nn=Dt=>{const{componentCls:Pt,zIndexPopup:ve,colorBgMask:le,colorBgElevated:oe,motionDurationSlow:ce,motionDurationMid:de,padding:se,paddingLG:Le,fontSizeLG:qe,lineHeightLG:vt,lineWidth:yt,lineType:_t,colorSplit:Tt,marginSM:zt,colorIcon:Yt,colorIconHover:on,colorText:ot,fontWeightStrong:Ut,footerPaddingBlock:Cn,footerPaddingInline:nt}=Dt,mt=`${Pt}-content-wrapper`;return{[Pt]:{position:"fixed",inset:0,zIndex:ve,pointerEvents:"none","&-pure":{position:"relative",background:oe,[`&${Pt}-left`]:{boxShadow:Dt.boxShadowDrawerLeft},[`&${Pt}-right`]:{boxShadow:Dt.boxShadowDrawerRight},[`&${Pt}-top`]:{boxShadow:Dt.boxShadowDrawerUp},[`&${Pt}-bottom`]:{boxShadow:Dt.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${Pt}-mask`]:{position:"absolute",inset:0,zIndex:ve,background:le,pointerEvents:"auto"},[mt]:{position:"absolute",zIndex:ve,maxWidth:"100vw",transition:`all ${ce}`,"&-hidden":{display:"none"}},[`&-left > ${mt}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Dt.boxShadowDrawerLeft},[`&-right > ${mt}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Dt.boxShadowDrawerRight},[`&-top > ${mt}`]:{top:0,insetInline:0,boxShadow:Dt.boxShadowDrawerUp},[`&-bottom > ${mt}`]:{bottom:0,insetInline:0,boxShadow:Dt.boxShadowDrawerDown},[`${Pt}-content`]:{width:"100%",height:"100%",overflow:"auto",background:oe,pointerEvents:"auto"},[`${Pt}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${Pt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${se}px ${Le}px`,fontSize:qe,lineHeight:vt,borderBottom:`${yt}px ${_t} ${Tt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${Pt}-extra`]:{flex:"none"},[`${Pt}-close`]:{display:"inline-block",marginInlineEnd:zt,color:Yt,fontWeight:Ut,fontSize:qe,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${de}`,textRendering:"auto","&:focus, &:hover":{color:on,textDecoration:"none"}},[`${Pt}-title`]:{flex:1,margin:0,color:ot,fontWeight:Dt.fontWeightStrong,fontSize:qe,lineHeight:vt},[`${Pt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Le,overflow:"auto"},[`${Pt}-footer`]:{flexShrink:0,padding:`${Cn}px ${nt}px`,borderTop:`${yt}px ${_t} ${Tt}`},"&-rtl":{direction:"rtl"}}}};var Vt=(0,Ot.Z)("Drawer",Dt=>{const Pt=(0,He.TS)(Dt,{});return[nn(Pt),gt(Pt)]},Dt=>({zIndexPopup:Dt.zIndexPopupBase,footerPaddingBlock:Dt.paddingXS,footerPaddingInline:Dt.padding})),Qe=fe(11575),Ue=function(Dt,Pt){var ve={};for(var le in Dt)Object.prototype.hasOwnProperty.call(Dt,le)&&Pt.indexOf(le)<0&&(ve[le]=Dt[le]);if(Dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,le=Object.getOwnPropertySymbols(Dt);oe{var Pt;const{rootClassName:ve,width:le,height:oe,size:ce="default",mask:de=!0,push:se=dn,open:Le,afterOpenChange:qe,onClose:vt,prefixCls:yt,getContainer:_t,style:Tt,className:zt,visible:Yt,afterVisibleChange:on}=Dt,ot=Ue(Dt,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:Ut,getPrefixCls:Cn,direction:nt,drawer:mt}=Re.useContext(At.E_),Bt=Cn("drawer",yt),[xn,bn]=Vt(Bt),yn=_t===void 0&&Ut?()=>Ut(document.body):_t,Nn=We()({"no-mask":!de,[`${Bt}-rtl`]:nt==="rtl"},ve,bn),Vn=Re.useMemo(()=>le!=null?le:ce==="large"?736:378,[le,ce]),In=Re.useMemo(()=>oe!=null?oe:ce==="large"?736:378,[oe,ce]),lr={motionName:(0,at.m)(Bt,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},ur=yr=>({motionName:(0,at.m)(Bt,`panel-motion-${yr}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),gn=(0,Qe.H)();return xn(Re.createElement(qt.BR,null,Re.createElement(tt.Ux,{status:!0,override:!0},Re.createElement(Lt,Object.assign({prefixCls:Bt,onClose:vt,maskMotion:lr,motion:ur},ot,{open:Le!=null?Le:Yt,mask:de,push:se,width:Vn,height:In,style:Object.assign(Object.assign({},mt==null?void 0:mt.style),Tt),className:We()(mt==null?void 0:mt.className,zt),rootClassName:Nn,getContainer:yn,afterOpenChange:qe!=null?qe:on,panelRef:gn}),Re.createElement(Xt,Object.assign({prefixCls:Bt},ot,{onClose:vt}))))))},$t=Dt=>{const{prefixCls:Pt,style:ve,className:le,placement:oe="right"}=Dt,ce=Ue(Dt,["prefixCls","style","className","placement"]),{getPrefixCls:de}=Re.useContext(At.E_),se=de("drawer",Pt),[Le,qe]=Vt(se),vt=We()(se,`${se}-pure`,`${se}-${oe}`,qe,le);return Le(Re.createElement("div",{className:vt,style:ve},Re.createElement(Xt,Object.assign({prefixCls:se},ce))))};Et._InternalPanelDoNotUseOrYouWillBeFired=$t;var wt=Et},64165:function(fn,Jt,fe){"use strict";fe.d(Jt,{Z:function(){return Je}});var ye=fe(92310),We=fe.n(ye),Te=fe(59301),it=fe(36355),be=fe(9763),_e=fe(64993),Re=fe(88088),Ee=()=>{const[,dt]=(0,Re.Z)(),Me=new _e.C(dt.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return Te.createElement("svg",{style:Me,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},Te.createElement("g",{fill:"none",fillRule:"evenodd"},Te.createElement("g",{transform:"translate(24 31.67)"},Te.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),Te.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"}),Te.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)"}),Te.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"}),Te.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"})),Te.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"}),Te.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},Te.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),Te.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},lt=()=>{const[,dt]=(0,Re.Z)(),{colorFill:Ze,colorFillTertiary:Me,colorFillQuaternary:ze,colorBgContainer:$e}=dt,{borderColor:pt,shadowColor:Ge,contentColor:Lt}=(0,Te.useMemo)(()=>({borderColor:new _e.C(Ze).onBackground($e).toHexShortString(),shadowColor:new _e.C(Me).onBackground($e).toHexShortString(),contentColor:new _e.C(ze).onBackground($e).toHexShortString()}),[Ze,Me,ze,$e]);return Te.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Te.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Te.createElement("ellipse",{fill:Ge,cx:"32",cy:"33",rx:"32",ry:"7"}),Te.createElement("g",{fillRule:"nonzero",stroke:pt},Te.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"}),Te.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:Lt}))))},De=fe(83116),Ke=fe(37613);const ft=dt=>{const{componentCls:Ze,margin:Me,marginXS:ze,marginXL:$e,fontSize:pt,lineHeight:Ge}=dt;return{[Ze]:{marginInline:ze,fontSize:pt,lineHeight:Ge,textAlign:"center",[`${Ze}-image`]:{height:dt.emptyImgHeight,marginBottom:ze,opacity:dt.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Ze}-description`]:{color:dt.colorText},[`${Ze}-footer`]:{marginTop:Me},"&-normal":{marginBlock:$e,color:dt.colorTextDisabled,[`${Ze}-description`]:{color:dt.colorTextDisabled},[`${Ze}-image`]:{height:dt.emptyImgHeightMD}},"&-small":{marginBlock:ze,color:dt.colorTextDisabled,[`${Ze}-image`]:{height:dt.emptyImgHeightSM}}}}};var Ve=(0,De.Z)("Empty",dt=>{const{componentCls:Ze,controlHeightLG:Me}=dt,ze=(0,Ke.TS)(dt,{emptyImgCls:`${Ze}-img`,emptyImgHeight:Me*2.5,emptyImgHeightMD:Me,emptyImgHeightSM:Me*.875});return[ft(ze)]}),rt=function(dt,Ze){var Me={};for(var ze in dt)Object.prototype.hasOwnProperty.call(dt,ze)&&Ze.indexOf(ze)<0&&(Me[ze]=dt[ze]);if(dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,ze=Object.getOwnPropertySymbols(dt);$e{var{className:Ze,rootClassName:Me,prefixCls:ze,image:$e=Xe,description:pt,children:Ge,imageStyle:Lt,style:at}=dt,At=rt(dt,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:tt,direction:Nt,empty:tn}=Te.useContext(it.E_),Xt=tt("empty",ze),[qt,Ot]=Ve(Xt),[He]=(0,be.Z)("Empty"),xe=typeof pt!="undefined"?pt:He==null?void 0:He.description,gt=typeof xe=="string"?xe:"empty";let nn=null;return typeof $e=="string"?nn=Te.createElement("img",{alt:gt,src:$e}):nn=$e,qt(Te.createElement("div",Object.assign({className:We()(Ot,Xt,tn==null?void 0:tn.className,{[`${Xt}-normal`]:$e===St,[`${Xt}-rtl`]:Nt==="rtl"},Ze,Me),style:Object.assign(Object.assign({},tn==null?void 0:tn.style),at)},At),Te.createElement("div",{className:`${Xt}-image`,style:Lt},nn),xe&&Te.createElement("div",{className:`${Xt}-description`},xe),Ge&&Te.createElement("div",{className:`${Xt}-footer`},Ge)))};Kt.PRESENTED_IMAGE_DEFAULT=Xe,Kt.PRESENTED_IMAGE_SIMPLE=St;var Je=Kt},78241:function(fn,Jt,fe){"use strict";fe.d(Jt,{default:function(){return br}});var ye=fe(77654),We=fe(92310),Te=fe.n(We),it=fe(77900),be=fe(59301),_e=fe(62892),Re=fe(32441);function Ce(st){const[Ae,Ne]=be.useState(st);return be.useEffect(()=>{const Be=setTimeout(()=>{Ne(st)},st.length?0:10);return()=>{clearTimeout(Be)}},[st]),Ae}var Ee=fe(17313),Fe=fe(29878),lt=fe(8378),De=fe(37613),Ke=fe(83116),Ve=st=>{const{componentCls:Ae}=st,Ne=`${Ae}-show-help`,Be=`${Ae}-show-help-item`;return{[Ne]:{transition:`opacity ${st.motionDurationSlow} ${st.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Be]:{overflow:"hidden",transition:`height ${st.motionDurationSlow} ${st.motionEaseInOut}, opacity ${st.motionDurationSlow} ${st.motionEaseInOut}, transform ${st.motionDurationSlow} ${st.motionEaseInOut} !important`,[`&${Be}-appear, &${Be}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Be}-leave-active`]:{transform:"translateY(-5px)"}}}}};const rt=st=>({legend:{display:"block",width:"100%",marginBottom:st.marginLG,padding:0,color:st.colorTextDescription,fontSize:st.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${st.lineWidth}px ${st.lineType} ${st.colorBorder}`},label:{fontSize:st.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 ${st.controlOutlineWidth}px ${st.controlOutline}`},output:{display:"block",paddingTop:15,color:st.colorText,fontSize:st.fontSize,lineHeight:st.lineHeight}}),Xe=(st,Ae)=>{const{formItemCls:Ne}=st;return{[Ne]:{[`${Ne}-label > label`]:{height:Ae},[`${Ne}-control-input`]:{minHeight:Ae}}}},St=st=>{const{componentCls:Ae}=st;return{[st.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Ee.Wf)(st)),rt(st)),{[`${Ae}-text`]:{display:"inline-block",paddingInlineEnd:st.paddingSM},"&-small":Object.assign({},Xe(st,st.controlHeightSM)),"&-large":Object.assign({},Xe(st,st.controlHeightLG))})}},Kt=st=>{const{formItemCls:Ae,iconCls:Ne,componentCls:Be,rootPrefixCls:Ie,labelRequiredMarkColor:Ye,labelColor:ht,labelFontSize:Ht,labelHeight:Mt,labelColonMarginInlineStart:Wt,labelColonMarginInlineEnd:an,itemMarginBottom:ln}=st;return{[Ae]:Object.assign(Object.assign({},(0,Ee.Wf)(st)),{marginBottom:ln,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, &-hidden.${Ie}-row`]:{display:"none"},"&-has-warning":{[`${Ae}-split`]:{color:st.colorError}},"&-has-error":{[`${Ae}-split`]:{color:st.colorWarning}},[`${Ae}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${st.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Mt,color:ht,fontSize:Ht,[`> ${Ne}`]:{fontSize:st.fontSize,verticalAlign:"top"},[`&${Ae}-required:not(${Ae}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:st.marginXXS,color:Ye,fontSize:st.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Be}-hide-required-mark &`]:{display:"none"}},[`${Ae}-optional`]:{display:"inline-block",marginInlineStart:st.marginXXS,color:st.colorTextDescription,[`${Be}-hide-required-mark &`]:{display:"none"}},[`${Ae}-tooltip`]:{color:st.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:st.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Wt,marginInlineEnd:an},[`&${Ae}-no-colon::after`]:{content:'"\\a0"'}}},[`${Ae}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Ie}-col-'"]):not([class*="' ${Ie}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:st.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Ae]:{"&-explain, &-extra":{clear:"both",color:st.colorTextDescription,fontSize:st.fontSize,lineHeight:st.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:st.controlHeightSM,transition:`color ${st.motionDurationMid} ${st.motionEaseOut}`},"&-explain":{"&-error":{color:st.colorError},"&-warning":{color:st.colorWarning}}},[`&-with-help ${Ae}-explain`]:{height:"auto",opacity:1},[`${Ae}-feedback-icon`]:{fontSize:st.fontSize,textAlign:"center",visibility:"visible",animationName:Fe.kr,animationDuration:st.motionDurationMid,animationTimingFunction:st.motionEaseOutBack,pointerEvents:"none","&-success":{color:st.colorSuccess},"&-error":{color:st.colorError},"&-warning":{color:st.colorWarning},"&-validating":{color:st.colorPrimary}}})}},Je=st=>{const{componentCls:Ae,formItemCls:Ne}=st;return{[`${Ae}-horizontal`]:{[`${Ne}-label`]:{flexGrow:0},[`${Ne}-control`]:{flex:"1 1 0",minWidth:0},[`${Ne}-label[class$='-24'], ${Ne}-label[class*='-24 ']`]:{[`& + ${Ne}-control`]:{minWidth:"unset"}}}}},dt=st=>{const{componentCls:Ae,formItemCls:Ne}=st;return{[`${Ae}-inline`]:{display:"flex",flexWrap:"wrap",[Ne]:{flex:"none",marginInlineEnd:st.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Ne}-label, > ${Ne}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Ne}-label`]:{flex:"none"},[`${Ae}-text`]:{display:"inline-block"},[`${Ne}-has-feedback`]:{display:"inline-block"}}}}},Ze=st=>({padding:st.verticalLabelPadding,margin:st.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Me=st=>{const{componentCls:Ae,formItemCls:Ne,rootPrefixCls:Be}=st;return{[`${Ne} ${Ne}-label`]:Ze(st),[Ae]:{[Ne]:{flexWrap:"wrap",[`${Ne}-label, ${Ne}-control`]:{[`&:not([class*=" ${Be}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},ze=st=>{const{componentCls:Ae,formItemCls:Ne,rootPrefixCls:Be}=st;return{[`${Ae}-vertical`]:{[Ne]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${Ae}-item-control`]:{width:"100%"}}},[`${Ae}-vertical ${Ne}-label, .${Be}-col-24${Ne}-label, .${Be}-col-xl-24${Ne}-label`]:Ze(st),[`@media (max-width: ${st.screenXSMax}px)`]:[Me(st),{[Ae]:{[`.${Be}-col-xs-24${Ne}-label`]:Ze(st)}}],[`@media (max-width: ${st.screenSMMax}px)`]:{[Ae]:{[`.${Be}-col-sm-24${Ne}-label`]:Ze(st)}},[`@media (max-width: ${st.screenMDMax}px)`]:{[Ae]:{[`.${Be}-col-md-24${Ne}-label`]:Ze(st)}},[`@media (max-width: ${st.screenLGMax}px)`]:{[Ae]:{[`.${Be}-col-lg-24${Ne}-label`]:Ze(st)}}}},$e=(st,Ae)=>(0,De.TS)(st,{formItemCls:`${st.componentCls}-item`,rootPrefixCls:Ae});var pt=(0,Ke.Z)("Form",(st,Ae)=>{let{rootPrefixCls:Ne}=Ae;const Be=$e(st,Ne);return[St(Be),Kt(Be),Ve(Be),Je(Be),dt(Be),ze(Be),(0,lt.Z)(Be),Fe.kr]},st=>({labelRequiredMarkColor:st.colorError,labelColor:st.colorTextHeading,labelFontSize:st.fontSize,labelHeight:st.controlHeight,labelColonMarginInlineStart:st.marginXXS/2,labelColonMarginInlineEnd:st.marginXS,itemMarginBottom:st.marginLG,verticalLabelPadding:`0 0 ${st.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Ge=[];function Lt(st,Ae,Ne){let Be=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof st=="string"?st:`${Ae}-${Be}`,error:st,errorStatus:Ne}}var At=st=>{let{help:Ae,helpStatus:Ne,errors:Be=Ge,warnings:Ie=Ge,className:Ye,fieldId:ht,onVisibleChanged:Ht}=st;const{prefixCls:Mt}=be.useContext(Re.Rk),Wt=`${Mt}-item-explain`,[,an]=pt(Mt),ln=(0,be.useMemo)(()=>(0,_e.Z)(Mt),[Mt]),pn=Ce(Be),Ct=Ce(Ie),rn=be.useMemo(()=>Ae!=null?[Lt(Ae,"help",Ne)]:[].concat((0,ye.Z)(pn.map((Mn,Pn)=>Lt(Mn,"error","error",Pn))),(0,ye.Z)(Ct.map((Mn,Pn)=>Lt(Mn,"warning","warning",Pn)))),[Ae,Ne,pn,Ct]),On={};return ht&&(On.id=`${ht}_help`),be.createElement(it.default,{motionDeadline:ln.motionDeadline,motionName:`${Mt}-show-help`,visible:!!rn.length,onVisibleChanged:Ht},Mn=>{const{className:Pn,style:Ln}=Mn;return be.createElement("div",Object.assign({},On,{className:Te()(Wt,Pn,Ye,an),style:Ln,role:"alert"}),be.createElement(it.CSSMotionList,Object.assign({keys:rn},(0,_e.Z)(Mt),{motionName:`${Mt}-show-help-item`,component:!1}),tr=>{const{key:hn,error:qn,errorStatus:et,className:It,style:Ft}=tr;return be.createElement("div",{key:hn,className:Te()(It,{[`${Wt}-${et}`]:et}),style:Ft},qn)}))})},tt=fe(95013),Nt=fe(36355),tn=fe(1684),Xt=fe(52946),qt=fe(19716),Ot=fe(16722);const He=["parentNode"],xe="form_item";function gt(st){return st===void 0||st===!1?[]:Array.isArray(st)?st:[st]}function nn(st,Ae){if(!st.length)return;const Ne=st.join("_");return Ae?`${Ae}_${Ne}`:He.includes(Ne)?`${xe}_${Ne}`:Ne}function Vt(st,Ae,Ne,Be,Ie,Ye){let ht=Be;return Ye!==void 0?ht=Ye:Ne.validating?ht="validating":st.length?ht="error":Ae.length?ht="warning":(Ne.touched||Ie&&Ne.validated)&&(ht="success"),ht}function Qe(st){return gt(st).join("_")}function Ue(st){const[Ae]=(0,tt.useForm)(),Ne=be.useRef({}),Be=be.useMemo(()=>st!=null?st:Object.assign(Object.assign({},Ae),{__INTERNAL__:{itemRef:Ie=>Ye=>{const ht=Qe(Ie);Ye?Ne.current[ht]=Ye:delete Ne.current[ht]}},scrollToField:function(Ie){let Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const ht=gt(Ie),Ht=nn(ht,Be.__INTERNAL__.name),Mt=Ht?document.getElementById(Ht):null;Mt&&(0,Ot.Z)(Mt,Object.assign({scrollMode:"if-needed",block:"nearest"},Ye))},getFieldInstance:Ie=>{const Ye=Qe(Ie);return Ne.current[Ye]}}),[st,Ae]);return[Be]}var kt=fe(28726),dn=function(st,Ae){var Ne={};for(var Be in st)Object.prototype.hasOwnProperty.call(st,Be)&&Ae.indexOf(Be)<0&&(Ne[Be]=st[Be]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,Be=Object.getOwnPropertySymbols(st);Ie{const Ne=be.useContext(tn.Z),{getPrefixCls:Be,direction:Ie,form:Ye}=be.useContext(Nt.E_),{prefixCls:ht,className:Ht,rootClassName:Mt,size:Wt,disabled:an=Ne,form:ln,colon:pn,labelAlign:Ct,labelWrap:rn,labelCol:On,wrapperCol:Mn,hideRequiredMark:Pn,layout:Ln="horizontal",scrollToFirstError:tr,requiredMark:hn,onFinishFailed:qn,name:et,style:It,feedbackIcons:Ft}=st,Qt=dn(st,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Rt=(0,qt.Z)(Wt),jt=be.useContext(kt.Z),Zt=(0,be.useMemo)(()=>hn!==void 0?hn:Ye&&Ye.requiredMark!==void 0?Ye.requiredMark:!Pn,[Pn,hn,Ye]),cn=pn!=null?pn:Ye==null?void 0:Ye.colon,mn=Be("form",ht),[En,Un]=pt(mn),ar=Te()(mn,`${mn}-${Ln}`,{[`${mn}-hide-required-mark`]:Zt===!1,[`${mn}-rtl`]:Ie==="rtl",[`${mn}-${Rt}`]:Rt},Un,Ye==null?void 0:Ye.className,Ht,Mt),[xr]=Ue(ln),{__INTERNAL__:or}=xr;or.name=et;const $n=(0,be.useMemo)(()=>({name:et,labelAlign:Ct,labelCol:On,labelWrap:rn,wrapperCol:Mn,vertical:Ln==="vertical",colon:cn,requiredMark:Zt,itemRef:or.itemRef,form:xr,feedbackIcons:Ft}),[et,Ct,On,Mn,Ln,cn,Zt,xr,Ft]);be.useImperativeHandle(Ae,()=>xr);const wr=(mr,Wn)=>{if(mr){let nr={block:"nearest"};typeof mr=="object"&&(nr=mr),xr.scrollToField(Wn,nr)}},pr=mr=>{if(qn==null||qn(mr),mr.errorFields.length){const Wn=mr.errorFields[0].name;if(tr!==void 0){wr(tr,Wn);return}Ye&&Ye.scrollToFirstError!==void 0&&wr(Ye.scrollToFirstError,Wn)}};return En(be.createElement(tn.n,{disabled:an},be.createElement(Xt.q,{size:Rt},be.createElement(Re.RV,Object.assign({},{validateMessages:jt}),be.createElement(Re.q3.Provider,{value:$n},be.createElement(tt.default,Object.assign({id:et},Qt,{name:et,onFinishFailed:pr,form:xr,style:Object.assign(Object.assign({},Ye==null?void 0:Ye.style),It),className:ar})))))))};var wt=be.forwardRef(Et),Dt=fe(41799),Pt=fe(8654),ve=fe(92343),le=fe(11592);function oe(st){if(typeof st=="function")return st;const Ae=(0,le.Z)(st);return Ae.length<=1?Ae[0]:Ae}const ce=()=>{const{status:st,errors:Ae=[],warnings:Ne=[]}=(0,be.useContext)(Re.aM);return{status:st,errors:Ae,warnings:Ne}};ce.Context=Re.aM;var de=ce,se=fe(16089);function Le(st){const[Ae,Ne]=be.useState(st),Be=(0,be.useRef)(null),Ie=(0,be.useRef)([]),Ye=(0,be.useRef)(!1);be.useEffect(()=>(Ye.current=!1,()=>{Ye.current=!0,se.Z.cancel(Be.current),Be.current=null}),[]);function ht(Ht){Ye.current||(Be.current===null&&(Ie.current=[],Be.current=(0,se.Z)(()=>{Be.current=null,Ne(Mt=>{let Wt=Mt;return Ie.current.forEach(an=>{Wt=an(Wt)}),Wt})})),Ie.current.push(Ht))}return[Ae,ht]}function qe(){const{itemRef:st}=be.useContext(Re.q3),Ae=be.useRef({});function Ne(Be,Ie){const Ye=Ie&&typeof Ie=="object"&&Ie.ref,ht=Be.join("_");return(Ae.current.name!==ht||Ae.current.originRef!==Ye)&&(Ae.current.name=ht,Ae.current.originRef=Ye,Ae.current.ref=(0,Pt.sQ)(st(Be),Ye)),Ae.current.ref}return Ne}var vt=fe(29194),yt=fe(34280),_t=fe(2738),Tt=fe(27382),zt=fe(37028);const Yt=st=>{const{formItemCls:Ae}=st;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Ae}-control`]:{display:"flex"}}}};var on=(0,Ke.b)(["Form","item-item"],(st,Ae)=>{let{rootPrefixCls:Ne}=Ae;const Be=$e(st,Ne);return[Yt(Be)]}),Ut=st=>{const{prefixCls:Ae,status:Ne,wrapperCol:Be,children:Ie,errors:Ye,warnings:ht,_internalItemRender:Ht,extra:Mt,help:Wt,fieldId:an,marginBottom:ln,onErrorVisibleChanged:pn}=st,Ct=`${Ae}-item`,rn=be.useContext(Re.q3),On=Be||rn.wrapperCol||{},Mn=Te()(`${Ct}-control`,On.className),Pn=be.useMemo(()=>Object.assign({},rn),[rn]);delete Pn.labelCol,delete Pn.wrapperCol;const Ln=be.createElement("div",{className:`${Ct}-control-input`},be.createElement("div",{className:`${Ct}-control-input-content`},Ie)),tr=be.useMemo(()=>({prefixCls:Ae,status:Ne}),[Ae,Ne]),hn=ln!==null||Ye.length||ht.length?be.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},be.createElement(Re.Rk.Provider,{value:tr},be.createElement(At,{fieldId:an,errors:Ye,warnings:ht,help:Wt,helpStatus:Ne,className:`${Ct}-explain-connected`,onVisibleChanged:pn})),!!ln&&be.createElement("div",{style:{width:0,height:ln}})):null,qn={};an&&(qn.id=`${an}_extra`);const et=Mt?be.createElement("div",Object.assign({},qn,{className:`${Ct}-extra`}),Mt):null,It=Ht&&Ht.mark==="pro_table_render"&&Ht.render?Ht.render(st,{input:Ln,errorList:hn,extra:et}):be.createElement(be.Fragment,null,Ln,hn,et);return be.createElement(Re.q3.Provider,{value:Pn},be.createElement(zt.Z,Object.assign({},On,{className:Mn}),It),be.createElement(on,{prefixCls:Ae}))},Cn=fe(61485),nt=fe(31724),mt=fe(9763),Bt=fe(6848),xn=function(st,Ae){var Ne={};for(var Be in st)Object.prototype.hasOwnProperty.call(st,Be)&&Ae.indexOf(Be)<0&&(Ne[Be]=st[Be]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,Be=Object.getOwnPropertySymbols(st);Ie{let{prefixCls:Ae,label:Ne,htmlFor:Be,labelCol:Ie,labelAlign:Ye,colon:ht,required:Ht,requiredMark:Mt,tooltip:Wt}=st;var an;const[ln]=(0,mt.Z)("Form"),{vertical:pn,labelAlign:Ct,labelCol:rn,labelWrap:On,colon:Mn}=be.useContext(Re.q3);if(!Ne)return null;const Pn=Ie||rn||{},Ln=Ye||Ct,tr=`${Ae}-item-label`,hn=Te()(tr,Ln==="left"&&`${tr}-left`,Pn.className,{[`${tr}-wrap`]:!!On});let qn=Ne;const et=ht===!0||Mn!==!1&&ht!==!1;et&&!pn&&typeof Ne=="string"&&Ne.trim()!==""&&(qn=Ne.replace(/[:|:]\s*$/,""));const Ft=bn(Wt);if(Ft){const{icon:Zt=be.createElement(Cn.Z,null)}=Ft,cn=xn(Ft,["icon"]),mn=be.createElement(Bt.Z,Object.assign({},cn),be.cloneElement(Zt,{className:`${Ae}-item-tooltip`,title:""}));qn=be.createElement(be.Fragment,null,qn,mn)}const Qt=Mt==="optional",Rt=typeof Mt=="function";Rt?qn=Mt(qn,{required:!!Ht}):Qt&&!Ht&&(qn=be.createElement(be.Fragment,null,qn,be.createElement("span",{className:`${Ae}-item-optional`,title:""},(ln==null?void 0:ln.optional)||((an=nt.Z.Form)===null||an===void 0?void 0:an.optional))));const jt=Te()({[`${Ae}-item-required`]:Ht,[`${Ae}-item-required-mark-optional`]:Qt||Rt,[`${Ae}-item-no-colon`]:!et});return be.createElement(zt.Z,Object.assign({},Pn,{className:hn}),be.createElement("label",{htmlFor:Be,className:jt,title:typeof Ne=="string"?Ne:""},qn))},Vn=fe(29679),In=fe(19248),lr=fe(96512),ur=fe(58617);const gn={success:Vn.Z,warning:lr.Z,error:In.Z,validating:ur.Z};function yr(st){let{children:Ae,errors:Ne,warnings:Be,hasFeedback:Ie,validateStatus:Ye,prefixCls:ht,meta:Ht,noStyle:Mt}=st;const Wt=`${ht}-item`,{feedbackIcons:an}=be.useContext(Re.q3),ln=Vt(Ne,Be,Ht,null,!!Ie,Ye),{isFormItemInput:pn,status:Ct}=be.useContext(Re.aM),rn=be.useMemo(()=>{var On;let Mn;if(Ie){const tr=Ie!==!0&&Ie.icons||an,hn=ln&&((On=tr==null?void 0:tr({status:ln,errors:Ne,warnings:Be}))===null||On===void 0?void 0:On[ln]),qn=ln&&gn[ln];Mn=hn!==!1&&qn?be.createElement("span",{className:Te()(`${Wt}-feedback-icon`,`${Wt}-feedback-icon-${ln}`)},hn||be.createElement(qn,null)):null}let Pn=!0,Ln=ln||"";return Mt&&(Pn=pn,Ln=(ln!=null?ln:Ct)||""),{status:Ln,errors:Ne,warnings:Be,hasFeedback:!!Ie,feedbackIcon:Mn,isFormItemInput:Pn}},[ln,Ie,Mt,pn,Ct]);return be.createElement(Re.aM.Provider,{value:rn},Ae)}var Pr=function(st,Ae){var Ne={};for(var Be in st)Object.prototype.hasOwnProperty.call(st,Be)&&Ae.indexOf(Be)<0&&(Ne[Be]=st[Be]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,Be=Object.getOwnPropertySymbols(st);Ie{if(Ft&&hn.current){const Un=getComputedStyle(hn.current);jt(parseInt(Un.marginBottom,10))}},[Ft,Qt]);const Zt=Un=>{Un||jt(null)},mn=function(){let Un=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const ar=Un?qn:Wt.errors,xr=Un?et:Wt.warnings;return Vt(ar,xr,Wt,"",!!an,Mt)}(),En=Te()(Ln,Ne,Be,{[`${Ln}-with-help`]:It||qn.length||et.length,[`${Ln}-has-feedback`]:mn&&an,[`${Ln}-has-success`]:mn==="success",[`${Ln}-has-warning`]:mn==="warning",[`${Ln}-has-error`]:mn==="error",[`${Ln}-is-validating`]:mn==="validating",[`${Ln}-hidden`]:ln});return be.createElement("div",{className:En,style:Ie,ref:hn},be.createElement(Tt.Z,Object.assign({className:`${Ln}-row`},(0,_t.Z)(Pn,["_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(Nn,Object.assign({htmlFor:Ct},st,{requiredMark:tr,required:rn!=null?rn:On,prefixCls:Ae})),be.createElement(Ut,Object.assign({},st,Wt,{errors:qn,warnings:et,prefixCls:Ae,status:mn,help:Ye,marginBottom:Rt,onErrorVisibleChanged:Zt}),be.createElement(Re.qI.Provider,{value:Mn},be.createElement(yr,{prefixCls:Ae,meta:Wt,errors:Wt.errors,warnings:Wt.warnings,hasFeedback:an,validateStatus:mn},pn)))),!!Rt&&be.createElement("div",{className:`${Ln}-margin-offset`,style:{marginBottom:-Rt}}))}const jr="__SPLIT__",Ar=null,Xr=be.memo(st=>{let{children:Ae}=st;return Ae},(st,Ae)=>st.value===Ae.value&&st.update===Ae.update&&st.childProps.length===Ae.childProps.length&&st.childProps.every((Ne,Be)=>Ne===Ae.childProps[Be]));function fr(st){return st!=null}function Gr(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Yr(st){const{name:Ae,noStyle:Ne,className:Be,dependencies:Ie,prefixCls:Ye,shouldUpdate:ht,rules:Ht,children:Mt,required:Wt,label:an,messageVariables:ln,trigger:pn="onChange",validateTrigger:Ct,hidden:rn,help:On}=st,{getPrefixCls:Mn}=be.useContext(Nt.E_),{name:Pn}=be.useContext(Re.q3),Ln=oe(Mt),tr=typeof Ln=="function",hn=be.useContext(Re.qI),{validateTrigger:qn}=be.useContext(tt.FieldContext),et=Ct!==void 0?Ct:qn,It=fr(Ae),Ft=Mn("form",Ye),[Qt,Rt]=pt(Ft),jt=be.useContext(tt.ListContext),Zt=be.useRef(),[cn,mn]=Le({}),[En,Un]=(0,Dt.Z)(()=>Gr()),ar=Wn=>{const nr=jt==null?void 0:jt.getKey(Wn.name);if(Un(Wn.destroy?Gr():Wn,!0),Ne&&On!==!1&&hn){let hr=Wn.name;if(Wn.destroy)hr=Zt.current||hr;else if(nr!==void 0){const[rr,Tr]=nr;hr=[rr].concat((0,ye.Z)(Tr)),Zt.current=hr}hn(Wn,hr)}},xr=(Wn,nr)=>{mn(hr=>{const rr=Object.assign({},hr),$r=[].concat((0,ye.Z)(Wn.name.slice(0,-1)),(0,ye.Z)(nr)).join(jr);return Wn.destroy?delete rr[$r]:rr[$r]=Wn,rr})},[or,$n]=be.useMemo(()=>{const Wn=(0,ye.Z)(En.errors),nr=(0,ye.Z)(En.warnings);return Object.values(cn).forEach(hr=>{Wn.push.apply(Wn,(0,ye.Z)(hr.errors||[])),nr.push.apply(nr,(0,ye.Z)(hr.warnings||[]))}),[Wn,nr]},[cn,En.errors,En.warnings]),wr=qe();function pr(Wn,nr,hr){return Ne&&!rn?be.createElement(yr,{prefixCls:Ft,hasFeedback:st.hasFeedback,validateStatus:st.validateStatus,meta:En,errors:or,warnings:$n,noStyle:!0},Wn):be.createElement(zr,Object.assign({key:"row"},st,{className:Te()(Be,Rt),prefixCls:Ft,fieldId:nr,isRequired:hr,errors:or,warnings:$n,meta:En,onSubItemMetaChange:xr}),Wn)}if(!It&&!tr&&!Ie)return Qt(pr(Ln));let mr={};return typeof an=="string"?mr.label=an:Ae&&(mr.label=String(Ae)),ln&&(mr=Object.assign(Object.assign({},mr),ln)),Qt(be.createElement(tt.Field,Object.assign({},st,{messageVariables:mr,trigger:pn,validateTrigger:et,onMetaChange:ar}),(Wn,nr,hr)=>{const rr=gt(Ae).length&&nr?nr.name:[],Tr=nn(rr,Pn),$r=Wt!==void 0?Wt:!!(Ht&&Ht.some(vn=>{if(vn&&typeof vn=="object"&&vn.required&&!vn.warningOnly)return!0;if(typeof vn=="function"){const sr=vn(hr);return sr&&sr.required&&!sr.warningOnly}return!1})),cr=Object.assign({},Wn);let kn=null;if(Array.isArray(Ln)&&It)kn=Ln;else if(!(tr&&(!(ht||Ie)||It))){if(!(Ie&&!tr&&!It))if((0,ve.l$)(Ln)){const vn=Object.assign(Object.assign({},Ln.props),cr);if(vn.id||(vn.id=Tr),On||or.length>0||$n.length>0||st.extra){const Sr=[];(On||or.length>0)&&Sr.push(`${Tr}_help`),st.extra&&Sr.push(`${Tr}_extra`),vn["aria-describedby"]=Sr.join(" ")}or.length>0&&(vn["aria-invalid"]="true"),$r&&(vn["aria-required"]="true"),(0,Pt.Yr)(Ln)&&(vn.ref=wr(rr,Ln)),new Set([].concat((0,ye.Z)(gt(pn)),(0,ye.Z)(gt(et)))).forEach(Sr=>{vn[Sr]=function(){for(var Or,Mr,Qr,Rr,fi,Yn=arguments.length,jn=new Array(Yn),Lr=0;Lr{var{prefixCls:Ae,children:Ne}=st,Be=Hr(st,["prefixCls","children"]);const{getPrefixCls:Ie}=be.useContext(Nt.E_),Ye=Ie("form",Ae),ht=be.useMemo(()=>({prefixCls:Ye,status:"error"}),[Ye]);return be.createElement(tt.List,Object.assign({},Be),(Ht,Mt,Wt)=>be.createElement(Re.Rk.Provider,{value:ht},Ne(Ht.map(an=>Object.assign(Object.assign({},an),{fieldKey:an.key})),Mt,{errors:Wt.errors,warnings:Wt.warnings})))};function Dn(){const{form:st}=(0,be.useContext)(Re.q3);return st}const Bn=wt;Bn.Item=qr,Bn.List=vr,Bn.ErrorList=At,Bn.useForm=Ue,Bn.useFormInstance=Dn,Bn.useWatch=tt.useWatch,Bn.Provider=Re.RV,Bn.create=()=>{};var br=Bn},5871:function(fn,Jt,fe){"use strict";fe.d(Jt,{Z:function(){return Cn}});var ye=fe(84105),We=fe(87395),Te=fe(92310),it=fe.n(Te),be=fe(60499),_e=fe(18642),Re=fe(43749),Ce=fe(72190),Ee=fe(42244),Fe=fe(38705),lt=fe(17212);function De(){return typeof BigInt=="function"}function Ke(nt){return!nt&&nt!==0&&!Number.isNaN(nt)||!String(nt).trim()}function ft(nt){var mt=nt.trim(),Bt=mt.startsWith("-");Bt&&(mt=mt.slice(1)),mt=mt.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),mt.startsWith(".")&&(mt="0".concat(mt));var xn=mt||"0",bn=xn.split("."),yn=bn[0]||"0",Nn=bn[1]||"0";yn==="0"&&Nn==="0"&&(Bt=!1);var Vn=Bt?"-":"";return{negative:Bt,negativeStr:Vn,trimStr:xn,integerStr:yn,decimalStr:Nn,fullStr:"".concat(Vn).concat(xn)}}function Ve(nt){var mt=String(nt);return!Number.isNaN(Number(mt))&&mt.includes("e")}function rt(nt){var mt=String(nt);if(Ve(nt)){var Bt=Number(mt.slice(mt.indexOf("e-")+2)),xn=mt.match(/\.(\d+)/);return xn!=null&&xn[1]&&(Bt+=xn[1].length),Bt}return mt.includes(".")&&St(mt)?mt.length-mt.indexOf(".")-1:0}function Xe(nt){var mt=String(nt);if(Ve(nt)){if(nt>Number.MAX_SAFE_INTEGER)return String(De()?BigInt(nt).toString():Number.MAX_SAFE_INTEGER);if(nt0&&arguments[0]!==void 0?arguments[0]:!0;return Bt?this.isInvalidate()?"":ft("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),nt}(),Je=function(){function nt(mt){if((0,Fe.Z)(this,nt),(0,_e.Z)(this,"origin",""),(0,_e.Z)(this,"number",void 0),(0,_e.Z)(this,"empty",void 0),Ke(mt)){this.empty=!0;return}this.origin=String(mt),this.number=Number(mt)}return(0,lt.Z)(nt,[{key:"negate",value:function(){return new nt(-this.toNumber())}},{key:"add",value:function(Bt){if(this.isInvalidate())return new nt(Bt);var xn=Number(Bt);if(Number.isNaN(xn))return this;var bn=this.number+xn;if(bn>Number.MAX_SAFE_INTEGER)return new nt(Number.MAX_SAFE_INTEGER);if(bnNumber.MAX_SAFE_INTEGER)return new nt(Number.MAX_SAFE_INTEGER);if(bn0&&arguments[0]!==void 0?arguments[0]:!0;return Bt?this.isInvalidate()?"":Xe(this.number):this.origin}}]),nt}();function dt(nt){return De()?new Kt(nt):new Je(nt)}function Ze(nt,mt,Bt){var xn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(nt==="")return"";var bn=ft(nt),yn=bn.negativeStr,Nn=bn.integerStr,Vn=bn.decimalStr,In="".concat(mt).concat(Vn),lr="".concat(yn).concat(Nn);if(Bt>=0){var ur=Number(Vn[Bt]);if(ur>=5&&!xn){var gn=dt(nt).add("".concat(yn,"0.").concat("0".repeat(Bt)).concat(10-ur));return Ze(gn.toString(),mt,Bt,xn)}return Bt===0?lr:"".concat(lr).concat(mt).concat(Vn.padEnd(Bt,"0").slice(0,Bt))}return In===".0"?lr:"".concat(lr).concat(In)}var Me=dt,ze=fe(93681),$e=fe(34280),pt=fe(8654),Ge=fe(59301),Lt=fe(48736);function at(nt,mt){var Bt=(0,Ge.useRef)(null);function xn(){try{var yn=nt.selectionStart,Nn=nt.selectionEnd,Vn=nt.value,In=Vn.substring(0,yn),lr=Vn.substring(Nn);Bt.current={start:yn,end:Nn,value:Vn,beforeTxt:In,afterTxt:lr}}catch(ur){}}function bn(){if(nt&&Bt.current&&mt)try{var yn=nt.value,Nn=Bt.current,Vn=Nn.beforeTxt,In=Nn.afterTxt,lr=Nn.start,ur=yn.length;if(yn.endsWith(In))ur=yn.length-Bt.current.afterTxt.length;else if(yn.startsWith(Vn))ur=Vn.length;else{var gn=Vn[lr-1],yr=yn.indexOf(gn,lr-1);yr!==-1&&(ur=yr+1)}nt.setSelectionRange(ur,ur)}catch(Pr){(0,Lt.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Pr.message))}}return[xn,bn]}var At=fe(49658),tt=function(){var mt=(0,Ge.useState)(!1),Bt=(0,Ce.Z)(mt,2),xn=Bt[0],bn=Bt[1];return(0,$e.Z)(function(){bn((0,At.Z)())},[]),xn},Nt=tt,tn=fe(16089),Xt=200,qt=600;function Ot(nt){var mt=nt.prefixCls,Bt=nt.upNode,xn=nt.downNode,bn=nt.upDisabled,yn=nt.downDisabled,Nn=nt.onStep,Vn=Ge.useRef(),In=Ge.useRef([]),lr=Ge.useRef();lr.current=Nn;var ur=function(){clearTimeout(Vn.current)},gn=function(Gr,Yr){Gr.preventDefault(),ur(),lr.current(Yr);function Vr(){lr.current(Yr),Vn.current=setTimeout(Vr,Xt)}Vn.current=setTimeout(Vr,qt)};Ge.useEffect(function(){return function(){ur(),In.current.forEach(function(fr){return tn.Z.cancel(fr)})}},[]);var yr=Nt();if(yr)return null;var Pr="".concat(mt,"-handler"),zr=it()(Pr,"".concat(Pr,"-up"),(0,_e.Z)({},"".concat(Pr,"-up-disabled"),bn)),jr=it()(Pr,"".concat(Pr,"-down"),(0,_e.Z)({},"".concat(Pr,"-down-disabled"),yn)),Ar=function(){return In.current.push((0,tn.Z)(ur))},Xr={unselectable:"on",role:"button",onMouseUp:Ar,onMouseLeave:Ar};return Ge.createElement("div",{className:"".concat(Pr,"-wrap")},Ge.createElement("span",(0,be.Z)({},Xr,{onMouseDown:function(Gr){gn(Gr,!0)},"aria-label":"Increase Value","aria-disabled":bn,className:zr}),Bt||Ge.createElement("span",{unselectable:"on",className:"".concat(mt,"-handler-up-inner")})),Ge.createElement("span",(0,be.Z)({},Xr,{onMouseDown:function(Gr){gn(Gr,!1)},"aria-label":"Decrease Value","aria-disabled":yn,className:jr}),xn||Ge.createElement("span",{unselectable:"on",className:"".concat(mt,"-handler-down-inner")})))}function He(nt){var mt=typeof nt=="number"?Xe(nt):ft(nt).fullStr,Bt=mt.includes(".");return Bt?ft(mt.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:nt+"0"}var xe=fe(5643),gt=function(){var nt=(0,Ge.useRef)(0),mt=function(){tn.Z.cancel(nt.current)};return(0,Ge.useEffect)(function(){return mt},[]),function(Bt){mt(),nt.current=(0,tn.Z)(function(){Bt()})}},nn=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],Vt=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],Qe=function(mt,Bt){return mt||Bt.isEmpty()?Bt.toString():Bt.toNumber()},Ue=function(mt){var Bt=Me(mt);return Bt.isInvalidate()?null:Bt},kt=Ge.forwardRef(function(nt,mt){var Bt,xn=nt.prefixCls,bn=xn===void 0?"rc-input-number":xn,yn=nt.className,Nn=nt.style,Vn=nt.min,In=nt.max,lr=nt.step,ur=lr===void 0?1:lr,gn=nt.defaultValue,yr=nt.value,Pr=nt.disabled,zr=nt.readOnly,jr=nt.upHandler,Ar=nt.downHandler,Xr=nt.keyboard,fr=nt.controls,Gr=fr===void 0?!0:fr,Yr=nt.classNames,Vr=nt.stringMode,qr=nt.parser,Hr=nt.formatter,er=nt.precision,vr=nt.decimalSeparator,Dn=nt.onChange,Bn=nt.onInput,br=nt.onPressEnter,st=nt.onStep,Ae=(0,Ee.Z)(nt,nn),Ne="".concat(bn,"-input"),Be=Ge.useRef(null),Ie=Ge.useState(!1),Ye=(0,Ce.Z)(Ie,2),ht=Ye[0],Ht=Ye[1],Mt=Ge.useRef(!1),Wt=Ge.useRef(!1),an=Ge.useRef(!1),ln=Ge.useState(function(){return Me(yr!=null?yr:gn)}),pn=(0,Ce.Z)(ln,2),Ct=pn[0],rn=pn[1];function On(kn){yr===void 0&&rn(kn)}var Mn=Ge.useCallback(function(kn,vn){if(!vn)return er>=0?er:Math.max(rt(kn),rt(ur))},[er,ur]),Pn=Ge.useCallback(function(kn){var vn=String(kn);if(qr)return qr(vn);var sr=vn;return vr&&(sr=sr.replace(vr,".")),sr.replace(/[^\w.-]+/g,"")},[qr,vr]),Ln=Ge.useRef(""),tr=Ge.useCallback(function(kn,vn){if(Hr)return Hr(kn,{userTyping:vn,input:String(Ln.current)});var sr=typeof kn=="number"?Xe(kn):kn;if(!vn){var Xn=Mn(sr,vn);if(St(sr)&&(vr||Xn>=0)){var Sr=vr||".";sr=Ze(sr,Sr,Xn)}}return sr},[Hr,Mn,vr]),hn=Ge.useState(function(){var kn=gn!=null?gn:yr;return Ct.isInvalidate()&&["string","number"].includes((0,Re.Z)(kn))?Number.isNaN(kn)?"":kn:tr(Ct.toString(),!1)}),qn=(0,Ce.Z)(hn,2),et=qn[0],It=qn[1];Ln.current=et;function Ft(kn,vn){It(tr(kn.isInvalidate()?kn.toString(!1):kn.toString(!vn),vn))}var Qt=Ge.useMemo(function(){return Ue(In)},[In,er]),Rt=Ge.useMemo(function(){return Ue(Vn)},[Vn,er]),jt=Ge.useMemo(function(){return!Qt||!Ct||Ct.isInvalidate()?!1:Qt.lessEquals(Ct)},[Qt,Ct]),Zt=Ge.useMemo(function(){return!Rt||!Ct||Ct.isInvalidate()?!1:Ct.lessEquals(Rt)},[Rt,Ct]),cn=at(Be.current,ht),mn=(0,Ce.Z)(cn,2),En=mn[0],Un=mn[1],ar=function(vn){return Qt&&!vn.lessEquals(Qt)?Qt:Rt&&!Rt.lessEquals(vn)?Rt:null},xr=function(vn){return!ar(vn)},or=function(vn,sr){var Xn=vn,Sr=xr(Xn)||Xn.isEmpty();if(!Xn.isEmpty()&&!sr&&(Xn=ar(Xn)||Xn,Sr=!0),!zr&&!Pr&&Sr){var Or=Xn.toString(),Mr=Mn(Or,sr);return Mr>=0&&(Xn=Me(Ze(Or,".",Mr)),xr(Xn)||(Xn=Me(Ze(Or,".",Mr,!0)))),Xn.equals(Ct)||(On(Xn),Dn==null||Dn(Xn.isEmpty()?null:Qe(Vr,Xn)),yr===void 0&&Ft(Xn,sr)),Xn}return Ct},$n=gt(),wr=function kn(vn){if(En(),Ln.current=vn,It(vn),!Wt.current){var sr=Pn(vn),Xn=Me(sr);Xn.isNaN()||or(Xn,!0)}Bn==null||Bn(vn),$n(function(){var Sr=vn;qr||(Sr=vn.replace(/。/g,".")),Sr!==vn&&kn(Sr)})},pr=function(){Wt.current=!0},mr=function(){Wt.current=!1,wr(Be.current.value)},Wn=function(vn){wr(vn.target.value)},nr=function(vn){var sr;if(!(vn&&jt||!vn&&Zt)){Mt.current=!1;var Xn=Me(an.current?He(ur):ur);vn||(Xn=Xn.negate());var Sr=(Ct||Me(0)).add(Xn.toString()),Or=or(Sr,!1);st==null||st(Qe(Vr,Or),{offset:an.current?He(ur):ur,type:vn?"up":"down"}),(sr=Be.current)===null||sr===void 0||sr.focus()}},hr=function(vn){var sr=Me(Pn(et)),Xn=sr;sr.isNaN()?Xn=or(Ct,vn):Xn=or(sr,vn),yr!==void 0?Ft(Ct,!1):Xn.isNaN()||Ft(Xn,!1)},rr=function(){Mt.current=!0},Tr=function(vn){var sr=vn.key,Xn=vn.shiftKey;Mt.current=!0,an.current=Xn,sr==="Enter"&&(Wt.current||(Mt.current=!1),hr(!1),br==null||br(vn)),Xr!==!1&&!Wt.current&&["Up","ArrowUp","Down","ArrowDown"].includes(sr)&&(nr(sr==="Up"||sr==="ArrowUp"),vn.preventDefault())},$r=function(){Mt.current=!1,an.current=!1},cr=function(){hr(!1),Ht(!1),Mt.current=!1};return(0,$e.o)(function(){Ct.isInvalidate()||Ft(Ct,!1)},[er]),(0,$e.o)(function(){var kn=Me(yr);rn(kn);var vn=Me(Pn(et));(!kn.equals(vn)||!Mt.current||Hr)&&Ft(kn,Mt.current)},[yr]),(0,$e.o)(function(){Hr&&Un()},[et]),Ge.createElement("div",{className:it()(bn,Yr==null?void 0:Yr.input,yn,(Bt={},(0,_e.Z)(Bt,"".concat(bn,"-focused"),ht),(0,_e.Z)(Bt,"".concat(bn,"-disabled"),Pr),(0,_e.Z)(Bt,"".concat(bn,"-readonly"),zr),(0,_e.Z)(Bt,"".concat(bn,"-not-a-number"),Ct.isNaN()),(0,_e.Z)(Bt,"".concat(bn,"-out-of-range"),!Ct.isInvalidate()&&!xr(Ct)),Bt)),style:Nn,onFocus:function(){Ht(!0)},onBlur:cr,onKeyDown:Tr,onKeyUp:$r,onCompositionStart:pr,onCompositionEnd:mr,onBeforeInput:rr},Gr&&Ge.createElement(Ot,{prefixCls:bn,upNode:jr,downNode:Ar,upDisabled:jt,downDisabled:Zt,onStep:nr}),Ge.createElement("div",{className:"".concat(Ne,"-wrap")},Ge.createElement("input",(0,be.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Vn,"aria-valuemax":In,"aria-valuenow":Ct.isInvalidate()?null:Ct.toString(),step:ur},Ae,{ref:(0,pt.sQ)(Be,mt),className:Ne,value:et,onChange:Wn,disabled:Pr,readOnly:zr}))))}),dn=Ge.forwardRef(function(nt,mt){var Bt=nt.disabled,xn=nt.style,bn=nt.prefixCls,yn=nt.value,Nn=nt.prefix,Vn=nt.suffix,In=nt.addonBefore,lr=nt.addonAfter,ur=nt.classes,gn=nt.className,yr=nt.classNames,Pr=(0,Ee.Z)(nt,Vt),zr=Ge.useRef(null),jr=function(Xr){zr.current&&(0,xe.nH)(zr.current,Xr)};return Ge.createElement(ze.BaseInput,{inputElement:Ge.createElement(kt,(0,be.Z)({prefixCls:bn,disabled:Bt,classNames:yr,ref:(0,pt.sQ)(zr,mt)},Pr)),className:gn,triggerFocus:jr,prefixCls:bn,value:yn,disabled:Bt,style:xn,prefix:Nn,suffix:Vn,addonAfter:lr,addonBefore:In,classes:ur,classNames:yr,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});dn.displayName="InputNumber";var Et=dn,$t=Et,wt=fe(19080),Dt=fe(36355),Pt=fe(92736),ve=fe(1684),le=fe(19716),oe=fe(32441),ce=fe(33234),de=fe(9937),se=fe(17313),Le=fe(74207),qe=fe(83116),vt=fe(37613);const yt=(nt,mt)=>{let{componentCls:Bt,borderRadiusSM:xn,borderRadiusLG:bn}=nt;const yn=mt==="lg"?bn:xn;return{[`&-${mt}`]:{[`${Bt}-handler-wrap`]:{borderStartEndRadius:yn,borderEndEndRadius:yn},[`${Bt}-handler-up`]:{borderStartEndRadius:yn},[`${Bt}-handler-down`]:{borderEndEndRadius:yn}}}},_t=nt=>{const{componentCls:mt,lineWidth:Bt,lineType:xn,colorBorder:bn,borderRadius:yn,fontSizeLG:Nn,controlHeightLG:Vn,controlHeightSM:In,colorError:lr,paddingInlineSM:ur,colorTextDescription:gn,motionDurationMid:yr,handleHoverColor:Pr,paddingInline:zr,paddingBlock:jr,handleBg:Ar,handleActiveBg:Xr,colorTextDisabled:fr,borderRadiusSM:Gr,borderRadiusLG:Yr,controlWidth:Vr,handleVisible:qr,handleBorderColor:Hr}=nt;return[{[mt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,se.Wf)(nt)),(0,de.ik)(nt)),(0,de.bi)(nt,mt)),{display:"inline-block",width:Vr,margin:0,padding:0,border:`${Bt}px ${xn} ${bn}`,borderRadius:yn,"&-rtl":{direction:"rtl",[`${mt}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Nn,borderRadius:Yr,[`input${mt}-input`]:{height:Vn-2*Bt}},"&-sm":{padding:0,borderRadius:Gr,[`input${mt}-input`]:{height:In-2*Bt,padding:`0 ${ur}px`}},"&:hover":Object.assign({},(0,de.pU)(nt)),"&-focused":Object.assign({},(0,de.M1)(nt)),"&-out-of-range":{[`${mt}-input-wrap`]:{input:{color:lr}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,se.Wf)(nt)),(0,de.s7)(nt)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${mt}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${mt}-group-addon`]:{borderRadius:Yr,fontSize:nt.fontSizeLG}},"&-sm":{[`${mt}-group-addon`]:{borderRadius:Gr}},[`${mt}-wrapper-disabled > ${mt}-group-addon`]:Object.assign({},(0,de.Xy)(nt))}}),[`&-disabled ${mt}-input`]:{cursor:"not-allowed"},[mt]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,se.Wf)(nt)),{width:"100%",padding:`${jr}px ${zr}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:yn,outline:0,transition:`all ${yr} linear`,appearance:"textfield",fontSize:"inherit"}),(0,de.nz)(nt.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[mt]:Object.assign(Object.assign(Object.assign({[`&:hover ${mt}-handler-wrap, &-focused ${mt}-handler-wrap`]:{opacity:1},[`${mt}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:nt.handleWidth,height:"100%",background:Ar,borderStartStartRadius:0,borderStartEndRadius:yn,borderEndEndRadius:yn,borderEndStartRadius:0,opacity:qr===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${yr} linear ${yr}`,[`${mt}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${mt}-handler-up-inner, ${mt}-handler-down-inner `]:{marginInlineEnd:0,fontSize:nt.handleFontSize}}},[`${mt}-handler`]:{height:"50%",overflow:"hidden",color:gn,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Bt}px ${xn} ${Hr}`,transition:`all ${yr} linear`,"&:active":{background:Xr},"&:hover":{height:"60%",[` ${mt}-handler-up-inner, ${mt}-handler-down-inner `]:{color:Pr}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,se.Ro)()),{color:gn,transition:`all ${yr} linear`,userSelect:"none"})},[`${mt}-handler-up`]:{borderStartEndRadius:yn},[`${mt}-handler-down`]:{borderBlockStart:`${Bt}px ${xn} ${Hr}`,borderEndEndRadius:yn}},yt(nt,"lg")),yt(nt,"sm")),{"&-disabled, &-readonly":{[`${mt}-handler-wrap`]:{display:"none"},[`${mt}-input`]:{color:"inherit"}},[` ${mt}-handler-up-disabled, ${mt}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${mt}-handler-up-disabled:hover &-handler-up-inner, ${mt}-handler-down-disabled:hover &-handler-down-inner `]:{color:fr}})},{[`${mt}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${mt}-handler-down`]:{borderBlockStartWidth:0}}}]},Tt=nt=>{const{componentCls:mt,paddingBlock:Bt,paddingInline:xn,inputAffixPadding:bn,controlWidth:yn,borderRadiusLG:Nn,borderRadiusSM:Vn}=nt;return{[`${mt}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,de.ik)(nt)),(0,de.bi)(nt,`${mt}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:yn,padding:0,paddingInlineStart:xn,"&-lg":{borderRadius:Nn},"&-sm":{borderRadius:Vn},[`&:not(${mt}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,de.pU)(nt)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${mt}-disabled`]:{background:"transparent"},[`> div${mt}`]:{width:"100%",border:"none",outline:"none",[`&${mt}-focused`]:{boxShadow:"none !important"}},[`input${mt}-input`]:{padding:`${Bt}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${mt}-handler-wrap`]:{zIndex:2},[mt]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:bn},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:xn,marginInlineStart:bn}}})}};var zt=(0,qe.Z)("InputNumber",nt=>{const mt=(0,vt.TS)(nt,(0,de.e5)(nt));return[_t(mt),Tt(mt),(0,Le.c)(mt)]},nt=>Object.assign(Object.assign({},(0,de.TM)(nt)),{controlWidth:90,handleWidth:nt.controlHeightSM-nt.lineWidth*2,handleFontSize:nt.fontSize/2,handleVisible:"auto",handleActiveBg:nt.colorFillAlter,handleBg:nt.colorBgContainer,handleHoverColor:nt.colorPrimary,handleBorderColor:nt.colorBorder})),Yt=function(nt,mt){var Bt={};for(var xn in nt)Object.prototype.hasOwnProperty.call(nt,xn)&&mt.indexOf(xn)<0&&(Bt[xn]=nt[xn]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bn=0,xn=Object.getOwnPropertySymbols(nt);bn{const{getPrefixCls:Bt,direction:xn}=Ge.useContext(Dt.E_),bn=Ge.useRef(null);Ge.useImperativeHandle(mt,()=>bn.current);const{className:yn,rootClassName:Nn,size:Vn,disabled:In,prefixCls:lr,addonBefore:ur,addonAfter:gn,prefix:yr,bordered:Pr=!0,readOnly:zr,status:jr,controls:Ar}=nt,Xr=Yt(nt,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),fr=Bt("input-number",lr),[Gr,Yr]=zt(fr),{compactSize:Vr,compactItemClassnames:qr}=(0,ce.ri)(fr,xn);let Hr=Ge.createElement(We.Z,{className:`${fr}-handler-up-inner`}),er=Ge.createElement(ye.Z,{className:`${fr}-handler-down-inner`});const vr=typeof Ar=="boolean"?Ar:void 0;typeof Ar=="object"&&(Hr=typeof Ar.upIcon=="undefined"?Hr:Ge.createElement("span",{className:`${fr}-handler-up-inner`},Ar.upIcon),er=typeof Ar.downIcon=="undefined"?er:Ge.createElement("span",{className:`${fr}-handler-down-inner`},Ar.downIcon));const{hasFeedback:Dn,status:Bn,isFormItemInput:br,feedbackIcon:st}=Ge.useContext(oe.aM),Ae=(0,wt.F)(Bn,jr),Ne=(0,le.Z)(Mt=>{var Wt;return(Wt=Vn!=null?Vn:Vr)!==null&&Wt!==void 0?Wt:Mt}),Be=Ge.useContext(ve.Z),Ie=In!=null?In:Be,Ye=it()({[`${fr}-lg`]:Ne==="large",[`${fr}-sm`]:Ne==="small",[`${fr}-rtl`]:xn==="rtl",[`${fr}-borderless`]:!Pr,[`${fr}-in-form-item`]:br},(0,wt.Z)(fr,Ae),qr,Yr),ht=`${fr}-group`,Ht=Ge.createElement($t,Object.assign({ref:bn,disabled:Ie,className:it()(yn,Nn),upHandler:Hr,downHandler:er,prefixCls:fr,readOnly:zr,controls:vr,prefix:yr,suffix:Dn&&st,addonAfter:gn&&Ge.createElement(ce.BR,null,Ge.createElement(oe.Ux,{override:!0,status:!0},gn)),addonBefore:ur&&Ge.createElement(ce.BR,null,Ge.createElement(oe.Ux,{override:!0,status:!0},ur)),classNames:{input:Ye},classes:{affixWrapper:it()((0,wt.Z)(`${fr}-affix-wrapper`,Ae,Dn),{[`${fr}-affix-wrapper-sm`]:Ne==="small",[`${fr}-affix-wrapper-lg`]:Ne==="large",[`${fr}-affix-wrapper-rtl`]:xn==="rtl",[`${fr}-affix-wrapper-borderless`]:!Pr},Yr),wrapper:it()({[`${ht}-rtl`]:xn==="rtl",[`${fr}-wrapper-disabled`]:Ie},Yr),group:it()({[`${fr}-group-wrapper-sm`]:Ne==="small",[`${fr}-group-wrapper-lg`]:Ne==="large",[`${fr}-group-wrapper-rtl`]:xn==="rtl"},(0,wt.Z)(`${fr}-group-wrapper`,Ae,Dn),Yr)}},Xr));return Gr(Ht)}),ot=on,Ut=nt=>Ge.createElement(Pt.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},Ge.createElement(on,Object.assign({},nt)));ot._InternalPanelDoNotUseOrYouWillBeFired=Ut;var Cn=ot},9432:function(fn,Jt,fe){"use strict";fe.d(Jt,{Z:function(){return Kt},n:function(){return Xe}});var ye=fe(19248),We=fe(92310),Te=fe.n(We),it=fe(93681),be=fe(8654),_e=fe(59301),Re=fe(19080),Ce=fe(36355),Ee=fe(1684),Fe=fe(19716),lt=fe(32441),De=fe(33234),Ke=fe(59412),ft=fe(9937);function Ve(Je){return!!(Je.prefix||Je.suffix||Je.allowClear)}var rt=function(Je,dt){var Ze={};for(var Me in Je)Object.prototype.hasOwnProperty.call(Je,Me)&&dt.indexOf(Me)<0&&(Ze[Me]=Je[Me]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,Me=Object.getOwnPropertySymbols(Je);ze{var Ze;const{prefixCls:Me,bordered:ze=!0,status:$e,size:pt,disabled:Ge,onBlur:Lt,onFocus:at,suffix:At,allowClear:tt,addonAfter:Nt,addonBefore:tn,className:Xt,style:qt,styles:Ot,rootClassName:He,onChange:xe,classNames:gt}=Je,nn=rt(Je,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Vt,direction:Qe,input:Ue}=_e.useContext(Ce.E_),kt=Vt("input",Me),dn=(0,_e.useRef)(null),[Et,$t]=(0,ft.ZP)(kt),{compactSize:wt,compactItemClassnames:Dt}=(0,De.ri)(kt,Qe),Pt=(0,Fe.Z)(on=>{var ot;return(ot=pt!=null?pt:wt)!==null&&ot!==void 0?ot:on}),ve=_e.useContext(Ee.Z),le=Ge!=null?Ge:ve,{status:oe,hasFeedback:ce,feedbackIcon:de}=(0,_e.useContext)(lt.aM),se=(0,Re.F)(oe,$e),Le=Ve(Je)||!!ce,qe=(0,_e.useRef)(Le);(0,_e.useEffect)(()=>{var on;Le&&qe.current,qe.current=Le},[Le]);const vt=(0,Ke.Z)(dn,!0),yt=on=>{vt(),Lt==null||Lt(on)},_t=on=>{vt(),at==null||at(on)},Tt=on=>{vt(),xe==null||xe(on)},zt=(ce||At)&&_e.createElement(_e.Fragment,null,At,ce&&de);let Yt;return typeof tt=="object"&&(tt!=null&&tt.clearIcon)?Yt=tt:tt&&(Yt={clearIcon:_e.createElement(ye.Z,null)}),Et(_e.createElement(it.default,Object.assign({ref:(0,be.sQ)(dt,dn),prefixCls:kt,autoComplete:Ue==null?void 0:Ue.autoComplete},nn,{disabled:le,onBlur:yt,onFocus:_t,style:Object.assign(Object.assign({},Ue==null?void 0:Ue.style),qt),styles:Object.assign(Object.assign({},Ue==null?void 0:Ue.styles),Ot),suffix:zt,allowClear:Yt,className:Te()(Xt,He,Dt,Ue==null?void 0:Ue.className),onChange:Tt,addonAfter:Nt&&_e.createElement(De.BR,null,_e.createElement(lt.Ux,{override:!0,status:!0},Nt)),addonBefore:tn&&_e.createElement(De.BR,null,_e.createElement(lt.Ux,{override:!0,status:!0},tn)),classNames:Object.assign(Object.assign(Object.assign({},gt),Ue==null?void 0:Ue.classNames),{input:Te()({[`${kt}-sm`]:Pt==="small",[`${kt}-lg`]:Pt==="large",[`${kt}-rtl`]:Qe==="rtl",[`${kt}-borderless`]:!ze},!Le&&(0,Re.Z)(kt,se),gt==null?void 0:gt.input,(Ze=Ue==null?void 0:Ue.classNames)===null||Ze===void 0?void 0:Ze.input,$t)}),classes:{affixWrapper:Te()({[`${kt}-affix-wrapper-sm`]:Pt==="small",[`${kt}-affix-wrapper-lg`]:Pt==="large",[`${kt}-affix-wrapper-rtl`]:Qe==="rtl",[`${kt}-affix-wrapper-borderless`]:!ze},(0,Re.Z)(`${kt}-affix-wrapper`,se,ce),$t),wrapper:Te()({[`${kt}-group-rtl`]:Qe==="rtl"},$t),group:Te()({[`${kt}-group-wrapper-sm`]:Pt==="small",[`${kt}-group-wrapper-lg`]:Pt==="large",[`${kt}-group-wrapper-rtl`]:Qe==="rtl",[`${kt}-group-wrapper-disabled`]:le},(0,Re.Z)(`${kt}-group-wrapper`,se,ce),$t)}})))})},1643:function(fn,Jt,fe){"use strict";var ye=fe(19248),We=fe(92310),Te=fe.n(We),it=fe(9296),be=fe(59301),_e=fe(19080),Re=fe(36355),Ce=fe(1684),Ee=fe(19716),Fe=fe(32441),lt=fe(9432),De=fe(9937),Ke=function(Ve,rt){var Xe={};for(var St in Ve)Object.prototype.hasOwnProperty.call(Ve,St)&&rt.indexOf(St)<0&&(Xe[St]=Ve[St]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Kt=0,St=Object.getOwnPropertySymbols(Ve);Kt{const{prefixCls:Xe,bordered:St=!0,size:Kt,disabled:Je,status:dt,allowClear:Ze,showCount:Me,classNames:ze,rootClassName:$e,className:pt}=Ve,Ge=Ke(Ve,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Lt,direction:at}=be.useContext(Re.E_),At=(0,Ee.Z)(Kt),tt=be.useContext(Ce.Z),Nt=Je!=null?Je:tt,{status:tn,hasFeedback:Xt,feedbackIcon:qt}=be.useContext(Fe.aM),Ot=(0,_e.F)(tn,dt),He=be.useRef(null);be.useImperativeHandle(rt,()=>{var Qe;return{resizableTextArea:(Qe=He.current)===null||Qe===void 0?void 0:Qe.resizableTextArea,focus:Ue=>{var kt,dn;(0,lt.n)((dn=(kt=He.current)===null||kt===void 0?void 0:kt.resizableTextArea)===null||dn===void 0?void 0:dn.textArea,Ue)},blur:()=>{var Ue;return(Ue=He.current)===null||Ue===void 0?void 0:Ue.blur()}}});const xe=Lt("input",Xe);let gt;typeof Ze=="object"&&(Ze!=null&&Ze.clearIcon)?gt=Ze:Ze&&(gt={clearIcon:be.createElement(ye.Z,null)});const[nn,Vt]=(0,De.ZP)(xe);return nn(be.createElement(it.default,Object.assign({},Ge,{disabled:Nt,allowClear:gt,className:Te()(pt,$e),classes:{affixWrapper:Te()(`${xe}-textarea-affix-wrapper`,{[`${xe}-affix-wrapper-rtl`]:at==="rtl",[`${xe}-affix-wrapper-borderless`]:!St,[`${xe}-affix-wrapper-sm`]:At==="small",[`${xe}-affix-wrapper-lg`]:At==="large",[`${xe}-textarea-show-count`]:Me},(0,_e.Z)(`${xe}-affix-wrapper`,Ot),Vt)},classNames:Object.assign(Object.assign({},ze),{textarea:Te()({[`${xe}-borderless`]:!St,[`${xe}-sm`]:At==="small",[`${xe}-lg`]:At==="large"},(0,_e.Z)(xe,Ot),Vt,ze==null?void 0:ze.textarea)}),prefixCls:xe,suffix:Xt&&be.createElement("span",{className:`${xe}-textarea-suffix`},qt),showCount:Me,ref:He})))});Jt.Z=ft},59412:function(fn,Jt,fe){"use strict";fe.d(Jt,{Z:function(){return We}});var ye=fe(59301);function We(Te,it){const be=(0,ye.useRef)([]),_e=()=>{be.current.push(setTimeout(()=>{var Re,Ce,Ee,Fe;!((Re=Te.current)===null||Re===void 0)&&Re.input&&((Ce=Te.current)===null||Ce===void 0?void 0:Ce.input.getAttribute("type"))==="password"&&(!((Ee=Te.current)===null||Ee===void 0)&&Ee.input.hasAttribute("value"))&&((Fe=Te.current)===null||Fe===void 0||Fe.input.removeAttribute("value"))}))};return(0,ye.useEffect)(()=>(it&&_e(),()=>be.current.forEach(Re=>{Re&&clearTimeout(Re)})),[]),_e}},92832:function(fn,Jt,fe){"use strict";fe.d(Jt,{default:function(){return At}});var ye=fe(92310),We=fe.n(ye),Te=fe(59301),it=fe(36355),be=fe(32441),_e=fe(9937),Ce=tt=>{const{getPrefixCls:Nt,direction:tn}=(0,Te.useContext)(it.E_),{prefixCls:Xt,className:qt}=tt,Ot=Nt("input-group",Xt),He=Nt("input"),[xe,gt]=(0,_e.ZP)(He),nn=We()(Ot,{[`${Ot}-lg`]:tt.size==="large",[`${Ot}-sm`]:tt.size==="small",[`${Ot}-compact`]:tt.compact,[`${Ot}-rtl`]:tn==="rtl"},gt,qt),Vt=(0,Te.useContext)(be.aM),Qe=(0,Te.useMemo)(()=>Object.assign(Object.assign({},Vt),{isFormItemInput:!1}),[Vt]);return xe(Te.createElement("span",{className:nn,style:tt.style,onMouseEnter:tt.onMouseEnter,onMouseLeave:tt.onMouseLeave,onFocus:tt.onFocus,onBlur:tt.onBlur},Te.createElement(be.aM.Provider,{value:Qe},tt.children)))},Ee=fe(9432),Fe=fe(73331),lt=fe(15277),De=fe(2738),Ke=fe(8654),ft=fe(59412),Ve=function(tt,Nt){var tn={};for(var Xt in tt)Object.prototype.hasOwnProperty.call(tt,Xt)&&Nt.indexOf(Xt)<0&&(tn[Xt]=tt[Xt]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qt=0,Xt=Object.getOwnPropertySymbols(tt);qttt?Te.createElement(lt.Z,null):Te.createElement(Fe.Z,null),Xe={click:"onClick",hover:"onMouseOver"};var Kt=Te.forwardRef((tt,Nt)=>{const{visibilityToggle:tn=!0}=tt,Xt=typeof tn=="object"&&tn.visible!==void 0,[qt,Ot]=(0,Te.useState)(()=>Xt?tn.visible:!1),He=(0,Te.useRef)(null);Te.useEffect(()=>{Xt&&Ot(tn.visible)},[Xt,tn]);const xe=(0,ft.Z)(He),gt=()=>{const{disabled:le}=tt;le||(qt&&xe(),Ot(oe=>{var ce;const de=!oe;return typeof tn=="object"&&((ce=tn.onVisibleChange)===null||ce===void 0||ce.call(tn,de)),de}))},nn=le=>{const{action:oe="click",iconRender:ce=rt}=tt,de=Xe[oe]||"",se=ce(qt),Le={[de]:gt,className:`${le}-icon`,key:"passwordIcon",onMouseDown:qe=>{qe.preventDefault()},onMouseUp:qe=>{qe.preventDefault()}};return Te.cloneElement(Te.isValidElement(se)?se:Te.createElement("span",null,se),Le)},{className:Vt,prefixCls:Qe,inputPrefixCls:Ue,size:kt}=tt,dn=Ve(tt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Et}=Te.useContext(it.E_),$t=Et("input",Ue),wt=Et("input-password",Qe),Dt=tn&&nn(wt),Pt=We()(wt,Vt,{[`${wt}-${kt}`]:!!kt}),ve=Object.assign(Object.assign({},(0,De.Z)(dn,["suffix","iconRender","visibilityToggle"])),{type:qt?"text":"password",className:Pt,prefixCls:$t,suffix:Dt});return kt&&(ve.size=kt),Te.createElement(Ee.Z,Object.assign({ref:(0,Ke.sQ)(Nt,He)},ve))}),Je=fe(47472),dt=fe(92343),Ze=fe(3113),Me=fe(19716),ze=fe(33234),$e=function(tt,Nt){var tn={};for(var Xt in tt)Object.prototype.hasOwnProperty.call(tt,Xt)&&Nt.indexOf(Xt)<0&&(tn[Xt]=tt[Xt]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qt=0,Xt=Object.getOwnPropertySymbols(tt);qt{const{prefixCls:tn,inputPrefixCls:Xt,className:qt,size:Ot,suffix:He,enterButton:xe=!1,addonAfter:gt,loading:nn,disabled:Vt,onSearch:Qe,onChange:Ue,onCompositionStart:kt,onCompositionEnd:dn}=tt,Et=$e(tt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:$t,direction:wt}=Te.useContext(it.E_),Dt=Te.useRef(!1),Pt=$t("input-search",tn),ve=$t("input",Xt),{compactSize:le}=(0,ze.ri)(Pt,wt),oe=(0,Me.Z)(Ut=>{var Cn;return(Cn=Ot!=null?Ot:le)!==null&&Cn!==void 0?Cn:Ut}),ce=Te.useRef(null),de=Ut=>{Ut&&Ut.target&&Ut.type==="click"&&Qe&&Qe(Ut.target.value,Ut,{source:"clear"}),Ue&&Ue(Ut)},se=Ut=>{var Cn;document.activeElement===((Cn=ce.current)===null||Cn===void 0?void 0:Cn.input)&&Ut.preventDefault()},Le=Ut=>{var Cn,nt;Qe&&Qe((nt=(Cn=ce.current)===null||Cn===void 0?void 0:Cn.input)===null||nt===void 0?void 0:nt.value,Ut,{source:"input"})},qe=Ut=>{Dt.current||nn||Le(Ut)},vt=typeof xe=="boolean"?Te.createElement(Je.Z,null):null,yt=`${Pt}-button`;let _t;const Tt=xe||{},zt=Tt.type&&Tt.type.__ANT_BUTTON===!0;zt||Tt.type==="button"?_t=(0,dt.Tm)(Tt,Object.assign({onMouseDown:se,onClick:Ut=>{var Cn,nt;(nt=(Cn=Tt==null?void 0:Tt.props)===null||Cn===void 0?void 0:Cn.onClick)===null||nt===void 0||nt.call(Cn,Ut),Le(Ut)},key:"enterButton"},zt?{className:yt,size:oe}:{})):_t=Te.createElement(Ze.ZP,{className:yt,type:xe?"primary":void 0,size:oe,disabled:Vt,key:"enterButton",onMouseDown:se,onClick:Le,loading:nn,icon:vt},xe),gt&&(_t=[_t,(0,dt.Tm)(gt,{key:"addonAfter"})]);const Yt=We()(Pt,{[`${Pt}-rtl`]:wt==="rtl",[`${Pt}-${oe}`]:!!oe,[`${Pt}-with-button`]:!!xe},qt),on=Ut=>{Dt.current=!0,kt==null||kt(Ut)},ot=Ut=>{Dt.current=!1,dn==null||dn(Ut)};return Te.createElement(Ee.Z,Object.assign({ref:(0,Ke.sQ)(ce,Nt),onPressEnter:qe},Et,{size:oe,onCompositionStart:on,onCompositionEnd:ot,prefixCls:ve,addonAfter:_t,suffix:He,onChange:de,className:Yt,disabled:Vt}))}),Lt=fe(1643);const at=Ee.Z;at.Group=Ce,at.Search=Ge,at.TextArea=Lt.Z,at.Password=Kt;var At=at},9937:function(fn,Jt,fe){"use strict";fe.d(Jt,{M1:function(){return Re},TM:function(){return dt},Xy:function(){return Ce},bi:function(){return lt},e5:function(){return Je},ik:function(){return De},nz:function(){return be},pU:function(){return _e},s7:function(){return Ke},x0:function(){return Fe}});var ye=fe(17313),We=fe(74207),Te=fe(37613),it=fe(83116);const be=Ze=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:Ze,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),_e=Ze=>({borderColor:Ze.hoverBorderColor}),Re=Ze=>({borderColor:Ze.activeBorderColor,boxShadow:Ze.activeShadow,outline:0}),Ce=Ze=>({color:Ze.colorTextDisabled,backgroundColor:Ze.colorBgContainerDisabled,borderColor:Ze.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},_e((0,Te.TS)(Ze,{hoverBorderColor:Ze.colorBorder})))}),Ee=Ze=>{const{paddingBlockLG:Me,fontSizeLG:ze,lineHeightLG:$e,borderRadiusLG:pt,paddingInlineLG:Ge}=Ze;return{padding:`${Me}px ${Ge}px`,fontSize:ze,lineHeight:$e,borderRadius:pt}},Fe=Ze=>({padding:`${Ze.paddingBlockSM}px ${Ze.paddingInlineSM}px`,borderRadius:Ze.borderRadiusSM}),lt=(Ze,Me)=>{const{componentCls:ze,colorError:$e,colorWarning:pt,errorActiveShadow:Ge,warningActiveShadow:Lt,colorErrorBorderHover:at,colorWarningBorderHover:At}=Ze;return{[`&-status-error:not(${Me}-disabled):not(${Me}-borderless)${Me}`]:{borderColor:$e,"&:hover":{borderColor:at},"&:focus, &-focused":Object.assign({},Re((0,Te.TS)(Ze,{activeBorderColor:$e,activeShadow:Ge}))),[`${ze}-prefix, ${ze}-suffix`]:{color:$e}},[`&-status-warning:not(${Me}-disabled):not(${Me}-borderless)${Me}`]:{borderColor:pt,"&:hover":{borderColor:At},"&:focus, &-focused":Object.assign({},Re((0,Te.TS)(Ze,{activeBorderColor:pt,activeShadow:Lt}))),[`${ze}-prefix, ${ze}-suffix`]:{color:pt}}}},De=Ze=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Ze.paddingBlock}px ${Ze.paddingInline}px`,color:Ze.colorText,fontSize:Ze.fontSize,lineHeight:Ze.lineHeight,backgroundColor:Ze.colorBgContainer,backgroundImage:"none",borderWidth:Ze.lineWidth,borderStyle:Ze.lineType,borderColor:Ze.colorBorder,borderRadius:Ze.borderRadius,transition:`all ${Ze.motionDurationMid}`},be(Ze.colorTextPlaceholder)),{"&:hover":Object.assign({},_e(Ze)),"&:focus, &-focused":Object.assign({},Re(Ze)),"&-disabled, &[disabled]":Object.assign({},Ce(Ze)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:Ze.controlHeight,lineHeight:Ze.lineHeight,verticalAlign:"bottom",transition:`all ${Ze.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},Ee(Ze)),"&-sm":Object.assign({},Fe(Ze)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),Ke=Ze=>{const{componentCls:Me,antCls:ze}=Ze;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:Ze.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${Me}, &-lg > ${Me}-group-addon`]:Object.assign({},Ee(Ze)),[`&-sm ${Me}, &-sm > ${Me}-group-addon`]:Object.assign({},Fe(Ze)),[`&-lg ${ze}-select-single ${ze}-select-selector`]:{height:Ze.controlHeightLG},[`&-sm ${ze}-select-single ${ze}-select-selector`]:{height:Ze.controlHeightSM},[`> ${Me}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${Me}-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 ${Ze.paddingInline}px`,color:Ze.colorText,fontWeight:"normal",fontSize:Ze.fontSize,textAlign:"center",backgroundColor:Ze.colorFillAlter,border:`${Ze.lineWidth}px ${Ze.lineType} ${Ze.colorBorder}`,borderRadius:Ze.borderRadius,transition:`all ${Ze.motionDurationSlow}`,lineHeight:1,[`${ze}-select`]:{margin:`-${Ze.paddingBlock+1}px -${Ze.paddingInline}px`,[`&${ze}-select-single:not(${ze}-select-customize-input)`]:{[`${ze}-select-selector`]:{backgroundColor:"inherit",border:`${Ze.lineWidth}px ${Ze.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${ze}-select-selector`]:{color:Ze.colorPrimary}}},[`${ze}-cascader-picker`]:{margin:`-9px -${Ze.paddingInline}px`,backgroundColor:"transparent",[`${ze}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${Me}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${Me}-search-with-button &`]:{zIndex:0}}},[`> ${Me}:first-child, ${Me}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${ze}-select ${ze}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Me}-affix-wrapper`]:{[`&:not(:first-child) ${Me}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${Me}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Me}:last-child, ${Me}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${ze}-select ${ze}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${Me}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${Me}-search &`]:{borderStartStartRadius:Ze.borderRadius,borderEndStartRadius:Ze.borderRadius}},[`&:not(:first-child), ${Me}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${Me}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,ye.dF)()),{[`${Me}-group-addon, ${Me}-group-wrap, > ${Me}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:Ze.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` & > ${Me}-affix-wrapper, & > ${Me}-number-affix-wrapper, & > ${ze}-picker-range `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-Ze.lineWidth,borderInlineEndWidth:Ze.lineWidth},[`${Me}`]:{float:"none"},[`& > ${ze}-select > ${ze}-select-selector, & > ${ze}-select-auto-complete ${Me}, & > ${ze}-cascader-picker ${Me}, & > ${Me}-group-wrapper ${Me}`]:{borderInlineEndWidth:Ze.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${ze}-select-focused`]:{zIndex:1},[`& > ${ze}-select > ${ze}-select-arrow`]:{zIndex:1},[`& > *:first-child, & > ${ze}-select:first-child > ${ze}-select-selector, & > ${ze}-select-auto-complete:first-child ${Me}, & > ${ze}-cascader-picker:first-child ${Me}`]:{borderStartStartRadius:Ze.borderRadius,borderEndStartRadius:Ze.borderRadius},[`& > *:last-child, & > ${ze}-select:last-child > ${ze}-select-selector, & > ${ze}-cascader-picker:last-child ${Me}, & > ${ze}-cascader-picker-focused:last-child ${Me}`]:{borderInlineEndWidth:Ze.lineWidth,borderStartEndRadius:Ze.borderRadius,borderEndEndRadius:Ze.borderRadius},[`& > ${ze}-select-auto-complete ${Me}`]:{verticalAlign:"top"},[`${Me}-group-wrapper + ${Me}-group-wrapper`]:{marginInlineStart:-Ze.lineWidth,[`${Me}-affix-wrapper`]:{borderRadius:0}},[`${Me}-group-wrapper:not(:last-child)`]:{[`&${Me}-search > ${Me}-group`]:{[`& > ${Me}-group-addon > ${Me}-search-button`]:{borderRadius:0},[`& > ${Me}`]:{borderStartStartRadius:Ze.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ze.borderRadius}}}})}},ft=Ze=>{const{componentCls:Me,controlHeightSM:ze,lineWidth:$e}=Ze,Ge=(ze-$e*2-16)/2;return{[Me]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ye.Wf)(Ze)),De(Ze)),lt(Ze,Me)),{'&[type="color"]':{height:Ze.controlHeight,[`&${Me}-lg`]:{height:Ze.controlHeightLG},[`&${Me}-sm`]:{height:ze,paddingTop:Ge,paddingBottom:Ge}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},Ve=Ze=>{const{componentCls:Me}=Ze;return{[`${Me}-clear-icon`]:{margin:0,color:Ze.colorTextQuaternary,fontSize:Ze.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${Ze.motionDurationSlow}`,"&:hover":{color:Ze.colorTextTertiary},"&:active":{color:Ze.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Ze.inputAffixPadding}px`}}}},rt=Ze=>{const{componentCls:Me,inputAffixPadding:ze,colorTextDescription:$e,motionDurationSlow:pt,colorIcon:Ge,colorIconHover:Lt,iconCls:at}=Ze;return{[`${Me}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},De(Ze)),{display:"inline-flex",[`&:not(${Me}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},_e(Ze)),{zIndex:1,[`${Me}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${Me}[disabled]`]:{background:"transparent"}},[`> input${Me}`]:{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"'},[`${Me}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:Ze.paddingXS}},"&-show-count-suffix":{color:$e},"&-show-count-has-suffix":{marginInlineEnd:Ze.paddingXXS},"&-prefix":{marginInlineEnd:ze},"&-suffix":{marginInlineStart:ze}}}),Ve(Ze)),{[`${at}${Me}-password-icon`]:{color:Ge,cursor:"pointer",transition:`all ${pt}`,"&:hover":{color:Lt}}}),lt(Ze,`${Me}-affix-wrapper`))}},Xe=Ze=>{const{componentCls:Me,colorError:ze,colorWarning:$e,borderRadiusLG:pt,borderRadiusSM:Ge}=Ze;return{[`${Me}-group`]:Object.assign(Object.assign(Object.assign({},(0,ye.Wf)(Ze)),Ke(Ze)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${Me}-group-addon`]:{borderRadius:pt,fontSize:Ze.fontSizeLG}},"&-sm":{[`${Me}-group-addon`]:{borderRadius:Ge}},"&-status-error":{[`${Me}-group-addon`]:{color:ze,borderColor:ze}},"&-status-warning":{[`${Me}-group-addon`]:{color:$e,borderColor:$e}},"&-disabled":{[`${Me}-group-addon`]:Object.assign({},Ce(Ze))},[`&:not(${Me}-compact-first-item):not(${Me}-compact-last-item)${Me}-compact-item`]:{[`${Me}, ${Me}-group-addon`]:{borderRadius:0}},[`&:not(${Me}-compact-last-item)${Me}-compact-first-item`]:{[`${Me}, ${Me}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Me}-compact-first-item)${Me}-compact-last-item`]:{[`${Me}, ${Me}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},St=Ze=>{const{componentCls:Me,antCls:ze}=Ze,$e=`${Me}-search`;return{[$e]:{[`${Me}`]:{"&:hover, &:focus":{borderColor:Ze.colorPrimaryHover,[`+ ${Me}-group-addon ${$e}-button:not(${ze}-btn-primary)`]:{borderInlineStartColor:Ze.colorPrimaryHover}}},[`${Me}-affix-wrapper`]:{borderRadius:0},[`${Me}-lg`]:{lineHeight:Ze.lineHeightLG-2e-4},[`> ${Me}-group`]:{[`> ${Me}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${$e}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:Ze.borderRadius,borderEndEndRadius:Ze.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${$e}-button:not(${ze}-btn-primary)`]:{color:Ze.colorTextDescription,"&:hover":{color:Ze.colorPrimaryHover},"&:active":{color:Ze.colorPrimaryActive},[`&${ze}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${$e}-button`]:{height:Ze.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${$e}-button`]:{height:Ze.controlHeightLG},[`&-small ${$e}-button`]:{height:Ze.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${Me}-compact-item`]:{[`&:not(${Me}-compact-last-item)`]:{[`${Me}-group-addon`]:{[`${Me}-search-button`]:{marginInlineEnd:-Ze.lineWidth,borderRadius:0}}},[`&:not(${Me}-compact-first-item)`]:{[`${Me},${Me}-affix-wrapper`]:{borderRadius:0}},[`> ${Me}-group-addon ${Me}-search-button, > ${Me}, ${Me}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${Me}-affix-wrapper-focused`]:{zIndex:2}}}}},Kt=Ze=>{const{componentCls:Me,paddingLG:ze}=Ze,$e=`${Me}-textarea`;return{[$e]:{position:"relative","&-show-count":{[`> ${Me}`]:{height:"100%"},[`${Me}-data-count`]:{position:"absolute",bottom:-Ze.fontSize*Ze.lineHeight,insetInlineEnd:0,color:Ze.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${Me}`]:{paddingInlineEnd:ze}},[`&-affix-wrapper${$e}-has-feedback`]:{[`${Me}`]:{paddingInlineEnd:ze}},[`&-affix-wrapper${Me}-affix-wrapper`]:{padding:0,[`> textarea${Me}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${Me}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Me}-clear-icon`]:{position:"absolute",insetInlineEnd:Ze.paddingXS,insetBlockStart:Ze.paddingXS},[`${$e}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Ze.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function Je(Ze){return(0,Te.TS)(Ze,{inputAffixPadding:Ze.paddingXXS})}const dt=Ze=>{const{controlHeight:Me,fontSize:ze,lineHeight:$e,lineWidth:pt,controlHeightSM:Ge,controlHeightLG:Lt,fontSizeLG:at,lineHeightLG:At,paddingSM:tt,controlPaddingHorizontalSM:Nt,controlPaddingHorizontal:tn,colorFillAlter:Xt,colorPrimaryHover:qt,controlOutlineWidth:Ot,controlOutline:He,colorErrorOutline:xe,colorWarningOutline:gt}=Ze;return{paddingBlock:Math.max(Math.round((Me-ze*$e)/2*10)/10-pt,3),paddingBlockSM:Math.max(Math.round((Ge-ze*$e)/2*10)/10-pt,0),paddingBlockLG:Math.ceil((Lt-at*At)/2*10)/10-pt,paddingInline:tt-pt,paddingInlineSM:Nt-pt,paddingInlineLG:tn-pt,addonBg:Xt,activeBorderColor:qt,hoverBorderColor:qt,activeShadow:`0 0 0 ${Ot}px ${He}`,errorActiveShadow:`0 0 0 ${Ot}px ${xe}`,warningActiveShadow:`0 0 0 ${Ot}px ${gt}`}};Jt.ZP=(0,it.Z)("Input",Ze=>{const Me=(0,Te.TS)(Ze,Je(Ze));return[ft(Me),Kt(Me),rt(Me),Xe(Me),St(Me),(0,We.c)(Me)]},dt)},45818:function(fn,Jt,fe){"use strict";fe.d(Jt,{D:function(){return Je},Z:function(){return Me}});var ye=fe(60499),We=fe(59301),Te={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"},it=Te,be=fe(7657),_e=function($e,pt){return We.createElement(be.Z,(0,ye.Z)({},$e,{ref:pt,icon:it}))},Re=We.forwardRef(_e),Ce=Re,Ee=fe(33853),Fe=fe(38819),lt=fe(92310),De=fe.n(lt),Ke=fe(2738),Ve=ze=>!isNaN(parseFloat(ze))&&isFinite(ze),rt=fe(36355),Xe=fe(84966),St=function(ze,$e){var pt={};for(var Ge in ze)Object.prototype.hasOwnProperty.call(ze,Ge)&&$e.indexOf(Ge)<0&&(pt[Ge]=ze[Ge]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,Ge=Object.getOwnPropertySymbols(ze);Lt{let ze=0;return function(){let $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ze+=1,`${$e}${ze}`}})();var Me=We.forwardRef((ze,$e)=>{const{prefixCls:pt,className:Ge,trigger:Lt,children:at,defaultCollapsed:At=!1,theme:tt="dark",style:Nt={},collapsible:tn=!1,reverseArrow:Xt=!1,width:qt=200,collapsedWidth:Ot=80,zeroWidthTriggerStyle:He,breakpoint:xe,onCollapse:gt,onBreakpoint:nn}=ze,Vt=St(ze,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Qe}=(0,We.useContext)(Xe.Gs),[Ue,kt]=(0,We.useState)("collapsed"in ze?ze.collapsed:At),[dn,Et]=(0,We.useState)(!1);(0,We.useEffect)(()=>{"collapsed"in ze&&kt(ze.collapsed)},[ze.collapsed]);const $t=(oe,ce)=>{"collapsed"in ze||kt(oe),gt==null||gt(oe,ce)},wt=(0,We.useRef)();wt.current=oe=>{Et(oe.matches),nn==null||nn(oe.matches),Ue!==oe.matches&&$t(oe.matches,"responsive")},(0,We.useEffect)(()=>{function oe(de){return wt.current(de)}let ce;if(typeof window!="undefined"){const{matchMedia:de}=window;if(de&&xe&&xe in Kt){ce=de(`(max-width: ${Kt[xe]})`);try{ce.addEventListener("change",oe)}catch(se){ce.addListener(oe)}oe(ce)}}return()=>{try{ce==null||ce.removeEventListener("change",oe)}catch(de){ce==null||ce.removeListener(oe)}}},[xe]),(0,We.useEffect)(()=>{const oe=dt("ant-sider-");return Qe.addSider(oe),()=>Qe.removeSider(oe)},[]);const Dt=()=>{$t(!Ue,"clickTrigger")},{getPrefixCls:Pt}=(0,We.useContext)(rt.E_),ve=()=>{const oe=Pt("layout-sider",pt),ce=(0,Ke.Z)(Vt,["collapsed"]),de=Ue?Ot:qt,se=Ve(de)?`${de}px`:String(de),Le=parseFloat(String(Ot||0))===0?We.createElement("span",{onClick:Dt,className:De()(`${oe}-zero-width-trigger`,`${oe}-zero-width-trigger-${Xt?"right":"left"}`),style:He},Lt||We.createElement(Ce,null)):null,yt={expanded:Xt?We.createElement(Fe.Z,null):We.createElement(Ee.Z,null),collapsed:Xt?We.createElement(Ee.Z,null):We.createElement(Fe.Z,null)}[Ue?"collapsed":"expanded"],_t=Lt!==null?Le||We.createElement("div",{className:`${oe}-trigger`,onClick:Dt,style:{width:se}},Lt||yt):null,Tt=Object.assign(Object.assign({},Nt),{flex:`0 0 ${se}`,maxWidth:se,minWidth:se,width:se}),zt=De()(oe,`${oe}-${tt}`,{[`${oe}-collapsed`]:!!Ue,[`${oe}-has-trigger`]:tn&&Lt!==null&&!Le,[`${oe}-below`]:!!dn,[`${oe}-zero-width`]:parseFloat(se)===0},Ge);return We.createElement("aside",Object.assign({className:zt},ce,{style:Tt,ref:$e}),We.createElement("div",{className:`${oe}-children`},at),tn||dn&&Le?_t:null)},le=We.useMemo(()=>({siderCollapsed:Ue}),[Ue]);return We.createElement(Je.Provider,{value:le},ve())})},84966:function(fn,Jt,fe){"use strict";fe.d(Jt,{VY:function(){return Je},$_:function(){return Kt},h4:function(){return St},Gs:function(){return Ke},ZP:function(){return dt}});var ye=fe(77654),We=fe(92310),Te=fe.n(We),it=fe(2738),be=fe(59301),_e=fe(36355),Re=fe(83116),Ee=Ze=>{const{componentCls:Me,bodyBg:ze,lightSiderBg:$e,lightTriggerBg:pt,lightTriggerColor:Ge}=Ze;return{[`${Me}-sider-light`]:{background:$e,[`${Me}-sider-trigger`]:{color:Ge,background:pt},[`${Me}-sider-zero-width-trigger`]:{color:Ge,background:pt,border:`1px solid ${ze}`,borderInlineStart:0}}}};const Fe=Ze=>{const{antCls:Me,componentCls:ze,colorText:$e,triggerColor:pt,footerBg:Ge,triggerBg:Lt,headerHeight:at,headerPadding:At,headerColor:tt,footerPadding:Nt,triggerHeight:tn,zeroTriggerHeight:Xt,zeroTriggerWidth:qt,motionDurationMid:Ot,motionDurationSlow:He,fontSize:xe,borderRadius:gt,bodyBg:nn,headerBg:Vt,siderBg:Qe}=Ze;return{[ze]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:nn,"&, *":{boxSizing:"border-box"},[`&${ze}-has-sider`]:{flexDirection:"row",[`> ${ze}, > ${ze}-content`]:{width:0}},[`${ze}-header, &${ze}-footer`]:{flex:"0 0 auto"},[`${ze}-sider`]:{position:"relative",minWidth:0,background:Qe,transition:`all ${Ot}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Me}-menu${Me}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:tn},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:tn,color:pt,lineHeight:`${tn}px`,textAlign:"center",background:Lt,cursor:"pointer",transition:`all ${Ot}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:at,insetInlineEnd:-qt,zIndex:1,width:qt,height:Xt,color:pt,fontSize:Ze.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Qe,borderStartStartRadius:0,borderStartEndRadius:gt,borderEndEndRadius:gt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${He} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${He}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-qt,borderStartStartRadius:gt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:gt}}}}},Ee(Ze)),{"&-rtl":{direction:"rtl"}}),[`${ze}-header`]:{height:at,padding:At,color:tt,lineHeight:`${at}px`,background:Vt,[`${Me}-menu`]:{lineHeight:"inherit"}},[`${ze}-footer`]:{padding:Nt,color:$e,fontSize:xe,background:Ge},[`${ze}-content`]:{flex:"auto",minHeight:0}}};var lt=(0,Re.Z)("Layout",Ze=>[Fe(Ze)],Ze=>{const{colorBgLayout:Me,controlHeight:ze,controlHeightLG:$e,colorText:pt,controlHeightSM:Ge,marginXXS:Lt,colorTextLightSolid:at,colorBgContainer:At}=Ze,tt=$e*1.25;return{colorBgHeader:"#001529",colorBgBody:Me,colorBgTrigger:"#002140",bodyBg:Me,headerBg:"#001529",headerHeight:ze*2,headerPadding:`0 ${tt}px`,headerColor:pt,footerPadding:`${Ge}px ${tt}px`,footerBg:Me,siderBg:"#001529",triggerHeight:$e+Lt*2,triggerBg:"#002140",triggerColor:at,zeroTriggerWidth:$e,zeroTriggerHeight:$e,lightSiderBg:At,lightTriggerBg:At,lightTriggerColor:pt}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),De=function(Ze,Me){var ze={};for(var $e in Ze)Object.prototype.hasOwnProperty.call(Ze,$e)&&Me.indexOf($e)<0&&(ze[$e]=Ze[$e]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,$e=Object.getOwnPropertySymbols(Ze);pt<$e.length;pt++)Me.indexOf($e[pt])<0&&Object.prototype.propertyIsEnumerable.call(Ze,$e[pt])&&(ze[$e[pt]]=Ze[$e[pt]]);return ze};const Ke=be.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ft(Ze){let{suffixCls:Me,tagName:ze,displayName:$e}=Ze;return pt=>be.forwardRef((Lt,at)=>be.createElement(pt,Object.assign({ref:at,suffixCls:Me,tagName:ze},Lt)))}const Ve=be.forwardRef((Ze,Me)=>{const{prefixCls:ze,suffixCls:$e,className:pt,tagName:Ge}=Ze,Lt=De(Ze,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:at}=be.useContext(_e.E_),At=at("layout",ze),[tt,Nt]=lt(At),tn=$e?`${At}-${$e}`:At;return tt(be.createElement(Ge,Object.assign({className:Te()(ze||tn,pt,Nt),ref:Me},Lt)))}),rt=be.forwardRef((Ze,Me)=>{const{direction:ze}=be.useContext(_e.E_),[$e,pt]=be.useState([]),{prefixCls:Ge,className:Lt,rootClassName:at,children:At,hasSider:tt,tagName:Nt,style:tn}=Ze,Xt=De(Ze,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),qt=(0,it.Z)(Xt,["suffixCls"]),{getPrefixCls:Ot,layout:He}=be.useContext(_e.E_),xe=Ot("layout",Ge),[gt,nn]=lt(xe),Vt=Te()(xe,{[`${xe}-has-sider`]:typeof tt=="boolean"?tt:$e.length>0,[`${xe}-rtl`]:ze==="rtl"},He==null?void 0:He.className,Lt,at,nn),Qe=be.useMemo(()=>({siderHook:{addSider:Ue=>{pt(kt=>[].concat((0,ye.Z)(kt),[Ue]))},removeSider:Ue=>{pt(kt=>kt.filter(dn=>dn!==Ue))}}}),[]);return gt(be.createElement(Ke.Provider,{value:Qe},be.createElement(Nt,Object.assign({ref:Me,className:Vt,style:Object.assign(Object.assign({},He==null?void 0:He.style),tn)},qt),At)))}),Xe=ft({tagName:"div",displayName:"Layout"})(rt),St=ft({suffixCls:"header",tagName:"header",displayName:"Header"})(Ve),Kt=ft({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Ve),Je=ft({suffixCls:"content",tagName:"main",displayName:"Content"})(Ve);var dt=Xe},40875:function(fn,Jt,fe){"use strict";fe.d(Jt,{J:function(){return _e}});var ye=fe(59301),We=fe(33234),Te=fe(70425),it=function(Re,Ce){var Ee={};for(var Fe in Re)Object.prototype.hasOwnProperty.call(Re,Fe)&&Ce.indexOf(Fe)<0&&(Ee[Fe]=Re[Fe]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,Fe=Object.getOwnPropertySymbols(Re);lt{const{children:Ee}=Re,Fe=it(Re,["children"]),lt=ye.useContext(be),De=ye.useMemo(()=>Object.assign(Object.assign({},lt),Fe),[lt,Fe.prefixCls,Fe.mode,Fe.selectable]);return ye.createElement(be.Provider,{value:De},ye.createElement(We.BR,null,(0,Te.supportNodeRef)(Ee)?ye.cloneElement(Ee,{ref:Ce}):Ee))});Jt.Z=be},20834:function(fn,Jt,fe){"use strict";fe.d(Jt,{default:function(){return le}});var ye=fe(15285),We=fe(59301),Te=fe(45818),it=fe(92310),be=fe.n(it),_e=fe(36355),Re=function(oe,ce){var de={};for(var se in oe)Object.prototype.hasOwnProperty.call(oe,se)&&ce.indexOf(se)<0&&(de[se]=oe[se]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,se=Object.getOwnPropertySymbols(oe);Le{const{prefixCls:ce,className:de,dashed:se}=oe,Le=Re(oe,["prefixCls","className","dashed"]),{getPrefixCls:qe}=We.useContext(_e.E_),vt=qe("menu",ce),yt=be()({[`${vt}-item-divider-dashed`]:!!se},de);return We.createElement(ye.iz,Object.assign({className:yt},Le))},Fe=fe(11592),lt=fe(2738),De=fe(6848),Ke=fe(92343),Ve=(0,We.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Xe=oe=>{var ce;const{className:de,children:se,icon:Le,title:qe,danger:vt}=oe,{prefixCls:yt,firstLevel:_t,direction:Tt,disableMenuItemTitleTooltip:zt,inlineCollapsed:Yt}=We.useContext(Ve),on=Bt=>{const xn=We.createElement("span",{className:`${yt}-title-content`},se);return(!Le||(0,Ke.l$)(se)&&se.type==="span")&&se&&Bt&&_t&&typeof se=="string"?We.createElement("div",{className:`${yt}-inline-collapsed-noicon`},se.charAt(0)):xn},{siderCollapsed:ot}=We.useContext(Te.D);let Ut=qe;typeof qe=="undefined"?Ut=_t?se:"":qe===!1&&(Ut="");const Cn={title:Ut};!ot&&!Yt&&(Cn.title=null,Cn.open=!1);const nt=(0,Fe.Z)(se).length;let mt=We.createElement(ye.ck,Object.assign({},(0,lt.Z)(oe,["title","icon","danger"]),{className:be()({[`${yt}-item-danger`]:vt,[`${yt}-item-only-child`]:(Le?nt+1:nt)===1},de),title:typeof qe=="string"?qe:void 0}),(0,Ke.Tm)(Le,{className:be()((0,Ke.l$)(Le)?(ce=Le.props)===null||ce===void 0?void 0:ce.className:"",`${yt}-item-icon`)}),on(Yt));return zt||(mt=We.createElement(De.Z,Object.assign({},Cn,{placement:Tt==="rtl"?"left":"right",overlayClassName:`${yt}-inline-collapsed-tooltip`}),mt)),mt},Kt=oe=>{var ce;const{popupClassName:de,icon:se,title:Le,theme:qe}=oe,vt=We.useContext(Ve),{prefixCls:yt,inlineCollapsed:_t,theme:Tt}=vt,zt=(0,ye.Xl)();let Yt;if(!se)Yt=_t&&!zt.length&&Le&&typeof Le=="string"?We.createElement("div",{className:`${yt}-inline-collapsed-noicon`},Le.charAt(0)):We.createElement("span",{className:`${yt}-title-content`},Le);else{const ot=(0,Ke.l$)(Le)&&Le.type==="span";Yt=We.createElement(We.Fragment,null,(0,Ke.Tm)(se,{className:be()((0,Ke.l$)(se)?(ce=se.props)===null||ce===void 0?void 0:ce.className:"",`${yt}-item-icon`)}),ot?Le:We.createElement("span",{className:`${yt}-title-content`},Le))}const on=We.useMemo(()=>Object.assign(Object.assign({},vt),{firstLevel:!1}),[vt]);return We.createElement(Ve.Provider,{value:on},We.createElement(ye.Wd,Object.assign({},(0,lt.Z)(oe,["icon"]),{title:Yt,popupClassName:be()(yt,de,`${yt}-${qe||Tt}`)})))},Je=fe(18785),dt=fe(70425),Ze=fe(62892),Me=fe(40875),ze=function(oe,ce){var de={};for(var se in oe)Object.prototype.hasOwnProperty.call(oe,se)&&ce.indexOf(se)<0&&(de[se]=oe[se]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,se=Object.getOwnPropertySymbols(oe);Le{if(ce&&typeof ce=="object"){const se=ce,{label:Le,children:qe,key:vt,type:yt}=se,_t=ze(se,["label","children","key","type"]),Tt=vt!=null?vt:`tmp-${de}`;return qe||yt==="group"?yt==="group"?We.createElement(ye.BW,Object.assign({key:Tt},_t,{title:Le}),$e(qe)):We.createElement(Kt,Object.assign({key:Tt},_t,{title:Le}),$e(qe)):yt==="divider"?We.createElement(Ee,Object.assign({key:Tt},_t)):We.createElement(Xe,Object.assign({key:Tt},_t),Le)}return null}).filter(ce=>ce)}function pt(oe){return We.useMemo(()=>oe&&$e(oe),[oe])}var Ge=fe(64993),Lt=fe(17313),at=fe(8378),At=fe(13826),tt=fe(29878),Nt=fe(83116),tn=fe(37613),qt=oe=>{const{componentCls:ce,motionDurationSlow:de,horizontalLineHeight:se,colorSplit:Le,lineWidth:qe,lineType:vt,itemPaddingInline:yt}=oe;return{[`${ce}-horizontal`]:{lineHeight:se,border:0,borderBottom:`${qe}px ${vt} ${Le}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ce}-item, ${ce}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:yt},[`> ${ce}-item:hover, > ${ce}-item-active, > ${ce}-submenu ${ce}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ce}-item, ${ce}-submenu-title`]:{transition:[`border-color ${de}`,`background ${de}`].join(",")},[`${ce}-submenu-arrow`]:{display:"none"}}}},He=oe=>{let{componentCls:ce,menuArrowOffset:de}=oe;return{[`${ce}-rtl`]:{direction:"rtl"},[`${ce}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ce}-rtl${ce}-vertical, ${ce}-submenu-rtl ${ce}-vertical`]:{[`${ce}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${de})`},"&::after":{transform:`rotate(45deg) translateY(${de})`}}}}};const xe=oe=>Object.assign({},(0,Lt.oN)(oe));var nn=(oe,ce)=>{const{componentCls:de,itemColor:se,itemSelectedColor:Le,groupTitleColor:qe,itemBg:vt,subMenuItemBg:yt,itemSelectedBg:_t,activeBarHeight:Tt,activeBarWidth:zt,activeBarBorderWidth:Yt,motionDurationSlow:on,motionEaseInOut:ot,motionEaseOut:Ut,itemPaddingInline:Cn,motionDurationMid:nt,itemHoverColor:mt,lineType:Bt,colorSplit:xn,itemDisabledColor:bn,dangerItemColor:yn,dangerItemHoverColor:Nn,dangerItemSelectedColor:Vn,dangerItemActiveBg:In,dangerItemSelectedBg:lr,itemHoverBg:ur,itemActiveBg:gn,menuSubMenuBg:yr,horizontalItemSelectedColor:Pr,horizontalItemSelectedBg:zr,horizontalItemBorderRadius:jr,horizontalItemHoverBg:Ar,popupBg:Xr}=oe;return{[`${de}-${ce}, ${de}-${ce} > ${de}`]:{color:se,background:vt,[`&${de}-root:focus-visible`]:Object.assign({},xe(oe)),[`${de}-item-group-title`]:{color:qe},[`${de}-submenu-selected`]:{[`> ${de}-submenu-title`]:{color:Le}},[`${de}-item-disabled, ${de}-submenu-disabled`]:{color:`${bn} !important`},[`${de}-item:not(${de}-item-selected):not(${de}-submenu-selected)`]:{[`&:hover, > ${de}-submenu-title:hover`]:{color:mt}},[`&:not(${de}-horizontal)`]:{[`${de}-item:not(${de}-item-selected)`]:{"&:hover":{backgroundColor:ur},"&:active":{backgroundColor:gn}},[`${de}-submenu-title`]:{"&:hover":{backgroundColor:ur},"&:active":{backgroundColor:gn}}},[`${de}-item-danger`]:{color:yn,[`&${de}-item:hover`]:{[`&:not(${de}-item-selected):not(${de}-submenu-selected)`]:{color:Nn}},[`&${de}-item:active`]:{background:In}},[`${de}-item a`]:{"&, &:hover":{color:"inherit"}},[`${de}-item-selected`]:{color:Le,[`&${de}-item-danger`]:{color:Vn},"a, a:hover":{color:"inherit"}},[`& ${de}-item-selected`]:{backgroundColor:_t,[`&${de}-item-danger`]:{backgroundColor:lr}},[`${de}-item, ${de}-submenu-title`]:{[`&:not(${de}-item-disabled):focus-visible`]:Object.assign({},xe(oe))},[`&${de}-submenu > ${de}`]:{backgroundColor:yr},[`&${de}-popup > ${de}`]:{backgroundColor:Xr},[`&${de}-horizontal`]:Object.assign(Object.assign({},ce==="dark"?{borderBottom:0}:{}),{[`> ${de}-item, > ${de}-submenu`]:{top:Yt,marginTop:-Yt,marginBottom:0,borderRadius:jr,"&::after":{position:"absolute",insetInline:Cn,bottom:0,borderBottom:`${Tt}px solid transparent`,transition:`border-color ${on} ${ot}`,content:'""'},"&:hover, &-active, &-open":{background:Ar,"&::after":{borderBottomWidth:Tt,borderBottomColor:Pr}},"&-selected":{color:Pr,backgroundColor:zr,"&:hover":{backgroundColor:zr},"&::after":{borderBottomWidth:Tt,borderBottomColor:Pr}}}}),[`&${de}-root`]:{[`&${de}-inline, &${de}-vertical`]:{borderInlineEnd:`${Yt}px ${Bt} ${xn}`}},[`&${de}-inline`]:{[`${de}-sub${de}-inline`]:{background:yt},[`${de}-item, ${de}-submenu-title`]:Yt&&zt?{width:`calc(100% + ${Yt}px)`}:{},[`${de}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${zt}px solid ${Le}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${nt} ${Ut}`,`opacity ${nt} ${Ut}`].join(","),content:'""'},[`&${de}-item-danger`]:{"&::after":{borderInlineEndColor:Vn}}},[`${de}-selected, ${de}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${nt} ${ot}`,`opacity ${nt} ${ot}`].join(",")}}}}}};const Vt=oe=>{const{componentCls:ce,itemHeight:de,itemMarginInline:se,padding:Le,menuArrowSize:qe,marginXS:vt,itemMarginBlock:yt}=oe,_t=Le+qe+vt;return{[`${ce}-item`]:{position:"relative",overflow:"hidden"},[`${ce}-item, ${ce}-submenu-title`]:{height:de,lineHeight:`${de}px`,paddingInline:Le,overflow:"hidden",textOverflow:"ellipsis",marginInline:se,marginBlock:yt,width:`calc(100% - ${se*2}px)`},[`> ${ce}-item, > ${ce}-submenu > ${ce}-submenu-title`]:{height:de,lineHeight:`${de}px`},[`${ce}-item-group-list ${ce}-submenu-title, ${ce}-submenu-title`]:{paddingInlineEnd:_t}}};var Ue=oe=>{const{componentCls:ce,iconCls:de,itemHeight:se,colorTextLightSolid:Le,dropdownWidth:qe,controlHeightLG:vt,motionDurationMid:yt,motionEaseOut:_t,paddingXL:Tt,itemMarginInline:zt,fontSizeLG:Yt,motionDurationSlow:on,paddingXS:ot,boxShadowSecondary:Ut,collapsedWidth:Cn,collapsedIconSize:nt}=oe,mt={height:se,lineHeight:`${se}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[ce]:{"&-inline, &-vertical":Object.assign({[`&${ce}-root`]:{boxShadow:"none"}},Vt(oe))},[`${ce}-submenu-popup`]:{[`${ce}-vertical`]:Object.assign(Object.assign({},Vt(oe)),{boxShadow:Ut})}},{[`${ce}-submenu-popup ${ce}-vertical${ce}-sub`]:{minWidth:qe,maxHeight:`calc(100vh - ${vt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ce}-inline`]:{width:"100%",[`&${ce}-root`]:{[`${ce}-item, ${ce}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${on}`,`background ${on}`,`padding ${yt} ${_t}`].join(","),[`> ${ce}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ce}-sub${ce}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ce}-submenu > ${ce}-submenu-title`]:mt,[`& ${ce}-item-group-title`]:{paddingInlineStart:Tt}},[`${ce}-item`]:mt}},{[`${ce}-inline-collapsed`]:{width:Cn,[`&${ce}-root`]:{[`${ce}-item, ${ce}-submenu ${ce}-submenu-title`]:{[`> ${ce}-inline-collapsed-noicon`]:{fontSize:Yt,textAlign:"center"}}},[`> ${ce}-item, > ${ce}-item-group > ${ce}-item-group-list > ${ce}-item, > ${ce}-item-group > ${ce}-item-group-list > ${ce}-submenu > ${ce}-submenu-title, > ${ce}-submenu > ${ce}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Yt/2}px - ${zt}px)`,textOverflow:"clip",[` ${ce}-submenu-arrow, ${ce}-submenu-expand-icon `]:{opacity:0},[`${ce}-item-icon, ${de}`]:{margin:0,fontSize:nt,lineHeight:`${se}px`,"+ span":{display:"inline-block",opacity:0}}},[`${ce}-item-icon, ${de}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ce}-item-icon, ${de}`]:{display:"none"},"a, a:hover":{color:Le}},[`${ce}-item-group-title`]:Object.assign(Object.assign({},Lt.vS),{paddingInline:ot})}}]};const kt=oe=>{const{componentCls:ce,motionDurationSlow:de,motionDurationMid:se,motionEaseInOut:Le,motionEaseOut:qe,iconCls:vt,iconSize:yt,iconMarginInlineEnd:_t}=oe;return{[`${ce}-item, ${ce}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${de}`,`background ${de}`,`padding ${de} ${Le}`].join(","),[`${ce}-item-icon, ${vt}`]:{minWidth:yt,fontSize:yt,transition:[`font-size ${se} ${qe}`,`margin ${de} ${Le}`,`color ${de}`].join(","),"+ span":{marginInlineStart:_t,opacity:1,transition:[`opacity ${de} ${Le}`,`margin ${de}`,`color ${de}`].join(",")}},[`${ce}-item-icon`]:Object.assign({},(0,Lt.Ro)()),[`&${ce}-item-only-child`]:{[`> ${vt}, > ${ce}-item-icon`]:{marginInlineEnd:0}}},[`${ce}-item-disabled, ${ce}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${ce}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},dn=oe=>{const{componentCls:ce,motionDurationSlow:de,motionEaseInOut:se,borderRadius:Le,menuArrowSize:qe,menuArrowOffset:vt}=oe;return{[`${ce}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:oe.margin,width:qe,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${de} ${se}, opacity ${de}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:qe*.6,height:qe*.15,backgroundColor:"currentcolor",borderRadius:Le,transition:[`background ${de} ${se}`,`transform ${de} ${se}`,`top ${de} ${se}`,`color ${de} ${se}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${vt})`},"&::after":{transform:`rotate(-45deg) translateY(${vt})`}}}}},Et=oe=>{const{antCls:ce,componentCls:de,fontSize:se,motionDurationSlow:Le,motionDurationMid:qe,motionEaseInOut:vt,paddingXS:yt,padding:_t,colorSplit:Tt,lineWidth:zt,zIndexPopup:Yt,borderRadiusLG:on,subMenuItemBorderRadius:ot,menuArrowSize:Ut,menuArrowOffset:Cn,lineType:nt,menuPanelMaskInset:mt,groupTitleLineHeight:Bt,groupTitleFontSize:xn}=oe;return[{"":{[`${de}`]:Object.assign(Object.assign({},(0,Lt.dF)()),{"&-hidden":{display:"none"}})},[`${de}-submenu-hidden`]:{display:"none"}},{[de]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Lt.Wf)(oe)),(0,Lt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:se,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Le} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${de}-item`]:{flex:"none"}},[`${de}-item, ${de}-submenu, ${de}-submenu-title`]:{borderRadius:oe.itemBorderRadius},[`${de}-item-group-title`]:{padding:`${yt}px ${_t}px`,fontSize:xn,lineHeight:Bt,transition:`all ${Le}`},[`&-horizontal ${de}-submenu`]:{transition:[`border-color ${Le} ${vt}`,`background ${Le} ${vt}`].join(",")},[`${de}-submenu, ${de}-submenu-inline`]:{transition:[`border-color ${Le} ${vt}`,`background ${Le} ${vt}`,`padding ${qe} ${vt}`].join(",")},[`${de}-submenu ${de}-sub`]:{cursor:"initial",transition:[`background ${Le} ${vt}`,`padding ${Le} ${vt}`].join(",")},[`${de}-title-content`]:{transition:`color ${Le}`},[`${de}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${de}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Tt,borderStyle:nt,borderWidth:0,borderTopWidth:zt,marginBlock:zt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),kt(oe)),{[`${de}-item-group`]:{[`${de}-item-group-list`]:{margin:0,padding:0,[`${de}-item, ${de}-submenu-title`]:{paddingInline:`${se*2}px ${_t}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Yt,borderRadius:on,boxShadow:"none",transformOrigin:"0 0",[`&${de}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${mt}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:mt},"\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:oe.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:oe.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:oe.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:oe.paddingXS},[`> ${de}`]:Object.assign(Object.assign(Object.assign({borderRadius:on},kt(oe)),dn(oe)),{[`${de}-item, ${de}-submenu > ${de}-submenu-title`]:{borderRadius:ot},[`${de}-submenu-title::after`]:{transition:`transform ${Le} ${vt}`}})}}),dn(oe)),{[`&-inline-collapsed ${de}-submenu-arrow, &-inline ${de}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Cn})`},"&::after":{transform:`rotate(45deg) translateX(-${Cn})`}},[`${de}-submenu-open${de}-submenu-inline > ${de}-submenu-title > ${de}-submenu-arrow`]:{transform:`translateY(-${Ut*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Cn})`},"&::before":{transform:`rotate(45deg) translateX(${Cn})`}}})},{[`${ce}-layout-header`]:{[de]:{lineHeight:"inherit"}}}]};var $t=(oe,ce)=>(0,Nt.Z)("Menu",se=>{if(ce===!1)return[];const{colorBgElevated:Le,colorPrimary:qe,colorTextLightSolid:vt,controlHeightLG:yt,fontSize:_t,darkItemColor:Tt,darkDangerItemColor:zt,darkItemBg:Yt,darkSubMenuItemBg:on,darkItemSelectedColor:ot,darkItemSelectedBg:Ut,darkDangerItemSelectedBg:Cn,darkItemHoverBg:nt,darkGroupTitleColor:mt,darkItemHoverColor:Bt,darkItemDisabledColor:xn,darkDangerItemHoverColor:bn,darkDangerItemSelectedColor:yn,darkDangerItemActiveBg:Nn}=se,Vn=_t/7*5,In=(0,tn.TS)(se,{menuArrowSize:Vn,menuHorizontalHeight:yt*1.15,menuArrowOffset:`${Vn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Le}),lr=(0,tn.TS)(In,{itemColor:Tt,itemHoverColor:Bt,groupTitleColor:mt,itemSelectedColor:ot,itemBg:Yt,popupBg:Yt,subMenuItemBg:on,itemActiveBg:"transparent",itemSelectedBg:Ut,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:nt,itemDisabledColor:xn,dangerItemColor:zt,dangerItemHoverColor:bn,dangerItemSelectedColor:yn,dangerItemActiveBg:Nn,dangerItemSelectedBg:Cn,menuSubMenuBg:on,horizontalItemSelectedColor:vt,horizontalItemSelectedBg:qe});return[Et(In),qt(In),Ue(In),nn(In,"light"),nn(lr,"dark"),He(In),(0,at.Z)(In),(0,At.oN)(In,"slide-up"),(0,At.oN)(In,"slide-down"),(0,tt._y)(In,"zoom-big")]},se=>{const{colorPrimary:Le,colorError:qe,colorTextDisabled:vt,colorErrorBg:yt,colorText:_t,colorTextDescription:Tt,colorBgContainer:zt,colorFillAlter:Yt,colorFillContent:on,lineWidth:ot,lineWidthBold:Ut,controlItemBgActive:Cn,colorBgTextHover:nt,controlHeightLG:mt,lineHeight:Bt,colorBgElevated:xn,marginXXS:bn,padding:yn,fontSize:Nn,controlHeightSM:Vn,fontSizeLG:In,colorTextLightSolid:lr,colorErrorHover:ur}=se,gn=new Ge.C(lr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:se.zIndexPopupBase+50,radiusItem:se.borderRadiusLG,itemBorderRadius:se.borderRadiusLG,radiusSubMenuItem:se.borderRadiusSM,subMenuItemBorderRadius:se.borderRadiusSM,colorItemText:_t,itemColor:_t,colorItemTextHover:_t,itemHoverColor:_t,colorItemTextHoverHorizontal:Le,horizontalItemHoverColor:Le,colorGroupTitle:Tt,groupTitleColor:Tt,colorItemTextSelected:Le,itemSelectedColor:Le,colorItemTextSelectedHorizontal:Le,horizontalItemSelectedColor:Le,colorItemBg:zt,itemBg:zt,colorItemBgHover:nt,itemHoverBg:nt,colorItemBgActive:on,itemActiveBg:Cn,colorSubItemBg:Yt,subMenuItemBg:Yt,colorItemBgSelected:Cn,itemSelectedBg:Cn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Ut,activeBarHeight:Ut,colorActiveBarBorderSize:ot,activeBarBorderWidth:ot,colorItemTextDisabled:vt,itemDisabledColor:vt,colorDangerItemText:qe,dangerItemColor:qe,colorDangerItemTextHover:qe,dangerItemHoverColor:qe,colorDangerItemTextSelected:qe,dangerItemSelectedColor:qe,colorDangerItemBgActive:yt,dangerItemActiveBg:yt,colorDangerItemBgSelected:yt,dangerItemSelectedBg:yt,itemMarginInline:se.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:mt,groupTitleLineHeight:Bt,collapsedWidth:mt*2,popupBg:xn,itemMarginBlock:bn,itemPaddingInline:yn,horizontalLineHeight:`${mt*1.15}px`,iconSize:Nn,iconMarginInlineEnd:Vn-Nn,collapsedIconSize:In,groupTitleFontSize:Nn,darkItemDisabledColor:new Ge.C(lr).setAlpha(.25).toRgbString(),darkItemColor:gn,darkDangerItemColor:qe,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:lr,darkItemSelectedBg:Le,darkDangerItemSelectedBg:qe,darkItemHoverBg:"transparent",darkGroupTitleColor:gn,darkItemHoverColor:lr,darkDangerItemHoverColor:ur,darkDangerItemSelectedColor:lr,darkDangerItemActiveBg:qe}},{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"]]})(oe),wt=function(oe,ce){var de={};for(var se in oe)Object.prototype.hasOwnProperty.call(oe,se)&&ce.indexOf(se)<0&&(de[se]=oe[se]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,se=Object.getOwnPropertySymbols(oe);Le{var de,se;const Le=We.useContext(Me.Z),qe=Le||{},{getPrefixCls:vt,getPopupContainer:yt,direction:_t,menu:Tt}=We.useContext(_e.E_),zt=vt(),{prefixCls:Yt,className:on,style:ot,theme:Ut="light",expandIcon:Cn,_internalDisableMenuItemTitleTooltip:nt,inlineCollapsed:mt,siderCollapsed:Bt,items:xn,children:bn,rootClassName:yn,mode:Nn,selectable:Vn,onClick:In,overflowedIndicatorPopupClassName:lr}=oe,ur=wt(oe,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),gn=(0,lt.Z)(ur,["collapsedWidth"]),yr=pt(xn)||bn;(de=qe.validator)===null||de===void 0||de.call(qe,{mode:Nn});const Pr=(0,dt.useEvent)(function(){var er;In==null||In.apply(void 0,arguments),(er=qe.onClick)===null||er===void 0||er.call(qe)}),zr=qe.mode||Nn,jr=Vn!=null?Vn:qe.selectable,Ar=We.useMemo(()=>Bt!==void 0?Bt:mt,[mt,Bt]),Xr={horizontal:{motionName:`${zt}-slide-up`},inline:(0,Ze.Z)(zt),other:{motionName:`${zt}-zoom-big`}},fr=vt("menu",Yt||qe.prefixCls),[Gr,Yr]=$t(fr,!Le),Vr=be()(`${fr}-${Ut}`,Tt==null?void 0:Tt.className,on);let qr;if(typeof Cn=="function")qr=Cn;else if(Cn===null||Cn===!1)qr=null;else if(qe.expandIcon===null||qe.expandIcon===!1)qr=null;else{const er=Cn!=null?Cn:qe.expandIcon;qr=(0,Ke.Tm)(er,{className:be()(`${fr}-submenu-expand-icon`,(0,Ke.l$)(er)?(se=er.props)===null||se===void 0?void 0:se.className:"")})}const Hr=We.useMemo(()=>({prefixCls:fr,inlineCollapsed:Ar||!1,direction:_t,firstLevel:!0,theme:Ut,mode:zr,disableMenuItemTitleTooltip:nt}),[fr,Ar,_t,nt,Ut]);return Gr(We.createElement(Me.Z.Provider,{value:null},We.createElement(Ve.Provider,{value:Hr},We.createElement(ye.ZP,Object.assign({getPopupContainer:yt,overflowedIndicator:We.createElement(Je.Z,null),overflowedIndicatorPopupClassName:be()(fr,`${fr}-${Ut}`,lr),mode:zr,selectable:jr,onClick:Pr},gn,{inlineCollapsed:Ar,style:Object.assign(Object.assign({},Tt==null?void 0:Tt.style),ot),className:Vr,prefixCls:fr,direction:_t,defaultMotions:Xr,expandIcon:qr,ref:ce,rootClassName:be()(yn,Yr)}),yr))))});const ve=(0,We.forwardRef)((oe,ce)=>{const de=(0,We.useRef)(null),se=We.useContext(Te.D);return(0,We.useImperativeHandle)(ce,()=>({menu:de.current,focus:Le=>{var qe;(qe=de.current)===null||qe===void 0||qe.focus(Le)}})),We.createElement(Pt,Object.assign({ref:de},oe,se))});ve.Item=Xe,ve.SubMenu=Kt,ve.Divider=Ee,ve.ItemGroup=ye.BW;var le=ve},5112:function(fn,Jt,fe){"use strict";fe.d(Jt,{ZP:function(){return He}});var ye=fe(92310),We=fe.n(ye),Te=fe(18929),it=fe(26112),be=fe(59301),_e=fe(36355),Re=fe(19716);const Ce=be.createContext(null),Ee=Ce.Provider;var Fe=Ce;const lt=be.createContext(null),De=lt.Provider;var Ke=fe(5630),ft=fe(8654),Ve=fe(1684),rt=fe(32441),Xe=fe(17313),St=fe(83116),Kt=fe(37613);const Je=xe=>{const{componentCls:gt,antCls:nn}=xe,Vt=`${gt}-group`;return{[Vt]:Object.assign(Object.assign({},(0,Xe.Wf)(xe)),{display:"inline-block",fontSize:0,[`&${Vt}-rtl`]:{direction:"rtl"},[`${nn}-badge ${nn}-badge-count`]:{zIndex:1},[`> ${nn}-badge:not(:first-child) > ${nn}-button-wrapper`]:{borderInlineStart:"none"}})}},dt=xe=>{const{componentCls:gt,wrapperMarginInlineEnd:nn,colorPrimary:Vt,radioSize:Qe,motionDurationSlow:Ue,motionDurationMid:kt,motionEaseInOutCirc:dn,colorBgContainer:Et,colorBorder:$t,lineWidth:wt,dotSize:Dt,colorBgContainerDisabled:Pt,colorTextDisabled:ve,paddingXS:le,dotColorDisabled:oe,lineType:ce,radioDotDisabledSize:de,wireframe:se,colorWhite:Le}=xe,qe=`${gt}-inner`;return{[`${gt}-wrapper`]:Object.assign(Object.assign({},(0,Xe.Wf)(xe)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:nn,cursor:"pointer",[`&${gt}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:xe.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${gt}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${wt}px ${ce} ${Vt}`,borderRadius:"50%",visibility:"hidden",content:'""'},[gt]:Object.assign(Object.assign({},(0,Xe.Wf)(xe)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${gt}-wrapper:hover &, &:hover ${qe}`]:{borderColor:Vt},[`${gt}-input:focus-visible + ${qe}`]:Object.assign({},(0,Xe.oN)(xe)),[`${gt}:hover::after, ${gt}-wrapper:hover &::after`]:{visibility:"visible"},[`${gt}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:Qe,height:Qe,marginBlockStart:Qe/-2,marginInlineStart:Qe/-2,backgroundColor:se?Vt:Le,borderBlockStart:0,borderInlineStart:0,borderRadius:Qe,transform:"scale(0)",opacity:0,transition:`all ${Ue} ${dn}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:Qe,height:Qe,backgroundColor:Et,borderColor:$t,borderStyle:"solid",borderWidth:wt,borderRadius:"50%",transition:`all ${kt}`},[`${gt}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${gt}-checked`]:{[qe]:{borderColor:Vt,backgroundColor:se?Et:Vt,"&::after":{transform:`scale(${Dt/Qe})`,opacity:1,transition:`all ${Ue} ${dn}`}}},[`${gt}-disabled`]:{cursor:"not-allowed",[qe]:{backgroundColor:Pt,borderColor:$t,cursor:"not-allowed","&::after":{backgroundColor:oe}},[`${gt}-input`]:{cursor:"not-allowed"},[`${gt}-disabled + span`]:{color:ve,cursor:"not-allowed"},[`&${gt}-checked`]:{[qe]:{"&::after":{transform:`scale(${de/Qe})`}}}},[`span${gt} + *`]:{paddingInlineStart:le,paddingInlineEnd:le}})}},Ze=xe=>{const{buttonColor:gt,controlHeight:nn,componentCls:Vt,lineWidth:Qe,lineType:Ue,colorBorder:kt,motionDurationSlow:dn,motionDurationMid:Et,buttonPaddingInline:$t,fontSize:wt,buttonBg:Dt,fontSizeLG:Pt,controlHeightLG:ve,controlHeightSM:le,paddingXS:oe,borderRadius:ce,borderRadiusSM:de,borderRadiusLG:se,buttonCheckedBg:Le,buttonSolidCheckedColor:qe,colorTextDisabled:vt,colorBgContainerDisabled:yt,buttonCheckedBgDisabled:_t,buttonCheckedColorDisabled:Tt,colorPrimary:zt,colorPrimaryHover:Yt,colorPrimaryActive:on,buttonSolidCheckedBg:ot,buttonSolidCheckedHoverBg:Ut,buttonSolidCheckedActiveBg:Cn}=xe;return{[`${Vt}-button-wrapper`]:{position:"relative",display:"inline-block",height:nn,margin:0,paddingInline:$t,paddingBlock:0,color:gt,fontSize:wt,lineHeight:`${nn-Qe*2}px`,background:Dt,border:`${Qe}px ${Ue} ${kt}`,borderBlockStartWidth:Qe+.02,borderInlineStartWidth:0,borderInlineEndWidth:Qe,cursor:"pointer",transition:[`color ${Et}`,`background ${Et}`,`box-shadow ${Et}`].join(","),a:{color:gt},[`> ${Vt}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-Qe,insetInlineStart:-Qe,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:Qe,paddingInline:0,backgroundColor:kt,transition:`background-color ${dn}`,content:'""'}},"&:first-child":{borderInlineStart:`${Qe}px ${Ue} ${kt}`,borderStartStartRadius:ce,borderEndStartRadius:ce},"&:last-child":{borderStartEndRadius:ce,borderEndEndRadius:ce},"&:first-child:last-child":{borderRadius:ce},[`${Vt}-group-large &`]:{height:ve,fontSize:Pt,lineHeight:`${ve-Qe*2}px`,"&:first-child":{borderStartStartRadius:se,borderEndStartRadius:se},"&:last-child":{borderStartEndRadius:se,borderEndEndRadius:se}},[`${Vt}-group-small &`]:{height:le,paddingInline:oe-Qe,paddingBlock:0,lineHeight:`${le-Qe*2}px`,"&:first-child":{borderStartStartRadius:de,borderEndStartRadius:de},"&:last-child":{borderStartEndRadius:de,borderEndEndRadius:de}},"&:hover":{position:"relative",color:zt},"&:has(:focus-visible)":Object.assign({},(0,Xe.oN)(xe)),[`${Vt}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${Vt}-button-wrapper-disabled)`]:{zIndex:1,color:zt,background:Le,borderColor:zt,"&::before":{backgroundColor:zt},"&:first-child":{borderColor:zt},"&:hover":{color:Yt,borderColor:Yt,"&::before":{backgroundColor:Yt}},"&:active":{color:on,borderColor:on,"&::before":{backgroundColor:on}}},[`${Vt}-group-solid &-checked:not(${Vt}-button-wrapper-disabled)`]:{color:qe,background:ot,borderColor:ot,"&:hover":{color:qe,background:Ut,borderColor:Ut},"&:active":{color:qe,background:Cn,borderColor:Cn}},"&-disabled":{color:vt,backgroundColor:yt,borderColor:kt,cursor:"not-allowed","&:first-child, &:hover":{color:vt,backgroundColor:yt,borderColor:kt}},[`&-disabled${Vt}-button-wrapper-checked`]:{color:Tt,backgroundColor:_t,borderColor:kt,boxShadow:"none"}}}},Me=xe=>xe-4*2;var ze=(0,St.Z)("Radio",xe=>{const{controlOutline:gt,controlOutlineWidth:nn,radioSize:Vt}=xe,Qe=`0 0 0 ${nn}px ${gt}`,Ue=Qe,kt=Me(Vt),dn=(0,Kt.TS)(xe,{radioDotDisabledSize:kt,radioFocusShadow:Qe,radioButtonFocusShadow:Ue});return[Je(dn),dt(dn),Ze(dn)]},xe=>{const{wireframe:gt,padding:nn,marginXS:Vt,lineWidth:Qe,fontSizeLG:Ue,colorText:kt,colorBgContainer:dn,colorTextDisabled:Et,controlItemBgActiveDisabled:$t,colorTextLightSolid:wt,colorPrimary:Dt,colorPrimaryHover:Pt,colorPrimaryActive:ve}=xe,le=4,oe=Ue,ce=gt?Me(oe):oe-(le+Qe)*2;return{radioSize:oe,dotSize:ce,dotColorDisabled:Et,buttonSolidCheckedColor:wt,buttonSolidCheckedBg:Dt,buttonSolidCheckedHoverBg:Pt,buttonSolidCheckedActiveBg:ve,buttonBg:dn,buttonCheckedBg:dn,buttonColor:kt,buttonCheckedBgDisabled:$t,buttonCheckedColorDisabled:Et,buttonPaddingInline:nn-Qe,wrapperMarginInlineEnd:Vt}}),$e=fe(14088),pt=fe(4572),Ge=function(xe,gt){var nn={};for(var Vt in xe)Object.prototype.hasOwnProperty.call(xe,Vt)&>.indexOf(Vt)<0&&(nn[Vt]=xe[Vt]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,Vt=Object.getOwnPropertySymbols(xe);Qe{var nn,Vt;const Qe=be.useContext(Fe),Ue=be.useContext(lt),{getPrefixCls:kt,direction:dn,radio:Et}=be.useContext(_e.E_),$t=be.useRef(null),wt=(0,ft.sQ)(gt,$t),{isFormItemInput:Dt}=be.useContext(rt.aM),Pt=on=>{var ot,Ut;(ot=xe.onChange)===null||ot===void 0||ot.call(xe,on),(Ut=Qe==null?void 0:Qe.onChange)===null||Ut===void 0||Ut.call(Qe,on)},{prefixCls:ve,className:le,rootClassName:oe,children:ce,style:de}=xe,se=Ge(xe,["prefixCls","className","rootClassName","children","style"]),Le=kt("radio",ve),qe=((Qe==null?void 0:Qe.optionType)||Ue)==="button",vt=qe?`${Le}-button`:Le,[yt,_t]=ze(Le),Tt=Object.assign({},se),zt=be.useContext(Ve.Z);Qe&&(Tt.name=Qe.name,Tt.onChange=Pt,Tt.checked=xe.value===Qe.value,Tt.disabled=(nn=Tt.disabled)!==null&&nn!==void 0?nn:Qe.disabled),Tt.disabled=(Vt=Tt.disabled)!==null&&Vt!==void 0?Vt:zt;const Yt=We()(`${vt}-wrapper`,{[`${vt}-wrapper-checked`]:Tt.checked,[`${vt}-wrapper-disabled`]:Tt.disabled,[`${vt}-wrapper-rtl`]:dn==="rtl",[`${vt}-wrapper-in-form-item`]:Dt},Et==null?void 0:Et.className,le,oe,_t);return yt(be.createElement($e.Z,{component:"Radio",disabled:Tt.disabled},be.createElement("label",{className:Yt,style:Object.assign(Object.assign({},Et==null?void 0:Et.style),de),onMouseEnter:xe.onMouseEnter,onMouseLeave:xe.onMouseLeave},be.createElement(Ke.Z,Object.assign({},Tt,{className:We()(Tt.className,!qe&&pt.A),type:"radio",prefixCls:vt,ref:wt})),ce!==void 0?be.createElement("span",null,ce):null)))};var At=be.forwardRef(Lt);const tt=be.forwardRef((xe,gt)=>{const{getPrefixCls:nn,direction:Vt}=be.useContext(_e.E_),[Qe,Ue]=(0,Te.Z)(xe.defaultValue,{value:xe.value}),kt=ot=>{const Ut=Qe,Cn=ot.target.value;"value"in xe||Ue(Cn);const{onChange:nt}=xe;nt&&Cn!==Ut&&nt(ot)},{prefixCls:dn,className:Et,rootClassName:$t,options:wt,buttonStyle:Dt="outline",disabled:Pt,children:ve,size:le,style:oe,id:ce,onMouseEnter:de,onMouseLeave:se,onFocus:Le,onBlur:qe}=xe,vt=nn("radio",dn),yt=`${vt}-group`,[_t,Tt]=ze(vt);let zt=ve;wt&&wt.length>0&&(zt=wt.map(ot=>typeof ot=="string"||typeof ot=="number"?be.createElement(At,{key:ot.toString(),prefixCls:vt,disabled:Pt,value:ot,checked:Qe===ot},ot):be.createElement(At,{key:`radio-group-value-options-${ot.value}`,prefixCls:vt,disabled:ot.disabled||Pt,value:ot.value,checked:Qe===ot.value,title:ot.title,style:ot.style},ot.label)));const Yt=(0,Re.Z)(le),on=We()(yt,`${yt}-${Dt}`,{[`${yt}-${Yt}`]:Yt,[`${yt}-rtl`]:Vt==="rtl"},Et,$t,Tt);return _t(be.createElement("div",Object.assign({},(0,it.Z)(xe,{aria:!0,data:!0}),{className:on,style:oe,onMouseEnter:de,onMouseLeave:se,onFocus:Le,onBlur:qe,id:ce,ref:gt}),be.createElement(Ee,{value:{onChange:kt,value:Qe,disabled:xe.disabled,name:xe.name,optionType:xe.optionType}},zt)))});var Nt=be.memo(tt),tn=function(xe,gt){var nn={};for(var Vt in xe)Object.prototype.hasOwnProperty.call(xe,Vt)&>.indexOf(Vt)<0&&(nn[Vt]=xe[Vt]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,Vt=Object.getOwnPropertySymbols(xe);Qe{const{getPrefixCls:nn}=be.useContext(_e.E_),{prefixCls:Vt}=xe,Qe=tn(xe,["prefixCls"]),Ue=nn("radio",Vt);return be.createElement(De,{value:"button"},be.createElement(At,Object.assign({prefixCls:Ue},Qe,{type:"radio",ref:gt})))};var qt=be.forwardRef(Xt);const Ot=At;Ot.Button=qt,Ot.Group=Nt,Ot.__ANT_RADIO=!0;var He=Ot},57809:function(fn,Jt,fe){"use strict";var ye=fe(92310),We=fe.n(ye),Te=fe(77861),it=fe(2738),be=fe(59301),_e=fe(53487),Re=fe(62892),Ce=fe(19080),Ee=fe(36355),Fe=fe(1684),lt=fe(93891),De=fe(19716),Ke=fe(32441),ft=fe(33234),Ve=fe(14154),rt=fe(58582),Xe=fe(84443),St=fe(66339),Kt=function(ze,$e){var pt={};for(var Ge in ze)Object.prototype.hasOwnProperty.call(ze,Ge)&&$e.indexOf(Ge)<0&&(pt[Ge]=ze[Ge]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,Ge=Object.getOwnPropertySymbols(ze);Lt{var pt,{prefixCls:Ge,bordered:Lt=!0,className:at,rootClassName:At,getPopupContainer:tt,popupClassName:Nt,dropdownClassName:tn,listHeight:Xt=256,placement:qt,listItemHeight:Ot=24,size:He,disabled:xe,notFoundContent:gt,status:nn,builtinPlacements:Vt,dropdownMatchSelectWidth:Qe,popupMatchSelectWidth:Ue,direction:kt,style:dn,allowClear:Et}=ze,$t=Kt(ze,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:wt,getPrefixCls:Dt,renderEmpty:Pt,direction:ve,virtual:le,popupMatchSelectWidth:oe,popupOverflow:ce,select:de}=be.useContext(Ee.E_),se=Dt("select",Ge),Le=Dt(),qe=kt!=null?kt:ve,{compactSize:vt,compactItemClassnames:yt}=(0,ft.ri)(se,qe),[_t,Tt]=(0,Ve.Z)(se),zt=be.useMemo(()=>{const{mode:Xr}=$t;if(Xr!=="combobox")return Xr===Je?"combobox":Xr},[$t.mode]),Yt=zt==="multiple"||zt==="tags",on=(0,Xe.Z)($t.suffixIcon,$t.showArrow),ot=(pt=Ue!=null?Ue:Qe)!==null&&pt!==void 0?pt:oe,{status:Ut,hasFeedback:Cn,isFormItemInput:nt,feedbackIcon:mt}=be.useContext(Ke.aM),Bt=(0,Ce.F)(Ut,nn);let xn;gt!==void 0?xn=gt:zt==="combobox"?xn=null:xn=(Pt==null?void 0:Pt("Select"))||be.createElement(lt.Z,{componentName:"Select"});const{suffixIcon:bn,itemIcon:yn,removeIcon:Nn,clearIcon:Vn}=(0,St.Z)(Object.assign(Object.assign({},$t),{multiple:Yt,hasFeedback:Cn,feedbackIcon:mt,showSuffixIcon:on,prefixCls:se,showArrow:$t.showArrow,componentName:"Select"})),In=Et===!0?{clearIcon:Vn}:Et,lr=(0,it.Z)($t,["suffixIcon","itemIcon"]),ur=We()(Nt||tn,{[`${se}-dropdown-${qe}`]:qe==="rtl"},At,Tt),gn=(0,De.Z)(Xr=>{var fr;return(fr=He!=null?He:vt)!==null&&fr!==void 0?fr:Xr}),yr=be.useContext(Fe.Z),Pr=xe!=null?xe:yr,zr=We()({[`${se}-lg`]:gn==="large",[`${se}-sm`]:gn==="small",[`${se}-rtl`]:qe==="rtl",[`${se}-borderless`]:!Lt,[`${se}-in-form-item`]:nt},(0,Ce.Z)(se,Bt,Cn),yt,de==null?void 0:de.className,at,At,Tt),jr=be.useMemo(()=>qt!==void 0?qt:qe==="rtl"?"bottomRight":"bottomLeft",[qt,qe]),Ar=(0,rt.Z)(Vt,ce);return _t(be.createElement(Te.ZP,Object.assign({ref:$e,virtual:le,showSearch:de==null?void 0:de.showSearch},lr,{style:Object.assign(Object.assign({},de==null?void 0:de.style),dn),dropdownMatchSelectWidth:ot,builtinPlacements:Ar,transitionName:(0,Re.m)(Le,"slide-up",$t.transitionName),listHeight:Xt,listItemHeight:Ot,mode:zt,prefixCls:se,placement:jr,direction:qe,suffixIcon:bn,menuItemSelectedIcon:yn,removeIcon:Nn,allowClear:In,notFoundContent:xn,className:zr,getPopupContainer:tt||wt,dropdownClassName:ur,disabled:Pr})))},Ze=be.forwardRef(dt),Me=(0,_e.Z)(Ze);Ze.SECRET_COMBOBOX_MODE_DO_NOT_USE=Je,Ze.Option=Te.Wx,Ze.OptGroup=Te.Xo,Ze._InternalPanelDoNotUseOrYouWillBeFired=Me,Jt.default=Ze},14154:function(fn,Jt,fe){"use strict";fe.d(Jt,{Z:function(){return Ze}});var ye=fe(17313),We=fe(74207),Te=fe(37613),it=fe(83116),be=fe(13826),_e=fe(92899);const Re=Me=>{const{optionHeight:ze,optionFontSize:$e,optionLineHeight:pt,optionPadding:Ge}=Me;return{position:"relative",display:"block",minHeight:ze,padding:Ge,color:Me.colorText,fontWeight:"normal",fontSize:$e,lineHeight:pt,boxSizing:"border-box"}};var Ee=Me=>{const{antCls:ze,componentCls:$e}=Me,pt=`${$e}-item`,Ge=`&${ze}-slide-up-enter${ze}-slide-up-enter-active`,Lt=`&${ze}-slide-up-appear${ze}-slide-up-appear-active`,at=`&${ze}-slide-up-leave${ze}-slide-up-leave-active`,At=`${$e}-dropdown-placement-`;return[{[`${$e}-dropdown`]:Object.assign(Object.assign({},(0,ye.Wf)(Me)),{position:"absolute",top:-9999,zIndex:Me.zIndexPopup,boxSizing:"border-box",padding:Me.paddingXXS,overflow:"hidden",fontSize:Me.fontSize,fontVariant:"initial",backgroundColor:Me.colorBgElevated,borderRadius:Me.borderRadiusLG,outline:"none",boxShadow:Me.boxShadowSecondary,[` ${Ge}${At}bottomLeft, ${Lt}${At}bottomLeft `]:{animationName:be.fJ},[` ${Ge}${At}topLeft, ${Lt}${At}topLeft, ${Ge}${At}topRight, ${Lt}${At}topRight `]:{animationName:be.Qt},[`${at}${At}bottomLeft`]:{animationName:be.Uw},[` ${at}${At}topLeft, ${at}${At}topRight `]:{animationName:be.ly},"&-hidden":{display:"none"},[`${pt}`]:Object.assign(Object.assign({},Re(Me)),{cursor:"pointer",transition:`background ${Me.motionDurationSlow} ease`,borderRadius:Me.borderRadiusSM,"&-group":{color:Me.colorTextDescription,fontSize:Me.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},ye.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${pt}-option-disabled)`]:{backgroundColor:Me.optionActiveBg},[`&-selected:not(${pt}-option-disabled)`]:{color:Me.optionSelectedColor,fontWeight:Me.optionSelectedFontWeight,backgroundColor:Me.optionSelectedBg,[`${pt}-option-state`]:{color:Me.colorPrimary}},"&-disabled":{[`&${pt}-option-selected`]:{backgroundColor:Me.colorBgContainerDisabled},color:Me.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Me.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,be.oN)(Me,"slide-up"),(0,be.oN)(Me,"slide-down"),(0,_e.Fm)(Me,"move-up"),(0,_e.Fm)(Me,"move-down")]};const Fe=2,lt=Me=>{let{controlHeightSM:ze,controlHeight:$e,lineWidth:pt}=Me;const Ge=($e-ze)/2-pt,Lt=Math.ceil(Ge/2);return[Ge,Lt]};function De(Me,ze){const{componentCls:$e,iconCls:pt}=Me,Ge=`${$e}-selection-overflow`,Lt=Me.multipleSelectItemHeight,[at]=lt(Me),At=ze?`${$e}-${ze}`:"";return{[`${$e}-multiple${At}`]:{fontSize:Me.fontSize,[Ge]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${$e}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${at-Fe}px ${Fe*2}px`,borderRadius:Me.borderRadius,[`${$e}-show-search&`]:{cursor:"text"},[`${$e}-disabled&`]:{background:Me.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Fe}px 0`,lineHeight:`${Lt}px`,visibility:"hidden",content:'"\\a0"'}},[` &${$e}-show-arrow ${$e}-selector, &${$e}-allow-clear ${$e}-selector `]:{paddingInlineEnd:Me.fontSizeIcon+Me.controlPaddingHorizontal},[`${$e}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Lt,marginTop:Fe,marginBottom:Fe,lineHeight:`${Lt-Me.lineWidth*2}px`,background:Me.multipleItemBg,border:`${Me.lineWidth}px ${Me.lineType} ${Me.multipleItemBorderColor}`,borderRadius:Me.borderRadiusSM,cursor:"default",transition:`font-size ${Me.motionDurationSlow}, line-height ${Me.motionDurationSlow}, height ${Me.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Fe*2,paddingInlineStart:Me.paddingXS,paddingInlineEnd:Me.paddingXS/2,[`${$e}-disabled&`]:{color:Me.multipleItemColorDisabled,borderColor:Me.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Me.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,ye.Ro)()),{display:"inline-flex",alignItems:"center",color:Me.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${pt}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Me.colorIconHover}})},[`${Ge}-item + ${Ge}-item`]:{[`${$e}-selection-search`]:{marginInlineStart:0}},[`${$e}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Me.inputPaddingHorizontalBase-at,"\n &-input,\n &-mirror\n ":{height:Lt,fontFamily:Me.fontFamily,lineHeight:`${Lt}px`,transition:`all ${Me.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${$e}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Me.inputPaddingHorizontalBase,insetInlineEnd:Me.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Me.motionDurationSlow}`}}}}var ft=Me=>{const{componentCls:ze}=Me,$e=(0,Te.TS)(Me,{controlHeight:Me.controlHeightSM,multipleSelectItemHeight:Me.controlHeightXS,borderRadius:Me.borderRadiusSM,borderRadiusSM:Me.borderRadiusXS}),pt=(0,Te.TS)(Me,{fontSize:Me.fontSizeLG,controlHeight:Me.controlHeightLG,multipleSelectItemHeight:Me.multipleItemHeightLG,borderRadius:Me.borderRadiusLG,borderRadiusSM:Me.borderRadius}),[,Ge]=lt(Me);return[De(Me),De($e,"sm"),{[`${ze}-multiple${ze}-sm`]:{[`${ze}-selection-placeholder`]:{insetInline:Me.controlPaddingHorizontalSM-Me.lineWidth},[`${ze}-selection-search`]:{marginInlineStart:Ge}}},De(pt,"lg")]};function Ve(Me,ze){const{componentCls:$e,inputPaddingHorizontalBase:pt,borderRadius:Ge}=Me,Lt=Me.controlHeight-Me.lineWidth*2,at=Math.ceil(Me.fontSize*1.25),At=ze?`${$e}-${ze}`:"";return{[`${$e}-single${At}`]:{fontSize:Me.fontSize,[`${$e}-selector`]:Object.assign(Object.assign({},(0,ye.Wf)(Me)),{display:"flex",borderRadius:Ge,[`${$e}-selection-search`]:{position:"absolute",top:0,insetInlineStart:pt,insetInlineEnd:pt,bottom:0,"&-input":{width:"100%"}},[` ${$e}-selection-item, ${$e}-selection-placeholder `]:{padding:0,lineHeight:`${Lt}px`,transition:`all ${Me.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Lt}px`}},[`${$e}-selection-item`]:{position:"relative",userSelect:"none"},[`${$e}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${$e}-selection-item:after`,`${$e}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${$e}-show-arrow ${$e}-selection-item, &${$e}-show-arrow ${$e}-selection-placeholder `]:{paddingInlineEnd:at},[`&${$e}-open ${$e}-selection-item`]:{color:Me.colorTextPlaceholder},[`&:not(${$e}-customize-input)`]:{[`${$e}-selector`]:{width:"100%",height:Me.controlHeight,padding:`0 ${pt}px`,[`${$e}-selection-search-input`]:{height:Lt},"&:after":{lineHeight:`${Lt}px`}}},[`&${$e}-customize-input`]:{[`${$e}-selector`]:{"&:after":{display:"none"},[`${$e}-selection-search`]:{position:"static",width:"100%"},[`${$e}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${pt}px`,"&:after":{display:"none"}}}}}}}function rt(Me){const{componentCls:ze}=Me,$e=Me.controlPaddingHorizontalSM-Me.lineWidth;return[Ve(Me),Ve((0,Te.TS)(Me,{controlHeight:Me.controlHeightSM,borderRadius:Me.borderRadiusSM}),"sm"),{[`${ze}-single${ze}-sm`]:{[`&:not(${ze}-customize-input)`]:{[`${ze}-selection-search`]:{insetInlineStart:$e,insetInlineEnd:$e},[`${ze}-selector`]:{padding:`0 ${$e}px`},[`&${ze}-show-arrow ${ze}-selection-search`]:{insetInlineEnd:$e+Me.fontSize*1.5},[` &${ze}-show-arrow ${ze}-selection-item, &${ze}-show-arrow ${ze}-selection-placeholder `]:{paddingInlineEnd:Me.fontSize*1.5}}}},Ve((0,Te.TS)(Me,{controlHeight:Me.singleItemHeightLG,fontSize:Me.fontSizeLG,borderRadius:Me.borderRadiusLG}),"lg")]}const Xe=Me=>{const{componentCls:ze,selectorBg:$e}=Me;return{position:"relative",backgroundColor:$e,border:`${Me.lineWidth}px ${Me.lineType} ${Me.colorBorder}`,transition:`all ${Me.motionDurationMid} ${Me.motionEaseInOut}`,input:{cursor:"pointer"},[`${ze}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${ze}-disabled&`]:{color:Me.colorTextDisabled,background:Me.colorBgContainerDisabled,cursor:"not-allowed",[`${ze}-multiple&`]:{background:Me.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},St=function(Me,ze){let $e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:pt,borderHoverColor:Ge,outlineColor:Lt,antCls:at}=ze,At=$e?{[`${pt}-selector`]:{borderColor:Ge}}:{};return{[Me]:{[`&:not(${pt}-disabled):not(${pt}-customize-input):not(${at}-pagination-size-changer)`]:Object.assign(Object.assign({},At),{[`${pt}-focused& ${pt}-selector`]:{borderColor:Ge,boxShadow:`0 0 0 ${ze.controlOutlineWidth}px ${Lt}`,outline:0},[`&:hover ${pt}-selector`]:{borderColor:Ge}})}}},Kt=Me=>{const{componentCls:ze}=Me;return{[`${ze}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},Je=Me=>{const{componentCls:ze,inputPaddingHorizontalBase:$e,iconCls:pt}=Me;return{[ze]:Object.assign(Object.assign({},(0,ye.Wf)(Me)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${ze}-customize-input) ${ze}-selector`]:Object.assign(Object.assign({},Xe(Me)),Kt(Me)),[`${ze}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},ye.vS),[`${ze}-selection-placeholder`]:Object.assign(Object.assign({},ye.vS),{flex:1,color:Me.colorTextPlaceholder,pointerEvents:"none"}),[`${ze}-arrow`]:Object.assign(Object.assign({},(0,ye.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:$e,height:Me.fontSizeIcon,marginTop:-Me.fontSizeIcon/2,color:Me.colorTextQuaternary,fontSize:Me.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[pt]:{verticalAlign:"top",transition:`transform ${Me.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${ze}-suffix)`]:{pointerEvents:"auto"}},[`${ze}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${ze}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:$e,zIndex:1,display:"inline-block",width:Me.fontSizeIcon,height:Me.fontSizeIcon,marginTop:-Me.fontSizeIcon/2,color:Me.colorTextQuaternary,fontSize:Me.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Me.clearBg,cursor:"pointer",opacity:0,transition:`color ${Me.motionDurationMid} ease, opacity ${Me.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Me.colorTextTertiary}},"&:hover":{[`${ze}-clear`]:{opacity:1}}}),[`${ze}-has-feedback`]:{[`${ze}-clear`]:{insetInlineEnd:$e+Me.fontSize+Me.paddingXS}}}},dt=Me=>{const{componentCls:ze}=Me;return[{[ze]:{[`&-borderless ${ze}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${ze}-in-form-item`]:{width:"100%"}}},Je(Me),rt(Me),ft(Me),Ee(Me),{[`${ze}-rtl`]:{direction:"rtl"}},St(ze,(0,Te.TS)(Me,{borderHoverColor:Me.colorPrimaryHover,outlineColor:Me.controlOutline})),St(`${ze}-status-error`,(0,Te.TS)(Me,{borderHoverColor:Me.colorErrorHover,outlineColor:Me.colorErrorOutline}),!0),St(`${ze}-status-warning`,(0,Te.TS)(Me,{borderHoverColor:Me.colorWarningHover,outlineColor:Me.colorWarningOutline}),!0),(0,We.c)(Me,{borderElCls:`${ze}-selector`,focusElCls:`${ze}-focused`})]};var Ze=(0,it.Z)("Select",(Me,ze)=>{let{rootPrefixCls:$e}=ze;const pt=(0,Te.TS)(Me,{rootPrefixCls:$e,inputPaddingHorizontalBase:Me.paddingSM-1,multipleSelectItemHeight:Me.multipleItemHeight});return[dt(pt)]},Me=>{const{fontSize:ze,lineHeight:$e,controlHeight:pt,controlPaddingHorizontal:Ge,zIndexPopupBase:Lt,colorText:at,fontWeightStrong:At,controlItemBgActive:tt,controlItemBgHover:Nt,colorBgContainer:tn,colorFillSecondary:Xt,controlHeightLG:qt,controlHeightSM:Ot,colorBgContainerDisabled:He,colorTextDisabled:xe}=Me;return{zIndexPopup:Lt+50,optionSelectedColor:at,optionSelectedFontWeight:At,optionSelectedBg:tt,optionActiveBg:Nt,optionPadding:`${(pt-ze*$e)/2}px ${Ge}px`,optionFontSize:ze,optionLineHeight:$e,optionHeight:pt,selectorBg:tn,clearBg:tn,singleItemHeightLG:qt,multipleItemBg:Xt,multipleItemBorderColor:"transparent",multipleItemHeight:Ot,multipleItemHeightLG:pt,multipleSelectorBgDisabled:He,multipleItemColorDisabled:xe,multipleItemBorderColorDisabled:"transparent"}})},58582:function(fn,Jt,fe){"use strict";fe.d(Jt,{Z:function(){return We}});const ye=Te=>{const be={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Te==="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 We(Te,it){return Te||ye(it)}},84443:function(fn,Jt,fe){"use strict";fe.d(Jt,{Z:function(){return ye}});function ye(We,Te){return Te!==void 0?Te:We!==null}},66339:function(fn,Jt,fe){"use strict";fe.d(Jt,{Z:function(){return Ce}});var ye=fe(40001),We=fe(19248),Te=fe(99267),it=fe(84105),be=fe(58617),_e=fe(47472),Re=fe(59301);function Ce(Ee){let{suffixIcon:Fe,clearIcon:lt,menuItemSelectedIcon:De,removeIcon:Ke,loading:ft,multiple:Ve,hasFeedback:rt,prefixCls:Xe,showSuffixIcon:St,feedbackIcon:Kt,showArrow:Je,componentName:dt}=Ee;const Ze=lt!=null?lt:Re.createElement(We.Z,null),Me=Ge=>Fe===null&&!rt&&!Je?null:Re.createElement(Re.Fragment,null,St!==!1&&Ge,rt&&Kt);let ze=null;if(Fe!==void 0)ze=Me(Fe);else if(ft)ze=Me(Re.createElement(be.Z,{spin:!0}));else{const Ge=`${Xe}-suffix`;ze=Lt=>{let{open:at,showSearch:At}=Lt;return Me(at&&At?Re.createElement(_e.Z,{className:Ge}):Re.createElement(it.Z,{className:Ge}))}}let $e=null;De!==void 0?$e=De:Ve?$e=Re.createElement(ye.Z,null):$e=null;let pt=null;return Ke!==void 0?pt=Ke:pt=Re.createElement(Te.Z,null),{clearIcon:Ze,suffixIcon:ze,itemIcon:$e,removeIcon:pt}}},61621:function(fn,Jt,fe){"use strict";fe.d(Jt,{Z:function(){return ce}});var ye=fe(92310),We=fe.n(ye),Te=fe(59301),it=fe(36355),be=fe(2738),Re=de=>{const{prefixCls:se,className:Le,style:qe,size:vt,shape:yt}=de,_t=We()({[`${se}-lg`]:vt==="large",[`${se}-sm`]:vt==="small"}),Tt=We()({[`${se}-circle`]:yt==="circle",[`${se}-square`]:yt==="square",[`${se}-round`]:yt==="round"}),zt=Te.useMemo(()=>typeof vt=="number"?{width:vt,height:vt,lineHeight:`${vt}px`}:{},[vt]);return Te.createElement("span",{className:We()(se,_t,Tt,Le),style:Object.assign(Object.assign({},zt),qe)})},Ce=fe(36237),Ee=fe(83116),Fe=fe(37613);const lt=new Ce.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),De=de=>({height:de,lineHeight:`${de}px`}),Ke=de=>Object.assign({width:de},De(de)),ft=de=>({background:de.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:lt,animationDuration:de.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Ve=de=>Object.assign({width:de*5,minWidth:de*5},De(de)),rt=de=>{const{skeletonAvatarCls:se,gradientFromColor:Le,controlHeight:qe,controlHeightLG:vt,controlHeightSM:yt}=de;return{[`${se}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Le},Ke(qe)),[`${se}${se}-circle`]:{borderRadius:"50%"},[`${se}${se}-lg`]:Object.assign({},Ke(vt)),[`${se}${se}-sm`]:Object.assign({},Ke(yt))}},Xe=de=>{const{controlHeight:se,borderRadiusSM:Le,skeletonInputCls:qe,controlHeightLG:vt,controlHeightSM:yt,gradientFromColor:_t}=de;return{[`${qe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:_t,borderRadius:Le},Ve(se)),[`${qe}-lg`]:Object.assign({},Ve(vt)),[`${qe}-sm`]:Object.assign({},Ve(yt))}},St=de=>Object.assign({width:de},De(de)),Kt=de=>{const{skeletonImageCls:se,imageSizeBase:Le,gradientFromColor:qe,borderRadiusSM:vt}=de;return{[`${se}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:qe,borderRadius:vt},St(Le*2)),{[`${se}-path`]:{fill:"#bfbfbf"},[`${se}-svg`]:Object.assign(Object.assign({},St(Le)),{maxWidth:Le*4,maxHeight:Le*4}),[`${se}-svg${se}-svg-circle`]:{borderRadius:"50%"}}),[`${se}${se}-circle`]:{borderRadius:"50%"}}},Je=(de,se,Le)=>{const{skeletonButtonCls:qe}=de;return{[`${Le}${qe}-circle`]:{width:se,minWidth:se,borderRadius:"50%"},[`${Le}${qe}-round`]:{borderRadius:se}}},dt=de=>Object.assign({width:de*2,minWidth:de*2},De(de)),Ze=de=>{const{borderRadiusSM:se,skeletonButtonCls:Le,controlHeight:qe,controlHeightLG:vt,controlHeightSM:yt,gradientFromColor:_t}=de;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Le}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:_t,borderRadius:se,width:qe*2,minWidth:qe*2},dt(qe))},Je(de,qe,Le)),{[`${Le}-lg`]:Object.assign({},dt(vt))}),Je(de,vt,`${Le}-lg`)),{[`${Le}-sm`]:Object.assign({},dt(yt))}),Je(de,yt,`${Le}-sm`))},Me=de=>{const{componentCls:se,skeletonAvatarCls:Le,skeletonTitleCls:qe,skeletonParagraphCls:vt,skeletonButtonCls:yt,skeletonInputCls:_t,skeletonImageCls:Tt,controlHeight:zt,controlHeightLG:Yt,controlHeightSM:on,gradientFromColor:ot,padding:Ut,marginSM:Cn,borderRadius:nt,titleHeight:mt,blockRadius:Bt,paragraphLiHeight:xn,controlHeightXS:bn,paragraphMarginTop:yn}=de;return{[`${se}`]:{display:"table",width:"100%",[`${se}-header`]:{display:"table-cell",paddingInlineEnd:Ut,verticalAlign:"top",[`${Le}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ot},Ke(zt)),[`${Le}-circle`]:{borderRadius:"50%"},[`${Le}-lg`]:Object.assign({},Ke(Yt)),[`${Le}-sm`]:Object.assign({},Ke(on))},[`${se}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${qe}`]:{width:"100%",height:mt,background:ot,borderRadius:Bt,[`+ ${vt}`]:{marginBlockStart:on}},[`${vt}`]:{padding:0,"> li":{width:"100%",height:xn,listStyle:"none",background:ot,borderRadius:Bt,"+ li":{marginBlockStart:bn}}},[`${vt}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${se}-content`]:{[`${qe}, ${vt} > li`]:{borderRadius:nt}}},[`${se}-with-avatar ${se}-content`]:{[`${qe}`]:{marginBlockStart:Cn,[`+ ${vt}`]:{marginBlockStart:yn}}},[`${se}${se}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Ze(de)),rt(de)),Xe(de)),Kt(de)),[`${se}${se}-block`]:{width:"100%",[`${yt}`]:{width:"100%"},[`${_t}`]:{width:"100%"}},[`${se}${se}-active`]:{[` ${qe}, ${vt} > li, ${Le}, ${yt}, ${_t}, ${Tt} `]:Object.assign({},ft(de))}}};var ze=(0,Ee.Z)("Skeleton",de=>{const{componentCls:se}=de,Le=(0,Fe.TS)(de,{skeletonAvatarCls:`${se}-avatar`,skeletonTitleCls:`${se}-title`,skeletonParagraphCls:`${se}-paragraph`,skeletonButtonCls:`${se}-button`,skeletonInputCls:`${se}-input`,skeletonImageCls:`${se}-image`,imageSizeBase:de.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${de.gradientFromColor} 25%, ${de.gradientToColor} 37%, ${de.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Me(Le)]},de=>{const{colorFillContent:se,colorFill:Le}=de,qe=se,vt=Le;return{color:qe,colorGradientEnd:vt,gradientFromColor:qe,gradientToColor:vt,titleHeight:de.controlHeight/2,blockRadius:de.borderRadiusSM,paragraphMarginTop:de.marginLG+de.marginXXS,paragraphLiHeight:de.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),pt=de=>{const{prefixCls:se,className:Le,rootClassName:qe,active:vt,shape:yt="circle",size:_t="default"}=de,{getPrefixCls:Tt}=Te.useContext(it.E_),zt=Tt("skeleton",se),[Yt,on]=ze(zt),ot=(0,be.Z)(de,["prefixCls","className"]),Ut=We()(zt,`${zt}-element`,{[`${zt}-active`]:vt},Le,qe,on);return Yt(Te.createElement("div",{className:Ut},Te.createElement(Re,Object.assign({prefixCls:`${zt}-avatar`,shape:yt,size:_t},ot))))},Lt=de=>{const{prefixCls:se,className:Le,rootClassName:qe,active:vt,block:yt=!1,size:_t="default"}=de,{getPrefixCls:Tt}=Te.useContext(it.E_),zt=Tt("skeleton",se),[Yt,on]=ze(zt),ot=(0,be.Z)(de,["prefixCls"]),Ut=We()(zt,`${zt}-element`,{[`${zt}-active`]:vt,[`${zt}-block`]:yt},Le,qe,on);return Yt(Te.createElement("div",{className:Ut},Te.createElement(Re,Object.assign({prefixCls:`${zt}-button`,size:_t},ot))))};const at="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 tt=de=>{const{prefixCls:se,className:Le,rootClassName:qe,style:vt,active:yt}=de,{getPrefixCls:_t}=Te.useContext(it.E_),Tt=_t("skeleton",se),[zt,Yt]=ze(Tt),on=We()(Tt,`${Tt}-element`,{[`${Tt}-active`]:yt},Le,qe,Yt);return zt(Te.createElement("div",{className:on},Te.createElement("div",{className:We()(`${Tt}-image`,Le),style:vt},Te.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Tt}-image-svg`},Te.createElement("path",{d:at,className:`${Tt}-image-path`})))))},tn=de=>{const{prefixCls:se,className:Le,rootClassName:qe,active:vt,block:yt,size:_t="default"}=de,{getPrefixCls:Tt}=Te.useContext(it.E_),zt=Tt("skeleton",se),[Yt,on]=ze(zt),ot=(0,be.Z)(de,["prefixCls"]),Ut=We()(zt,`${zt}-element`,{[`${zt}-active`]:vt,[`${zt}-block`]:yt},Le,qe,on);return Yt(Te.createElement("div",{className:Ut},Te.createElement(Re,Object.assign({prefixCls:`${zt}-input`,size:_t},ot))))},Xt=fe(60499),qt={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"},Ot=qt,He=fe(7657),xe=function(se,Le){return Te.createElement(He.Z,(0,Xt.Z)({},se,{ref:Le,icon:Ot}))},gt=Te.forwardRef(xe),nn=gt,Qe=de=>{const{prefixCls:se,className:Le,rootClassName:qe,style:vt,active:yt,children:_t}=de,{getPrefixCls:Tt}=Te.useContext(it.E_),zt=Tt("skeleton",se),[Yt,on]=ze(zt),ot=We()(zt,`${zt}-element`,{[`${zt}-active`]:yt},on,Le,qe),Ut=_t!=null?_t:Te.createElement(nn,null);return Yt(Te.createElement("div",{className:ot},Te.createElement("div",{className:We()(`${zt}-image`,Le),style:vt},Ut)))},Ue=fe(77654),dn=de=>{const se=Tt=>{const{width:zt,rows:Yt=2}=de;if(Array.isArray(zt))return zt[Tt];if(Yt-1===Tt)return zt},{prefixCls:Le,className:qe,style:vt,rows:yt}=de,_t=(0,Ue.Z)(Array(yt)).map((Tt,zt)=>Te.createElement("li",{key:zt,style:{width:se(zt)}}));return Te.createElement("ul",{className:We()(Le,qe),style:vt},_t)},$t=de=>{let{prefixCls:se,className:Le,width:qe,style:vt}=de;return Te.createElement("h3",{className:We()(se,Le),style:Object.assign({width:qe},vt)})};function wt(de){return de&&typeof de=="object"?de:{}}function Dt(de,se){return de&&!se?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Pt(de,se){return!de&&se?{width:"38%"}:de&&se?{width:"50%"}:{}}function ve(de,se){const Le={};return(!de||!se)&&(Le.width="61%"),!de&&se?Le.rows=3:Le.rows=2,Le}const le=de=>{const{prefixCls:se,loading:Le,className:qe,rootClassName:vt,style:yt,children:_t,avatar:Tt=!1,title:zt=!0,paragraph:Yt=!0,active:on,round:ot}=de,{getPrefixCls:Ut,direction:Cn,skeleton:nt}=Te.useContext(it.E_),mt=Ut("skeleton",se),[Bt,xn]=ze(mt);if(Le||!("loading"in de)){const bn=!!Tt,yn=!!zt,Nn=!!Yt;let Vn;if(bn){const ur=Object.assign(Object.assign({prefixCls:`${mt}-avatar`},Dt(yn,Nn)),wt(Tt));Vn=Te.createElement("div",{className:`${mt}-header`},Te.createElement(Re,Object.assign({},ur)))}let In;if(yn||Nn){let ur;if(yn){const yr=Object.assign(Object.assign({prefixCls:`${mt}-title`},Pt(bn,Nn)),wt(zt));ur=Te.createElement($t,Object.assign({},yr))}let gn;if(Nn){const yr=Object.assign(Object.assign({prefixCls:`${mt}-paragraph`},ve(bn,yn)),wt(Yt));gn=Te.createElement(dn,Object.assign({},yr))}In=Te.createElement("div",{className:`${mt}-content`},ur,gn)}const lr=We()(mt,{[`${mt}-with-avatar`]:bn,[`${mt}-active`]:on,[`${mt}-rtl`]:Cn==="rtl",[`${mt}-round`]:ot},nt==null?void 0:nt.className,qe,vt,xn);return Bt(Te.createElement("div",{className:lr,style:Object.assign(Object.assign({},nt==null?void 0:nt.style),yt)},Vn,In))}return typeof _t!="undefined"?_t:null};le.Button=Lt,le.Avatar=pt,le.Input=tn,le.Image=tt,le.Node=Qe;var oe=le,ce=oe},8378:function(fn,Jt){"use strict";const fe=ye=>({[ye.componentCls]:{[`${ye.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${ye.motionDurationMid} ${ye.motionEaseInOut}, opacity ${ye.motionDurationMid} ${ye.motionEaseInOut} !important`}},[`${ye.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${ye.motionDurationMid} ${ye.motionEaseInOut}, opacity ${ye.motionDurationMid} ${ye.motionEaseInOut} !important`}}});Jt.Z=fe},92899:function(fn,Jt,fe){"use strict";fe.d(Jt,{Fm:function(){return De}});var ye=fe(36237),We=fe(95406);const Te=new ye.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),it=new ye.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 ye.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),_e=new ye.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Re=new ye.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ce=new ye.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Ee=new ye.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Fe=new ye.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),lt={"move-up":{inKeyframes:Ee,outKeyframes:Fe},"move-down":{inKeyframes:Te,outKeyframes:it},"move-left":{inKeyframes:be,outKeyframes:_e},"move-right":{inKeyframes:Re,outKeyframes:Ce}},De=(Ke,ft)=>{const{antCls:Ve}=Ke,rt=`${Ve}-${ft}`,{inKeyframes:Xe,outKeyframes:St}=lt[ft];return[(0,We.R)(rt,Xe,St,Ke.motionDurationMid),{[` ${rt}-enter, ${rt}-appear `]:{opacity:0,animationTimingFunction:Ke.motionEaseOutCirc},[`${rt}-leave`]:{animationTimingFunction:Ke.motionEaseInOutCirc}}]}},13826:function(fn,Jt,fe){"use strict";fe.d(Jt,{Qt:function(){return be},Uw:function(){return it},fJ:function(){return Te},ly:function(){return _e},oN:function(){return De}});var ye=fe(36237),We=fe(95406);const Te=new ye.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),it=new ye.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),be=new ye.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),_e=new ye.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Re=new ye.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Ce=new ye.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Ee=new ye.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Fe=new ye.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),lt={"slide-up":{inKeyframes:Te,outKeyframes:it},"slide-down":{inKeyframes:be,outKeyframes:_e},"slide-left":{inKeyframes:Re,outKeyframes:Ce},"slide-right":{inKeyframes:Ee,outKeyframes:Fe}},De=(Ke,ft)=>{const{antCls:Ve}=Ke,rt=`${Ve}-${ft}`,{inKeyframes:Xe,outKeyframes:St}=lt[ft];return[(0,We.R)(rt,Xe,St,Ke.motionDurationMid),{[` ${rt}-enter, ${rt}-appear `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:Ke.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${rt}-leave`]:{animationTimingFunction:Ke.motionEaseInQuint}}]}},78673:function(fn,Jt,fe){"use strict";fe.d(Jt,{Z:function(){return At}});var ye=fe(58617),We=fe(92310),Te=fe.n(We),it=fe(60499),be=fe(18642),_e=fe(72190),Re=fe(42244),Ce=fe(59301),Ee=fe(18929),Fe=fe(10228),lt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],De=Ce.forwardRef(function(tt,Nt){var tn,Xt=tt.prefixCls,qt=Xt===void 0?"rc-switch":Xt,Ot=tt.className,He=tt.checked,xe=tt.defaultChecked,gt=tt.disabled,nn=tt.loadingIcon,Vt=tt.checkedChildren,Qe=tt.unCheckedChildren,Ue=tt.onClick,kt=tt.onChange,dn=tt.onKeyDown,Et=(0,Re.Z)(tt,lt),$t=(0,Ee.Z)(!1,{value:He,defaultValue:xe}),wt=(0,_e.Z)($t,2),Dt=wt[0],Pt=wt[1];function ve(de,se){var Le=Dt;return gt||(Le=de,Pt(Le),kt==null||kt(Le,se)),Le}function le(de){de.which===Fe.Z.LEFT?ve(!1,de):de.which===Fe.Z.RIGHT&&ve(!0,de),dn==null||dn(de)}function oe(de){var se=ve(!Dt,de);Ue==null||Ue(se,de)}var ce=Te()(qt,Ot,(tn={},(0,be.Z)(tn,"".concat(qt,"-checked"),Dt),(0,be.Z)(tn,"".concat(qt,"-disabled"),gt),tn));return Ce.createElement("button",(0,it.Z)({},Et,{type:"button",role:"switch","aria-checked":Dt,disabled:gt,className:ce,ref:Nt,onKeyDown:le,onClick:oe}),nn,Ce.createElement("span",{className:"".concat(qt,"-inner")},Ce.createElement("span",{className:"".concat(qt,"-inner-checked")},Vt),Ce.createElement("span",{className:"".concat(qt,"-inner-unchecked")},Qe)))});De.displayName="Switch";var Ke=De,ft=fe(14088),Ve=fe(36355),rt=fe(1684),Xe=fe(19716),St=fe(64993),Kt=fe(17313),Je=fe(83116),dt=fe(37613);const Ze=tt=>{const{componentCls:Nt,trackHeightSM:tn,trackPadding:Xt,trackMinWidthSM:qt,innerMinMarginSM:Ot,innerMaxMarginSM:He,handleSizeSM:xe}=tt,gt=`${Nt}-inner`;return{[Nt]:{[`&${Nt}-small`]:{minWidth:qt,height:tn,lineHeight:`${tn}px`,[`${Nt}-inner`]:{paddingInlineStart:He,paddingInlineEnd:Ot,[`${gt}-checked`]:{marginInlineStart:`calc(-100% + ${xe+Xt*2}px - ${He*2}px)`,marginInlineEnd:`calc(100% - ${xe+Xt*2}px + ${He*2}px)`},[`${gt}-unchecked`]:{marginTop:-tn,marginInlineStart:0,marginInlineEnd:0}},[`${Nt}-handle`]:{width:xe,height:xe},[`${Nt}-loading-icon`]:{top:(xe-tt.switchLoadingIconSize)/2,fontSize:tt.switchLoadingIconSize},[`&${Nt}-checked`]:{[`${Nt}-inner`]:{paddingInlineStart:Ot,paddingInlineEnd:He,[`${gt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${gt}-unchecked`]:{marginInlineStart:`calc(100% - ${xe+Xt*2}px + ${He*2}px)`,marginInlineEnd:`calc(-100% + ${xe+Xt*2}px - ${He*2}px)`}},[`${Nt}-handle`]:{insetInlineStart:`calc(100% - ${xe+Xt}px)`}},[`&:not(${Nt}-disabled):active`]:{[`&:not(${Nt}-checked) ${gt}`]:{[`${gt}-unchecked`]:{marginInlineStart:tt.marginXXS/2,marginInlineEnd:-tt.marginXXS/2}},[`&${Nt}-checked ${gt}`]:{[`${gt}-checked`]:{marginInlineStart:-tt.marginXXS/2,marginInlineEnd:tt.marginXXS/2}}}}}}},Me=tt=>{const{componentCls:Nt,handleSize:tn}=tt;return{[Nt]:{[`${Nt}-loading-icon${tt.iconCls}`]:{position:"relative",top:(tn-tt.fontSize)/2,color:tt.switchLoadingIconColor,verticalAlign:"top"},[`&${Nt}-checked ${Nt}-loading-icon`]:{color:tt.switchColor}}}},ze=tt=>{const{componentCls:Nt,motion:tn,trackPadding:Xt,handleBg:qt,handleShadow:Ot,handleSize:He}=tt,xe=`${Nt}-handle`;return{[Nt]:{[xe]:{position:"absolute",top:Xt,insetInlineStart:Xt,width:He,height:He,transition:`all ${tt.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:qt,borderRadius:He/2,boxShadow:Ot,transition:`all ${tt.switchDuration} ease-in-out`,content:'""'}},[`&${Nt}-checked ${xe}`]:{insetInlineStart:`calc(100% - ${He+Xt}px)`},[`&:not(${Nt}-disabled):active`]:tn?{[`${xe}::before`]:{insetInlineEnd:tt.switchHandleActiveInset,insetInlineStart:0},[`&${Nt}-checked ${xe}::before`]:{insetInlineEnd:0,insetInlineStart:tt.switchHandleActiveInset}}:{}}}},$e=tt=>{const{componentCls:Nt,trackHeight:tn,trackPadding:Xt,innerMinMargin:qt,innerMaxMargin:Ot,handleSize:He}=tt,xe=`${Nt}-inner`;return{[Nt]:{[xe]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Ot,paddingInlineEnd:qt,transition:`padding-inline-start ${tt.switchDuration} ease-in-out, padding-inline-end ${tt.switchDuration} ease-in-out`,[`${xe}-checked, ${xe}-unchecked`]:{display:"block",color:tt.colorTextLightSolid,fontSize:tt.fontSizeSM,transition:`margin-inline-start ${tt.switchDuration} ease-in-out, margin-inline-end ${tt.switchDuration} ease-in-out`,pointerEvents:"none"},[`${xe}-checked`]:{marginInlineStart:`calc(-100% + ${He+Xt*2}px - ${Ot*2}px)`,marginInlineEnd:`calc(100% - ${He+Xt*2}px + ${Ot*2}px)`},[`${xe}-unchecked`]:{marginTop:-tn,marginInlineStart:0,marginInlineEnd:0}},[`&${Nt}-checked ${xe}`]:{paddingInlineStart:qt,paddingInlineEnd:Ot,[`${xe}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${xe}-unchecked`]:{marginInlineStart:`calc(100% - ${He+Xt*2}px + ${Ot*2}px)`,marginInlineEnd:`calc(-100% + ${He+Xt*2}px - ${Ot*2}px)`}},[`&:not(${Nt}-disabled):active`]:{[`&:not(${Nt}-checked) ${xe}`]:{[`${xe}-unchecked`]:{marginInlineStart:Xt*2,marginInlineEnd:-Xt*2}},[`&${Nt}-checked ${xe}`]:{[`${xe}-checked`]:{marginInlineStart:-Xt*2,marginInlineEnd:Xt*2}}}}}},pt=tt=>{const{componentCls:Nt,trackHeight:tn,trackMinWidth:Xt}=tt;return{[Nt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Kt.Wf)(tt)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Xt,height:tn,lineHeight:`${tn}px`,verticalAlign:"middle",background:tt.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${tt.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Nt}-disabled)`]:{background:tt.colorTextTertiary}}),(0,Kt.Qy)(tt)),{[`&${Nt}-checked`]:{background:tt.switchColor,[`&:hover:not(${Nt}-disabled)`]:{background:tt.colorPrimaryHover}},[`&${Nt}-loading, &${Nt}-disabled`]:{cursor:"not-allowed",opacity:tt.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Nt}-rtl`]:{direction:"rtl"}})}};var Ge=(0,Je.Z)("Switch",tt=>{const Nt=(0,dt.TS)(tt,{switchDuration:tt.motionDurationMid,switchColor:tt.colorPrimary,switchDisabledOpacity:tt.opacityLoading,switchLoadingIconSize:tt.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${tt.opacityLoading})`,switchHandleActiveInset:"-30%"});return[pt(Nt),$e(Nt),ze(Nt),Me(Nt),Ze(Nt)]},tt=>{const{fontSize:Nt,lineHeight:tn,controlHeight:Xt,colorWhite:qt}=tt,Ot=Nt*tn,He=Xt/2,xe=2,gt=Ot-xe*2,nn=He-xe*2;return{trackHeight:Ot,trackHeightSM:He,trackMinWidth:gt*2+xe*4,trackMinWidthSM:nn*2+xe*2,trackPadding:xe,handleBg:qt,handleSize:gt,handleSizeSM:nn,handleShadow:`0 2px 4px 0 ${new St.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:gt/2,innerMaxMargin:gt+xe+xe*2,innerMinMarginSM:nn/2,innerMaxMarginSM:nn+xe+xe*2}}),Lt=function(tt,Nt){var tn={};for(var Xt in tt)Object.prototype.hasOwnProperty.call(tt,Xt)&&Nt.indexOf(Xt)<0&&(tn[Xt]=tt[Xt]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qt=0,Xt=Object.getOwnPropertySymbols(tt);qt{const{prefixCls:tn,size:Xt,disabled:qt,loading:Ot,className:He,rootClassName:xe,style:gt}=tt,nn=Lt(tt,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Vt,direction:Qe,switch:Ue}=Ce.useContext(Ve.E_),kt=Ce.useContext(rt.Z),dn=(qt!=null?qt:kt)||Ot,Et=Vt("switch",tn),$t=Ce.createElement("div",{className:`${Et}-handle`},Ot&&Ce.createElement(ye.Z,{className:`${Et}-loading-icon`})),[wt,Dt]=Ge(Et),Pt=(0,Xe.Z)(Xt),ve=Te()(Ue==null?void 0:Ue.className,{[`${Et}-small`]:Pt==="small",[`${Et}-loading`]:Ot,[`${Et}-rtl`]:Qe==="rtl"},He,xe,Dt),le=Object.assign(Object.assign({},Ue==null?void 0:Ue.style),gt);return wt(Ce.createElement(ft.Z,{component:"Switch"},Ce.createElement(Ke,Object.assign({},nn,{prefixCls:Et,className:ve,style:le,disabled:dn,ref:Nt,loadingIcon:$t}))))});at.__ANT_SWITCH=!0;var At=at},99313:function(fn,Jt,fe){"use strict";fe.d(Jt,{default:function(){return st}});var ye=fe(99267),We=fe(18785),Te=fe(62772),it=fe(92310),be=fe.n(it),_e=fe(60499),Re=fe(18642),Ce=fe(85899),Ee=fe(72190),Fe=fe(43749),lt=fe(42244),De=fe(59301),Ke=fe(49658),ft=fe(18929),Ve=fe(77900),rt=(0,De.createContext)(null),Xe=De.forwardRef(function(Ae,Ne){var Be=Ae.prefixCls,Ie=Ae.className,Ye=Ae.style,ht=Ae.id,Ht=Ae.active,Mt=Ae.tabKey,Wt=Ae.children;return De.createElement("div",{id:ht&&"".concat(ht,"-panel-").concat(Mt),role:"tabpanel",tabIndex:Ht?0:-1,"aria-labelledby":ht&&"".concat(ht,"-tab-").concat(Mt),"aria-hidden":!Ht,style:Ye,className:be()(Be,Ht&&"".concat(Be,"-active"),Ie),ref:Ne},Wt)}),St=Xe,Kt=["key","forceRender","style","className"];function Je(Ae){var Ne=Ae.id,Be=Ae.activeKey,Ie=Ae.animated,Ye=Ae.tabPosition,ht=Ae.destroyInactiveTabPane,Ht=De.useContext(rt),Mt=Ht.prefixCls,Wt=Ht.tabs,an=Ie.tabPane,ln="".concat(Mt,"-tabpane");return De.createElement("div",{className:be()("".concat(Mt,"-content-holder"))},De.createElement("div",{className:be()("".concat(Mt,"-content"),"".concat(Mt,"-content-").concat(Ye),(0,Re.Z)({},"".concat(Mt,"-content-animated"),an))},Wt.map(function(pn){var Ct=pn.key,rn=pn.forceRender,On=pn.style,Mn=pn.className,Pn=(0,lt.Z)(pn,Kt),Ln=Ct===Be;return De.createElement(Ve.default,(0,_e.Z)({key:Ct,visible:Ln,forceRender:rn,removeOnLeave:!!ht,leavedClassName:"".concat(ln,"-hidden")},Ie.tabPaneMotion),function(tr,hn){var qn=tr.style,et=tr.className;return De.createElement(St,(0,_e.Z)({},Pn,{prefixCls:ln,id:Ne,tabKey:Ct,animated:an,active:Ln,style:(0,Ce.Z)((0,Ce.Z)({},On),qn),className:be()(Mn,et),ref:hn}))})})))}var dt=fe(77654),Ze=fe(29301),Me=fe(6089),ze=fe(8654),$e={width:0,height:0,left:0,top:0};function pt(Ae,Ne,Be){return(0,De.useMemo)(function(){for(var Ie,Ye=new Map,ht=Ne.get((Ie=Ae[0])===null||Ie===void 0?void 0:Ie.key)||$e,Ht=ht.left+ht.width,Mt=0;MtEn?(cn=jt,It.current="x"):(cn=Zt,It.current="y"),Ne(-cn,-cn)&&Rt.preventDefault()}var Qt=(0,De.useRef)(null);Qt.current={onTouchStart:hn,onTouchMove:qn,onTouchEnd:et,onWheel:Ft},De.useEffect(function(){function Rt(mn){Qt.current.onTouchStart(mn)}function jt(mn){Qt.current.onTouchMove(mn)}function Zt(mn){Qt.current.onTouchEnd(mn)}function cn(mn){Qt.current.onWheel(mn)}return document.addEventListener("touchmove",jt,{passive:!1}),document.addEventListener("touchend",Zt,{passive:!1}),Ae.current.addEventListener("touchstart",Rt,{passive:!1}),Ae.current.addEventListener("wheel",cn),function(){document.removeEventListener("touchmove",jt),document.removeEventListener("touchend",Zt)}},[])}var tn=fe(34280);function Xt(Ae){var Ne=(0,De.useState)(0),Be=(0,Ee.Z)(Ne,2),Ie=Be[0],Ye=Be[1],ht=(0,De.useRef)(0),Ht=(0,De.useRef)();return Ht.current=Ae,(0,tn.o)(function(){var Mt;(Mt=Ht.current)===null||Mt===void 0||Mt.call(Ht)},[Ie]),function(){ht.current===Ie&&(ht.current+=1,Ye(ht.current))}}function qt(Ae){var Ne=(0,De.useRef)([]),Be=(0,De.useState)({}),Ie=(0,Ee.Z)(Be,2),Ye=Ie[1],ht=(0,De.useRef)(typeof Ae=="function"?Ae():Ae),Ht=Xt(function(){var Wt=ht.current;Ne.current.forEach(function(an){Wt=an(Wt)}),Ne.current=[],ht.current=Wt,Ye({})});function Mt(Wt){Ne.current.push(Wt),Ht()}return[ht.current,Mt]}var Ot={width:0,height:0,left:0,top:0,right:0};function He(Ae,Ne,Be,Ie,Ye,ht,Ht){var Mt=Ht.tabs,Wt=Ht.tabPosition,an=Ht.rtl,ln,pn,Ct;return["top","bottom"].includes(Wt)?(ln="width",pn=an?"right":"left",Ct=Math.abs(Be)):(ln="height",pn="top",Ct=-Be),(0,De.useMemo)(function(){if(!Mt.length)return[0,0];for(var rn=Mt.length,On=rn,Mn=0;MnCt+Ne){On=Mn-1;break}}for(var Ln=0,tr=rn-1;tr>=0;tr-=1){var hn=Ae.get(Mt[tr].key)||Ot;if(hn[pn]=On?[0,0]:[Ln,On]},[Ae,Ne,Ie,Ye,ht,Ct,Wt,Mt.map(function(rn){return rn.key}).join("_"),an])}function xe(Ae){var Ne;return Ae instanceof Map?(Ne={},Ae.forEach(function(Be,Ie){Ne[Ie]=Be})):Ne=Ae,JSON.stringify(Ne)}var gt="TABS_DQ";function nn(Ae){return String(Ae).replace(/"/g,gt)}function Vt(Ae,Ne,Be,Ie){return!(!Be||Ie||Ae===!1||Ae===void 0&&(Ne===!1||Ne===null))}function Qe(Ae,Ne){var Be=Ae.prefixCls,Ie=Ae.editable,Ye=Ae.locale,ht=Ae.style;return!Ie||Ie.showAdd===!1?null:De.createElement("button",{ref:Ne,type:"button",className:"".concat(Be,"-nav-add"),style:ht,"aria-label":(Ye==null?void 0:Ye.addAriaLabel)||"Add tab",onClick:function(Mt){Ie.onEdit("add",{event:Mt})}},Ie.addIcon||"+")}var Ue=De.forwardRef(Qe),kt=De.forwardRef(function(Ae,Ne){var Be=Ae.position,Ie=Ae.prefixCls,Ye=Ae.extra;if(!Ye)return null;var ht,Ht={};return(0,Fe.Z)(Ye)==="object"&&!De.isValidElement(Ye)?Ht=Ye:Ht.right=Ye,Be==="right"&&(ht=Ht.right),Be==="left"&&(ht=Ht.left),ht?De.createElement("div",{className:"".concat(Ie,"-extra-content"),ref:Ne},ht):null}),dn=kt,Et=fe(31561),$t=fe(15285),wt=fe(10228);function Dt(Ae,Ne){var Be=Ae.prefixCls,Ie=Ae.id,Ye=Ae.tabs,ht=Ae.locale,Ht=Ae.mobile,Mt=Ae.moreIcon,Wt=Mt===void 0?"More":Mt,an=Ae.moreTransitionName,ln=Ae.style,pn=Ae.className,Ct=Ae.editable,rn=Ae.tabBarGutter,On=Ae.rtl,Mn=Ae.removeAriaLabel,Pn=Ae.onTabClick,Ln=Ae.getPopupContainer,tr=Ae.popupClassName,hn=(0,De.useState)(!1),qn=(0,Ee.Z)(hn,2),et=qn[0],It=qn[1],Ft=(0,De.useState)(null),Qt=(0,Ee.Z)(Ft,2),Rt=Qt[0],jt=Qt[1],Zt="".concat(Ie,"-more-popup"),cn="".concat(Be,"-dropdown"),mn=Rt!==null?"".concat(Zt,"-").concat(Rt):null,En=ht==null?void 0:ht.dropdownAriaLabel;function Un(mr,Wn){mr.preventDefault(),mr.stopPropagation(),Ct.onEdit("remove",{key:Wn,event:mr})}var ar=De.createElement($t.ZP,{onClick:function(Wn){var nr=Wn.key,hr=Wn.domEvent;Pn(nr,hr),It(!1)},prefixCls:"".concat(cn,"-menu"),id:Zt,tabIndex:-1,role:"listbox","aria-activedescendant":mn,selectedKeys:[Rt],"aria-label":En!==void 0?En:"expanded dropdown"},Ye.map(function(mr){var Wn=mr.closable,nr=mr.disabled,hr=mr.closeIcon,rr=mr.key,Tr=mr.label,$r=Vt(Wn,hr,Ct,nr);return De.createElement($t.sN,{key:rr,id:"".concat(Zt,"-").concat(rr),role:"option","aria-controls":Ie&&"".concat(Ie,"-panel-").concat(rr),disabled:nr},De.createElement("span",null,Tr),$r&&De.createElement("button",{type:"button","aria-label":Mn||"remove",tabIndex:0,className:"".concat(cn,"-menu-item-remove"),onClick:function(kn){kn.stopPropagation(),Un(kn,rr)}},hr||Ct.removeIcon||"\xD7"))}));function xr(mr){for(var Wn=Ye.filter(function($r){return!$r.disabled}),nr=Wn.findIndex(function($r){return $r.key===Rt})||0,hr=Wn.length,rr=0;rrli?"left":"right"})}),En=(0,Ee.Z)(mn,2),Un=En[0],ar=En[1],xr=Ge(0,function(ui,li){!cn&&hn&&hn({direction:ui>li?"top":"bottom"})}),or=(0,Ee.Z)(xr,2),$n=or[0],wr=or[1],pr=(0,De.useState)([0,0]),mr=(0,Ee.Z)(pr,2),Wn=mr[0],nr=mr[1],hr=(0,De.useState)([0,0]),rr=(0,Ee.Z)(hr,2),Tr=rr[0],$r=rr[1],cr=(0,De.useState)([0,0]),kn=(0,Ee.Z)(cr,2),vn=kn[0],sr=kn[1],Xn=(0,De.useState)([0,0]),Sr=(0,Ee.Z)(Xn,2),Or=Sr[0],Mr=Sr[1],Qr=qt(new Map),Rr=(0,Ee.Z)(Qr,2),fi=Rr[0],Yn=Rr[1],jn=pt(ht,fi,Tr[0]),Lr=Le(Wn,cn),Ir=Le(Tr,cn),si=Le(vn,cn),Yi=Le(Or,cn),_i=LrHn?Hn:ui}var Rn=(0,De.useRef)(),Qn=(0,De.useState)(),ei=(0,Ee.Z)(Qn,2),hi=ei[0],bi=ei[1];function mi(){bi(Date.now())}function ai(){window.clearTimeout(Rn.current)}Nt(Qt,function(ui,li){function Wi(aa,ra){aa(function(Xi){var ts=Fn(Xi+ra);return ts})}return _i?(cn?Wi(ar,ui):Wi(wr,li),ai(),mi(),!0):!1}),(0,De.useEffect)(function(){return ai(),hi&&(Rn.current=window.setTimeout(function(){bi(0)},100)),ai},[hi]);var wi=He(jn,Jr,cn?Un:$n,Ir,si,Yi,(0,Ce.Z)((0,Ce.Z)({},Ae),{},{tabs:ht})),Ki=(0,Ee.Z)(wi,2),Ti=Ki[0],pa=Ki[1],ea=(0,Me.Z)(function(){var ui=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ln,li=jn.get(ui)||{width:0,height:0,left:0,right:0,top:0};if(cn){var Wi=Un;pn?li.rightUn+Jr&&(Wi=li.right+li.width-Jr):li.left<-Un?Wi=-li.left:li.left+li.width>-Un+Jr&&(Wi=-(li.left+li.width-Jr)),wr(0),ar(Fn(Wi))}else{var aa=$n;li.top<-$n?aa=-li.top:li.top+li.height>-$n+Jr&&(aa=-(li.top+li.height-Jr)),ar(0),wr(Fn(aa))}}),Oi={};Mn==="top"||Mn==="bottom"?Oi[pn?"marginRight":"marginLeft"]=Pn:Oi.marginTop=Pn;var Ja=ht.map(function(ui,li){var Wi=ui.key;return De.createElement(le,{id:Wt,prefixCls:Ye,key:Wi,tab:ui,style:li===0?void 0:Oi,closable:ui.closable,editable:rn,active:Wi===ln,renderWrapper:Ln,removeAriaLabel:On==null?void 0:On.removeAriaLabel,onClick:function(ra){tr(Wi,ra)},onFocus:function(){ea(Wi),mi(),Qt.current&&(pn||(Qt.current.scrollLeft=0),Qt.current.scrollTop=0)}})}),Ea=function(){return Yn(function(){var li=new Map;return ht.forEach(function(Wi){var aa,ra=Wi.key,Xi=(aa=Rt.current)===null||aa===void 0?void 0:aa.querySelector('[data-node-key="'.concat(nn(ra),'"]'));Xi&&li.set(ra,{width:Xi.offsetWidth,height:Xi.offsetHeight,left:Xi.offsetLeft,top:Xi.offsetTop})}),li})};(0,De.useEffect)(function(){Ea()},[ht.map(function(ui){return ui.key}).join("_")]);var ma=Xt(function(){var ui=se(et),li=se(It),Wi=se(Ft);nr([ui[0]-li[0]-Wi[0],ui[1]-li[1]-Wi[1]]);var aa=se(Zt);sr(aa);var ra=se(jt);Mr(ra);var Xi=se(Rt);$r([Xi[0]-aa[0],Xi[1]-aa[1]]),Ea()}),ta=ht.slice(0,Ti),Si=ht.slice(pa+1),Dr=[].concat((0,dt.Z)(ta),(0,dt.Z)(Si)),Ur=jn.get(ln),Fr=de({activeTabOffset:Ur,horizontal:cn,rtl:pn,indicatorSize:qn}),Er=Fr.style;(0,De.useEffect)(function(){ea()},[ln,pi,Hn,xe(Ur),xe(jn),cn]),(0,De.useEffect)(function(){ma()},[pn]);var ri=!!Dr.length,ti="".concat(Ye,"-nav-wrap"),Ii,Ri,Ni,qi;return cn?pn?(Ri=Un>0,Ii=Un!==Hn):(Ii=Un<0,Ri=Un!==pi):(Ni=$n<0,qi=$n!==pi),De.createElement(Ze.Z,{onResize:ma},De.createElement("div",{ref:(0,ze.x1)(Ne,et),role:"tablist",className:be()("".concat(Ye,"-nav"),Ht),style:Mt,onKeyDown:function(){mi()}},De.createElement(dn,{ref:It,position:"left",extra:Ct,prefixCls:Ye}),De.createElement(Ze.Z,{onResize:ma},De.createElement("div",{className:be()(ti,(Be={},(0,Re.Z)(Be,"".concat(ti,"-ping-left"),Ii),(0,Re.Z)(Be,"".concat(ti,"-ping-right"),Ri),(0,Re.Z)(Be,"".concat(ti,"-ping-top"),Ni),(0,Re.Z)(Be,"".concat(ti,"-ping-bottom"),qi),Be)),ref:Qt},De.createElement(Ze.Z,{onResize:ma},De.createElement("div",{ref:Rt,className:"".concat(Ye,"-nav-list"),style:{transform:"translate(".concat(Un,"px, ").concat($n,"px)"),transition:hi?"none":void 0}},Ja,De.createElement(Ue,{ref:Zt,prefixCls:Ye,locale:On,editable:rn,style:(0,Ce.Z)((0,Ce.Z)({},Ja.length===0?void 0:Oi),{},{visibility:ri?"hidden":null})}),De.createElement("div",{className:be()("".concat(Ye,"-ink-bar"),(0,Re.Z)({},"".concat(Ye,"-ink-bar-animated"),an.inkBar)),style:Er}))))),De.createElement(Pt,(0,_e.Z)({},Ae,{removeAriaLabel:On==null?void 0:On.removeAriaLabel,ref:jt,prefixCls:Ye,tabs:Dr,className:!ri&&yi,tabMoving:!!hi})),De.createElement(dn,{ref:Ft,position:"right",extra:Ct,prefixCls:Ye})))}var vt=De.forwardRef(qe),yt=["renderTabBar"],_t=["label","key"];function Tt(Ae){var Ne=Ae.renderTabBar,Be=(0,lt.Z)(Ae,yt),Ie=De.useContext(rt),Ye=Ie.tabs;if(Ne){var ht=(0,Ce.Z)((0,Ce.Z)({},Be),{},{panes:Ye.map(function(Ht){var Mt=Ht.label,Wt=Ht.key,an=(0,lt.Z)(Ht,_t);return De.createElement(St,(0,_e.Z)({tab:Mt,key:Wt,tabKey:Wt},an))})});return Ne(ht,vt)}return De.createElement(vt,Be)}var zt=fe(48736);function Yt(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},Ne;return Ae===!1?Ne={inkBar:!1,tabPane:!1}:Ae===!0?Ne={inkBar:!0,tabPane:!1}:Ne=(0,Ce.Z)({inkBar:!0},(0,Fe.Z)(Ae)==="object"?Ae:{}),Ne.tabPaneMotion&&Ne.tabPane===void 0&&(Ne.tabPane=!0),!Ne.tabPaneMotion&&Ne.tabPane&&(Ne.tabPane=!1),Ne}var on=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],ot=0;function Ut(Ae,Ne){var Be,Ie=Ae.id,Ye=Ae.prefixCls,ht=Ye===void 0?"rc-tabs":Ye,Ht=Ae.className,Mt=Ae.items,Wt=Ae.direction,an=Ae.activeKey,ln=Ae.defaultActiveKey,pn=Ae.editable,Ct=Ae.animated,rn=Ae.tabPosition,On=rn===void 0?"top":rn,Mn=Ae.tabBarGutter,Pn=Ae.tabBarStyle,Ln=Ae.tabBarExtraContent,tr=Ae.locale,hn=Ae.moreIcon,qn=Ae.moreTransitionName,et=Ae.destroyInactiveTabPane,It=Ae.renderTabBar,Ft=Ae.onChange,Qt=Ae.onTabClick,Rt=Ae.onTabScroll,jt=Ae.getPopupContainer,Zt=Ae.popupClassName,cn=Ae.indicatorSize,mn=(0,lt.Z)(Ae,on),En=De.useMemo(function(){return(Mt||[]).filter(function(Mr){return Mr&&(0,Fe.Z)(Mr)==="object"&&"key"in Mr})},[Mt]),Un=Wt==="rtl",ar=Yt(Ct),xr=(0,De.useState)(!1),or=(0,Ee.Z)(xr,2),$n=or[0],wr=or[1];(0,De.useEffect)(function(){wr((0,Ke.Z)())},[]);var pr=(0,ft.Z)(function(){var Mr;return(Mr=En[0])===null||Mr===void 0?void 0:Mr.key},{value:an,defaultValue:ln}),mr=(0,Ee.Z)(pr,2),Wn=mr[0],nr=mr[1],hr=(0,De.useState)(function(){return En.findIndex(function(Mr){return Mr.key===Wn})}),rr=(0,Ee.Z)(hr,2),Tr=rr[0],$r=rr[1];(0,De.useEffect)(function(){var Mr=En.findIndex(function(Rr){return Rr.key===Wn});if(Mr===-1){var Qr;Mr=Math.max(0,Math.min(Tr,En.length-1)),nr((Qr=En[Mr])===null||Qr===void 0?void 0:Qr.key)}$r(Mr)},[En.map(function(Mr){return Mr.key}).join("_"),Wn,Tr]);var cr=(0,ft.Z)(null,{value:Ie}),kn=(0,Ee.Z)(cr,2),vn=kn[0],sr=kn[1];(0,De.useEffect)(function(){Ie||(sr("rc-tabs-".concat(ot)),ot+=1)},[]);function Xn(Mr,Qr){Qt==null||Qt(Mr,Qr);var Rr=Mr!==Wn;nr(Mr),Rr&&(Ft==null||Ft(Mr))}var Sr={id:vn,activeKey:Wn,animated:ar,tabPosition:On,rtl:Un,mobile:$n},Or=(0,Ce.Z)((0,Ce.Z)({},Sr),{},{editable:pn,locale:tr,moreIcon:hn,moreTransitionName:qn,tabBarGutter:Mn,onTabClick:Xn,onTabScroll:Rt,extra:Ln,style:Pn,panes:null,getPopupContainer:jt,popupClassName:Zt,indicatorSize:cn});return De.createElement(rt.Provider,{value:{tabs:En,prefixCls:ht}},De.createElement("div",(0,_e.Z)({ref:Ne,id:Ie,className:be()(ht,"".concat(ht,"-").concat(On),(Be={},(0,Re.Z)(Be,"".concat(ht,"-mobile"),$n),(0,Re.Z)(Be,"".concat(ht,"-editable"),pn),(0,Re.Z)(Be,"".concat(ht,"-rtl"),Un),Be),Ht)},mn),De.createElement(Tt,(0,_e.Z)({},Or,{renderTabBar:It})),De.createElement(Je,(0,_e.Z)({destroyInactiveTabPane:et},Sr,{animated:ar}))))}var Cn=De.forwardRef(Ut),nt=Cn,mt=nt,Bt=fe(36355),xn=fe(19716),yn=()=>null,Nn=fe(62892);const Vn={motionAppear:!1,motionEnter:!0,motionLeave:!0};function In(Ae){let Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},Be;return Ne===!1?Be={inkBar:!1,tabPane:!1}:Ne===!0?Be={inkBar:!0,tabPane:!0}:Be=Object.assign({inkBar:!0},typeof Ne=="object"?Ne:{}),Be.tabPane&&(Be.tabPaneMotion=Object.assign(Object.assign({},Vn),{motionName:(0,Nn.m)(Ae,"switch")})),Be}var lr=fe(11592),ur=function(Ae,Ne){var Be={};for(var Ie in Ae)Object.prototype.hasOwnProperty.call(Ae,Ie)&&Ne.indexOf(Ie)<0&&(Be[Ie]=Ae[Ie]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,Ie=Object.getOwnPropertySymbols(Ae);YeNe)}function yr(Ae,Ne){if(Ae)return Ae;const Be=(0,lr.Z)(Ne).map(Ie=>{if(De.isValidElement(Ie)){const{key:Ye,props:ht}=Ie,Ht=ht||{},{tab:Mt}=Ht,Wt=ur(Ht,["tab"]);return Object.assign(Object.assign({key:String(Ye)},Wt),{label:Mt})}return null});return gn(Be)}var Pr=fe(17313),zr=fe(83116),jr=fe(37613),Ar=fe(13826),fr=Ae=>{const{componentCls:Ne,motionDurationSlow:Be}=Ae;return[{[Ne]:{[`${Ne}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${Be}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${Be}`}}}}},[(0,Ar.oN)(Ae,"slide-up"),(0,Ar.oN)(Ae,"slide-down")]]};const Gr=Ae=>{const{componentCls:Ne,tabsCardPadding:Be,cardBg:Ie,cardGutter:Ye,colorBorderSecondary:ht,itemSelectedColor:Ht}=Ae;return{[`${Ne}-card`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{[`${Ne}-tab`]:{margin:0,padding:Be,background:Ie,border:`${Ae.lineWidth}px ${Ae.lineType} ${ht}`,transition:`all ${Ae.motionDurationSlow} ${Ae.motionEaseInOut}`},[`${Ne}-tab-active`]:{color:Ht,background:Ae.colorBgContainer},[`${Ne}-ink-bar`]:{visibility:"hidden"}},[`&${Ne}-top, &${Ne}-bottom`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{[`${Ne}-tab + ${Ne}-tab`]:{marginLeft:{_skip_check_:!0,value:`${Ye}px`}}}},[`&${Ne}-top`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{[`${Ne}-tab`]:{borderRadius:`${Ae.borderRadiusLG}px ${Ae.borderRadiusLG}px 0 0`},[`${Ne}-tab-active`]:{borderBottomColor:Ae.colorBgContainer}}},[`&${Ne}-bottom`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{[`${Ne}-tab`]:{borderRadius:`0 0 ${Ae.borderRadiusLG}px ${Ae.borderRadiusLG}px`},[`${Ne}-tab-active`]:{borderTopColor:Ae.colorBgContainer}}},[`&${Ne}-left, &${Ne}-right`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{[`${Ne}-tab + ${Ne}-tab`]:{marginTop:`${Ye}px`}}},[`&${Ne}-left`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{[`${Ne}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Ae.borderRadiusLG}px 0 0 ${Ae.borderRadiusLG}px`}},[`${Ne}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:Ae.colorBgContainer}}}},[`&${Ne}-right`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{[`${Ne}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Ae.borderRadiusLG}px ${Ae.borderRadiusLG}px 0`}},[`${Ne}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:Ae.colorBgContainer}}}}}}},Yr=Ae=>{const{componentCls:Ne,itemHoverColor:Be,dropdownEdgeChildVerticalPadding:Ie}=Ae;return{[`${Ne}-dropdown`]:Object.assign(Object.assign({},(0,Pr.Wf)(Ae)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Ae.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${Ne}-dropdown-menu`]:{maxHeight:Ae.tabsDropdownHeight,margin:0,padding:`${Ie}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:Ae.colorBgContainer,backgroundClip:"padding-box",borderRadius:Ae.borderRadiusLG,outline:"none",boxShadow:Ae.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Pr.vS),{display:"flex",alignItems:"center",minWidth:Ae.tabsDropdownWidth,margin:0,padding:`${Ae.paddingXXS}px ${Ae.paddingSM}px`,color:Ae.colorText,fontWeight:"normal",fontSize:Ae.fontSize,lineHeight:Ae.lineHeight,cursor:"pointer",transition:`all ${Ae.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:Ae.marginSM},color:Ae.colorTextDescription,fontSize:Ae.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:Be}},"&:hover":{background:Ae.controlItemBgHover},"&-disabled":{"&, &:hover":{color:Ae.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Vr=Ae=>{const{componentCls:Ne,margin:Be,colorBorderSecondary:Ie,horizontalMargin:Ye,verticalItemPadding:ht,verticalItemMargin:Ht}=Ae;return{[`${Ne}-top, ${Ne}-bottom`]:{flexDirection:"column",[`> ${Ne}-nav, > div > ${Ne}-nav`]:{margin:Ye,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Ae.lineWidth}px ${Ae.lineType} ${Ie}`,content:"''"},[`${Ne}-ink-bar`]:{height:Ae.lineWidthBold,"&-animated":{transition:`width ${Ae.motionDurationSlow}, left ${Ae.motionDurationSlow}, right ${Ae.motionDurationSlow}`}},[`${Ne}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:Ae.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:Ae.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:Ae.boxShadowTabsOverflowRight},[`&${Ne}-nav-wrap-ping-left::before`]:{opacity:1},[`&${Ne}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${Ne}-top`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{"&::before":{bottom:0},[`${Ne}-ink-bar`]:{bottom:0}}},[`${Ne}-bottom`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{order:1,marginTop:`${Be}px`,marginBottom:0,"&::before":{top:0},[`${Ne}-ink-bar`]:{top:0}},[`> ${Ne}-content-holder, > div > ${Ne}-content-holder`]:{order:0}},[`${Ne}-left, ${Ne}-right`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{flexDirection:"column",minWidth:Ae.controlHeight*1.25,[`${Ne}-tab`]:{padding:ht,textAlign:"center"},[`${Ne}-tab + ${Ne}-tab`]:{margin:Ht},[`${Ne}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:Ae.controlHeight},"&::before":{top:0,boxShadow:Ae.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:Ae.boxShadowTabsOverflowBottom},[`&${Ne}-nav-wrap-ping-top::before`]:{opacity:1},[`&${Ne}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${Ne}-ink-bar`]:{width:Ae.lineWidthBold,"&-animated":{transition:`height ${Ae.motionDurationSlow}, top ${Ae.motionDurationSlow}`}},[`${Ne}-nav-list, ${Ne}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${Ne}-left`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{[`${Ne}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${Ne}-content-holder, > div > ${Ne}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${Ae.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${Ae.lineWidth}px ${Ae.lineType} ${Ae.colorBorder}`},[`> ${Ne}-content > ${Ne}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:Ae.paddingLG}}}},[`${Ne}-right`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{order:1,[`${Ne}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${Ne}-content-holder, > div > ${Ne}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-Ae.lineWidth},borderRight:{_skip_check_:!0,value:`${Ae.lineWidth}px ${Ae.lineType} ${Ae.colorBorder}`},[`> ${Ne}-content > ${Ne}-tabpane`]:{paddingRight:{_skip_check_:!0,value:Ae.paddingLG}}}}}},qr=Ae=>{const{componentCls:Ne,cardPaddingSM:Be,cardPaddingLG:Ie,horizontalItemPaddingSM:Ye,horizontalItemPaddingLG:ht}=Ae;return{[Ne]:{"&-small":{[`> ${Ne}-nav`]:{[`${Ne}-tab`]:{padding:Ye,fontSize:Ae.titleFontSizeSM}}},"&-large":{[`> ${Ne}-nav`]:{[`${Ne}-tab`]:{padding:ht,fontSize:Ae.titleFontSizeLG}}}},[`${Ne}-card`]:{[`&${Ne}-small`]:{[`> ${Ne}-nav`]:{[`${Ne}-tab`]:{padding:Be}},[`&${Ne}-bottom`]:{[`> ${Ne}-nav ${Ne}-tab`]:{borderRadius:`0 0 ${Ae.borderRadius}px ${Ae.borderRadius}px`}},[`&${Ne}-top`]:{[`> ${Ne}-nav ${Ne}-tab`]:{borderRadius:`${Ae.borderRadius}px ${Ae.borderRadius}px 0 0`}},[`&${Ne}-right`]:{[`> ${Ne}-nav ${Ne}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Ae.borderRadius}px ${Ae.borderRadius}px 0`}}},[`&${Ne}-left`]:{[`> ${Ne}-nav ${Ne}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Ae.borderRadius}px 0 0 ${Ae.borderRadius}px`}}}},[`&${Ne}-large`]:{[`> ${Ne}-nav`]:{[`${Ne}-tab`]:{padding:Ie}}}}}},Hr=Ae=>{const{componentCls:Ne,itemActiveColor:Be,itemHoverColor:Ie,iconCls:Ye,tabsHorizontalItemMargin:ht,horizontalItemPadding:Ht,itemSelectedColor:Mt,itemColor:Wt}=Ae,an=`${Ne}-tab`;return{[an]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:Ht,fontSize:Ae.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:Wt,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:Be}},(0,Pr.Qy)(Ae)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-Ae.marginXXS},marginLeft:{_skip_check_:!0,value:Ae.marginXS},color:Ae.colorTextDescription,fontSize:Ae.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${Ae.motionDurationSlow}`,"&:hover":{color:Ae.colorTextHeading}},"&:hover":{color:Ie},[`&${an}-active ${an}-btn`]:{color:Mt,textShadow:Ae.tabsActiveTextShadow},[`&${an}-disabled`]:{color:Ae.colorTextDisabled,cursor:"not-allowed"},[`&${an}-disabled ${an}-btn, &${an}-disabled ${Ne}-remove`]:{"&:focus, &:active":{color:Ae.colorTextDisabled}},[`& ${an}-remove ${Ye}`]:{margin:0},[Ye]:{marginRight:{_skip_check_:!0,value:Ae.marginSM}}},[`${an} + ${an}`]:{margin:{_skip_check_:!0,value:ht}}}},er=Ae=>{const{componentCls:Ne,tabsHorizontalItemMarginRTL:Be,iconCls:Ie,cardGutter:Ye}=Ae;return{[`${Ne}-rtl`]:{direction:"rtl",[`${Ne}-nav`]:{[`${Ne}-tab`]:{margin:{_skip_check_:!0,value:Be},[`${Ne}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[Ie]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${Ae.marginSM}px`}},[`${Ne}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${Ae.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${Ae.marginXXS}px`},[Ie]:{margin:0}}}},[`&${Ne}-left`]:{[`> ${Ne}-nav`]:{order:1},[`> ${Ne}-content-holder`]:{order:0}},[`&${Ne}-right`]:{[`> ${Ne}-nav`]:{order:0},[`> ${Ne}-content-holder`]:{order:1}},[`&${Ne}-card${Ne}-top, &${Ne}-card${Ne}-bottom`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{[`${Ne}-tab + ${Ne}-tab`]:{marginRight:{_skip_check_:!0,value:Ye},marginLeft:{_skip_check_:!0,value:0}}}}},[`${Ne}-dropdown-rtl`]:{direction:"rtl"},[`${Ne}-menu-item`]:{[`${Ne}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},vr=Ae=>{const{componentCls:Ne,tabsCardPadding:Be,cardHeight:Ie,cardGutter:Ye,itemHoverColor:ht,itemActiveColor:Ht,colorBorderSecondary:Mt}=Ae;return{[Ne]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Pr.Wf)(Ae)),{display:"flex",[`> ${Ne}-nav, > div > ${Ne}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${Ne}-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 ${Ae.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${Ne}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${Ae.motionDurationSlow}`},[`${Ne}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${Ne}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${Ne}-nav-more`]:{position:"relative",padding:Be,background:"transparent",border:0,color:Ae.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:Ae.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${Ne}-nav-add`]:Object.assign({minWidth:Ie,marginLeft:{_skip_check_:!0,value:Ye},padding:`0 ${Ae.paddingXS}px`,background:"transparent",border:`${Ae.lineWidth}px ${Ae.lineType} ${Mt}`,borderRadius:`${Ae.borderRadiusLG}px ${Ae.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:Ae.colorText,transition:`all ${Ae.motionDurationSlow} ${Ae.motionEaseInOut}`,"&:hover":{color:ht},"&:active, &:focus:not(:focus-visible)":{color:Ht}},(0,Pr.Qy)(Ae))},[`${Ne}-extra-content`]:{flex:"none"},[`${Ne}-ink-bar`]:{position:"absolute",background:Ae.inkBarColor,pointerEvents:"none"}}),Hr(Ae)),{[`${Ne}-content`]:{position:"relative",width:"100%"},[`${Ne}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${Ne}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${Ne}-centered`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{[`${Ne}-nav-wrap`]:{[`&:not([class*='${Ne}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var Dn=(0,zr.Z)("Tabs",Ae=>{const Ne=(0,jr.TS)(Ae,{tabsCardPadding:Ae.cardPadding||`${(Ae.cardHeight-Math.round(Ae.fontSize*Ae.lineHeight))/2-Ae.lineWidth}px ${Ae.padding}px`,dropdownEdgeChildVerticalPadding:Ae.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Ae.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${Ae.horizontalItemGutter}px`});return[qr(Ne),er(Ne),Vr(Ne),Yr(Ne),Gr(Ne),vr(Ne),fr(Ne)]},Ae=>{const Ne=Ae.controlHeightLG;return{zIndexPopup:Ae.zIndexPopupBase+50,cardBg:Ae.colorFillAlter,cardHeight:Ne,cardPadding:"",cardPaddingSM:`${Ae.paddingXXS*1.5}px ${Ae.padding}px`,cardPaddingLG:`${Ae.paddingXS}px ${Ae.padding}px ${Ae.paddingXXS*1.5}px`,titleFontSize:Ae.fontSize,titleFontSizeLG:Ae.fontSizeLG,titleFontSizeSM:Ae.fontSize,inkBarColor:Ae.colorPrimary,horizontalMargin:`0 0 ${Ae.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${Ae.paddingSM}px 0`,horizontalItemPaddingSM:`${Ae.paddingXS}px 0`,horizontalItemPaddingLG:`${Ae.padding}px 0`,verticalItemPadding:`${Ae.paddingXS}px ${Ae.paddingLG}px`,verticalItemMargin:`${Ae.margin}px 0 0 0`,itemColor:Ae.colorText,itemSelectedColor:Ae.colorPrimary,itemHoverColor:Ae.colorPrimaryHover,itemActiveColor:Ae.colorPrimaryActive,cardGutter:Ae.marginXXS/2}}),Bn=function(Ae,Ne){var Be={};for(var Ie in Ae)Object.prototype.hasOwnProperty.call(Ae,Ie)&&Ne.indexOf(Ie)<0&&(Be[Ie]=Ae[Ie]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,Ie=Object.getOwnPropertySymbols(Ae);Ye{const{type:Ne,className:Be,rootClassName:Ie,size:Ye,onEdit:ht,hideAdd:Ht,centered:Mt,addIcon:Wt,popupClassName:an,children:ln,items:pn,animated:Ct,style:rn,indicatorSize:On}=Ae,Mn=Bn(Ae,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:Pn,moreIcon:Ln=De.createElement(We.Z,null)}=Mn,{direction:tr,tabs:hn,getPrefixCls:qn,getPopupContainer:et}=De.useContext(Bt.E_),It=qn("tabs",Pn),[Ft,Qt]=Dn(It);let Rt;Ne==="editable-card"&&(Rt={onEdit:(Un,ar)=>{let{key:xr,event:or}=ar;ht==null||ht(Un==="add"?or:xr,Un)},removeIcon:De.createElement(ye.Z,null),addIcon:Wt||De.createElement(Te.Z,null),showAdd:Ht!==!0});const jt=qn(),Zt=yr(pn,ln),cn=In(It,Ct),mn=(0,xn.Z)(Ye),En=Object.assign(Object.assign({},hn==null?void 0:hn.style),rn);return Ft(De.createElement(mt,Object.assign({direction:tr,getPopupContainer:et,moreTransitionName:`${jt}-slide-up`},Mn,{items:Zt,className:be()({[`${It}-${mn}`]:mn,[`${It}-card`]:["card","editable-card"].includes(Ne),[`${It}-editable-card`]:Ne==="editable-card",[`${It}-centered`]:Mt},hn==null?void 0:hn.className,Be,Ie,Qt),popupClassName:be()(an,Qt),style:En,editable:Rt,moreIcon:Ln,prefixCls:It,animated:cn,indicatorSize:On!=null?On:hn==null?void 0:hn.indicatorSize})))};br.TabPane=yn;var st=br},99498:function(fn,Jt,fe){(function(ye){ye(fe(89780))})(function(ye){ye.defineOption("placeholder","",function(Ce,Ee,Fe){var lt=Fe&&Fe!=ye.Init;if(Ee&&!lt)Ce.on("blur",be),Ce.on("change",_e),Ce.on("swapDoc",_e),ye.on(Ce.getInputField(),"compositionupdate",Ce.state.placeholderCompose=function(){it(Ce)}),_e(Ce);else if(!Ee&<){Ce.off("blur",be),Ce.off("change",_e),Ce.off("swapDoc",_e),ye.off(Ce.getInputField(),"compositionupdate",Ce.state.placeholderCompose),We(Ce);var De=Ce.getWrapperElement();De.className=De.className.replace(" CodeMirror-empty","")}Ee&&!Ce.hasFocus()&&be(Ce)});function We(Ce){Ce.state.placeholder&&(Ce.state.placeholder.parentNode.removeChild(Ce.state.placeholder),Ce.state.placeholder=null)}function Te(Ce){We(Ce);var Ee=Ce.state.placeholder=document.createElement("pre");Ee.style.cssText="height: 0; overflow: visible",Ee.style.direction=Ce.getOption("direction"),Ee.className="CodeMirror-placeholder CodeMirror-line-like";var Fe=Ce.getOption("placeholder");typeof Fe=="string"&&(Fe=document.createTextNode(Fe)),Ee.appendChild(Fe),Ce.display.lineSpace.insertBefore(Ee,Ce.display.lineSpace.firstChild)}function it(Ce){setTimeout(function(){var Ee=!1,Fe=Ce.getInputField();Fe.nodeName=="TEXTAREA"?Ee=!Fe.value:Ce.lineCount()==1&&(Ee=!/[^\u200b]/.test(Fe.querySelector(".CodeMirror-line").textContent)),Ee?Te(Ce):We(Ce)},20)}function be(Ce){Re(Ce)&&Te(Ce)}function _e(Ce){var Ee=Ce.getWrapperElement(),Fe=Re(Ce);Ee.className=Ee.className.replace(" CodeMirror-empty","")+(Fe?" CodeMirror-empty":""),Fe?Te(Ce):We(Ce)}function Re(Ce){return Ce.lineCount()===1&&Ce.getLine(0)===""}})},25717:function(fn,Jt,fe){(function(ye){ye(fe(89780))})(function(ye){var We={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Te=ye.Pos;ye.defineOption("autoCloseBrackets",!1,function(Ve,rt,Xe){Xe&&Xe!=ye.Init&&(Ve.removeKeyMap(be),Ve.state.closeBrackets=null),rt&&(_e(it(rt,"pairs")),Ve.state.closeBrackets=rt,Ve.addKeyMap(be))});function it(Ve,rt){return rt=="pairs"&&typeof Ve=="string"?Ve:typeof Ve=="object"&&Ve[rt]!=null?Ve[rt]:We[rt]}var be={Backspace:Ee,Enter:Fe};function _e(Ve){for(var rt=0;rt=0;Kt--){var dt=St[Kt].head;Ve.replaceRange("",Te(dt.line,dt.ch-1),Te(dt.line,dt.ch+1),"+delete")}}function Fe(Ve){var rt=Ce(Ve),Xe=rt&&it(rt,"explode");if(!Xe||Ve.getOption("disableInput"))return ye.Pass;for(var St=Ve.listSelections(),Kt=0;Kt0;return{anchor:new Te(Ve.anchor.line,Ve.anchor.ch+(rt?-1:1)),head:new Te(Ve.head.line,Ve.head.ch+(rt?1:-1))}}function De(Ve,rt){var Xe=Ce(Ve);if(!Xe||Ve.getOption("disableInput"))return ye.Pass;var St=it(Xe,"pairs"),Kt=St.indexOf(rt);if(Kt==-1)return ye.Pass;for(var Je=it(Xe,"closeBefore"),dt=it(Xe,"triples"),Ze=St.charAt(Kt+1)==rt,Me=Ve.listSelections(),ze=Kt%2==0,$e,pt=0;pt=0&&Ve.getRange(Lt,Te(Lt.line,Lt.ch+3))==rt+rt+rt?at="skipThree":at="skip";else if(Ze&&Lt.ch>1&&dt.indexOf(rt)>=0&&Ve.getRange(Te(Lt.line,Lt.ch-2),Lt)==rt+rt){if(Lt.ch>2&&/\bstring/.test(Ve.getTokenTypeAt(Te(Lt.line,Lt.ch-2))))return ye.Pass;at="addFour"}else if(Ze){var tt=Lt.ch==0?" ":Ve.getRange(Te(Lt.line,Lt.ch-1),Lt);if(!ye.isWordChar(At)&&tt!=rt&&!ye.isWordChar(tt))at="both";else return ye.Pass}else if(ze&&(At.length===0||/\s/.test(At)||Je.indexOf(At)>-1))at="both";else return ye.Pass;if(!$e)$e=at;else if($e!=at)return ye.Pass}var Nt=Kt%2?St.charAt(Kt-1):rt,tn=Kt%2?rt:St.charAt(Kt+1);Ve.operation(function(){if($e=="skip")Ve.execCommand("goCharRight");else if($e=="skipThree")for(var Xt=0;Xt<3;Xt++)Ve.execCommand("goCharRight");else if($e=="surround"){for(var qt=Ve.getSelections(),Xt=0;Xt'"]=function(Ke){return it(Ke)}),Ee.addKeyMap(De)}});var We=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Te=["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 it(Ee){if(Ee.getOption("disableInput"))return ye.Pass;for(var Fe=Ee.listSelections(),lt=[],De=Ee.getOption("autoCloseTags"),Ke=0;Keft.ch&&(Kt=Kt.slice(0,Kt.length-Ve.end+ft.ch));var Me=Kt.toLowerCase();if(!Kt||Ve.type=="string"&&(Ve.end!=ft.ch||!/[\"\']/.test(Ve.string.charAt(Ve.string.length-1))||Ve.string.length==1)||Ve.type=="tag"&&St.close||Ve.string.indexOf("/")==ft.ch-Ve.start-1||dt&&Re(dt,Me)>-1||Ce(Ee,rt.mode.xmlCurrentContext&&rt.mode.xmlCurrentContext(Xe)||[],Kt,ft,!0))return ye.Pass;var ze=typeof De=="object"&&De.emptyTags;if(ze&&Re(ze,Kt)>-1){lt[Ke]={text:"/>",newPos:ye.Pos(ft.line,ft.ch+2)};continue}var $e=Ze&&Re(Ze,Me)>-1;lt[Ke]={indent:$e,text:">"+($e?` `:"")+"",newPos:$e?ye.Pos(ft.line+1,0):ye.Pos(ft.line,ft.ch+1)}}for(var pt=typeof De=="object"&&De.dontIndentOnAutoClose,Ke=Fe.length-1;Ke>=0;Ke--){var Ge=lt[Ke];Ee.replaceRange(Ge.text,Fe[Ke].head,Fe[Ke].anchor,"+insert");var Lt=Ee.listSelections().slice(0);Lt[Ke]={head:Ge.newPos,anchor:Ge.newPos},Ee.setSelections(Lt),!pt&&Ge.indent&&(Ee.indentLine(Ge.newPos.line,null,!0),Ee.indentLine(Ge.newPos.line+1,null,!0))}}function be(Ee,Fe){for(var lt=Ee.listSelections(),De=[],Ke=Fe?"/":""&&(dt+=">"),De[rt]=dt}if(Ee.replaceSelections(De),lt=Ee.listSelections(),!Ve)for(var rt=0;rt=0&&Fe[Xe]==lt;Xe--)++rt;De=Ve.to;for(var Xe=1;Xe=Xe.max))return Xe.ch=0,Xe.text=Xe.cm.getLine(++Xe.line),!0}function Fe(Xe){if(!(Xe.line<=Xe.min))return Xe.text=Xe.cm.getLine(--Xe.line),Xe.ch=Xe.text.length,!0}function lt(Xe){for(;;){var St=Xe.text.indexOf(">",Xe.ch);if(St==-1){if(Ee(Xe))continue;return}if(!Ce(Xe,St+1)){Xe.ch=St+1;continue}var Kt=Xe.text.lastIndexOf("/",St),Je=Kt>-1&&!/\S/.test(Xe.text.slice(Kt+1,St));return Xe.ch=St+1,Je?"selfClose":"regular"}}function De(Xe){for(;;){var St=Xe.ch?Xe.text.lastIndexOf("<",Xe.ch-1):-1;if(St==-1){if(Fe(Xe))continue;return}if(!Ce(Xe,St+1)){Xe.ch=St;continue}_e.lastIndex=St,Xe.ch=St;var Kt=_e.exec(Xe.text);if(Kt&&Kt.index==St)return Kt}}function Ke(Xe){for(;;){_e.lastIndex=Xe.ch;var St=_e.exec(Xe.text);if(!St){if(Ee(Xe))continue;return}if(!Ce(Xe,St.index+1)){Xe.ch=St.index+1;continue}return Xe.ch=St.index+St[0].length,St}}function ft(Xe){for(;;){var St=Xe.ch?Xe.text.lastIndexOf(">",Xe.ch-1):-1;if(St==-1){if(Fe(Xe))continue;return}if(!Ce(Xe,St+1)){Xe.ch=St;continue}var Kt=Xe.text.lastIndexOf("/",St),Je=Kt>-1&&!/\S/.test(Xe.text.slice(Kt+1,St));return Xe.ch=St+1,Je?"selfClose":"regular"}}function Ve(Xe,St){for(var Kt=[];;){var Je=Ke(Xe),dt,Ze=Xe.line,Me=Xe.ch-(Je?Je[0].length:0);if(!Je||!(dt=lt(Xe)))return;if(dt!="selfClose")if(Je[1]){for(var ze=Kt.length-1;ze>=0;--ze)if(Kt[ze]==Je[2]){Kt.length=ze;break}if(ze<0&&(!St||St==Je[2]))return{tag:Je[2],from:We(Ze,Me),to:We(Xe.line,Xe.ch)}}else Kt.push(Je[2])}}function rt(Xe,St){for(var Kt=[];;){var Je=ft(Xe);if(!Je)return;if(Je=="selfClose"){De(Xe);continue}var dt=Xe.line,Ze=Xe.ch,Me=De(Xe);if(!Me)return;if(Me[1])Kt.push(Me[2]);else{for(var ze=Kt.length-1;ze>=0;--ze)if(Kt[ze]==Me[2]){Kt.length=ze;break}if(ze<0&&(!St||St==Me[2]))return{tag:Me[2],from:We(Xe.line,Xe.ch),to:We(dt,Ze)}}}}ye.registerHelper("fold","xml",function(Xe,St){for(var Kt=new Re(Xe,St.line,0);;){var Je=Ke(Kt);if(!Je||Kt.line!=St.line)return;var dt=lt(Kt);if(!dt)return;if(!Je[1]&&dt!="selfClose"){var Ze=We(Kt.line,Kt.ch),Me=Ve(Kt,Je[2]);return Me&&Te(Me.from,Ze)>0?{from:Ze,to:Me.from}:null}}}),ye.findMatchingTag=function(Xe,St,Kt){var Je=new Re(Xe,St.line,St.ch,Kt);if(!(Je.text.indexOf(">")==-1&&Je.text.indexOf("<")==-1)){var dt=lt(Je),Ze=dt&&We(Je.line,Je.ch),Me=dt&&De(Je);if(!(!dt||!Me||Te(Je,St)>0)){var ze={from:We(Je.line,Je.ch),to:Ze,tag:Me[2]};return dt=="selfClose"?{open:ze,close:null,at:"open"}:Me[1]?{open:rt(Je,Me[2]),close:ze,at:"close"}:(Je=new Re(Xe,Ze.line,Ze.ch,Kt),{open:ze,close:Ve(Je,Me[2]),at:"open"})}}},ye.findEnclosingTag=function(Xe,St,Kt,Je){for(var dt=new Re(Xe,St.line,St.ch,Kt);;){var Ze=rt(dt,Je);if(!Ze)break;var Me=new Re(Xe,St.line,St.ch,Kt),ze=Ve(Me,Ze.tag);if(ze)return{open:Ze,close:ze}}},ye.scanForClosingTag=function(Xe,St,Kt,Je){var dt=new Re(Xe,St.line,St.ch,Je?{from:0,to:Je}:null);return Ve(dt,Kt)}})},89780:function(fn){(function(Jt,fe){fn.exports=fe()})(this,function(){"use strict";var Jt=navigator.userAgent,fe=navigator.platform,ye=/gecko\/\d/i.test(Jt),We=/MSIE \d/.test(Jt),Te=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Jt),it=/Edge\/(\d+)/.exec(Jt),be=We||Te||it,_e=be&&(We?document.documentMode||6:+(it||Te)[1]),Re=!it&&/WebKit\//.test(Jt),Ce=Re&&/Qt\/\d+\.\d+/.test(Jt),Ee=!it&&/Chrome\//.test(Jt),Fe=/Opera\//.test(Jt),lt=/Apple Computer/.test(navigator.vendor),De=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Jt),Ke=/PhantomJS/.test(Jt),ft=!it&&/AppleWebKit/.test(Jt)&&/Mobile\/\w+/.test(Jt),Ve=/Android/.test(Jt),rt=ft||Ve||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Jt),Xe=ft||/Mac/.test(fe),St=/\bCrOS\b/.test(Jt),Kt=/win/i.test(fe),Je=Fe&&Jt.match(/Version\/(\d*\.\d*)/);Je&&(Je=Number(Je[1])),Je&&Je>=15&&(Fe=!1,Re=!0);var dt=Xe&&(Ce||Fe&&(Je==null||Je<12.11)),Ze=ye||be&&_e>=9;function Me(x){return new RegExp("(^|\\s)"+x+"(?:$|\\s)\\s*")}var ze=function(x,z){var ne=x.className,te=Me(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 $e(x){for(var z=x.childNodes.length;z>0;--z)x.removeChild(x.firstChild);return x}function pt(x,z){return $e(x).appendChild(z)}function Ge(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 ue=0;ue=z)return me+(z-ue);me+=Se-ue,me+=ne-me%ne,ue=Se+1}}var xe=function(){this.id=null,this.f=null,this.time=0,this.handler=qt(this.onTimeout,this)};xe.prototype.onTimeout=function(x){x.id=0,x.time<=+new Date?x.f():setTimeout(x.handler,x.time-+new Date)},xe.prototype.set=function(x,z){this.f=z;var ne=+new Date+x;(!this.id||ne=z)return te+Math.min(me,z-ie);if(ie+=ue-te,ie+=ne-ie%ne,te=ue+1,ie>=z)return te}}var Et=[""];function $t(x){for(;Et.length<=x;)Et.push(wt(Et)+" ");return Et[x]}function wt(x){return x[x.length-1]}function Dt(x,z){for(var ne=[],te=0;te"\x80"&&(x.toUpperCase()!=x.toLowerCase()||oe.test(x))}function de(x,z){return z?z.source.indexOf("\\w")>-1&&ce(x)?!0:z.test(x):ce(x)}function se(x){for(var z in x)if(x.hasOwnProperty(z)&&x[z])return!1;return!0}var Le=/[\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 qe(x){return x.charCodeAt(0)>=768&&Le.test(x)}function vt(x,z,ne){for(;(ne<0?z>0:zne?-1:1;;){if(z==ne)return z;var ie=(z+ne)/2,ue=te<0?Math.ceil(ie):Math.floor(ie);if(ue==z)return x(ue)?z:ne;x(ue)?ne=ue:z=ue+te}}function _t(x,z,ne,te){if(!x)return te(z,ne,"ltr",0);for(var ie=!1,ue=0;uez||z==ne&&me.to==z)&&(te(Math.max(me.from,z),Math.min(me.to,ne),me.level==1?"rtl":"ltr",ue),ie=!0)}ie||te(z,ne,"ltr")}var Tt=null;function zt(x,z,ne){var te;Tt=null;for(var ie=0;iez)return ie;ue.to==z&&(ue.from!=ue.to&&ne=="before"?te=ie:Tt=ie),ue.from==z&&(ue.from!=ue.to&&ne!="before"?te=ie:Tt=ie)}return te!=null?te:Tt}var Yt=function(){var x="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",z="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ne(Pe){return Pe<=247?x.charAt(Pe):1424<=Pe&&Pe<=1524?"R":1536<=Pe&&Pe<=1785?z.charAt(Pe-1536):1774<=Pe&&Pe<=2220?"r":8192<=Pe&&Pe<=8203?"w":Pe==8204?"b":"L"}var te=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ie=/[stwN]/,ue=/[LRr]/,me=/[Lb1n]/,Se=/[1n]/;function ke(Pe,ut,xt){this.level=Pe,this.from=ut,this.to=xt}return function(Pe,ut){var xt=ut=="ltr"?"L":"R";if(Pe.length==0||ut=="ltr"&&!te.test(Pe))return!1;for(var en=Pe.length,Gt=[],Sn=0;Sn-1&&(te[z]=ie.slice(0,ue).concat(ie.slice(ue+1)))}}}function mt(x,z){var ne=Cn(x,z);if(ne.length)for(var te=Array.prototype.slice.call(arguments,2),ie=0;ie0}function yn(x){x.prototype.on=function(z,ne){Ut(this,z,ne)},x.prototype.off=function(z,ne){nt(this,z,ne)}}function Nn(x){x.preventDefault?x.preventDefault():x.returnValue=!1}function Vn(x){x.stopPropagation?x.stopPropagation():x.cancelBubble=!0}function In(x){return x.defaultPrevented!=null?x.defaultPrevented:x.returnValue==!1}function lr(x){Nn(x),Vn(x)}function ur(x){return x.target||x.srcElement}function gn(x){var z=x.which;return z==null&&(x.button&1?z=1:x.button&2?z=3:x.button&4&&(z=2)),Xe&&x.ctrlKey&&z==1&&(z=3),z}var yr=function(){if(be&&_e<9)return!1;var x=Ge("div");return"draggable"in x||"dragDrop"in x}(),Pr;function zr(x){if(Pr==null){var z=Ge("span","\u200B");pt(x,Ge("span",[z,document.createTextNode("x")])),x.firstChild.offsetHeight!=0&&(Pr=z.offsetWidth<=1&&z.offsetHeight>2&&!(be&&_e<8))}var ne=Pr?Ge("span","\u200B"):Ge("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ne.setAttribute("cm-text",""),ne}var jr;function Ar(x){if(jr!=null)return jr;var z=pt(x,document.createTextNode("A\u062EA")),ne=at(z,0,1).getBoundingClientRect(),te=at(z,1,2).getBoundingClientRect();return $e(x),!ne||ne.left==ne.right?!1:jr=te.right-ne.right<3}var Xr=` 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 ue=x.slice(z,x.charAt(ie-1)=="\r"?ie-1:ie),me=ue.indexOf("\r");me!=-1?(ne.push(ue.slice(0,me)),z+=me+1):(ne.push(ue),z=ie+1)}return ne}:function(x){return x.split(/\r\n?|\n/)},fr=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},Gr=function(){var x=Ge("div");return"oncopy"in x?!0:(x.setAttribute("oncopy","return;"),typeof x.oncopy=="function")}(),Yr=null;function Vr(x){if(Yr!=null)return Yr;var z=pt(x,Ge("span","x")),ne=z.getBoundingClientRect(),te=at(z,0,1).getBoundingClientRect();return Yr=Math.abs(ne.left-te.left)>1}var qr={},Hr={};function er(x,z){arguments.length>2&&(z.dependencies=Array.prototype.slice.call(arguments,2)),qr[x]=z}function vr(x,z){Hr[x]=z}function Dn(x){if(typeof x=="string"&&Hr.hasOwnProperty(x))x=Hr[x];else if(x&&typeof x.name=="string"&&Hr.hasOwnProperty(x.name)){var z=Hr[x.name];typeof z=="string"&&(z={name:z}),x=le(z,x),x.name=z.name}else{if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(x))return Dn("application/xml");if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(x))return Dn("application/json")}return typeof x=="string"?{name:x}:x||{name:"null"}}function Bn(x,z){z=Dn(z);var ne=qr[z.name];if(!ne)return Bn(x,"text/plain");var te=ne(x,z);if(br.hasOwnProperty(z.name)){var ie=br[z.name];for(var ue in ie)ie.hasOwnProperty(ue)&&(te.hasOwnProperty(ue)&&(te["_"+ue]=te[ue]),te[ue]=ie[ue])}if(te.name=z.name,z.helperType&&(te.helperType=z.helperType),z.modeProps)for(var me in z.modeProps)te[me]=z.modeProps[me];return te}var br={};function st(x,z){var ne=br.hasOwnProperty(x)?br[x]:br[x]={};Ot(z,ne)}function Ae(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 Ne(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 Be(x,z,ne){return x.startState?x.startState(z,ne):!0}var Ie=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};Ie.prototype.eol=function(){return this.pos>=this.string.length},Ie.prototype.sol=function(){return this.pos==this.lineStart},Ie.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ie.prototype.next=function(){if(this.posz},Ie.prototype.eatSpace=function(){for(var x=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>x},Ie.prototype.skipToEnd=function(){this.pos=this.string.length},Ie.prototype.skipTo=function(x){var z=this.string.indexOf(x,this.pos);if(z>-1)return this.pos=z,!0},Ie.prototype.backUp=function(x){this.pos-=x},Ie.prototype.column=function(){return this.lastColumnPos0?null:(ue&&z!==!1&&(this.pos+=ue[0].length),ue)}},Ie.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ie.prototype.hideFirstChars=function(x,z){this.lineStart+=x;try{return z()}finally{this.lineStart-=x}},Ie.prototype.lookAhead=function(x){var z=this.lineOracle;return z&&z.lookAhead(x)},Ie.prototype.baseToken=function(){var x=this.lineOracle;return x&&x.baseToken(this.pos)};function Ye(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],ue=ie.chunkSize();if(z=x.first&&zne?Ct(ne,Ye(x,ne).text.length):qn(z,Ye(x,z.line).text.length)}function qn(x,z){var ne=x.ch;return ne==null||ne>z?Ct(x.line,z):ne<0?Ct(x.line,0):x}function et(x,z){for(var ne=[],te=0;tethis.maxLookAhead&&(this.maxLookAhead=x),z},Ft.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}},Ft.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ft.fromSaved=function(x,z,ne){return z instanceof It?new Ft(x,Ae(x.mode,z.state),ne,z.lookAhead):new Ft(x,Ae(x.mode,z),ne)},Ft.prototype.save=function(x){var z=x!==!1?Ae(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new It(z,this.maxLookAhead):z};function Qt(x,z,ne,te){var ie=[x.state.modeGen],ue={};xr(x,z.text,x.doc.mode,ne,function(Pe,ut){return ie.push(Pe,ut)},ue,te);for(var me=ne.state,Se=function(Pe){ne.baseTokens=ie;var ut=x.state.overlays[Pe],xt=1,en=0;ne.state=!0,xr(x,z.text,ut.mode,ne,function(Gt,Sn){for(var Tn=xt;enGt&&ie.splice(xt,1,Gt,ie[xt+1],Jn),xt+=2,en=Math.min(Gt,Jn)}if(Sn)if(ut.opaque)ie.splice(Tn,xt-Tn,Gt,"overlay "+Sn),xt=Tn+2;else for(;Tnx.options.maxHighlightLength&&Ae(x.doc.mode,te.state),ue=Qt(x,z,te);ie&&(te.state=ie),z.stateAfter=te.save(!ie),z.styles=ue.styles,ue.classes?z.styleClasses=ue.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 jt(x,z,ne){var te=x.doc,ie=x.display;if(!te.mode.startState)return new Ft(te,!0,z);var ue=or(x,z,ne),me=ue>te.first&&Ye(te,ue-1).stateAfter,Se=me?Ft.fromSaved(te,me,ue):new Ft(te,Be(te.mode),ue);return te.iter(ue,z,function(ke){Zt(x,ke.text,Se);var Pe=Se.line;ke.stateAfter=Pe==z-1||Pe%5==0||Pe>=ie.viewFrom&&Pez.start)return ue}throw new Error("Mode "+x.name+" failed to advance stream.")}var En=function(x,z,ne){this.start=x.start,this.end=x.pos,this.string=x.current(),this.type=z||null,this.state=ne};function Un(x,z,ne,te){var ie=x.doc,ue=ie.mode,me;z=hn(ie,z);var Se=Ye(ie,z.line),ke=jt(x,z.line,ne),Pe=new Ie(Se.text,x.options.tabSize,ke),ut;for(te&&(ut=[]);(te||Pe.posx.options.maxHighlightLength?(Se=!1,me&&Zt(x,z,te,ut.pos),ut.pos=z.length,xt=null):xt=ar(mn(ne,ut,te.state,en),ue),en){var Gt=en[0].name;Gt&&(xt="m-"+(xt?Gt+" "+xt:Gt))}if(!Se||Pe!=xt){for(;keme;--Se){if(Se<=ue.first)return ue.first;var ke=Ye(ue,Se-1),Pe=ke.stateAfter;if(Pe&&(!ne||Se+(Pe instanceof It?Pe.lookAhead:0)<=ue.modeFrontier))return Se;var ut=He(ke.text,null,x.options.tabSize);(ie==null||te>ut)&&(ie=Se-1,te=ut)}return ie}function $n(x,z){if(x.modeFrontier=Math.min(x.modeFrontier,z),!(x.highlightFrontierne;te--){var ie=Ye(x,te).stateAfter;if(ie&&(!(ie instanceof It)||te+ie.lookAhead=z:ue.to>z);(te||(te=[])).push(new nr(me,ue.from,ke?null:ue.to))}}return te}function cr(x,z,ne){var te;if(x)for(var ie=0;ie=z:ue.to>z);if(Se||ue.from==z&&me.type=="bookmark"&&(!ne||ue.marker.insertLeft)){var ke=ue.from==null||(me.inclusiveLeft?ue.from<=z:ue.from0&&Se)for(var kr=0;kr0)){var ut=[ke,1],xt=rn(Pe.from,Se.from),en=rn(Pe.to,Se.to);(xt<0||!me.inclusiveLeft&&!xt)&&ut.push({from:Pe.from,to:Se.from}),(en>0||!me.inclusiveRight&&!en)&&ut.push({from:Se.to,to:Pe.to}),ie.splice.apply(ie,ut),ke+=ut.length-3}}return ie}function Xn(x){var z=x.markedSpans;if(z){for(var ne=0;nez)&&(!te||Qr(te,ue.marker)<0)&&(te=ue.marker)}return te}function Lr(x,z,ne,te,ie){var ue=Ye(x,z),me=pr&&ue.markedSpans;if(me)for(var Se=0;Se=0&&xt<=0||ut<=0&&xt>=0)&&(ut<=0&&(ke.marker.inclusiveRight&&ie.inclusiveLeft?rn(Pe.to,ne)>=0:rn(Pe.to,ne)>0)||ut>=0&&(ke.marker.inclusiveRight&&ie.inclusiveLeft?rn(Pe.from,te)<=0:rn(Pe.from,te)<0)))return!0}}}function Ir(x){for(var z;z=fi(x);)x=z.find(-1,!0).line;return x}function si(x){for(var z;z=Yn(x);)x=z.find(1,!0).line;return x}function Yi(x){for(var z,ne;z=Yn(x);)x=z.find(1,!0).line,(ne||(ne=[])).push(x);return ne}function _i(x,z){var ne=Ye(x,z),te=Ir(ne);return ne==te?z:Wt(te)}function Jr(x,z){if(z>x.lastLine())return z;var ne=Ye(x,z),te;if(!yi(x,ne))return z;for(;te=Yn(ne);)ne=te.find(1,!0).line;return Wt(ne)+1}function yi(x,z){var ne=pr&&z.markedSpans;if(ne){for(var te=void 0,ie=0;iez.maxLineLength&&(z.maxLineLength=ie,z.maxLine=te)})}var Qn=function(x,z,ne){this.text=x,Sr(this,z),this.height=ne?ne(this):1};Qn.prototype.lineNo=function(){return Wt(this)},yn(Qn);function ei(x,z,ne,te){x.text=z,x.stateAfter&&(x.stateAfter=null),x.styles&&(x.styles=null),x.order!=null&&(x.order=null),Xn(x),Sr(x,ne);var ie=te?te(x):1;ie!=x.height&&Mt(x,ie)}function hi(x){x.parent=null,Xn(x)}var bi={},mi={};function ai(x,z){if(!x||/^\s*$/.test(x))return null;var ne=z.addModeClass?mi:bi;return ne[x]||(ne[x]=x.replace(/\S+/g,"cm-$&"))}function wi(x,z){var ne=Lt("span",null,null,Re?"padding-right: .1px":null),te={pre:Lt("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 ue=ie?z.rest[ie-1]:z.line,me=void 0;te.pos=0,te.addToken=Ti,Ar(x.display.measure)&&(me=on(ue,x.doc.direction))&&(te.addToken=ea(te.addToken,me)),te.map=[];var Se=z!=x.display.externalMeasured&&Wt(ue);Ja(ue,te,Rt(x,ue,Se)),ue.styleClasses&&(ue.styleClasses.bgClass&&(te.bgClass=tn(ue.styleClasses.bgClass,te.bgClass||"")),ue.styleClasses.textClass&&(te.textClass=tn(ue.styleClasses.textClass,te.textClass||""))),te.map.length==0&&te.map.push(0,0,te.content.appendChild(zr(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(Re){var ke=te.content.lastChild;(/\bcm-tab\b/.test(ke.className)||ke.querySelector&&ke.querySelector(".cm-tab"))&&(te.content.className="cm-tab-wrap-hack")}return mt(x,"renderLine",x,z.line,te.pre),te.pre.className&&(te.textClass=tn(te.pre.className,te.textClass||"")),te}function Ki(x){var z=Ge("span","\u2022","cm-invalidchar");return z.title="\\u"+x.charCodeAt(0).toString(16),z.setAttribute("aria-label",z.title),z}function Ti(x,z,ne,te,ie,ue,me){if(z){var Se=x.splitSpaces?pa(z,x.trailingSpace):z,ke=x.cm.state.specialChars,Pe=!1,ut;if(!ke.test(z))x.col+=z.length,ut=document.createTextNode(Se),x.map.push(x.pos,x.pos+z.length,ut),be&&_e<9&&(Pe=!0),x.pos+=z.length;else{ut=document.createDocumentFragment();for(var xt=0;;){ke.lastIndex=xt;var en=ke.exec(z),Gt=en?en.index-xt:z.length-xt;if(Gt){var Sn=document.createTextNode(Se.slice(xt,xt+Gt));be&&_e<9?ut.appendChild(Ge("span",[Sn])):ut.appendChild(Sn),x.map.push(x.pos,x.pos+Gt,Sn),x.col+=Gt,x.pos+=Gt}if(!en)break;xt+=Gt+1;var Tn=void 0;if(en[0]==" "){var Jn=x.cm.options.tabSize,gr=Jn-x.col%Jn;Tn=ut.appendChild(Ge("span",$t(gr),"cm-tab")),Tn.setAttribute("role","presentation"),Tn.setAttribute("cm-text"," "),x.col+=gr}else en[0]=="\r"||en[0]==` `?(Tn=ut.appendChild(Ge("span",en[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Tn.setAttribute("cm-text",en[0]),x.col+=1):(Tn=x.cm.options.specialCharPlaceholder(en[0]),Tn.setAttribute("cm-text",en[0]),be&&_e<9?ut.appendChild(Ge("span",[Tn])):ut.appendChild(Tn),x.col+=1);x.map.push(x.pos,x.pos+1,Tn),x.pos++}}if(x.trailingSpace=Se.charCodeAt(z.length-1)==32,ne||te||ie||Pe||ue||me){var Cr=ne||"";te&&(Cr+=te),ie&&(Cr+=ie);var dr=Ge("span",[ut],Cr,ue);if(me)for(var kr in me)me.hasOwnProperty(kr)&&kr!="style"&&kr!="class"&&dr.setAttribute(kr,me[kr]);return x.content.appendChild(dr)}x.content.appendChild(ut)}}function pa(x,z){if(x.length>1&&!/ /.test(x))return x;for(var ne=z,te="",ie=0;iePe&&xt.from<=Pe));en++);if(xt.to>=ut)return x(ne,te,ie,ue,me,Se,ke);x(ne,te.slice(0,xt.to-Pe),ie,ue,null,Se,ke),ue=null,te=te.slice(xt.to-Pe),Pe=xt.to}}}function Oi(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 Ja(x,z,ne){var te=x.markedSpans,ie=x.text,ue=0;if(!te){for(var me=1;meke||di.collapsed&&Zr.to==ke&&Zr.from==ke)){if(Zr.to!=null&&Zr.to!=ke&&Gt>Zr.to&&(Gt=Zr.to,Tn=""),di.className&&(Sn+=" "+di.className),di.css&&(en=(en?en+";":"")+di.css),di.startStyle&&Zr.from==ke&&(Jn+=" "+di.startStyle),di.endStyle&&Zr.to==Gt&&(kr||(kr=[])).push(di.endStyle,Zr.to),di.title&&((Cr||(Cr={})).title=di.title),di.attributes)for(var ji in di.attributes)(Cr||(Cr={}))[ji]=di.attributes[ji];di.collapsed&&(!gr||Qr(gr.marker,di)<0)&&(gr=Zr)}else Zr.from>ke&&Gt>Zr.from&&(Gt=Zr.from)}if(kr)for(var Na=0;Na=Se)break;for(var uo=Math.min(Se,Gt);;){if(ut){var co=ke+ut.length;if(!gr){var Ca=co>uo?ut.slice(0,uo-ke):ut;z.addToken(z,Ca,xt?xt+Sn:Sn,Jn,ke+Ca.length==Gt?Tn:"",en,Cr)}if(co>=uo){ut=ut.slice(uo-ke),ke=uo;break}ke=co,Jn=""}ut=ie.slice(ue,ue=ne[Pe++]),xt=ai(ne[Pe++],z.cm.options)}}}function Ea(x,z,ne){this.line=z,this.rest=Yi(z),this.size=this.rest?Wt(wt(this.rest))-ne+1:1,this.node=this.text=null,this.hidden=yi(x,z)}function ma(x,z,ne){for(var te=[],ie,ue=z;ue2&&ue.push((ke.bottom+Pe.top)/2-ne.top)}}ue.push(ne.bottom-ne.top)}}function Ao(x,z,ne){if(x.line==z)return{map:x.measure.map,cache:x.measure.cache};for(var te=0;tene)return{map:x.measure.maps[ie],cache:x.measure.caches[ie],before:!0}}function ns(x,z){z=Ir(z);var ne=Wt(z),te=x.display.externalMeasured=new Ea(x.doc,z,ne);te.lineN=ne;var ie=te.built=wi(x,te);return te.text=ie.pre,pt(x.display.lineMeasure,ie.pre),te}function Ro(x,z,ne,te){return Ai(x,Pa(x,z),ne,te)}function Ua(x,z){if(z>=x.display.viewFrom&&z=ne.lineN&&zz)&&(ue=ke-Se,ie=ue-1,z>=ke&&(me="right")),ie!=null){if(te=x[Pe+2],Se==ke&&ne==(te.insertLeft?"left":"right")&&(me=ne),ne=="left"&&ie==0)for(;Pe&&x[Pe-2]==x[Pe-3]&&x[Pe-1].insertLeft;)te=x[(Pe-=3)+2],me="left";if(ne=="right"&&ie==ke-Se)for(;Pe=0&&(ne=x[ie]).left==ne.right;ie--);return ne}function gi(x,z,ne,te){var ie=rs(z.map,ne,te),ue=ie.node,me=ie.start,Se=ie.end,ke=ie.collapse,Pe;if(ue.nodeType==3){for(var ut=0;ut<4;ut++){for(;me&&qe(z.line.text.charAt(ie.coverStart+me));)--me;for(;ie.coverStart+Se0&&(ke=te="right");var xt;x.options.lineWrapping&&(xt=ue.getClientRects()).length>1?Pe=xt[te=="right"?xt.length-1:0]:Pe=ue.getBoundingClientRect()}if(be&&_e<9&&!me&&(!Pe||!Pe.left&&!Pe.right)){var en=ue.parentNode.getClientRects()[0];en?Pe={left:en.left,right:en.left+Mi(x.display),top:en.top,bottom:en.bottom}:Pe=Lo}for(var Gt=Pe.top-z.rect.top,Sn=Pe.bottom-z.rect.top,Tn=(Gt+Sn)/2,Jn=z.view.measure.heights,gr=0;gr=te.text.length?(ke=te.text.length,Pe="before"):ke<=0&&(ke=0,Pe="after"),!Se)return me(Pe=="before"?ke-1:ke,Pe=="before");function ut(Sn,Tn,Jn){var gr=Se[Tn],Cr=gr.level==1;return me(Jn?Sn-1:Sn,Cr!=Jn)}var xt=zt(Se,ke,Pe),en=Tt,Gt=ut(ke,xt,Pe=="before");return en!=null&&(Gt.other=ut(ke,en,Pe!="before")),Gt}function bl(x,z){var ne=0;z=hn(x.doc,z),x.options.lineWrapping||(ne=Mi(x.display)*z.ch);var te=Ye(x.doc,z.line),ie=Hn(te)+eo(x.display);return{left:ne,right:ne,top:ie,bottom:ie+te.height}}function $o(x,z,ne,te,ie){var ue=Ct(x,z,ne);return ue.xRel=ie,te&&(ue.outside=te),ue}function qs(x,z,ne){var te=x.doc;if(ne+=x.display.viewOffset,ne<0)return $o(te.first,0,null,-1,-1);var ie=an(te,ne),ue=te.first+te.size-1;if(ie>ue)return $o(te.first+te.size-1,Ye(te,ue).text.length,null,1,1);z<0&&(z=0);for(var me=Ye(te,ie);;){var Se=Eu(x,me,ie,z,ne),ke=jn(me,Se.ch+(Se.xRel>0||Se.outside>0?1:0));if(!ke)return Se;var Pe=ke.find(1);if(Pe.line==ie)return Pe;me=Ye(te,ie=Pe.line)}}function Kl(x,z,ne,te){te-=to(z);var ie=z.text.length,ue=yt(function(me){return Ai(x,ne,me-1).bottom<=te},ie,0);return ie=yt(function(me){return Ai(x,ne,me).top>te},ue,ie),{begin:ue,end:ie}}function Wl(x,z,ne,te){ne||(ne=Pa(x,z));var ie=Ra(x,z,Ai(x,ne,te),"line").top;return Kl(x,z,ne,ie)}function Cs(x,z,ne,te){return x.bottom<=ne?!1:x.top>ne?!0:(te?x.left:x.right)>z}function Eu(x,z,ne,te,ie){ie-=Hn(z);var ue=Pa(x,z),me=to(z),Se=0,ke=z.text.length,Pe=!0,ut=on(z,x.doc.direction);if(ut){var xt=(x.options.lineWrapping?xl:is)(x,z,ne,ue,ut,te,ie);Pe=xt.level!=1,Se=Pe?xt.from:xt.to-1,ke=Pe?xt.to:xt.from-1}var en=null,Gt=null,Sn=yt(function(Wr){var Zr=Ai(x,ue,Wr);return Zr.top+=me,Zr.bottom+=me,Cs(Zr,te,ie,!1)?(Zr.top<=ie&&Zr.left<=te&&(en=Wr,Gt=Zr),!0):!1},Se,ke),Tn,Jn,gr=!1;if(Gt){var Cr=te-Gt.left=kr.bottom?1:0}return Sn=vt(z.text,Sn,1),$o(ne,Sn,Jn,gr,te-Tn)}function is(x,z,ne,te,ie,ue,me){var Se=yt(function(xt){var en=ie[xt],Gt=en.level!=1;return Cs(La(x,Ct(ne,Gt?en.to:en.from,Gt?"before":"after"),"line",z,te),ue,me,!0)},0,ie.length-1),ke=ie[Se];if(Se>0){var Pe=ke.level!=1,ut=La(x,Ct(ne,Pe?ke.from:ke.to,Pe?"after":"before"),"line",z,te);Cs(ut,ue,me,!0)&&ut.top>me&&(ke=ie[Se-1])}return ke}function xl(x,z,ne,te,ie,ue,me){var Se=Kl(x,z,te,me),ke=Se.begin,Pe=Se.end;/\s/.test(z.text.charAt(Pe-1))&&Pe--;for(var ut=null,xt=null,en=0;en=Pe||Gt.to<=ke)){var Sn=Gt.level!=1,Tn=Ai(x,te,Sn?Math.min(Pe,Gt.to)-1:Math.max(ke,Gt.from)).right,Jn=TnJn)&&(ut=Gt,xt=Jn)}}return ut||(ut=ie[ie.length-1]),ut.fromPe&&(ut={from:ut.from,to:Pe,level:ut.level}),ut}var jo;function as(x){if(x.cachedTextHeight!=null)return x.cachedTextHeight;if(jo==null){jo=Ge("pre",null,"CodeMirror-line-like");for(var z=0;z<49;++z)jo.appendChild(document.createTextNode("x")),jo.appendChild(Ge("br"));jo.appendChild(document.createTextNode("x"))}pt(x.measure,jo);var ne=jo.offsetHeight/50;return ne>3&&(x.cachedTextHeight=ne),$e(x.measure),ne||1}function Mi(x){if(x.cachedCharWidth!=null)return x.cachedCharWidth;var z=Ge("span","xxxxxxxxxx"),ne=Ge("pre",[z],"CodeMirror-line-like");pt(x.measure,ne);var te=z.getBoundingClientRect(),ie=(te.right-te.left)/10;return ie>2&&(x.cachedCharWidth=ie),ie||10}function ki(x){for(var z=x.display,ne={},te={},ie=z.gutters.clientLeft,ue=z.gutters.firstChild,me=0;ue;ue=ue.nextSibling,++me){var Se=x.display.gutterSpecs[me].className;ne[Se]=ue.offsetLeft+ue.clientLeft+ie,te[Se]=ue.clientWidth}return{fixedPos:Fi(z),gutterTotalWidth:z.gutters.offsetWidth,gutterLeft:ne,gutterWidth:te,wrapperWidth:z.wrapper.clientWidth}}function Fi(x){return x.scroller.getBoundingClientRect().left-x.sizer.getBoundingClientRect().left}function Xa(x){var z=as(x.display),ne=x.options.lineWrapping,te=ne&&Math.max(5,x.display.scroller.clientWidth/Mi(x.display)-3);return function(ie){if(yi(x.doc,ie))return 0;var ue=0;if(ie.widgets)for(var me=0;me0&&(Pe=Ye(x.doc,ke.line).text).length==ke.ch){var ut=He(Pe,Pe.length,x.options.tabSize)-Pe.length;ke=Ct(ke.line,Math.max(0,Math.round((ue-fo(x.display).left)/Mi(x.display))-ut))}return ke}function po(x,z){if(z>=x.display.viewTo||(z-=x.display.viewFrom,z<0))return null;for(var ne=x.display.view,te=0;tez)&&(ie.updateLineNumbers=z),x.curOp.viewChanged=!0,z>=ie.viewTo)pr&&_i(x.doc,z)ie.viewFrom?Bo(x):(ie.viewFrom+=te,ie.viewTo+=te);else if(z<=ie.viewFrom&&ne>=ie.viewTo)Bo(x);else if(z<=ie.viewFrom){var ue=wo(x,ne,ne+te,1);ue?(ie.view=ie.view.slice(ue.index),ie.viewFrom=ue.lineN,ie.viewTo+=te):Bo(x)}else if(ne>=ie.viewTo){var me=wo(x,z,z,-1);me?(ie.view=ie.view.slice(0,me.index),ie.viewTo=me.lineN):Bo(x)}else{var Se=wo(x,z,z,-1),ke=wo(x,ne,ne+te,1);Se&&ke?(ie.view=ie.view.slice(0,Se.index).concat(ma(x,Se.lineN,ke.lineN)).concat(ie.view.slice(ke.index)),ie.viewTo+=te):Bo(x)}var Pe=ie.externalMeasured;Pe&&(ne=ie.lineN&&z=te.viewTo)){var ue=te.view[po(x,z)];if(ue.node!=null){var me=ue.changes||(ue.changes=[]);gt(me,ne)==-1&&me.push(ne)}}}function Bo(x){x.display.viewFrom=x.display.viewTo=x.doc.first,x.display.view=[],x.display.viewOffset=0}function wo(x,z,ne,te){var ie=po(x,z),ue,me=x.display.view;if(!pr||ne==x.doc.first+x.doc.size)return{index:ie,lineN:ne};for(var Se=x.display.viewFrom,ke=0;ke0){if(ie==me.length-1)return null;ue=Se+me[ie].size-z,ie++}else ue=Se-z;z+=ue,ne+=ue}for(;_i(x.doc,ne)!=ne;){if(ie==(te<0?0:me.length-1))return null;ne+=te*me[ie-(te<0?1:0)].size,ie+=te}return{index:ie,lineN:ne}}function os(x,z,ne){var te=x.display,ie=te.view;ie.length==0||z>=te.viewTo||ne<=te.viewFrom?(te.view=ma(x,z,ne),te.viewFrom=z):(te.viewFrom>z?te.view=ma(x,z,te.viewFrom).concat(te.view):te.viewFromne&&(te.view=te.view.slice(0,po(x,ne)))),te.viewTo=ne}function Zl(x){for(var z=x.display.view,ne=0,te=0;te=x.display.viewTo||Se.to().line0?z.blinker=setInterval(function(){x.hasFocus()||Qs(x),z.cursorDiv.style.visibility=(ne=!ne)?"":"hidden"},x.options.cursorBlinkRate):x.options.cursorBlinkRate<0&&(z.cursorDiv.style.visibility="hidden")}}function Sl(x){x.state.focused||(x.display.input.focus(),Au(x))}function Ac(x){x.state.delayingBlurEvent=!0,setTimeout(function(){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1,Qs(x))},100)}function Au(x,z){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1),x.options.readOnly!="nocursor"&&(x.state.focused||(mt(x,"focus",x,z),x.state.focused=!0,Nt(x.display.wrapper,"CodeMirror-focused"),!x.curOp&&x.display.selForContextMenu!=x.doc.sel&&(x.display.input.reset(),Re&&setTimeout(function(){return x.display.input.reset(!0)},20)),x.display.input.receivedFocus()),ku(x))}function Qs(x,z){x.state.delayingBlurEvent||(x.state.focused&&(mt(x,"blur",x,z),x.state.focused=!1,ze(x.display.wrapper,"CodeMirror-focused")),clearInterval(x.display.blinker),setTimeout(function(){x.state.focused||(x.display.shift=!1)},150))}function $l(x){for(var z=x.display,ne=z.lineDiv.offsetTop,te=0;te.005||ut<-.005)&&(Mt(ie.line,me),Lc(ie.line),ie.rest))for(var xt=0;xtx.display.sizerWidth){var en=Math.ceil(Se/Mi(x.display));en>x.display.maxLineLength&&(x.display.maxLineLength=en,x.display.maxLine=ie.line,x.display.maxLineChanged=!0)}}}}function Lc(x){if(x.widgets)for(var z=0;z=me&&(ue=an(z,Hn(Ye(z,ke))-x.wrapper.clientHeight),me=ke)}return{from:ue,to:Math.max(me,ue+1)}}function ss(x,z){if(!Bt(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&&!Ke){var ue=Ge("div","\u200B",null,`position: absolute; top: `+(z.top-ne.viewOffset-eo(x.display))+`px; height: `+(z.bottom-z.top+ka(x)+ne.barHeight)+`px; left: `+z.left+"px; width: "+Math.max(2,z.right-z.left)+"px;");x.display.lineSpace.appendChild(ue),ue.scrollIntoView(ie),x.display.lineSpace.removeChild(ue)}}}function Ms(x,z,ne,te){te==null&&(te=0);var ie;!x.options.lineWrapping&&z==ne&&(z=z.ch?Ct(z.line,z.sticky=="before"?z.ch-1:z.ch,"after"):z,ne=z.sticky=="before"?Ct(z.line,z.ch+1,"before"):z);for(var ue=0;ue<5;ue++){var me=!1,Se=La(x,z),ke=!ne||ne==z?Se:La(x,ne);ie={left:Math.min(Se.left,ke.left),top:Math.min(Se.top,ke.top)-te,right:Math.max(Se.left,ke.left),bottom:Math.max(Se.bottom,ke.bottom)+te};var Pe=jl(x,ie),ut=x.doc.scrollTop,xt=x.doc.scrollLeft;if(Pe.scrollTop!=null&&(Es(x,Pe.scrollTop),Math.abs(x.doc.scrollTop-ut)>1&&(me=!0)),Pe.scrollLeft!=null&&(ks(x,Pe.scrollLeft),Math.abs(x.doc.scrollLeft-xt)>1&&(me=!0)),!me)break}return ie}function Rd(x,z){var ne=jl(x,z);ne.scrollTop!=null&&Es(x,ne.scrollTop),ne.scrollLeft!=null&&ks(x,ne.scrollLeft)}function jl(x,z){var ne=x.display,te=as(x.display);z.top<0&&(z.top=0);var ie=x.curOp&&x.curOp.scrollTop!=null?x.curOp.scrollTop:ne.scroller.scrollTop,ue=bo(x),me={};z.bottom-z.top>ue&&(z.bottom=z.top+ue);var Se=x.doc.height+Ss(ne),ke=z.topSe-te;if(z.topie+ue){var ut=Math.min(z.top,(Pe?Se:z.bottom)-ue);ut!=ie&&(me.scrollTop=ut)}var xt=x.options.fixedGutter?0:ne.gutters.offsetWidth,en=x.curOp&&x.curOp.scrollLeft!=null?x.curOp.scrollLeft:ne.scroller.scrollLeft-xt,Gt=ua(x)-ne.gutters.offsetWidth,Sn=z.right-z.left>Gt;return Sn&&(z.right=z.left+Gt),z.left<10?me.scrollLeft=0:z.leftGt+en-3&&(me.scrollLeft=z.right+(Sn?0:10)-Gt),me}function Lu(x,z){z!=null&&(Gl(x),x.curOp.scrollTop=(x.curOp.scrollTop==null?x.doc.scrollTop:x.curOp.scrollTop)+z)}function Js(x){Gl(x);var z=x.getCursor();x.curOp.scrollToPos={from:z,to:z,margin:x.options.cursorScrollMargin}}function el(x,z,ne){(z!=null||ne!=null)&&Gl(x),z!=null&&(x.curOp.scrollLeft=z),ne!=null&&(x.curOp.scrollTop=ne)}function Nd(x,z){Gl(x),x.curOp.scrollToPos=z}function Gl(x){var z=x.curOp.scrollToPos;if(z){x.curOp.scrollToPos=null;var ne=bl(x,z.from),te=bl(x,z.to);Dc(x,ne,te,z.margin)}}function Dc(x,z,ne,te){var ie=jl(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});el(x,ie.scrollLeft,ie.scrollTop)}function Es(x,z){Math.abs(x.doc.scrollTop-z)<2||(ye||Bu(x,{top:z}),_c(x,z,!0),ye&&Bu(x),nl(x,100))}function _c(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 ks(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,Rc(x),x.display.scroller.scrollLeft!=z&&(x.display.scroller.scrollLeft=z),x.display.scrollbars.setScrollLeft(z))}function tl(x){var z=x.display,ne=z.gutters.offsetWidth,te=Math.round(x.doc.height+Ss(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+ka(x)+z.barHeight,nativeBarWidth:z.nativeBarWidth,gutterWidth:ne}}var ls=function(x,z,ne){this.cm=ne;var te=this.vert=Ge("div",[Ge("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ie=this.horiz=Ge("div",[Ge("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");te.tabIndex=ie.tabIndex=-1,x(te),x(ie),Ut(te,"scroll",function(){te.clientHeight&&z(te.scrollTop,"vertical")}),Ut(ie,"scroll",function(){ie.clientWidth&&z(ie.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,be&&_e<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ls.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 ue=x.viewWidth-x.barLeft-(ne?te:0);this.horiz.firstChild.style.width=Math.max(0,x.scrollWidth-x.clientWidth+ue)+"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}},ls.prototype.setScrollLeft=function(x){this.horiz.scrollLeft!=x&&(this.horiz.scrollLeft=x),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ls.prototype.setScrollTop=function(x){this.vert.scrollTop!=x&&(this.vert.scrollTop=x),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ls.prototype.zeroWidthHack=function(){var x=Xe&&!De?"12px":"18px";this.horiz.style.height=this.vert.style.width=x,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new xe,this.disableVert=new xe},ls.prototype.enableZeroWidthBar=function(x,z,ne){x.style.pointerEvents="auto";function te(){var ie=x.getBoundingClientRect(),ue=ne=="vert"?document.elementFromPoint(ie.right-1,(ie.top+ie.bottom)/2):document.elementFromPoint((ie.right+ie.left)/2,ie.bottom-1);ue!=x?x.style.pointerEvents="none":z.set(1e3,te)}z.set(1e3,te)},ls.prototype.clear=function(){var x=this.horiz.parentNode;x.removeChild(this.horiz),x.removeChild(this.vert)};var mo=function(){};mo.prototype.update=function(){return{bottom:0,right:0}},mo.prototype.setScrollLeft=function(){},mo.prototype.setScrollTop=function(){},mo.prototype.clear=function(){};function As(x,z){z||(z=tl(x));var ne=x.display.barWidth,te=x.display.barHeight;Du(x,z);for(var ie=0;ie<4&&ne!=x.display.barWidth||te!=x.display.barHeight;ie++)ne!=x.display.barWidth&&x.options.lineWrapping&&$l(x),Du(x,tl(x)),ne=x.display.barWidth,te=x.display.barHeight}function Du(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 Bc={native:ls,null:mo};function Tc(x){x.display.scrollbars&&(x.display.scrollbars.clear(),x.display.scrollbars.addClass&&ze(x.display.wrapper,x.display.scrollbars.addClass)),x.display.scrollbars=new Bc[x.options.scrollbarStyle](function(z){x.display.wrapper.insertBefore(z,x.display.scrollbarFiller),Ut(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"?ks(x,z):Es(x,z)},x),x.display.scrollbars.addClass&&Nt(x.display.wrapper,x.display.scrollbars.addClass)}var Fd=0;function Ls(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:++Fd},Si(x.curOp)}function us(x){var z=x.curOp;z&&Ur(z,function(ne){for(var te=0;te=ne.viewTo)||ne.maxLineChanged&&z.options.lineWrapping,x.update=x.mustUpdate&&new Ul(z,x.mustUpdate&&{top:x.scrollTop,ensure:x.scrollToPos},x.forceUpdate)}function Kd(x){x.updatedDisplay=x.mustUpdate&&_u(x.cm,x.update)}function Wd(x){var z=x.cm,ne=z.display;x.updatedDisplay&&$l(z),x.barMeasure=tl(z),ne.maxLineChanged&&!z.options.lineWrapping&&(x.adjustWidthTo=Ro(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+ka(z)+z.display.barWidth),x.maxScrollLeft=Math.max(0,ne.sizer.offsetLeft+x.adjustWidthTo-ua(z))),(x.updatedDisplay||x.selectionChanged)&&(x.preparedSelection=ne.input.prepareSelection())}function Zd(x){var z=x.cm;x.adjustWidthTo!=null&&(z.display.sizer.style.minWidth=x.adjustWidthTo+"px",x.maxScrollLeft=x.display.viewTo)){var ne=+new Date+x.options.workTime,te=jt(x,z.highlightFrontier),ie=[];z.iter(te.line,Math.min(z.first+z.size,x.display.viewTo+500),function(ue){if(te.line>=x.display.viewFrom){var me=ue.styles,Se=ue.text.length>x.options.maxHighlightLength?Ae(z.mode,te.state):null,ke=Qt(x,ue,te,!0);Se&&(te.state=Se),ue.styles=ke.styles;var Pe=ue.styleClasses,ut=ke.classes;ut?ue.styleClasses=ut:Pe&&(ue.styleClasses=null);for(var xt=!me||me.length!=ue.styles.length||Pe!=ut&&(!Pe||!ut||Pe.bgClass!=ut.bgClass||Pe.textClass!=ut.textClass),en=0;!xt&&enne)return nl(x,x.options.workDelay),!0}),z.highlightFrontier=te.line,z.modeFrontier=Math.max(z.modeFrontier,te.line),ie.length&&ca(x,function(){for(var ue=0;ue=ne.viewFrom&&z.visible.to<=ne.viewTo&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo)&&ne.renderedView==ne.view&&Zl(x)==0)return!1;Xl(x)&&(Bo(x),z.dims=ki(x));var ie=te.first+te.size,ue=Math.max(z.visible.from-x.options.viewportMargin,te.first),me=Math.min(ie,z.visible.to+x.options.viewportMargin);ne.viewFromme&&ne.viewTo-me<20&&(me=Math.min(ie,ne.viewTo)),pr&&(ue=_i(x.doc,ue),me=Jr(x.doc,me));var Se=ue!=ne.viewFrom||me!=ne.viewTo||ne.lastWrapHeight!=z.wrapperHeight||ne.lastWrapWidth!=z.wrapperWidth;os(x,ue,me),ne.viewOffset=Hn(Ye(x.doc,ne.viewFrom)),x.display.mover.style.top=ne.viewOffset+"px";var ke=Zl(x);if(!Se&&ke==0&&!z.force&&ne.renderedView==ne.view&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo))return!1;var Pe=$d(x);return ke>4&&(ne.lineDiv.style.display="none"),Gd(x,ne.updateLineNumbers,z.dims),ke>4&&(ne.lineDiv.style.display=""),ne.renderedView=ne.view,jd(Pe),$e(ne.cursorDiv),$e(ne.selectionDiv),ne.gutters.style.height=ne.sizer.style.minHeight=0,Se&&(ne.lastWrapHeight=z.wrapperHeight,ne.lastWrapWidth=z.wrapperWidth,nl(x,400)),ne.updateLineNumbers=null,!0}function Oc(x,z){for(var ne=z.viewport,te=!0;;te=!1){if(!te||!x.options.lineWrapping||z.oldDisplayWidth==ua(x)){if(ne&&ne.top!=null&&(ne={top:Math.min(x.doc.height+Ss(x.display)-bo(x),ne.top)}),z.visible=_a(x.display,x.doc,ne),z.visible.from>=x.display.viewFrom&&z.visible.to<=x.display.viewTo)break}else te&&(z.visible=_a(x.display,x.doc,ne));if(!_u(x,z))break;$l(x);var ie=tl(x);wl(x),As(x,ie),Iu(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 Bu(x,z){var ne=new Ul(x,z);if(_u(x,ne)){$l(x),Oc(x,ne);var te=tl(x);wl(x),As(x,te),Iu(x,te),ne.finish()}}function Gd(x,z,ne){var te=x.display,ie=x.options.lineNumbers,ue=te.lineDiv,me=ue.firstChild;function Se(Sn){var Tn=Sn.nextSibling;return Re&&Xe&&x.display.currentWheelTarget==Sn?Sn.style.display="none":Sn.parentNode.removeChild(Sn),Tn}for(var ke=te.view,Pe=te.viewFrom,ut=0;ut-1&&(Gt=!1),ti(x,xt,Pe,ne)),Gt&&($e(xt.lineNumber),xt.lineNumber.appendChild(document.createTextNode(pn(x.options,Pe)))),me=xt.node.nextSibling}Pe+=xt.size}for(;me;)me=Se(me)}function Tu(x){var z=x.gutters.offsetWidth;x.sizer.style.marginLeft=z+"px"}function Iu(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+ka(x)+"px"}function Rc(x){var z=x.display,ne=z.view;if(!(!z.alignWidgets&&(!z.gutters.firstChild||!x.options.fixedGutter))){for(var te=Fi(z)-z.scroller.scrollLeft+x.doc.scrollLeft,ie=z.gutters.offsetWidth,ue=te+"px",me=0;meme.clientWidth,ke=me.scrollHeight>me.clientHeight;if(te&&Se||ie&&ke){if(ie&&Xe&&Re){e:for(var Pe=z.target,ut=ue.view;Pe!=me;Pe=Pe.parentNode)for(var xt=0;xt=0&&rn(x,te.to())<=0)return ne}return-1};var Bi=function(x,z){this.anchor=x,this.head=z};Bi.prototype.from=function(){return Ln(this.anchor,this.head)},Bi.prototype.to=function(){return Pn(this.anchor,this.head)},Bi.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function To(x,z,ne){var te=x&&x.options.selectionsMayTouch,ie=z[ne];z.sort(function(en,Gt){return rn(en.from(),Gt.from())}),ne=gt(z,ie);for(var ue=1;ue0:ke>=0){var Pe=Ln(Se.from(),me.from()),ut=Pn(Se.to(),me.to()),xt=Se.empty()?me.from()==me.head:Se.from()==Se.head;ue<=ne&&--ne,z.splice(--ue,2,new Bi(xt?ut:Pe,xt?Pe:ut))}}return new go(z,ne)}function No(x,z){return new go([new Bi(x,z||x)],0)}function cs(x){return x.text?Ct(x.from.line+x.text.length-1,wt(x.text).length+(x.text.length==1?x.from.ch:0)):x.to}function Hc(x,z){if(rn(x,z.from)<0)return x;if(rn(x,z.to)<=0)return cs(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+=cs(z).ch-z.to.ch),Ct(ne,te)}function Ou(x,z){for(var ne=[],te=0;te1&&x.remove(Se.line+1,Sn-1),x.insert(Se.line+1,gr)}Er(x,"change",x,z)}function ds(x,z,ne){function te(ie,ue,me){if(ie.linked)for(var Se=0;Se1&&!x.done[x.done.length-2].ranges)return x.done.pop(),wt(x.done)}function eu(x,z,ne,te){var ie=x.history;ie.undone.length=0;var ue=+new Date,me,Se;if((ie.lastOp==te||ie.lastOrigin==z.origin&&z.origin&&(z.origin.charAt(0)=="+"&&ie.lastModTime>ue-(x.cm?x.cm.options.historyEventDelay:500)||z.origin.charAt(0)=="*"))&&(me=Ku(ie,ie.lastOp==te)))Se=wt(me.changes),rn(z.from,z.to)==0&&rn(z.from,Se.to)==0?Se.to=cs(z):me.changes.push(Hu(x,z));else{var ke=wt(ie.done);for((!ke||!ke.ranges)&&tu(x.sel,ie.done),me={changes:[Hu(x,z)],generation:ie.generation},ie.done.push(me);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=ue,ie.lastOp=ie.lastSelOp=te,ie.lastOrigin=ie.lastSelOrigin=z.origin,Se||mt(x,"historyAdded")}function Wu(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 Zu(x,z,ne,te){var ie=x.history,ue=te&&te.origin;ne==ie.lastSelOp||ue&&ie.lastSelOrigin==ue&&(ie.lastModTime==ie.lastSelTime&&ie.lastOrigin==ue||Wu(x,ue,wt(ie.done),z))?ie.done[ie.done.length-1]=z:tu(z,ie.done),ie.lastSelTime=+new Date,ie.lastSelOrigin=ue,ie.lastSelOp=ne,te&&te.clearRedo!==!1&&Wc(ie.undone)}function tu(x,z){var ne=wt(z);ne&&ne.ranges&&ne.equals(x)||z.push(x)}function Vu(x,z,ne,te){var ie=z["spans_"+x.id],ue=0;x.iter(Math.max(x.first,ne),Math.min(x.first+x.size,te),function(me){me.markedSpans&&((ie||(ie=z["spans_"+x.id]={}))[ue]=me.markedSpans),++ue})}function $u(x){if(!x)return null;for(var z,ne=0;ne-1&&(wt(Se)[xt]=Pe[xt],delete Pe[xt])}}return te}function ju(x,z,ne,te){if(te){var ie=x.anchor;if(ne){var ue=rn(z,ie)<0;ue!=rn(ne,ie)<0?(ie=z,z=ne):ue!=rn(z,ne)<0&&(z=ne)}return new Bi(ie,z)}else return new Bi(ne||z,z)}function sl(x,z,ne,te,ie){ie==null&&(ie=x.cm&&(x.cm.display.shift||x.extend)),wa(x,new go([ju(x.sel.primary(),z,ne,ie)],0),te)}function _r(x,z,ne){for(var te=[],ie=x.cm&&(x.cm.display.shift||x.extend),ue=0;ue=z.ch:Se.to>z.ch))){if(ie&&(mt(ke,"beforeCursorEnter"),ke.explicitlyCleared))if(ue.markedSpans){--me;continue}else break;if(!ke.atomic)continue;if(ne){var xt=ke.find(te<0?1:-1),en=void 0;if((te<0?ut:Pe)&&(xt=hs(x,xt,-te,xt&&xt.line==z.line?ue:null)),xt&&xt.line==z.line&&(en=rn(xt,ne))&&(te<0?en<0:en>0))return ro(x,xt,z,te,ie)}var Gt=ke.find(te<0?-1:1);return(te<0?Pe:ut)&&(Gt=hs(x,Gt,te,Gt.line==z.line?ue:null)),Gt?ro(x,Gt,z,te,ie):null}}return z}function Gu(x,z,ne,te,ie){var ue=te||1,me=ro(x,z,ne,ue,ie)||!ie&&ro(x,z,ne,ue,!0)||ro(x,z,ne,-ue,ie)||!ie&&ro(x,z,ne,-ue,!0);return me||(x.cantEdit=!0,Ct(x.first,0))}function hs(x,z,ne,te){return ne<0&&z.ch==0?z.line>x.first?hn(x,Ct(z.line-1)):null:ne>0&&z.ch==(te||Ye(x,z.line)).text.length?z.line=0;--ie)jc(x,{from:te[ie].from,to:te[ie].to,text:ie?[""]:z.text,origin:z.origin});else jc(x,z)}}function jc(x,z){if(!(z.text.length==1&&z.text[0]==""&&rn(z.from,z.to)==0)){var ne=Ou(x,z);eu(x,z,ne,x.cm?x.cm.curOp.id:NaN),ul(x,z,ne,kn(x,z));var te=[];ds(x,function(ie,ue){!ue&>(te,ie.history)==-1&&(ru(ie.history,z),te.push(ie.history)),ul(ie,z,null,kn(ie,z))})}}function fs(x,z,ne){var te=x.cm&&x.cm.state.suppressEdits;if(!(te&&!ne)){for(var ie=x.history,ue,me=x.sel,Se=z=="undo"?ie.done:ie.undone,ke=z=="undo"?ie.undone:ie.done,Pe=0;Pe=0;--Gt){var Sn=en(Gt);if(Sn)return Sn.v}}}}function Xu(x,z){if(z!=0&&(x.first+=z,x.sel=new go(Dt(x.sel.ranges,function(ie){return new Bi(Ct(ie.anchor.line+z,ie.anchor.ch),Ct(ie.head.line+z,ie.head.ch))}),x.sel.primIndex),x.cm)){za(x.cm,x.first,x.first-z,z);for(var ne=x.cm.display,te=ne.viewFrom;tex.lastLine())){if(z.from.lineue&&(z={from:z.from,to:Ct(ue,Ye(x,ue).text.length),text:[z.text[0]],origin:z.origin}),z.removed=ht(x,z.from,z.to),ne||(ne=Ou(x,z)),x.cm?Jd(x.cm,z,te):Fu(x,z,te),nu(x,ne,Qe),x.cantEdit&&Gu(x,Ct(x.firstLine(),0))&&(x.cantEdit=!1)}}function Jd(x,z,ne){var te=x.doc,ie=x.display,ue=z.from,me=z.to,Se=!1,ke=ue.line;x.options.lineWrapping||(ke=Wt(Ir(Ye(te,ue.line))),te.iter(ke,me.line+1,function(Gt){if(Gt==ie.maxLine)return Se=!0,!0})),te.sel.contains(z.from,z.to)>-1&&xn(x),Fu(te,z,ne,Xa(x)),x.options.lineWrapping||(te.iter(ke,ue.line+z.text.length,function(Gt){var Sn=Fn(Gt);Sn>ie.maxLineLength&&(ie.maxLine=Gt,ie.maxLineLength=Sn,ie.maxLineChanged=!0,Se=!1)}),Se&&(x.curOp.updateMaxLine=!0)),$n(te,ue.line),nl(x,400);var Pe=z.text.length-(me.line-ue.line)-1;z.full?za(x):ue.line==me.line&&z.text.length==1&&!Kc(x.doc,z)?_o(x,ue.line,"text"):za(x,ue.line,me.line+1,Pe);var ut=bn(x,"changes"),xt=bn(x,"change");if(xt||ut){var en={from:ue,to:me,text:z.text,removed:z.removed,origin:z.origin};xt&&Er(x,"change",x,en),ut&&(x.curOp.changeObjs||(x.curOp.changeObjs=[])).push(en)}x.display.selForContextMenu=null}function Ml(x,z,ne,te,ie){var ue;te||(te=ne),rn(te,ne)<0&&(ue=[te,ne],ne=ue[0],te=ue[1]),typeof z=="string"&&(z=x.splitLines(z)),Ds(x,{from:ne,to:te,text:z,origin:ie})}function eh(x,z,ne,te){ne1||!(this.children[0]instanceof _s))){var Se=[];this.collapse(Se),this.children=[new _s(Se)],this.children[0].parent=this}},collapse:function(x){for(var z=0;z50){for(var me=ie.lines.length%25+25,Se=me;Se10);x.parent.maybeSpill()}},iterN:function(x,z,ne){for(var te=0;tex.display.maxLineLength&&(x.display.maxLine=Pe,x.display.maxLineLength=ut,x.display.maxLineChanged=!0)}te!=null&&x&&this.collapsed&&za(x,te,ie+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,x&&Qd(x.doc)),x&&Er(x,"markerCleared",x,this,te,ie),z&&us(x),this.parent&&this.parent.clear()}},Bs.prototype.find=function(x,z){x==null&&this.type=="bookmark"&&(x=1);for(var ne,te,ie=0;ie0||me==0&&ue.clearWhenEmpty!==!1)return ue;if(ue.replacedWith&&(ue.collapsed=!0,ue.widgetNode=Lt("span",[ue.replacedWith],"CodeMirror-widget"),te.handleMouseEvents||ue.widgetNode.setAttribute("cm-ignore-events","true"),te.insertLeft&&(ue.widgetNode.insertLeft=!0)),ue.collapsed){if(Lr(x,z.line,z,ne,ue)||z.line!=ne.line&&Lr(x,ne.line,z,ne,ue))throw new Error("Inserting collapsed marker partially overlapping an existing one");Wn()}ue.addToHistory&&eu(x,{from:z,to:ne,origin:"markText"},x.sel,NaN);var Se=z.line,ke=x.cm,Pe;if(x.iter(Se,ne.line+1,function(xt){ke&&ue.collapsed&&!ke.options.lineWrapping&&Ir(xt)==ke.display.maxLine&&(Pe=!0),ue.collapsed&&Se!=z.line&&Mt(xt,0),Tr(xt,new nr(ue,Se==z.line?z.ch:null,Se==ne.line?ne.ch:null)),++Se}),ue.collapsed&&x.iter(z.line,ne.line+1,function(xt){yi(x,xt)&&Mt(xt,0)}),ue.clearOnEnter&&Ut(ue,"beforeCursorEnter",function(){return ue.clear()}),ue.readOnly&&(mr(),(x.history.done.length||x.history.undone.length)&&x.clearHistory()),ue.collapsed&&(ue.id=++ih,ue.atomic=!0),ke){if(Pe&&(ke.curOp.updateMaxLine=!0),ue.collapsed)za(ke,z.line,ne.line+1);else if(ue.className||ue.startStyle||ue.endStyle||ue.css||ue.attributes||ue.title)for(var ut=z.line;ut<=ne.line;ut++)_o(ke,ut,"text");ue.atomic&&Qd(ke.doc),Er(ke,"markerAdded",ke,ue)}return ue}var ci=function(x,z){this.markers=x,this.primary=z;for(var ne=0;ne=0;ke--)Ds(this,te[ke]);Se?no(this,Se):this.cm&&Js(this.cm)}),undo:Ba(function(){fs(this,"undo")}),redo:Ba(function(){fs(this,"redo")}),undoSelection:Ba(function(){fs(this,"undo",!0)}),redoSelection:Ba(function(){fs(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.ch)&&z.push(ie.marker.parent||ie.marker)}return z},findMarks:function(x,z,ne){x=hn(this,x),z=hn(this,z);var te=[],ie=x.line;return this.iter(x.line,z.line+1,function(ue){var me=ue.markedSpans;if(me)for(var Se=0;Se=ke.to||ke.from==null&&ie!=x.line||ke.from!=null&&ie==z.line&&ke.from>=z.ch)&&(!ne||ne(ke.marker))&&te.push(ke.marker.parent||ke.marker)}++ie}),te},getAllMarks:function(){var x=[];return this.iter(function(z){var ne=z.markedSpans;if(ne)for(var te=0;tex)return z=x,!0;x-=ue,++ne}),hn(this,Ct(ne,z))},indexFromPos:function(x){x=hn(this,x);var z=x.ch;if(x.linez&&(z=x.from),x.to!=null&&x.to-1){z.state.draggingText(x),setTimeout(function(){return z.display.input.focus()},20);return}try{var ut=x.dataTransfer.getData("Text");if(ut){var xt;if(z.state.draggingText&&!z.state.draggingText.copy&&(xt=z.listSelections()),nu(z.doc,No(ne,ne)),xt)for(var en=0;en=0;Se--)Ml(x.doc,"",te[Se].from,te[Se].to,"+delete");Js(x)})}function Ka(x,z,ne){var te=vt(x.text,z+ne,ne);return te<0||te>x.text.length?null:te}function Go(x,z,ne){var te=Ka(x,z.ch,ne);return te==null?null:new Ct(z.line,te,ne<0?"after":"before")}function dl(x,z,ne,te,ie){if(x){z.doc.direction=="rtl"&&(ie=-ie);var ue=on(ne,z.doc.direction);if(ue){var me=ie<0?wt(ue):ue[0],Se=ie<0==(me.level==1),ke=Se?"after":"before",Pe;if(me.level>0||z.doc.direction=="rtl"){var ut=Pa(z,ne);Pe=ie<0?ne.text.length-1:0;var xt=Ai(z,ut,Pe).top;Pe=yt(function(en){return Ai(z,ut,en).top==xt},ie<0==(me.level==1)?me.from:me.to-1,Pe),ke=="before"&&(Pe=Ka(ne,Pe,1))}else Pe=ie<0?me.to:me.from;return new Ct(te,Pe,ke)}}return new Ct(te,ie<0?ne.text.length:0,ie<0?"before":"after")}function Uo(x,z,ne,te){var ie=on(z,x.doc.direction);if(!ie)return Go(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 ue=zt(ie,ne.ch,ne.sticky),me=ie[ue];if(x.doc.direction=="ltr"&&me.level%2==0&&(te>0?me.to>ne.ch:me.from=me.from&&en>=ut.begin)){var Gt=xt?"before":"after";return new Ct(ne.line,en,Gt)}}var Sn=function(gr,Cr,dr){for(var kr=function(ji,Na){return Na?new Ct(ne.line,Se(ji,1),"before"):new Ct(ne.line,ji,"after")};gr>=0&&gr0==(Wr.level!=1),di=Zr?dr.begin:Se(dr.end,-1);if(Wr.from<=di&&di0?ut.end:Se(ut.begin,-1);return Jn!=null&&!(te>0&&Jn==z.text.length)&&(Tn=Sn(te>0?0:ie.length-1,te,Pe(Jn)),Tn)?Tn:null}var Dl={selectAll:$c,singleSelection:function(x){return x.setSelection(x.getCursor("anchor"),x.getCursor("head"),Qe)},killLine:function(x){return Io(x,function(z){if(z.empty()){var ne=Ye(x.doc,z.head.line).text.length;return z.head.ch==ne&&z.head.line0)ie=new Ct(ie.line,ie.ch+1),x.replaceRange(ue.charAt(ie.ch-1)+ue.charAt(ie.ch-2),Ct(ie.line,ie.ch-2),ie,"+transpose");else if(ie.line>x.doc.first){var me=Ye(x.doc,ie.line-1).text;me&&(ie=new Ct(ie.line,1),x.replaceRange(ue.charAt(0)+x.doc.lineSeparator()+me.charAt(me.length-1),Ct(ie.line-1,me.length-1),ie,"+transpose"))}}ne.push(new Bi(ie,ie))}x.setSelections(ne)})},newlineAndIndent:function(x){return ca(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;tex&&rn(z,this.pos)==0&&ne==this.button};var vs,uu;function rf(x,z){var ne=+new Date;return uu&&uu.compare(ne,x,z)?(vs=uu=null,"triple"):vs&&vs.compare(ne,x,z)?(uu=new ed(ne,x,z),vs=null,"double"):(vs=new ed(ne,x,z),uu=null,"single")}function Wa(x){var z=this,ne=z.display;if(!(Bt(z,x)||ne.activeTouch&&ne.input.supportsTouch())){if(ne.input.ensurePolled(),ne.shift=x.shiftKey,oo(ne,x)){Re||(ne.scroller.draggable=!1,setTimeout(function(){return ne.scroller.draggable=!0},100));return}if(!Ya(z,x)){var te=xo(z,x),ie=gn(x),ue=te?rf(te,ie):"single";window.focus(),ie==1&&z.state.selectingText&&z.state.selectingText(x),!(te&&Ps(z,ie,te,ue,x))&&(ie==1?te?tc(z,te,ue,x):ur(x)==ne.scroller&&Nn(x):ie==2?(te&&sl(z.doc,te),setTimeout(function(){return ne.input.focus()},20)):ie==3&&(Ze?z.display.input.onContextMenu(x):Ac(z)))}}}function Ps(x,z,ne,te,ie){var ue="Click";return te=="double"?ue="Double"+ue:te=="triple"&&(ue="Triple"+ue),ue=(z==1?"Left":z==2?"Middle":"Right")+ue,_l(x,Is(ue,ie),ie,function(me){if(typeof me=="string"&&(me=Dl[me]),!me)return!1;var Se=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),Se=me(x,ne)!=Vt}finally{x.state.suppressEdits=!1}return Se})}function ec(x,z,ne){var te=x.getOption("configureMouse"),ie=te?te(x,z,ne):{};if(ie.unit==null){var ue=St?ne.shiftKey&&ne.metaKey:ne.altKey;ie.unit=ue?"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=Xe?ne.metaKey:ne.ctrlKey),ie.moveOnDrag==null&&(ie.moveOnDrag=!(Xe?ne.altKey:ne.ctrlKey)),ie}function tc(x,z,ne,te){be?setTimeout(qt(Sl,x),0):x.curOp.focus=tt();var ie=ec(x,ne,te),ue=x.doc.sel,me;x.options.dragDrop&&yr&&!x.isReadOnly()&&ne=="single"&&(me=ue.contains(z))>-1&&(rn((me=ue.ranges[me]).from(),z)<0||z.xRel>0)&&(rn(me.to(),z)>0||z.xRel<0)?af(x,te,z,ie):td(x,te,z,ie)}function af(x,z,ne,te){var ie=x.display,ue=!1,me=xa(x,function(Pe){Re&&(ie.scroller.draggable=!1),x.state.draggingText=!1,nt(ie.wrapper.ownerDocument,"mouseup",me),nt(ie.wrapper.ownerDocument,"mousemove",Se),nt(ie.scroller,"dragstart",ke),nt(ie.scroller,"drop",me),ue||(Nn(Pe),te.addNew||sl(x.doc,ne,null,null,te.extend),Re&&!lt||be&&_e==9?setTimeout(function(){ie.wrapper.ownerDocument.body.focus({preventScroll:!0}),ie.input.focus()},20):ie.input.focus())}),Se=function(Pe){ue=ue||Math.abs(z.clientX-Pe.clientX)+Math.abs(z.clientY-Pe.clientY)>=10},ke=function(){return ue=!0};Re&&(ie.scroller.draggable=!0),x.state.draggingText=me,me.copy=!te.moveOnDrag,ie.scroller.dragDrop&&ie.scroller.dragDrop(),Ut(ie.wrapper.ownerDocument,"mouseup",me),Ut(ie.wrapper.ownerDocument,"mousemove",Se),Ut(ie.scroller,"dragstart",ke),Ut(ie.scroller,"drop",me),Ac(x),setTimeout(function(){return ie.input.focus()},20)}function ch(x,z,ne){if(ne=="char")return new Bi(z,z);if(ne=="word")return x.findWordAt(z);if(ne=="line")return new Bi(Ct(z.line,0),hn(x.doc,Ct(z.line+1,0)));var te=ne(x,z);return new Bi(te.from,te.to)}function td(x,z,ne,te){var ie=x.display,ue=x.doc;Nn(z);var me,Se,ke=ue.sel,Pe=ke.ranges;if(te.addNew&&!te.extend?(Se=ue.sel.contains(ne),Se>-1?me=Pe[Se]:me=new Bi(ne,ne)):(me=ue.sel.primary(),Se=ue.sel.primIndex),te.unit=="rectangle")te.addNew||(me=new Bi(ne,ne)),ne=xo(x,z,!0,!0),Se=-1;else{var ut=ch(x,ne,te.unit);te.extend?me=ju(me,ut.anchor,ut.head,te.extend):me=ut}te.addNew?Se==-1?(Se=Pe.length,wa(ue,To(x,Pe.concat([me]),Se),{scroll:!1,origin:"*mouse"})):Pe.length>1&&Pe[Se].empty()&&te.unit=="char"&&!te.extend?(wa(ue,To(x,Pe.slice(0,Se).concat(Pe.slice(Se+1)),0),{scroll:!1,origin:"*mouse"}),ke=ue.sel):So(ue,Se,me,Ue):(Se=0,wa(ue,new go([me],0),Ue),ke=ue.sel);var xt=ne;function en(dr){if(rn(xt,dr)!=0)if(xt=dr,te.unit=="rectangle"){for(var kr=[],Wr=x.options.tabSize,Zr=He(Ye(ue,ne.line).text,ne.ch,Wr),di=He(Ye(ue,dr.line).text,dr.ch,Wr),ji=Math.min(Zr,di),Na=Math.max(Zr,di),sa=Math.min(ne.line,dr.line),uo=Math.min(x.lastLine(),Math.max(ne.line,dr.line));sa<=uo;sa++){var co=Ye(ue,sa).text,Ca=dn(co,ji,Wr);ji==Na?kr.push(new Bi(Ct(sa,Ca),Ct(sa,Ca))):co.length>Ca&&kr.push(new Bi(Ct(sa,Ca),Ct(sa,dn(co,Na,Wr))))}kr.length||kr.push(new Bi(ne,ne)),wa(ue,To(x,ke.ranges.slice(0,Se).concat(kr),Se),{origin:"*mouse",scroll:!1}),x.scrollIntoView(dr)}else{var ho=me,ii=ch(x,dr,te.unit),da=ho.anchor,la;rn(ii.anchor,da)>0?(la=ii.head,da=Ln(ho.from(),ii.anchor)):(la=ii.anchor,da=Pn(ho.to(),ii.head));var ha=ke.ranges.slice(0);ha[Se]=dh(x,new Bi(hn(ue,da),la)),wa(ue,To(x,ha,Se),Ue)}}var Gt=ie.wrapper.getBoundingClientRect(),Sn=0;function Tn(dr){var kr=++Sn,Wr=xo(x,dr,!0,te.unit=="rectangle");if(Wr)if(rn(Wr,xt)!=0){x.curOp.focus=tt(),en(Wr);var Zr=_a(ie,ue);(Wr.line>=Zr.to||Wr.lineGt.bottom?20:0;di&&setTimeout(xa(x,function(){Sn==kr&&(ie.scroller.scrollTop+=di,Tn(dr))}),50)}}function Jn(dr){x.state.selectingText=!1,Sn=1/0,dr&&(Nn(dr),ie.input.focus()),nt(ie.wrapper.ownerDocument,"mousemove",gr),nt(ie.wrapper.ownerDocument,"mouseup",Cr),ue.history.lastSelOrigin=null}var gr=xa(x,function(dr){dr.buttons===0||!gn(dr)?Jn(dr):Tn(dr)}),Cr=xa(x,Jn);x.state.selectingText=Cr,Ut(ie.wrapper.ownerDocument,"mousemove",gr),Ut(ie.wrapper.ownerDocument,"mouseup",Cr)}function dh(x,z){var ne=z.anchor,te=z.head,ie=Ye(x.doc,ne.line);if(rn(ne,te)==0&&ne.sticky==te.sticky)return z;var ue=on(ie);if(!ue)return z;var me=zt(ue,ne.ch,ne.sticky),Se=ue[me];if(Se.from!=ne.ch&&Se.to!=ne.ch)return z;var ke=me+(Se.from==ne.ch==(Se.level!=1)?0:1);if(ke==0||ke==ue.length)return z;var Pe;if(te.line!=ne.line)Pe=(te.line-ne.line)*(x.doc.direction=="ltr"?1:-1)>0;else{var ut=zt(ue,te.ch,te.sticky),xt=ut-me||(te.ch-ne.ch)*(Se.level==1?-1:1);ut==ke-1||ut==ke?Pe=xt<0:Pe=xt>0}var en=ue[ke+(Pe?-1:0)],Gt=Pe==(en.level==1),Sn=Gt?en.from:en.to,Tn=Gt?"after":"before";return ne.ch==Sn&&ne.sticky==Tn?z:new Bi(new Ct(ne.line,Sn,Tn),te)}function cu(x,z,ne,te){var ie,ue;if(z.touches)ie=z.touches[0].clientX,ue=z.touches[0].clientY;else try{ie=z.clientX,ue=z.clientY}catch(en){return!1}if(ie>=Math.floor(x.display.gutters.getBoundingClientRect().right))return!1;te&&Nn(z);var me=x.display,Se=me.lineDiv.getBoundingClientRect();if(ue>Se.bottom||!bn(x,ne))return In(z);ue-=Se.top-me.viewOffset;for(var ke=0;ke=ie){var ut=an(x.doc,ue),xt=x.display.gutterSpecs[ke];return mt(x,ne,x,ut,xt.className,z),In(z)}}}function Ya(x,z){return cu(x,z,"gutterClick",!0)}function Os(x,z){oo(x.display,z)||hh(x,z)||Bt(x,z,"contextmenu")||Ze||x.display.input.onContextMenu(z)}function hh(x,z){return bn(x,"gutterContextMenu")?cu(x,z,"gutterContextMenu",!1):!1}function nd(x){x.display.wrapper.className=x.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+x.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Zi(x)}var Rs={toString:function(){return"CodeMirror.Init"}},fh={},nc={};function of(x){var z=x.optionHandlers;function ne(te,ie,ue,me){x.defaults[te]=ie,ue&&(z[te]=me?function(Se,ke,Pe){Pe!=Rs&&ue(Se,ke,Pe)}:ue)}x.defineOption=ne,x.Init=Rs,ne("value","",function(te,ie){return te.setValue(ie)},!0),ne("mode",null,function(te,ie){te.doc.modeOption=ie,Nu(te)},!0),ne("indentUnit",2,Nu,!0),ne("indentWithTabs",!1),ne("smartIndent",!0),ne("tabSize",4,function(te){al(te),Zi(te),za(te)},!0),ne("lineSeparator",null,function(te,ie){if(te.doc.lineSep=ie,!!ie){var ue=[],me=te.doc.first;te.doc.iter(function(ke){for(var Pe=0;;){var ut=ke.text.indexOf(ie,Pe);if(ut==-1)break;Pe=ut+ie.length,ue.push(Ct(me,ut))}me++});for(var Se=ue.length-1;Se>=0;Se--)Ml(te.doc,ie,ue[Se],Ct(ue[Se].line,ue[Se].ch+ie.length))}}),ne("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(te,ie,ue){te.state.specialChars=new RegExp(ie.source+(ie.test(" ")?"":"| "),"g"),ue!=Rs&&te.refresh()}),ne("specialCharPlaceholder",Ki,function(te){return te.refresh()},!0),ne("electricChars",!0),ne("inputStyle",rt?"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){nd(te),Cl(te)},!0),ne("keyMap","default",function(te,ie,ue){var me=io(ie),Se=ue!=Rs&&io(ue);Se&&Se.detach&&Se.detach(te,me),me.attach&&me.attach(te,Se||null)}),ne("extraKeys",null),ne("configureMouse",null),ne("lineWrapping",!1,ph,!0),ne("gutters",[],function(te,ie){te.display.gutterSpecs=Pu(ie,te.options.lineNumbers),Cl(te)},!0),ne("fixedGutter",!0,function(te,ie){te.display.gutters.style.left=ie?Fi(te.display)+"px":"0",te.refresh()},!0),ne("coverGutterNextToScrollbar",!1,function(te){return As(te)},!0),ne("scrollbarStyle","native",function(te){Tc(te),As(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=Pu(te.options.gutters,ie),Cl(te)},!0),ne("firstLineNumber",1,Cl,!0),ne("lineNumberFormatter",function(te){return te},Cl,!0),ne("showCursorWhenSelecting",!1,wl,!0),ne("resetSelectionOnContextMenu",!0),ne("lineWiseCopyCut",!0),ne("pasteLinesPerSelection",!0),ne("selectionsMayTouch",!1),ne("readOnly",!1,function(te,ie){ie=="nocursor"&&(Qs(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,sf),ne("allowDropFileTypes",null),ne("cursorBlinkRate",530),ne("cursorScrollMargin",0),ne("cursorHeight",1,wl,!0),ne("singleCursorHeightPerLine",!0,wl,!0),ne("workTime",100),ne("workDelay",100),ne("flattenSpans",!0,al,!0),ne("addModeClass",!1,al,!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,al,!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 sf(x,z,ne){var te=ne&&ne!=Rs;if(!z!=!te){var ie=x.display.dragFunctions,ue=z?Ut:nt;ue(x.display.scroller,"dragstart",ie.start),ue(x.display.scroller,"dragenter",ie.enter),ue(x.display.scroller,"dragover",ie.over),ue(x.display.scroller,"dragleave",ie.leave),ue(x.display.scroller,"drop",ie.drop)}}function ph(x){x.options.lineWrapping?(Nt(x.display.wrapper,"CodeMirror-wrap"),x.display.sizer.style.minWidth="",x.display.sizerWidth=null):(ze(x.display.wrapper,"CodeMirror-wrap"),Rn(x)),Da(x),za(x),Zi(x),setTimeout(function(){return As(x)},100)}function ni(x,z){var ne=this;if(!(this instanceof ni))return new ni(x,z);this.options=z=z?Ot(z):{},Ot(fh,z,!1);var te=z.value;typeof te=="string"?te=new ga(te,z.mode,null,z.lineSeparator,z.direction):z.mode&&(te.modeOption=z.mode),this.doc=te;var ie=new ni.inputStyles[z.inputStyle](this),ue=this.display=new Ud(x,te,ie,z);ue.wrapper.CodeMirror=this,nd(this),z.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Tc(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 xe,keySeq:null,specialChars:null},z.autofocus&&!rt&&ue.input.focus(),be&&_e<11&&setTimeout(function(){return ne.display.input.reset(!0)},20),lf(this),Xc(),Ls(this),this.curOp.forceUpdate=!0,ql(this,te),z.autofocus&&!rt||this.hasFocus()?setTimeout(function(){ne.hasFocus()&&!ne.state.focused&&Au(ne)},20):Qs(this);for(var me in nc)nc.hasOwnProperty(me)&&nc[me](this,z[me],Rs);Xl(this),z.finishInit&&z.finishInit(this);for(var Se=0;Se20*20}Ut(z.scroller,"touchstart",function(ke){if(!Bt(x,ke)&&!ue(ke)&&!Ya(x,ke)){z.input.ensurePolled(),clearTimeout(ne);var Pe=+new Date;z.activeTouch={start:Pe,moved:!1,prev:Pe-te.end<=300?te:null},ke.touches.length==1&&(z.activeTouch.left=ke.touches[0].pageX,z.activeTouch.top=ke.touches[0].pageY)}}),Ut(z.scroller,"touchmove",function(){z.activeTouch&&(z.activeTouch.moved=!0)}),Ut(z.scroller,"touchend",function(ke){var Pe=z.activeTouch;if(Pe&&!oo(z,ke)&&Pe.left!=null&&!Pe.moved&&new Date-Pe.start<300){var ut=x.coordsChar(z.activeTouch,"page"),xt;!Pe.prev||me(Pe,Pe.prev)?xt=new Bi(ut,ut):!Pe.prev.prev||me(Pe,Pe.prev.prev)?xt=x.findWordAt(ut):xt=new Bi(Ct(ut.line,0),hn(x.doc,Ct(ut.line+1,0))),x.setSelection(xt.anchor,xt.head),x.focus(),Nn(ke)}ie()}),Ut(z.scroller,"touchcancel",ie),Ut(z.scroller,"scroll",function(){z.scroller.clientHeight&&(Es(x,z.scroller.scrollTop),ks(x,z.scroller.scrollLeft,!0),mt(x,"scroll",x))}),Ut(z.scroller,"mousewheel",function(ke){return zc(x,ke)}),Ut(z.scroller,"DOMMouseScroll",function(ke){return zc(x,ke)}),Ut(z.wrapper,"scroll",function(){return z.wrapper.scrollTop=z.wrapper.scrollLeft=0}),z.dragFunctions={enter:function(ke){Bt(x,ke)||lr(ke)},over:function(ke){Bt(x,ke)||(Uc(x,ke),lr(ke))},start:function(ke){return ef(x,ke)},drop:xa(x,Jh),leave:function(ke){Bt(x,ke)||Al(x)}};var Se=z.input.getField();Ut(Se,"keyup",function(ke){return lh.call(x,ke)}),Ut(Se,"keydown",xa(x,lu)),Ut(Se,"keypress",xa(x,uh)),Ut(Se,"focus",function(ke){return Au(x,ke)}),Ut(Se,"blur",function(ke){return Qs(x,ke)})}var rd=[];ni.defineInitHook=function(x){return rd.push(x)};function zo(x,z,ne,te){var ie=x.doc,ue;ne==null&&(ne="add"),ne=="smart"&&(ie.mode.indent?ue=jt(x,z).state:ne="prev");var me=x.options.tabSize,Se=Ye(ie,z),ke=He(Se.text,null,me);Se.stateAfter&&(Se.stateAfter=null);var Pe=Se.text.match(/^\s*/)[0],ut;if(!te&&!/\S/.test(Se.text))ut=0,ne="not";else if(ne=="smart"&&(ut=ie.mode.indent(ue,Se.text.slice(Pe.length),Se.text),ut==Vt||ut>150)){if(!te)return;ne="prev"}ne=="prev"?z>ie.first?ut=He(Ye(ie,z-1).text,null,me):ut=0:ne=="add"?ut=ke+x.options.indentUnit:ne=="subtract"?ut=ke-x.options.indentUnit:typeof ne=="number"&&(ut=ke+ne),ut=Math.max(0,ut);var xt="",en=0;if(x.options.indentWithTabs)for(var Gt=Math.floor(ut/me);Gt;--Gt)en+=me,xt+=" ";if(enme,ke=Xr(z),Pe=null;if(Se&&te.ranges.length>1)if(Ho&&Ho.text.join(` `)==z){if(te.ranges.length%Ho.text.length==0){Pe=[];for(var ut=0;ut=0;en--){var Gt=te.ranges[en],Sn=Gt.from(),Tn=Gt.to();Gt.empty()&&(ne&&ne>0?Sn=Ct(Sn.line,Sn.ch-ne):x.state.overwrite&&!Se?Tn=Ct(Tn.line,Math.min(Ye(ue,Tn.line).text.length,Tn.ch+wt(ke).length)):Se&&Ho&&Ho.lineWise&&Ho.text.join(` `)==ke.join(` `)&&(Sn=Tn=Ct(Sn.line,0)));var Jn={from:Sn,to:Tn,text:Pe?Pe[en%Pe.length]:ke,origin:ie||(Se?"paste":x.state.cutIncoming>me?"cut":"+input")};Ds(x.doc,Jn),Er(x,"inputRead",x,Jn)}z&&!Se&&od(x,z),Js(x),x.curOp.updateInput<2&&(x.curOp.updateInput=xt),x.curOp.typing=!0,x.state.pasteIncoming=x.state.cutIncoming=-1}function ad(x,z){var ne=x.clipboardData&&x.clipboardData.getData("Text");if(ne)return x.preventDefault(),!z.isReadOnly()&&!z.options.disableInput&&ca(z,function(){return id(z,ne,0,null,"paste")}),!0}function od(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 ue=x.getModeAt(ie.head),me=!1;if(ue.electricChars){for(var Se=0;Se-1){me=zo(x,ie.head.line,"smart");break}}else ue.electricInput&&ue.electricInput.test(Ye(x.doc,ie.head.line).text.slice(0,ie.head.ch))&&(me=zo(x,ie.head.line,"smart"));me&&Er(x,"electricInput",x,ie.head.line)}}}function Tl(x){for(var z=[],ne=[],te=0;teue&&(zo(this,Se.head.line,te,!0),ue=Se.head.line,me==this.doc.sel.primIndex&&Js(this));else{var ke=Se.from(),Pe=Se.to(),ut=Math.max(ue,ke.line);ue=Math.min(this.lastLine(),Pe.line-(Pe.ch?0:1))+1;for(var xt=ut;xt0&&So(this.doc,me,new Bi(ke,en[me].to()),Qe)}}}),getTokenAt:function(te,ie){return Un(this,te,ie)},getLineTokens:function(te,ie){return Un(this,Ct(te),ie,!0)},getTokenTypeAt:function(te){te=hn(this.doc,te);var ie=Rt(this,Ye(this.doc,te.line)),ue=0,me=(ie.length-1)/2,Se=te.ch,ke;if(Se==0)ke=ie[2];else for(;;){var Pe=ue+me>>1;if((Pe?ie[Pe*2-1]:0)>=Se)me=Pe;else if(ie[Pe*2+1]ke&&(te=ke,me=!0),Se=Ye(this.doc,te)}else Se=te;return Ra(this,Se,{top:0,left:0},ie||"page",ue||me).top+(me?this.doc.height-Hn(Se):0)},defaultTextHeight:function(){return as(this.display)},defaultCharWidth:function(){return Mi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(te,ie,ue,me,Se){var ke=this.display;te=La(this,hn(this.doc,te));var Pe=te.bottom,ut=te.left;if(ie.style.position="absolute",ie.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ie),ke.sizer.appendChild(ie),me=="over")Pe=te.top;else if(me=="above"||me=="near"){var xt=Math.max(ke.wrapper.clientHeight,this.doc.height),en=Math.max(ke.sizer.clientWidth,ke.lineSpace.clientWidth);(me=="above"||te.bottom+ie.offsetHeight>xt)&&te.top>ie.offsetHeight?Pe=te.top-ie.offsetHeight:te.bottom+ie.offsetHeight<=xt&&(Pe=te.bottom),ut+ie.offsetWidth>en&&(ut=en-ie.offsetWidth)}ie.style.top=Pe+"px",ie.style.left=ie.style.right="",Se=="right"?(ut=ke.sizer.clientWidth-ie.offsetWidth,ie.style.right="0px"):(Se=="left"?ut=0:Se=="middle"&&(ut=(ke.sizer.clientWidth-ie.offsetWidth)/2),ie.style.left=ut+"px"),ue&&Rd(this,{left:ut,top:Pe,right:ut+ie.offsetWidth,bottom:Pe+ie.offsetHeight})},triggerOnKeyDown:oa(lu),triggerOnKeyPress:oa(uh),triggerOnKeyUp:lh,triggerOnMouseDown:oa(Wa),execCommand:function(te){if(Dl.hasOwnProperty(te))return Dl[te].call(null,this)},triggerElectric:oa(function(te){od(this,te)}),findPosH:function(te,ie,ue,me){var Se=1;ie<0&&(Se=-1,ie=-ie);for(var ke=hn(this.doc,te),Pe=0;Pe0&&ut(ue.charAt(me-1));)--me;for(;Se.5||this.options.lineWrapping)&&Da(this),mt(this,"refresh",this)}),swapDoc:oa(function(te){var ie=this.doc;return ie.cm=null,this.state.selectingText&&this.state.selectingText(),ql(this,te),Zi(this),this.display.input.reset(),el(this,te.scrollLeft,te.scrollTop),this.curOp.forceScroll=!0,Er(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}},yn(x),x.registerHelper=function(te,ie,ue){ne.hasOwnProperty(te)||(ne[te]=x[te]={_global:[]}),ne[te][ie]=ue},x.registerGlobalHelper=function(te,ie,ue,me){x.registerHelper(te,ie,me),ne[te]._global.push({pred:ue,val:me})}}function rc(x,z,ne,te,ie){var ue=z,me=ne,Se=Ye(x,z.line),ke=ie&&x.direction=="rtl"?-ne:ne;function Pe(){var Cr=z.line+ke;return Cr=x.first+x.size?!1:(z=new Ct(Cr,z.ch,z.sticky),Se=Ye(x,Cr))}function ut(Cr){var dr;if(te=="codepoint"){var kr=Se.text.charCodeAt(z.ch+(te>0?0:-1));isNaN(kr)?dr=null:dr=new Ct(z.line,Math.max(0,Math.min(Se.text.length,z.ch+ne*(kr>=55296&&kr<56320?2:1))),-ne)}else ie?dr=Uo(x.cm,Se,z,ne):dr=Go(Se,z,ne);if(dr==null)if(!Cr&&Pe())z=dl(ie,x.cm,Se,z.line,ke);else return!1;else z=dr;return!0}if(te=="char"||te=="codepoint")ut();else if(te=="column")ut(!0);else if(te=="word"||te=="group")for(var xt=null,en=te=="group",Gt=x.cm&&x.cm.getHelper(z,"wordChars"),Sn=!0;!(ne<0&&!ut(!Sn));Sn=!1){var Tn=Se.text.charAt(z.ch)||` `,Jn=de(Tn,Gt)?"w":en&&Tn==` `?"n":!en||/\s/.test(Tn)?null:"p";if(en&&!Sn&&!Jn&&(Jn="s"),xt&&xt!=Jn){ne<0&&(ne=1,ut(),z.sticky="after");break}if(Jn&&(xt=Jn),ne>0&&!ut(!Sn))break}var gr=Gu(x,z,ue,me,!0);return On(ue,gr)&&(gr.hitSide=!0),gr}function gh(x,z,ne,te){var ie=x.doc,ue=z.left,me;if(te=="page"){var Se=Math.min(x.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ke=Math.max(Se-.5*as(x.display),3);me=(ne>0?z.bottom:z.top)+ne*ke}else te=="line"&&(me=ne>0?z.bottom+3:z.top-3);for(var Pe;Pe=qs(x,ue,me),!!Pe.outside;){if(ne<0?me<=0:me>=ie.height){Pe.hitSide=!0;break}me+=ne*5}return Pe}var zi=function(x){this.cm=x,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new xe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};zi.prototype.init=function(x){var z=this,ne=this,te=ne.cm,ie=ne.div=x.lineDiv;mh(ie,te.options.spellcheck,te.options.autocorrect,te.options.autocapitalize);function ue(Se){for(var ke=Se.target;ke;ke=ke.parentNode){if(ke==ie)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ke.className))break}return!1}Ut(ie,"paste",function(Se){!ue(Se)||Bt(te,Se)||ad(Se,te)||_e<=11&&setTimeout(xa(te,function(){return z.updateFromDOM()}),20)}),Ut(ie,"compositionstart",function(Se){z.composing={data:Se.data,done:!1}}),Ut(ie,"compositionupdate",function(Se){z.composing||(z.composing={data:Se.data,done:!1})}),Ut(ie,"compositionend",function(Se){z.composing&&(Se.data!=z.composing.data&&z.readFromDOMSoon(),z.composing.done=!0)}),Ut(ie,"touchstart",function(){return ne.forceCompositionEnd()}),Ut(ie,"input",function(){z.composing||z.readFromDOMSoon()});function me(Se){if(!(!ue(Se)||Bt(te,Se))){if(te.somethingSelected())Ns({lineWise:!1,text:te.getSelections()}),Se.type=="cut"&&te.replaceSelection("",null,"cut");else if(te.options.lineWiseCopyCut){var ke=Tl(te);Ns({lineWise:!0,text:ke.text}),Se.type=="cut"&&te.operation(function(){te.setSelections(ke.ranges,0,Qe),te.replaceSelection("",null,"cut")})}else return;if(Se.clipboardData){Se.clipboardData.clearData();var Pe=Ho.text.join(` `);if(Se.clipboardData.setData("Text",Pe),Se.clipboardData.getData("Text")==Pe){Se.preventDefault();return}}var ut=sd(),xt=ut.firstChild;te.display.lineSpace.insertBefore(ut,te.display.lineSpace.firstChild),xt.value=Ho.text.join(` `);var en=document.activeElement;Xt(xt),setTimeout(function(){te.display.lineSpace.removeChild(ut),en.focus(),en==ie&&ne.showPrimarySelection()},50)}}Ut(ie,"copy",me),Ut(ie,"cut",me)},zi.prototype.screenReaderLabelChanged=function(x){x?this.div.setAttribute("aria-label",x):this.div.removeAttribute("aria-label")},zi.prototype.prepareSelection=function(){var x=Ec(this.cm,!1);return x.focus=document.activeElement==this.div,x},zi.prototype.showSelection=function(x,z){!x||!this.cm.display.view.length||((x.focus||z)&&this.showPrimarySelection(),this.showMultipleSelections(x))},zi.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},zi.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&&vh(z,te)||{node:Se[0].measure.map[2],offset:0},Pe=ie.linex.firstLine()&&(te=Ct(te.line-1,Ye(x.doc,te.line-1).length)),ie.ch==Ye(x.doc,ie.line).text.length&&ie.linez.viewTo-1)return!1;var ue,me,Se;te.line==z.viewFrom||(ue=po(x,te.line))==0?(me=Wt(z.view[0].line),Se=z.view[0].node):(me=Wt(z.view[ue].line),Se=z.view[ue-1].node.nextSibling);var ke=po(x,ie.line),Pe,ut;if(ke==z.view.length-1?(Pe=z.viewTo-1,ut=z.lineDiv.lastChild):(Pe=Wt(z.view[ke+1].line)-1,ut=z.view[ke+1].node.previousSibling),!Se)return!1;for(var xt=x.doc.splitLines(cf(x,Se,ut,me,Pe)),en=ht(x.doc,Ct(me,0),Ct(Pe,Ye(x.doc,Pe).text.length));xt.length>1&&en.length>1;)if(wt(xt)==wt(en))xt.pop(),en.pop(),Pe--;else if(xt[0]==en[0])xt.shift(),en.shift(),me++;else break;for(var Gt=0,Sn=0,Tn=xt[0],Jn=en[0],gr=Math.min(Tn.length,Jn.length);Gtte.ch&&Cr.charCodeAt(Cr.length-Sn-1)==dr.charCodeAt(dr.length-Sn-1);)Gt--,Sn++;xt[xt.length-1]=Cr.slice(0,Cr.length-Sn).replace(/^\u200b+/,""),xt[0]=xt[0].slice(Gt).replace(/\u200b+$/,"");var Wr=Ct(me,Gt),Zr=Ct(Pe,en.length?wt(en).length-Sn:0);if(xt.length>1||xt[0]||rn(Wr,Zr))return Ml(x.doc,xt,Wr,Zr,"+input"),!0},zi.prototype.ensurePolled=function(){this.forceCompositionEnd()},zi.prototype.reset=function(){this.forceCompositionEnd()},zi.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},zi.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))},zi.prototype.updateFromDOM=function(){var x=this;(this.cm.isReadOnly()||!this.pollContent())&&ca(this.cm,function(){return za(x.cm)})},zi.prototype.setUneditable=function(x){x.contentEditable="false"},zi.prototype.onKeyPress=function(x){x.charCode==0||this.composing||(x.preventDefault(),this.cm.isReadOnly()||xa(this.cm,id)(this.cm,String.fromCharCode(x.charCode==null?x.keyCode:x.charCode),0))},zi.prototype.readOnlyChanged=function(x){this.div.contentEditable=String(x!="nocursor")},zi.prototype.onContextMenu=function(){},zi.prototype.resetPosition=function(){},zi.prototype.needsContentAttribute=!0;function vh(x,z){var ne=Ua(x,z.line);if(!ne||ne.hidden)return null;var te=Ye(x.doc,z.line),ie=Ao(ne,te,z.line),ue=on(te,x.doc.direction),me="left";if(ue){var Se=zt(ue,z.ch);me=Se%2?"right":"left"}var ke=rs(ie.map,z.ch,me);return ke.offset=ke.collapse=="right"?ke.end:ke.start,ke}function uf(x){for(var z=x;z;z=z.parentNode)if(/CodeMirror-gutter-wrapper/.test(z.className))return!0;return!1}function Il(x,z){return z&&(x.bad=!0),x}function cf(x,z,ne,te,ie){var ue="",me=!1,Se=x.doc.lineSeparator(),ke=!1;function Pe(Gt){return function(Sn){return Sn.id==Gt}}function ut(){me&&(ue+=Se,ke&&(ue+=Se),me=ke=!1)}function xt(Gt){Gt&&(ut(),ue+=Gt)}function en(Gt){if(Gt.nodeType==1){var Sn=Gt.getAttribute("cm-text");if(Sn){xt(Sn);return}var Tn=Gt.getAttribute("cm-marker"),Jn;if(Tn){var gr=x.findMarks(Ct(te,0),Ct(ie+1,0),Pe(+Tn));gr.length&&(Jn=gr[0].find(0))&&xt(ht(x.doc,Jn.from,Jn.to).join(Se));return}if(Gt.getAttribute("contenteditable")=="false")return;var Cr=/^(pre|div|p|li|table|br)$/i.test(Gt.nodeName);if(!/^br$/i.test(Gt.nodeName)&&Gt.textContent.length==0)return;Cr&&ut();for(var dr=0;dr=9&&z.hasSelection&&(z.hasSelection=null),ne.poll()}),Ut(ie,"paste",function(me){Bt(te,me)||ad(me,te)||(te.state.pasteIncoming=+new Date,ne.fastPoll())});function ue(me){if(!Bt(te,me)){if(te.somethingSelected())Ns({lineWise:!1,text:te.getSelections()});else if(te.options.lineWiseCopyCut){var Se=Tl(te);Ns({lineWise:!0,text:Se.text}),me.type=="cut"?te.setSelections(Se.ranges,null,Qe):(ne.prevInput="",ie.value=Se.text.join(` `),Xt(ie))}else return;me.type=="cut"&&(te.state.cutIncoming=+new Date)}}Ut(ie,"cut",ue),Ut(ie,"copy",ue),Ut(x.scroller,"paste",function(me){if(!(oo(x,me)||Bt(te,me))){if(!ie.dispatchEvent){te.state.pasteIncoming=+new Date,ne.focus();return}var Se=new Event("paste");Se.clipboardData=me.clipboardData,ie.dispatchEvent(Se)}}),Ut(x.lineSpace,"selectstart",function(me){oo(x,me)||Nn(me)}),Ut(ie,"compositionstart",function(){var me=te.getCursor("from");ne.composing&&ne.composing.range.clear(),ne.composing={start:me,range:te.markText(me,te.getCursor("to"),{className:"CodeMirror-composing"})}}),Ut(ie,"compositionend",function(){ne.composing&&(ne.poll(),ne.composing.range.clear(),ne.composing=null)})},$i.prototype.createField=function(x){this.wrapper=sd(),this.textarea=this.wrapper.firstChild},$i.prototype.screenReaderLabelChanged=function(x){x?this.textarea.setAttribute("aria-label",x):this.textarea.removeAttribute("aria-label")},$i.prototype.prepareSelection=function(){var x=this.cm,z=x.display,ne=x.doc,te=Ec(x);if(x.options.moveInputWithCursor){var ie=La(x,ne.sel.primary().head,"div"),ue=z.wrapper.getBoundingClientRect(),me=z.lineDiv.getBoundingClientRect();te.teTop=Math.max(0,Math.min(z.wrapper.clientHeight-10,ie.top+me.top-ue.top)),te.teLeft=Math.max(0,Math.min(z.wrapper.clientWidth-10,ie.left+me.left-ue.left))}return te},$i.prototype.showSelection=function(x){var z=this.cm,ne=z.display;pt(ne.cursorDiv,x.cursors),pt(ne.selectionDiv,x.selection),x.teTop!=null&&(this.wrapper.style.top=x.teTop+"px",this.wrapper.style.left=x.teLeft+"px")},$i.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&&Xt(this.textarea),be&&_e>=9&&(this.hasSelection=ne)}else x||(this.prevInput=this.textarea.value="",be&&_e>=9&&(this.hasSelection=null))}},$i.prototype.getField=function(){return this.textarea},$i.prototype.supportsTouch=function(){return!1},$i.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!rt||tt()!=this.textarea))try{this.textarea.focus()}catch(x){}},$i.prototype.blur=function(){this.textarea.blur()},$i.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},$i.prototype.receivedFocus=function(){this.slowPoll()},$i.prototype.slowPoll=function(){var x=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){x.poll(),x.cm.state.focused&&x.slowPoll()})},$i.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)},$i.prototype.poll=function(){var x=this,z=this.cm,ne=this.textarea,te=this.prevInput;if(this.contextMenuPending||!z.state.focused||fr(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&&_e>=9&&this.hasSelection===ie||Xe&&/[\uf700-\uf7ff]/.test(ie))return z.display.input.reset(),!1;if(z.doc.sel==z.display.selForContextMenu){var ue=ie.charCodeAt(0);if(ue==8203&&!te&&(te="\u200B"),ue==8666)return this.reset(),this.cm.execCommand("undo")}for(var me=0,Se=Math.min(te.length,ie.length);me1e3||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},$i.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},$i.prototype.onKeyPress=function(){be&&_e>=9&&(this.hasSelection=null),this.fastPoll()},$i.prototype.onContextMenu=function(x){var z=this,ne=z.cm,te=ne.display,ie=z.textarea;z.contextMenuPending&&z.contextMenuPending();var ue=xo(ne,x),me=te.scroller.scrollTop;if(!ue||Fe)return;var Se=ne.options.resetSelectionOnContextMenu;Se&&ne.doc.sel.contains(ue)==-1&&xa(ne,wa)(ne.doc,No(ue),Qe);var ke=ie.style.cssText,Pe=z.wrapper.style.cssText,ut=z.wrapper.offsetParent.getBoundingClientRect();z.wrapper.style.cssText="position: static",ie.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(x.clientY-ut.top-5)+"px; left: "+(x.clientX-ut.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 xt;Re&&(xt=window.scrollY),te.input.focus(),Re&&window.scrollTo(null,xt),te.input.reset(),ne.somethingSelected()||(ie.value=z.prevInput=" "),z.contextMenuPending=Gt,te.selForContextMenu=ne.doc.sel,clearTimeout(te.detectingSelectAll);function en(){if(ie.selectionStart!=null){var Tn=ne.somethingSelected(),Jn="\u200B"+(Tn?ie.value:"");ie.value="\u21DA",ie.value=Jn,z.prevInput=Tn?"":"\u200B",ie.selectionStart=1,ie.selectionEnd=Jn.length,te.selForContextMenu=ne.doc.sel}}function Gt(){if(z.contextMenuPending==Gt&&(z.contextMenuPending=!1,z.wrapper.style.cssText=Pe,ie.style.cssText=ke,be&&_e<9&&te.scrollbars.setScrollTop(te.scroller.scrollTop=me),ie.selectionStart!=null)){(!be||be&&_e<9)&&en();var Tn=0,Jn=function(){te.selForContextMenu==ne.doc.sel&&ie.selectionStart==0&&ie.selectionEnd>0&&z.prevInput=="\u200B"?xa(ne,$c)(ne):Tn++<10?te.detectingSelectAll=setTimeout(Jn,500):(te.selForContextMenu=null,te.input.reset())};te.detectingSelectAll=setTimeout(Jn,200)}}if(be&&_e>=9&&en(),Ze){lr(x);var Sn=function(){nt(window,"mouseup",Sn),setTimeout(Gt,20)};Ut(window,"mouseup",Sn)}else setTimeout(Gt,50)},$i.prototype.readOnlyChanged=function(x){x||this.reset(),this.textarea.disabled=x=="nocursor",this.textarea.readOnly=!!x},$i.prototype.setUneditable=function(){},$i.prototype.needsContentAttribute=!1;function hl(x,z){if(z=z?Ot(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=tt();z.autofocus=ne==x||x.getAttribute("autofocus")!=null&&ne==document.body}function te(){x.value=Se.getValue()}var ie;if(x.form&&(Ut(x.form,"submit",te),!z.leaveSubmitMethodAlone)){var ue=x.form;ie=ue.submit;try{var me=ue.submit=function(){te(),ue.submit=ie,ue.submit(),ue.submit=me}}catch(ke){}}z.finishInit=function(ke){ke.save=te,ke.getTextArea=function(){return x},ke.toTextArea=function(){ke.toTextArea=isNaN,te(),x.parentNode.removeChild(ke.getWrapperElement()),x.style.display="",x.form&&(nt(x.form,"submit",te),!z.leaveSubmitMethodAlone&&typeof x.form.submit=="function"&&(x.form.submit=ie))}},x.style.display="none";var Se=ni(function(ke){return x.parentNode.insertBefore(ke,x.nextSibling)},z);return Se}function Pl(x){x.off=nt,x.on=Ut,x.wheelEventPixels=Fc,x.Doc=ga,x.splitLines=Xr,x.countColumn=He,x.findColumn=dn,x.isWordChar=ce,x.Pass=Vt,x.signal=mt,x.Line=Qn,x.changeEnd=cs,x.scrollbarModel=Bc,x.Pos=Ct,x.cmpPos=rn,x.modes=qr,x.mimeModes=Hr,x.resolveMode=Dn,x.getMode=Bn,x.modeExtensions=br,x.extendMode=st,x.copyState=Ae,x.startState=Be,x.innerMode=Ne,x.commands=Dl,x.keyMap=Vi,x.keyName=cl,x.isModifierKey=su,x.lookupKey=ms,x.normalizeKeyMap=Yc,x.StringStream=Ie,x.SharedTextMarker=ci,x.TextMarker=Bs,x.LineWidget=kl,x.e_preventDefault=Nn,x.e_stopPropagation=Vn,x.e_stop=lr,x.addClass=Nt,x.contains=At,x.rmClass=ze,x.keyNames=Fo}of(ni),ld(ni);var ys="iter insert remove copy getEditor constructor".split(" ");for(var Po in ga.prototype)ga.prototype.hasOwnProperty(Po)&>(ys,Po)<0&&(ni.prototype[Po]=function(x){return function(){return x.apply(this.doc,arguments)}}(ga.prototype[Po]));return yn(ga),ni.inputStyles={textarea:$i,contenteditable:zi},ni.defineMode=function(x){!ni.defaults.mode&&x!="null"&&(ni.defaults.mode=x),er.apply(this,arguments)},ni.defineMIME=vr,ni.defineMode("null",function(){return{token:function(x){return x.skipToEnd()}}}),ni.defineMIME("text/plain","null"),ni.defineExtension=function(x,z){ni.prototype[x]=z},ni.defineDocExtension=function(x,z){ga.prototype[x]=z},ni.fromTextArea=hl,Pl(ni),ni.version="5.58.2",ni})},25419:function(fn,Jt,fe){(function(ye){ye(fe(89780),fe(15525),fe(98101))})(function(ye){"use strict";ye.defineMode("markdown",function(We,Te){var it=ye.getMode(We,"text/html"),be=it.name=="null";function _e(He){if(ye.findModeByName){var xe=ye.findModeByName(He);xe&&(He=xe.mime||xe.mimes[0])}var gt=ye.getMode(We,He);return gt.name=="null"?null:gt}Te.highlightFormatting===void 0&&(Te.highlightFormatting=!1),Te.maxBlockquoteDepth===void 0&&(Te.maxBlockquoteDepth=0),Te.taskLists===void 0&&(Te.taskLists=!1),Te.strikethrough===void 0&&(Te.strikethrough=!1),Te.emoji===void 0&&(Te.emoji=!1),Te.fencedCodeBlockHighlighting===void 0&&(Te.fencedCodeBlockHighlighting=!0),Te.fencedCodeBlockDefaultMode===void 0&&(Te.fencedCodeBlockDefaultMode="text/plain"),Te.xml===void 0&&(Te.xml=!0),Te.tokenTypeOverrides===void 0&&(Te.tokenTypeOverrides={});var Re={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 Ce in Re)Re.hasOwnProperty(Ce)&&Te.tokenTypeOverrides[Ce]&&(Re[Ce]=Te.tokenTypeOverrides[Ce]);var Ee=/^([*\-_])(?:\s*\1){2,}\s*$/,Fe=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,lt=/^\[(x| )\](?=\s)/i,De=Te.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Ke=/^ {0,3}(?:\={1,}|-{2,})\s*$/,ft=/^[^#!\[\]*_\\<>` "'(~:]+/,Ve=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,rt=/^\s*\[[^\]]+?\]:.*$/,Xe=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,St=" ";function Kt(He,xe,gt){return xe.f=xe.inline=gt,gt(He,xe)}function Je(He,xe,gt){return xe.f=xe.block=gt,gt(He,xe)}function dt(He){return!He||!/\S/.test(He.string)}function Ze(He){if(He.linkTitle=!1,He.linkHref=!1,He.linkText=!1,He.em=!1,He.strong=!1,He.strikethrough=!1,He.quote=0,He.indentedCode=!1,He.f==ze){var xe=be;if(!xe){var gt=ye.innerMode(it,He.htmlState);xe=gt.mode.name=="xml"&>.state.tagStart===null&&!gt.state.context&>.state.tokenize.isInText}xe&&(He.f=Lt,He.block=Me,He.htmlState=null)}return He.trailingSpace=0,He.trailingSpaceNewLine=!1,He.prevLine=He.thisLine,He.thisLine={stream:null},null}function Me(He,xe){var gt=He.column()===xe.indentation,nn=dt(xe.prevLine.stream),Vt=xe.indentedCode,Qe=xe.prevLine.hr,Ue=xe.list!==!1,kt=(xe.listStack[xe.listStack.length-1]||0)+3;xe.indentedCode=!1;var dn=xe.indentation;if(xe.indentationDiff===null&&(xe.indentationDiff=xe.indentation,Ue)){for(xe.list=null;dn=4&&(Vt||xe.prevLine.fencedCodeEnd||xe.prevLine.header||nn))return He.skipToEnd(),xe.indentedCode=!0,Re.code;if(He.eatSpace())return null;if(gt&&xe.indentation<=kt&&(wt=He.match(De))&&wt[1].length<=6)return xe.quote=0,xe.header=wt[1].length,xe.thisLine.header=!0,Te.highlightFormatting&&(xe.formatting="header"),xe.f=xe.inline,pt(xe);if(xe.indentation<=kt&&He.eat(">"))return xe.quote=gt?1:xe.quote+1,Te.highlightFormatting&&(xe.formatting="quote"),He.eatSpace(),pt(xe);if(!$t&&!xe.setext&>&&xe.indentation<=kt&&(wt=He.match(Fe))){var Dt=wt[1]?"ol":"ul";return xe.indentation=dn+He.current().length,xe.list=!0,xe.quote=0,xe.listStack.push(xe.indentation),xe.em=!1,xe.strong=!1,xe.code=!1,xe.strikethrough=!1,Te.taskLists&&He.match(lt,!1)&&(xe.taskList=!0),xe.f=xe.inline,Te.highlightFormatting&&(xe.formatting=["list","list-"+Dt]),pt(xe)}else{if(gt&&xe.indentation<=kt&&(wt=He.match(Ve,!0)))return xe.quote=0,xe.fencedEndRE=new RegExp(wt[1]+"+ *$"),xe.localMode=Te.fencedCodeBlockHighlighting&&_e(wt[2]||Te.fencedCodeBlockDefaultMode),xe.localMode&&(xe.localState=ye.startState(xe.localMode)),xe.f=xe.block=$e,Te.highlightFormatting&&(xe.formatting="code-block"),xe.code=-1,pt(xe);if(xe.setext||(!Et||!Ue)&&!xe.quote&&xe.list===!1&&!xe.code&&!$t&&!rt.test(He.string)&&(wt=He.lookAhead(1))&&(wt=wt.match(Ke)))return xe.setext?(xe.header=xe.setext,xe.setext=0,He.skipToEnd(),Te.highlightFormatting&&(xe.formatting="header")):(xe.header=wt[0].charAt(0)=="="?1:2,xe.setext=xe.header),xe.thisLine.header=!0,xe.f=xe.inline,pt(xe);if($t)return He.skipToEnd(),xe.hr=!0,xe.thisLine.hr=!0,Re.hr;if(He.peek()==="[")return Kt(He,xe,tn)}return Kt(He,xe,xe.inline)}function ze(He,xe){var gt=it.token(He,xe.htmlState);if(!be){var nn=ye.innerMode(it,xe.htmlState);(nn.mode.name=="xml"&&nn.state.tagStart===null&&!nn.state.context&&nn.state.tokenize.isInText||xe.md_inside&&He.current().indexOf(">")>-1)&&(xe.f=Lt,xe.block=Me,xe.htmlState=null)}return gt}function $e(He,xe){var gt=xe.listStack[xe.listStack.length-1]||0,nn=xe.indentation=He.quote?xe.push(Re.formatting+"-"+He.formatting[gt]+"-"+He.quote):xe.push("error"))}if(He.taskOpen)return xe.push("meta"),xe.length?xe.join(" "):null;if(He.taskClosed)return xe.push("property"),xe.length?xe.join(" "):null;if(He.linkHref?xe.push(Re.linkHref,"url"):(He.strong&&xe.push(Re.strong),He.em&&xe.push(Re.em),He.strikethrough&&xe.push(Re.strikethrough),He.emoji&&xe.push(Re.emoji),He.linkText&&xe.push(Re.linkText),He.code&&xe.push(Re.code),He.image&&xe.push(Re.image),He.imageAltText&&xe.push(Re.imageAltText,"link"),He.imageMarker&&xe.push(Re.imageMarker)),He.header&&xe.push(Re.header,Re.header+"-"+He.header),He.quote&&(xe.push(Re.quote),!Te.maxBlockquoteDepth||Te.maxBlockquoteDepth>=He.quote?xe.push(Re.quote+"-"+He.quote):xe.push(Re.quote+"-"+Te.maxBlockquoteDepth)),He.list!==!1){var nn=(He.listStack.length-1)%3;nn?nn===1?xe.push(Re.list2):xe.push(Re.list3):xe.push(Re.list1)}return He.trailingSpaceNewLine?xe.push("trailing-space-new-line"):He.trailingSpace&&xe.push("trailing-space-"+(He.trailingSpace%2?"a":"b")),xe.length?xe.join(" "):null}function Ge(He,xe){if(He.match(ft,!0))return pt(xe)}function Lt(He,xe){var gt=xe.text(He,xe);if(typeof gt!="undefined")return gt;if(xe.list)return xe.list=null,pt(xe);if(xe.taskList){var nn=He.match(lt,!0)[1]===" ";return nn?xe.taskOpen=!0:xe.taskClosed=!0,Te.highlightFormatting&&(xe.formatting="task"),xe.taskList=!1,pt(xe)}if(xe.taskOpen=!1,xe.taskClosed=!1,xe.header&&He.match(/^#+$/,!0))return Te.highlightFormatting&&(xe.formatting="header"),pt(xe);var Vt=He.next();if(xe.linkTitle){xe.linkTitle=!1;var Qe=Vt;Vt==="("&&(Qe=")"),Qe=(Qe+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ue="^\\s*(?:[^"+Qe+"\\\\]+|\\\\\\\\|\\\\.)"+Qe;if(He.match(new RegExp(Ue),!0))return Re.linkHref}if(Vt==="`"){var kt=xe.formatting;Te.highlightFormatting&&(xe.formatting="code"),He.eatWhile("`");var dn=He.current().length;if(xe.code==0&&(!xe.quote||dn==1))return xe.code=dn,pt(xe);if(dn==xe.code){var Et=pt(xe);return xe.code=0,Et}else return xe.formatting=kt,pt(xe)}else if(xe.code)return pt(xe);if(Vt==="\\"&&(He.next(),Te.highlightFormatting)){var $t=pt(xe),wt=Re.formatting+"-escape";return $t?$t+" "+wt:wt}if(Vt==="!"&&He.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return xe.imageMarker=!0,xe.image=!0,Te.highlightFormatting&&(xe.formatting="image"),pt(xe);if(Vt==="["&&xe.imageMarker&&He.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return xe.imageMarker=!1,xe.imageAltText=!0,Te.highlightFormatting&&(xe.formatting="image"),pt(xe);if(Vt==="]"&&xe.imageAltText){Te.highlightFormatting&&(xe.formatting="image");var $t=pt(xe);return xe.imageAltText=!1,xe.image=!1,xe.inline=xe.f=At,$t}if(Vt==="["&&!xe.image)return xe.linkText&&He.match(/^.*?\]/)||(xe.linkText=!0,Te.highlightFormatting&&(xe.formatting="link")),pt(xe);if(Vt==="]"&&xe.linkText){Te.highlightFormatting&&(xe.formatting="link");var $t=pt(xe);return xe.linkText=!1,xe.inline=xe.f=He.match(/\(.*?\)| ?\[.*?\]/,!1)?At:Lt,$t}if(Vt==="<"&&He.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){xe.f=xe.inline=at,Te.highlightFormatting&&(xe.formatting="link");var $t=pt(xe);return $t?$t+=" ":$t="",$t+Re.linkInline}if(Vt==="<"&&He.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){xe.f=xe.inline=at,Te.highlightFormatting&&(xe.formatting="link");var $t=pt(xe);return $t?$t+=" ":$t="",$t+Re.linkEmail}if(Te.xml&&Vt==="<"&&He.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Dt=He.string.indexOf(">",He.pos);if(Dt!=-1){var Pt=He.string.substring(He.start,Dt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Pt)&&(xe.md_inside=!0)}return He.backUp(1),xe.htmlState=ye.startState(it),Je(He,xe,ze)}if(Te.xml&&Vt==="<"&&He.match(/^\/\w*?>/))return xe.md_inside=!1,"tag";if(Vt==="*"||Vt==="_"){for(var ve=1,le=He.pos==1?" ":He.string.charAt(He.pos-2);ve<3&&He.eat(Vt);)ve++;var oe=He.peek()||" ",ce=!/\s/.test(oe)&&(!Xe.test(oe)||/\s/.test(le)||Xe.test(le)),de=!/\s/.test(le)&&(!Xe.test(le)||/\s/.test(oe)||Xe.test(oe)),se=null,Le=null;if(ve%2&&(!xe.em&&ce&&(Vt==="*"||!de||Xe.test(le))?se=!0:xe.em==Vt&&de&&(Vt==="*"||!ce||Xe.test(oe))&&(se=!1)),ve>1&&(!xe.strong&&ce&&(Vt==="*"||!de||Xe.test(le))?Le=!0:xe.strong==Vt&&de&&(Vt==="*"||!ce||Xe.test(oe))&&(Le=!1)),Le!=null||se!=null){Te.highlightFormatting&&(xe.formatting=se==null?"strong":Le==null?"em":"strong em"),se===!0&&(xe.em=Vt),Le===!0&&(xe.strong=Vt);var Et=pt(xe);return se===!1&&(xe.em=!1),Le===!1&&(xe.strong=!1),Et}}else if(Vt===" "&&(He.eat("*")||He.eat("_"))){if(He.peek()===" ")return pt(xe);He.backUp(1)}if(Te.strikethrough){if(Vt==="~"&&He.eatWhile(Vt)){if(xe.strikethrough){Te.highlightFormatting&&(xe.formatting="strikethrough");var Et=pt(xe);return xe.strikethrough=!1,Et}else if(He.match(/^[^\s]/,!1))return xe.strikethrough=!0,Te.highlightFormatting&&(xe.formatting="strikethrough"),pt(xe)}else if(Vt===" "&&He.match(/^~~/,!0)){if(He.peek()===" ")return pt(xe);He.backUp(2)}}if(Te.emoji&&Vt===":"&&He.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){xe.emoji=!0,Te.highlightFormatting&&(xe.formatting="emoji");var qe=pt(xe);return xe.emoji=!1,qe}return Vt===" "&&(He.match(/^ +$/,!1)?xe.trailingSpace++:xe.trailingSpace&&(xe.trailingSpaceNewLine=!0)),pt(xe)}function at(He,xe){var gt=He.next();if(gt===">"){xe.f=xe.inline=Lt,Te.highlightFormatting&&(xe.formatting="link");var nn=pt(xe);return nn?nn+=" ":nn="",nn+Re.linkInline}return He.match(/^[^>]+/,!0),Re.linkInline}function At(He,xe){if(He.eatSpace())return null;var gt=He.next();return gt==="("||gt==="["?(xe.f=xe.inline=Nt(gt==="("?")":"]"),Te.highlightFormatting&&(xe.formatting="link-string"),xe.linkHref=!0,pt(xe)):"error"}var tt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Nt(He){return function(xe,gt){var nn=xe.next();if(nn===He){gt.f=gt.inline=Lt,Te.highlightFormatting&&(gt.formatting="link-string");var Vt=pt(gt);return gt.linkHref=!1,Vt}return xe.match(tt[He]),gt.linkHref=!0,pt(gt)}}function tn(He,xe){return He.match(/^([^\]\\]|\\.)*\]:/,!1)?(xe.f=Xt,He.next(),Te.highlightFormatting&&(xe.formatting="link"),xe.linkText=!0,pt(xe)):Kt(He,xe,Lt)}function Xt(He,xe){if(He.match(/^\]:/,!0)){xe.f=xe.inline=qt,Te.highlightFormatting&&(xe.formatting="link");var gt=pt(xe);return xe.linkText=!1,gt}return He.match(/^([^\]\\]|\\.)+/,!0),Re.linkText}function qt(He,xe){return He.eatSpace()?null:(He.match(/^[^\s]+/,!0),He.peek()===void 0?xe.linkTitle=!0:He.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),xe.f=xe.inline=Lt,Re.linkHref+" url")}var Ot={startState:function(){return{f:Me,prevLine:{stream:null},thisLine:{stream:null},block:Me,htmlState:null,indentation:0,inline:Lt,text:Ge,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(He){return{f:He.f,prevLine:He.prevLine,thisLine:He.thisLine,block:He.block,htmlState:He.htmlState&&ye.copyState(it,He.htmlState),indentation:He.indentation,localMode:He.localMode,localState:He.localMode?ye.copyState(He.localMode,He.localState):null,inline:He.inline,text:He.text,formatting:!1,linkText:He.linkText,linkTitle:He.linkTitle,linkHref:He.linkHref,code:He.code,em:He.em,strong:He.strong,strikethrough:He.strikethrough,emoji:He.emoji,header:He.header,setext:He.setext,hr:He.hr,taskList:He.taskList,list:He.list,listStack:He.listStack.slice(0),quote:He.quote,indentedCode:He.indentedCode,trailingSpace:He.trailingSpace,trailingSpaceNewLine:He.trailingSpaceNewLine,md_inside:He.md_inside,fencedEndRE:He.fencedEndRE}},token:function(He,xe){if(xe.formatting=!1,He!=xe.thisLine.stream){if(xe.header=0,xe.hr=!1,He.match(/^\s*$/,!0))return Ze(xe),null;if(xe.prevLine=xe.thisLine,xe.thisLine={stream:He},xe.taskList=!1,xe.trailingSpace=0,xe.trailingSpaceNewLine=!1,!xe.localState&&(xe.f=xe.block,xe.f!=ze)){var gt=He.match(/^\s*/,!0)[0].replace(/\t/g,St).length;if(xe.indentation=gt,xe.indentationDiff=null,gt>0)return null}}return xe.f(He,xe)},innerMode:function(He){return He.block==ze?{state:He.htmlState,mode:it}:He.localState?{state:He.localState,mode:He.localMode}:{state:He,mode:Ot}},indent:function(He,xe,gt){return He.block==ze&&it.indent?it.indent(He.htmlState,xe,gt):He.localState&&He.localMode.indent?He.localMode.indent(He.localState,xe,gt):ye.Pass},blankLine:Ze,getType:pt,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Ot},"xml"),ye.defineMIME("text/markdown","markdown"),ye.defineMIME("text/x-markdown","markdown")})},98101:function(fn,Jt,fe){(function(ye){ye(fe(89780))})(function(ye){"use strict";ye.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 We=0;We-1&&it.substring(Re+1,it.length);if(Ce)return ye.findModeByExtension(Ce)},ye.findModeByName=function(it){it=it.toLowerCase();for(var be=0;be0?ft.cmdState[ft.cmdState.length-1]:null}function _e(ft){var Ve=ft.cmdState.pop();Ve&&Ve.closeBracket()}function Re(ft){for(var Ve=ft.cmdState,rt=Ve.length-1;rt>=0;rt--){var Xe=Ve[rt];if(Xe.name!="DEFAULT")return Xe}return{styleIdentifier:function(){return null}}}function Ce(ft,Ve,rt){return function(){this.name=ft,this.bracketNo=0,this.style=Ve,this.styles=rt,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Ee={};Ee.importmodule=Ce("importmodule","tag",["string","builtin"]),Ee.documentclass=Ce("documentclass","tag",["","atom"]),Ee.usepackage=Ce("usepackage","tag",["atom"]),Ee.begin=Ce("begin","tag",["atom"]),Ee.end=Ce("end","tag",["atom"]),Ee.label=Ce("label","tag",["atom"]),Ee.ref=Ce("ref","tag",["atom"]),Ee.eqref=Ce("eqref","tag",["atom"]),Ee.cite=Ce("cite","tag",["atom"]),Ee.bibitem=Ce("bibitem","tag",["atom"]),Ee.Bibitem=Ce("Bibitem","tag",["atom"]),Ee.RBibitem=Ce("RBibitem","tag",["atom"]),Ee.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Fe(ft,Ve){ft.f=Ve}function lt(ft,Ve){var rt;if(ft.match(/^\\[a-zA-Z@]+/)){var Xe=ft.current().slice(1);return rt=Ee.hasOwnProperty(Xe)?Ee[Xe]:Ee.DEFAULT,rt=new rt,it(Ve,rt),Fe(Ve,Ke),rt.style}if(ft.match(/^\\[$&%#{}_]/)||ft.match(/^\\[,;!\/\\]/))return"tag";if(ft.match("\\["))return Fe(Ve,function(Kt,Je){return De(Kt,Je,"\\]")}),"keyword";if(ft.match("\\("))return Fe(Ve,function(Kt,Je){return De(Kt,Je,"\\)")}),"keyword";if(ft.match("$$"))return Fe(Ve,function(Kt,Je){return De(Kt,Je,"$$")}),"keyword";if(ft.match("$"))return Fe(Ve,function(Kt,Je){return De(Kt,Je,"$")}),"keyword";var St=ft.next();if(St=="%")return ft.skipToEnd(),"comment";if(St=="}"||St=="]"){if(rt=be(Ve),rt)rt.closeBracket(St),Fe(Ve,Ke);else return"error";return"bracket"}else return St=="{"||St=="["?(rt=Ee.DEFAULT,rt=new rt,it(Ve,rt),"bracket"):/\d/.test(St)?(ft.eatWhile(/[\w.%]/),"atom"):(ft.eatWhile(/[\w\-_]/),rt=Re(Ve),rt.name=="begin"&&(rt.argument=ft.current()),rt.styleIdentifier())}function De(ft,Ve,rt){if(ft.eatSpace())return null;if(rt&&ft.match(rt))return Fe(Ve,lt),"keyword";if(ft.match(/^\\[a-zA-Z@]+/))return"tag";if(ft.match(/^[a-zA-Z]+/))return"variable-2";if(ft.match(/^\\[$&%#{}_]/)||ft.match(/^\\[,;!\/]/)||ft.match(/^[\^_&]/))return"tag";if(ft.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(ft.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Xe=ft.next();return Xe=="{"||Xe=="}"||Xe=="["||Xe=="]"||Xe=="("||Xe==")"?"bracket":Xe=="%"?(ft.skipToEnd(),"comment"):"error"}function Ke(ft,Ve){var rt=ft.peek(),Xe;return rt=="{"||rt=="["?(Xe=be(Ve),Xe.openBracket(rt),ft.eat(rt),Fe(Ve,lt),"bracket"):/[ \t\r]/.test(rt)?(ft.eat(rt),null):(Fe(Ve,lt),_e(Ve),lt(ft,Ve))}return{startState:function(){var ft=Te.inMathMode?function(Ve,rt){return De(Ve,rt)}:lt;return{cmdState:[],f:ft}},copyState:function(ft){return{cmdState:ft.cmdState.slice(),f:ft.f}},token:function(ft,Ve){return Ve.f(ft,Ve)},blankLine:function(ft){ft.f=lt,ft.cmdState.length=0},lineComment:"%"}}),ye.defineMIME("text/x-stex","stex"),ye.defineMIME("text/x-latex","stex")})},15525:function(fn,Jt,fe){(function(ye){ye(fe(89780))})(function(ye){"use strict";var We={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},Te={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ye.defineMode("xml",function(it,be){var _e=it.indentUnit,Re={},Ce=be.htmlMode?We:Te;for(var Ee in Ce)Re[Ee]=Ce[Ee];for(var Ee in be)Re[Ee]=be[Ee];var Fe,lt;function De(at,At){function tt(Xt){return At.tokenize=Xt,Xt(at,At)}var Nt=at.next();if(Nt=="<")return at.eat("!")?at.eat("[")?at.match("CDATA[")?tt(Ve("atom","]]>")):null:at.match("--")?tt(Ve("comment","-->")):at.match("DOCTYPE",!0,!0)?(at.eatWhile(/[\w\._\-]/),tt(rt(1))):null:at.eat("?")?(at.eatWhile(/[\w\._\-]/),At.tokenize=Ve("meta","?>"),"meta"):(Fe=at.eat("/")?"closeTag":"openTag",At.tokenize=Ke,"tag bracket");if(Nt=="&"){var tn;return at.eat("#")?at.eat("x")?tn=at.eatWhile(/[a-fA-F\d]/)&&at.eat(";"):tn=at.eatWhile(/[\d]/)&&at.eat(";"):tn=at.eatWhile(/[\w\.\-:]/)&&at.eat(";"),tn?"atom":"error"}else return at.eatWhile(/[^&<]/),null}De.isInText=!0;function Ke(at,At){var tt=at.next();if(tt==">"||tt=="/"&&at.eat(">"))return At.tokenize=De,Fe=tt==">"?"endTag":"selfcloseTag","tag bracket";if(tt=="=")return Fe="equals",null;if(tt=="<"){At.tokenize=De,At.state=Je,At.tagName=At.tagStart=null;var Nt=At.tokenize(at,At);return Nt?Nt+" tag error":"tag error"}else return/[\'\"]/.test(tt)?(At.tokenize=ft(tt),At.stringStartCol=at.column(),At.tokenize(at,At)):(at.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function ft(at){var At=function(tt,Nt){for(;!tt.eol();)if(tt.next()==at){Nt.tokenize=Ke;break}return"string"};return At.isInAttribute=!0,At}function Ve(at,At){return function(tt,Nt){for(;!tt.eol();){if(tt.match(At)){Nt.tokenize=De;break}tt.next()}return at}}function rt(at){return function(At,tt){for(var Nt;(Nt=At.next())!=null;){if(Nt=="<")return tt.tokenize=rt(at+1),tt.tokenize(At,tt);if(Nt==">")if(at==1){tt.tokenize=De;break}else return tt.tokenize=rt(at-1),tt.tokenize(At,tt)}return"meta"}}function Xe(at,At,tt){this.prev=at.context,this.tagName=At,this.indent=at.indented,this.startOfLine=tt,(Re.doNotIndent.hasOwnProperty(At)||at.context&&at.context.noIndent)&&(this.noIndent=!0)}function St(at){at.context&&(at.context=at.context.prev)}function Kt(at,At){for(var tt;;){if(!at.context||(tt=at.context.tagName,!Re.contextGrabbers.hasOwnProperty(tt)||!Re.contextGrabbers[tt].hasOwnProperty(At)))return;St(at)}}function Je(at,At,tt){return at=="openTag"?(tt.tagStart=At.column(),dt):at=="closeTag"?Ze:Je}function dt(at,At,tt){return at=="word"?(tt.tagName=At.current(),lt="tag",$e):Re.allowMissingTagName&&at=="endTag"?(lt="tag bracket",$e(at,At,tt)):(lt="error",dt)}function Ze(at,At,tt){if(at=="word"){var Nt=At.current();return tt.context&&tt.context.tagName!=Nt&&Re.implicitlyClosed.hasOwnProperty(tt.context.tagName)&&St(tt),tt.context&&tt.context.tagName==Nt||Re.matchClosing===!1?(lt="tag",Me):(lt="tag error",ze)}else return Re.allowMissingTagName&&at=="endTag"?(lt="tag bracket",Me(at,At,tt)):(lt="error",ze)}function Me(at,At,tt){return at!="endTag"?(lt="error",Me):(St(tt),Je)}function ze(at,At,tt){return lt="error",Me(at,At,tt)}function $e(at,At,tt){if(at=="word")return lt="attribute",pt;if(at=="endTag"||at=="selfcloseTag"){var Nt=tt.tagName,tn=tt.tagStart;return tt.tagName=tt.tagStart=null,at=="selfcloseTag"||Re.autoSelfClosers.hasOwnProperty(Nt)?Kt(tt,Nt):(Kt(tt,Nt),tt.context=new Xe(tt,Nt,tn==tt.indented)),Je}return lt="error",$e}function pt(at,At,tt){return at=="equals"?Ge:(Re.allowMissing||(lt="error"),$e(at,At,tt))}function Ge(at,At,tt){return at=="string"?Lt:at=="word"&&Re.allowUnquoted?(lt="string",$e):(lt="error",$e(at,At,tt))}function Lt(at,At,tt){return at=="string"?Lt:$e(at,At,tt)}return{startState:function(at){var At={tokenize:De,state:Je,indented:at||0,tagName:null,tagStart:null,context:null};return at!=null&&(At.baseIndent=at),At},token:function(at,At){if(!At.tagName&&at.sol()&&(At.indented=at.indentation()),at.eatSpace())return null;Fe=null;var tt=At.tokenize(at,At);return(tt||Fe)&&tt!="comment"&&(lt=null,At.state=At.state(Fe||tt,at,At),lt&&(tt=lt=="error"?tt+" error":lt)),tt},indent:function(at,At,tt){var Nt=at.context;if(at.tokenize.isInAttribute)return at.tagStart==at.indented?at.stringStartCol+1:at.indented+_e;if(Nt&&Nt.noIndent)return ye.Pass;if(at.tokenize!=Ke&&at.tokenize!=De)return tt?tt.match(/^(\s*)/)[0].length:0;if(at.tagName)return Re.multilineTagIndentPastTag!==!1?at.tagStart+at.tagName.length+2:at.tagStart+_e*(Re.multilineTagIndentFactor||1);if(Re.alignCDATA&&/$/,blockCommentStart:"",configuration:Re.htmlMode?"html":"xml",helperType:Re.htmlMode?"html":"xml",skipAttribute:function(at){at.state==Ge&&(at.state=$e)},xmlCurrentTag:function(at){return at.tagName?{name:at.tagName,close:at.type=="closeTag"}:null},xmlCurrentContext:function(at){for(var At=[],tt=at.context;tt;tt=tt.prev)tt.tagName&&At.push(tt.tagName);return At.reverse()}}}),ye.defineMIME("text/xml","xml"),ye.defineMIME("application/xml","xml"),ye.mimeModes.hasOwnProperty("text/html")||ye.defineMIME("text/html",{name:"xml",htmlMode:!0})})},2859:function(fn,Jt,fe){"use strict";fe.d(Jt,{hP:function(){return Pt}});var ye=function(ve,le){return(ye=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,ce){oe.__proto__=ce}||function(oe,ce){for(var de in ce)Object.prototype.hasOwnProperty.call(ce,de)&&(oe[de]=ce[de])})(ve,le)};function We(ve,le){function oe(){this.constructor=ve}ye(ve,le),ve.prototype=le===null?Object.create(le):(oe.prototype=le.prototype,new oe)}function Te(ve,le,oe,ce){return new(oe||(oe=Promise))(function(de,se){function Le(yt){try{vt(ce.next(yt))}catch(_t){se(_t)}}function qe(yt){try{vt(ce.throw(yt))}catch(_t){se(_t)}}function vt(yt){var _t;yt.done?de(yt.value):(_t=yt.value,_t instanceof oe?_t:new oe(function(Tt){Tt(_t)})).then(Le,qe)}vt((ce=ce.apply(ve,le||[])).next())})}function it(ve,le){var oe,ce,de,se,Le={label:0,sent:function(){if(1&de[0])throw de[1];return de[1]},trys:[],ops:[]};return se={next:qe(0),throw:qe(1),return:qe(2)},typeof Symbol=="function"&&(se[Symbol.iterator]=function(){return this}),se;function qe(vt){return function(yt){return function(_t){if(oe)throw new TypeError("Generator is already executing.");for(;Le;)try{if(oe=1,ce&&(de=2&_t[0]?ce.return:_t[0]?ce.throw||((de=ce.return)&&de.call(ce),0):ce.next)&&!(de=de.call(ce,_t[1])).done)return de;switch(ce=0,de&&(_t=[2&_t[0],de.value]),_t[0]){case 0:case 1:de=_t;break;case 4:return Le.label++,{value:_t[1],done:!1};case 5:Le.label++,ce=_t[1],_t=[0];continue;case 7:_t=Le.ops.pop(),Le.trys.pop();continue;default:if(de=Le.trys,!((de=de.length>0&&de[de.length-1])||_t[0]!==6&&_t[0]!==2)){Le=0;continue}if(_t[0]===3&&(!de||_t[1]>de[0]&&_t[1]',"select"),this.addActionButton(ce,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(ce,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(ce,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(ce,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(ce,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(ce,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(ce,'',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(se){var Le=document.createElement("div");Le.className=""+oe.toolbarButtonStyleClass.name,Le.setAttribute("data-type-name",se.typeName),Le.innerHTML=se.icon,Le.addEventListener("click",function(){oe.markerToolbarButtonClicked(Le,se)}),oe.buttons.push(Le),oe.markerButtons.push(Le)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var de=document.createElement("div");de.className=this.toolbarBlockStyleClass.name,de.style.whiteSpace="nowrap",de.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(de),this.addActionButton(de,'',"render"),this.addActionButton(de,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},ve.prototype.addButtonClickListener=function(le){this.buttonClickListeners.push(le)},ve.prototype.removeButtonClickListener=function(le){this.buttonClickListeners.indexOf(le)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(le),1)},ve.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ve.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var le=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var oe=0;oe0&&this.buttonClickListeners.forEach(function(ce){return ce("marker",oe)}),this.markerButtonOverflowBlock.style.display="none"},ve.prototype.actionToolbarButtonClicked=function(le,oe){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ce){return ce("action",oe)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ve.prototype.setActiveButton=function(le){this.resetButtonStyles(),le.className=le.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),le.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ve.prototype.setActiveMarkerButton=function(le){var oe=this.markerButtons.find(function(ce){return ce.getAttribute("data-type-name")===le});oe&&this.setActiveButton(oe)},ve.prototype.setCurrentMarker=function(le){var oe=this;this.currentMarker=le,this.buttons.filter(function(ce){return/delete|notes/.test(ce.getAttribute("data-action"))}).forEach(function(ce){oe.currentMarker===void 0?(ce.style.fillOpacity="0.4",ce.style.pointerEvents="none"):(ce.style.fillOpacity="1",ce.style.pointerEvents="all")})},ve}(),ft=function(){function ve(le,oe,ce,de){this.panels=[],this.panelButtons=[],this.markerjsContainer=le,this.displayMode=oe,this.uiStyleSettings=ce,this.styles=de,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ve.prototype.addStyles=function(){var le;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 oe=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: `+((le=this.uiStyleSettings.toolboxBackgroundColor)!==null&&le!==void 0?le:this.uiStyleSettings.toolbarBackgroundHoverColor)+`; `)),this.toolboxButtonStyleClass=this.styles.addClass(new De("toolbox_button",` display: inline-block; width: `+(this.uiStyleSettings.toolbarHeight-2*oe)+`px; height: `+(this.uiStyleSettings.toolbarHeight-2*oe)+`px; padding: `+oe+`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 lt("."+this.toolboxButtonStyleColorsClass.name+":hover",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+` `)),this.styles.addRule(new lt("."+this.toolboxButtonStyleClass.name+" svg",` height: `+this.uiStyleSettings.toolbarHeight/2+`px; `))},ve.prototype.show=function(le){var oe;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=le,this.uiContainer.className=this.toolboxStyleClass.name+" "+((oe=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&oe!==void 0?oe:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ve.prototype.setPanelButtons=function(le){var oe,ce,de=this;this.panels=le,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((oe=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&oe!==void 0?oe:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((ce=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&ce!==void 0?ce:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(se){var Le;se.uiStyleSettings=de.uiStyleSettings;var qe=document.createElement("div");qe.className=de.toolboxButtonStyleClass.name+" "+((Le=de.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Le!==void 0?Le:de.toolboxButtonStyleColorsClass.name),qe.innerHTML=se.icon,qe.title=se.title,qe.addEventListener("click",function(){de.panelButtonClick(se)}),de.panelButtons.push(qe),de.buttonRow.appendChild(qe)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ve.prototype.panelButtonClick=function(le){var oe=this,ce=-1;if(le!==this.activePanel){ce=this.panels.indexOf(le),this.panelRow.innerHTML="";var de=le.getUi();de.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(de),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=le}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){oe.displayMode==="inline"?oe.panelRow.style.display="none":oe.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(se,Le){var qe,vt;se.className=oe.toolboxButtonStyleClass.name+" "+(Le===ce?""+((qe=oe.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&qe!==void 0?qe:oe.toolboxActiveButtonStyleColorsClass.name):""+((vt=oe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&vt!==void 0?vt:oe.toolboxButtonStyleColorsClass.name))})},ve}(),Ve=function(ve,le){this.title=ve,this.icon=le},rt=function(ve){function le(oe,ce,de,se){var Le=ve.call(this,oe,se||'')||this;return Le.colors=[],Le.addTransparent=!1,Le.colorBoxes=[],Le.colors=ce,Le.currentColor=de,Le.setCurrentColor=Le.setCurrentColor.bind(Le),Le.getColorBox=Le.getColorBox.bind(Le),Le}return We(le,ve),le.prototype.getUi=function(){var oe=this,ce=document.createElement("div");return ce.style.overflow="hidden",ce.style.whiteSpace="nowrap",this.colors.forEach(function(de){var se=oe.getColorBox(de);ce.appendChild(se),oe.colorBoxes.push(se)}),ce},le.prototype.getColorBox=function(oe){var ce=this,de=this.uiStyleSettings.toolbarHeight/4,se=this.uiStyleSettings.toolbarHeight-de,Le=document.createElement("div");Le.style.display="inline-block",Le.style.boxSizing="content-box",Le.style.width=se-2+"px",Le.style.height=se-2+"px",Le.style.padding="1px",Le.style.marginRight="2px",Le.style.marginBottom="2px",Le.style.borderWidth="2px",Le.style.borderStyle="solid",Le.style.borderRadius=(se+2)/2+"px",Le.style.borderColor=oe===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Le.addEventListener("click",function(){ce.setCurrentColor(oe,Le)});var qe=document.createElement("div");return qe.style.display="inline-block",qe.style.width=se-2+"px",qe.style.height=se-2+"px",qe.style.backgroundColor=oe,qe.style.borderRadius=se/2+"px",oe==="transparent"&&(qe.style.fill=this.uiStyleSettings.toolboxAccentColor,qe.innerHTML=` `),Le.appendChild(qe),Le},le.prototype.setCurrentColor=function(oe,ce){var de=this;this.currentColor=oe,this.colorBoxes.forEach(function(se){se.style.borderColor=se===ce?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(oe)},le}(Ve),Xe=function(){function ve(le,oe,ce){this._state="new",this._isSelected=!1,this._container=le,this._overlayContainer=oe,this.globalSettings=ce,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(le){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(le,oe){},ve.prototype.dblClick=function(le,oe){},ve.prototype.manipulate=function(le){},ve.prototype.pointerUp=function(le){this.stateChanged()},ve.prototype.dispose=function(){},ve.prototype.addMarkerVisualToContainer=function(le){this.container.childNodes.length>0?this.container.insertBefore(le,this.container.childNodes[0]):this.container.appendChild(le)},ve.prototype.getState=function(){return{typeName:ve.typeName,state:this.state,notes:this.notes}},ve.prototype.restoreState=function(le){this._state=le.state,this.notes=le.notes},ve.prototype.scale=function(le,oe){},ve.prototype.colorChanged=function(le){this.onColorChanged&&this.onColorChanged(le),this.stateChanged()},ve.prototype.fillColorChanged=function(le){this.onFillColorChanged&&this.onFillColorChanged(le),this.stateChanged()},ve.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var le=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),le.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(le)&&this.onStateChanged(this)}},ve.typeName="MarkerBase",ve}(),St=function(){function ve(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ve.prototype.findGripByVisual=function(le){return this.topLeft.ownsTarget(le)?this.topLeft:this.topCenter.ownsTarget(le)?this.topCenter:this.topRight.ownsTarget(le)?this.topRight:this.centerLeft.ownsTarget(le)?this.centerLeft:this.centerRight.ownsTarget(le)?this.centerRight:this.bottomLeft.ownsTarget(le)?this.bottomLeft:this.bottomCenter.ownsTarget(le)?this.bottomCenter:this.bottomRight.ownsTarget(le)?this.bottomRight:void 0},ve}(),Kt=function(){function ve(){this.GRIP_SIZE=10,this.visual=_e.createGroup(),this.visual.appendChild(_e.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(_e.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ve.prototype.ownsTarget=function(le){return le===this.visual||le===this.visual.childNodes[0]||le===this.visual.childNodes[1]},ve}(),Je=function(){function ve(){}return ve.toITransformMatrix=function(le){return{a:le.a,b:le.b,c:le.c,d:le.d,e:le.e,f:le.f}},ve.toSVGMatrix=function(le,oe){return le.a=oe.a,le.b=oe.b,le.c=oe.c,le.d=oe.d,le.e=oe.e,le.f=oe.f,le},ve}(),dt=function(ve){function le(oe,ce,de){var se=ve.call(this,oe,ce,de)||this;return se.left=0,se.top=0,se.width=0,se.height=0,se.defaultSize={x:50,y:20},se.offsetX=0,se.offsetY=0,se.rotationAngle=0,se.CB_DISTANCE=10,se._suppressMarkerCreateEvent=!1,se.container.transform.baseVal.appendItem(_e.createTransform()),se.setupControlBox(),se}return We(le,ve),Object.defineProperty(le.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"visual",{get:function(){return this._visual},set:function(oe){this._visual=oe;var ce=_e.createTransform();this._visual.transform.baseVal.appendItem(ce)},enumerable:!1,configurable:!0}),le.prototype.ownsTarget=function(oe){return!!ve.prototype.ownsTarget.call(this,oe)||!!(this.controlGrips.findGripByVisual(oe)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(oe))},le.prototype.pointerDown=function(oe,ce){ve.prototype.pointerDown.call(this,oe,ce),this.state==="new"&&(this.left=oe.x,this.top=oe.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var de=this.unrotatePoint(oe);if(this.manipulationStartX=de.x,this.manipulationStartY=de.y,this.offsetX=de.x-this.left,this.offsetY=de.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(ce),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ce)){this.activeGrip=this.rotatorGrip;var se=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=se.x-this.width/2,this.top=se.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Le=this.container.transform.baseVal.getItem(0);Le.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Le,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},le.prototype.pointerUp=function(oe){var ce=this.state;ve.prototype.pointerUp.call(this,oe),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(oe),this._state="select",ce==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},le.prototype.moveVisual=function(oe){this.visual.style.transform="translate("+oe.x+"px, "+oe.y+"px)"},le.prototype.manipulate=function(oe){var ce=this.unrotatePoint(oe);this.state==="creating"?this.resize(oe):this.state==="move"?(this.left=this.manipulationStartLeft+(ce.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(ce.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(ce):this.state==="rotate"&&this.rotate(oe)},le.prototype.resize=function(oe){var ce=this.manipulationStartLeft,de=this.manipulationStartWidth,se=this.manipulationStartTop,Le=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:ce=this.manipulationStartLeft+oe.x-this.manipulationStartX,de=this.manipulationStartWidth+this.manipulationStartLeft-ce;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:de=this.manipulationStartWidth+oe.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:se=this.manipulationStartTop+oe.y-this.manipulationStartY,Le=this.manipulationStartHeight+this.manipulationStartTop-se;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Le=this.manipulationStartHeight+oe.y-this.manipulationStartY}de>=0?(this.left=ce,this.width=de):(this.left=ce+de,this.width=-de),Le>=0?(this.top=se,this.height=Le):(this.top=se+Le,this.height=-Le),this.setSize()},le.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},le.prototype.rotate=function(oe){if(Math.abs(oe.x-this.centerX)>.1){var ce=Math.sign(oe.x-this.centerX);this.rotationAngle=180*Math.atan((oe.y-this.centerY)/(oe.x-this.centerX))/Math.PI+90*ce,this.applyRotation()}},le.prototype.applyRotation=function(){var oe=this.container.transform.baseVal.getItem(0);oe.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(oe,0)},le.prototype.rotatePoint=function(oe){if(this.rotationAngle===0)return oe;var ce=this.container.getCTM(),de=_e.createPoint(oe.x,oe.y);return{x:(de=de.matrixTransform(ce)).x,y:de.y}},le.prototype.unrotatePoint=function(oe){if(this.rotationAngle===0)return oe;var ce=this.container.getCTM();ce=ce.inverse();var de=_e.createPoint(oe.x,oe.y);return{x:(de=de.matrixTransform(ce)).x,y:de.y}},le.prototype.select=function(){ve.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},le.prototype.deselect=function(){ve.prototype.deselect.call(this),this.controlBox.style.display="none"},le.prototype.setupControlBox=function(){this.controlBox=_e.createGroup();var oe=_e.createTransform();oe.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(oe),this.container.appendChild(this.controlBox),this.controlRect=_e.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=_e.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 St,this.addControlGrips(),this.controlBox.style.display="none"},le.prototype.adjustControlBox=function(){var oe=this.controlBox.transform.baseVal.getItem(0);oe.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(oe,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()},le.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()},le.prototype.createGrip=function(){var oe=new Kt;return oe.visual.transform.baseVal.appendItem(_e.createTransform()),this.controlBox.appendChild(oe.visual),oe},le.prototype.positionGrips=function(){var oe=this.controlGrips.topLeft.GRIP_SIZE,ce=-oe/2,de=ce,se=(this.width+this.CB_DISTANCE)/2-oe/2,Le=(this.height+this.CB_DISTANCE)/2-oe/2,qe=this.height+this.CB_DISTANCE-oe/2,vt=this.width+this.CB_DISTANCE-oe/2;this.positionGrip(this.controlGrips.topLeft.visual,ce,de),this.positionGrip(this.controlGrips.topCenter.visual,se,de),this.positionGrip(this.controlGrips.topRight.visual,vt,de),this.positionGrip(this.controlGrips.centerLeft.visual,ce,Le),this.positionGrip(this.controlGrips.centerRight.visual,vt,Le),this.positionGrip(this.controlGrips.bottomLeft.visual,ce,qe),this.positionGrip(this.controlGrips.bottomCenter.visual,se,qe),this.positionGrip(this.controlGrips.bottomRight.visual,vt,qe),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,se,de-3*this.CB_DISTANCE)},le.prototype.positionGrip=function(oe,ce,de){var se=oe.transform.baseVal.getItem(0);se.setTranslate(ce,de),oe.transform.baseVal.replaceItem(se,0)},le.prototype.hideControlBox=function(){this.controlBox.style.display="none"},le.prototype.showControlBox=function(){this.controlBox.style.display=""},le.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Je.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Je.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ve.prototype.getState.call(this))},le.prototype.restoreState=function(oe){ve.prototype.restoreState.call(this,oe);var ce=oe;this.left=ce.left,this.top=ce.top,this.width=ce.width,this.height=ce.height,this.rotationAngle=ce.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Je.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ce.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Je.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ce.containerTransformMatrix))},le.prototype.scale=function(oe,ce){ve.prototype.scale.call(this,oe,ce);var de=this.rotatePoint({x:this.left,y:this.top}),se=this.unrotatePoint({x:de.x*oe,y:de.y*ce});this.left=se.x,this.top=se.y,this.width=this.width*oe,this.height=this.height*ce,this.adjustControlBox()},le}(Xe),Ze=function(ve){function le(oe,ce,de){var se=ve.call(this,oe,ce,de)||this;return se.fillColor="transparent",se.strokeColor="transparent",se.strokeWidth=0,se.strokeDasharray="",se.opacity=1,se.setStrokeColor=se.setStrokeColor.bind(se),se.setFillColor=se.setFillColor.bind(se),se.setStrokeWidth=se.setStrokeWidth.bind(se),se.setStrokeDasharray=se.setStrokeDasharray.bind(se),se.createVisual=se.createVisual.bind(se),se}return We(le,ve),le.prototype.ownsTarget=function(oe){return!(!ve.prototype.ownsTarget.call(this,oe)&&oe!==this.visual)},le.prototype.createVisual=function(){this.visual=_e.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)},le.prototype.pointerDown=function(oe,ce){ve.prototype.pointerDown.call(this,oe,ce),this.state==="new"&&(this.createVisual(),this.moveVisual(oe),this._state="creating")},le.prototype.manipulate=function(oe){ve.prototype.manipulate.call(this,oe)},le.prototype.resize=function(oe){ve.prototype.resize.call(this,oe),this.setSize()},le.prototype.setSize=function(){ve.prototype.setSize.call(this),_e.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},le.prototype.pointerUp=function(oe){ve.prototype.pointerUp.call(this,oe),this.setSize()},le.prototype.setStrokeColor=function(oe){this.strokeColor=oe,this.visual&&_e.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(oe),this.stateChanged()},le.prototype.setFillColor=function(oe){this.fillColor=oe,this.visual&&_e.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},le.prototype.setStrokeWidth=function(oe){this.strokeWidth=oe,this.visual&&_e.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},le.prototype.setStrokeDasharray=function(oe){this.strokeDasharray=oe,this.visual&&_e.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},le.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))},le.prototype.restoreState=function(oe){var ce=oe;this.fillColor=ce.fillColor,this.strokeColor=ce.strokeColor,this.strokeWidth=ce.strokeWidth,this.strokeDasharray=ce.strokeDasharray,this.opacity=ce.opacity,this.createVisual(),ve.prototype.restoreState.call(this,oe),this.setSize()},le.prototype.scale=function(oe,ce){ve.prototype.scale.call(this,oe,ce),this.setSize()},le.title="Rectangle marker",le}(dt),Me=function(ve){function le(oe,ce,de,se){var Le=ve.call(this,oe,se||'')||this;return Le.widths=[],Le.widthBoxes=[],Le.widths=ce,Le.currentWidth=de,Le.setCurrentWidth=Le.setCurrentWidth.bind(Le),Le}return We(le,ve),le.prototype.getUi=function(){var oe=this,ce=document.createElement("div");return ce.style.display="flex",ce.style.overflow="hidden",ce.style.flexGrow="2",this.widths.forEach(function(de){var se=document.createElement("div");se.style.display="flex",se.style.flexGrow="2",se.style.alignItems="center",se.style.justifyContent="space-between",se.style.padding="5px",se.style.borderWidth="2px",se.style.borderStyle="solid",se.style.borderColor=de===oe.currentWidth?oe.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){oe.setCurrentWidth(de,se)}),ce.appendChild(se);var Le=document.createElement("div");Le.innerText=de.toString(),Le.style.marginRight="5px",se.appendChild(Le);var qe=document.createElement("div");qe.style.minHeight="20px",qe.style.flexGrow="2",qe.style.display="flex",qe.style.alignItems="center";var vt=document.createElement("hr");vt.style.minWidth="20px",vt.style.border="0px",vt.style.borderTop=de+"px solid "+oe.uiStyleSettings.toolboxColor,vt.style.flexGrow="2",qe.appendChild(vt),se.appendChild(qe),oe.widthBoxes.push(se)}),ce},le.prototype.setCurrentWidth=function(oe,ce){var de=this;this.currentWidth=oe,this.widthBoxes.forEach(function(se){se.style.borderColor=se===ce?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},le}(Ve),ze=function(ve){function le(oe,ce,de,se){var Le=ve.call(this,oe,se||'')||this;return Le.styles=[],Le.styleBoxes=[],Le.styles=ce,Le.currentStyle=de,Le.setCurrentStyle=Le.setCurrentStyle.bind(Le),Le}return We(le,ve),le.prototype.getUi=function(){var oe=this,ce=document.createElement("div");return ce.style.display="flex",ce.style.overflow="hidden",ce.style.flexGrow="2",this.styles.forEach(function(de){var se=document.createElement("div");se.style.display="flex",se.style.alignItems="center",se.style.justifyContent="space-between",se.style.padding="5px",se.style.borderWidth="2px",se.style.borderStyle="solid",se.style.overflow="hidden",se.style.maxWidth=100/oe.styles.length-5+"%",se.style.borderColor=de===oe.currentStyle?oe.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){oe.setCurrentStyle(de,se)}),ce.appendChild(se);var Le=document.createElement("div");Le.style.minHeight="20px",Le.style.flexGrow="2",Le.style.overflow="hidden";var qe=` `;Le.innerHTML=qe,se.appendChild(Le),oe.styleBoxes.push(se)}),ce},le.prototype.setCurrentStyle=function(oe,ce){var de=this;this.currentStyle=oe,this.styleBoxes.forEach(function(se){se.style.borderColor=se===ce?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},le}(Ve),$e=function(ve){function le(oe,ce,de){var se=ve.call(this,oe,ce,de)||this;return se.strokeColor=de.defaultColor,se.strokeWidth=de.defaultStrokeWidth,se.strokeDasharray=de.defaultStrokeDasharray,se.strokePanel=new rt("Line color",de.defaultColorSet,de.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.strokeWidthPanel=new Me("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new ze("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se}return We(le,ve),Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),le.prototype.getState=function(){var oe=ve.prototype.getState.call(this);return oe.typeName=le.typeName,oe},le.typeName="FrameMarker",le.title="Frame marker",le.icon='',le}(Ze),pt=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"},Ge=function(ve){function le(oe,ce,de){var se=ve.call(this,oe,ce,de)||this;return se.x1=0,se.y1=0,se.x2=0,se.y2=0,se.defaultLength=50,se.manipulationStartX=0,se.manipulationStartY=0,se.manipulationStartX1=0,se.manipulationStartY1=0,se.manipulationStartX2=0,se.manipulationStartY2=0,se.setupControlBox(),se}return We(le,ve),le.prototype.ownsTarget=function(oe){return!!ve.prototype.ownsTarget.call(this,oe)||!(!this.grip1.ownsTarget(oe)&&!this.grip2.ownsTarget(oe))},le.prototype.pointerDown=function(oe,ce){ve.prototype.pointerDown.call(this,oe,ce),this.manipulationStartX=oe.x,this.manipulationStartY=oe.y,this.state==="new"&&(this.x1=oe.x,this.y1=oe.y,this.x2=oe.x,this.y2=oe.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(ce)?this.activeGrip=this.grip1:this.grip2.ownsTarget(ce)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},le.prototype.pointerUp=function(oe){var ce=this.state;ve.prototype.pointerUp.call(this,oe),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(oe),this._state="select",ce==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},le.prototype.adjustVisual=function(){},le.prototype.manipulate=function(oe){this.state==="creating"?this.resize(oe):this.state==="move"?(this.x1=this.manipulationStartX1+oe.x-this.manipulationStartX,this.y1=this.manipulationStartY1+oe.y-this.manipulationStartY,this.x2=this.manipulationStartX2+oe.x-this.manipulationStartX,this.y2=this.manipulationStartY2+oe.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(oe)},le.prototype.resize=function(oe){switch(this.activeGrip){case this.grip1:this.x1=oe.x,this.y1=oe.y;break;case this.grip2:case void 0:this.x2=oe.x,this.y2=oe.y}this.adjustVisual(),this.adjustControlBox()},le.prototype.select=function(){ve.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},le.prototype.deselect=function(){ve.prototype.deselect.call(this),this.controlBox.style.display="none"},le.prototype.setupControlBox=function(){this.controlBox=_e.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},le.prototype.adjustControlBox=function(){this.positionGrips()},le.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},le.prototype.createGrip=function(){var oe=new Kt;return oe.visual.transform.baseVal.appendItem(_e.createTransform()),this.controlBox.appendChild(oe.visual),oe},le.prototype.positionGrips=function(){var oe=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-oe/2,this.y1-oe/2),this.positionGrip(this.grip2.visual,this.x2-oe/2,this.y2-oe/2)},le.prototype.positionGrip=function(oe,ce,de){var se=oe.transform.baseVal.getItem(0);se.setTranslate(ce,de),oe.transform.baseVal.replaceItem(se,0)},le.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ve.prototype.getState.call(this))},le.prototype.restoreState=function(oe){ve.prototype.restoreState.call(this,oe);var ce=oe;this.x1=ce.x1,this.y1=ce.y1,this.x2=ce.x2,this.y2=ce.y2},le.prototype.scale=function(oe,ce){ve.prototype.scale.call(this,oe,ce),this.x1=this.x1*oe,this.y1=this.y1*ce,this.x2=this.x2*oe,this.y2=this.y2*ce,this.adjustVisual(),this.adjustControlBox()},le}(Xe),Lt=function(ve){function le(oe,ce,de){var se=ve.call(this,oe,ce,de)||this;return se.strokeColor="transparent",se.strokeWidth=0,se.strokeDasharray="",se.setStrokeColor=se.setStrokeColor.bind(se),se.setStrokeWidth=se.setStrokeWidth.bind(se),se.setStrokeDasharray=se.setStrokeDasharray.bind(se),se.strokeColor=de.defaultColor,se.strokeWidth=de.defaultStrokeWidth,se.strokeDasharray=de.defaultStrokeDasharray,se.strokePanel=new rt("Line color",de.defaultColorSet,de.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.strokeWidthPanel=new Me("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new ze("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se}return We(le,ve),le.prototype.ownsTarget=function(oe){return!(!ve.prototype.ownsTarget.call(this,oe)&&oe!==this.visual&&oe!==this.selectorLine&&oe!==this.visibleLine)},le.prototype.createVisual=function(){this.visual=_e.createGroup(),this.selectorLine=_e.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=_e.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)},le.prototype.pointerDown=function(oe,ce){ve.prototype.pointerDown.call(this,oe,ce),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},le.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()),_e.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),_e.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),_e.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},le.prototype.setStrokeColor=function(oe){this.strokeColor=oe,this.adjustVisual(),this.colorChanged(oe)},le.prototype.setStrokeWidth=function(oe){this.strokeWidth=oe,this.adjustVisual()},le.prototype.setStrokeDasharray=function(oe){this.strokeDasharray=oe,this.adjustVisual(),this.stateChanged()},Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),le.prototype.getState=function(){var oe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ve.prototype.getState.call(this));return oe.typeName=le.typeName,oe},le.prototype.restoreState=function(oe){ve.prototype.restoreState.call(this,oe);var ce=oe;this.strokeColor=ce.strokeColor,this.strokeWidth=ce.strokeWidth,this.strokeDasharray=ce.strokeDasharray,this.createVisual(),this.adjustVisual()},le.typeName="LineMarker",le.title="Line marker",le.icon='',le}(Ge),at=function(ve){function le(oe,ce,de,se){var Le=ve.call(this,oe,se||'')||this;return Le.fonts=[],Le.fontBoxes=[],Le.fonts=ce,Le.currentFont=de,Le.setCurrentFont=Le.setCurrentFont.bind(Le),Le}return We(le,ve),le.prototype.getUi=function(){var oe=this,ce=document.createElement("div");return ce.style.overflow="hidden",ce.style.flexGrow="2",this.fonts.forEach(function(de){var se=document.createElement("div");se.style.display="inline-block",se.style.alignItems="center",se.style.justifyContent="space-between",se.style.padding="5px",se.style.borderWidth="2px",se.style.borderStyle="solid",se.style.overflow="hidden",se.style.maxWidth=100/oe.fonts.length-5+"%",se.style.borderColor=de===oe.currentFont?oe.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){oe.setCurrentFont(de,se)}),ce.appendChild(se);var Le=document.createElement("div");Le.style.display="flex",Le.style.minHeight="20px",Le.style.flexGrow="2",Le.style.fontFamily=de,Le.style.overflow="hidden";var qe=document.createElement("div");qe.style.whiteSpace="nowrap",qe.style.overflow="hidden",qe.style.textOverflow="ellipsis",qe.innerHTML="The quick brown fox jumps over the lazy dog",Le.appendChild(qe),se.appendChild(Le),oe.fontBoxes.push(se)}),ce},le.prototype.setCurrentFont=function(oe,ce){var de=this;this.currentFont=oe,this.fontBoxes.forEach(function(se){se.style.borderColor=se===ce?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},le}(Ve),At=function(ve){function le(oe,ce,de){var se=ve.call(this,oe,ce,de)||this;return se.color="transparent",se.padding=5,se.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",se.text=se.DEFAULT_TEXT,se.isMoved=!1,se.color=de.defaultColor,se.fontFamily=de.defaultFontFamily,se.defaultSize={x:100,y:30},se.setColor=se.setColor.bind(se),se.setFont=se.setFont.bind(se),se.renderText=se.renderText.bind(se),se.sizeText=se.sizeText.bind(se),se.textEditDivClicked=se.textEditDivClicked.bind(se),se.showTextEditor=se.showTextEditor.bind(se),se.setSize=se.setSize.bind(se),se.positionTextEditor=se.positionTextEditor.bind(se),se.colorPanel=new rt("Color",de.defaultColorSet,de.defaultColor),se.colorPanel.onColorChanged=se.setColor,se.fontFamilyPanel=new at("Font",de.defaultFontFamilies,de.defaultFontFamily),se.fontFamilyPanel.onFontChanged=se.setFont,se}return We(le,ve),le.prototype.ownsTarget=function(oe){if(ve.prototype.ownsTarget.call(this,oe)||oe===this.visual||oe===this.textElement||oe===this.bgRectangle)return!0;var ce=!1;return this.textElement.childNodes.forEach(function(de){de===oe&&(ce=!0)}),ce},le.prototype.createVisual=function(){this.visual=_e.createGroup(),this.bgRectangle=_e.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=_e.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(_e.createTransform()),this.textElement.transform.baseVal.appendItem(_e.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},le.prototype.pointerDown=function(oe,ce){ve.prototype.pointerDown.call(this,oe,ce),this.isMoved=!1,this.pointerDownPoint=oe,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(oe),this._state="creating")},le.prototype.renderText=function(){var oe=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(ce){oe.textElement.appendChild(_e.createTSpan(ce.trim()===""?" ":ce.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},le.prototype.getTextScale=function(){var oe=this.textElement.getBBox(),ce=1;if(oe.width>0&&oe.height>0){var de=(1*this.width-this.width*this.padding*2/100)/oe.width,se=(1*this.height-this.height*this.padding*2/100)/oe.height;ce=Math.min(de,se)}return ce},le.prototype.getTextPosition=function(oe){var ce=this.textElement.getBBox(),de=0,se=0;return ce.width>0&&ce.height>0&&(de=(this.width-ce.width*oe)/2,se=this.height/2-ce.height*oe/2),{x:de,y:se}},le.prototype.sizeText=function(){var oe=this.textElement.getBBox(),ce=this.getTextScale(),de=this.getTextPosition(ce);de.y-=oe.y*ce,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+de.x+"px, "+de.y+"px) scale("+ce+", "+ce+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(de.x,de.y),this.textElement.transform.baseVal.getItem(1).setScale(ce,ce))},le.prototype.manipulate=function(oe){ve.prototype.manipulate.call(this,oe),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(oe.x-this.pointerDownPoint.x)>5||Math.abs(oe.y-this.pointerDownPoint.y)>5)},le.prototype.resize=function(oe){ve.prototype.resize.call(this,oe),this.isMoved=!0,this.setSize(),this.sizeText()},le.prototype.setSize=function(){ve.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(_e.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),_e.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},le.prototype.pointerUp=function(oe){var ce=this.state;ce==="creating"&&(this._suppressMarkerCreateEvent=!0),ve.prototype.pointerUp.call(this,oe),this.setSize(),(ce==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},le.prototype.showTextEditor=function(){var oe=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(ce){ce.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var ce=Number.parseFloat(oe.textEditor.style.fontSize);oe.textEditor.clientWidth>=Number.parseInt(oe.textEditor.style.maxWidth)&&ce>.9;)ce-=.1,oe.textEditor.style.fontSize=Math.max(ce,.9)+"em"}),this.textEditor.addEventListener("keyup",function(ce){ce.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(ce){if(ce.clipboardData){var de=ce.clipboardData.getData("text"),se=window.getSelection();if(!se.rangeCount)return!1;se.deleteFromDocument(),se.getRangeAt(0).insertNode(document.createTextNode(de)),ce.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){oe.textEditDivClicked(oe.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},le.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var oe=this.getTextScale(),ce=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),de=this.textElement.getBBox(),se={x:de.width*oe,y:de.height*oe};ce.x-=se.x/2,ce.y-=se.y/2,this.textEditor.style.top=ce.y+"px",this.textEditor.style.left=ce.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-ce.x+"px",this.textEditor.style.fontSize=Math.max(16*oe,12)+"px",this.textElement.style.display="none"}},le.prototype.textEditDivClicked=function(oe){this.text=oe.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},le.prototype.select=function(){ve.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},le.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ve.prototype.deselect.call(this)},le.prototype.dblClick=function(oe,ce){ve.prototype.dblClick.call(this,oe,ce),this.showTextEditor()},le.prototype.setColor=function(oe){this.textElement&&_e.setAttributes(this.textElement,[["fill",oe]]),this.color=oe,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(oe)},le.prototype.setFont=function(oe){this.textElement&&_e.setAttributes(this.textElement,[["font-family",oe]]),this.fontFamily=oe,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},le.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},le.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),le.prototype.getState=function(){var oe=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ve.prototype.getState.call(this));return oe.typeName=le.typeName,oe},le.prototype.restoreState=function(oe){var ce=oe;this.color=ce.color,this.fontFamily=ce.fontFamily,this.padding=ce.padding,this.text=ce.text,this.createVisual(),ve.prototype.restoreState.call(this,oe),this.setSize()},le.prototype.scale=function(oe,ce){ve.prototype.scale.call(this,oe,ce),this.setSize(),this.sizeText(),this.positionTextEditor()},le.typeName="TextMarker",le.title="Text marker",le.icon='',le}(dt),tt=function(ve){function le(oe,ce,de){var se=ve.call(this,oe,ce,de)||this;return se.color="transparent",se.lineWidth=3,se.drawing=!1,se.pixelRatio=1,se.color=de.defaultColor,se.lineWidth=de.defaultStrokeWidth,se.pixelRatio=de.freehandPixelRatio,se.setColor=se.setColor.bind(se),se.addCanvas=se.addCanvas.bind(se),se.finishCreation=se.finishCreation.bind(se),se.setLineWidth=se.setLineWidth.bind(se),se.colorPanel=new rt("Color",de.defaultColorSet,de.defaultColor),se.colorPanel.onColorChanged=se.setColor,se.lineWidthPanel=new Me("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),se.lineWidthPanel.onWidthChanged=se.setLineWidth,se}return We(le,ve),le.prototype.ownsTarget=function(oe){return!(!ve.prototype.ownsTarget.call(this,oe)&&oe!==this.visual&&oe!==this.drawingImage)},le.prototype.createVisual=function(){this.visual=_e.createGroup(),this.drawingImage=_e.createImage(),this.visual.appendChild(this.drawingImage);var oe=_e.createTransform();this.visual.transform.baseVal.appendItem(oe),this.addMarkerVisualToContainer(this.visual)},le.prototype.pointerDown=function(oe,ce){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(oe.x,oe.y),this.drawing=!0):ve.prototype.pointerDown.call(this,oe,ce)},le.prototype.manipulate=function(oe){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(oe.x,oe.y),this.canvasContext.stroke()):ve.prototype.manipulate.call(this,oe)},le.prototype.resize=function(oe){ve.prototype.resize.call(this,oe),_e.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),_e.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},le.prototype.pointerUp=function(oe){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ve.prototype.pointerUp.call(this,oe)},le.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)},le.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ve.prototype.select.call(this)},le.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ve.prototype.deselect.call(this)},le.prototype.finishCreation=function(){for(var oe=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),ce=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],de=ce[0],se=ce[1],Le=ce[2],qe=ce[3],vt=!1,yt=0;yt0&&(vt=!0,ytqe&&(qe=yt),_t>Le&&(Le=_t));if(vt){this.left=de/this.pixelRatio,this.top=se/this.pixelRatio,this.width=(Le-de)/this.pixelRatio,this.height=(qe-se)/this.pixelRatio;var Tt=document.createElement("canvas");Tt.width=Le-de,Tt.height=qe-se,Tt.getContext("2d").putImageData(this.canvasContext.getImageData(de,se,Le-de,qe-se),0,0),this.drawingImgUrl=Tt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},le.prototype.setDrawingImage=function(){_e.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),_e.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},le.prototype.setColor=function(oe){this.color=oe,this.colorChanged(oe)},le.prototype.setLineWidth=function(oe){this.lineWidth=oe},Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),le.prototype.getState=function(){var oe=Object.assign({drawingImgUrl:this.drawingImgUrl},ve.prototype.getState.call(this));return oe.typeName=le.typeName,oe},le.prototype.restoreState=function(oe){this.createVisual(),ve.prototype.restoreState.call(this,oe),this.drawingImgUrl=oe.drawingImgUrl,this.setDrawingImage()},le.prototype.scale=function(oe,ce){ve.prototype.scale.call(this,oe,ce),this.setDrawingImage()},le.typeName="FreehandMarker",le.title="Freehand marker",le.icon='',le}(dt),Nt=function(ve){function le(oe,ce,de){var se=ve.call(this,oe,de||'')||this;return se.typeBoxes=[],se.currentType=ce,se.setCurrentType=se.setCurrentType.bind(se),se}return We(le,ve),le.prototype.getUi=function(){var oe=this,ce=document.createElement("div");ce.style.display="flex",ce.style.overflow="hidden",ce.style.flexGrow="2";for(var de=function(qe){var vt="both";switch(qe){case 0:vt="both";break;case 1:vt="start";break;case 2:vt="end";break;case 3:vt="none"}var yt=document.createElement("div");if(yt.style.display="flex",yt.style.flexGrow="2",yt.style.alignItems="center",yt.style.justifyContent="space-between",yt.style.padding="5px",yt.style.borderWidth="2px",yt.style.borderStyle="solid",yt.style.borderColor=vt===se.currentType?se.uiStyleSettings.toolboxAccentColor:"transparent",yt.addEventListener("click",function(){oe.setCurrentType(vt,yt)}),ce.appendChild(yt),vt==="both"||vt==="start"){var _t=document.createElement("div");_t.style.display="flex",_t.style.alignItems="center",_t.style.minHeight="20px",_t.innerHTML=` `,_t.style.marginLeft="5px",yt.appendChild(_t)}var Tt=document.createElement("div");Tt.style.display="flex",Tt.style.alignItems="center",Tt.style.minHeight="20px",Tt.style.flexGrow="2";var zt=document.createElement("hr");if(zt.style.minWidth="20px",zt.style.border="0px",zt.style.borderTop="3px solid "+(se.uiStyleSettings!==void 0?se.uiStyleSettings.toolboxColor:"#eeeeee"),zt.style.flexGrow="2",Tt.appendChild(zt),yt.appendChild(Tt),vt==="both"||vt==="end"){var Yt=document.createElement("div");Yt.style.display="flex",Yt.style.alignItems="center",Yt.style.minHeight="20px",Yt.innerHTML=` `,Yt.style.marginRight="5px",yt.appendChild(Yt)}se.typeBoxes.push(yt)},se=this,Le=0;Le<4;Le++)de(Le);return ce},le.prototype.setCurrentType=function(oe,ce){var de=this;this.currentType=oe,this.typeBoxes.forEach(function(se){se.style.borderColor=se===ce?de.uiStyleSettings!==void 0?de.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},le}(Ve),tn=function(ve){function le(oe,ce,de){var se=ve.call(this,oe,ce,de)||this;return se.arrowType="end",se.arrowBaseHeight=10,se.arrowBaseWidth=10,se.getArrowPoints=se.getArrowPoints.bind(se),se.setArrowType=se.setArrowType.bind(se),se.arrowTypePanel=new Nt("Arrow type","end"),se.arrowTypePanel.onArrowTypeChanged=se.setArrowType,se}return We(le,ve),le.prototype.ownsTarget=function(oe){return!(!ve.prototype.ownsTarget.call(this,oe)&&oe!==this.arrow1&&oe!==this.arrow2)},le.prototype.getArrowPoints=function(oe,ce){var de=this.arrowBaseWidth+2*this.strokeWidth,se=this.arrowBaseHeight+2*this.strokeWidth;return oe-de/2+","+(ce+se/2)+" "+oe+","+(ce-se/2)+" "+(oe+de/2)+","+(ce+se/2)},le.prototype.createTips=function(){this.arrow1=_e.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(_e.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=_e.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(_e.createTransform()),this.visual.appendChild(this.arrow2)},le.prototype.pointerDown=function(oe,ce){ve.prototype.pointerDown.call(this,oe,ce),this.state==="creating"&&this.createTips()},le.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",_e.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),_e.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var oe=0;Math.abs(this.x1-this.x2)>.1&&(oe=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var ce=this.arrow1.transform.baseVal.getItem(0);ce.setRotate(oe,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ce,0);var de=this.arrow2.transform.baseVal.getItem(0);de.setRotate(oe+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(de,0)}},le.prototype.setArrowType=function(oe){this.arrowType=oe,this.adjustVisual(),this.stateChanged()},Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),le.prototype.getState=function(){var oe=Object.assign({arrowType:this.arrowType},ve.prototype.getState.call(this));return oe.typeName=le.typeName,oe},le.prototype.restoreState=function(oe){ve.prototype.restoreState.call(this,oe);var ce=oe;this.arrowType=ce.arrowType,this.createTips(),this.adjustVisual()},le.typeName="ArrowMarker",le.title="Arrow marker",le.icon='',le}(Lt),Xt=function(ve){function le(oe,ce,de){var se=ve.call(this,oe,ce,de)||this;return se.fillColor=de.defaultFillColor,se.strokeWidth=0,se.fillPanel=new rt("Color",de.defaultColorSet,de.defaultFillColor),se.fillPanel.onColorChanged=se.setFillColor,se}return We(le,ve),Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),le.prototype.getState=function(){var oe=ve.prototype.getState.call(this);return oe.typeName=le.typeName,oe},le.typeName="CoverMarker",le.title="Cover marker",le.icon='',le}(Ze),qt=function(ve){function le(oe,ce,de,se){var Le=ve.call(this,oe,se||'')||this;return Le.opacities=[],Le.opacityBoxes=[],Le.opacities=ce,Le.currentOpacity=de,Le.setCurrentOpacity=Le.setCurrentOpacity.bind(Le),Le}return We(le,ve),le.prototype.getUi=function(){var oe=this,ce=document.createElement("div");return ce.style.display="flex",ce.style.overflow="hidden",ce.style.flexGrow="2",ce.style.justifyContent="space-between",this.opacities.forEach(function(de){var se=document.createElement("div");se.style.display="flex",se.style.alignItems="center",se.style.justifyContent="center",se.style.padding="5px",se.style.borderWidth="2px",se.style.borderStyle="solid",se.style.borderColor=de===oe.currentOpacity?oe.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){oe.setCurrentOpacity(de,se)}),ce.appendChild(se);var Le=document.createElement("div");Le.innerText=100*de+"%",se.appendChild(Le),oe.opacityBoxes.push(se)}),ce},le.prototype.setCurrentOpacity=function(oe,ce){var de=this;this.currentOpacity=oe,this.opacityBoxes.forEach(function(se){se.style.borderColor=se===ce?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},le}(Ve),Ot=function(ve){function le(oe,ce,de){var se=ve.call(this,oe,ce,de)||this;return se.setOpacity=se.setOpacity.bind(se),se.fillColor=de.defaultHighlightColor,se.strokeWidth=0,se.opacity=de.defaultHighlightOpacity,se.fillPanel=new rt("Color",de.defaultColorSet,se.fillColor),se.fillPanel.onColorChanged=se.setFillColor,se.opacityPanel=new qt("Opacity",de.defaultOpacitySteps,se.opacity),se.opacityPanel.onOpacityChanged=se.setOpacity,se}return We(le,ve),le.prototype.setOpacity=function(oe){this.opacity=oe,this.visual&&_e.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),le.prototype.getState=function(){var oe=ve.prototype.getState.call(this);return oe.typeName=le.typeName,oe},le.typeName="HighlightMarker",le.title="Highlight marker",le.icon='',le}(Xt),He='',xe='',gt=function(ve){function le(oe,ce,de){var se=ve.call(this,oe,ce,de)||this;return se.bgColor="transparent",se.tipPosition={x:0,y:0},se.tipBase1Position={x:0,y:0},se.tipBase2Position={x:0,y:0},se.tipMoving=!1,se.color=de.defaultStrokeColor,se.bgColor=de.defaultFillColor,se.fontFamily=de.defaultFontFamily,se.defaultSize={x:100,y:30},se.setBgColor=se.setBgColor.bind(se),se.getTipPoints=se.getTipPoints.bind(se),se.positionTip=se.positionTip.bind(se),se.setTipPoints=se.setTipPoints.bind(se),se.colorPanel=new rt("Text color",de.defaultColorSet,se.color,He),se.colorPanel.onColorChanged=se.setColor,se.bgColorPanel=new rt("Fill color",de.defaultColorSet,se.bgColor,xe),se.bgColorPanel.onColorChanged=se.setBgColor,se.fontFamilyPanel=new at("Font",de.defaultFontFamilies,de.defaultFontFamily),se.fontFamilyPanel.onFontChanged=se.setFont,se.tipGrip=new Kt,se.tipGrip.visual.transform.baseVal.appendItem(_e.createTransform()),se.controlBox.appendChild(se.tipGrip.visual),se}return We(le,ve),le.prototype.ownsTarget=function(oe){return ve.prototype.ownsTarget.call(this,oe)||this.tipGrip.ownsTarget(oe)||this.tip===oe},le.prototype.createTip=function(){_e.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=_e.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},le.prototype.pointerDown=function(oe,ce){this.state==="new"&&ve.prototype.pointerDown.call(this,oe,ce),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ce)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ve.prototype.pointerDown.call(this,oe,ce)},le.prototype.pointerUp=function(oe){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ve.prototype.pointerUp.call(this,oe);else{var ce=this.state==="creating";ve.prototype.pointerUp.call(this,oe),this.setTipPoints(ce),this.positionTip()}},le.prototype.manipulate=function(oe){if(this.tipMoving){var ce=this.unrotatePoint(oe);this.tipPosition={x:ce.x-this.manipulationStartLeft,y:ce.y-this.manipulationStartTop},this.positionTip()}else ve.prototype.manipulate.call(this,oe)},le.prototype.setBgColor=function(oe){this.bgRectangle&&this.tip&&(_e.setAttributes(this.bgRectangle,[["fill",oe]]),_e.setAttributes(this.tip,[["fill",oe]])),this.bgColor=oe,this.fillColorChanged(oe)},le.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},le.prototype.setTipPoints=function(oe){oe===void 0&&(oe=!1);var ce=Math.min(this.height/2,15),de=this.height/5;oe&&(this.tipPosition={x:ce+de/2,y:this.height+20});var se=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?se.1)){var oe=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ce=this.tip1.transform.baseVal.getItem(0);ce.setRotate(oe,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ce,0);var de=this.tip2.transform.baseVal.getItem(0);de.setRotate(oe+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(de,0)}},Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),le.prototype.getState=function(){var oe=ve.prototype.getState.call(this);return oe.typeName=le.typeName,oe},le.prototype.restoreState=function(oe){ve.prototype.restoreState.call(this,oe),this.createTips(),this.adjustVisual()},le.typeName="MeasurementMarker",le.title="Measurement marker",le.icon='',le}(Lt),Qe=function(ve){function le(oe,ce,de){var se=ve.call(this,oe,ce,de)||this;return se.strokePanel.colors=de.defaultColorSet,se.fillColor="transparent",se}return We(le,ve),Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),le.prototype.getState=function(){var oe=ve.prototype.getState.call(this);return oe.typeName=le.typeName,oe},le.typeName="EllipseFrameMarker",le.title="Ellipse frame marker",le.icon='',le}(nn),Ue=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(le){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(le)||(this.undoStack.push(le),JSON.stringify(this.lastRedoStep)!==JSON.stringify(le)&&this.redoStack.splice(0,this.redoStack.length))},ve.prototype.replaceLastUndoStep=function(le){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=le)},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 le=this.undoStack.pop();return le!==void 0&&this.redoStack.push(le),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}(),kt=function(ve){function le(oe,ce,de){var se=ve.call(this,oe,ce,de)||this;return se.strokeColor="transparent",se.strokeWidth=0,se.strokeDasharray="",se.curveX=0,se.curveY=0,se.manipulationStartCurveX=0,se.manipulationStartCurveY=0,se.setStrokeColor=se.setStrokeColor.bind(se),se.setStrokeWidth=se.setStrokeWidth.bind(se),se.setStrokeDasharray=se.setStrokeDasharray.bind(se),se.positionGrips=se.positionGrips.bind(se),se.addControlGrips=se.addControlGrips.bind(se),se.adjustVisual=se.adjustVisual.bind(se),se.setupControlBox=se.setupControlBox.bind(se),se.resize=se.resize.bind(se),se.strokeColor=de.defaultColor,se.strokeWidth=de.defaultStrokeWidth,se.strokeDasharray=de.defaultStrokeDasharray,se.strokePanel=new rt("Line color",de.defaultColorSet,de.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.strokeWidthPanel=new Me("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new ze("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se}return We(le,ve),le.prototype.ownsTarget=function(oe){return!(!ve.prototype.ownsTarget.call(this,oe)&&oe!==this.visual&&oe!==this.selectorCurve&&oe!==this.visibleCurve&&!this.curveGrip.ownsTarget(oe))},le.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},le.prototype.createVisual=function(){this.visual=_e.createGroup(),this.selectorCurve=_e.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=_e.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)},le.prototype.pointerDown=function(oe,ce){ve.prototype.pointerDown.call(this,oe,ce),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=oe.x,this.curveY=oe.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(ce)&&(this.activeGrip=this.curveGrip,this._state="resize")},le.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),_e.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),_e.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),_e.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},le.prototype.setupControlBox=function(){ve.prototype.setupControlBox.call(this),this.curveControlLine1=_e.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=_e.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)},le.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ve.prototype.addControlGrips.call(this)},le.prototype.positionGrips=function(){ve.prototype.positionGrips.call(this);var oe=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-oe/2,this.curveY-oe/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()))},le.prototype.manipulate=function(oe){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+oe.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+oe.y-this.manipulationStartY),ve.prototype.manipulate.call(this,oe)},le.prototype.resize=function(oe){this.activeGrip===this.curveGrip&&(this.curveX=oe.x,this.curveY=oe.y),ve.prototype.resize.call(this,oe),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},le.prototype.setStrokeColor=function(oe){this.strokeColor=oe,this.adjustVisual(),this.colorChanged(oe)},le.prototype.setStrokeWidth=function(oe){this.strokeWidth=oe,this.adjustVisual()},le.prototype.setStrokeDasharray=function(oe){this.strokeDasharray=oe,this.adjustVisual()},le.prototype.scale=function(oe,ce){this.curveX=this.curveX*oe,this.curveY=this.curveY*ce,ve.prototype.scale.call(this,oe,ce)},Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),le.prototype.getState=function(){var oe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ve.prototype.getState.call(this));return oe.typeName=le.typeName,oe},le.prototype.restoreState=function(oe){ve.prototype.restoreState.call(this,oe);var ce=oe;this.strokeColor=ce.strokeColor,this.strokeWidth=ce.strokeWidth,this.strokeDasharray=ce.strokeDasharray,this.curveX=ce.curveX,this.curveY=ce.curveY,this.createVisual(),this.adjustVisual()},le.typeName="CurveMarker",le.title="Curve marker",le.icon='',le}(Ge),dn=function(ve){function le(oe,ce,de){var se=ve.call(this,oe,ce,de)||this;return se.fillColor="transparent",se.strokeColor="transparent",se.strokeWidth=0,se.strokeDasharray="",se.textColor="transparent",se.fontSize="1rem",se.isMoved=!1,se.captionText="Caption",se.PADDING=5,se.captionBoxWidth=0,se.captionBoxHeight=0,se.strokeColor=de.defaultColor,se.strokeWidth=de.defaultStrokeWidth,se.strokeDasharray=de.defaultStrokeDasharray,se.fillColor=de.defaultFillColor,se.textColor=de.defaultStrokeColor,se.fontFamily=de.defaultFontFamily,se.fontSize=de.defaultCaptionFontSize,se.captionText=de.defaultCaptionText,se.setStrokeColor=se.setStrokeColor.bind(se),se.setFillColor=se.setFillColor.bind(se),se.setStrokeWidth=se.setStrokeWidth.bind(se),se.setStrokeDasharray=se.setStrokeDasharray.bind(se),se.createVisual=se.createVisual.bind(se),se.sizeCaption=se.sizeCaption.bind(se),se.setCaptionText=se.setCaptionText.bind(se),se.showTextEditor=se.showTextEditor.bind(se),se.positionTextEditor=se.positionTextEditor.bind(se),se.finishTextEditing=se.finishTextEditing.bind(se),se.setFont=se.setFont.bind(se),se.setTextColor=se.setTextColor.bind(se),se.strokePanel=new rt("Line color",be(de.defaultColorSet,["transparent"]),se.strokeColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.fillPanel=new rt("Fill color",be(de.defaultColorSet,["transparent"]),se.fillColor,xe),se.fillPanel.onColorChanged=se.setFillColor,se.strokeWidthPanel=new Me("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new ze("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se.fontFamilyPanel=new at("Font",de.defaultFontFamilies,de.defaultFontFamily),se.fontFamilyPanel.onFontChanged=se.setFont,se.textColorPanel=new rt("Text color",de.defaultColorSet,se.textColor,He),se.textColorPanel.onColorChanged=se.setTextColor,se}return We(le,ve),le.prototype.ownsTarget=function(oe){return!(!ve.prototype.ownsTarget.call(this,oe)&&oe!==this.visual&&oe!==this.frame&&oe!==this.captionBg&&oe!==this.captionElement)},le.prototype.createVisual=function(){this.visual=_e.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=_e.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=_e.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=_e.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()},le.prototype.setCaptionText=function(oe){this.captionText=oe,this.captionElement.textContent=this.captionText,this.sizeCaption()},le.prototype.pointerDown=function(oe,ce){ve.prototype.pointerDown.call(this,oe,ce),this.isMoved=!1,this.pointerDownPoint=oe,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(oe),this._state="creating")},le.prototype.manipulate=function(oe){ve.prototype.manipulate.call(this,oe),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(oe.x-this.pointerDownPoint.x)>5||Math.abs(oe.y-this.pointerDownPoint.y)>5)},le.prototype.resize=function(oe){ve.prototype.resize.call(this,oe),this.setSize()},le.prototype.sizeCaption=function(){var oe=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=oe.width+2*this.PADDING,this.captionBoxHeight=oe.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),_e.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')"]]),_e.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')"]])},le.prototype.showTextEditor=function(){var oe=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(ce){ce.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(ce){ce.key==="Enter"&&oe.finishTextEditing(oe.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(ce){ce.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){oe.finishTextEditing(oe.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){oe.finishTextEditing(oe.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},le.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"))},le.prototype.finishTextEditing=function(oe){this.setCaptionText(oe.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},le.prototype.setFont=function(oe){this.captionElement&&_e.setAttributes(this.captionElement,[["font-family",oe]]),this.fontFamily=oe,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},le.prototype.setTextColor=function(oe){this.captionElement&&_e.setAttributes(this.captionElement,[["fill",oe]]),this.textColor=oe,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},le.prototype.setSize=function(){ve.prototype.setSize.call(this),_e.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},le.prototype.pointerUp=function(oe){ve.prototype.pointerUp.call(this,oe),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},le.prototype.dblClick=function(oe,ce){ve.prototype.dblClick.call(this,oe,ce),this.showTextEditor()},le.prototype.setStrokeColor=function(oe){this.strokeColor=oe,this.frame&&_e.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(oe),this.stateChanged()},le.prototype.setFillColor=function(oe){this.fillColor=oe,this.captionBg&&_e.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(oe),this.stateChanged()},le.prototype.setStrokeWidth=function(oe){this.strokeWidth=oe,this.frame&&_e.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},le.prototype.setStrokeDasharray=function(oe){this.strokeDasharray=oe,this.frame&&_e.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),le.prototype.getState=function(){var oe=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 oe.typeName=this.typeName,oe},le.prototype.restoreState=function(oe){var ce=oe;this.fillColor=ce.fillColor,this.strokeColor=ce.strokeColor,this.strokeWidth=ce.strokeWidth,this.strokeDasharray=ce.strokeDasharray,this.textColor=ce.textColor,this.fontFamily=ce.fontFamily,this.captionText=ce.captionText,this.fontSize=ce.fontSize,this.createVisual(),ve.prototype.restoreState.call(this,oe),this.setSize()},le.prototype.scale=function(oe,ce){ve.prototype.scale.call(this,oe,ce),this.setSize()},le.typeName="CaptionFrameMarker",le.title="Caption frame marker",le.icon='',le}(dt),Et=function(){function ve(le,oe){oe===void 0&&(oe=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=le,this.cancelable=oe}return Object.defineProperty(ve.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ve.prototype.preventDefault=function(){this._defaultPrevented=!0},ve}(),$t=function(ve){function le(oe,ce,de){var se=ve.call(this,oe,!1)||this;return se.dataUrl=ce,se.state=de,se}return We(le,ve),le}(Et),wt=function(ve){function le(oe,ce,de){de===void 0&&(de=!1);var se=ve.call(this,oe,de)||this;return se.marker=ce,se}return We(le,ve),le}(Et),Dt=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(le,oe){this[le].push(oe)},ve.prototype.removeEventListener=function(le,oe){var ce=this[le].indexOf(oe);ce>-1&&this[le].splice(ce,1)},ve}(),Pt=function(){function ve(le){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new pt,this._isOpen=!1,this.undoRedoManager=new Ue,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 Dt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ve.instanceCounter++,this.styles=new Fe(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=le,this.targetRoot=document.body,this.width=le.clientWidth,this.height=le.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[$e,tt,tn,At,Qe,nn,Ot,gt,Vt,Xt,Lt,kt,dn]},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[$e,tt,tn,At,nn,Ot,gt]},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"BASIC_MARKER_TYPES",{get:function(){return[$e,tt,tn,At,Ot]},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(le){var oe=this;this._availableMarkerTypes.splice(0),le.forEach(function(ce){if(typeof ce=="string"){var de=oe.ALL_MARKER_TYPES.find(function(se){return se.typeName===ce});de!==void 0&&oe._availableMarkerTypes.push(de)}else oe._availableMarkerTypes.push(ce)})},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(le){this._zoomLevel=le,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(),Re.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ve.prototype.show=function(){var le=this;this.styles.styleSheetRoot===void 0&&Ee.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ee.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(oe){return oe(new Et(le))})},ve.prototype.render=function(){return Te(this,void 0,void 0,function(){var le;return it(this,function(oe){switch(oe.label){case 0:return this.setCurrentMarker(),(le=new Ce).naturalSize=this.renderAtNaturalSize,le.imageType=this.renderImageType,le.imageQuality=this.renderImageQuality,le.markersOnly=this.renderMarkersOnly,le.width=this.renderWidth,le.height=this.renderHeight,[4,le.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return oe.sent(),[4,le.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,oe.sent()]}})})},ve.prototype.close=function(le){var oe=this;if(le===void 0&&(le=!1),this.isOpen){var ce=!1;le||this.eventListeners.beforeclose.forEach(function(de){var se=new Et(oe,!0);de(se),se.defaultPrevented&&(ce=!0)}),ce||(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(de){return de(new Et(oe))}),this.detachEvents(),this._isOpen=!1)}},ve.prototype.addMarkersToToolbar=function(){for(var le,oe=[],ce=0;cethis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*le:this.editorCanvas.clientWidth,ce=oe',le.title="Powered by marker.js",le.style.display="grid",le.style.alignItems="center",le.style.justifyItems="center",le.style.padding="3px",le.style.width="20px",le.style.height="20px",this.logoUI.appendChild(le),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 le=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=le+"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 Ke(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-1&&this.markers.splice(this.markers.indexOf(le),1),le.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(le,oe){if(le==="marker"&&oe!==void 0)this.createNewMarker(oe);else if(le==="action")switch(oe){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 le=this;if(this._currentMarker!==void 0){var oe=!1;if(this.eventListeners.markerbeforedelete.forEach(function(de){var se=new wt(le,le._currentMarker,!0);de(se),se.defaultPrevented&&(oe=!0)}),!oe){var ce=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(de){return de(new wt(le,ce))})}}},ve.prototype.clear=function(){var le=this,oe=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Le){var qe=new wt(le,void 0,!0);Le(qe),qe.defaultPrevented&&(oe=!0)}),!oe)){this.setCurrentMarker();for(var ce=function(Le){var qe=de.markers[Le];de.setCurrentMarker(de.markers[Le]),de._currentMarker.dispose(),de.markerImage.removeChild(de._currentMarker.container),de.markers.splice(de.markers.indexOf(de._currentMarker),1),de.eventListeners.markerdelete.forEach(function(vt){return vt(new wt(le,qe))})},de=this,se=this.markers.length-1;se>=0;se--)ce(se);this.addUndoStep()}},Object.defineProperty(ve.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ve.prototype.showNotesEditor=function(){var le;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=(le=this._currentMarker.notes)!==null&&le!==void 0?le:"",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 le=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var oe=this.getState(),ce=this.undoRedoManager.getLastUndoStep();if(!ce||ce.width===oe.width&&ce.height===oe.height){var de=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(oe),de1&&this.panTo({x:le.clientX,y:le.clientY}))},ve.prototype.onPointerUp=function(le){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(le.clientX,le.clientY)),this.isDragging=!1,this.addUndoStep()},ve.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ve.prototype.onKeyUp=function(le){this._currentMarker===void 0||this.notesArea!==void 0||le.key!=="Delete"&&le.key!=="Backspace"||this.deleteSelectedMarker()},ve.prototype.clientToLocalCoordinates=function(le,oe){var ce=this.markerImage.getBoundingClientRect();return{x:(le-ce.left)/this.zoomLevel,y:(oe-ce.top)/this.zoomLevel}},ve.prototype.onWindowResize=function(){this.positionUI()},ve.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var le=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=le+"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(le){Re.addKey(le)},ve.prototype.addEventListener=function(le,oe){this.eventListeners.addEventListener(le,oe)},ve.prototype.removeEventListener=function(le,oe){this.eventListeners.removeEventListener(le,oe)},ve.prototype.renderState=function(le){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(le),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ve.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ve.prototype.focus=function(){var le=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(oe){return oe(new Et(le))}))},ve.prototype.blur=function(){var le=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(oe){return oe(new Et(le))}))},ve.instanceCounter=0,ve}()},5630:function(fn,Jt,fe){"use strict";var ye=fe(60499),We=fe(85899),Te=fe(18642),it=fe(72190),be=fe(42244),_e=fe(92310),Re=fe.n(_e),Ce=fe(18929),Ee=fe(59301),Fe=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],lt=(0,Ee.forwardRef)(function(De,Ke){var ft,Ve=De.prefixCls,rt=Ve===void 0?"rc-checkbox":Ve,Xe=De.className,St=De.style,Kt=De.checked,Je=De.disabled,dt=De.defaultChecked,Ze=dt===void 0?!1:dt,Me=De.type,ze=Me===void 0?"checkbox":Me,$e=De.title,pt=De.onChange,Ge=(0,be.Z)(De,Fe),Lt=(0,Ee.useRef)(null),at=(0,Ce.Z)(Ze,{value:Kt}),At=(0,it.Z)(at,2),tt=At[0],Nt=At[1];(0,Ee.useImperativeHandle)(Ke,function(){return{focus:function(){var Ot;(Ot=Lt.current)===null||Ot===void 0||Ot.focus()},blur:function(){var Ot;(Ot=Lt.current)===null||Ot===void 0||Ot.blur()},input:Lt.current}});var tn=Re()(rt,Xe,(ft={},(0,Te.Z)(ft,"".concat(rt,"-checked"),tt),(0,Te.Z)(ft,"".concat(rt,"-disabled"),Je),ft)),Xt=function(Ot){Je||("checked"in De||Nt(Ot.target.checked),pt==null||pt({target:(0,We.Z)((0,We.Z)({},De),{},{type:ze,checked:Ot.target.checked}),stopPropagation:function(){Ot.stopPropagation()},preventDefault:function(){Ot.preventDefault()},nativeEvent:Ot.nativeEvent}))};return Ee.createElement("span",{className:tn,title:$e,style:St},Ee.createElement("input",(0,ye.Z)({},Ge,{className:"".concat(rt,"-input"),ref:Lt,onChange:Xt,disabled:Je,checked:!!tt,type:ze})),Ee.createElement("span",{className:"".concat(rt,"-inner")}))});Jt.Z=lt},31561:function(fn,Jt,fe){"use strict";fe.d(Jt,{Z:function(){return ze}});var ye=fe(60499),We=fe(18642),Te=fe(72190),it=fe(42244),be=fe(35593),_e=fe(92310),Re=fe.n(_e),Ce=fe(8654),Ee=fe(59301),Fe=fe(10228),lt=fe(16089),De=Fe.Z.ESC,Ke=Fe.Z.TAB;function ft($e){var pt=$e.visible,Ge=$e.triggerRef,Lt=$e.onVisibleChange,at=$e.autoFocus,At=$e.overlayRef,tt=Ee.useRef(!1),Nt=function(){if(pt){var Ot,He;(Ot=Ge.current)===null||Ot===void 0||(He=Ot.focus)===null||He===void 0||He.call(Ot),Lt==null||Lt(!1)}},tn=function(){var Ot;return(Ot=At.current)!==null&&Ot!==void 0&&Ot.focus?(At.current.focus(),tt.current=!0,!0):!1},Xt=function(Ot){switch(Ot.keyCode){case De:Nt();break;case Ke:{var He=!1;tt.current||(He=tn()),He?Ot.preventDefault():Nt();break}}};Ee.useEffect(function(){return pt?(window.addEventListener("keydown",Xt),at&&(0,lt.Z)(tn,3),function(){window.removeEventListener("keydown",Xt),tt.current=!1}):function(){tt.current=!1}},[pt])}var Ve=(0,Ee.forwardRef)(function($e,pt){var Ge=$e.overlay,Lt=$e.arrow,at=$e.prefixCls,At=(0,Ee.useMemo)(function(){var Nt;return typeof Ge=="function"?Nt=Ge():Nt=Ge,Nt},[Ge]),tt=(0,Ce.sQ)(pt,At==null?void 0:At.ref);return Ee.createElement(Ee.Fragment,null,Lt&&Ee.createElement("div",{className:"".concat(at,"-arrow")}),Ee.cloneElement(At,{ref:(0,Ce.Yr)(At)?tt:void 0}))}),rt=Ve,Xe={adjustX:1,adjustY:1},St=[0,0],Kt={topLeft:{points:["bl","tl"],overflow:Xe,offset:[0,-4],targetOffset:St},top:{points:["bc","tc"],overflow:Xe,offset:[0,-4],targetOffset:St},topRight:{points:["br","tr"],overflow:Xe,offset:[0,-4],targetOffset:St},bottomLeft:{points:["tl","bl"],overflow:Xe,offset:[0,4],targetOffset:St},bottom:{points:["tc","bc"],overflow:Xe,offset:[0,4],targetOffset:St},bottomRight:{points:["tr","br"],overflow:Xe,offset:[0,4],targetOffset:St}},Je=Kt,dt=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Ze($e,pt){var Ge,Lt=$e.arrow,at=Lt===void 0?!1:Lt,At=$e.prefixCls,tt=At===void 0?"rc-dropdown":At,Nt=$e.transitionName,tn=$e.animation,Xt=$e.align,qt=$e.placement,Ot=qt===void 0?"bottomLeft":qt,He=$e.placements,xe=He===void 0?Je:He,gt=$e.getPopupContainer,nn=$e.showAction,Vt=$e.hideAction,Qe=$e.overlayClassName,Ue=$e.overlayStyle,kt=$e.visible,dn=$e.trigger,Et=dn===void 0?["hover"]:dn,$t=$e.autoFocus,wt=$e.overlay,Dt=$e.children,Pt=$e.onVisibleChange,ve=(0,it.Z)($e,dt),le=Ee.useState(),oe=(0,Te.Z)(le,2),ce=oe[0],de=oe[1],se="visible"in $e?kt:ce,Le=Ee.useRef(null),qe=Ee.useRef(null),vt=Ee.useRef(null);Ee.useImperativeHandle(pt,function(){return Le.current});var yt=function(nt){de(nt),Pt==null||Pt(nt)};ft({visible:se,triggerRef:vt,onVisibleChange:yt,autoFocus:$t,overlayRef:qe});var _t=function(nt){var mt=$e.onOverlayClick;de(!1),mt&&mt(nt)},Tt=function(){return Ee.createElement(rt,{ref:qe,overlay:wt,prefixCls:tt,arrow:at})},zt=function(){return typeof wt=="function"?Tt:Tt()},Yt=function(){var nt=$e.minOverlayWidthMatchTrigger,mt=$e.alignPoint;return"minOverlayWidthMatchTrigger"in $e?nt:!mt},on=function(){var nt=$e.openClassName;return nt!==void 0?nt:"".concat(tt,"-open")},ot=Ee.cloneElement(Dt,{className:Re()((Ge=Dt.props)===null||Ge===void 0?void 0:Ge.className,se&&on()),ref:(0,Ce.Yr)(Dt)?(0,Ce.sQ)(vt,Dt.ref):void 0}),Ut=Vt;return!Ut&&Et.indexOf("contextMenu")!==-1&&(Ut=["click"]),Ee.createElement(be.Z,(0,ye.Z)({builtinPlacements:xe},ve,{prefixCls:tt,ref:Le,popupClassName:Re()(Qe,(0,We.Z)({},"".concat(tt,"-show-arrow"),at)),popupStyle:Ue,action:Et,showAction:nn,hideAction:Ut,popupPlacement:Ot,popupAlign:Xt,popupTransitionName:Nt,popupAnimation:tn,popupVisible:se,stretch:Yt()?"minWidth":"",popup:zt(),onPopupVisibleChange:yt,onPopupClick:_t,getPopupContainer:gt}),ot)}var Me=Ee.forwardRef(Ze),ze=Me},93681:function(fn,Jt,fe){"use strict";fe.r(Jt),fe.d(Jt,{BaseInput:function(){return Fe},default:function(){return Kt}});var ye=fe(60499),We=fe(85899),Te=fe(18642),it=fe(43749),be=fe(92310),_e=fe.n(be),Re=fe(59301),Ce=fe(5643),Ee=function(dt){var Ze,Me,ze=dt.inputElement,$e=dt.prefixCls,pt=dt.prefix,Ge=dt.suffix,Lt=dt.addonBefore,at=dt.addonAfter,At=dt.className,tt=dt.style,Nt=dt.disabled,tn=dt.readOnly,Xt=dt.focused,qt=dt.triggerFocus,Ot=dt.allowClear,He=dt.value,xe=dt.handleReset,gt=dt.hidden,nn=dt.classes,Vt=dt.classNames,Qe=dt.dataAttrs,Ue=dt.styles,kt=dt.components,dn=(kt==null?void 0:kt.affixWrapper)||"span",Et=(kt==null?void 0:kt.groupWrapper)||"span",$t=(kt==null?void 0:kt.wrapper)||"span",wt=(kt==null?void 0:kt.groupAddon)||"span",Dt=(0,Re.useRef)(null),Pt=function(Tt){var zt;(zt=Dt.current)!==null&&zt!==void 0&&zt.contains(Tt.target)&&(qt==null||qt())},ve=function(){var Tt;if(!Ot)return null;var zt=!Nt&&!tn&&He,Yt="".concat($e,"-clear-icon"),on=(0,it.Z)(Ot)==="object"&&Ot!==null&&Ot!==void 0&&Ot.clearIcon?Ot.clearIcon:"\u2716";return Re.createElement("span",{onClick:xe,onMouseDown:function(Ut){return Ut.preventDefault()},className:_e()(Yt,(Tt={},(0,Te.Z)(Tt,"".concat(Yt,"-hidden"),!zt),(0,Te.Z)(Tt,"".concat(Yt,"-has-suffix"),!!Ge),Tt)),role:"button",tabIndex:-1},on)},le=(0,Re.cloneElement)(ze,{value:He,hidden:gt,className:_e()((Ze=ze.props)===null||Ze===void 0?void 0:Ze.className,!(0,Ce.X3)(dt)&&!(0,Ce.He)(dt)&&At)||null,style:(0,We.Z)((0,We.Z)({},(Me=ze.props)===null||Me===void 0?void 0:Me.style),!(0,Ce.X3)(dt)&&!(0,Ce.He)(dt)?tt:{})});if((0,Ce.X3)(dt)){var oe,ce="".concat($e,"-affix-wrapper"),de=_e()(ce,(oe={},(0,Te.Z)(oe,"".concat(ce,"-disabled"),Nt),(0,Te.Z)(oe,"".concat(ce,"-focused"),Xt),(0,Te.Z)(oe,"".concat(ce,"-readonly"),tn),(0,Te.Z)(oe,"".concat(ce,"-input-with-clear-btn"),Ge&&Ot&&He),oe),!(0,Ce.He)(dt)&&At,nn==null?void 0:nn.affixWrapper,Vt==null?void 0:Vt.affixWrapper),se=(Ge||Ot)&&Re.createElement("span",{className:_e()("".concat($e,"-suffix"),Vt==null?void 0:Vt.suffix),style:Ue==null?void 0:Ue.suffix},ve(),Ge);le=Re.createElement(dn,(0,ye.Z)({className:de,style:(0,We.Z)((0,We.Z)({},(0,Ce.He)(dt)?void 0:tt),Ue==null?void 0:Ue.affixWrapper),hidden:!(0,Ce.He)(dt)&>,onClick:Pt},Qe==null?void 0:Qe.affixWrapper,{ref:Dt}),pt&&Re.createElement("span",{className:_e()("".concat($e,"-prefix"),Vt==null?void 0:Vt.prefix),style:Ue==null?void 0:Ue.prefix},pt),(0,Re.cloneElement)(ze,{value:He,hidden:null}),se)}if((0,Ce.He)(dt)){var Le="".concat($e,"-group"),qe="".concat(Le,"-addon"),vt=_e()("".concat($e,"-wrapper"),Le,nn==null?void 0:nn.wrapper),yt=_e()("".concat($e,"-group-wrapper"),At,nn==null?void 0:nn.group);return Re.createElement(Et,{className:yt,style:tt,hidden:gt},Re.createElement($t,{className:vt},Lt&&Re.createElement(wt,{className:qe},Lt),(0,Re.cloneElement)(le,{hidden:null}),at&&Re.createElement(wt,{className:qe},at)))}return le},Fe=Ee,lt=fe(77654),De=fe(72190),Ke=fe(42244),ft=fe(18929),Ve=fe(2738),rt=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],Xe=(0,Re.forwardRef)(function(Je,dt){var Ze=Je.autoComplete,Me=Je.onChange,ze=Je.onFocus,$e=Je.onBlur,pt=Je.onPressEnter,Ge=Je.onKeyDown,Lt=Je.prefixCls,at=Lt===void 0?"rc-input":Lt,At=Je.disabled,tt=Je.htmlSize,Nt=Je.className,tn=Je.maxLength,Xt=Je.suffix,qt=Je.showCount,Ot=Je.type,He=Ot===void 0?"text":Ot,xe=Je.classes,gt=Je.classNames,nn=Je.styles,Vt=(0,Ke.Z)(Je,rt),Qe=(0,ft.Z)(Je.defaultValue,{value:Je.value}),Ue=(0,De.Z)(Qe,2),kt=Ue[0],dn=Ue[1],Et=(0,Re.useState)(!1),$t=(0,De.Z)(Et,2),wt=$t[0],Dt=$t[1],Pt=(0,Re.useRef)(null),ve=function(yt){Pt.current&&(0,Ce.nH)(Pt.current,yt)};(0,Re.useImperativeHandle)(dt,function(){return{focus:ve,blur:function(){var yt;(yt=Pt.current)===null||yt===void 0||yt.blur()},setSelectionRange:function(yt,_t,Tt){var zt;(zt=Pt.current)===null||zt===void 0||zt.setSelectionRange(yt,_t,Tt)},select:function(){var yt;(yt=Pt.current)===null||yt===void 0||yt.select()},input:Pt.current}}),(0,Re.useEffect)(function(){Dt(function(vt){return vt&&At?!1:vt})},[At]);var le=function(yt){Je.value===void 0&&dn(yt.target.value),Pt.current&&(0,Ce.rJ)(Pt.current,yt,Me)},oe=function(yt){pt&&yt.key==="Enter"&&pt(yt),Ge==null||Ge(yt)},ce=function(yt){Dt(!0),ze==null||ze(yt)},de=function(yt){Dt(!1),$e==null||$e(yt)},se=function(yt){dn(""),ve(),Pt.current&&(0,Ce.rJ)(Pt.current,yt,Me)},Le=function(){var yt=(0,Ve.Z)(Je,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return Re.createElement("input",(0,ye.Z)({autoComplete:Ze},yt,{onChange:le,onFocus:ce,onBlur:de,onKeyDown:oe,className:_e()(at,(0,Te.Z)({},"".concat(at,"-disabled"),At),gt==null?void 0:gt.input),style:nn==null?void 0:nn.input,ref:Pt,size:tt,type:He}))},qe=function(){var yt=Number(tn)>0;if(Xt||qt){var _t=(0,Ce.D7)(kt),Tt=(0,lt.Z)(_t).length,zt=(0,it.Z)(qt)==="object"?qt.formatter({value:_t,count:Tt,maxLength:tn}):"".concat(Tt).concat(yt?" / ".concat(tn):"");return Re.createElement(Re.Fragment,null,!!qt&&Re.createElement("span",{className:_e()("".concat(at,"-show-count-suffix"),(0,Te.Z)({},"".concat(at,"-show-count-has-suffix"),!!Xt),gt==null?void 0:gt.count),style:(0,We.Z)({},nn==null?void 0:nn.count)},zt),Xt)}return null};return Re.createElement(Fe,(0,ye.Z)({},Vt,{prefixCls:at,className:Nt,inputElement:Le(),handleReset:se,value:(0,Ce.D7)(kt),focused:wt,triggerFocus:ve,suffix:qe(),disabled:At,classes:xe,classNames:gt,styles:nn}))}),St=Xe,Kt=St},5643:function(fn,Jt,fe){"use strict";fe.d(Jt,{D7:function(){return be},He:function(){return ye},X3:function(){return We},nH:function(){return it},rJ:function(){return Te}});function ye(_e){return!!(_e.addonBefore||_e.addonAfter)}function We(_e){return!!(_e.prefix||_e.suffix||_e.allowClear)}function Te(_e,Re,Ce,Ee){if(Ce){var Fe=Re;if(Re.type==="click"){var lt=_e.cloneNode(!0);Fe=Object.create(Re,{target:{value:lt},currentTarget:{value:lt}}),lt.value="",Ce(Fe);return}if(Ee!==void 0){Fe=Object.create(Re,{target:{value:_e},currentTarget:{value:_e}}),_e.value=Ee,Ce(Fe);return}Ce(Fe)}}function it(_e,Re){if(_e){_e.focus(Re);var Ce=Re||{},Ee=Ce.cursor;if(Ee){var Fe=_e.value.length;switch(Ee){case"start":_e.setSelectionRange(0,0);break;case"end":_e.setSelectionRange(Fe,Fe);break;default:_e.setSelectionRange(0,Fe)}}}}function be(_e){return typeof _e=="undefined"||_e===null?"":String(_e)}},15285:function(fn,Jt,fe){"use strict";fe.d(Jt,{iz:function(){return pn},ck:function(){return jr},BW:function(){return ln},sN:function(){return jr},Wd:function(){return ht},ZP:function(){return qn},Xl:function(){return Ge}});var ye=fe(60499),We=fe(18642),Te=fe(85899),it=fe(77654),be=fe(72190),_e=fe(42244),Re=fe(92310),Ce=fe.n(Re),Ee=fe(83836),Fe=fe(18929),lt=fe(13697),De=fe(48736),Ke=fe(59301),ft=fe(4676),Ve=Ke.createContext(null);function rt(et,It){return et===void 0?null:"".concat(et,"-").concat(It)}function Xe(et){var It=Ke.useContext(Ve);return rt(It,et)}var St=fe(80547),Kt=["children","locked"],Je=Ke.createContext(null);function dt(et,It){var Ft=(0,Te.Z)({},et);return Object.keys(It).forEach(function(Qt){var Rt=It[Qt];Rt!==void 0&&(Ft[Qt]=Rt)}),Ft}function Ze(et){var It=et.children,Ft=et.locked,Qt=(0,_e.Z)(et,Kt),Rt=Ke.useContext(Je),jt=(0,St.Z)(function(){return dt(Rt,Qt)},[Rt,Qt],function(Zt,cn){return!Ft&&(Zt[0]!==cn[0]||!(0,lt.Z)(Zt[1],cn[1],!0))});return Ke.createElement(Je.Provider,{value:jt},It)}var Me=[],ze=Ke.createContext(null);function $e(){return Ke.useContext(ze)}var pt=Ke.createContext(Me);function Ge(et){var It=Ke.useContext(pt);return Ke.useMemo(function(){return et!==void 0?[].concat((0,it.Z)(It),[et]):It},[It,et])}var Lt=Ke.createContext(null),at=Ke.createContext({}),At=at,tt=fe(29194);function Nt(et){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,tt.Z)(et)){var Ft=et.nodeName.toLowerCase(),Qt=["input","select","textarea","button"].includes(Ft)||et.isContentEditable||Ft==="a"&&!!et.getAttribute("href"),Rt=et.getAttribute("tabindex"),jt=Number(Rt),Zt=null;return Rt&&!Number.isNaN(jt)?Zt=jt:Qt&&Zt===null&&(Zt=0),Qt&&et.disabled&&(Zt=null),Zt!==null&&(Zt>=0||It&&Zt<0)}return!1}function tn(et){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ft=(0,it.Z)(et.querySelectorAll("*")).filter(function(Qt){return Nt(Qt,It)});return Nt(et,It)&&Ft.unshift(et),Ft}var Xt=null;function qt(){Xt=document.activeElement}function Ot(){Xt=null}function He(){if(Xt)try{Xt.focus()}catch(et){}}function xe(et,It){if(It.keyCode===9){var Ft=tn(et),Qt=Ft[It.shiftKey?0:Ft.length-1],Rt=Qt===document.activeElement||et===document.activeElement;if(Rt){var jt=Ft[It.shiftKey?Ft.length-1:0];jt.focus(),It.preventDefault()}}}var gt=fe(10228),nn=fe(16089),Vt=gt.Z.LEFT,Qe=gt.Z.RIGHT,Ue=gt.Z.UP,kt=gt.Z.DOWN,dn=gt.Z.ENTER,Et=gt.Z.ESC,$t=gt.Z.HOME,wt=gt.Z.END,Dt=[Ue,kt,Vt,Qe];function Pt(et,It,Ft,Qt){var Rt,jt,Zt,cn,mn="prev",En="next",Un="children",ar="parent";if(et==="inline"&&Qt===dn)return{inlineTrigger:!0};var xr=(Rt={},(0,We.Z)(Rt,Ue,mn),(0,We.Z)(Rt,kt,En),Rt),or=(jt={},(0,We.Z)(jt,Vt,Ft?En:mn),(0,We.Z)(jt,Qe,Ft?mn:En),(0,We.Z)(jt,kt,Un),(0,We.Z)(jt,dn,Un),jt),$n=(Zt={},(0,We.Z)(Zt,Ue,mn),(0,We.Z)(Zt,kt,En),(0,We.Z)(Zt,dn,Un),(0,We.Z)(Zt,Et,ar),(0,We.Z)(Zt,Vt,Ft?Un:ar),(0,We.Z)(Zt,Qe,Ft?ar:Un),Zt),wr={inline:xr,horizontal:or,vertical:$n,inlineSub:xr,horizontalSub:$n,verticalSub:$n},pr=(cn=wr["".concat(et).concat(It?"":"Sub")])===null||cn===void 0?void 0:cn[Qt];switch(pr){case mn:return{offset:-1,sibling:!0};case En:return{offset:1,sibling:!0};case ar:return{offset:-1,sibling:!1};case Un:return{offset:1,sibling:!1};default:return null}}function ve(et){for(var It=et;It;){if(It.getAttribute("data-menu-list"))return It;It=It.parentElement}return null}function le(et,It){for(var Ft=et||document.activeElement;Ft;){if(It.has(Ft))return Ft;Ft=Ft.parentElement}return null}function oe(et,It){var Ft=tn(et,!0);return Ft.filter(function(Qt){return It.has(Qt)})}function ce(et,It,Ft){var Qt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!et)return null;var Rt=oe(et,It),jt=Rt.length,Zt=Rt.findIndex(function(cn){return Ft===cn});return Qt<0?Zt===-1?Zt=jt-1:Zt-=1:Qt>0&&(Zt+=1),Zt=(Zt+jt)%jt,Rt[Zt]}var de=function(It,Ft){var Qt=new Set,Rt=new Map,jt=new Map;return It.forEach(function(Zt){var cn=document.querySelector("[data-menu-id='".concat(rt(Ft,Zt),"']"));cn&&(Qt.add(cn),jt.set(cn,Zt),Rt.set(Zt,cn))}),{elements:Qt,key2element:Rt,element2key:jt}};function se(et,It,Ft,Qt,Rt,jt,Zt,cn,mn,En){var Un=Ke.useRef(),ar=Ke.useRef();ar.current=It;var xr=function(){nn.Z.cancel(Un.current)};return Ke.useEffect(function(){return function(){xr()}},[]),function(or){var $n=or.which;if([].concat(Dt,[dn,Et,$t,wt]).includes($n)){var wr=jt(),pr=de(wr,Qt),mr=pr,Wn=mr.elements,nr=mr.key2element,hr=mr.element2key,rr=nr.get(It),Tr=le(rr,Wn),$r=hr.get(Tr),cr=Pt(et,Zt($r,!0).length===1,Ft,$n);if(!cr&&$n!==$t&&$n!==wt)return;(Dt.includes($n)||[$t,wt].includes($n))&&or.preventDefault();var kn=function(Rr){if(Rr){var fi=Rr,Yn=Rr.querySelector("a");Yn!=null&&Yn.getAttribute("href")&&(fi=Yn);var jn=hr.get(Rr);cn(jn),xr(),Un.current=(0,nn.Z)(function(){ar.current===jn&&fi.focus()})}};if([$t,wt].includes($n)||cr.sibling||!Tr){var vn;!Tr||et==="inline"?vn=Rt.current:vn=ve(Tr);var sr,Xn=oe(vn,Wn);$n===$t?sr=Xn[0]:$n===wt?sr=Xn[Xn.length-1]:sr=ce(vn,Wn,Tr,cr.offset),kn(sr)}else if(cr.inlineTrigger)mn($r);else if(cr.offset>0)mn($r,!0),xr(),Un.current=(0,nn.Z)(function(){pr=de(wr,Qt);var Qr=Tr.getAttribute("aria-controls"),Rr=document.getElementById(Qr),fi=ce(Rr,pr.elements);kn(fi)},5);else if(cr.offset<0){var Sr=Zt($r,!0),Or=Sr[Sr.length-2],Mr=nr.get(Or);mn(Or,!1),kn(Mr)}}En==null||En(or)}}function Le(et){Promise.resolve().then(et)}var qe="__RC_UTIL_PATH_SPLIT__",vt=function(It){return It.join(qe)},yt=function(It){return It.split(qe)},_t="rc-menu-more";function Tt(){var et=Ke.useState({}),It=(0,be.Z)(et,2),Ft=It[1],Qt=(0,Ke.useRef)(new Map),Rt=(0,Ke.useRef)(new Map),jt=Ke.useState([]),Zt=(0,be.Z)(jt,2),cn=Zt[0],mn=Zt[1],En=(0,Ke.useRef)(0),Un=(0,Ke.useRef)(!1),ar=function(){Un.current||Ft({})},xr=(0,Ke.useCallback)(function(nr,hr){var rr=vt(hr);Rt.current.set(rr,nr),Qt.current.set(nr,rr),En.current+=1;var Tr=En.current;Le(function(){Tr===En.current&&ar()})},[]),or=(0,Ke.useCallback)(function(nr,hr){var rr=vt(hr);Rt.current.delete(rr),Qt.current.delete(nr)},[]),$n=(0,Ke.useCallback)(function(nr){mn(nr)},[]),wr=(0,Ke.useCallback)(function(nr,hr){var rr=Qt.current.get(nr)||"",Tr=yt(rr);return hr&&cn.includes(Tr[0])&&Tr.unshift(_t),Tr},[cn]),pr=(0,Ke.useCallback)(function(nr,hr){return nr.some(function(rr){var Tr=wr(rr,!0);return Tr.includes(hr)})},[wr]),mr=function(){var hr=(0,it.Z)(Qt.current.keys());return cn.length&&hr.push(_t),hr},Wn=(0,Ke.useCallback)(function(nr){var hr="".concat(Qt.current.get(nr)).concat(qe),rr=new Set;return(0,it.Z)(Rt.current.keys()).forEach(function(Tr){Tr.startsWith(hr)&&rr.add(Rt.current.get(Tr))}),rr},[]);return Ke.useEffect(function(){return function(){Un.current=!0}},[]),{registerPath:xr,unregisterPath:or,refreshOverflowKeys:$n,isSubPathKey:pr,getKeyPath:wr,getKeys:mr,getSubPathKeys:Wn}}function zt(et){var It=Ke.useRef(et);It.current=et;var Ft=Ke.useCallback(function(){for(var Qt,Rt=arguments.length,jt=new Array(Rt),Zt=0;Zt1&&(Wn.motionAppear=!1);var nr=Wn.onVisibleChanged;return Wn.onVisibleChanged=function(hr){return!xr.current&&!hr&&pr(!0),nr==null?void 0:nr(hr)},wr?null:Ke.createElement(Ze,{mode:jt,locked:!xr.current},Ke.createElement(Ae.default,(0,ye.Z)({visible:mr},Wn,{forceRender:mn,removeOnLeave:!1,leavedClassName:"".concat(cn,"-hidden")}),function(hr){var rr=hr.className,Tr=hr.style;return Ke.createElement(Gr,{id:It,className:rr,style:Tr},Rt)}))}var Be=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Ie=["active"],Ye=function(It){var Ft,Qt=It.style,Rt=It.className,jt=It.title,Zt=It.eventKey,cn=It.warnKey,mn=It.disabled,En=It.internalPopupClose,Un=It.children,ar=It.itemIcon,xr=It.expandIcon,or=It.popupClassName,$n=It.popupOffset,wr=It.popupStyle,pr=It.onClick,mr=It.onMouseEnter,Wn=It.onMouseLeave,nr=It.onTitleClick,hr=It.onTitleMouseEnter,rr=It.onTitleMouseLeave,Tr=(0,_e.Z)(It,Be),$r=Xe(Zt),cr=Ke.useContext(Je),kn=cr.prefixCls,vn=cr.mode,sr=cr.openKeys,Xn=cr.disabled,Sr=cr.overflowDisabled,Or=cr.activeKey,Mr=cr.selectedKeys,Qr=cr.itemIcon,Rr=cr.expandIcon,fi=cr.onItemClick,Yn=cr.onOpenChange,jn=cr.onActive,Lr=Ke.useContext(At),Ir=Lr._internalRenderSubMenuItem,si=Ke.useContext(Lt),Yi=si.isSubPathKey,_i=Ge(),Jr="".concat(kn,"-submenu"),yi=Xn||mn,pi=Ke.useRef(),Hn=Ke.useRef(),Fn=ar!=null?ar:Qr,Rn=xr!=null?xr:Rr,Qn=sr.includes(Zt),ei=!Sr&&Qn,hi=Yi(Mr,Zt),bi=bn(Zt,yi,hr,rr),mi=bi.active,ai=(0,_e.Z)(bi,Ie),wi=Ke.useState(!1),Ki=(0,be.Z)(wi,2),Ti=Ki[0],pa=Ki[1],ea=function(Ni){yi||pa(Ni)},Oi=function(Ni){ea(!0),mr==null||mr({key:Zt,domEvent:Ni})},Ja=function(Ni){ea(!1),Wn==null||Wn({key:Zt,domEvent:Ni})},Ea=Ke.useMemo(function(){return mi||(vn!=="inline"?Ti||Yi([Or],Zt):!1)},[vn,mi,Or,Ti,Zt,Yi]),ma=yn(_i.length),ta=function(Ni){yi||(nr==null||nr({key:Zt,domEvent:Ni}),vn==="inline"&&Yn(Zt,!Qn))},Si=zt(function(Ri){pr==null||pr(In(Ri)),fi(Ri)}),Dr=function(Ni){vn!=="inline"&&Yn(Zt,Ni)},Ur=function(){jn(Zt)},Fr=$r&&"".concat($r,"-popup"),Er=Ke.createElement("div",(0,ye.Z)({role:"menuitem",style:ma,className:"".concat(Jr,"-title"),tabIndex:yi?null:-1,ref:pi,title:typeof jt=="string"?jt:null,"data-menu-id":Sr&&$r?null:$r,"aria-expanded":ei,"aria-haspopup":!0,"aria-controls":Fr,"aria-disabled":yi,onClick:ta,onFocus:Ur},ai),jt,Ke.createElement(Nn,{icon:vn!=="horizontal"?Rn:void 0,props:(0,Te.Z)((0,Te.Z)({},It),{},{isOpen:ei,isSubMenu:!0})},Ke.createElement("i",{className:"".concat(Jr,"-arrow")}))),ri=Ke.useRef(vn);if(vn!=="inline"&&_i.length>1?ri.current="vertical":ri.current=vn,!Sr){var ti=ri.current;Er=Ke.createElement(st,{mode:ti,prefixCls:Jr,visible:!En&&ei&&vn!=="inline",popupClassName:or,popupOffset:$n,popupStyle:wr,popup:Ke.createElement(Ze,{mode:ti==="horizontal"?"vertical":ti},Ke.createElement(Gr,{id:Fr,ref:Hn},Un)),disabled:yi,onVisibleChange:Dr},Er)}var Ii=Ke.createElement(Ee.Z.Item,(0,ye.Z)({role:"none"},Tr,{component:"li",style:Qt,className:Ce()(Jr,"".concat(Jr,"-").concat(vn),Rt,(Ft={},(0,We.Z)(Ft,"".concat(Jr,"-open"),ei),(0,We.Z)(Ft,"".concat(Jr,"-active"),Ea),(0,We.Z)(Ft,"".concat(Jr,"-selected"),hi),(0,We.Z)(Ft,"".concat(Jr,"-disabled"),yi),Ft)),onMouseEnter:Oi,onMouseLeave:Ja}),Er,!Sr&&Ke.createElement(Ne,{id:Fr,open:ei,keyPath:_i},Un));return Ir&&(Ii=Ir(Ii,It,{selected:hi,active:Ea,open:ei,disabled:yi})),Ke.createElement(Ze,{onItemClick:Si,mode:vn==="horizontal"?"vertical":vn,itemIcon:Fn,expandIcon:Rn},Ii)};function ht(et){var It=et.eventKey,Ft=et.children,Qt=Ge(It),Rt=Vr(Ft,Qt),jt=$e();Ke.useEffect(function(){if(jt)return jt.registerPath(It,Qt),function(){jt.unregisterPath(It,Qt)}},[Qt]);var Zt;return jt?Zt=Rt:Zt=Ke.createElement(Ye,et,Rt),Ke.createElement(pt.Provider,{value:Qt},Zt)}var Ht=fe(43749),Mt=["className","title","eventKey","children"],Wt=["children"],an=function(It){var Ft=It.className,Qt=It.title,Rt=It.eventKey,jt=It.children,Zt=(0,_e.Z)(It,Mt),cn=Ke.useContext(Je),mn=cn.prefixCls,En="".concat(mn,"-item-group");return Ke.createElement("li",(0,ye.Z)({role:"presentation"},Zt,{onClick:function(ar){return ar.stopPropagation()},className:Ce()(En,Ft)}),Ke.createElement("div",{role:"presentation",className:"".concat(En,"-title"),title:typeof Qt=="string"?Qt:void 0},Qt),Ke.createElement("ul",{role:"group",className:"".concat(En,"-list")},jt))};function ln(et){var It=et.children,Ft=(0,_e.Z)(et,Wt),Qt=Ge(Ft.eventKey),Rt=Vr(It,Qt),jt=$e();return jt?Rt:Ke.createElement(an,(0,Bt.Z)(Ft,["warnKey"]),Rt)}function pn(et){var It=et.className,Ft=et.style,Qt=Ke.useContext(Je),Rt=Qt.prefixCls,jt=$e();return jt?null:Ke.createElement("li",{role:"separator",className:Ce()("".concat(Rt,"-item-divider"),It),style:Ft})}var Ct=["label","children","key","type"];function rn(et){return(et||[]).map(function(It,Ft){if(It&&(0,Ht.Z)(It)==="object"){var Qt=It,Rt=Qt.label,jt=Qt.children,Zt=Qt.key,cn=Qt.type,mn=(0,_e.Z)(Qt,Ct),En=Zt!=null?Zt:"tmp-".concat(Ft);return jt||cn==="group"?cn==="group"?Ke.createElement(ln,(0,ye.Z)({key:En},mn,{title:Rt}),rn(jt)):Ke.createElement(ht,(0,ye.Z)({key:En},mn,{title:Rt}),rn(jt)):cn==="divider"?Ke.createElement(pn,(0,ye.Z)({key:En},mn)):Ke.createElement(jr,(0,ye.Z)({key:En},mn),Rt)}return null}).filter(function(It){return It})}function On(et,It,Ft){var Qt=et;return It&&(Qt=rn(It)),Vr(Qt,Ft)}var Mn=["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"],Pn=[],Ln=Ke.forwardRef(function(et,It){var Ft,Qt,Rt=et,jt=Rt.prefixCls,Zt=jt===void 0?"rc-menu":jt,cn=Rt.rootClassName,mn=Rt.style,En=Rt.className,Un=Rt.tabIndex,ar=Un===void 0?0:Un,xr=Rt.items,or=Rt.children,$n=Rt.direction,wr=Rt.id,pr=Rt.mode,mr=pr===void 0?"vertical":pr,Wn=Rt.inlineCollapsed,nr=Rt.disabled,hr=Rt.disabledOverflow,rr=Rt.subMenuOpenDelay,Tr=rr===void 0?.1:rr,$r=Rt.subMenuCloseDelay,cr=$r===void 0?.1:$r,kn=Rt.forceSubMenuRender,vn=Rt.defaultOpenKeys,sr=Rt.openKeys,Xn=Rt.activeKey,Sr=Rt.defaultActiveFirst,Or=Rt.selectable,Mr=Or===void 0?!0:Or,Qr=Rt.multiple,Rr=Qr===void 0?!1:Qr,fi=Rt.defaultSelectedKeys,Yn=Rt.selectedKeys,jn=Rt.onSelect,Lr=Rt.onDeselect,Ir=Rt.inlineIndent,si=Ir===void 0?24:Ir,Yi=Rt.motion,_i=Rt.defaultMotions,Jr=Rt.triggerSubMenuAction,yi=Jr===void 0?"hover":Jr,pi=Rt.builtinPlacements,Hn=Rt.itemIcon,Fn=Rt.expandIcon,Rn=Rt.overflowedIndicator,Qn=Rn===void 0?"...":Rn,ei=Rt.overflowedIndicatorPopupClassName,hi=Rt.getPopupContainer,bi=Rt.onClick,mi=Rt.onOpenChange,ai=Rt.onKeyDown,wi=Rt.openAnimation,Ki=Rt.openTransitionName,Ti=Rt._internalRenderMenuItem,pa=Rt._internalRenderSubMenuItem,ea=(0,_e.Z)(Rt,Mn),Oi=Ke.useMemo(function(){return On(or,xr,Pn)},[or,xr]),Ja=Ke.useState(!1),Ea=(0,be.Z)(Ja,2),ma=Ea[0],ta=Ea[1],Si=Ke.useRef(),Dr=ot(wr),Ur=$n==="rtl",Fr=(0,Fe.Z)(vn,{value:sr,postState:function(ki){return ki||Pn}}),Er=(0,be.Z)(Fr,2),ri=Er[0],ti=Er[1],Ii=function(ki){var Fi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Xa(){ti(ki),mi==null||mi(ki)}Fi?(0,ft.flushSync)(Xa):Xa()},Ri=Ke.useState(ri),Ni=(0,be.Z)(Ri,2),qi=Ni[0],ui=Ni[1],li=Ke.useRef(!1),Wi=Ke.useMemo(function(){return(mr==="inline"||mr==="vertical")&&Wn?["vertical",Wn]:[mr,!1]},[mr,Wn]),aa=(0,be.Z)(Wi,2),ra=aa[0],Xi=aa[1],ts=ra==="inline",ao=Ke.useState(ra),oo=(0,be.Z)(ao,2),eo=oo[0],Ss=oo[1],fo=Ke.useState(Xi),ka=(0,be.Z)(fo,2),ua=ka[0],bo=ka[1];Ke.useEffect(function(){Ss(ra),bo(Xi),li.current&&(ts?ti(qi):Ii(Pn))},[ra,Xi]);var ko=Ke.useState(0),Ao=(0,be.Z)(ko,2),ns=Ao[0],Ro=Ao[1],Ua=ns>=Oi.length-1||eo!=="horizontal"||hr;Ke.useEffect(function(){ts&&ui(ri)},[ri]),Ke.useEffect(function(){return li.current=!0,function(){li.current=!1}},[]);var Pa=Tt(),Ai=Pa.registerPath,Lo=Pa.unregisterPath,rs=Pa.refreshOverflowKeys,Do=Pa.isSubPathKey,gi=Pa.getKeyPath,oi=Pa.getKeys,Pi=Pa.getSubPathKeys,Aa=Ke.useMemo(function(){return{registerPath:Ai,unregisterPath:Lo}},[Ai,Lo]),Zi=Ke.useMemo(function(){return{isSubPathKey:Do}},[Do]);Ke.useEffect(function(){rs(Ua?Pn:Oi.slice(ns+1).map(function(Mi){return Mi.key}))},[ns,Ua]);var Oa=(0,Fe.Z)(Xn||Sr&&((Ft=Oi[0])===null||Ft===void 0?void 0:Ft.key),{value:Xn}),Fa=(0,be.Z)(Oa,2),to=Fa[0],Ra=Fa[1],so=zt(function(Mi){Ra(Mi)}),lo=zt(function(){Ra(void 0)});(0,Ke.useImperativeHandle)(It,function(){return{list:Si.current,focus:function(ki){var Fi,Xa=oi(),Da=de(Xa,Dr),xo=Da.elements,po=Da.key2element,za=Da.element2key,_o=oe(Si.current,xo),Bo=to!=null?to:_o[0]?za.get(_o[0]):(Fi=Oi.find(function(Zl){return!Zl.props.disabled}))===null||Fi===void 0?void 0:Fi.key,wo=po.get(Bo);if(Bo&&wo){var os;wo==null||(os=wo.focus)===null||os===void 0||os.call(wo,ki)}}}});var La=(0,Fe.Z)(fi||[],{value:Yn,postState:function(ki){return Array.isArray(ki)?ki:ki==null?Pn:[ki]}}),bl=(0,be.Z)(La,2),$o=bl[0],qs=bl[1],Kl=function(ki){if(Mr){var Fi=ki.key,Xa=$o.includes(Fi),Da;Rr?Xa?Da=$o.filter(function(po){return po!==Fi}):Da=[].concat((0,it.Z)($o),[Fi]):Da=[Fi],qs(Da);var xo=(0,Te.Z)((0,Te.Z)({},ki),{},{selectedKeys:Da});Xa?Lr==null||Lr(xo):jn==null||jn(xo)}!Rr&&ri.length&&eo!=="inline"&&Ii(Pn)},Wl=zt(function(Mi){bi==null||bi(In(Mi)),Kl(Mi)}),Cs=zt(function(Mi,ki){var Fi=ri.filter(function(Da){return Da!==Mi});if(ki)Fi.push(Mi);else if(eo!=="inline"){var Xa=Pi(Mi);Fi=Fi.filter(function(Da){return!Xa.has(Da)})}(0,lt.Z)(ri,Fi,!0)||Ii(Fi,!0)}),Eu=function(ki,Fi){var Xa=Fi!=null?Fi:!ri.includes(ki);Cs(ki,Xa)},is=se(eo,to,Ur,Dr,Si,oi,gi,Ra,Eu,ai);Ke.useEffect(function(){ta(!0)},[]);var xl=Ke.useMemo(function(){return{_internalRenderMenuItem:Ti,_internalRenderSubMenuItem:pa}},[Ti,pa]),jo=eo!=="horizontal"||hr?Oi:Oi.map(function(Mi,ki){return Ke.createElement(Ze,{key:Mi.key,overflowDisabled:ki>ns},Mi)}),as=Ke.createElement(Ee.Z,(0,ye.Z)({id:wr,ref:Si,prefixCls:"".concat(Zt,"-overflow"),component:"ul",itemComponent:jr,className:Ce()(Zt,"".concat(Zt,"-root"),"".concat(Zt,"-").concat(eo),En,(Qt={},(0,We.Z)(Qt,"".concat(Zt,"-inline-collapsed"),ua),(0,We.Z)(Qt,"".concat(Zt,"-rtl"),Ur),Qt),cn),dir:$n,style:mn,role:"menu",tabIndex:ar,data:jo,renderRawItem:function(ki){return ki},renderRawRest:function(ki){var Fi=ki.length,Xa=Fi?Oi.slice(-Fi):null;return Ke.createElement(ht,{eventKey:_t,title:Qn,disabled:Ua,internalPopupClose:Fi===0,popupClassName:ei},Xa)},maxCount:eo!=="horizontal"||hr?Ee.Z.INVALIDATE:Ee.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(ki){Ro(ki)},onKeyDown:is},ea));return Ke.createElement(At.Provider,{value:xl},Ke.createElement(Ve.Provider,{value:Dr},Ke.createElement(Ze,{prefixCls:Zt,rootClassName:cn,mode:eo,openKeys:ri,rtl:Ur,disabled:nr,motion:ma?Yi:null,defaultMotions:ma?_i:null,activeKey:to,onActive:so,onInactive:lo,selectedKeys:$o,inlineIndent:si,subMenuOpenDelay:Tr,subMenuCloseDelay:cr,forceSubMenuRender:kn,builtinPlacements:pi,triggerSubMenuAction:yi,getPopupContainer:hi,itemIcon:Hn,expandIcon:Fn,onItemClick:Wl,onOpenChange:Cs},Ke.createElement(Lt.Provider,{value:Zi},as),Ke.createElement("div",{style:{display:"none"},"aria-hidden":!0},Ke.createElement(ze.Provider,{value:Aa},Oi)))))}),tr=Ln,hn=tr;hn.Item=jr,hn.SubMenu=ht,hn.ItemGroup=ln,hn.Divider=pn;var qn=hn},83836:function(fn,Jt,fe){"use strict";fe.d(Jt,{Z:function(){return qt}});var ye=fe(60499),We=fe(85899),Te=fe(72190),it=fe(42244),be=fe(59301),_e=fe(92310),Re=fe.n(_e),Ce=fe(29301),Ee=fe(34280),Fe=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],lt=void 0;function De(Ot,He){var xe=Ot.prefixCls,gt=Ot.invalidate,nn=Ot.item,Vt=Ot.renderItem,Qe=Ot.responsive,Ue=Ot.responsiveDisabled,kt=Ot.registerSize,dn=Ot.itemKey,Et=Ot.className,$t=Ot.style,wt=Ot.children,Dt=Ot.display,Pt=Ot.order,ve=Ot.component,le=ve===void 0?"div":ve,oe=(0,it.Z)(Ot,Fe),ce=Qe&&!Dt;function de(yt){kt(dn,yt)}be.useEffect(function(){return function(){de(null)}},[]);var se=Vt&&nn!==lt?Vt(nn,{index:Pt}):wt,Le;gt||(Le={opacity:ce?0:1,height:ce?0:lt,overflowY:ce?"hidden":lt,order:Qe?Pt:lt,pointerEvents:ce?"none":lt,position:ce?"absolute":lt});var qe={};ce&&(qe["aria-hidden"]=!0);var vt=be.createElement(le,(0,ye.Z)({className:Re()(!gt&&xe,Et),style:(0,We.Z)((0,We.Z)({},Le),$t)},qe,oe,{ref:He}),se);return Qe&&(vt=be.createElement(Ce.Z,{onResize:function(_t){var Tt=_t.offsetWidth;de(Tt)},disabled:Ue},vt)),vt}var Ke=be.forwardRef(De);Ke.displayName="Item";var ft=Ke,Ve=fe(6089),rt=fe(4676),Xe=fe(16089);function St(Ot){if(typeof MessageChannel=="undefined")(0,Xe.Z)(Ot);else{var He=new MessageChannel;He.port1.onmessage=function(){return Ot()},He.port2.postMessage(void 0)}}function Kt(){var Ot=be.useRef(null),He=function(gt){Ot.current||(Ot.current=[],St(function(){(0,rt.unstable_batchedUpdates)(function(){Ot.current.forEach(function(nn){nn()}),Ot.current=null})})),Ot.current.push(gt)};return He}function Je(Ot,He){var xe=be.useState(He),gt=(0,Te.Z)(xe,2),nn=gt[0],Vt=gt[1],Qe=(0,Ve.Z)(function(Ue){Ot(function(){Vt(Ue)})});return[nn,Qe]}var dt=be.createContext(null),Ze=["component"],Me=["className"],ze=["className"],$e=function(He,xe){var gt=be.useContext(dt);if(!gt){var nn=He.component,Vt=nn===void 0?"div":nn,Qe=(0,it.Z)(He,Ze);return be.createElement(Vt,(0,ye.Z)({},Qe,{ref:xe}))}var Ue=gt.className,kt=(0,it.Z)(gt,Me),dn=He.className,Et=(0,it.Z)(He,ze);return be.createElement(dt.Provider,{value:null},be.createElement(ft,(0,ye.Z)({ref:xe,className:Re()(Ue,dn)},kt,Et)))},pt=be.forwardRef($e);pt.displayName="RawItem";var Ge=pt,Lt=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],at="responsive",At="invalidate";function tt(Ot){return"+ ".concat(Ot.length," ...")}function Nt(Ot,He){var xe=Ot.prefixCls,gt=xe===void 0?"rc-overflow":xe,nn=Ot.data,Vt=nn===void 0?[]:nn,Qe=Ot.renderItem,Ue=Ot.renderRawItem,kt=Ot.itemKey,dn=Ot.itemWidth,Et=dn===void 0?10:dn,$t=Ot.ssr,wt=Ot.style,Dt=Ot.className,Pt=Ot.maxCount,ve=Ot.renderRest,le=Ot.renderRawRest,oe=Ot.prefix,ce=Ot.suffix,de=Ot.component,se=de===void 0?"div":de,Le=Ot.itemComponent,qe=Ot.onVisibleChange,vt=(0,it.Z)(Ot,Lt),yt=$t==="full",_t=Kt(),Tt=Je(_t,null),zt=(0,Te.Z)(Tt,2),Yt=zt[0],on=zt[1],ot=Yt||0,Ut=Je(_t,new Map),Cn=(0,Te.Z)(Ut,2),nt=Cn[0],mt=Cn[1],Bt=Je(_t,0),xn=(0,Te.Z)(Bt,2),bn=xn[0],yn=xn[1],Nn=Je(_t,0),Vn=(0,Te.Z)(Nn,2),In=Vn[0],lr=Vn[1],ur=Je(_t,0),gn=(0,Te.Z)(ur,2),yr=gn[0],Pr=gn[1],zr=Je(_t,0),jr=(0,Te.Z)(zr,2),Ar=jr[0],Xr=jr[1],fr=(0,be.useState)(null),Gr=(0,Te.Z)(fr,2),Yr=Gr[0],Vr=Gr[1],qr=(0,be.useState)(null),Hr=(0,Te.Z)(qr,2),er=Hr[0],vr=Hr[1],Dn=be.useMemo(function(){return er===null&&yt?Number.MAX_SAFE_INTEGER:er||0},[er,Yt]),Bn=(0,be.useState)(!1),br=(0,Te.Z)(Bn,2),st=br[0],Ae=br[1],Ne="".concat(gt,"-item"),Be=Math.max(bn,In),Ie=Pt===at,Ye=Vt.length&&Ie,ht=Pt===At,Ht=Ye||typeof Pt=="number"&&Vt.length>Pt,Mt=(0,be.useMemo)(function(){var jt=Vt;return Ye?Yt===null&&yt?jt=Vt:jt=Vt.slice(0,Math.min(Vt.length,ot/Et)):typeof Pt=="number"&&(jt=Vt.slice(0,Pt)),jt},[Vt,Et,Yt,Pt,Ye]),Wt=(0,be.useMemo)(function(){return Ye?Vt.slice(Dn+1):Vt.slice(Mt.length)},[Vt,Mt,Ye,Dn]),an=(0,be.useCallback)(function(jt,Zt){var cn;return typeof kt=="function"?kt(jt):(cn=kt&&(jt==null?void 0:jt[kt]))!==null&&cn!==void 0?cn:Zt},[kt]),ln=(0,be.useCallback)(Qe||function(jt){return jt},[Qe]);function pn(jt,Zt,cn){er===jt&&(Zt===void 0||Zt===Yr)||(vr(jt),cn||(Ae(jtot){pn(mn-1,jt-En-Ar+In);break}}ce&&Ln(0)+Ar>ot&&Vr(null)}},[ot,nt,In,yr,Ar,an,Mt]);var tr=st&&!!Wt.length,hn={};Yr!==null&&Ye&&(hn={position:"absolute",left:Yr,top:0});var qn={prefixCls:Ne,responsive:Ye,component:Le,invalidate:ht},et=Ue?function(jt,Zt){var cn=an(jt,Zt);return be.createElement(dt.Provider,{key:cn,value:(0,We.Z)((0,We.Z)({},qn),{},{order:Zt,item:jt,itemKey:cn,registerSize:rn,display:Zt<=Dn})},Ue(jt,Zt))}:function(jt,Zt){var cn=an(jt,Zt);return be.createElement(ft,(0,ye.Z)({},qn,{order:Zt,key:cn,item:jt,renderItem:ln,itemKey:cn,registerSize:rn,display:Zt<=Dn}))},It={order:tr?Dn:Number.MAX_SAFE_INTEGER,className:"".concat(Ne,"-rest"),registerSize:On,display:tr},Ft=ve||tt,Qt=le?be.createElement(dt.Provider,{value:(0,We.Z)((0,We.Z)({},qn),It)},le(Wt)):be.createElement(ft,(0,ye.Z)({},qn,It),typeof Ft=="function"?Ft(Wt):Ft),Rt=be.createElement(se,(0,ye.Z)({className:Re()(!ht&>,Dt),style:wt,ref:He},vt),oe&&be.createElement(ft,(0,ye.Z)({},qn,{responsive:Ie,responsiveDisabled:!Ye,order:-1,className:"".concat(Ne,"-prefix"),registerSize:Mn,display:!0}),oe),Mt.map(et),Ht?Qt:null,ce&&be.createElement(ft,(0,ye.Z)({},qn,{responsive:Ie,responsiveDisabled:!Ye,order:Dn,className:"".concat(Ne,"-suffix"),registerSize:Pn,display:!0,style:hn}),ce));return Ie?be.createElement(Ce.Z,{onResize:Ct,disabled:!Ye},Rt):Rt}var tn=be.forwardRef(Nt);tn.displayName="Overflow",tn.Item=Ge,tn.RESPONSIVE=at,tn.INVALIDATE=At;var Xt=tn,qt=Xt},17115:function(fn,Jt,fe){"use strict";fe.d(Jt,{ZP:function(){return Re}});var ye=fe(72190),We=fe(59301),Te=fe(47273),it=0,be=(0,Te.Z)();function _e(){var Ce;return be?(Ce=it,it+=1):Ce="TEST_OR_SSR",Ce}function Re(Ce){var Ee=We.useState(),Fe=(0,ye.Z)(Ee,2),lt=Fe[0],De=Fe[1];return We.useEffect(function(){De("rc_select_".concat(_e()))},[]),Ce||lt}},77861:function(fn,Jt,fe){"use strict";fe.d(Jt,{Ac:function(){return Yt},Xo:function(){return In},Wx:function(){return ur},ZP:function(){return Ne},lk:function(){return dt}});var ye=fe(60499),We=fe(77654),Te=fe(18642),it=fe(85899),be=fe(72190),_e=fe(42244),Re=fe(43749),Ce=fe(18929),Ee=fe(48736),Fe=fe(59301),lt=fe(92310),De=fe.n(lt),Ke=fe(34280),ft=fe(49658),Ve=fe(10228),rt=fe(8654),Xe=function(Ie){var Ye=Ie.className,ht=Ie.customizeIcon,Ht=Ie.customizeIconProps,Mt=Ie.onMouseDown,Wt=Ie.onClick,an=Ie.children,ln;return typeof ht=="function"?ln=ht(Ht):ln=ht,Fe.createElement("span",{className:Ye,onMouseDown:function(Ct){Ct.preventDefault(),Mt&&Mt(Ct)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Wt,"aria-hidden":!0},ln!==void 0?ln:Fe.createElement("span",{className:De()(Ye.split(/\s+/).map(function(pn){return"".concat(pn,"-icon")}))},an))},St=Xe;function Kt(Be,Ie,Ye,ht,Ht){var Mt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Wt=arguments.length>6?arguments[6]:void 0,an=arguments.length>7?arguments[7]:void 0,ln=Fe.useMemo(function(){if((0,Re.Z)(ht)==="object")return ht.clearIcon;if(Ht)return Ht},[ht,Ht]),pn=Fe.useMemo(function(){return!!(!Mt&&ht&&(Ye.length||Wt)&&!(an==="combobox"&&Wt===""))},[ht,Mt,Ye.length,Wt,an]);return{allowClear:pn,clearIcon:Fe.createElement(St,{className:"".concat(Be,"-clear"),onMouseDown:Ie,customizeIcon:ln},"\xD7")}}var Je=Fe.createContext(null);function dt(){return Fe.useContext(Je)}function Ze(){var Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ie=Fe.useState(!1),Ye=(0,be.Z)(Ie,2),ht=Ye[0],Ht=Ye[1],Mt=Fe.useRef(null),Wt=function(){window.clearTimeout(Mt.current)};Fe.useEffect(function(){return Wt},[]);var an=function(pn,Ct){Wt(),Mt.current=window.setTimeout(function(){Ht(pn),Ct&&Ct()},Be)};return[ht,an,Wt]}function Me(){var Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ie=Fe.useRef(null),Ye=Fe.useRef(null);Fe.useEffect(function(){return function(){window.clearTimeout(Ye.current)}},[]);function ht(Ht){(Ht||Ie.current===null)&&(Ie.current=Ht),window.clearTimeout(Ye.current),Ye.current=window.setTimeout(function(){Ie.current=null},Be)}return[function(){return Ie.current},ht]}function ze(Be,Ie,Ye,ht){var Ht=Fe.useRef(null);Ht.current={open:Ie,triggerOpen:Ye,customizedTrigger:ht},Fe.useEffect(function(){function Mt(Wt){var an;if(!((an=Ht.current)!==null&&an!==void 0&&an.customizedTrigger)){var ln=Wt.target;ln.shadowRoot&&Wt.composed&&(ln=Wt.composedPath()[0]||ln),Ht.current.open&&Be().filter(function(pn){return pn}).every(function(pn){return!pn.contains(ln)&&pn!==ln})&&Ht.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Mt),function(){return window.removeEventListener("mousedown",Mt)}},[])}var $e=fe(26112),pt=fe(83836),Ge=function(Ie,Ye){var ht,Ht,Mt=Ie.prefixCls,Wt=Ie.id,an=Ie.inputElement,ln=Ie.disabled,pn=Ie.tabIndex,Ct=Ie.autoFocus,rn=Ie.autoComplete,On=Ie.editable,Mn=Ie.activeDescendantId,Pn=Ie.value,Ln=Ie.maxLength,tr=Ie.onKeyDown,hn=Ie.onMouseDown,qn=Ie.onChange,et=Ie.onPaste,It=Ie.onCompositionStart,Ft=Ie.onCompositionEnd,Qt=Ie.open,Rt=Ie.attrs,jt=an||Fe.createElement("input",null),Zt=jt,cn=Zt.ref,mn=Zt.props,En=mn.onKeyDown,Un=mn.onChange,ar=mn.onMouseDown,xr=mn.onCompositionStart,or=mn.onCompositionEnd,$n=mn.style;return(0,Ee.Kp)(!("maxLength"in jt.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),jt=Fe.cloneElement(jt,(0,it.Z)((0,it.Z)((0,it.Z)({type:"search"},mn),{},{id:Wt,ref:(0,rt.sQ)(Ye,cn),disabled:ln,tabIndex:pn,autoComplete:rn||"off",autoFocus:Ct,className:De()("".concat(Mt,"-selection-search-input"),(ht=jt)===null||ht===void 0||(Ht=ht.props)===null||Ht===void 0?void 0:Ht.className),role:"combobox","aria-label":"Search","aria-expanded":Qt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Wt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Wt,"_list"),"aria-activedescendant":Qt?Mn:void 0},Rt),{},{value:On?Pn:"",maxLength:Ln,readOnly:!On,unselectable:On?null:"on",style:(0,it.Z)((0,it.Z)({},$n),{},{opacity:On?null:0}),onKeyDown:function(pr){tr(pr),En&&En(pr)},onMouseDown:function(pr){hn(pr),ar&&ar(pr)},onChange:function(pr){qn(pr),Un&&Un(pr)},onCompositionStart:function(pr){It(pr),xr&&xr(pr)},onCompositionEnd:function(pr){Ft(pr),or&&or(pr)},onPaste:et})),jt},Lt=Fe.forwardRef(Ge);Lt.displayName="Input";var at=Lt;function At(Be){return Array.isArray(Be)?Be:Be!==void 0?[Be]:[]}var tt=typeof window!="undefined"&&window.document&&window.document.documentElement,Nt=tt;function tn(Be){return Be!=null}function Xt(Be){return!Be&&Be!==0}function qt(Be){return["string","number"].includes((0,Re.Z)(Be))}function Ot(Be){var Ie=void 0;return Be&&(qt(Be.title)?Ie=Be.title.toString():qt(Be.label)&&(Ie=Be.label.toString())),Ie}function He(Be,Ie){Nt?Fe.useLayoutEffect(Be,Ie):Fe.useEffect(Be,Ie)}function xe(Be){var Ie;return(Ie=Be.key)!==null&&Ie!==void 0?Ie:Be.value}var gt=function(Ie){Ie.preventDefault(),Ie.stopPropagation()},nn=function(Ie){var Ye=Ie.id,ht=Ie.prefixCls,Ht=Ie.values,Mt=Ie.open,Wt=Ie.searchValue,an=Ie.autoClearSearchValue,ln=Ie.inputRef,pn=Ie.placeholder,Ct=Ie.disabled,rn=Ie.mode,On=Ie.showSearch,Mn=Ie.autoFocus,Pn=Ie.autoComplete,Ln=Ie.activeDescendantId,tr=Ie.tabIndex,hn=Ie.removeIcon,qn=Ie.maxTagCount,et=Ie.maxTagTextLength,It=Ie.maxTagPlaceholder,Ft=It===void 0?function(Or){return"+ ".concat(Or.length," ...")}:It,Qt=Ie.tagRender,Rt=Ie.onToggleOpen,jt=Ie.onRemove,Zt=Ie.onInputChange,cn=Ie.onInputPaste,mn=Ie.onInputKeyDown,En=Ie.onInputMouseDown,Un=Ie.onInputCompositionStart,ar=Ie.onInputCompositionEnd,xr=Fe.useRef(null),or=(0,Fe.useState)(0),$n=(0,be.Z)(or,2),wr=$n[0],pr=$n[1],mr=(0,Fe.useState)(!1),Wn=(0,be.Z)(mr,2),nr=Wn[0],hr=Wn[1],rr="".concat(ht,"-selection"),Tr=Mt||rn==="multiple"&&an===!1||rn==="tags"?Wt:"",$r=rn==="tags"||rn==="multiple"&&an===!1||On&&(Mt||nr);He(function(){pr(xr.current.scrollWidth)},[Tr]);function cr(Or,Mr,Qr,Rr,fi){return Fe.createElement("span",{className:De()("".concat(rr,"-item"),(0,Te.Z)({},"".concat(rr,"-item-disabled"),Qr)),title:Ot(Or)},Fe.createElement("span",{className:"".concat(rr,"-item-content")},Mr),Rr&&Fe.createElement(St,{className:"".concat(rr,"-item-remove"),onMouseDown:gt,onClick:fi,customizeIcon:hn},"\xD7"))}function kn(Or,Mr,Qr,Rr,fi){var Yn=function(Lr){gt(Lr),Rt(!Mt)};return Fe.createElement("span",{onMouseDown:Yn},Qt({label:Mr,value:Or,disabled:Qr,closable:Rr,onClose:fi}))}function vn(Or){var Mr=Or.disabled,Qr=Or.label,Rr=Or.value,fi=!Ct&&!Mr,Yn=Qr;if(typeof et=="number"&&(typeof Qr=="string"||typeof Qr=="number")){var jn=String(Yn);jn.length>et&&(Yn="".concat(jn.slice(0,et),"..."))}var Lr=function(si){si&&si.stopPropagation(),jt(Or)};return typeof Qt=="function"?kn(Rr,Yn,Mr,fi,Lr):cr(Or,Yn,Mr,fi,Lr)}function sr(Or){var Mr=typeof Ft=="function"?Ft(Or):Ft;return cr({title:Mr},Mr,!1)}var Xn=Fe.createElement("div",{className:"".concat(rr,"-search"),style:{width:wr},onFocus:function(){hr(!0)},onBlur:function(){hr(!1)}},Fe.createElement(at,{ref:ln,open:Mt,prefixCls:ht,id:Ye,inputElement:null,disabled:Ct,autoFocus:Mn,autoComplete:Pn,editable:$r,activeDescendantId:Ln,value:Tr,onKeyDown:mn,onMouseDown:En,onChange:Zt,onPaste:cn,onCompositionStart:Un,onCompositionEnd:ar,tabIndex:tr,attrs:(0,$e.Z)(Ie,!0)}),Fe.createElement("span",{ref:xr,className:"".concat(rr,"-search-mirror"),"aria-hidden":!0},Tr,"\xA0")),Sr=Fe.createElement(pt.Z,{prefixCls:"".concat(rr,"-overflow"),data:Ht,renderItem:vn,renderRest:sr,suffix:Xn,itemKey:xe,maxCount:qn});return Fe.createElement(Fe.Fragment,null,Sr,!Ht.length&&!Tr&&Fe.createElement("span",{className:"".concat(rr,"-placeholder")},pn))},Vt=nn,Qe=function(Ie){var Ye=Ie.inputElement,ht=Ie.prefixCls,Ht=Ie.id,Mt=Ie.inputRef,Wt=Ie.disabled,an=Ie.autoFocus,ln=Ie.autoComplete,pn=Ie.activeDescendantId,Ct=Ie.mode,rn=Ie.open,On=Ie.values,Mn=Ie.placeholder,Pn=Ie.tabIndex,Ln=Ie.showSearch,tr=Ie.searchValue,hn=Ie.activeValue,qn=Ie.maxLength,et=Ie.onInputKeyDown,It=Ie.onInputMouseDown,Ft=Ie.onInputChange,Qt=Ie.onInputPaste,Rt=Ie.onInputCompositionStart,jt=Ie.onInputCompositionEnd,Zt=Ie.title,cn=Fe.useState(!1),mn=(0,be.Z)(cn,2),En=mn[0],Un=mn[1],ar=Ct==="combobox",xr=ar||Ln,or=On[0],$n=tr||"";ar&&hn&&!En&&($n=hn),Fe.useEffect(function(){ar&&Un(!1)},[ar,hn]);var wr=Ct!=="combobox"&&!rn&&!Ln?!1:!!$n,pr=Zt===void 0?Ot(or):Zt,mr=function(){if(or)return null;var nr=wr?{visibility:"hidden"}:void 0;return Fe.createElement("span",{className:"".concat(ht,"-selection-placeholder"),style:nr},Mn)};return Fe.createElement(Fe.Fragment,null,Fe.createElement("span",{className:"".concat(ht,"-selection-search")},Fe.createElement(at,{ref:Mt,prefixCls:ht,id:Ht,open:rn,inputElement:Ye,disabled:Wt,autoFocus:an,autoComplete:ln,editable:xr,activeDescendantId:pn,value:$n,onKeyDown:et,onMouseDown:It,onChange:function(nr){Un(!0),Ft(nr)},onPaste:Qt,onCompositionStart:Rt,onCompositionEnd:jt,tabIndex:Pn,attrs:(0,$e.Z)(Ie,!0),maxLength:ar?qn:void 0})),!ar&&or?Fe.createElement("span",{className:"".concat(ht,"-selection-item"),title:pr,style:wr?{visibility:"hidden"}:void 0},or.label):null,mr())},Ue=Qe;function kt(Be){return![Ve.Z.ESC,Ve.Z.SHIFT,Ve.Z.BACKSPACE,Ve.Z.TAB,Ve.Z.WIN_KEY,Ve.Z.ALT,Ve.Z.META,Ve.Z.WIN_KEY_RIGHT,Ve.Z.CTRL,Ve.Z.SEMICOLON,Ve.Z.EQUALS,Ve.Z.CAPS_LOCK,Ve.Z.CONTEXT_MENU,Ve.Z.F1,Ve.Z.F2,Ve.Z.F3,Ve.Z.F4,Ve.Z.F5,Ve.Z.F6,Ve.Z.F7,Ve.Z.F8,Ve.Z.F9,Ve.Z.F10,Ve.Z.F11,Ve.Z.F12].includes(Be)}var dn=function(Ie,Ye){var ht=(0,Fe.useRef)(null),Ht=(0,Fe.useRef)(!1),Mt=Ie.prefixCls,Wt=Ie.open,an=Ie.mode,ln=Ie.showSearch,pn=Ie.tokenWithEnter,Ct=Ie.autoClearSearchValue,rn=Ie.onSearch,On=Ie.onSearchSubmit,Mn=Ie.onToggleOpen,Pn=Ie.onInputKeyDown,Ln=Ie.domRef;Fe.useImperativeHandle(Ye,function(){return{focus:function(){ht.current.focus()},blur:function(){ht.current.blur()}}});var tr=Me(0),hn=(0,be.Z)(tr,2),qn=hn[0],et=hn[1],It=function($n){var wr=$n.which;(wr===Ve.Z.UP||wr===Ve.Z.DOWN)&&$n.preventDefault(),Pn&&Pn($n),wr===Ve.Z.ENTER&&an==="tags"&&!Ht.current&&!Wt&&(On==null||On($n.target.value)),kt(wr)&&Mn(!0)},Ft=function(){et(!0)},Qt=(0,Fe.useRef)(null),Rt=function($n){rn($n,!0,Ht.current)!==!1&&Mn(!0)},jt=function(){Ht.current=!0},Zt=function($n){Ht.current=!1,an!=="combobox"&&Rt($n.target.value)},cn=function($n){var wr=$n.target.value;if(pn&&Qt.current&&/[\r\n]/.test(Qt.current)){var pr=Qt.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");wr=wr.replace(pr,Qt.current)}Qt.current=null,Rt(wr)},mn=function($n){var wr=$n.clipboardData,pr=wr.getData("text");Qt.current=pr},En=function($n){var wr=$n.target;if(wr!==ht.current){var pr=document.body.style.msTouchAction!==void 0;pr?setTimeout(function(){ht.current.focus()}):ht.current.focus()}},Un=function($n){var wr=qn();$n.target!==ht.current&&!wr&&an!=="combobox"&&$n.preventDefault(),(an!=="combobox"&&(!ln||!wr)||!Wt)&&(Wt&&Ct!==!1&&rn("",!0,!1),Mn())},ar={inputRef:ht,onInputKeyDown:It,onInputMouseDown:Ft,onInputChange:cn,onInputPaste:mn,onInputCompositionStart:jt,onInputCompositionEnd:Zt},xr=an==="multiple"||an==="tags"?Fe.createElement(Vt,(0,ye.Z)({},Ie,ar)):Fe.createElement(Ue,(0,ye.Z)({},Ie,ar));return Fe.createElement("div",{ref:Ln,className:"".concat(Mt,"-selector"),onClick:En,onMouseDown:Un},xr)},Et=Fe.forwardRef(dn);Et.displayName="Selector";var $t=Et,wt=fe(35593),Dt=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Pt=function(Ie){var Ye=Ie===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Ye,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Ye,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Ye,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Ye,adjustY:1},htmlRegion:"scroll"}}},ve=function(Ie,Ye){var ht=Ie.prefixCls,Ht=Ie.disabled,Mt=Ie.visible,Wt=Ie.children,an=Ie.popupElement,ln=Ie.animation,pn=Ie.transitionName,Ct=Ie.dropdownStyle,rn=Ie.dropdownClassName,On=Ie.direction,Mn=On===void 0?"ltr":On,Pn=Ie.placement,Ln=Ie.builtinPlacements,tr=Ie.dropdownMatchSelectWidth,hn=Ie.dropdownRender,qn=Ie.dropdownAlign,et=Ie.getPopupContainer,It=Ie.empty,Ft=Ie.getTriggerDOMNode,Qt=Ie.onPopupVisibleChange,Rt=Ie.onPopupMouseEnter,jt=(0,_e.Z)(Ie,Dt),Zt="".concat(ht,"-dropdown"),cn=an;hn&&(cn=hn(an));var mn=Fe.useMemo(function(){return Ln||Pt(tr)},[Ln,tr]),En=ln?"".concat(Zt,"-").concat(ln):pn,Un=typeof tr=="number",ar=Fe.useMemo(function(){return Un?null:tr===!1?"minWidth":"width"},[tr,Un]),xr=Ct;Un&&(xr=(0,it.Z)((0,it.Z)({},xr),{},{width:tr}));var or=Fe.useRef(null);return Fe.useImperativeHandle(Ye,function(){return{getPopupElement:function(){return or.current}}}),Fe.createElement(wt.Z,(0,ye.Z)({},jt,{showAction:Qt?["click"]:[],hideAction:Qt?["click"]:[],popupPlacement:Pn||(Mn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:mn,prefixCls:Zt,popupTransitionName:En,popup:Fe.createElement("div",{ref:or,onMouseEnter:Rt},cn),stretch:ar,popupAlign:qn,popupVisible:Mt,getPopupContainer:et,popupClassName:De()(rn,(0,Te.Z)({},"".concat(Zt,"-empty"),It)),popupStyle:xr,getTriggerDOMNode:Ft,onPopupVisibleChange:Qt}),Wt)},le=Fe.forwardRef(ve);le.displayName="SelectTrigger";var oe=le,ce=fe(48745);function de(Be,Ie){var Ye=Be.key,ht;return"value"in Be&&(ht=Be.value),Ye!=null?Ye:ht!==void 0?ht:"rc-index-key-".concat(Ie)}function se(Be,Ie){var Ye=Be||{},ht=Ye.label,Ht=Ye.value,Mt=Ye.options,Wt=Ye.groupLabel,an=ht||(Ie?"children":"label");return{label:an,value:Ht||"value",options:Mt||"options",groupLabel:Wt||an}}function Le(Be){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ye=Ie.fieldNames,ht=Ie.childrenAsData,Ht=[],Mt=se(Ye,!1),Wt=Mt.label,an=Mt.value,ln=Mt.options,pn=Mt.groupLabel;function Ct(rn,On){rn.forEach(function(Mn){if(On||!(ln in Mn)){var Pn=Mn[an];Ht.push({key:de(Mn,Ht.length),groupOption:On,data:Mn,label:Mn[Wt],value:Pn})}else{var Ln=Mn[pn];Ln===void 0&&ht&&(Ln=Mn.label),Ht.push({key:de(Mn,Ht.length),group:!0,data:Mn,label:Ln}),Ct(Mn[ln],!0)}})}return Ct(Be,!1),Ht}function qe(Be){var Ie=(0,it.Z)({},Be);return"props"in Ie||Object.defineProperty(Ie,"props",{get:function(){return(0,Ee.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Ie}}),Ie}function vt(Be,Ie){if(!Ie||!Ie.length)return null;var Ye=!1;function ht(Mt,Wt){var an=(0,ce.Z)(Wt),ln=an[0],pn=an.slice(1);if(!ln)return[Mt];var Ct=Mt.split(ln);return Ye=Ye||Ct.length>1,Ct.reduce(function(rn,On){return[].concat((0,We.Z)(rn),(0,We.Z)(ht(On,pn)))},[]).filter(function(rn){return rn})}var Ht=ht(Be,Ie);return Ye?Ht:null}var yt=["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"],_t=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Tt(Be){return Be==="tags"||Be==="multiple"}var zt=Fe.forwardRef(function(Be,Ie){var Ye,ht,Ht=Be.id,Mt=Be.prefixCls,Wt=Be.className,an=Be.showSearch,ln=Be.tagRender,pn=Be.direction,Ct=Be.omitDomProps,rn=Be.displayValues,On=Be.onDisplayValuesChange,Mn=Be.emptyOptions,Pn=Be.notFoundContent,Ln=Pn===void 0?"Not Found":Pn,tr=Be.onClear,hn=Be.mode,qn=Be.disabled,et=Be.loading,It=Be.getInputElement,Ft=Be.getRawInputElement,Qt=Be.open,Rt=Be.defaultOpen,jt=Be.onDropdownVisibleChange,Zt=Be.activeValue,cn=Be.onActiveValueChange,mn=Be.activeDescendantId,En=Be.searchValue,Un=Be.autoClearSearchValue,ar=Be.onSearch,xr=Be.onSearchSplit,or=Be.tokenSeparators,$n=Be.allowClear,wr=Be.suffixIcon,pr=Be.clearIcon,mr=Be.OptionList,Wn=Be.animation,nr=Be.transitionName,hr=Be.dropdownStyle,rr=Be.dropdownClassName,Tr=Be.dropdownMatchSelectWidth,$r=Be.dropdownRender,cr=Be.dropdownAlign,kn=Be.placement,vn=Be.builtinPlacements,sr=Be.getPopupContainer,Xn=Be.showAction,Sr=Xn===void 0?[]:Xn,Or=Be.onFocus,Mr=Be.onBlur,Qr=Be.onKeyUp,Rr=Be.onKeyDown,fi=Be.onMouseDown,Yn=(0,_e.Z)(Be,yt),jn=Tt(hn),Lr=(an!==void 0?an:jn)||hn==="combobox",Ir=(0,it.Z)({},Yn);_t.forEach(function(gi){delete Ir[gi]}),Ct==null||Ct.forEach(function(gi){delete Ir[gi]});var si=Fe.useState(!1),Yi=(0,be.Z)(si,2),_i=Yi[0],Jr=Yi[1];Fe.useEffect(function(){Jr((0,ft.Z)())},[]);var yi=Fe.useRef(null),pi=Fe.useRef(null),Hn=Fe.useRef(null),Fn=Fe.useRef(null),Rn=Fe.useRef(null),Qn=Ze(),ei=(0,be.Z)(Qn,3),hi=ei[0],bi=ei[1],mi=ei[2];Fe.useImperativeHandle(Ie,function(){var gi,oi;return{focus:(gi=Fn.current)===null||gi===void 0?void 0:gi.focus,blur:(oi=Fn.current)===null||oi===void 0?void 0:oi.blur,scrollTo:function(Aa){var Zi;return(Zi=Rn.current)===null||Zi===void 0?void 0:Zi.scrollTo(Aa)}}});var ai=Fe.useMemo(function(){var gi;if(hn!=="combobox")return En;var oi=(gi=rn[0])===null||gi===void 0?void 0:gi.value;return typeof oi=="string"||typeof oi=="number"?String(oi):""},[En,hn,rn]),wi=hn==="combobox"&&typeof It=="function"&&It()||null,Ki=typeof Ft=="function"&&Ft(),Ti=(0,rt.x1)(pi,Ki==null||(Ye=Ki.props)===null||Ye===void 0?void 0:Ye.ref),pa=Fe.useState(!1),ea=(0,be.Z)(pa,2),Oi=ea[0],Ja=ea[1];(0,Ke.Z)(function(){Ja(!0)},[]);var Ea=(0,Ce.Z)(!1,{defaultValue:Rt,value:Qt}),ma=(0,be.Z)(Ea,2),ta=ma[0],Si=ma[1],Dr=Oi?ta:!1,Ur=!Ln&&Mn;(qn||Ur&&Dr&&hn==="combobox")&&(Dr=!1);var Fr=Ur?!1:Dr,Er=Fe.useCallback(function(gi){var oi=gi!==void 0?gi:!Dr;qn||(Si(oi),Dr!==oi&&(jt==null||jt(oi)))},[qn,Dr,Si,jt]),ri=Fe.useMemo(function(){return(or||[]).some(function(gi){return[` `,`\r `].includes(gi)})},[or]),ti=function(oi,Pi,Aa){var Zi=!0,Oa=oi;cn==null||cn(null);var Fa=Aa?null:vt(oi,or);return hn!=="combobox"&&Fa&&(Oa="",xr==null||xr(Fa),Er(!1),Zi=!1),ar&&ai!==Oa&&ar(Oa,{source:Pi?"typing":"effect"}),Zi},Ii=function(oi){!oi||!oi.trim()||ar(oi,{source:"submit"})};Fe.useEffect(function(){!Dr&&!jn&&hn!=="combobox"&&ti("",!1,!1)},[Dr]),Fe.useEffect(function(){ta&&qn&&Si(!1),qn&&bi(!1)},[qn]);var Ri=Me(),Ni=(0,be.Z)(Ri,2),qi=Ni[0],ui=Ni[1],li=function(oi){var Pi=qi(),Aa=oi.which;if(Aa===Ve.Z.ENTER&&(hn!=="combobox"&&oi.preventDefault(),Dr||Er(!0)),ui(!!ai),Aa===Ve.Z.BACKSPACE&&!Pi&&jn&&!ai&&rn.length){for(var Zi=(0,We.Z)(rn),Oa=null,Fa=Zi.length-1;Fa>=0;Fa-=1){var to=Zi[Fa];if(!to.disabled){Zi.splice(Fa,1),Oa=to;break}}Oa&&On(Zi,{type:"remove",values:[Oa]})}for(var Ra=arguments.length,so=new Array(Ra>1?Ra-1:0),lo=1;lo1?Pi-1:0),Zi=1;Zi1?Fa-1:0),Ra=1;Ra1&&arguments[1]!==void 0?arguments[1]:!1;return(0,nt.Z)(Be).map(function(Ye,ht){if(!Fe.isValidElement(Ye)||!Ye.type)return null;var Ht=Ye,Mt=Ht.type.isSelectOptGroup,Wt=Ht.key,an=Ht.props,ln=an.children,pn=(0,_e.Z)(an,Bt);return Ie||!Mt?xn(Ye):(0,it.Z)((0,it.Z)({key:"__RC_SELECT_GRP__".concat(Wt===null?ht:Wt,"__"),label:Wt},pn),{},{options:bn(ln)})}).filter(function(Ye){return Ye})}function yn(Be,Ie,Ye,ht,Ht){return Fe.useMemo(function(){var Mt=Be,Wt=!Be;Wt&&(Mt=bn(Ie));var an=new Map,ln=new Map,pn=function(On,Mn,Pn){Pn&&typeof Pn=="string"&&On.set(Mn[Pn],Mn)};function Ct(rn){for(var On=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Mn=0;Mn1&&arguments[1]!==void 0?arguments[1]:1,sr=cn.length,Xn=0;Xn1&&arguments[1]!==void 0?arguments[1]:!1;wr(kn);var sr={source:vn?"keyboard":"mouse"},Xn=cn[kn];if(!Xn){Ln(null,-1,sr);return}Ln(Xn.value,kn,sr)};(0,Fe.useEffect)(function(){pr(tr!==!1?ar(0):-1)},[cn.length,pn]);var mr=Fe.useCallback(function(cr){return et.has(cr)&&ln!=="combobox"},[ln,(0,We.Z)(et).toString(),et.size]);(0,Fe.useEffect)(function(){var cr=setTimeout(function(){if(!an&&Wt&&et.size===1){var vn=Array.from(et)[0],sr=cn.findIndex(function(Xn){var Sr=Xn.data;return Sr.value===vn});sr!==-1&&(pr(sr),Un(sr))}});if(Wt){var kn;(kn=mn.current)===null||kn===void 0||kn.scrollTo(void 0)}return function(){return clearTimeout(cr)}},[Wt,pn,Pn.length]);var Wn=function(kn){kn!==void 0&&hn(kn,{selected:!et.has(kn)}),an||Ct(!1)};if(Fe.useImperativeHandle(Ye,function(){return{onKeyDown:function(kn){var vn=kn.which,sr=kn.ctrlKey;switch(vn){case Ve.Z.N:case Ve.Z.P:case Ve.Z.UP:case Ve.Z.DOWN:{var Xn=0;if(vn===Ve.Z.UP?Xn=-1:vn===Ve.Z.DOWN?Xn=1:Ar()&&sr&&(vn===Ve.Z.N?Xn=1:vn===Ve.Z.P&&(Xn=-1)),Xn!==0){var Sr=ar($n+Xn,Xn);Un(Sr),pr(Sr,!0)}break}case Ve.Z.ENTER:{var Or=cn[$n];Or&&!Or.data.disabled?Wn(Or.value):Wn(void 0),Wt&&kn.preventDefault();break}case Ve.Z.ESC:Ct(!1),Wt&&kn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(kn){Un(kn)}}}),cn.length===0)return Fe.createElement("div",{role:"listbox",id:"".concat(Mt,"_list"),className:"".concat(Zt,"-empty"),onMouseDown:En},rn);var nr=Object.keys(It).map(function(cr){return It[cr]}),hr=function(kn){return kn.label};function rr(cr,kn){var vn=cr.group;return{role:vn?"presentation":"option",id:"".concat(Mt,"_list_").concat(kn)}}var Tr=function(kn){var vn=cn[kn];if(!vn)return null;var sr=vn.data||{},Xn=sr.value,Sr=vn.group,Or=(0,$e.Z)(sr,!0),Mr=hr(vn);return vn?Fe.createElement("div",(0,ye.Z)({"aria-label":typeof Mr=="string"&&!Sr?Mr:null},Or,{key:kn},rr(vn,kn),{"aria-selected":mr(Xn)}),Xn):null},$r={role:"listbox",id:"".concat(Mt,"_list")};return Fe.createElement(Fe.Fragment,null,Ft&&Fe.createElement("div",(0,ye.Z)({},$r,{style:{height:0,width:0,overflow:"hidden"}}),Tr($n-1),Tr($n),Tr($n+1)),Fe.createElement(Pr.Z,{itemKey:"key",ref:mn,data:cn,height:Rt,itemHeight:jt,fullHeight:!1,onMouseDown:En,onScroll:On,virtual:Ft,direction:Qt,innerProps:Ft?null:$r},function(cr,kn){var vn,sr=cr.group,Xn=cr.groupOption,Sr=cr.data,Or=cr.label,Mr=cr.value,Qr=Sr.key;if(sr){var Rr,fi=(Rr=Sr.title)!==null&&Rr!==void 0?Rr:fr(Or)?Or.toString():void 0;return Fe.createElement("div",{className:De()(Zt,"".concat(Zt,"-group")),title:fi},Or!==void 0?Or:Qr)}var Yn=Sr.disabled,jn=Sr.title,Lr=Sr.children,Ir=Sr.style,si=Sr.className,Yi=(0,_e.Z)(Sr,Xr),_i=(0,yr.Z)(Yi,nr),Jr=mr(Mr),yi="".concat(Zt,"-option"),pi=De()(Zt,yi,si,(vn={},(0,Te.Z)(vn,"".concat(yi,"-grouped"),Xn),(0,Te.Z)(vn,"".concat(yi,"-active"),$n===kn&&!Yn),(0,Te.Z)(vn,"".concat(yi,"-disabled"),Yn),(0,Te.Z)(vn,"".concat(yi,"-selected"),Jr),vn)),Hn=hr(cr),Fn=!qn||typeof qn=="function"||Jr,Rn=typeof Hn=="number"?Hn:Hn||Mr,Qn=fr(Rn)?Rn.toString():void 0;return jn!==void 0&&(Qn=jn),Fe.createElement("div",(0,ye.Z)({},(0,$e.Z)(_i),Ft?{}:rr(cr,kn),{"aria-selected":Jr,className:pi,title:Qn,onMouseMove:function(){$n===kn||Yn||pr(kn)},onClick:function(){Yn||Wn(Mr)},style:Ir}),Fe.createElement("div",{className:"".concat(yi,"-content")},Rn),Fe.isValidElement(qn)||Jr,Fn&&Fe.createElement(St,{className:"".concat(Zt,"-option-state"),customizeIcon:qn,customizeIconProps:{isSelected:Jr}},Jr?"\u2713":null))}))},Yr=Fe.forwardRef(Gr);Yr.displayName="OptionList";var Vr=Yr;function qr(Be){var Ie=Be.mode,Ye=Be.options,ht=Be.children,Ht=Be.backfill,Mt=Be.allowClear,Wt=Be.placeholder,an=Be.getInputElement,ln=Be.showSearch,pn=Be.onSearch,Ct=Be.defaultOpen,rn=Be.autoFocus,On=Be.labelInValue,Mn=Be.value,Pn=Be.inputValue,Ln=Be.optionLabelProp,tr=isMultiple(Ie),hn=ln!==void 0?ln:tr||Ie==="combobox",qn=Ye||convertChildrenToData(ht);if(warning(Ie!=="tags"||qn.every(function(Qt){return!Qt.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Ie==="tags"||Ie==="combobox"){var et=qn.some(function(Qt){return Qt.options?Qt.options.some(function(Rt){return typeof("value"in Rt?Rt.value:Rt.key)=="number"}):typeof("value"in Qt?Qt.value:Qt.key)=="number"});warning(!et,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Ie!=="combobox"||!Ln,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Ie==="combobox"||!Ht,"`backfill` only works with `combobox` mode."),warning(Ie==="combobox"||!an,"`getInputElement` only work with `combobox` mode."),noteOnce(Ie!=="combobox"||!an||!Mt||!Wt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),pn&&!hn&&Ie!=="combobox"&&Ie!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Ct||rn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Mn!=null){var It=toArray(Mn);warning(!On||It.every(function(Qt){return _typeof(Qt)==="object"&&("key"in Qt||"value"in Qt)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!tr||Array.isArray(Mn),"`value` should be array when `mode` is `multiple` or `tags`")}if(ht){var Ft=null;toNodeArray(ht).some(function(Qt){if(!React.isValidElement(Qt)||!Qt.type)return!1;var Rt=Qt,jt=Rt.type;if(jt.isSelectOption)return!1;if(jt.isSelectOptGroup){var Zt=toNodeArray(Qt.props.children).every(function(cn){return!React.isValidElement(cn)||!Qt.type||cn.type.isSelectOption?!0:(Ft=cn.type,!1)});return!Zt}return Ft=jt,!0}),Ft&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ft.displayName||Ft.name||Ft,"`.")),warning(Pn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Hr(Be,Ie){if(Be){var Ye=function ht(Ht){for(var Mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Wt=0;Wt2&&arguments[2]!==void 0?arguments[2]:{},Er=Fr.source,ri=Er===void 0?"keyboard":Er;Ti(Ur),Wt&&ht==="combobox"&&Dr!==null&&ri==="keyboard"&&mi(String(Dr))},[Wt,ht]),Oi=function(Ur,Fr,Er){var ri=function(){var ra,Xi=si(Ur);return[$n?{label:Xi==null?void 0:Xi[rr.label],value:Ur,key:(ra=Xi==null?void 0:Xi.key)!==null&&ra!==void 0?ra:Ur}:Ur,qe(Xi)]};if(Fr&&Mn){var ti=ri(),Ii=(0,be.Z)(ti,2),Ri=Ii[0],Ni=Ii[1];Mn(Ri,Ni)}else if(!Fr&&Pn&&Er!=="clear"){var qi=ri(),ui=(0,be.Z)(qi,2),li=ui[0],Wi=ui[1];Pn(li,Wi)}},Ja=Nn(function(Dr,Ur){var Fr,Er=Wn?Ur.selected:!0;Er?Fr=Wn?[].concat((0,We.Z)(Ir),[Dr]):[Dr]:Fr=Ir.filter(function(ri){return ri.value!==Dr}),Qn(Fr),Oi(Dr,Er),ht==="combobox"?mi(""):(!Tt||On)&&(kn(""),mi(""))}),Ea=function(Ur,Fr){Qn(Ur);var Er=Fr.type,ri=Fr.values;(Er==="remove"||Er==="clear")&&ri.forEach(function(ti){Oi(ti.value,!1,Er)})},ma=function(Ur,Fr){if(kn(Ur),mi(null),Fr.source==="submit"){var Er=(Ur||"").trim();if(Er){var ri=Array.from(new Set([].concat((0,We.Z)(_i),[Er])));Qn(ri),Oi(Er,!0),kn("")}return}Fr.source!=="blur"&&(ht==="combobox"&&Qn(Ur),Ct==null||Ct(Ur))},ta=function(Ur){var Fr=Ur;ht!=="tags"&&(Fr=Ur.map(function(ri){var ti=Xn.get(ri);return ti==null?void 0:ti.value}).filter(function(ri){return ri!==void 0}));var Er=Array.from(new Set([].concat((0,We.Z)(_i),(0,We.Z)(Fr))));Qn(Er),Er.forEach(function(ri){Oi(ri,!0)})},Si=Fe.useMemo(function(){var Dr=Zt!==!1&&tr!==!1;return(0,it.Z)((0,it.Z)({},vn),{},{flattenOptions:Rn,onActiveValue:ea,defaultActiveFirstOption:pa,onSelect:Ja,menuItemSelectedIcon:jt,rawValues:_i,fieldNames:rr,virtual:Dr,direction:cn,listHeight:En,listItemHeight:ar,childrenAsData:nr})},[vn,Rn,ea,pa,Ja,jt,_i,rr,Zt,tr,En,ar,nr]);return Fe.createElement(jr.Provider,{value:Si},Fe.createElement(Yt,(0,ye.Z)({},pr,{id:mr,prefixCls:Mt,ref:Ie,omitDomProps:Dn,mode:ht,displayValues:Yi,onDisplayValuesChange:Ea,direction:cn,searchValue:cr,onSearch:ma,autoClearSearchValue:On,onSearchSplit:ta,dropdownMatchSelectWidth:tr,OptionList:Vr,emptyOptions:!Rn.length,activeValue:bi,activeDescendantId:"".concat(mr,"_list_").concat(Ki)})))}),st=br;st.Option=ur,st.OptGroup=In;var Ae=st,Ne=Ae},9296:function(fn,Jt,fe){"use strict";fe.r(Jt),fe.d(Jt,{ResizableTextArea:function(){return Lt},default:function(){return Xt}});var ye=fe(60499),We=fe(85899),Te=fe(18642),it=fe(43749),be=fe(72190),_e=fe(42244),Re=fe(77654),Ce=fe(92310),Ee=fe.n(Ce),Fe=fe(93681),lt=fe(5643),De=fe(18929),Ke=fe(59301),ft=fe(29301),Ve=fe(34280),rt=fe(16089),Xe=` 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; `,St=["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={},Je;function dt(qt){var Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,He=qt.getAttribute("id")||qt.getAttribute("data-reactid")||qt.getAttribute("name");if(Ot&&Kt[He])return Kt[He];var xe=window.getComputedStyle(qt),gt=xe.getPropertyValue("box-sizing")||xe.getPropertyValue("-moz-box-sizing")||xe.getPropertyValue("-webkit-box-sizing"),nn=parseFloat(xe.getPropertyValue("padding-bottom"))+parseFloat(xe.getPropertyValue("padding-top")),Vt=parseFloat(xe.getPropertyValue("border-bottom-width"))+parseFloat(xe.getPropertyValue("border-top-width")),Qe=St.map(function(kt){return"".concat(kt,":").concat(xe.getPropertyValue(kt))}).join(";"),Ue={sizingStyle:Qe,paddingSize:nn,borderSize:Vt,boxSizing:gt};return Ot&&He&&(Kt[He]=Ue),Ue}function Ze(qt){var Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,He=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,xe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Je||(Je=document.createElement("textarea"),Je.setAttribute("tab-index","-1"),Je.setAttribute("aria-hidden","true"),document.body.appendChild(Je)),qt.getAttribute("wrap")?Je.setAttribute("wrap",qt.getAttribute("wrap")):Je.removeAttribute("wrap");var gt=dt(qt,Ot),nn=gt.paddingSize,Vt=gt.borderSize,Qe=gt.boxSizing,Ue=gt.sizingStyle;Je.setAttribute("style","".concat(Ue,";").concat(Xe)),Je.value=qt.value||qt.placeholder||"";var kt=void 0,dn=void 0,Et,$t=Je.scrollHeight;if(Qe==="border-box"?$t+=Vt:Qe==="content-box"&&($t-=nn),He!==null||xe!==null){Je.value=" ";var wt=Je.scrollHeight-nn;He!==null&&(kt=wt*He,Qe==="border-box"&&(kt=kt+nn+Vt),$t=Math.max(kt,$t)),xe!==null&&(dn=wt*xe,Qe==="border-box"&&(dn=dn+nn+Vt),Et=$t>dn?"":"hidden",$t=Math.min(dn,$t))}var Dt={height:$t,overflowY:Et,resize:"none"};return kt&&(Dt.minHeight=kt),dn&&(Dt.maxHeight=dn),Dt}var Me=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ze=0,$e=1,pt=2,Ge=Ke.forwardRef(function(qt,Ot){var He=qt,xe=He.prefixCls,gt=He.onPressEnter,nn=He.defaultValue,Vt=He.value,Qe=He.autoSize,Ue=He.onResize,kt=He.className,dn=He.style,Et=He.disabled,$t=He.onChange,wt=He.onInternalAutoSize,Dt=(0,_e.Z)(He,Me),Pt=(0,De.Z)(nn,{value:Vt,postState:function(In){return In!=null?In:""}}),ve=(0,be.Z)(Pt,2),le=ve[0],oe=ve[1],ce=function(In){oe(In.target.value),$t==null||$t(In)},de=Ke.useRef();Ke.useImperativeHandle(Ot,function(){return{textArea:de.current}});var se=Ke.useMemo(function(){return Qe&&(0,it.Z)(Qe)==="object"?[Qe.minRows,Qe.maxRows]:[]},[Qe]),Le=(0,be.Z)(se,2),qe=Le[0],vt=Le[1],yt=!!Qe,_t=function(){try{if(document.activeElement===de.current){var In=de.current,lr=In.selectionStart,ur=In.selectionEnd,gn=In.scrollTop;de.current.setSelectionRange(lr,ur),de.current.scrollTop=gn}}catch(yr){}},Tt=Ke.useState(pt),zt=(0,be.Z)(Tt,2),Yt=zt[0],on=zt[1],ot=Ke.useState(),Ut=(0,be.Z)(ot,2),Cn=Ut[0],nt=Ut[1],mt=function(){on(ze)};(0,Ve.Z)(function(){yt&&mt()},[Vt,qe,vt,yt]),(0,Ve.Z)(function(){if(Yt===ze)on($e);else if(Yt===$e){var Vn=Ze(de.current,!1,qe,vt);on(pt),nt(Vn)}else _t()},[Yt]);var Bt=Ke.useRef(),xn=function(){rt.Z.cancel(Bt.current)},bn=function(In){Yt===pt&&(Ue==null||Ue(In),Qe&&(xn(),Bt.current=(0,rt.Z)(function(){mt()})))};Ke.useEffect(function(){return xn},[]);var yn=yt?Cn:null,Nn=(0,We.Z)((0,We.Z)({},dn),yn);return(Yt===ze||Yt===$e)&&(Nn.overflowY="hidden",Nn.overflowX="hidden"),Ke.createElement(ft.Z,{onResize:bn,disabled:!(Qe||Ue)},Ke.createElement("textarea",(0,ye.Z)({},Dt,{ref:de,style:Nn,className:Ee()(xe,kt,(0,Te.Z)({},"".concat(xe,"-disabled"),Et)),disabled:Et,value:le,onChange:ce})))}),Lt=Ge,at=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function At(qt,Ot){return(0,Re.Z)(qt||"").slice(0,Ot).join("")}function tt(qt,Ot,He,xe){var gt=He;return qt?gt=At(He,xe):(0,Re.Z)(Ot||"").lengthxe&&(gt=Ot),gt}var Nt=Ke.forwardRef(function(qt,Ot){var He,xe=qt.defaultValue,gt=qt.value,nn=qt.onFocus,Vt=qt.onBlur,Qe=qt.onChange,Ue=qt.allowClear,kt=qt.maxLength,dn=qt.onCompositionStart,Et=qt.onCompositionEnd,$t=qt.suffix,wt=qt.prefixCls,Dt=wt===void 0?"rc-textarea":wt,Pt=qt.classes,ve=qt.showCount,le=qt.className,oe=qt.style,ce=qt.disabled,de=qt.hidden,se=qt.classNames,Le=qt.styles,qe=qt.onResize,vt=(0,_e.Z)(qt,at),yt=(0,De.Z)(xe,{value:gt,defaultValue:xe}),_t=(0,be.Z)(yt,2),Tt=_t[0],zt=_t[1],Yt=(0,Ke.useRef)(null),on=Ke.useState(!1),ot=(0,be.Z)(on,2),Ut=ot[0],Cn=ot[1],nt=Ke.useState(!1),mt=(0,be.Z)(nt,2),Bt=mt[0],xn=mt[1],bn=Ke.useRef(),yn=Ke.useRef(0),Nn=Ke.useState(null),Vn=(0,be.Z)(Nn,2),In=Vn[0],lr=Vn[1],ur=function(){var Bn;(Bn=Yt.current)===null||Bn===void 0||Bn.textArea.focus()};(0,Ke.useImperativeHandle)(Ot,function(){return{resizableTextArea:Yt.current,focus:ur,blur:function(){var Bn;(Bn=Yt.current)===null||Bn===void 0||Bn.textArea.blur()}}}),(0,Ke.useEffect)(function(){Cn(function(Dn){return!ce&&Dn})},[ce]);var gn=Number(kt)>0,yr=function(Bn){xn(!0),bn.current=Tt,yn.current=Bn.currentTarget.selectionStart,dn==null||dn(Bn)},Pr=function(Bn){xn(!1);var br=Bn.currentTarget.value;if(gn){var st,Ae=yn.current>=kt+1||yn.current===((st=bn.current)===null||st===void 0?void 0:st.length);br=tt(Ae,bn.current,br,kt)}br!==Tt&&(zt(br),(0,lt.rJ)(Bn.currentTarget,Bn,Qe,br)),Et==null||Et(Bn)},zr=function(Bn){var br=Bn.target.value;if(!Bt&&gn){var st=Bn.target.selectionStart>=kt+1||Bn.target.selectionStart===br.length||!Bn.target.selectionStart;br=tt(st,Tt,br,kt)}zt(br),(0,lt.rJ)(Bn.currentTarget,Bn,Qe,br)},jr=function(Bn){var br=vt.onPressEnter,st=vt.onKeyDown;Bn.key==="Enter"&&br&&br(Bn),st==null||st(Bn)},Ar=function(Bn){Cn(!0),nn==null||nn(Bn)},Xr=function(Bn){Cn(!1),Vt==null||Vt(Bn)},fr=function(Bn){var br;zt(""),ur(),(0,lt.rJ)((br=Yt.current)===null||br===void 0?void 0:br.textArea,Bn,Qe)},Gr=(0,lt.D7)(Tt);!Bt&&gn&>==null&&(Gr=At(Gr,kt));var Yr=$t,Vr;if(ve){var qr=(0,Re.Z)(Gr).length;(0,it.Z)(ve)==="object"?Vr=ve.formatter({value:Gr,count:qr,maxLength:kt}):Vr="".concat(qr).concat(gn?" / ".concat(kt):""),Yr=Ke.createElement(Ke.Fragment,null,Yr,Ke.createElement("span",{className:Ee()("".concat(Dt,"-data-count"),se==null?void 0:se.count),style:Le==null?void 0:Le.count},Vr))}var Hr=function(Bn){var br;qe==null||qe(Bn),(br=Yt.current)!==null&&br!==void 0&&br.textArea.style.height&&lr(!0)},er=!vt.autoSize&&!ve&&!Ue,vr=Ke.createElement(Fe.BaseInput,{value:Gr,allowClear:Ue,handleReset:fr,suffix:Yr,prefixCls:Dt,classes:{affixWrapper:Ee()(Pt==null?void 0:Pt.affixWrapper,(He={},(0,Te.Z)(He,"".concat(Dt,"-show-count"),ve),(0,Te.Z)(He,"".concat(Dt,"-textarea-allow-clear"),Ue),He))},disabled:ce,focused:Ut,className:le,style:(0,We.Z)((0,We.Z)({},oe),In&&!er?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Vr=="string"?Vr:void 0}},hidden:de,inputElement:Ke.createElement(Lt,(0,ye.Z)({},vt,{onKeyDown:jr,onChange:zr,onFocus:Ar,onBlur:Xr,onCompositionStart:yr,onCompositionEnd:Pr,className:se==null?void 0:se.textarea,style:(0,We.Z)((0,We.Z)({},Le==null?void 0:Le.textarea),{},{resize:oe==null?void 0:oe.resize}),disabled:ce,prefixCls:Dt,onResize:Hr,ref:Yt}))});return vr}),tn=Nt,Xt=tn},48911:function(fn,Jt,fe){"use strict";fe.d(Jt,{Z:function(){return Pt}});var ye=fe(60499),We=fe(43749),Te=fe(85899),it=fe(18642),be=fe(72190),_e=fe(42244),Re=fe(92310),Ce=fe.n(Re),Ee=fe(29301),Fe=fe(70425),lt=fe(34280),De=fe(59301),Ke=fe(4676),ft=De.forwardRef(function(ve,le){var oe=ve.height,ce=ve.offsetY,de=ve.offsetX,se=ve.children,Le=ve.prefixCls,qe=ve.onInnerResize,vt=ve.innerProps,yt=ve.rtl,_t=ve.extra,Tt={},zt={display:"flex",flexDirection:"column"};return ce!==void 0&&(Tt={height:oe,position:"relative",overflow:"hidden"},zt=(0,Te.Z)((0,Te.Z)({},zt),{},(0,it.Z)((0,it.Z)((0,it.Z)((0,it.Z)((0,it.Z)({transform:"translateY(".concat(ce,"px)")},yt?"marginRight":"marginLeft",-de),"position","absolute"),"left",0),"right",0),"top",0))),De.createElement("div",{style:Tt},De.createElement(Ee.Z,{onResize:function(on){var ot=on.offsetHeight;ot&&qe&&qe()}},De.createElement("div",(0,ye.Z)({style:zt,className:Ce()((0,it.Z)({},"".concat(Le,"-holder-inner"),Le)),ref:le},vt),se,_t)))});ft.displayName="Filler";var Ve=ft;function rt(ve){var le=ve.children,oe=ve.setRef,ce=De.useCallback(function(de){oe(de)},[]);return De.cloneElement(le,{ref:ce})}function Xe(ve,le,oe,ce,de,se,Le,qe){var vt=qe.getKey;return ve.slice(le,oe+1).map(function(yt,_t){var Tt=le+_t,zt=Le(yt,Tt,{style:{width:ce},offsetX:de}),Yt=vt(yt);return De.createElement(rt,{key:Yt,setRef:function(ot){return se(yt,ot)}},zt)})}function St(ve,le,oe,ce){var de=oe-ve,se=le-oe,Le=Math.min(de,se)*2;if(ce<=Le){var qe=Math.floor(ce/2);return ce%2?oe+qe+1:oe-qe}return de>se?oe-(ce-se):oe+(ce-de)}function Kt(ve,le,oe){var ce=ve.length,de=le.length,se,Le;if(ce===0&&de===0)return null;ce2&&arguments[2]!==void 0?arguments[2]:!1,Tt=vt?yt<0&&qe.current.left||yt>0&&qe.current.right:yt<0&&qe.current.top||yt>0&&qe.current.bottom;return _t&&Tt?(clearTimeout(se.current),de.current=!1):(!Tt||de.current)&&Le(),!de.current&&Tt}};function $e(ve,le,oe,ce,de,se,Le){var qe=(0,De.useRef)(0),vt=(0,De.useRef)(null),yt=(0,De.useRef)(null),_t=(0,De.useRef)(!1),Tt=ze(le,oe,ce,de);function zt(nt,mt){if(dt.Z.cancel(vt.current),!Tt(!1,mt)){var Bt=nt;if(!Bt._virtualHandled)Bt._virtualHandled=!0;else return;qe.current+=mt,yt.current=mt,Me||Bt.preventDefault(),vt.current=(0,dt.Z)(function(){var xn=_t.current?10:1;Le(qe.current*xn,!1),qe.current=0})}}function Yt(nt,mt){Le(mt,!0),Me||nt.preventDefault()}var on=(0,De.useRef)(null),ot=(0,De.useRef)(null);function Ut(nt){if(ve){dt.Z.cancel(ot.current),ot.current=(0,dt.Z)(function(){on.current=null},2);var mt=nt.deltaX,Bt=nt.deltaY,xn=nt.shiftKey,bn=mt,yn=Bt;(on.current==="sx"||!on.current&&xn&&Bt&&!mt)&&(bn=Bt,yn=0,on.current="sx");var Nn=Math.abs(bn),Vn=Math.abs(yn);on.current===null&&(on.current=se&&Nn>Vn?"x":"y"),on.current==="y"?zt(nt,yn):Yt(nt,bn)}}function Cn(nt){ve&&(_t.current=nt.detail===yt.current)}return[Ut,Cn]}function pt(ve,le,oe,ce){var de=De.useMemo(function(){return[new Map,[]]},[ve,oe.id,ce]),se=(0,be.Z)(de,2),Le=se[0],qe=se[1],vt=function(_t){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_t,zt=Le.get(_t),Yt=Le.get(Tt);if(zt===void 0||Yt===void 0)for(var on=ve.length,ot=qe.length;ot0&&arguments[0]!==void 0?arguments[0]:!1;_t();var on=function(){var Cn=!1;qe.current.forEach(function(nt,mt){if(nt&&nt.offsetParent){var Bt=nt.offsetHeight,xn=getComputedStyle(nt),bn=xn.marginTop,yn=xn.marginBottom,Nn=tt(bn),Vn=tt(yn),In=Bt+Nn+Vn;vt.current.get(mt)!==In&&(vt.current.set(mt,In),Cn=!0)}}),Cn&&Le(function(nt){return nt+1})};if(Yt)on();else{yt.current+=1;var ot=yt.current;Promise.resolve().then(function(){ot===yt.current&&on()})}}function zt(Yt,on){var ot=ve(Yt),Ut=qe.current.get(ot);on?(qe.current.set(ot,on),Tt()):qe.current.delete(ot),!Ut!=!on&&(on?le==null||le(Yt):oe==null||oe(Yt))}return(0,De.useEffect)(function(){return _t},[]),[zt,Tt,vt.current,se]}var tn=14/15;function Xt(ve,le,oe){var ce=(0,De.useRef)(!1),de=(0,De.useRef)(0),se=(0,De.useRef)(0),Le=(0,De.useRef)(null),qe=(0,De.useRef)(null),vt,yt=function(Yt){if(ce.current){var on=Math.ceil(Yt.touches[0].pageX),ot=Math.ceil(Yt.touches[0].pageY),Ut=de.current-on,Cn=se.current-ot,nt=Math.abs(Ut)>Math.abs(Cn);nt?de.current=on:se.current=ot;var mt=oe(nt,nt?Ut:Cn,!1,Yt);mt&&Yt.preventDefault(),clearInterval(qe.current),mt&&(qe.current=setInterval(function(){nt?Ut*=tn:Cn*=tn;var Bt=Math.floor(nt?Ut:Cn);(!oe(nt,Bt,!0)||Math.abs(Bt)<=.1)&&clearInterval(qe.current)},16))}},_t=function(){ce.current=!1,vt()},Tt=function(Yt){vt(),Yt.touches.length===1&&!ce.current&&(ce.current=!0,de.current=Math.ceil(Yt.touches[0].pageX),se.current=Math.ceil(Yt.touches[0].pageY),Le.current=Yt.target,Le.current.addEventListener("touchmove",yt,{passive:!1}),Le.current.addEventListener("touchend",_t,{passive:!0}))};vt=function(){Le.current&&(Le.current.removeEventListener("touchmove",yt),Le.current.removeEventListener("touchend",_t))},(0,lt.Z)(function(){return ve&&le.current.addEventListener("touchstart",Tt,{passive:!0}),function(){var zt;(zt=le.current)===null||zt===void 0||zt.removeEventListener("touchstart",Tt),vt(),clearInterval(qe.current)}},[ve])}function qt(ve){return Math.floor(Math.pow(ve,.5))}function Ot(ve,le){var oe="touches"in ve?ve.touches[0]:ve;return oe[le?"pageX":"pageY"]-window[le?"scrollX":"scrollY"]}function He(ve,le,oe){De.useEffect(function(){var ce=le.current;if(ve&&ce){var de=!1,se,Le,qe=function(){dt.Z.cancel(se)},vt=function zt(){qe(),se=(0,dt.Z)(function(){oe(Le),zt()})},yt=function(){de=!1,qe()},_t=function(Yt){if(!(Yt.target.draggable||Yt.button!==0)){var on=Yt;on._virtualHandled||(on._virtualHandled=!0,de=!0)}},Tt=function(Yt){if(de){var on=Ot(Yt,!1),ot=ce.getBoundingClientRect(),Ut=ot.top,Cn=ot.bottom;if(on<=Ut){var nt=Ut-on;Le=-qt(nt),vt()}else if(on>=Cn){var mt=on-Cn;Le=qt(mt),vt()}else qe()}};return ce.addEventListener("mousedown",_t),ce.ownerDocument.addEventListener("mouseup",yt),ce.ownerDocument.addEventListener("mousemove",Tt),ce.ownerDocument.addEventListener("dragend",yt),function(){ce.removeEventListener("mousedown",_t),ce.ownerDocument.removeEventListener("mouseup",yt),ce.ownerDocument.removeEventListener("mousemove",Tt),ce.ownerDocument.removeEventListener("dragend",yt),qe()}}},[ve])}var xe=10;function gt(ve,le,oe,ce,de,se,Le,qe){var vt=De.useRef(),yt=De.useState(null),_t=(0,be.Z)(yt,2),Tt=_t[0],zt=_t[1];return(0,lt.Z)(function(){if(Tt&&Tt.times=0;yr-=1){var Pr=de(le[yr]),zr=oe.get(Pr);if(zr===void 0){nt=!0;break}if(gn-=zr,gn<=0)break}switch(xn){case"top":Bt=yn-Ut;break;case"bottom":Bt=Nn-Cn+Ut;break;default:{var jr=ve.current.scrollTop,Ar=jr+Cn;ynAr&&(mt="bottom")}}Bt!==null&&Le(Bt),Bt!==Tt.lastTop&&(nt=!0)}nt&&zt((0,Te.Z)((0,Te.Z)({},Tt),{},{times:Tt.times+1,targetAlign:mt,lastTop:Bt}))}},[Tt,ve.current]),function(Yt){if(Yt==null){qe();return}if(dt.Z.cancel(vt.current),typeof Yt=="number")Le(Yt);else if(Yt&&(0,We.Z)(Yt)==="object"){var on,ot=Yt.align;"index"in Yt?on=Yt.index:on=le.findIndex(function(nt){return de(nt)===Yt.key});var Ut=Yt.offset,Cn=Ut===void 0?0:Ut;zt({times:0,index:on,offset:Cn,originAlign:ot})}}}var nn=De.forwardRef(function(ve,le){var oe=ve.prefixCls,ce=ve.rtl,de=ve.scrollOffset,se=ve.scrollRange,Le=ve.onStartMove,qe=ve.onStopMove,vt=ve.onScroll,yt=ve.horizontal,_t=ve.spinSize,Tt=ve.containerSize,zt=ve.style,Yt=ve.thumbStyle,on=ve.showScrollBar,ot=De.useState(!1),Ut=(0,be.Z)(ot,2),Cn=Ut[0],nt=Ut[1],mt=De.useState(null),Bt=(0,be.Z)(mt,2),xn=Bt[0],bn=Bt[1],yn=De.useState(null),Nn=(0,be.Z)(yn,2),Vn=Nn[0],In=Nn[1],lr=!ce,ur=De.useRef(),gn=De.useRef(),yr=De.useState(on),Pr=(0,be.Z)(yr,2),zr=Pr[0],jr=Pr[1],Ar=De.useRef(),Xr=function(){on===!0||on===!1||(clearTimeout(Ar.current),jr(!0),Ar.current=setTimeout(function(){jr(!1)},3e3))},fr=se-Tt||0,Gr=Tt-_t||0,Yr=De.useMemo(function(){if(de===0||fr===0)return 0;var st=de/fr;return st*Gr},[de,fr,Gr]),Vr=function(Ae){Ae.stopPropagation(),Ae.preventDefault()},qr=De.useRef({top:Yr,dragging:Cn,pageY:xn,startTop:Vn});qr.current={top:Yr,dragging:Cn,pageY:xn,startTop:Vn};var Hr=function(Ae){nt(!0),bn(Ot(Ae,yt)),In(qr.current.top),Le(),Ae.stopPropagation(),Ae.preventDefault()};De.useEffect(function(){var st=function(Ie){Ie.preventDefault()},Ae=ur.current,Ne=gn.current;return Ae.addEventListener("touchstart",st,{passive:!1}),Ne.addEventListener("touchstart",Hr,{passive:!1}),function(){Ae.removeEventListener("touchstart",st),Ne.removeEventListener("touchstart",Hr)}},[]);var er=De.useRef();er.current=fr;var vr=De.useRef();vr.current=Gr,De.useEffect(function(){if(Cn){var st,Ae=function(Ie){var Ye=qr.current,ht=Ye.dragging,Ht=Ye.pageY,Mt=Ye.startTop;dt.Z.cancel(st);var Wt=ur.current.getBoundingClientRect(),an=Tt/(yt?Wt.width:Wt.height);if(ht){var ln=(Ot(Ie,yt)-Ht)*an,pn=Mt;!lr&&yt?pn-=ln:pn+=ln;var Ct=er.current,rn=vr.current,On=rn?pn/rn:0,Mn=Math.ceil(On*Ct);Mn=Math.max(Mn,0),Mn=Math.min(Mn,Ct),st=(0,dt.Z)(function(){vt(Mn,yt)})}},Ne=function(){nt(!1),qe()};return window.addEventListener("mousemove",Ae,{passive:!0}),window.addEventListener("touchmove",Ae,{passive:!0}),window.addEventListener("mouseup",Ne,{passive:!0}),window.addEventListener("touchend",Ne,{passive:!0}),function(){window.removeEventListener("mousemove",Ae),window.removeEventListener("touchmove",Ae),window.removeEventListener("mouseup",Ne),window.removeEventListener("touchend",Ne),dt.Z.cancel(st)}}},[Cn]),De.useEffect(function(){return Xr(),function(){clearTimeout(Ar.current)}},[de]),De.useImperativeHandle(le,function(){return{delayHidden:Xr}});var Dn="".concat(oe,"-scrollbar"),Bn={position:"absolute",visibility:zr?null:"hidden"},br={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return yt?(Object.assign(Bn,{height:8,left:0,right:0,bottom:0}),Object.assign(br,(0,it.Z)({height:"100%",width:_t},lr?"left":"right",Yr))):(Object.assign(Bn,(0,it.Z)({width:8,top:0,bottom:0},lr?"right":"left",0)),Object.assign(br,{width:"100%",height:_t,top:Yr})),De.createElement("div",{ref:ur,className:Ce()(Dn,(0,it.Z)((0,it.Z)((0,it.Z)({},"".concat(Dn,"-horizontal"),yt),"".concat(Dn,"-vertical"),!yt),"".concat(Dn,"-visible"),zr)),style:(0,Te.Z)((0,Te.Z)({},Bn),zt),onMouseDown:Vr,onMouseMove:Xr},De.createElement("div",{ref:gn,className:Ce()("".concat(Dn,"-thumb"),(0,it.Z)({},"".concat(Dn,"-thumb-moving"),Cn)),style:(0,Te.Z)((0,Te.Z)({},br),Yt),onMouseDown:Hr}))}),Vt=nn,Qe=20;function Ue(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,oe=ve/le*ve;return isNaN(oe)&&(oe=0),oe=Math.max(oe,Qe),Math.floor(oe)}var kt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],dn=[],Et={overflowY:"auto",overflowAnchor:"none"};function $t(ve,le){var oe=ve.prefixCls,ce=oe===void 0?"rc-virtual-list":oe,de=ve.className,se=ve.height,Le=ve.itemHeight,qe=ve.fullHeight,vt=qe===void 0?!0:qe,yt=ve.style,_t=ve.data,Tt=ve.children,zt=ve.itemKey,Yt=ve.virtual,on=ve.direction,ot=ve.scrollWidth,Ut=ve.component,Cn=Ut===void 0?"div":Ut,nt=ve.onScroll,mt=ve.onVirtualScroll,Bt=ve.onVisibleChange,xn=ve.innerProps,bn=ve.extraRender,yn=ve.styles,Nn=ve.showScrollBar,Vn=Nn===void 0?"optional":Nn,In=(0,_e.Z)(ve,kt),lr=De.useCallback(function(Yn){return typeof zt=="function"?zt(Yn):Yn==null?void 0:Yn[zt]},[zt]),ur=Nt(lr,null,null),gn=(0,be.Z)(ur,4),yr=gn[0],Pr=gn[1],zr=gn[2],jr=gn[3],Ar=!!(Yt!==!1&&se&&Le),Xr=De.useMemo(function(){return Object.values(zr.maps).reduce(function(Yn,jn){return Yn+jn},0)},[zr.id,zr.maps]),fr=Ar&&_t&&(Math.max(Le*_t.length,Xr)>se||!!ot),Gr=on==="rtl",Yr=Ce()(ce,(0,it.Z)({},"".concat(ce,"-rtl"),Gr),de),Vr=_t||dn,qr=(0,De.useRef)(),Hr=(0,De.useRef)(),er=(0,De.useRef)(),vr=(0,De.useState)(0),Dn=(0,be.Z)(vr,2),Bn=Dn[0],br=Dn[1],st=(0,De.useState)(0),Ae=(0,be.Z)(st,2),Ne=Ae[0],Be=Ae[1],Ie=(0,De.useState)(!1),Ye=(0,be.Z)(Ie,2),ht=Ye[0],Ht=Ye[1],Mt=function(){Ht(!0)},Wt=function(){Ht(!1)},an={getKey:lr};function ln(Yn){br(function(jn){var Lr;typeof Yn=="function"?Lr=Yn(jn):Lr=Yn;var Ir=ar(Lr);return qr.current.scrollTop=Ir,Ir})}var pn=(0,De.useRef)({start:0,end:Vr.length}),Ct=(0,De.useRef)(),rn=Je(Vr,lr),On=(0,be.Z)(rn,1),Mn=On[0];Ct.current=Mn;var Pn=De.useMemo(function(){if(!Ar)return{scrollHeight:void 0,start:0,end:Vr.length-1,offset:void 0};if(!fr){var Yn;return{scrollHeight:((Yn=Hr.current)===null||Yn===void 0?void 0:Yn.offsetHeight)||0,start:0,end:Vr.length-1,offset:void 0}}for(var jn=0,Lr,Ir,si,Yi=Vr.length,_i=0;_i=Bn&&Lr===void 0&&(Lr=_i,Ir=jn),Hn>Bn+se&&si===void 0&&(si=_i),jn=Hn}return Lr===void 0&&(Lr=0,Ir=0,si=Math.ceil(se/Le)),si===void 0&&(si=Vr.length-1),si=Math.min(si+1,Vr.length-1),{scrollHeight:jn,start:Lr,end:si,offset:Ir}},[fr,Ar,Bn,Vr,jr,se]),Ln=Pn.scrollHeight,tr=Pn.start,hn=Pn.end,qn=Pn.offset;pn.current.start=tr,pn.current.end=hn,De.useLayoutEffect(function(){var Yn=zr.getRecord();if(Yn.size===1){var jn=Array.from(Yn.keys())[0],Lr=Yn.get(jn),Ir=Vr[tr];if(Ir&&Lr===void 0){var si=lr(Ir);if(si===jn){var Yi=zr.get(jn),_i=Yi-Le;ln(function(Jr){return Jr+_i})}}}zr.resetRecord()},[Ln]);var et=De.useState({width:0,height:se}),It=(0,be.Z)(et,2),Ft=It[0],Qt=It[1],Rt=function(jn){Qt({width:jn.offsetWidth,height:jn.offsetHeight})},jt=(0,De.useRef)(),Zt=(0,De.useRef)(),cn=De.useMemo(function(){return Ue(Ft.width,ot)},[Ft.width,ot]),mn=De.useMemo(function(){return Ue(Ft.height,Ln)},[Ft.height,Ln]),En=Ln-se,Un=(0,De.useRef)(En);Un.current=En;function ar(Yn){var jn=Yn;return Number.isNaN(Un.current)||(jn=Math.min(jn,Un.current)),jn=Math.max(jn,0),jn}var xr=Bn<=0,or=Bn>=En,$n=Ne<=0,wr=Ne>=ot,pr=ze(xr,or,$n,wr),mr=function(){return{x:Gr?-Ne:Ne,y:Bn}},Wn=(0,De.useRef)(mr()),nr=(0,Fe.useEvent)(function(Yn){if(mt){var jn=(0,Te.Z)((0,Te.Z)({},mr()),Yn);(Wn.current.x!==jn.x||Wn.current.y!==jn.y)&&(mt(jn),Wn.current=jn)}});function hr(Yn,jn){var Lr=Yn;jn?((0,Ke.flushSync)(function(){Be(Lr)}),nr()):ln(Lr)}function rr(Yn){var jn=Yn.currentTarget.scrollTop;jn!==Bn&&ln(jn),nt==null||nt(Yn),nr()}var Tr=function(jn){var Lr=jn,Ir=ot?ot-Ft.width:0;return Lr=Math.max(Lr,0),Lr=Math.min(Lr,Ir),Lr},$r=(0,Fe.useEvent)(function(Yn,jn){jn?((0,Ke.flushSync)(function(){Be(function(Lr){var Ir=Lr+(Gr?-Yn:Yn);return Tr(Ir)})}),nr()):ln(function(Lr){var Ir=Lr+Yn;return Ir})}),cr=$e(Ar,xr,or,$n,wr,!!ot,$r),kn=(0,be.Z)(cr,2),vn=kn[0],sr=kn[1];Xt(Ar,qr,function(Yn,jn,Lr,Ir){var si=Ir;return pr(Yn,jn,Lr)?!1:!si||!si._virtualHandled?(si&&(si._virtualHandled=!0),vn({preventDefault:function(){},deltaX:Yn?jn:0,deltaY:Yn?0:jn}),!0):!1}),He(fr,qr,function(Yn){ln(function(jn){return jn+Yn})}),(0,lt.Z)(function(){function Yn(Lr){var Ir=xr&&Lr.detail<0,si=or&&Lr.detail>0;Ar&&!Ir&&!si&&Lr.preventDefault()}var jn=qr.current;return jn.addEventListener("wheel",vn,{passive:!1}),jn.addEventListener("DOMMouseScroll",sr,{passive:!0}),jn.addEventListener("MozMousePixelScroll",Yn,{passive:!1}),function(){jn.removeEventListener("wheel",vn),jn.removeEventListener("DOMMouseScroll",sr),jn.removeEventListener("MozMousePixelScroll",Yn)}},[Ar,xr,or]),(0,lt.Z)(function(){if(ot){var Yn=Tr(Ne);Be(Yn),nr({x:Yn})}},[Ft.width,ot]);var Xn=function(){var jn,Lr;(jn=jt.current)===null||jn===void 0||jn.delayHidden(),(Lr=Zt.current)===null||Lr===void 0||Lr.delayHidden()},Sr=gt(qr,Vr,zr,Le,lr,function(){return Pr(!0)},ln,Xn);De.useImperativeHandle(le,function(){return{nativeElement:er.current,getScrollInfo:mr,scrollTo:function(jn){function Lr(Ir){return Ir&&(0,We.Z)(Ir)==="object"&&("left"in Ir||"top"in Ir)}Lr(jn)?(jn.left!==void 0&&Be(Tr(jn.left)),Sr(jn.top)):Sr(jn)}}}),(0,lt.Z)(function(){if(Bt){var Yn=Vr.slice(tr,hn+1);Bt(Yn,Vr)}},[tr,hn,Vr]);var Or=pt(Vr,lr,zr,Le),Mr=bn==null?void 0:bn({start:tr,end:hn,virtual:fr,offsetX:Ne,offsetY:qn,rtl:Gr,getSize:Or}),Qr=Xe(Vr,tr,hn,ot,Ne,yr,Tt,an),Rr=null;se&&(Rr=(0,Te.Z)((0,it.Z)({},vt?"height":"maxHeight",se),Et),Ar&&(Rr.overflowY="hidden",ot&&(Rr.overflowX="hidden"),ht&&(Rr.pointerEvents="none")));var fi={};return Gr&&(fi.dir="rtl"),De.createElement("div",(0,ye.Z)({ref:er,style:(0,Te.Z)((0,Te.Z)({},yt),{},{position:"relative"}),className:Yr},fi,In),De.createElement(Ee.Z,{onResize:Rt},De.createElement(Cn,{className:"".concat(ce,"-holder"),style:Rr,ref:qr,onScroll:rr,onMouseEnter:Xn},De.createElement(Ve,{prefixCls:ce,height:Ln,offsetX:Ne,offsetY:qn,scrollWidth:ot,onInnerResize:Pr,ref:Hr,innerProps:xn,rtl:Gr,extra:Mr},Qr))),fr&&Ln>se&&De.createElement(Vt,{ref:jt,prefixCls:ce,scrollOffset:Bn,scrollRange:Ln,rtl:Gr,onScroll:hr,onStartMove:Mt,onStopMove:Wt,spinSize:mn,containerSize:Ft.height,style:yn==null?void 0:yn.verticalScrollBar,thumbStyle:yn==null?void 0:yn.verticalScrollBarThumb,showScrollBar:Vn}),fr&&ot>Ft.width&&De.createElement(Vt,{ref:Zt,prefixCls:ce,scrollOffset:Ne,scrollRange:ot,rtl:Gr,onScroll:hr,onStartMove:Mt,onStopMove:Wt,spinSize:cn,containerSize:Ft.width,horizontal:!0,style:yn==null?void 0:yn.horizontalScrollBar,thumbStyle:yn==null?void 0:yn.horizontalScrollBarThumb,showScrollBar:Vn}))}var wt=De.forwardRef($t);wt.displayName="List";var Dt=wt,Pt=Dt},25510:function(fn){"use strict";fn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAAC0CAYAAAA9zQYyAAAAAXNSR0IArs4c6QAAQABJREFUeAHsvQuQpclVmJn3We+qfkxPT89oRqN5SKPRC0mgAQRYCwgkh2ExAWvDrrVrwOBl14shYh/GRBB2EF4CdlnvbmAvsGxgWEd4l2WNsYEwMkIYCQn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m+4C3eHlqSzUEIgI//gj7DyhZLC+0NkhTIKUCXKe0/pV//wAFBIgR1f8AEKN6qX/qKK0Acv8ANBwqHhrAqgVAOQV/CbB8YoDiACdJM/8A2J//2Q=="},48136:function(fn,Jt,fe){"use strict";var ye=Object.defineProperty,We=Object.defineProperties,Te=Object.getOwnPropertyDescriptors,it=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,Re=(a,y,b)=>y in a?ye(a,y,{enumerable:!0,configurable:!0,writable:!0,value:b}):a[y]=b,Ce=(a,y)=>{for(var b in y||(y={}))be.call(y,b)&&Re(a,b,y[b]);if(it)for(var b of it(y))_e.call(y,b)&&Re(a,b,y[b]);return a},Ee=(a,y)=>We(a,Te(y)),Fe=a=>typeof a=="symbol"?a:a+"",lt=(a,y)=>{var b={};for(var E in a)be.call(a,E)&&y.indexOf(E)<0&&(b[E]=a[E]);if(a!=null&&it)for(var E of it(a))y.indexOf(E)<0&&_e.call(a,E)&&(b[E]=a[E]);return b};function De(a){return Array.isArray(a)}var Ke={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 ft(){return"window"in globalThis&&"document"in globalThis}function Ve(){return"matchMedia"in window?window.matchMedia("(pointer: coarse)").matches:"ontouchstart"in window||navigator.maxTouchPoints>0}function rt(){return typeof navigator.vibrate=="function"}function Xe(){var a,y;if(!ft())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 St(){if(!ft())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 Je={strings:Ke,_locale:"",_dirty:!1,_subscribers:[],_numberFormatter:void 0,get locale(){return Je._locale||(Je._locale=ft()?navigator.language.slice(0,5):"en-US"),Je._locale},set locale(a){Je._locale=a,Je._numberFormatter=void 0,Je.dirty=!0},get numberFormatter(){return Je._numberFormatter||(Je._numberFormatter=new Intl.NumberFormat(Je.locale)),Je._numberFormatter},merge(a,y){if(typeof a=="string"&&y)Je.strings[a]=Ce(Ce({},Je.strings[a]),y),Je.dirty=!0;else for(const b of Object.keys(a))Je.merge(b,a[b])},get dirty(){return Je._dirty},set dirty(a){Je._dirty||Je._dirty===a||(Je._dirty=!0,setTimeout(()=>{Je._dirty=!1,this._subscribers.forEach(y=>y==null?void 0:y())},0))},subscribe(a){return Je._subscribers.push(a),Je._subscribers.length-1},unsubscribe(a){a<0||a>=Je._subscribers.length||(Je._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=dt(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=dt(E);ee&&b.setAttribute("aria-label",ee)}}}};function dt(a,...y){if(a===void 0)return;let b="";const E=Je.locale;Je.strings[E]&&(b=Je.strings[E][a]);const ee=E.slice(0,2);if(!b&&Je.strings[ee]&&(b=Je.strings[ee][a]),b||(b=Je.strings.en[a]),!b)return;const re=/(%@|%([0-9]+)\$@)/g;let ae=re.exec(b),he=0;for(;ae;){if(y[he++]){const ge=ae[2]?parseInt(ae[2],10)-1:he-1;let we=y[ge];typeof we=="number"&&(we=Je.numberFormatter.format(we)),b=b.replace(ae[1],we)}ae=re.exec(b)}return b=b.replace(/%%/g,"%"),b}var Ze={m0:"#3F3D99",m1:"#993D71",m2:"#998B3D",m3:"#3D9956",m4:"#3D5A99",m5:"#993D90",m6:"#996D3D",m7:"#43993D",m8:"#3D7999",m9:"#843D99"},Me={blue:"#0072BD",orange:"#D95319",yellow:"#EDB120",purple:"#7E2F8E",green:"#77AC30",cyan:"#4DBEEE",red:"#A2142F"},ze={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"},$e={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"},pt={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"},Ge={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 Lt(a){var y,b,E,ee,re,ae;const he=a.split("!");let pe,ge,we,Oe=255,je=255,ct=255,bt=-1;const un=he.length>0&&he[0].startsWith("-");un&&(he[0]=he[0].slice(1));for(let Kn=0;Kn=0&&(Oe=(1-bt)*Oe+bt*pe,je=(1-bt)*je+bt*ge,ct=(1-bt)*ct+bt*we,bt=-1),Kn+1=0&&(Oe=bt*Oe+(1-bt)*pe,je=bt*je+(1-bt)*ge,ct=bt*ct+(1-bt)*we),un&&(Oe=255-Oe,je=255-je,ct=255-ct),"#"+("00"+Math.round(Oe).toString(16)).slice(-2)+("00"+Math.round(je).toString(16)).slice(-2)+("00"+Math.round(ct).toString(16)).slice(-2)}function at(a){var y,b;return a=a.trim(),(b=(y=ze[a.toLowerCase()])!=null?y:ze[pt[a]])!=null?b:Lt(a)}function At(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 tt(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 Nt(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*tt(re,ee,y+2)),g:Math.round(255*tt(re,ee,y)),b:Math.round(255*tt(re,ee,y-2))}}function tn(a){return a<0?0:a>255?255:Math.round(a)}function Xt(a){const{r:y,g:b,b:E}=a;let ee=((1<<24)+(tn(y)<<16)+(tn(b)<<8)+tn(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 qt(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),ae=re-ee;let he,pe;re===ee?he=0:y===re?he=(b-E)/ae:b===re?he=2+(E-y)/ae:E===re&&(he=4+(y-b)/ae),he=Math.min(he*60,360),he<0&&(he+=360);const ge=(ee+re)/2;return re===ee?pe=0:ge<=.5?pe=ae/(re+ee):pe=ae/(2-re-ee),{h:he,s:pe,l:ge}}function Ot(a){let y=At(a);if(!y)return a;let{h:b,s:E,l:ee}=qt(y);return E+=.1,ee-=.1,Xt(Nt({h:b,s:E,l:ee}))}var He={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"},xe={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},gt=[{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 nn(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 gt)if((!y||ee.variant===y)&&(!b||ee.style===b)&&E>=ee.offset&&E120831)&&(a<8448||a>8527))return{char:String.fromCodePoint(a)};for(const b in xe)if(xe[b]===a){a=(y=b.codePointAt(0))!=null?y:0;break}for(const b of gt)if(a>=b.start&&a[]$&#^_%:'\u02DC".includes(E)){b+=E;continue}const ee=(y=E.codePointAt(0))!=null?y:0;let re=He[ee];if(re)re.startsWith("\\")?b+=re+" ":b+=re;else{const{char:ae,variant:he,style:pe}=Vt(ee);switch(re=ae,he){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(pe){case"bold":re=`\\mathbf{${re}}`;break;case"italic":re=`\\mathit{${re}}`;break;case"bolditalic":re=`\\mathbfit{${re}}`;break}b+=re}}return b}function Ue(a){return a?Array.isArray(a)?a:typeof a=="object"&&"group"in a?a.group:[]:[]}var kt={},dn=Ce({},He),Et={},$t={},wt={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}"},Dt={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}},Pt={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:Pt},"amsmath.sty":{package:Dt,primitive:!0},"texvc.sty":{package:wt,primitive:!1}},le={" ":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},oe=/[\w!@*()-=+{}\[\]\\';:?/.,~<>`|$%#&^" ]/,ce,de;St()?(ce=new RegExp("\\p{Letter}","u"),de=new RegExp("[0-9\\p{Letter}]","u")):(ce=/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/,de=/[\da-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/);function se(a,y,b="mord",E){y!==void 0&&(kt[a]={definitionType:"symbol",type:b,variant:E,codepoint:y},dn[y]||(dn[y]=a))}function Le(a,y,b){if(typeof a=="string"){for(let E=0;E{var pe,ge;return ae.frequency===he.frequency?ae.match.length===he.match.length?ae.matchae.match)}function _t(a){let y="auto";const b=a.match(/:([^=]+)/);return b&&(y=b[1].trim()),y}function Tt(a){if(!a)return[];const y=[];let b=a.split("]");if(b[0].startsWith("[")){y.push({isOptional:!0,type:_t(b[0].slice(1))});for(let E=1;E<=b.length;E++)y.push(...Tt(b[E]))}else if(b=a.split("}"),b[0].startsWith("{")){y.push({isOptional:!1,type:_t(b[0].slice(1))});for(let E=1;E<=b.length;E++)y.push(...Tt(b[E]))}return y}function zt(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 Yt(a,y){typeof a=="string"&&(a=[a]);const b={tabular:!1,params:[],createAtom:y};for(const E of a)$t[E]=b}function on(a,y,b){typeof a=="string"&&(a=[a]);const ee={tabular:!0,params:Tt(y),createAtom:b};for(const re of a)$t[re]=ee}function ot(a,y,b){var E,ee;b||(b={});const re={definitionType:"function",params:Tt(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")Et["\\"+a]=re;else for(const ae of a)Et["\\"+ae]=re}var Ut;function Cn(a){return Ut||(Ut=mt(ve)),a?mt(Ce(Ce({},Ut),a)):Ut}function nt(a,y){var b,E,ee,re;if(typeof a=="string"){let ae=0;const he=a;return/(^|[^\\])#1/.test(he)&&(ae=1),/(^|[^\\])#2/.test(he)&&(ae=2),/(^|[^\\])#3/.test(he)&&(ae=3),/(^|[^\\])#4/.test(he)&&(ae=4),/(^|[^\\])#5/.test(he)&&(ae=5),/(^|[^\\])#6/.test(he)&&(ae=6),/(^|[^\\])#7/.test(he)&&(ae=7),/(^|[^\\])#8/.test(he)&&(ae=8),/(^|[^\\])#9/.test(he)&&(ae=9),{expand:(b=y==null?void 0:y.expand)!=null?b:!0,captureSelection:(E=y==null?void 0:y.captureSelection)!=null?E:!0,args:ae,def:he}}return Ce({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 mt(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]=nt(E.package[ee],{expand:!E.primitive,captureSelection:E.captureSelection});else y[b]=nt(E)}return y}function Bt(a,y="math"){if(!a||a.length===0)return null;let b=null;if(a.startsWith("\\")){if(b=Et[a],b)return!b.ifMode||b.ifMode===y?b:null;y==="math"?b=kt[a]:le[a]&&(b={definitionType:"symbol",type:"mord",codepoint:le[a]})}else if(y==="math"){if(b=kt[a],!b&&a.length===1){const E=bn("math",a.codePointAt(0));return E.startsWith("\\")?Ee(Ce({},Bt(E,"math")),{command:E}):null}}else le[a]?b={definitionType:"symbol",type:"mord",codepoint:le[a]}:y==="text"&&(b={definitionType:"symbol",type:"mord",codepoint:a.codePointAt(0)});return b!=null?b:null}function xn(a,y){if(!a.startsWith("\\"))return null;const b=a.slice(1);return y[b]}function bn(a,y){if(y===void 0)return"";if(a==="math"&&dn[y])return dn[y];if(a==="text"){const b=Object.keys(le).find(E=>le[E]===y);return b||String.fromCodePoint(y)}return String.fromCodePoint(y)}var yn=[0,.68889,0,0,.72222],Nn=[0,.68889,0,0,.66667],Vn=[0,.68889,0,0,.77778],In=[0,.68889,0,0,.61111],lr=[.16667,.68889,0,0,.77778],ur=[0,.68889,0,0,.55556],gn=[0,0,0,0,.25],yr=[0,.825,0,0,2.33334],Pr=[0,.9,0,0,2.33334],zr=[0,.68889,0,0,.54028],jr=[-.03598,.46402,0,0,.5],Ar=[-.13313,.36687,0,0,1],Xr=[.01354,.52239,0,0,1],fr=[.01354,.52239,0,0,1.11111],Gr=[0,.54986,0,0,1],Yr=[0,.69224,0,0,.5],Vr=[0,.43056,0,0,1],qr=[.08198,.58198,0,0,.77778],Hr=[.19444,.69224,0,0,.41667],er=[.1808,.675,0,0,1],vr=[.19444,.69224,0,0,.83334],Dn=[.13667,.63667,0,0,1],Bn=[-.064,.437,0,0,1.334],br=[.08167,.58167,0,0,.77778],st=[0,.69224,0,0,.72222],Ae=[0,.69224,0,0,.66667],Ne=[-.13313,.36687,0,0,.77778],Be=[.06062,.54986,0,0,.77778],Ie=[0,.69224,0,0,.77778],Ye=[.25583,.75583,0,0,.77778],ht=[.25142,.75726,0,0,.77778],Ht=[.20576,.70576,0,0,.77778],Mt=[.30274,.79383,0,0,.77778],Wt=[.22958,.72958,0,0,.77778],an=[.1808,.675,0,0,.77778],ln=[.13667,.63667,0,0,.77778],pn=[.13597,.63597,0,0,.77778],Ct=[.03517,.54986,0,0,.77778],rn=[0,.675,0,0,.77778],On=[.19444,.69224,0,0,.61111],Mn=[0,.54986,0,0,.76042],Pn=[0,.54986,0,0,.66667],Ln=[.0391,.5391,0,0,.77778],tr=[.03517,.54986,0,0,1.33334],hn=[.38569,.88569,0,0,.77778],qn=[.23222,.74111,0,0,.77778],et=[.19444,.69224,0,0,.77778],It=[0,.37788,0,0,.5],Ft=[0,.54986,0,0,.72222],Qt=[0,.69224,0,0,.83334],Rt=[.11111,.69224,0,0,.66667],jt=[.26167,.75726,0,0,.77778],Zt=[.48256,.98256,0,0,.77778],cn=[.28481,.79383,0,0,.77778],mn=[.08167,.58167,0,0,.22222],En=[.08167,.58167,0,0,.38889],Un=[0,.43056,.04028,0,.66667],ar=[.41951,.91951,0,0,.77778],xr=[.24982,.74947,0,0,.38865],or=[.08319,.58283,0,0,.75623],$n=[0,.10803,0,0,.27764],wr=[0,.47534,0,0,.50181],pr=[.18906,.47534,0,0,.50181],mr=[0,.69141,0,0,.50181],Wn=[.24982,.74947,0,0,.27764],nr=[0,.69141,0,0,.21471],hr=[.25,.75,0,0,.44722],rr=[0,.64444,0,0,.575],Tr=[.08556,.58556,0,0,.89444],$r=[0,.69444,0,0,.89444],cr=[0,.68611,0,0,.9],kn=[0,.68611,0,0,.86944],vn=[.25,.75,0,0,.575],sr=[.25,.75,0,0,.31944],Xn=[0,.69444,0,0,.63889],Sr=[0,.69444,0,0,.31944],Or=[0,.44444,0,0,.63889],Mr=[0,.44444,0,0,.51111],Qr=[0,.69444,0,0,.575],Rr=[.13333,.63333,0,0,.89444],fi=[0,.44444,0,0,.31944],Yn=[0,.69444,0,0,.86944],jn=[0,.68611,0,0,.69166],Lr=[0,.68611,0,0,.83055],Ir=[0,.68611,0,0,.89444],si=[0,.69444,0,0,.60278],Yi=[.19444,.69444,0,0,.51111],_i=[0,.69444,0,0,.83055],Jr=[-.10889,.39111,0,0,1.14999],yi=[.19444,.69444,0,0,.575],pi=[.19444,.69444,0,0,1.14999],Hn=[.19444,.69444,0,0,.70277],Fn=[.05556,.75,0,0,.575],Rn=[0,.68611,0,0,.95833],Qn=[.08556,.58556,0,0,.76666],ei=[-.02639,.47361,0,0,.575],hi=[0,.44444,0,0,.89444],bi=[0,.55556,0,0,.76666],mi=[-.10889,.39111,0,0,.89444],ai=[.00222,.50222,0,0,.89444],wi=[.19667,.69667,0,0,.89444],Ki=[.08556,.58556,0,0,1.14999],Ti=[0,.69444,0,0,.70277],pa=[-.02778,.47222,0,0,.575],ea=[.25,.75,0,0,.51111],Oi=[-.13889,.36111,0,0,1.14999],Ja=[.19444,.69444,0,0,1.02222],Ea=[.12963,.69444,0,0,.89444],ma=[.19444,.69444,0,0,.44722],ta=[0,.64444,.13167,0,.59111],Si=[.19444,.64444,.13167,0,.59111],Dr=[0,.68611,.17208,0,.8961],Ur=[.19444,.44444,.105,0,.53222],Fr=[0,.44444,.085,0,.82666],Er=[0,.69444,.06709,0,.59111],ri=[0,.69444,.12945,0,.35555],ti=[0,.69444,0,0,.94888],Ii=[0,.69444,.11472,0,.59111],Ri=[0,.68611,.10778,0,.88555],Ni=[0,.69444,.07939,0,.62055],qi=[0,.69444,.12417,0,.30667],ui=[0,.64444,.13556,0,.51111],li=[.19444,.64444,.13556,0,.51111],Wi=[0,.68333,.16389,0,.74333],aa=[.19444,.43056,.08847,0,.46],ra=[0,.43056,.07514,0,.71555],Xi=[0,.69444,.06646,0,.51111],ts=[0,.69444,0,0,.83129],ao=[0,.69444,.1225,0,.51111],oo=[0,.68333,.09403,0,.76666],eo=[0,.68333,.11111,0,.76666],Ss=[0,.69444,.06961,0,.51444],fo=[0,.69444,0,0,.27778],ka=[.25,.75,0,0,.38889],ua=[0,.64444,0,0,.5],bo=[0,.69444,0,0,.77778],ko=[0,.68333,0,0,.75],Ao=[0,.68333,0,0,.77778],ns=[0,.68333,0,0,.68056],Ro=[0,.68333,0,0,.72222],Ua=[.25,.75,0,0,.5],Pa=[.25,.75,0,0,.27778],Ai=[0,.69444,0,0,.5],Lo=[0,.69444,0,0,.55556],rs=[0,.43056,0,0,.44445],Do=[0,.43056,0,0,.5],gi=[.19444,.43056,0,0,.55556],oi=[0,.43056,0,0,.55556],Pi=[.08333,.58333,0,0,.77778],Aa=[0,.43056,0,0,.27778],Zi=[0,.66786,0,0,.27778],Oa=[0,.69444,0,0,.75],Fa=[0,.66786,0,0,.5],to=[0,.68333,0,0,.625],Ra=[.19444,.69444,0,0,.44445],so=[0,.69444,0,0,.72222],lo=[.19444,.69444,0,0,.5],La=[.19444,.69444,0,0,1],bl=[.011,.511,0,0,1.126],$o=[.19444,.69444,0,0,.61111],qs=[.05556,.75,0,0,.5],Kl=[0,.68333,0,0,.83334],Wl=[.0391,.5391,0,0,.66667],Cs=[-.05555,.44445,0,0,.5],Eu=[0,.43056,0,0,.77778],is=[0,.55556,0,0,.66667],xl=[-.03625,.46375,0,0,.77778],jo=[-.01688,.48312,0,0,.77778],as=[.0391,.5391,0,0,1],Mi=[0,.69444,0,0,.61111],ki=[-.03472,.46528,0,0,.5],Fi=[.25,.75,0,0,.44445],Xa=[-.14236,.35764,0,0,1],Da=[.244,.744,0,0,.412],xo=[.19444,.69444,0,0,.88889],po=[.12963,.69444,0,0,.77778],za=[.19444,.69444,0,0,.38889],_o=[.011,.511,0,0,1.638],Bo=[.19444,.69444,0,0,0],wo=[0,.44444,0,0,.575],os=[.19444,.44444,0,0,.575],Zl=[0,.68611,0,0,.75555],wl=[0,.69444,0,0,.66759],Ec=[0,.68611,0,0,.80555],kc=[0,.68611,.08229,0,.98229],Vl=[0,.68611,0,0,.76666],Od=[0,.44444,0,0,.58472],ku=[.19444,.44444,0,0,.6118],Sl=[.19444,.43056,0,0,.5],Ac=[0,.68333,.02778,.08334,.76278],Au=[0,.68333,.08125,.05556,.83125],Qs=[0,.43056,0,.05556,.48472],$l=[.19444,.43056,0,.08334,.51702],Lc=[.25,.75,0,0,.42778],_a=[0,.69444,0,0,.55],ss=[0,.69444,0,0,.73334],Ms=[0,.69444,0,0,.79445],Rd=[0,.69444,0,0,.51945],jl=[0,.69444,0,0,.70278],Lu=[0,.69444,0,0,.76389],Js=[.25,.75,0,0,.34306],el=[0,.69444,0,0,.56111],Nd=[0,.69444,0,0,.25556],Gl=[.19444,.45833,0,0,.56111],Dc=[0,.45833,0,0,.56111],Es=[0,.69444,0,0,.30556],_c=[0,.69444,0,0,.58056],ks=[0,.69444,0,0,.67223],tl=[0,.69444,0,0,.85556],ls=[0,.69444,0,0,.55834],mo=[0,.65556,.11156,0,.5],As=[0,.69444,.08094,0,.70834],Du=[.17014,0,0,0,.44445],Bc=[0,.69444,.0799,0,.5],Tc=[0,.69444,0,0,.73752],Fd=[0,.69444,.09205,0,.5],Ls=[0,.69444,.09031,0,.77778],us=[0,.69444,.07816,0,.27778],zd=[0,.69444,.00316,0,.5],Hd=[.19444,.69444,0,0,.83334],Kd=[.05556,.75,0,0,.83334],Wd=[0,.75,0,0,.5],Zd=[.125,.08333,0,0,.27778],Vd=[0,.08333,0,0,.27778],ca=[0,.65556,0,0,.5],xa=[0,.69444,0,0,.47222],oa=[0,.69444,0,0,.66667],Ba=[0,.69444,0,0,.59722],nl=[0,.69444,0,0,.54167],Ic=[0,.69444,0,0,.70834],Ul=[.25,.75,0,0,.28889],Pc=[0,.69444,0,0,.51667],$d=[0,.44444,0,0,.44445],jd=[.19444,.44444,0,0,.51667],_u=[0,.44444,0,0,.38333],Oc=[0,.44444,0,0,.51667],Bu=[0,.69444,0,0,.83334],Gd=[.35001,.85,0,0,.45834],Tu=[.35001,.85,0,0,.57778],Iu=[.35001,.85,0,0,.41667],Rc=[.35001,.85,0,0,.58334],Xl=[0,.72222,0,0,.55556],Pu=[1e-5,.6,0,0,.66667],Nc=[1e-5,.6,0,0,.77778],Cl=[.25001,.75,0,0,.94445],Ud=[.306,.805,.19445,0,.47222],Yl=[.30612,.805,.19445,0,.47222],Ha=[.25001,.75,0,0,.83334],rl=[.35001,.85,0,0,.47222],Fc=[.25001,.75,0,0,1.11111],zc=[.65002,1.15,0,0,.59722],go=[.65002,1.15,0,0,.81111],Bi=[.65002,1.15,0,0,.47222],To=[.65002,1.15,0,0,.66667],No=[0,.75,0,0,1],cs=[.55001,1.05,0,0,1.27778],Hc=[.862,1.36,.44445,0,.55556],Ou=[.86225,1.36,.44445,0,.55556],il=[.55001,1.05,0,0,1.11111],Ru=[.65002,1.15,0,0,.52778],Nu=[.65002,1.15,0,0,.61111],al=[.55001,1.05,0,0,1.51112],Kc=[.95003,1.45,0,0,.73611],Fu=[.95003,1.45,0,0,1.04445],ds=[.95003,1.45,0,0,.52778],ql=[.95003,1.45,0,0,.75],Ql=[0,.75,0,0,1.44445],zu=[.95003,1.45,0,0,.58334],Jl=[1.25003,1.75,0,0,.79167],Hu=[1.25003,1.75,0,0,1.27778],Wc=[1.25003,1.75,0,0,.58334],Ku=[1.25003,1.75,0,0,.80556],eu=[0,.825,0,0,1.8889],Wu=[1.25003,1.75,0,0,.63889],Zu=[.64502,1.155,0,0,.875],tu=[1e-5,.6,0,0,.875],Vu=[-99e-5,.601,0,0,.66667],$u=[.64502,1.155,0,0,.66667],Xd=[1e-5,.9,0,0,.88889],Zc=[.65002,1.15,0,0,.88889],ol=[.90001,0,0,0,.88889],ju=[-.00499,.605,0,0,1.05556],sl=[0,.12,0,0,.45],_r=[0,.61111,0,0,.525],So=[.08333,.69444,0,0,.525],Vc=[-.08056,.53055,0,0,.525],Yd=[-.05556,.55556,0,0,.525],no=[0,.43056,0,0,.525],wa=[.22222,.43056,0,0,.525],nu=[0,0,0,0,.525],qd={"AMS-Regular":{32:gn,65:yn,66:Nn,67:yn,68:yn,69:Nn,70:In,71:Vn,72:Vn,73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:Vn,76:Nn,77:[0,.68889,0,0,.94445],78:yn,79:lr,80:In,81:lr,82:yn,83:ur,84:Nn,85:yn,86:yn,87:[0,.68889,0,0,1],88:yn,89:yn,90:Nn,107:ur,160:gn,165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:ur,295:zr,710:yr,732:Pr,770:yr,771:Pr,989:br,1008:Un,8245:[0,.54986,0,0,.275],8463:zr,8487:yn,8498:ur,8502:Nn,8503:[0,.68889,0,0,.44445],8504:Nn,8513:[0,.68889,0,0,.63889],8592:jr,8594:jr,8602:Ar,8603:Ar,8606:Xr,8608:Xr,8610:fr,8611:fr,8619:Gr,8620:Gr,8621:[-.13313,.37788,0,0,1.38889],8622:Ar,8624:Yr,8625:Yr,8630:Vr,8631:Vr,8634:qr,8635:qr,8638:Hr,8639:Hr,8642:Hr,8643:Hr,8644:er,8646:er,8647:er,8648:vr,8649:er,8650:vr,8651:Xr,8652:Xr,8653:Ar,8654:Ar,8655:Ar,8666:Dn,8667:Dn,8669:[-.13313,.37788,0,0,1],8672:Bn,8674:Bn,8705:[0,.825,0,0,.5],8708:ur,8709:br,8717:[0,.43056,0,0,.42917],8722:jr,8724:[.08198,.69224,0,0,.77778],8726:br,8733:Ie,8736:st,8737:st,8738:[.03517,.52239,0,0,.72222],8739:mn,8740:[.25142,.74111,0,0,.27778],8741:En,8742:[.25142,.74111,0,0,.5],8756:Ae,8757:Ae,8764:Ne,8765:[-.13313,.37788,0,0,.77778],8769:Ne,8770:xl,8774:Mt,8776:jo,8778:br,8782:Be,8783:Be,8785:qr,8786:qr,8787:qr,8790:Ie,8791:Wt,8796:[.08198,.91667,0,0,.77778],8806:Ye,8807:Ye,8808:ht,8809:ht,8812:[.25583,.75583,0,0,.5],8814:Ht,8815:Ht,8816:Mt,8817:Mt,8818:Wt,8819:Wt,8822:an,8823:an,8828:ln,8829:ln,8830:Wt,8831:Wt,8832:Ht,8833:Ht,8840:Mt,8841:Mt,8842:pn,8843:pn,8847:Ct,8848:Ct,8858:qr,8859:qr,8861:qr,8862:rn,8863:rn,8864:rn,8865:rn,8872:[0,.69224,0,0,.61111],8873:st,8874:[0,.69224,0,0,.88889],8876:In,8877:In,8878:yn,8879:yn,8882:Ct,8883:Ct,8884:ln,8885:ln,8888:[0,.54986,0,0,1.11111],8890:gi,8891:On,8892:On,8901:[0,.54986,0,0,.27778],8903:br,8905:br,8906:br,8907:Ie,8908:Ie,8909:[-.03598,.46402,0,0,.77778],8910:Mn,8911:Mn,8912:Ct,8913:Ct,8914:Pn,8915:Pn,8916:Ae,8918:Ln,8919:Ln,8920:tr,8921:tr,8922:hn,8923:hn,8926:ln,8927:ln,8928:Mt,8929:Mt,8934:qn,8935:qn,8936:qn,8937:qn,8938:Ht,8939:Ht,8940:Mt,8941:Mt,8994:et,8995:et,9416:[.15559,.69224,0,0,.90222],9484:Yr,9488:Yr,9492:It,9496:It,9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:rn,9633:rn,9650:Ft,9651:Ft,9654:Ct,9660:Ft,9661:Ft,9664:Ct,9674:Rt,9733:[.19444,.69224,0,0,.94445],10003:Qt,10016:Qt,10731:Rt,10846:[.19444,.75583,0,0,.61111],10877:ln,10878:ln,10885:Ye,10886:Ye,10887:pn,10888:pn,10889:jt,10890:jt,10891:Zt,10892:Zt,10901:ln,10902:ln,10933:ht,10934:ht,10935:jt,10936:jt,10937:jt,10938:jt,10949:Ye,10950:Ye,10955:cn,10956:cn,57350:mn,57351:En,57352:br,57353:Un,57356:ht,57357:ht,57358:ar,57359:Mt,57360:Mt,57361:ar,57366:ht,57367:ht,57368:ht,57369:ht,57370:pn,57371:pn},"Caligraphic-Regular":{32:gn,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:gn},"Fraktur-Regular":{32:gn,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:or,44:$n,45:or,46:$n,47:[.24982,.74947,0,0,.50181],48:wr,49:wr,50:wr,51:pr,52:pr,53:pr,54:mr,55:pr,56:mr,57:pr,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:Wn,93:Wn,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:gn,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:gn,33:[0,.69444,0,0,.35],34:si,35:[.19444,.69444,0,0,.95833],36:Fn,37:[.05556,.75,0,0,.95833],38:$r,39:Sr,40:hr,41:hr,42:[0,.75,0,0,.575],43:Rr,44:[.19444,.15556,0,0,.31944],45:_u,46:[0,.15556,0,0,.31944],47:vn,48:rr,49:rr,50:rr,51:rr,52:rr,53:rr,54:rr,55:rr,56:rr,57:rr,58:fi,59:[.19444,.44444,0,0,.31944],60:Tr,61:mi,62:Tr,63:[0,.69444,0,0,.54305],64:$r,65:kn,66:[0,.68611,0,0,.81805],67:Lr,68:[0,.68611,0,0,.88194],69:Zl,70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:cr,73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:jn,77:[0,.68611,0,0,1.09166],78:cr,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:kn,89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:sr,92:vn,93:sr,94:Qr,95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:Xn,99:Mr,100:Xn,101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:Xn,105:Sr,106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:Sr,109:[0,.44444,0,0,.95833],110:Or,111:wo,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:Or,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:Mr,123:vn,124:sr,125:vn,126:[.35,.34444,0,0,.575],160:gn,163:[0,.69444,0,0,.86853],168:Qr,172:[0,.44444,0,0,.76666],176:Yn,177:Rr,184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:Rr,216:[.04861,.73472,0,0,.89444],223:Ba,230:[0,.44444,0,0,.83055],247:Rr,248:[.09722,.54167,0,0,.575],305:fi,338:[0,.68611,0,0,1.16944],339:hi,567:[.19444,.44444,0,0,.35139],710:Qr,711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:Qr,715:Qr,728:Qr,729:Sr,730:Yn,732:Qr,733:Qr,915:jn,916:Rn,920:Ir,923:Ec,926:Vl,928:cr,931:Lr,933:Ir,934:Lr,936:Ir,937:Lr,8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:Sr,8217:Sr,8220:si,8221:si,8224:Yi,8225:Yi,8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:wl,8465:_i,8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:_i,8501:Ti,8592:Jr,8593:yi,8594:Jr,8595:yi,8596:Jr,8597:vn,8598:pi,8599:pi,8600:pi,8601:pi,8636:Jr,8637:Jr,8640:Jr,8641:Jr,8656:Jr,8657:Hn,8658:Jr,8659:Hn,8660:Jr,8661:[.25,.75,0,0,.70277],8704:Xn,8706:[0,.69444,.06389,0,.62847],8707:Xn,8709:Fn,8711:Rn,8712:Qn,8715:Qn,8722:Rr,8723:Rr,8725:vn,8726:vn,8727:pa,8728:ei,8729:ei,8730:[.18,.82,0,0,.95833],8733:hi,8734:[0,.44444,0,0,1.14999],8736:st,8739:sr,8741:vn,8743:bi,8744:bi,8745:bi,8746:bi,8747:[.19444,.69444,.12778,0,.56875],8764:mi,8768:[.19444,.69444,0,0,.31944],8771:ai,8776:[.02444,.52444,0,0,.89444],8781:ai,8801:ai,8804:wi,8805:wi,8810:Ki,8811:Ki,8826:Tr,8827:Tr,8834:Tr,8835:Tr,8838:wi,8839:wi,8846:bi,8849:wi,8850:wi,8851:bi,8852:bi,8853:Rr,8854:Rr,8855:Rr,8856:Rr,8857:Rr,8866:Ti,8867:Ti,8868:$r,8869:$r,8900:ei,8901:[-.02639,.47361,0,0,.31944],8902:pa,8968:ea,8969:ea,8970:ea,8971:ea,8994:Oi,8995:Oi,9651:Ja,9657:pa,9661:Ja,9667:pa,9711:pi,9824:Ea,9825:Ea,9826:Ea,9827:Ea,9837:[0,.75,0,0,.44722],9838:ma,9839:ma,10216:hr,10217:hr,10815:cr,10927:wi,10928:wi,57376:Bo},"Main-BoldItalic":{32:gn,33:[0,.69444,.11417,0,.38611],34:Ni,35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:ri,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:ta,49:ta,50:ta,51:ta,52:Si,53:ta,54:ta,55:Si,56:ta,57:ta,58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:Ii,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:Dr,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:Dr,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:Er,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:Ur,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:Ur,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:gn,168:[0,.69444,.11473,0,.59111],176:ti,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:Fr,248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:Fr,567:[.19444,.44444,.04611,0,.385],710:Er,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:ri,730:ti,732:Ii,733:Ii,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:Dr,931:[0,.68611,.11431,0,.82666],933:Ri,934:[0,.68611,.05632,0,.82666],936:Ri,937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:ri,8217:ri,8220:[0,.69444,.16772,0,.62055],8221:Ni},"Main-Italic":{32:gn,33:qi,34:Ss,35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:qi,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:ui,49:ui,50:ui,51:ui,52:li,53:ui,54:ui,55:li,56:ui,57:ui,58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:ao,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:Wi,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:Wi,79:oo,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:Wi,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:Xi,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:aa,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:aa,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:gn,168:[0,.66786,.10474,0,.51111],176:ts,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:ra,248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:ra,710:Xi,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:ts,732:[0,.66786,.11585,0,.51111],733:ao,915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:oo,923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:Wi,931:[0,.68333,.12028,0,.71555],933:eo,934:[0,.68333,.05986,0,.71555],936:eo,937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:qi,8217:qi,8220:[0,.69444,.1685,0,.51444],8221:Ss,8463:zr},"Main-Regular":{32:gn,33:fo,34:Ai,35:Hd,36:qs,37:Kd,38:bo,39:fo,40:ka,41:ka,42:Wd,43:Pi,44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:Ua,48:ua,49:ua,50:ua,51:ua,52:ua,53:ua,54:ua,55:ua,56:ua,57:ua,58:Aa,59:[.19444,.43056,0,0,.27778],60:Ln,61:Ne,62:Ln,63:xa,64:bo,65:ko,66:[0,.68333,0,0,.70834],67:Ro,68:[0,.68333,0,0,.76389],69:ns,70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:ko,73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:Ao,76:to,77:[0,.68333,0,0,.91667],78:ko,79:Ao,80:ns,81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:Ro,85:ko,86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:ko,89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:Pa,92:Ua,93:Pa,94:Ai,95:[.31,.12056,.02778,0,.5],97:Do,98:Lo,99:rs,100:Lo,101:rs,102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:Lo,105:Zi,106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:fo,109:[0,.43056,0,0,.83334],110:oi,111:Do,112:gi,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:oi,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:rs,123:Ua,124:Pa,125:Ua,126:[.35,.31786,0,0,.5],160:gn,163:[0,.69444,0,0,.76909],167:Ra,168:Fa,172:[0,.43056,0,0,.66667],176:Oa,177:Pi,182:$o,184:Du,198:[0,.68333,0,0,.90278],215:Pi,216:[.04861,.73194,0,0,.77778],223:Ai,230:[0,.43056,0,0,.72222],247:Pi,248:[.09722,.52778,0,0,.5],305:Aa,338:[0,.68333,0,0,1.01389],339:Eu,567:[.19444,.43056,0,0,.30556],710:Ai,711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:Ai,715:Ai,728:Ai,729:Zi,730:Oa,732:Fa,733:Ai,915:to,916:Kl,920:Ao,923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:ko,931:Ro,933:Ao,934:Ro,936:Ao,937:Ro,8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:fo,8217:fo,8220:Ai,8221:Ai,8224:Ra,8225:Ra,8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:zr,8465:so,8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:so,8501:Mi,8592:Ar,8593:lo,8594:Ar,8595:lo,8596:Ar,8597:Ua,8598:La,8599:La,8600:La,8601:La,8614:[.011,.511,0,0,1],8617:bl,8618:bl,8636:Ar,8637:Ar,8640:Ar,8641:Ar,8652:[.011,.671,0,0,1],8656:Ar,8657:$o,8658:Ar,8659:$o,8660:Ar,8661:[.25,.75,0,0,.61111],8704:Lo,8706:[0,.69444,.05556,.08334,.5309],8707:Lo,8709:qs,8711:Kl,8712:Wl,8715:Wl,8722:Pi,8723:Pi,8725:Ua,8726:Ua,8727:ki,8728:Cs,8729:Cs,8730:[.2,.8,0,0,.83334],8733:Eu,8734:Vr,8736:st,8739:Pa,8741:Ua,8743:is,8744:is,8745:is,8746:is,8747:[.19444,.69444,.11111,0,.41667],8764:Ne,8768:[.19444,.69444,0,0,.27778],8771:xl,8773:[-.022,.589,0,0,1],8776:jo,8781:xl,8784:[-.133,.67,0,0,.778],8801:xl,8804:pn,8805:pn,8810:as,8811:as,8826:Ln,8827:Ln,8834:Ln,8835:Ln,8838:pn,8839:pn,8846:is,8849:pn,8850:pn,8851:is,8852:is,8853:Pi,8854:Pi,8855:Pi,8856:Pi,8857:Pi,8866:Mi,8867:Mi,8868:bo,8869:bo,8872:[.249,.75,0,0,.867],8900:Cs,8901:[-.05555,.44445,0,0,.27778],8902:ki,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:Fi,8969:Fi,8970:Fi,8971:Fi,8994:Xa,8995:Xa,9136:Da,9137:Da,9651:xo,9657:ki,9661:xo,9667:ki,9711:La,9824:po,9825:po,9826:po,9827:po,9837:[0,.75,0,0,.38889],9838:za,9839:za,10216:ka,10217:ka,10222:Da,10223:Da,10229:[.011,.511,0,0,1.609],10230:_o,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:_o,10815:ko,10927:pn,10928:pn,57376:Bo},"Math-BoldItalic":{32:gn,48:wo,49:wo,50:wo,51:os,52:os,53:os,54:rr,55:os,56:rr,57:os,65:kn,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:kc,73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:Zl,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:wl,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:Od,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:gn,915:[0,.68611,.15972,0,.65694],916:Rn,920:[0,.68611,.03194,0,.86722],923:Ec,926:[0,.68611,.07458,0,.84125],928:kc,931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:Vl,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:Od,960:[0,.44444,.03704,0,.68241],961:ku,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:ku,1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:gn,48:Do,49:Do,50:Do,51:Sl,52:Sl,53:Sl,54:ua,55:Sl,56:ua,57:Sl,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:Au,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:Ac,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:Qs,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:gn,915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:Ac,923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:Au,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:Qs,960:[0,.43056,.03588,0,.57003],961:$l,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:$l,1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:gn,33:[0,.69444,0,0,.36667],34:ls,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:Es,40:Lc,41:Lc,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:_a,49:_a,50:_a,51:_a,52:_a,53:_a,54:_a,55:_a,56:_a,57:_a,58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:Rd,64:ss,65:ss,66:ss,67:jl,68:Ms,69:[0,.69444,0,0,.64167],70:Mi,71:ss,72:Ms,73:[0,.69444,0,0,.33056],74:Rd,75:Lu,76:_c,77:[0,.69444,0,0,.97778],78:Ms,79:Ms,80:jl,81:[.10556,.69444,0,0,.79445],82:jl,83:Mi,84:ss,85:Lu,86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:ss,89:[0,.69444,.0275,0,.73334],90:ks,91:Js,93:Js,94:_a,95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:el,99:[0,.45833,0,0,.48889],100:el,101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:el,105:Nd,106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:Nd,109:[0,.45833,0,0,.86667],110:Dc,111:[0,.45833,0,0,.55],112:Gl,113:Gl,114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:Dc,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:gn,168:_a,176:ss,180:_a,184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:_a,711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:_a,729:Es,730:ss,732:_a,733:_a,915:_c,916:[0,.69444,0,0,.91667],920:tl,923:ks,926:ss,928:Ms,931:Ms,933:tl,934:Ms,936:tl,937:Ms,8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:Es,8217:Es,8220:ls,8221:ls},"SansSerif-Italic":{32:gn,33:[0,.69444,.05733,0,.31945],34:zd,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:us,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:Zd,45:[0,.44444,.01946,0,.33333],46:Vd,47:[.25,.75,.13164,0,.5],48:mo,49:mo,50:mo,51:mo,52:mo,53:mo,54:mo,55:mo,56:mo,57:mo,58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:oa,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:As,73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:nl,77:[0,.69444,.08094,0,.875],78:As,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:Bc,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:gn,168:[0,.67937,.06385,0,.5],176:Tc,184:Du,305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:Bc,711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:Fd,715:Ai,728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:Tc,732:[0,.67659,.08826,0,.5],733:Fd,915:[0,.69444,.13372,0,.54167],916:Bu,920:[0,.69444,.07555,0,.77778],923:Mi,926:[0,.69444,.12816,0,.66667],928:As,931:[0,.69444,.11983,0,.72222],933:Ls,934:[0,.69444,.04603,0,.72222],936:Ls,937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:us,8217:us,8220:[0,.69444,.14205,0,.5],8221:zd},"SansSerif-Regular":{32:gn,33:[0,.69444,0,0,.31945],34:Ai,35:Hd,36:qs,37:Kd,38:[0,.69444,0,0,.75834],39:fo,40:ka,41:ka,42:Wd,43:Pi,44:Zd,45:[0,.44444,0,0,.33333],46:Vd,47:Ua,48:ca,49:ca,50:ca,51:ca,52:ca,53:ca,54:ca,55:ca,56:ca,57:ca,58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:xa,64:oa,65:oa,66:oa,67:Xn,68:[0,.69444,0,0,.72223],69:Ba,70:[0,.69444,0,0,.56945],71:oa,72:Ic,73:fo,74:xa,75:[0,.69444,0,0,.69445],76:nl,77:[0,.69444,0,0,.875],78:Ic,79:[0,.69444,0,0,.73611],80:Xn,81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:Lo,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:oa,89:[0,.69444,.025,0,.66667],90:Mi,91:Ul,93:Ul,94:Ai,95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:Pc,99:$d,100:Pc,101:$d,102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:Pc,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:Oc,111:[0,.44444,0,0,.5],112:jd,113:jd,114:[0,.44444,.01389,0,.34167],115:_u,116:[0,.57143,0,0,.36111],117:Oc,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:gn,168:[0,.67937,0,0,.5],176:oa,184:Du,305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:Ai,711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:Ai,715:Ai,728:Ai,729:[0,.67937,0,0,.27778],730:oa,732:[0,.67659,0,0,.5],733:Ai,915:nl,916:Bu,920:bo,923:Mi,926:oa,928:Ic,931:so,933:bo,934:so,936:bo,937:so,8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:fo,8217:fo,8220:Ai,8221:Ai},"Script-Regular":{32:gn,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:gn},"Size1-Regular":{32:gn,40:Gd,41:Gd,47:Tu,91:Iu,92:Tu,93:Iu,123:Rc,125:Rc,160:gn,710:Xl,732:Xl,770:Xl,771:Xl,8214:[-99e-5,.601,0,0,.77778],8593:Pu,8595:Pu,8657:Nc,8659:Nc,8719:Cl,8720:Cl,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:Yl,8748:Ud,8749:Ud,8750:Yl,8896:Ha,8897:Ha,8898:Ha,8899:Ha,8968:rl,8969:rl,8970:rl,8971:rl,9168:Vu,10216:rl,10217:rl,10752:Fc,10753:Fc,10754:Fc,10756:Ha,10758:Ha},"Size2-Regular":{32:gn,40:zc,41:zc,47:go,91:Bi,92:go,93:Bi,123:To,125:To,160:gn,710:No,732:No,770:No,771:No,8719:cs,8720:cs,8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:Ou,8748:Hc,8749:Hc,8750:Ou,8896:il,8897:il,8898:il,8899:il,8968:Ru,8969:Ru,8970:Ru,8971:Ru,10216:Nu,10217:Nu,10752:al,10753:al,10754:al,10756:il,10758:il},"Size3-Regular":{32:gn,40:Kc,41:Kc,47:Fu,91:ds,92:Fu,93:ds,123:ql,125:ql,160:gn,710:Ql,732:Ql,770:Ql,771:Ql,8730:[.95003,1.45,0,0,1],8968:zu,8969:zu,8970:zu,8971:zu,10216:ql,10217:ql},"Size4-Regular":{32:gn,40:Jl,41:Jl,47:Hu,91:Wc,92:Hu,93:Wc,123:Ku,125:Ku,160:gn,710:eu,732:eu,770:eu,771:eu,8730:[1.25003,1.75,0,0,1],8968:Wu,8969:Wu,8970:Wu,8971:Wu,9115:Zu,9116:tu,9117:Zu,9118:Zu,9119:tu,9120:Zu,9121:$u,9122:Vu,9123:$u,9124:$u,9125:Vu,9126:$u,9127:Xd,9128:Zc,9129:ol,9130:[0,.3,0,0,.88889],9131:Xd,9132:Zc,9133:ol,9143:[.88502,.915,0,0,1.05556],10216:Ku,10217:Ku,57344:ju,57345:ju,57680:sl,57681:sl,57682:sl,57683:sl},"Typewriter-Regular":{32:nu,33:_r,34:_r,35:_r,36:So,37:So,38:_r,39:_r,40:So,41:So,42:[0,.52083,0,0,.525],43:Vc,44:[.13889,.125,0,0,.525],45:Vc,46:[0,.125,0,0,.525],47:So,48:_r,49:_r,50:_r,51:_r,52:_r,53:_r,54:_r,55:_r,56:_r,57:_r,58:no,59:[.13889,.43056,0,0,.525],60:Yd,61:[-.19549,.41562,0,0,.525],62:Yd,63:_r,64:_r,65:_r,66:_r,67:_r,68:_r,69:_r,70:_r,71:_r,72:_r,73:_r,74:_r,75:_r,76:_r,77:_r,78:_r,79:_r,80:_r,81:[.13889,.61111,0,0,.525],82:_r,83:_r,84:_r,85:_r,86:_r,87:_r,88:_r,89:_r,90:_r,91:So,92:So,93:So,94:_r,95:[.09514,0,0,0,.525],96:_r,97:no,98:_r,99:no,100:_r,101:no,102:_r,103:wa,104:_r,105:_r,106:[.22222,.61111,0,0,.525],107:_r,108:_r,109:no,110:no,111:no,112:wa,113:wa,114:no,115:no,116:[0,.55358,0,0,.525],117:no,118:no,119:no,120:no,121:wa,122:no,123:So,124:So,125:So,126:_r,127:_r,160:nu,176:_r,184:[.19445,0,0,0,.525],305:no,567:wa,711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:_r,715:_r,728:_r,730:_r,770:_r,771:_r,776:_r,915:_r,916:_r,920:_r,923:_r,926:_r,928:_r,931:_r,933:_r,934:_r,936:_r,937:_r,8216:_r,8217:_r,8242:_r,9251:[.11111,.21944,0,0,.525]}},Qd=/[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FAF]|[\uAC00-\uD7AF]/,ll=10,ro=.25,Gu=1.2,hs=.431,$c={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[hs,hs,hs],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:[ro,ro,ro],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]},Uu=[0,.5,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Ds=5,jc={"\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 fs(a,y){a===void 0&&(a=77);const b=qd[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 jc)a=jc[E].codePointAt(0);else if(Qd.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 Xu={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]},ul={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]},Jd={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 Ml(a){if(ul[a]){const[ge,we,Oe]=ul[a],je=``;return`${je}`}const[y,b,E,ee]=Xu[a];let re,ae;const he=E/1e3;y.length===3?(re=["slice-1-of-3","slice-2-of-3","slice-3-of-3"],ae=["xMinYMin","xMidYMin","xMaxYMin"]):y.length===2?(re=["slice-1-of-2","slice-2-of-2"],ae=["xMinYMin","xMaxYMin"]):(re=["slice-1-of-1"],ae=[ee]);const pe=y.map((ge,we)=>``).join("");return`${pe}`}function eh(a){return Xu[a]?Xu[a][2]/1e3:ul[a][2]}function th(a){const y=[];for(let b=0;b=55296&&E<=56319){const ee=a.charCodeAt(b+1);if(ee>=56320&&ee<=57343){const re=E-55296,ae=ee-56320;E=Ys(2,16)+re*Ys(2,10)+ae,b++}}y.push(E)}return y}var ru=8205,iu=[[ru,1],[65038,2],[127995,5],[129456,4],[917536,96]],_s,El=[127462,127487];function kl(a){var y;if(_s===void 0){_s={};for(const b of iu)for(let E=b[0];E<=b[0]+b[1]-1;E++)_s[E]=!0}return(y=_s[a])!=null?y:!1}function nh(a){return a>=El[0]&&a<=El[1]}function rh(a){if(/^[\u0020-\u00FF]*$/.test(a))return a;const y=[],b=th(a);let E=0;for(;E=this.s.length}get(){return this.pos";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"):"<$>"}return a}};function Bs(a,y){var b,E,ee,re;const ae=[];let he=a.next();if(he&&he!=="\\relax"){if(he==="\\noexpand")he=a.next(),he&&ae.push(he);else if(he==="\\obeyspaces")a.obeyspaces=!0;else if(he==="\\bgroup")ae.push("<{>");else if(he==="\\egroup")ae.push("<}>");else if(he==="\\string"){if(he=a.next(),he)if(he.startsWith("\\"))for(const pe of he)ae.push(pe==="\\"?"\\backslash":pe);else he==="<{>"?ae.push("\\{"):he===""?ae.push("~"):he==="<}>"&&ae.push("\\}")}else if(he==="\\csname"){for(;a.peek()==="";)a.next();let pe="",ge=!1,we=[];do{if(we.length===0)if(/^#[\d?@]$/.test(a.peek())){const Oe=a.get().slice(1);we=ps((E=(b=y==null?void 0:y(Oe))!=null?b:y==null?void 0:y("?"))!=null?E:"\\placeholder{}",y),he=we[0]}else he=a.next(),we=he?[he]:[];ge=we.length===0,!ge&&he==="\\endcsname"&&(ge=!0,we.shift()),ge||(ge=he==="<$>"||he==="<$$>"||he==="<{>"||he==="<}>"||typeof he=="string"&&he.length>1&&he.startsWith("\\")),ge||(pe+=we.shift())}while(!ge);pe&&ae.push("\\"+pe),ae.push(...we)}else if(he!=="\\endcsname")if(he.length>1&&he.startsWith("#")){const pe=he.slice(1);ae.push(...ps((re=(ee=y==null?void 0:y(pe))!=null?ee:y==null?void 0:y("?"))!=null?re:"\\placeholder{}",y))}else ae.push(he)}return ae}function ps(a,y=null){const b=[];let E="";for(const ae of a.toString().split(/\r?\n/)){E&&b.push(E),E=" ";const he=ae.match(/((?:\\%)|[^%])*/);he!==null&&b.push(he[0])}const ee=new ih(Qe(b.join(""))),re=[];do re.push(...Bs(ee,y));while(!ee.end());return re}function ci(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 Qi(a,...y){return console.assert(a.startsWith("\\")),y.length===0?a:ci([a,...y.map(b=>`{${b}}`)])}function Ts(a){return ci(a.map(y=>{var b;return(b={"":" ","<$$>":"$$","<$>":"$","<{>":"{","<}>":"}"}[y])!=null?b:y}))}var ah=class Pd{constructor(y){Pd._registry[y]=this}static createAtom(y,b,E){return Pd._registry[y].createAtom(b,Bt(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 oh(y)){const ae=Pd._registry[re[0].mode];ee.push(...ae.serialize(re,b))}return ci(ee)}return ci(ef(y,b))}static getFont(y,b,E){return Pd._registry[y].getFont(b,E)}};ah._registry={};var Co=ah;function oh(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 ga(a,y){const b=[];let E=[],ee;for(const re of a)if(re.type!=="first"&&re.style){let ae;y==="variant"?(ae=re.style.variant,re.style.variantStyle&&re.style.variantStyle!=="up"&&(ae+="-"+re.style.variantStyle)):ae=re.style[y],ae===ee?E.push(re):(E.length>0&&b.push(E),E=[re],ee=ae)}return E.length>0&&b.push(E),b}function Gc(a,y){var b;const{parent:E}=a[0],ee=E==null?void 0:E.computedStyle.color,re=[];for(const ae of oh(a)){const he=y.defaultMode;for(const pe of ga(ae,"color")){const ge=pe[0].computedStyle,we=Co._registry[pe[0].mode].serialize(pe,Ee(Ce({},y),{defaultMode:he==="text"?"text":"math"}));!y.skipStyles&&ge.color&&ge.color!=="none"&&(!E||ee!==ge.color)?re.push(Qi("\\textcolor",(b=ge.verbatimColor)!=null?b:ge.color,ci(we))):re.push(ci(we))}}return re}function Jh(a,y){const{parent:b}=a[0],E=b==null?void 0:b.computedStyle.backgroundColor;return ga(a,"backgroundColor").map(ee=>{var re;if(ee.length>0||ee[0].type!=="box"){const ae=ee[0].computedStyle;if(ae.backgroundColor&&ae.backgroundColor!=="none"&&(!b||E!==ae.backgroundColor))return Qi("\\colorbox",(re=ae.verbatimBackgroundColor)!=null?re:ae.backgroundColor,ci(Gc(ee,Ee(Ce({},y),{defaultMode:"text"}))))}return ci(Gc(ee,y))})}function ef(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 ga(a,"fontSize")){const ae=re[0].computedStyle.fontSize,he=Jh(re,y);he&&(ae&&ae!=="auto"&&(!b||E!==ae)?ee.push(["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][ae],...he):ee.push(...he))}return ee}function Uc(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 Al(a){if(a.length===0)return"ord";const y=Uc(a[0].type),b=Uc(a[a.length-1].type);return y&&y===b?y:"ord"}function Ll(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 Zn=class Mp{constructor(y,b){var E,ee,re,ae,he;if(typeof y=="number"?this.value=String.fromCodePoint(y):typeof y=="string"?this.value=y:De(y)?this.children=y.filter(ge=>ge!==null):y&&y instanceof Mp&&(this.children=[y]),this.children)for(const ge of this.children)ge.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 pe=b==null?void 0:b.fontFamily;b!=null&&b.style&&this.value&&(pe=(he=Co.getFont((ae=b.mode)!=null?ae:"math",this,Ee(Ce({variant:"normal"},b.style),{letterShapeStyle:b.letterShapeStyle})))!=null?he:void 0),pe||(pe="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),au(this,pe)}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=Ll(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=Ll(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"]=Ll(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"]=Ll(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"]=Ll(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=Ot(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 ct of this.children)re+=ct.toMarkup();let ae="";if(this.svgBody)ae=Ml(this.svgBody);else if(this.svgOverlay){ae='',ae+=re,ae+="",ae+='${this.svgOverlay}`}let he="";const pe=this.classes.split(" ");pe.push((E={latex:"ML__raw-latex",placeholder:"ML__placeholder",error:"ML__error"}[this.type])!=null?E:""),this.caret==="latex"&&pe.push("ML__latex-caret"),this.isSelected&&pe.push("ML__selected");const ge=pe.length===1?pe[0]:pe.filter((ct,bt,un)=>ct.length>0&&un.indexOf(ct)===bt).join(" ");if(ge.length>0&&(he+=` class="${ge}"`),this.id&&(he+=` data-atom-id=${this.id}`),this.cssId&&(he+=` id="${this.cssId.replace(/ /g,"-")}" `),this.attributes&&(he+=" "+Object.keys(this.attributes).map(ct=>`${ct}="${this.attributes[ct]}"`).join(" ")),this.htmlData){const ct=this.htmlData.split(",");for(const bt of ct){const un=bt.match(/([^=]+)=(.+$)/);if(un){const Kn=un[1].trim().replace(/ /g,"-");Kn&&(he+=` data-${Kn}="${un[2]}" `)}else{const Kn=bt.trim().replace(/ /g,"-");Kn&&(he+=` data-${Kn} `)}}}const we=(ee=this.cssProperties)!=null?ee:{};this.hasExplicitWidth&&we.width===void 0&&(we.width=`${Math.ceil(this._width*100)/100}em`);const Oe=Object.keys(we).map(ct=>`${ct}:${we[ct]}`);if(this.scale!==void 0&&this.scale!==1&&(re.length>0||ae.length>0)&&Oe.push(`font-size: ${Math.ceil(this.scale*1e4)/100}%`),this.htmlStyle){const ct=this.htmlStyle.split(";");let bt="";for(const un of ct){const Kn=un.match(/([^=]+):(.+$)/);if(Kn){const sn=Kn[1].trim().replace(/ /g,"-");sn&&(bt+=`${sn}:${Kn[2]};`)}}bt&&(he+=` style="${bt}"`)}Oe.length>0&&(he+=` style="${Oe.join(";")}"`);let je="";return he.length>0||ae.length>0?je=`${re}${ae}`:je=re,this.caret==="text"?je+='':this.caret==="math"&&(je+=''),je}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 pe of["border","border-left","border-right","border-right-width","left","margin","margin-left","margin-right","padding","position","width"])if(y.cssProperties&&pe in y.cssProperties||this.cssProperties&&pe 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 pe of Object.keys(this.cssProperties))if(this.cssProperties[pe]!==y.cssProperties[pe])return!1}const ae=this.classes.trim().replace(/\s+/g," ").split(" "),he=y.classes.trim().replace(/\s+/g," ").split(" ");if(ae.length!==he.length)return!1;ae.sort(),he.sort();for(const[pe,ge]of ae.entries())if(ge==="vertical-separator"||ge!==he[pe])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 Xc(a){if(!a||a.length===0)return[];a[0].children=Xc(a[0].children);const y=[a[0]];for(let b=1;b0){let E=-1/0,ee=-1/0,re=0;for(const ae of a.children)ae.height>E&&(E=ae.height),ae.depth>ee&&(ee=ae.depth),re=Math.max(re,(b=ae.maxFontSize)!=null?b:0);a.height=E,a.depth=ee,a._width=a.children.reduce((ae,he)=>ae+he.width,0),a.maxFontSize=re}}function Qu(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 ae=1;ae{bt.softWidth=we});const Oe=new Zn(ae,{classes:"vlist"});if(Oe.softWidth=we,Oe.height=pe,Oe.setStyle("height",pe,"em"),he>=0)return[[new Zn(Oe,{classes:"vlist-r"})],pe,-he];const je=new Zn(new Zn(null),{classes:"vlist"});je.height=-he,je.setStyle("height",-he,"em");const ct=new Zn(8203,{classes:"vlist-s",maxFontSize:0});return ct.softWidth=0,ct.height=0,ct.depth=0,[[new Zn([Oe,ct],{classes:"vlist-r"}),new Zn(je,{classes:"vlist-r"})],pe,-he]}var Vi=class extends Zn{constructor(a,y){var b;const[E,ee,re]=ou(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((ae,he)=>Math.max(ae,he.width),0)}};function tf(a,y){var b,E,ee,re,ae;const he=a.metrics,pe=new Zn(y.base),ge=(b=y.baseShift)!=null?b:0,we=(E=y.slant)!=null?E:0;let Oe=0,je=0;y.above&&(Oe=(ee=y.aboveShift)!=null?ee:Math.max(he.bigOpSpacing1,he.bigOpSpacing3-y.above.depth)),y.below&&(je=(re=y.belowShift)!=null?re:Math.max(he.bigOpSpacing2,he.bigOpSpacing4-y.below.height));let ct=null;if(y.below&&y.above){const bt=he.bigOpSpacing5+y.below.height+y.below.depth+je+pe.depth+ge;ct=new Vi({bottom:bt,children:[he.bigOpSpacing5,{box:y.below,marginLeft:-we,classes:["ML__center"]},je,{box:pe,classes:["ML__center"]},Oe,{box:y.above,marginLeft:we,classes:["ML__center"]},he.bigOpSpacing5]}).wrap(a)}else if(y.below&&!y.above)ct=new Vi({top:pe.height-ge,children:[he.bigOpSpacing5,{box:y.below,marginLeft:-we,classes:["ML__center"]},je,{box:pe,classes:["ML__center"]}]}).wrap(a);else if(!y.below&&y.above){const bt=pe.depth+ge;ct=new Vi({bottom:bt,children:[{box:pe,classes:["ML__center"]},Oe,{box:y.above,marginLeft:we,classes:["ML__center"]},he.bigOpSpacing5]}).wrap(a)}else{const bt=pe.depth+ge;ct=new Vi({bottom:bt,children:[{box:pe},he.bigOpSpacing5]}).wrap(a)}return new Zn(ct,{type:(ae=y.type)!=null?ae:"op"})}var Yc=7,ms=6,su=5,Is=4,cl=3,io=2,Io=1,Ka=0,Go=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($c).reduce((ee,re)=>Ee(Ce({},ee),{[re]:$c[re][E]}),{})}getFontSize(a){return Math.max(1,a+this.sizeDelta)}get sup(){return Uo[[Ka,Io,Ka,Io,io,cl,io,cl][this.id]]}get sub(){return Uo[[Ka,Ka,Ka,Ka,io,io,io,io][this.id]]}get fracNum(){return Uo[[Ka,Io,Ka,Io,io,cl,Is,su][this.id]]}get fracDen(){return Uo[[Ka,Ka,Ka,Ka,io,io,Is,Is][this.id]]}get cramp(){return Uo[[Ka,Ka,io,io,Is,Is,ms,ms][this.id]]}get isTight(){return this.sizeDelta<0}},dl={7:new Go(Yc,0,!1),6:new Go(ms,0,!0),5:new Go(su,0,!1),4:new Go(Is,0,!0),3:new Go(cl,-3,!1),2:new Go(io,-3,!0),1:new Go(Io,-4,!1),0:new Go(Ka,-4,!0)},Uo=Ee(Ce({},dl),{displaystyle:dl[Yc],textstyle:dl[su],scriptstyle:dl[cl],scriptscriptstyle:dl[Io]});function Dl(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:ll,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=Ys(10,y);return Math.round(a.dimension/ll*E*ee)/ee}return a.dimension*E}function qc(a,y){if(a===null)return 0;const b=Dl(a)/ll;if(Number.isFinite(y)){const E=Ys(10,y);return Math.round(b*E)/E}return b}function Qc(a){var y;return`${a.dimension}${(y=a.unit)!=null?y:"pt"}`}function sh(a){let y=Qc(a.glue);return a.grow&&a.grow.dimension!==0&&(y+=` plus ${Qc(a.grow)}`),a.shrink&&a.shrink.dimension!==0&&(y+=` minus ${Qc(a.shrink)}`),y}function Sa(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=sh(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 Xo(a,y){return a==null?null:"number"in a?Ee(Ce({},a),{number:a.number*y}):"register"in a?"factor"in a&&a.factor?Ee(Ce({},a),{factor:a.factor*y}):Ee(Ce({},a),{factor:y}):"dimension"in a?Ee(Ce({},a),{dimension:a.dimension*y}):"glue"in a?a.shrink&&a.grow?{glue:Xo(a.glue,y),shrink:Xo(a.shrink,y),grow:Xo(a.grow,y)}:a.shrink?{glue:Xo(a.glue,y),shrink:Xo(a.shrink,y)}:a.grow?{glue:Xo(a.glue,y),grow:Xo(a.grow,y)}:{glue:Xo(a.glue,y)}:null}var nf={"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 _l(){return Ce({},nf)}function Ju(){return{registers:_l(),smartFence:!1,renderPlaceholder:void 0,placeholderSymbol:"\u25A2",letterShapeStyle:Je.locale.startsWith("fr")?"french":"tex",minFontScale:0,colorMap:Lt,backgroundColorMap:at,getMacro:a=>xn(a,Cn())}}var xi=class Ep{constructor(y,b){var E,ee,re,ae,he,pe,ge,we,Oe,je,ct,bt,un,Kn,sn;let An;y!=null&&y.parent?(this.parent=y.parent,An=y.parent,this.registers={}):(An=Ce(Ce({},Ju()),(E=y==null?void 0:y.from)!=null?E:{}),this.registers=An.registers),An.atomIdsSettings&&(this.atomIdsSettings=Ce({},An.atomIdsSettings)),this.renderPlaceholder=An.renderPlaceholder,this.isPhantom=(ae=(re=y==null?void 0:y.isPhantom)!=null?re:(ee=this.parent)==null?void 0:ee.isPhantom)!=null?ae:!1,this.letterShapeStyle=An.letterShapeStyle,this.minFontScale=An.minFontScale,b!=null&&b.color&&b.color!=="none"?this.color=b.color:this.color=(pe=(he=this.parent)==null?void 0:he.color)!=null?pe:"",b!=null&&b.backgroundColor&&b.backgroundColor!=="none"?this.backgroundColor=b.backgroundColor:this.backgroundColor=(we=(ge=this.parent)==null?void 0:ge.backgroundColor)!=null?we:"",b!=null&&b.fontSize&&b.fontSize!=="auto"&&b.fontSize!==((Oe=this.parent)==null?void 0:Oe.size)?this.size=b.fontSize:this.size=(ct=(je=this.parent)==null?void 0:je.size)!=null?ct:Ds;let Gn=(un=(bt=this.parent)==null?void 0:bt.mathstyle)!=null?un:Uo.displaystyle;if(typeof(y==null?void 0:y.mathstyle)=="string"){if(An instanceof Ep)switch(y.mathstyle){case"cramp":Gn=Gn.cramp;break;case"superscript":Gn=Gn.sup;break;case"subscript":Gn=Gn.sub;break;case"numerator":Gn=Gn.fracNum;break;case"denominator":Gn=Gn.fracDen;break}switch(y.mathstyle){case"textstyle":Gn=Uo.textstyle;break;case"displaystyle":Gn=Uo.displaystyle;break;case"scriptstyle":Gn=Uo.scriptstyle;break;case"scriptscriptstyle":Gn=Uo.scriptscriptstyle;break;case"":case"auto":break}}this.mathstyle=Gn,this.smartFence=An.smartFence,this.placeholderSymbol=An.placeholderSymbol,this.colorMap=(Kn=An.colorMap)!=null?Kn:_n=>_n,this.backgroundColorMap=(sn=An.backgroundColorMap)!=null?sn:_n=>_n,this.getMacro=An.getMacro,console.assert(this.parent!==void 0||this.registers!==void 0)}makeID(){if(!this.atomIdsSettings)return;if(this.atomIdsSettings.overrideID)return this.atomIdsSettings.overrideID;if(typeof this.atomIdsSettings.seed!="number")return`${Date.now().toString(36).slice(-2)}${Math.floor(Math.random()*1e5).toString(36)}`;const 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===Yc||this.mathstyle.id===ms}get isCramped(){return this.mathstyle.cramped}get isTight(){return this.mathstyle.isTight}get metrics(){return this.mathstyle.metrics}get effectiveFontSize(){return Math.max(Uu[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 qc(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?Ee(Ce({},re),{dimension:E*re.dimension}):"glue"in re?Ee(Ce({},re),{glue:Ee(Ce({},re.glue),{dimension:E*re.glue.dimension}),shrink:re.shrink?Ee(Ce({},re.shrink),{dimension:E*re.shrink.dimension}):void 0,grow:re.grow?Ee(Ce({},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:Dl(E,b)/ll}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}},Bl=["body","above","below","superscript","subscript"];function gs(a){return typeof a=="string"&&Bl.includes(a)}function lu(a){return a!==void 0&&Array.isArray(a)&&a.length===2}var wn=class vl{constructor(y){var b,E,ee,re,ae,he;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=Ce({},y.style),this.displayContainsHighlight=(re=y.displayContainsHighlight)!=null?re:!1,this.captureSelection=(ae=y.captureSelection)!=null?ae:!1,this.skipBoundary=(he=y.skipBoundary)!=null?he:!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=lh(b),ae=[];for(const pe of re){const ge=pe[0].style,we=uh(y,pe,{style:{color:ge.color,backgroundColor:ge.backgroundColor,fontSize:ge.fontSize}});we&&ae.push(we)}if(ae.length===0)return null;const he=((ee=E==null?void 0:E.classes)!=null?ee:"").trim();return ae.length===1&&!he&&!(E!=null&&E.type)?ae[0].wrap(y):new Zn(ae,{classes:he,type:E==null?void 0:E.type}).wrap(y)}static serialize(y,b){return Co.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 vl({type:"mord",value:y,mode:"math"}):new vl(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=Ce({},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=ed(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=Bt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):this.body&&this.command?ci([Qi(this.command,this.bodyToLatex(y)),this.supsubToLatex(y)]):this.body?ci([this.bodyToLatex(y),this.supsubToLatex(y)]):!this.value||this.value==="\u200B"?"":this.command}bodyToLatex(y){var b;return Co.serialize(this.body,Ee(Ce({},y),{defaultMode:(b=y.defaultMode)!=null?b:this.latexMode}))}aboveToLatex(y){return Co.serialize(this.above,y)}belowToLatex(y){return Co.serialize(this.below,y)}supsubToLatex(y){let b="";if(y=Ee(Ce({},y),{defaultMode:"math"}),this.branch("subscript")!==void 0){const E=Co.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=Co.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(gs(y)&&this._branches)return this._branches[y]}get branches(){if(!this._branches)return[];const y=[];for(const b of Bl)this._branches[b]&&y.push(b);return y}createBranch(y){return console.assert(gs(y)),gs(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=Ce(Ce({},(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=Ce(Ce({},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(gs(b)),!gs(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 vl({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(gs(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 Bl)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=Bt(this.command,this.mode);if(b!=null&&b.render)return b.render(this,y);const E=new xi({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,ae=this.subscript;if(!re&&!ae)return ee;let he=null,pe=null;const ge=(E=b.isCharacterBox)!=null?E:this.isCharacterBox();let we=0;if(re){const un=new xi({parent:y,mathstyle:"superscript"});he=vl.createBox(un,re),ge||(we=ee.height-y.metrics.supDrop*un.scalingFactor)}let Oe=0;if(ae){const un=new xi({parent:y,mathstyle:"subscript"});pe=vl.createBox(un,ae),ge||(Oe=ee.depth+y.metrics.subDrop*un.scalingFactor)}let je;y.isDisplayStyle?je=y.metrics.sup1:y.isCramped?je=y.metrics.sup3:je=y.metrics.sup2;const ct=.5/ll/y.scalingFactor;let bt=null;if(pe&&he){we=Math.max(we,je,he.depth+.25*y.metrics.xHeight),Oe=Math.max(Oe,y.metrics.sub2);const un=y.metrics.defaultRuleThickness;if(we-he.depth-(pe.height-Oe)<4*un){Oe=4*un-(we-he.depth)+pe.height;const sn=.8*y.metrics.xHeight-(we-he.depth);sn>0&&(we+=sn,Oe-=sn)}const Kn=this.isExtensibleSymbol&&ee.italic?-ee.italic:0;bt=new Vi({individualShift:[{box:pe,shift:Oe,marginLeft:Kn},{box:he,shift:-we}]}).wrap(y)}else pe&&!he?(Oe=Math.max(Oe,y.metrics.sub1,pe.height-.8*hs),bt=new Vi({shift:Oe,children:[{box:pe,marginRight:ct,marginLeft:this.isCharacterBox()?-ee.italic:0}]})):!pe&&he&&(we=Math.max(we,je,he.depth+.25*hs),bt=new Vi({shift:-we,children:[{box:he,marginRight:ct}]}));return new Zn([ee,new Zn(bt,{caret:this.caret,isSelected:this.isSelected,classes:"msubsup"})],{type:b.type})}attachLimits(y,b){const E=this.superscript?vl.createBox(new xi({parent:y,mathstyle:"superscript"},this.style),this.superscript):null,ee=this.subscript?vl.createBox(new xi({parent:y,mathstyle:"subscript"},this.style),this.subscript):null;return!E&&!ee?b.base.wrap(y):tf(y,Ee(Ce({},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,ae;const he=(E=this.value)!=null?E:this.body,pe=(ee=b==null?void 0:b.boxType)!=null?ee:Uc(this.type);let ge=(re=b==null?void 0:b.classes)!=null?re:"";this.mode==="text"&&(ge+=" ML__text");const we=typeof he=="string"||he===void 0?new Zn(he!=null?he:null,{type:pe,isSelected:this.isSelected,mode:this.mode,maxFontSize:y.scalingFactor,style:Ee(Ce({variant:"normal"},this.style),{fontSize:Math.max(1,y.size+y.mathstyle.sizeDelta)}),letterShapeStyle:y.letterShapeStyle,classes:ge}):(ae=vl.createBox(y,he,{type:pe,classes:ge}))!=null?ae:new Zn(null);return y.isTight&&(we.isTight=!0),(this.mode!=="math"||this.style.variant==="main")&&(we.italic=0),we.right=we.italic,this.bind(y,we),this.caret&&!this.superscript&&!this.subscript&&(we.caret=this.caret),we}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 lh(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 uh(a,y,b){var E,ee,re,ae,he;if(!y||y.length===0)return null;const pe=new xi({parent:a},b.style),ge=!((E=pe.atomIdsSettings)!=null&&E.groupNumbers);let we=[];if(y.length===1){const je=y[0],ct=je.render(pe);ct&&(ge&&je.isSelected&&ct.selected(!0),we=[ct])}else{let je="",ct=!0;for(const bt of y){(ee=pe.atomIdsSettings)!=null&&ee.groupNumbers&&je&&(ct&&bt.isDigit()||!ct&&Jc(bt))&&(pe.atomIdsSettings.overrideID=je);const un=bt.render(pe);pe.atomIdsSettings&&(pe.atomIdsSettings.overrideID=void 0),un&&((re=pe.atomIdsSettings)!=null&&re.groupNumbers&&((bt.isDigit()||Jc(bt))&&(!je||ct!==bt.isDigit())&&(ct=bt.isDigit(),je=(ae=bt.id)!=null?ae:""),je&&(!(bt.isDigit()||Jc(bt))||!bt.hasEmptyBranch("superscript")||!bt.hasEmptyBranch("subscript"))&&(je="")),ge&&bt.isSelected&&un.selected(!0),we.push(un))}}if(we.length===0)return null;const Oe=new Zn(we,Ee(Ce({isTight:pe.isTight},b),{type:(he=b.type)!=null?he:"lift"}));return Oe.isSelected=we.every(je=>je.isSelected),Oe.wrap(pe)}function Jc(a){return a.mode==="text"}function ed(a){return a.map(y=>y===null?"":Array.isArray(y)&&y[0]instanceof wn?{atoms:y.map(b=>b.toJson())}:typeof y=="object"&&"group"in y?{group:y.group.map(b=>b.toJson())}:y)}var vs=class kp extends wn{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:bn("text",this.value.codePointAt(0))}};function uu(a,y){if(a.direction===y.direction){const b=a.ranges.length;if(y.ranges.length===b){let E=0;for(;E=":"\\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 cu(a,y){var b;let E=(b=y==null?void 0:y.format)!=null?b:"auto";return E==="auto"&&([E,a]=fh(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",Ya(a,{inlineShortcuts:y==null?void 0:y.inlineShortcuts})]):["latex",a]}function Ya(a,y){var b,E,ee;if(!a)return"";let re=!1,ae;const he=(b=y.inlineShortcuts)!=null?b:dh;if(!re&&(a.startsWith("^")||a.startsWith("_"))&&(ae=Os(a.slice(1),{inlineShortcuts:he,noWrap:!0}),a=a[0]+"{"+ae.match+"}",a+=Ya(ae.rest,y),re=!0),re||(ae=a.match(/^(sqrt|\u221A)(.*)/),ae&&(ae=Os(ae[2],{inlineShortcuts:he,noWrap:!0}),a="\\sqrt{"+((E=ae.match)!=null?E:"\\placeholder{}")+"}",a+=Ya(ae.rest,y),re=!0)),re||(ae=a.match(/^(\\cbrt|\u221B)(.*)/),ae&&(ae=Os(ae[2],{inlineShortcuts:he,noWrap:!0}),a="\\sqrt[3]{"+((ee=ae.match)!=null?ee:"\\placeholder{}")+"}",a+=Ya(ae.rest,y),re=!0)),re||(ae=a.match(/^abs(.*)/),ae&&(ae=Os(ae[1],{inlineShortcuts:he,noWrap:!0}),a="\\left|"+ae.match+"\\right|",a+=Ya(ae.rest,y),re=!0)),re||(ae=a.match(/^["”“](.*?)["”“](.*)/),ae&&(a="\\text{"+ae[1]+"}",a+=Ya(ae[2],y),re=!0)),re||(ae=a.match(/^([^a-zA-Z\(\{\[\_\^\\\s"]+)(.*)/),ae&&(a=hh(ae[1],he),a+=Ya(ae[2],y),re=!0)),!re&&/^([fgh])[^a-zA-Z]/.test(a)&&(ae=Os(a.slice(1),{inlineShortcuts:he,noWrap:!0}),a=a[1]==="("?a[0]+"\\left("+ae.match+"\\right)":a[0]+ae.match,a+=Ya(ae.rest,y),re=!0),re||(ae=a.match(/^([a-zA-Z]+)(.*)/),ae&&(a=hh(ae[1],he),a+=Ya(ae[2],y),re=!0)),!re)if(ae=Os(a,{inlineShortcuts:he,noWrap:!0}),ae.match&&ae.rest[0]==="/"){const pe=Os(ae.rest.slice(1),{inlineShortcuts:he,noWrap:!0});pe.match&&(a="\\frac{"+ae.match+"}{"+pe.match+"}"+Ya(pe.rest,y)),re=!0}else ae.match&&(a=a.startsWith("(")?"\\left("+ae.match+"\\right)"+Ya(ae.rest,y):ae.match+Ya(ae.rest,y),re=!0);return re||(ae=a.match(/^(\s+)(.*)$/),ae&&(a=" "+Ya(ae[2],y),re=!0)),a}function Os(a,y){let b="";a=a.trim();let E=a,ee=a.charAt(0),re={"(":")","{":"}","[":"]"}[ee];if(re){let ae=1,he=1;for(;he0;)a[he]===ee&&ae++,a[he]===re&&ae--,he++;ae===0?(y.noWrap&&ee==="("?b=Ya(a.substring(1,he-1),y):(ee==="{"&&re==="}"&&(ee="\\{",re="\\}"),b="\\left"+ee+Ya(a.substring(1,he-1),y)+"\\right"+re),E=a.slice(Math.max(0,he))):(b=a.substring(1,he),E="")}else{let ae=a.match(/^([a-zA-Z]+)/);if(ae){let he=td(null,a,y.inlineShortcuts);if(he)return he=he.replace("_{#?}",""),he=he.replace("^{#?}",""),{match:he,rest:a.slice(he.length)}}if(ae=a.match(/^([a-zA-Z])/),ae)return{match:ae[1],rest:a.slice(1)};if(ae=a.match(/^(-)?\d+(\.\d*)?/),ae)return{match:ae[0],rest:a.slice(ae[0].length)};/^\\(left|right)/.test(a)||(ae=a.match(/^(\\[a-zA-Z]+)/),ae&&(E=a.slice(ae[1].length),b=ae[1]))}return{match:b,rest:E}}function hh(a,y){let b=td(null,a,y);return b?(b=b.replace("_{#?}",""),b=b.replace("^{#?}",""),b+=" "):b=a,b}var nd=[["\\[","\\]"],["\\(","\\)"],["$$","$$"],["$","$"],["\\begin{math}","\\end{math}"],["\\begin{displaymath}","\\end{displaymath}"],["\\begin{equation}","\\end{equation}"],["\\begin{equation*}","\\end{equation*}"]];function Rs(a){const y=a.trim();for(const b of nd)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 fh(a){if(a=a.trim(),a.length<=1)return["latex",a];let y;return[y,a]=Rs(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 nc="$$",of="$$",sf=(a,y,b)=>(nd.some(E=>y.startsWith(E[0])&&y.endsWith(E[1]))||(y=`${nc} ${y} ${of}`),y),ph=class Qh{constructor(y){Qh._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 ae=new DataTransfer;ae.setData("text/plain",E),E=ae}const re=new ClipboardEvent("paste",{clipboardData:E,cancelable:!0});return(ee=b.host)!=null&&ee.dispatchEvent(re)?Qh._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]:Wa(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]:Wa(ee.selection);let ae=ee.getAtoms(re);if(ae.every(he=>he.mode==="text"||!he.mode))b.clipboardData.setData("text/plain",ae.filter(he=>he instanceof vs).map(he=>he.value).join(""));else if(ae.every(he=>he.mode==="latex"))b.clipboardData.setData("text/plain",ee.getAtoms(re,{includeChildren:!0}).map(he=>{var pe;return(pe=he.value)!=null?pe:""}).join(""));else{let he;ae.length===1&&ae[0].verbatimLatex!==void 0?he=ae[0].verbatimLatex:he=ee.getValue(re,"latex-expanded"),b.clipboardData.setData("application/x-latex",he);try{b.clipboardData.setData("text/plain",y.options.onExport(y,he,re))}catch(pe){}if(ae.length===1){const pe=ae[0];(pe.type==="root"||pe.type==="group")&&(ae=pe.body.filter(ge=>ge.type!=="first"))}try{b.clipboardData.setData("application/json+mathlive",JSON.stringify(ae.map(pe=>pe.toJson())))}catch(pe){}if((E=window[Symbol.for("io.cortexjs.compute-engine")])!=null&&E.ComputeEngine){const pe=window.MathfieldElement.computeEngine;if(pe)try{const ge=pe.jsonSerializationOptions;pe.jsonSerializationOptions={metadata:["latex"]};const we=pe.parse(ee.getValue(re,"latex-unstyled"));pe.jsonSerializationOptions=ge;const Oe=JSON.stringify(we.json);Oe&&b.clipboardData.setData("application/json",Oe)}catch(ge){}}}b.preventDefault()}static insert(y,b,E={}){var ee;const re=E.mode==="auto"?y.mode:(ee=E.mode)!=null?ee:y.mode;return Qh._modes[re].insert(y,b,E)}onPaste(y,b){return!1}insert(y,b,E){return!1}};ph._modes={};var ni=ph,lf=[{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","^"]}],rd={"\\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 zo(a){var y;return((y=a.element)==null?void 0:y.mathfield)===a}function Ho(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 Ns(a){const y=Ho(a);if(!y)return null;const b=y.getBoundingClientRect();return{x:b.right,y:b.bottom,height:b.height}}function id(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 ad(a,y,b){if(!y)return null;const E=a.field.getBoundingClientRect(),ee=y.right-y.left,re=y.bottom-y.top,ae=Math.ceil(y.left-E.left+a.field.scrollLeft*b),he=Math.ceil(y.top-E.top);return{left:ae,right:ae+ee,top:he,bottom:he+re}}function od(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=od(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 Tl(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?od(re):null,a.atomBoundsCache&&(ee?a.atomBoundsCache.set(y.id,ee):a.atomBoundsCache.delete(y.id)),ee!=null?ee:null}function mh(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,ae=re.offsetWidth;let pe=Math.floor(re.getBoundingClientRect().width)/ae;pe=isNaN(pe)?1:pe;const ge=ad(a,Tl(a,ee),pe);if(ge){const we=id(ee);if(E.has(we)){const Oe=E.get(we);E.set(we,{left:Math.min(Oe.left,ge.left),right:Math.max(Oe.right,ge.right),top:Math.min(Oe.top,ge.top),bottom:Math.max(Oe.bottom,ge.bottom)})}else E.set(we,ge)}}return[...E.values()]}function sd(a,y){return a.model.selection.ranges.reduce((b,E)=>b.concat(...mh(a,E,y)),[])}function ld(a,y){return a==="*"||y==="none"?!0:y==="same-origin"?!window.origin||a===window.origin:typeof y=="function"?y(a):!1}function rc(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 gh=`@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; } `,zi=`.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); } `,vh=`#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); } `,uf=`/* 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; } `,Il=`/* 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);*/ } `,cf=`.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)); } `,ic=`: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; } `,df=`.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; } `,$i;function hl(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=zi;break;case"mathfield":y=gh;break;case"environment-popover":y=vh;break;case"suggestion-popover":y=uf;break;case"keystroke-caption":y=Il;break;case"virtual-keyboard":y=cf;break;case"ui":y=ic;break;case"menu":y=df;break;default:debugger}return y}function Pl(a){return $i||($i={}),$i[a]||($i[a]=new CSSStyleSheet,$i[a].replaceSync(hl(a))),$i[a]}var ys;function Po(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(hl(a))),window.document.head.appendChild(b);return}if(ys||(ys={}),((y=ys[a])!=null?y:0)!==0)ys[a]+=1;else{const b=Pl(a);document.adoptedStyleSheets=[...document.adoptedStyleSheets,b],ys[a]=1}}function x(a){if("adoptedStyleSheets"in document&&ys!=null&&ys[a]&&(ys[a]-=1,ys[a]<=0)){const y=$i[a];document.adoptedStyleSheets=document.adoptedStyleSheets.filter(b=>b!==y)}}var z=class Ap extends wn{constructor(y){var b;super(Ee(Ce({},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 Ee(Ce({},super.toJson()),{accentChar:this.accent,svgAccent:this.svgAccent})}render(y){var b;const E=new xi({parent:y,mathstyle:"cramp"},this.style),ee=(b=wn.createBox(E,this.body))!=null?b:new Zn("\u25A2",{style:this.style});let re=0;!this.hasEmptyBranch("body")&&this.body.length===2&&this.body[1].isCharacterBox()&&(re=ee.skew);let ae=Math.min(ee.height,hs),he;if(this.svgAccent)he=Fo(this.svgAccent),ae=E.metrics.bigOpSpacing1-ae;else if(this.accent){const ge=new Zn(this.accent,{fontFamily:"Main-Regular"});ge.italic=0;const we=this.accent===8407?" ML__accent-vec":"";he=new Zn(new Zn(ge),{classes:"ML__accent-body"+we})}he=new Vi({shift:0,children:[{box:new Zn(ee)},-ae,{box:he,marginLeft:ee.left+2*re,classes:["ML__center"]}]});const pe=new Zn(he,{type:"lift"});return this.caret&&(pe.caret=this.caret),this.bind(E,pe.wrap(E)),this.attachSupsub(E,{base:pe})}},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 ue(a,y,b,E){var ee;const ae=new Zn(ie(a),{fontFamily:"Main-Regular",isSelected:E.isSelected,classes:"ML__small-delim "+((ee=E.classes)!=null?ee:"")}).wrap(y);return b&&ae.setTop((1-y.scalingFactor)*ro),ae}function me(a,y,b,E,ee){var re,ae;const he=new xi({parent:E,mathstyle:"textstyle"},ee==null?void 0:ee.style),pe=new Zn(ie(a),{fontFamily:`Size${y}-Regular`,isSelected:ee.isSelected,classes:((re=ee.classes)!=null?re:"")+` ML__delim-size${y}`,type:(ae=ee.type)!=null?ae:"ignore"}).wrap(he);return b&&pe.setTop((1-he.scalingFactor)*ro),pe}function Se(a,y,b,E,ee){var re;let ae,he,pe,ge;ae=pe=ge=ie(a),he=null;let we="Size1-Regular";a==="\\vert"||a==="\\lvert"||a==="\\rvert"||a==="\\mvert"||a==="\\mid"?pe=ae=ge=8739:a==="\\Vert"||a==="\\lVert"||a==="\\rVert"||a==="\\mVert"||a==="\\|"?pe=ae=ge=8741:a==="\\uparrow"?pe=ge=9168:a==="\\Uparrow"?pe=ge=8214:a==="\\downarrow"?ae=pe=9168:a==="\\Downarrow"?ae=pe=8214:a==="\\updownarrow"?(ae=8593,pe=9168,ge=8595):a==="\\Updownarrow"?(ae=8657,pe=8214,ge=8659):a==="["||a==="\\lbrack"?(ae=9121,pe=9122,ge=9123,we="Size4-Regular"):a==="]"||a==="\\rbrack"?(ae=9124,pe=9125,ge=9126,we="Size4-Regular"):a==="\\lfloor"||a==="\u230A"?(pe=ae=9122,ge=9123,we="Size4-Regular"):a==="\\lceil"||a==="\u2308"?(ae=9121,pe=ge=9122,we="Size4-Regular"):a==="\\rfloor"||a==="\u230B"?(pe=ae=9125,ge=9126,we="Size4-Regular"):a==="\\rceil"||a==="\u2309"?(ae=9124,pe=ge=9125,we="Size4-Regular"):a==="("||a==="\\lparen"?(ae=9115,pe=9116,ge=9117,we="Size4-Regular"):a===")"||a==="\\rparen"?(ae=9118,pe=9119,ge=9120,we="Size4-Regular"):a==="\\{"||a==="\\lbrace"?(ae=9127,he=9128,ge=9129,pe=9130,we="Size4-Regular"):a==="\\}"||a==="\\rbrace"?(ae=9131,he=9132,ge=9133,pe=9130,we="Size4-Regular"):a==="\\lgroup"||a==="\u27EE"?(ae=9127,ge=9129,pe=9130,we="Size4-Regular"):a==="\\rgroup"||a==="\u27EF"?(ae=9131,ge=9133,pe=9130,we="Size4-Regular"):a==="\\lmoustache"||a==="\u23B0"?(ae=9127,ge=9133,pe=9130,we="Size4-Regular"):a==="\\rmoustache"||a==="\u23B1"?(ae=9131,ge=9129,pe=9130,we="Size4-Regular"):a==="\\surd"?(ae=57345,ge=9143,pe=57344,we="Size4-Regular"):a==="\\ulcorner"?(ae=9484,pe=ge=32):a==="\\urcorner"?(ae=9488,pe=ge=32):a==="\\llcorner"?(ge=9492,pe=ae=32):a==="\\lrcorner"&&(ae=9496,pe=ae=32);const Oe=fs(ae,we),je=Oe.height+Oe.depth,ct=fs(pe,we),bt=ct.height+ct.depth,un=fs(ge,we),Kn=un.height+un.depth;let sn=0,An=1;if(he!==null){const ja=fs(he,we);sn=ja.height+ja.depth,An=2}const Gn=je+Kn+sn,_n=Math.max(0,Math.ceil((y-Gn)/(An*bt))),Br=Gn+_n*An*bt;let Kr=ro;b&&(Kr=Kr*E.scalingFactor);const Nr=Br/2-Kr,Ci=.008,Hi=[];Hi.push({box:new Zn(ge,{fontFamily:we})}),Hi.push(-Ci);const ir=new Zn(pe,{fontFamily:we});if(he===null)for(let ja=0;ja<_n;ja++)Hi.push({box:ir});else{for(let ja=0;ja<_n;ja++)Hi.push({box:ir});Hi.push(-Ci),Hi.push({box:new Zn(he,{fontFamily:we})}),Hi.push(-Ci);for(let ja=0;ja<_n;ja++)Hi.push({box:ir})}Hi.push(-Ci),Hi.push({box:new Zn(ae,{fontFamily:we})});let Zo="";we==="Size1-Regular"?Zo=" delim-size1":we==="Size4-Regular"&&(Zo=" delim-size4");const $s=new Vi({bottom:Nr,children:Hi},{classes:Zo});return new Zn($s,Ee(Ce({},ee!=null?ee:{}),{classes:((re=ee==null?void 0:ee.classes)!=null?re:"")+" ML__delim-mult"}))}var ke=new Set(["(",")","\\lparen","\\rparen","[","]","\\lbrack","\\rbrack","\\{","\\}","\\lbrace","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","\\surd","\u230A","\u230B","\u2308","\u2309"]),Pe=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\mvert","\\mid","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache","\u27EE","\u27EF","\u23B0","\u23B1"]),ut=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),xt=[0,1.2,1.8,2.4,3];function en(a,y,b,E){return a===void 0||a==="."?kr(b,E.classes):(a==="<"||a==="\\lt"||a==="\u27E8"?a="\\langle":(a===">"||a==="\\gt"||a==="\u27E9")&&(a="\\rangle"),ke.has(a)||ut.has(a)?me(a,y,!1,b,E):Pe.has(a)?Se(a,xt[y],!1,b,E):(console.assert(!1,"Unknown delimiter '"+a+"'"),null))}var Gt=[{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}],Sn=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"stack"}],Tn=[{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 Jn(a){return a.type==="small"?"Main-Regular":a.type==="large"?"Size"+a.size+"-Regular":(console.assert(a.type==="stack"),"Size4-Regular")}function gr(a,y,b,E){const ee={"-4":0,"-3":1,0:2}[E.mathstyle.sizeDelta];for(let re=ee;rey)return b[re]}return b[b.length-1]}function Cr(a,y,b,E,ee,re){if(!y||y.length===0||y===".")return kr(ee);y==="<"||y==="\\lt"?y="\\langle":(y===">"||y==="\\gt")&&(y="\\rangle");let ae;ut.has(y)?ae=Gt:ke.has(y)?ae=Tn:ae=Sn;const he=gr(ie(y),b,ae,ee),pe=new xi({parent:ee,mathstyle:he.mathstyle},re==null?void 0:re.style);return he.type==="small"?ue(y,pe,E,Ee(Ce({},re),{type:a})):he.type==="large"?me(y,he.size,E,pe,Ee(Ce({},re),{type:a})):(console.assert(he.type==="stack"),Se(y,b,E,pe,Ee(Ce({},re),{type:a})))}function dr(a,y,b,E,ee,re){if(y===".")return kr(ee,re==null?void 0:re.classes);const ae=ro*ee.scalingFactor,he=901,pe=5/ll,ge=Math.max(b-ae,E+ae),we=Math.max(ge/500*he,2*ge-pe);return Cr(a,y,we,!0,ee,re)}function kr(a,y){const b=new Zn(null,{classes:" nulldelimiter "+(y!=null?y:""),type:"ignore"});return b.width=a.getRegisterAsEm("nulldelimiterspace"),b.wrap(new xi({parent:a,mathstyle:"textstyle"}))}var Wr=class Lp extends wn{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 Lp(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{}"}},Zr=["matrix","matrix*","pmatrix","pmatrix*","bmatrix","bmatrix*","Bmatrix","Bmatrix*","vmatrix","vmatrix*","Vmatrix","Vmatrix*"],di=["cases","dcases","rcases"],ji=["align","align*","aligned","gather","gathered","split"],Na=["array","subequations","eqnarray"];function sa(a){return Na.concat(ji).concat(di).concat(Zr).includes(a)}function uo(a){return Zr.includes(a)}function co(a){return di.includes(a)}function Ca(a){return ji.includes(a)}function ho(a,y,b){let E=0;for(const ge of b)"align"in ge&&(E+=1);let ee=0;const re=[];for(const ge of y){let we=0;for(ee=Math.max(ee,Math.min(ge.length,E));webt.type==="first")),Oe.push(ct)),we+=1}re.push(Oe)}}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 ae=[];for(const ge of re){if(ge.length!==ee)for(let we=ge.length;web.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(gs(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,ae,he;const pe=new xi({parent:y,mathstyle:this.mathstyleName},this.style),ge=pe.getRegisterAsEm("arrayrulewidth"),we=pe.getRegisterAsEm("arraycolsep"),Oe=pe.getRegisterAsEm("doublerulesep"),je=(E=(b=this.arraystretch)!=null?b:pe.getRegisterAsNumber("arraystretch"))!=null?E:1;let ct=typeof this.arraycolsep=="number"?this.arraycolsep:we;this.colSeparationType==="small"&&(ct=.2778*(new xi({parent:y,mathstyle:"scriptstyle"}).scalingFactor/y.scalingFactor));const bt=je*Gu,un=.7*bt,Kn=.3*bt;let sn=0;const An=[];let Gn=0;const _n=this.array.length;for(let Ui=0;Ui<_n;++Ui){const ba=this.array[Ui];Gn=Math.max(Gn,ba.length);const Ga=new xi({parent:pe,mathstyle:this.mathstyleName},this.style);let js=un/Ga.scalingFactor,Gs=Kn/Ga.scalingFactor;const Us={cells:[],height:0,depth:0,pos:0};for(const ws of ba){const e0=(ee=wn.createBox(Ga,ws,{type:"ignore"}))!=null?ee:new Zn(null,{type:"ignore"});Gs=Math.max(Gs,e0.depth),js=Math.max(js,e0.height),Us.cells.push(e0)}let Xs=(re=qc(this.rowGaps[Ui]))!=null?re:0;Xs>0&&(Xs+=Kn,Gs=Math.max(Gs,Xs),Xs=0),Ui<_n-1&&!uo(this.environmentName)&&this.environmentName!=="cases"&&this.environmentName!=="array"&&(Gs+=pe.getRegisterAsEm("jot")),Us.height=js,Us.depth=Gs,sn+=js,Us.pos=sn,sn+=Gs+Xs,An.push(Us)}const Br=sn/2+ro,Kr=[];for(let Ui=0;Ui0&&Kr.push(new Vi({individualShift:ba}))}const Nr=[];let Ci=!1,Hi=!1,ir=0,Zo=!this.leftDelim;const{colFormat:$s}=this;for(const Ui of $s){if("align"in Ui&&ir>=Kr.length)break;if("align"in Ui)Ci?Nr.push(la(2*ct)):(Hi||Zo)&&Nr.push(la(ct)),Nr.push(new Zn(Kr[ir],{classes:"col-align-"+Ui.align})),ir++,Ci=!0,Hi=!1,Zo=!1;else if("gap"in Ui){if(typeof Ui.gap=="number")Nr.push(la(Ui.gap));else{const ba=ha(y,An,Br,Ui.gap);ba&&Nr.push(ba)}Ci=!1,Hi=!1,Zo=!1}else if("separator"in Ui){const ba=new Zn(null,{classes:"vertical-separator"});ba.height=sn,ba.setStyle("height",sn,"em"),ba.setStyle("border-right",`${ge}em ${Ui.separator} currentColor`),ba.setStyle("vertical-align",-(sn-Br),"em");let Ga=0;Hi?Ga=Oe-ge:Ci&&(Ga=ct-ge),ba.left=Ga,Nr.push(ba),Ci=!1,Hi=!0,Zo=!1}}Ci&&!this.rightDelim&&Nr.push(la(ct));const Jo=new Zn(Nr,{classes:"mtable"});if((!this.leftDelim||this.leftDelim===".")&&(!this.rightDelim||this.rightDelim==="."))return this.caret&&(Jo.caret=this.caret),this.bind(y,Jo);const ja=Jo.height,Vo=Jo.depth,Eo=this.bind(y,new Zn([this.bind(y,dr("open",(ae=this.leftDelim)!=null?ae:".",ja,Vo,pe,{isSelected:this.isSelected})),Jo,this.bind(y,dr("close",(he=this.rightDelim)!=null?he:".",ja,Vo,pe,{isSelected:this.isSelected}))],{type:"ord"}));return Eo?(Eo.setStyle("display","inline-block"),this.caret&&(Eo.caret=this.caret),this.bind(y,this.attachSupsub(y,{base:Eo}))):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;ee0&&E.push(" & "),E.push(wn.serialize(this.array[ee][re],y));if(eey);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;Ey);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;bee.type!=="first"));return y}};function da(a){const y=new wn({type:"first",mode:a.mode});y.parent=a;const b=new Wr;return b.parent=a,[y,b]}function la(a){const y=new Zn(null,{classes:"arraycolsep"});return y.width=a,y}function ha(a,y,b,E){if(!E)return null;const ee=[];for(const re of y){const ae=wn.createBox(a,E,{type:"ignore"});ae&&(ae.depth=re.depth,ae.height=re.height,ee.push({box:ae,shift:re.pos-b}))}return new Vi({individualShift:ee}).wrap(a)}var va=class _p extends wn{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 _p(y)}toJson(){return Ee(Ce({},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 ae=wn.createBox(y,this.body,{type:"lift"});if(!ae)return null;const he=y.toEm((b=this.offset)!=null?b:{dimension:0});ae.depth+=he,ae.setStyle("display","inline-block"),ae.setStyle("position","relative"),ae.setStyle("height",Math.floor(100*ae.height+ae.depth)/100,"em"),ae.setStyle("vertical-align",-Math.floor(100*ae.height)/100,"em");const pe=new xi({parent:y},this.style),ge=pe.toEm((E=this.padding)!=null?E:{register:"fboxsep"}),we=new Zn(null,{classes:"ML__box"});we.height=ae.height+ge,we.depth=ae.depth+ge,we.setStyle("box-sizing","border-box"),we.setStyle("position","absolute"),we.setStyle("top",-ge+.3,"em"),we.setStyle("left",0),we.setStyle("height",we.height+we.depth,"em"),we.setStyle("width","100%"),this.backgroundcolor&&we.setStyle("background-color",(ee=pe.toColor(this.backgroundcolor))!=null?ee:"transparent"),this.framecolor&&we.setStyle("border",`${pe.getRegisterAsEm("fboxrule",2)}em solid ${(re=pe.toColor(this.framecolor))!=null?re:"black"}`),this.border&&we.setStyle("border",this.border);const Oe=new Zn([we,ae],{type:"lift"});return Oe.setStyle("display","inline-block"),Oe.setStyle("position","relative"),Oe.setStyle("line-height",0),Oe.height=ae.height+ge+(he>0?he:0),Oe.depth=ae.depth+ge+(he<0?-he:0),Oe.setStyle("padding-left",ge,"em"),Oe.setStyle("padding-right",ge,"em"),Oe.setStyle("height",Math.floor(100*(ae.height+ae.depth+2*ge+Math.abs(he)))/100,"em"),Oe.setStyle("margin-top",-ge,"em"),Oe.setStyle("top",Math.floor(100*(ae.depth-ae.height+2*ge-he))/100,"em"),Oe.setStyle("vertical-align",Math.floor(100*(ae.depth+2*ge))/100,"em"),this.caret&&(Oe.caret=this.caret),this.attachSupsub(y,{base:Oe})}_serialize(y){return y.skipStyles?ci([this.bodyToLatex(y),this.supsubToLatex(y)]):super._serialize(y)}},fl=class Bp extends wn{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 Bp(y.value,y)}toJson(){return super.toJson()}get computedStyle(){return{}}render(y){const b=new Zn(this.value,{classes:"ML__composition",type:"composition"});return this.bind(y,b),this.caret&&(b.caret=this.caret),b}_serialize(y){return""}},vo=class Tp extends wn{constructor(y){super({type:"error",value:y,command:y,mode:"math"}),this.verbatimLatex=y}static fromJson(y){return new Tp(y.command)}toJson(){return super.toJson()}render(y){const b=this.createBox(y,{classes:"ML__error"});return this.caret&&(b.caret=this.caret),b}},Za=class Ip extends wn{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 Ip(y.body,y.mode,y.style)}render(y){const b=wn.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=Bt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):`{${this.bodyToLatex(y)}}`}},Li=class Pp extends wn{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"?ci(["\\left",(b=this.leftDelim)!=null?b:".",this.bodyToLatex(y),"\\right",ee]):this.variant==="mleft...mright"?ci(["\\mleft",(E=this.leftDelim)!=null?E:".",this.bodyToLatex(y),"\\mright",ee]):ci([!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 xi({parent:y},this.style);console.assert(this.body!==void 0);const re=new xi({parent:y,mathstyle:"textstyle"},this.style),ae=(b=wn.createBox(ee,this.body,{type:"inner"}))!=null?b:new Zn(null,{type:"inner"}),he=ae.height/re.scalingFactor,pe=ae.depth/re.scalingFactor,ge=[];if(this.leftDelim&&ge.push(this.bind(re,dr("open",this.leftDelim,he,pe,re,{isSelected:this.isSelected,classes:"ML__open"+(this.containsCaret?" ML__contains-caret":""),mode:this.mode,style:this.style}))),ae&&(Ta(ae.children,this,ee,he,pe),ge.push(ae)),this.rightDelim){let ct=this.containsCaret?" ML__contains-caret":"",bt=this.rightDelim;bt==="?"&&(ee.smartFence?(bt=this.matchingRightDelim(),ct+=" ML__smart-fence__close"):bt="."),ge.push(this.bind(re,dr("close",bt,he,pe,re,{isSelected:this.isSelected,classes:ct+" ML__close",mode:this.mode,style:this.style})))}let we=this.variant==="mleft...mright";const Oe=this.leftSibling;Oe&&(!we&&Oe.isFunction&&(we=!0),!we&&Oe.type==="subsup"&&((E=Oe.leftSibling)!=null&&E.isFunction)&&(we=!0));const je=new Zn(ge,{type:we?"close":"inner",classes:"left-right"});return je.setStyle("margin-top",`${-ae.depth}em`),je.setStyle("height",`${ae.height+ae.depth}em`),this.caret&&(je.caret=this.caret),this.bind(ee,je.wrap(ee))}};function Ta(a,y,b,E,ee){if(a)for(let re=0;reb.type!=="first").map(b=>b.toJson())),this.correctness&&(y.correctness=this.correctness),y.locked=this.locked,y}render(y){const b=new xi({parent:y}),E=b.getRegisterAsEm("fboxsep"),ee=E,re=E,ae=wn.createBox(y,this.body);if(!ae)return null;ae.height||(ae.height=b.metrics.xHeight),ae.setStyle("vertical-align",-ae.height,"em"),this.correctness==="correct"?ae.setStyle("color","var(--correct-color, var(--ML__correct-color))"):this.correctness==="incorrect"&&ae.setStyle("color","var(--incorrect-color, var(--ML__incorrect-color))");const he=new Zn(ae,{type:"ord"});he.setStyle("display","inline-block"),he.setStyle("height",ae.height+ae.depth,"em"),he.setStyle("vertical-align",-re,"em");let pe="ML__prompt ";this.locked?pe+=" ML__lockedPromptBox ":pe+=" ML__editablePromptBox ",this.correctness==="correct"?pe+=" ML__correctPromptBox ":this.correctness==="incorrect"&&(pe+=" ML__incorrectPromptBox "),this.containsCaret&&(pe+=" ML__focusedPromptBox ");const ge=new Zn(null,{classes:pe,attributes:{part:"prompt"}});ge.height=he.height+re,ge.depth=he.depth+re,ge.width=he.width+2*ee,ge.setStyle("box-sizing","border-box"),ge.setStyle("position","absolute"),ge.setStyle("height",he.height+he.depth+2*re,"em"),ee===0&&ge.setStyle("width","100%"),ee!==0&&(ge.setStyle("width",`calc(100% + ${2*ee}em)`),ge.setStyle("top",E,"em"),ge.setStyle("left",-ee,"em")),(!this.body||this.body.length===1)&&(ge.width=3*ee,ge.setStyle("width",`calc(100% + ${3*ee}em)`),ge.setStyle("left",-1.5*ee,"em"));let we="";this.correctness==="incorrect"&&(we+=''),we&&(ge.svgOverlay=we);const Oe=new Zn([ge,he],{classes:"ML__prompt-atom"});return Oe.setStyle("position","relative"),Oe.setStyle("display","inline-block"),Oe.setStyle("line-height",0),Oe.height=he.height+re+.2,Oe.depth=he.depth+re,Oe.left=ee,Oe.right=ee,Oe.setStyle("height",he.height+re,"em"),Oe.setStyle("top",he.depth-he.height,"em"),Oe.setStyle("vertical-align",he.depth+re,"em"),Oe.setStyle("margin-left",.5,"em"),Oe.setStyle("margin-right",.5,"em"),this.caret&&(Oe.caret=this.caret),this.bind(b,this.attachSupsub(y,{base:Oe}))}_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]"),Qi(ee,E)}},Yo=class Fp extends wn{constructor(y){super({type:"subsup",style:y==null?void 0:y.style}),this.subsupPlacement="auto"}static fromJson(y){const b=new Fp(y);for(const E of Bl)y[E]&&b.setChildren(y[E],E);return b}render(y){var b;const E=new xi({parent:y,isPhantom:!0}),ee=this.leftSibling,re=(b=ee.render(E))!=null?b:new Zn(null),ae=new Zn(null);return ae.height=re.height,ae.depth=re.depth,this.attachSupsub(y,{base:ae,isCharacterBox:ee.isCharacterBox(),type:"ignore"})}_serialize(y){return this.supsubToLatex(y)}};function Ma(a){return a?!/^(<$$>|<$>||<{>|<}>|#[0-9\?]|\\.+)$/.test(a):!1}var pl=class{constructor(a,y,b){this.errors=[],this.index=0,this.endCount=0;var E,ee,re,ae;b!=null||(b={}),this.tokens=a,this.context=y instanceof xi&&!(b!=null&&b.parseMode)&&!b.mathstyle?y:new xi({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:(ae=b.mathstyle)!=null?ae:"displaystyle",tabular:!1}}beginContext(a){var y,b,E;const ee=this.parsingContext,re={parent:ee,mathlist:[],style:Ce({},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(Ce({before:Ts(this.tokens.slice(this.index,this.index+10)),after:Ts(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 Ce({},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.index0&&(a=this.mathlist[this.mathlist.length-1],a.type==="subsup"||a.subsupPlacement!==void 0)||(a=new Yo({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"););}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(""););}matchKeyword(a){const y=this.index;let b=this.end(),E="";for(;!b;){const re=this.get();Ma(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==="")a+=" ";else if(y.startsWith("\\"))this.onError({code:"unexpected-command-in-string"}),a+=y.substring(1);else if(Ma(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===""?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={"":" ","<$$>":"$$","<$>":"$"}[E])!=null?a:E)}return y}scanNumber(a=!0){var y,b;let E=!1,ee=this.peek();for(;ee===""||ee==="+"||ee==="-";)this.get(),ee==="-"&&(E=!E),ee=this.peek();a=!!a;let re=10,ae=/\d/;if(this.match("'"))re=8,ae=/[0-7]/,a=!0;else if(this.match('"'))re=16,ae=/[\dA-F]/,a=!0;else if(this.match("x"))re=16,ae=/[\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 he="";for(;this.hasPattern(ae);)he+=this.get();if(!a&&(this.match(".")||this.match(",")))for(he+=".";this.hasPattern(ae);)he+=this.get();const pe=a?Number.parseInt(he,re):Number.parseFloat(he);return Number.isNaN(pe)?null:{number:E?-pe:pe,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()||!Ma(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=vt(a);if(!y)return this.onError({code:"unknown-environment",arg:a}),null;const b=[];if(y.params)for(const he of y.params)if(he.isOptional)b.push(this.scanOptionalArgument(he.type));else{const pe=this.scanArgument(he.type);pe||this.onError({code:"missing-argument",arg:a}),b.push(pe)}this.beginContext({tabular:y.tabular});const E=[],ee=[];let re=[],ae=!1;do if(this.end()&&(this.onError({code:"unbalanced-environment",arg:a}),ae=!0),!ae&&this.match("\\end")&&(this.scanArgument("string")!==a&&this.onError({code:"unbalanced-environment",arg:a}),ae=!0),!ae)if(this.matchColumnSeparator())re.push(this.mathlist),this.mathlist=[];else if(this.matchRowSeparator()){re.push(this.mathlist),this.mathlist=[];let he=null;this.skipWhitespace(),this.match("[")&&(he=this.scanDimen(),this.skipWhitespace(),this.match("]")),ee.push(he!=null?he:{dimension:0}),E.push(re),re=[]}else this.mathlist.push(...this.scan(he=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline"].includes(he)));while(!ae);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=ae=>ae==="<}>");let y="",b=null,E=[],ee=null;for(;!this.end()&&!a(this.peek());)this.hasInfixCommand()&&!y?(y=this.get(),b=Bt(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 Za(y,this.parseMode,this.style);return b.verbatimLatex=Ts(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 Li("",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(!Ma(a)&&!a.startsWith("\\"))return null;this.next();const y=Bt(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 vo("\\right");if(this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),new vo("\\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 vo(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 Li(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 wn({type:"mord",command:"\\doubleprime",mode:"math",value:"\u2032\u2032"}),"superscript"):y.addChild(new wn({type:"mord",command:"\\prime",mode:"math",value:"\u2032"}),"superscript"):(this.match("^")||this.match("_"))&&y.addChildren(Ue(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["<}>","&","\\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(Ma(a)){const b=Co.createAtom(this.parseMode,a,Ce({},this.style));return b?[b]:null}if(y=this.scanMacro(a),y)return[y];if(a.startsWith("\\")){const b=Bt(a,this.parseMode);if(!b)return this.onError({code:"unknown-command",arg:a}),[new vo(a)];if(b.definitionType==="symbol"){const E=Ce({},this.style);b.variant&&(E.variant=b.variant),y=new wn({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 vo(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 ae=ee.match(/^\s*border\s*:\s*(.*)/);ae?b.border=ae[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 he=this.scanOptionalArgument("string"),pe=this.scanOptionalArgument("math"),ge=wn.serialize(pe,{defaultMode:"math"});let we=[],Oe;!Oe&&ge==="correct"?Oe="correct":!Oe&&ge==="incorrect"?Oe="incorrect":ge!==""&&(we=pe);const je=this.scanOptionalArgument("string")==="locked",ct=this.scanArgument("auto");let bt;return ct&&Array.isArray(ct)&&ct.length>0?bt=ct:ct&&typeof ct=="object"&&"group"in ct?bt=ct.group:bt=we,he?[new Fs(he,Oe,je,bt!=null?bt:we,{mode:this.parseMode,style:this.style})]:[new Wr({mode:this.parseMode,style:this.style})]}if(a==="\\renewcommand"||a==="\\newcommand"||a==="\\providecommand"||a==="\\def"){const he=this.index,pe=this.scanLiteralGroup()||this.next();if(!pe)return null;if(this.context.registers[pe.substring(1)]){const ge=this.scanArgument("string");ge!==null&&(this.context.registers[pe.substring(1)]=ge);const we=ci([a,Ts(this.tokens.slice(he,this.index))]);return[new wn({type:"text",value:"",verbatimLatex:we})]}}let ee=this.scanMacro(a);if(ee)return[ee];const re=Bt(a,this.parseMode);if(!re)return this.parseMode==="text"?(/[a-zA-Z]/.test((y=this.peek())!=null?y:"")&&(a+=" "),[...a].map(he=>new wn({type:"text",value:he,mode:"text",style:this.style}))):(this.onError({code:"unknown-command",arg:a}),[new vo(a)]);const ae=this.index;if(re.definitionType==="symbol"){const he=Ce({},this.style);re.variant&&(he.variant=re.variant),ee=new wn({type:re.type,command:a,style:he,value:String.fromCodePoint(re.codepoint),mode:this.parseMode})}else{if(re.ifMode&&!re.ifMode.includes(this.parseMode))return[];const he=this.parseMode;re.applyMode&&(this.parseMode=re.applyMode);let pe,ge=[];if(re.parse?ge=re.parse(this):[pe,ge]=this.scanArguments(re),this.parseMode=he,re.applyMode&&!re.applyStyle&&!re.createAtom)return Ue(ge[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:ge,style:this.style,mode:this.parseMode}),pe&&(ee.body=Ue(this.scanArgument(pe)));else if(typeof re.applyStyle=="function"){const we=Ce(Ce({},this.style),re.applyStyle(a,ge,this.context)),Oe=this.parseMode;if(re.applyMode&&(this.parseMode=re.applyMode),pe){const je=this.style;this.style=we;const ct=this.scanArgument(pe);return this.style=je,this.parseMode=Oe,Ue(ct)}this.style=we}else ee=new wn({type:"mord",command:(b=re.command)!=null?b:a,style:Ce({},this.style),value:a,mode:(E=re.applyMode)!=null?E:this.parseMode})}if(!ee)return null;if(ee instanceof wn&&ee.verbatimLatex===void 0&&!/^\\(llap|rlap|class|cssId|htmlData)$/.test(a)){const he=ci([a,Ts(this.tokens.slice(ae,this.index))]);he&&(ee.verbatimLatex=he)}if(ee.verbatimLatex===null&&(ee.verbatimLatex=void 0),ee.isFunction&&this.smartFence){const he=this.scanSmartFence();if(he)return[ee,he]}return[ee]}scanSymbolCommandOrLiteral(){const a=this.get();if(!a)return null;if(Ma(a)){const y=Co.createAtom(this.parseMode,a,Ce({},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===""?this.parseMode==="text"?[new vs(" "," ",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 ae=1;ae<=ee;ae++){let he=this.scanLiteralGroup();if(!he){const pe=this.index;this.scanExpression(),he=Ts(this.tokens.slice(pe,this.index))}re[ae]=he}return new ac(a,{expand:b.expand,captureSelection:b.captureSelection,args:E===this.index?null:Ts(this.tokens.slice(E,this.index)),style:this.parsingContext.style,body:Va(b.def,{context:this.context,parseMode:this.parseMode,args:ae=>re[ae],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 Va(a,y){var b,E,ee,re;const ae=(b=y==null?void 0:y.args)!=null?b:void 0,he=new pl(ps(a,ae),y==null?void 0:y.context,{args:ae,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:{}}),pe=[];for(;!he.end();)pe.push(...he.scan(()=>!1));return pe}function t0(a,y){var b;const E=new pl(ps(a,null),y==null?void 0:y.context,{mathstyle:"displaystyle",parseMode:(b=y==null?void 0:y.parseMode)!=null?b:"math"});for(;!E.end();)E.scan();return E.errors}var n0=class zp extends wn{constructor(y,b){super({type:"chem"},{command:y,mode:"math"});const E=ia.go(zn.go(b,y==="\\pu"?"pu":"ce"),!1);this.body=Va(E),this._verbatimLatex=y+"{"+b+"}",this.arg=b,this.captureSelection=!0}static fromJson(y){return new zp(y.command,y.arg)}set verbatimLatex(y){}get verbatimLatex(){return this._verbatimLatex}toJson(){return Ee(Ce({},super.toJson()),{arg:this.arg})}render(y){const b=wn.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}};ot(["ce","pu"],"{chemformula:balanced-string}",{createAtom:a=>{var y;return new n0(a.command,(y=a.args[0])!=null?y:"")}});var zn={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,ae=[];;){ee!==a?(re=10,ee=a):re--;var he=zn.stateMachines[y],pe=he.transitions[b]||he.transitions["*"];e:for(var ge=0;ge0){if(Oe.revisit||(a=we.remainder),!Oe.toContinue)break e}else return ae}}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":/^[=<>]/,"#":/^[#\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 zn.patterns.findObserveGroups(a,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(a){return zn.patterns.findObserveGroups(a,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(a){return zn.patterns.findObserveGroups(a,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(a){return zn.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 zn.patterns.findObserveGroups(a,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(a){return zn.patterns.findObserveGroups(a,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(a){return zn.patterns.findObserveGroups(a,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(a){return zn.patterns.findObserveGroups(a,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(a){return zn.patterns.findObserveGroups(a,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(a){return zn.patterns.findObserveGroups(a,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(a){return zn.patterns.findObserveGroups(a,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(a){return zn.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=zn.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,ae,he,pe,ge){var we=function(sn,An){if(typeof An=="string")return sn.indexOf(An)!==0?null:An;var Gn=sn.match(An);return Gn?Gn[0]:null},Oe=function(sn,An,Gn){for(var _n=0;An0,null},je=we(a,y);if(je===null||(a=a.substr(je.length),je=we(a,b),je===null))return null;var ct=Oe(a,je.length,E||ee);if(ct===null)return null;var bt=a.substring(0,E?ct.endMatchEnd:ct.endMatchBegin);if(re||ae){var un=this.findObserveGroups(a.substr(ct.endMatchEnd),re,ae,he,pe);if(un===null)return null;var Kn=[bt,un.match_];return{match_:ge?Kn.join(""):Kn,remainder:un.remainder}}else return{match_:bt,remainder:a.substr(ct.endMatchEnd)}},match_:function(a,y){var b=zn.patterns.patterns[a];if(b===void 0)throw["MhchemBugP","mhchem bug P. Please report. ("+a+")"];if(typeof b=="function")return zn.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 zn.go(y,"text")},"{text}":function(a,y){var b=["{"];return zn.concatArray(b,zn.go(y,"text")),b.push("}"),b},"tex-math":function(a,y){return zn.go(y,"tex-math")},"tex-math tight":function(a,y){return zn.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 zn.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 zn.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":{"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 zn.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 zn.concatArray(b,this.output(a)),zn.concatArray(b,zn.actions.bond(a,y,"-")),b}else a.d=y},"- after o/d":function(a,y,b){var E=zn.patterns.match_("orbital",a.o||""),ee=zn.patterns.match_("one lowercase greek letter $",a.o||""),re=zn.patterns.match_("one lowercase latin letter $",a.o||""),ae=zn.patterns.match_("$one lowercase latin letter$ $",a.o||""),he=y==="-"&&(E&&E.remainder===""||ee||re||ae);he&&!a.a&&!a.b&&!a.p&&!a.d&&!a.q&&!E&&re&&(a.o="$"+a.o+"$");var pe=[];return he?(zn.concatArray(pe,this.output(a)),pe.push({type_:"hyphen"})):(E=zn.patterns.match_("digits",a.d||""),b&&E&&E.remainder===""?(zn.concatArray(pe,zn.actions["d="](a,y)),zn.concatArray(pe,this.output(a))):(zn.concatArray(pe,this.output(a)),zn.concatArray(pe,zn.actions.bond(a,y,"-")))),pe},"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:zn.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"&&zn.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:zn.go(a.a,"a"),b:zn.go(a.b,"bd"),p:zn.go(a.p,"pq"),o:zn.go(a.o,"o"),q:zn.go(a.q,"pq"),d:zn.go(a.d,a.dType==="oxidation"?"oxidation":"bd"),dType:a.dType}));else{var ee;a.rdt==="M"?ee=zn.go(a.rd,"tex-math"):a.rdt==="T"?ee=[{type_:"text",p1:a.rd||""}]:ee=zn.go(a.rd);var re;a.rqt==="M"?re=zn.go(a.rq,"tex-math"):a.rqt==="T"?re=[{type_:"text",p1:a.rq||""}]:re=zn.go(a.rq),E={type_:"arrow",r:a.r,rd:ee,rq:re}}for(var ae in a)ae!=="parenthesisLevel"&&ae!=="beginsWithBond"&&delete a[ae];return E},"oxidation-output":function(a,y){var b=["{"];return zn.concatArray(b,zn.go(y,"oxidation")),b.push("}"),b},"frac-output":function(a,y){return{type_:"frac-ce",p1:zn.go(y[0]),p2:zn.go(y[1])}},"overset-output":function(a,y){return{type_:"overset",p1:zn.go(y[0]),p2:zn.go(y[1])}},"underset-output":function(a,y){return{type_:"underset",p1:zn.go(y[0]),p2:zn.go(y[1])}},"underbrace-output":function(a,y){return{type_:"underbrace",p1:zn.go(y[0]),p2:zn.go(y[1])}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:zn.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:zn.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:zn.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:zn.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:zn.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:zn.go(y,"o")}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:zn.go(y[1],"pq")}}}},bd:{transitions:zn.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:zn.go(y[1],"bd")}}}},oxidation:{transitions:zn.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:zn.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:zn.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:zn.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:zn.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]&&(zn.concatArray(b,zn.go(y[1],"pu-9,9")),y[2]&&(y[2].match(/[,.]/)?zn.concatArray(b,zn.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]),zn.concatArray(b,zn.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=zn.patterns.match_("{(...)}",a.d||"");b&&b.remainder===""&&(a.d=b.match_);var E=zn.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:zn.go(a.d,"pu"),q:zn.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_:"/"}),zn.concatArray(y,ee.q))}else y=zn.go(a.d,"pu-2");for(var re in a)delete a[re];return y}}},"pu-2":{transitions:zn.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=zn.patterns.match_("{(...)}",a.rm||"");b&&b.remainder===""?y=zn.go(b.match_,"pu"):y={type_:"rm",p1:a.rm}}for(var E in a)delete a[E];return y}}},"pu-9,9":{transitions:zn.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"||a.r==="<=>>"||a.r==="<<=>"||a.r==="<-->"?(ae="\\long"+ae,re.rd&&(ae="\\overset{"+re.rd+"}{"+ae+"}"),re.rq&&(a.r==="<-->"?ae="\\underset{\\lower2mu{"+re.rq+"}}{"+ae+"}":ae="\\underset{\\lower6mu{"+re.rq+"}}{"+ae+"}"),ae=" {}\\mathrel{"+ae+"}{} "):(re.rq&&(ae+="[{"+re.rq+"}]"),ae+="{"+re.rd+"}",ae=" {}\\mathrel{\\x"+ae+"}{} "):ae=" {}\\mathrel{\\long"+ae+"}{} ",y=ae;break;case"operator":y=ia._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 E1(a){}function k1(a){}var r0=class Hp extends wn{constructor(y){super(Ee(Ce({},y),{type:"delim"})),this.value=y.delim,this.size=y.size}static fromJson(y){return new Hp(y)}toJson(){return Ee(Ce({},super.toJson()),{delim:this.value,size:this.size})}render(y){return new Zn(this.value,{type:"middle"})}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=Bt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):Qi(this.command,this.value)}},i0=class Kp extends wn{constructor(y){super(Ee(Ce({},y),{type:"sizeddelim",value:y.delim})),this.delimType=y.delimType,this.size=y.size}static fromJson(y){return new Kp(y)}toJson(){return Ee(Ce({},super.toJson()),{delim:this.value,size:this.size,delimType:this.delimType})}render(y){let b=en(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=Bt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):Qi(this.command,this.value)}},ud=class Wp extends wn{constructor(y,b,E,ee){var re,ae;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=(ae=ee.strokeWidth)!=null?ae:"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 Wp(y.command,y.body,y.notation,y)}toJson(){return Ee(Ce({},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=Bt(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="",ae="";this.backgroundcolor&&this.backgroundcolor!=="transparent"&&(re+=ae+'mathbackground="'+this.backgroundcolor+'"',ae=","),this.shadow&&this.shadow!=="auto"&&(re+=ae+'shadow="'+this.shadow+'"',ae=","),this.strokeWidth||this.strokeStyle!=="solid"?(re+=ae+this.borderStyle,ae=","):this.strokeColor&&this.strokeColor!=="currentColor"&&(re+=ae+'mathcolor="'+this.strokeColor+'"',ae=","),re&&(ee+=`[${re}]`)}return Qi(ee,this.bodyToLatex(y))}render(y){const b=new xi({parent:y},this.style),E=wn.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 ae=new Zn(null,{classes:"ML__notation"});let he=E.height+E.depth+2*re;const pe=E.width+2*re;let ge="";if(this.notation.horizontalstrike&&(ge+=this.line(3,50,97,50)),this.notation.verticalstrike&&(ge+=this.line(50,3,50,97)),this.notation.updiagonalstrike&&(ge+=this.line(3,97,97,3)),this.notation.downdiagonalstrike&&(ge+=this.line(3,3,97,97)),this.notation.updiagonalarrow){ge+=this.line(re.toString(),(re+E.depth+E.height).toString(),(re+E.width).toString(),re.toString());const bt=.03*Math.sqrt(pe*pe+he*he)*1,un=E.width*bt,Kn=(E.depth+E.height)*bt,sn=re+E.width;let An=re;An+Kn-.4*un<0&&(An=.4*un-Kn),ge+='`}};function yh(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?hs:a.metrics.defaultRuleThickness;return a.metrics.defaultRuleThickness+a.scalingFactor*y/4}var oc=class Zp extends wn{constructor(y,b,E){var ee,re;super(Ee(Ce({},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),Ce(Ce({},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 xi({parent:y,mathstyle:this.mathstyleName},this.style),re=ee.metrics,ae=new xi({parent:ee,mathstyle:this.continuousFraction?"":"numerator"},this.style),he=this.numerPrefix?new Zn([new Zn(this.numerPrefix),wn.createBox(ae,this.above)],{isTight:ae.isTight,type:"ignore"}):(b=wn.createBox(ae,this.above,{type:"ignore"}))!=null?b:new Zn(null,{type:"ignore"}),pe=new xi({parent:ee,mathstyle:this.continuousFraction?"":"denominator"},this.style),ge=this.denomPrefix?new Zn([new Zn(this.denomPrefix),wn.createBox(pe,this.below,{type:"ignore"})]):(E=wn.createBox(pe,this.below,{type:"ignore"}))!=null?E:new Zn(null,{type:"ignore"}),we=this.hasBarLine?re.defaultRuleThickness:0;let Oe,je=0,ct;ee.isDisplayStyle?(Oe=ae.metrics.num1,je=we>0?3*we:7*we,ct=pe.metrics.denom1):(we>0?(Oe=ae.metrics.num2,je=we):(Oe=ae.metrics.num3,je=3*re.defaultRuleThickness),ct=pe.metrics.denom2);const bt=[];this.isSelected&&bt.push("ML__selected");const un=he.depth,Kn=ge.height;let sn;if(we<=0){const Nr=Oe-un-(Kn-ct);Nrnew qa(b)),this.skipBoundary=!1}static fromJson(y){return new $p("")}toJson(){return super.toJson()}render(y){const b=wn.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:""}},hf=class jp extends wn{constructor(y,b){super(Ee(Ce({},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 jp(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 Zn(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-ro*y.scalingFactor,ae=ee.italic;ee.setTop(re);let he=ee;if(this.superscript||this.subscript){const pe=(b=this.subsupPlacement)!=null?b:"auto";he=pe==="over-under"||pe==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:ee,baseShift:re,slant:ae}):this.attachSupsub(y,{base:ee})}return new Zn(this.bind(y,he),{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=Bt(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)),ci(E)}},du=class Gp extends wn{constructor(y){const b=y.body;super(Ee(Ce({},y),{type:"overlap",body:typeof b=="string"?[new wn({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 Gp(y)}toJson(){const y={};return this.align&&(y.align=this.align),this.boxType&&(y.boxType=this.boxType),Ce(Ce({},super.toJson()),y)}render(y){const b=wn.createBox(y,this.body,{classes:"inner"});return b?(this.caret&&(b.caret=this.caret),this.bind(y,new Zn([b,new Zn(null,{classes:"fix"})],{classes:this.align==="right"?"rlap":"llap",type:this.boxType}))):null}},qo=class Up extends wn{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 Up(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?Fo(this.svgBody):wn.createBox(y,this.body,{type:"ignore"});const E=new xi({parent:y,mathstyle:"scriptstyle"},this.style);let ee=null;this.svgAbove?ee=Fo(this.svgAbove):this.above&&(ee=wn.createBox(E,this.above,{type:"ignore"}));let re=null;this.svgBelow?re=Fo(this.svgBelow):this.below&&(re=wn.createBox(E,this.below,{type:"ignore"})),this.paddedBody&&(b=new Zn([kr(y,"open"),b,kr(y,"close")],{type:"ignore"}));let ae=om(y,{base:b,above:ee,below:re,type:this.boxType==="bin"||this.boxType==="rel"?this.boxType:"ord",paddedAboveBelow:this.paddedLabels});return ae?(this.subsupPlacement==="over-under"?ae=this.attachLimits(y,{base:ae,type:ae.type}):ae=this.attachSupsub(y,{base:ae}),this.caret&&(ae.caret=this.caret),this.bind(y,ae)):null}};function om(a,y){if(!y.base)return null;if(!y.above&&!y.below){const he=new Zn(y.base,{type:y.type});return he.setStyle("position","relative"),he}let b=0;y.above&&(b=a.metrics.bigOpSpacing5);let E=null;const ee=y.base,re=0,ae=["ML__center"];if(y.paddedAboveBelow&&ae.push("ML__label_padding"),y.below&&y.above){const he=a.metrics.bigOpSpacing5+y.below.height+y.below.depth+ee.depth+re;E=new Vi({bottom:he,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:ae},{box:ee,classes:["ML__center"]},b,{box:y.above,classes:ae},a.metrics.bigOpSpacing5]})}else y.below?E=new Vi({top:ee.height-re,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:ae},{box:ee,classes:["ML__center"]}]}):y.above&&(E=new Vi({bottom:ee.depth+re,children:[{box:ee,classes:["ML__center"]},b,{box:y.above,classes:ae},a.metrics.bigOpSpacing5]}));return new Zn(E,{type:y.type})}var dd=class Xp extends wn{constructor(y){var b,E,ee,re;super(Ee(Ce({},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 Xp(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),Ce(Ce({},super.toJson()),y)}render(y){const b=new xi({parent:y,isPhantom:!0});if(!this.smashDepth&&!this.smashHeight&&!this.smashWidth)return console.assert(this.isInvisible),wn.createBox(b,this.body,{classes:"inner"});const E=wn.createBox(this.isInvisible?b:y,this.body);if(!E)return null;if(this.smashWidth){const ee=new Zn(null,{classes:"fix"});return new Zn([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 Vi({firstBaseline:[{box:E}]},{type:E.type}).wrap(y)}},hd=class Yp extends wn{constructor(y){var b;super(Ce({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 Zn(this.mode==="math"?null:" ");let E;if(this.width!==void 0)E=new Zn(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 Zn(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=Bt(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}{${Sa(this.width)}}`:`${ee}${Sa(this.width)}`}},o0=class qp extends wn{constructor(y){var b;super(Ee(Ce({},y),{type:"surd",mode:(b=y.mode)!=null?b:"math",style:y.style,displayContainsHighlight:!0,body:y.body})),this.above=y.index}static fromJson(y){return new qp(Ee(Ce({},y),{index:y.above}))}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=Bt(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")?Qi(`${E}[${this.aboveToLatex(y)}]`,ee):/^[0-9]$/.test(ee)?`${E}${ee}`:Qi(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 xi({parent:y,mathstyle:"cramp"},this.style),ee=(b=wn.createBox(E,this.body,{type:"inner"}))!=null?b:new Zn(null),re=E.scalingFactor,ae=E.metrics.defaultRuleThickness/re,he=y.isDisplayStyle?hs:ae,pe=new Zn(null,{classes:"ML__sqrt-line",style:this.style});pe.height=ae,pe.softWidth=ee.width;let ge=re*(ae+he/4);const Oe=Math.max(re*2*he,ee.height+ee.depth)+ge+ae,je=new xi({parent:y},this.style),ct=this.bind(je,new Zn(Cr("inner","\\surd",Oe,!1,je,{isSelected:this.isSelected}),{isSelected:this.isSelected,classes:"ML__sqrt-sign",style:this.style}));if(!ct)return null;const bt=ct.height+ct.depth-ae;bt>ee.height+ee.depth+ge&&(ge=(ge+bt-(ee.height+ee.depth))/2),ct.setTop(ct.height-ee.height-ge);const un=this.bind(y,new Vi({firstBaseline:[{box:new Zn(ee)},ge-2*ae,{box:pe},ae]})),Kn=wn.createBox(new xi({parent:y,mathstyle:"scriptscriptstyle"}),this.above,{type:"ignore"});if(!Kn){const Gn=new Zn([ct,un],{classes:this.containsCaret?"ML__contains-caret":"",type:"inner"});return Gn.setStyle("display","inline-block"),Gn.setStyle("height",Gn.height+Gn.depth,"em"),this.caret&&(Gn.caret=this.caret),this.bind(y,Gn)}const sn=new Vi({shift:-.6*(Math.max(ct.height,un.height)-Math.max(ct.depth,un.depth)),children:[{box:Kn}]}),An=new Zn([new Zn(sn,{classes:"ML__sqrt-index",type:"ignore"}),ct,un],{type:"inner",classes:this.containsCaret?"ML__contains-caret":""});return An.height=ct.height,An.depth=ct.depth,this.caret&&(An.caret=this.caret),this.bind(y,An)}},sm=class extends Zn{constructor(a){super(null,{type:"skip"}),this._width=a}toMarkup(){return``}};function bh(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"){bh(a.parent,y);return}E>0&&b[E-1].type==="skip"?b[E-1].width+=y:b.splice(E,0,new sm(y))}var lm={ord:{op:3,bin:4,rel:5,inner:3},op:{ord:3,op:3,rel:5,inner:3},bin:{ord:4,op:4,open:4,inner:4},rel:{ord:5,op:5,open:5,inner:5},close:{op:3,bin:4,rel:5,inner:3},punct:{ord:3,op:3,rel:3,open:3,punct:3,inner:3},inner:{ord:3,op:3,bin:4,rel:5,open:3,punct:3,inner:3}},um={ord:{op:3},op:{ord:3,op:3},close:{op:3},inner:{op:3}};function cm(a){pd(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 fd(a,y){if(!a.children)return a;const b=a.children;cm(b);const E=y.getRegisterAsEm("thinmuskip"),ee=y.getRegisterAsEm("medmuskip"),re=y.getRegisterAsEm("thickmuskip");return pd(b,(ae,he)=>{var pe,ge,we;if(!ae)return;const Oe=ae.type,je=he.isTight?(pe=um[Oe])!=null?pe:null:(ge=lm[Oe])!=null?ge:null,ct=(we=je==null?void 0:je[he.type])!=null?we:null;ct===3&&bh(he,E),ct===4&&bh(he,ee),ct===5&&bh(he,re)}),a}function pd(a,y,b=void 0){if(!a)return b;a=[...a];for(const E of a)E.type==="lift"?b=pd(E.children,y,b):E.type==="ignore"?pd(E.children,y):(y(b,E),pd(E.children,y),b=E);return b}var ff=class Qp extends wn{constructor(y){super({type:"tooltip",command:y.command,mode:y.mode,style:y.style,body:y.body,displayContainsHighlight:!0}),this.tooltip=new wn({type:"root",mode:y.content,body:y.tooltip,style:{}}),this.skipBoundary=!0,this.captureSelection=!1}static fromJson(y){return new Qp(Ee(Ce({},y),{tooltip:Ol(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 Ee(Ce({},super.toJson()),{tooltip:b})}render(y){const b=wn.createBox(new xi,this.body);if(!b)return null;const E=new xi({parent:y,mathstyle:"displaystyle"},{fontSize:Ds}),ee=Yu(fd(new Zn(this.tooltip.render(E),{classes:"ML__tooltip-content"}),E)),re=new Zn([ee,b],{classes:"ML__tooltip-container"});return this.caret&&(re.caret=this.caret),this.bind(y,re)}},hu=class Jp extends wn{constructor(y,b){super(Ee(Ce({},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 Jp(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 Zn(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 Zn(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=Bt(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)),ci(E)}};function Ol(a){if(De(a))return a.map(E=>Ol(E));if(typeof a=="string")return wn.fromJson(a);a=Ce({},a);for(const E of Bl)a[E]&&(a[E]=Ol(a[E]));a.args&&(a.args=dm(a.args)),a.array&&(a.array=Ol(a.array));const y=a.type;let b;y==="accent"&&(b=z.fromJson(a)),y==="array"&&(b=ii.fromJson(a)),y==="box"&&(b=va.fromJson(a)),y==="chem"&&(b=n0.fromJson(a)),y==="composition"&&(b=fl.fromJson(a)),y==="delim"&&(b=r0.fromJson(a)),y==="enclose"&&(b=ud.fromJson(a)),y==="error"&&(b=vo.fromJson(a)),y==="extensible-symbol"&&(b=hf.fromJson(a)),y==="genfrac"&&(b=oc.fromJson(a)),y==="group"&&(b=Za.fromJson(a)),y==="latex"&&(b=qa.fromJson(a)),y==="latexgroup"&&(b=cd.fromJson(a)),y==="leftright"&&(b=Li.fromJson(a)),y==="macro"&&(b=ac.fromJson(a)),y==="macro-argument"&&(b=bs.fromJson(a)),y==="operator"&&(b=hu.fromJson(a)),y==="overlap"&&(b=du.fromJson(a)),y==="overunder"&&(b=qo.fromJson(a)),y==="placeholder"&&(b=Wr.fromJson(a)),y==="prompt"&&(b=Fs.fromJson(a)),y==="phantom"&&(b=dd.fromJson(a)),y==="sizeddelim"&&(b=i0.fromJson(a)),y==="spacing"&&(b=hd.fromJson(a)),y==="subsup"&&(b=Yo.fromJson(a)),y==="surd"&&(b=o0.fromJson(a)),y==="text"&&(b=vs.fromJson(a)),y==="tooltip"&&(b=ff.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=wn.fromJson(a));for(const E of Bl)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:typeof y=="object"&&"group"in y?{group:y.group.map(b=>Ol(b))}:typeof y=="object"&&"atoms"in y?y.atoms.map(b=>Ol(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"]},pf={"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]$/,hm=/^[\u0393|\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A6\u03A8\u03A9]$/,fm=[/^[a-z]$/,/^[A-Z]$/,l0,hm],pm={iso:["it","it","it","it"],tex:["it","it","it","up"],french:["it","up","up","up"],upright:["up","up","up","up"]},mm=class extends Co{constructor(){super("math")}createAtom(a,y,b){var E,ee,re,ae;if(y===null)return new wn({type:"mord",mode:"math",command:a,value:a,style:b});const he=window.MathfieldElement.isFunction((E=y.command)!=null?E:a);if(y.definitionType==="symbol"){const ge=new wn({type:(ee=y.type)!=null?ee:"mord",mode:"math",command:(re=y.command)!=null?re:a,value:String.fromCodePoint(y.codepoint),style:b});return he&&(ge.isFunction=!0),a.startsWith("\\")&&(ge.verbatimLatex=a),ge}const pe=new wn({type:"mord",mode:"math",command:(ae=y.command)!=null?ae:a,value:a,style:b});return he&&(pe.isFunction=!0),a.startsWith("\\")&&(pe.verbatimLatex=a),pe}serialize(a,y){const b=gm(a,Ee(Ce({},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&&fm.forEach((he,pe)=>{var ge;he.test(a.value)&&pm[(ge=y.letterShapeStyle)!=null?ge:"tex"][pe]==="it"&&(E="italic")}),E==="up"&&(E=void 0);const ee=E?b+"-"+E:b;console.assert(s0[ee]!==void 0);const[re,ae]=s0[ee];return pf[b]&&!pf[b].test(a.value)?(a.value=nn(a.value,b,E),null):(l0.test(a.value)&&(a.classes+=" lcGreek"),ae&&(a.classes+=" "+ae),re)}};function gm(a,y){const{parent:b}=a[0],E=u0(b);return ga(a,"variant").map(ee=>{const re=u0(ee[0]);let ae="";re&&re!==E&&(ae={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(ae!==void 0));const he=ci(ee.map(pe=>pe._serialize(y)));return ae?Qi(ae,he):he})}function u0(a){if(!a)return"";const{style:y}=a;if(y.variant===void 0)return"";let b=y.variant;return!["calligraphic","fraktur","double-struck","script","monospace","sans-serif"].includes(y.variant)&&y.variantStyle&&y.variantStyle!=="up"&&(b+="-"+y.variantStyle),b}new mm;function vm(a,y){return a.map(b=>b._serialize(y))}function ym(a,y){return ga(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?`{${Qi("\\fontshape",ee)}${ci(E)}}`:re?Qi(re,ci(E)):ci(E)})}function bm(a,y){return ga(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?`{${Qi("\\fontseries",ee)}${ci(E)}}`:re?Qi(re,ci(E)):ci(E)})}function xm(a,y){return ga(a,"fontSize").map(b=>{var E,ee;const re=bm(b,y),ae=(ee=["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][(E=b[0].style.fontSize)!=null?E:""])!=null?ee:"";return ae?`${ae} ${ci(re)}`:ci(re)})}function wm(a,y,b){return ga(a,"fontFamily").map(E=>{var ee,re;const ae=xm(E,y),he=(re={roman:"textrm",monospace:"texttt","sans-serif":"textsf"}[(ee=E[0].style.fontFamily)!=null?ee:""])!=null?re:"";return he?`\\${he}{${ci(ae)}}`:E[0].style.fontFamily?`{\\fontfamily{${E[0].style.fontFamily}} ${ci(ae)}}`:b?`\\text{${ci(ae)}}`:ci(ae)})}var c0={roman:"","sans-serif":"ML__sans",monospace:"ML__tt"},Sm=class extends Co{constructor(){super("text")}createAtom(a,y,b){return y&&y.definitionType==="symbol"?new vs(a,String.fromCodePoint(y.codepoint),b!=null?b:{}):null}serialize(a,y){return wm(a,Ee(Ce({},y),{defaultMode:"text"}),y.defaultMode!=="text")}getFont(a,y){var b,E,ee,re,ae;const{fontFamily:he}=y;if(c0[he]?a.classes+=" "+c0[he]:he&&a.setStyle("font-family",he),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 pe=y.fontSeries.match(/(.?[lbm])?(.?[cx])?/);pe&&(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=pe[1])!=null?E:""])!=null?ee:"",a.classes+=" ",a.classes+=(ae={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=pe[2])!=null?re:""])!=null?ae:"")}return"Main-Regular"}};new Sm;var Cm=class extends Co{constructor(){super("latex")}createAtom(a){return new qa(a)}serialize(a,y){return a.filter(b=>b instanceof qa&&!b.isSuggestion).map(b=>b.value)}getFont(){return null}};new Cm;var Mm={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:["","=","","="]}},mf={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:["\\","|","",""]}},h0={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:[")",")",")",")"]}},Em={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"]}},Lm={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:["<",">","|",""]}},_m={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:[".",".",".","."]}},Bm={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"]}},Tm={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:["<",">","",""]}},Im={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 f0(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 sc(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]"},md=[],gd;function gf(){switch(Xe()){case"macos":case"ios":return"apple";case"windows":return"windows"}return"linux"}function Ko(a){(!a.platform||a.platform===gf())&&md.push(a)}function Om(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 Rm(a){if(a.code)return a;const y=Object.entries(vd().mapping);let b=!1,E=!1,ee="";for(let re=0;re<4;re++){for(const[ae,he]of y)if(he[re]===a.key){ee=ae,re===3?(b=!0,E=!0):re===2?b=!0:re===1&&(E=!0);break}if(ee)break}return new KeyboardEvent(a.type,Ee(Ce({},a),{altKey:b,shiftKey:E,code:ee}))}function Nm(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 md)((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);md.sort((ee,re)=>re.score-ee.score)}function Fm(a){gd=md.find(y=>a.startsWith(y.locale))}function vd(){return gd!=null?gd:md[0]}function zm(){switch(gf()){case"apple":return mf;case"windows":return d0;case"linux":return h0}return mf}switch(gf()){case"apple":Ko(mf),Ko(Em),Ko(Bm),Ko(Lm);break;case"windows":Ko(d0),Ko(km),Ko(Tm),Ko(Dm);break;case"linux":Ko(h0),Ko(Am),Ko(Im),Ko(_m);break}Ko(Mm);function vf(a){var y;const b=/macos|ios/.test(Xe()),E=a.split("+");let ee="";for(const re of E)ee&&(ee+=b?"\u2009":'+'),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 xh(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 fu(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 Hm(a,y){return!a&&y||a&&!y?!1:!a||!y?!0:a.alt===y.alt&&a.control===y.control&&a.shift===y.shift&&a.meta===y.meta}var Km=new Set(["Backquote","Digit0","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6","Digit7","Digit8","Digit9","Minus","Equal","IntlYen","KeyQ","KeyW","KeyE","KeyR","KeyT","KeyY","KeyU","KeyI","KeyO","KeyP","BracketLeft","BracketRight","Backslash","KeyA","KeyS","KeyD","KeyF","KeyG","KeyH","KeyJ","KeyK","KeyL","Semicolon","Quote","IntlBackslash","KeyZ","KeyX","KeyC","KeyV","KeyB","KeyN","KeyM","Comma","Period","Slash","IntlRo","Space","Numpad0","Numpad1","Numpad2","Numpad3","Numpad4","Numpad5","Numpad6","Numpad7","Numpad8","Numpad9","NumpadAdd","NumpadComma","NumpadDecimal","NumpadDivide","NumpadEqual","NumpadHash","NumpadMultiply","NumpadParenLeft","NumpadParenRight","NumpadStar","NumpadSubstract"]);function wh(a){return a.ctrlKey||a.metaKey||["Dead","Process"].includes(a.key)?!1:a.code===""?!0:Km.has(a.code)}function Sh(){var a;let y=document.activeElement;for(;(a=y==null?void 0:y.shadowRoot)!=null&&a.activeElement;)y=y.shadowRoot.activeElement;return y}var zs=class yl{static get scrim(){return yl._scrim||(yl._scrim=new yl),yl._scrim}static open(y){yl.scrim.open(y)}static close(){yl.scrim.close()}static get state(){return yl.scrim.state}static get element(){return yl.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=Sh();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:"",Sh()!==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 Wm(a,y,b){let E=null,ee=null,re=!1,ae=!1,he=!1;const pe=new AbortController,ge=pe.signal;return a.addEventListener("keydown",we=>{if(re||we.key==="Process"||we.code==="CapsLock"||/(Control|Meta|Alt|Shift)(Left|Right)/.test(we.code)){E=null;return}E=we,ee=null,b.onKeystroke(we)?a.textContent="":E=null},{capture:!0,signal:ge}),a.addEventListener("keypress",we=>{re||(E&&ee&&b.onKeystroke(E),ee=we)},{capture:!0,signal:ge}),a.addEventListener("compositionstart",we=>{a.textContent="",re=!0,b.onCompositionStart(we.data)},{capture:!0,signal:ge}),a.addEventListener("compositionupdate",we=>{re&&b.onCompositionUpdate(we.data)},{capture:!0,signal:ge}),a.addEventListener("compositionend",we=>{a.textContent="",re&&(re=!1,b.onCompositionEnd(we.data))},{capture:!0,signal:ge}),a.addEventListener("beforeinput",we=>we.stopImmediatePropagation(),{signal:ge}),a.addEventListener("input",we=>{var Oe;if(!re&&(a.textContent="",we.inputType!=="insertCompositionText")){if(we.inputType==="insertFromPaste"){we.preventDefault(),we.stopPropagation();return}b.onInput((Oe=we.data)!=null?Oe:""),we.preventDefault(),we.stopPropagation()}},{signal:ge}),a.addEventListener("paste",we=>{a.focus({preventScroll:!0}),a.textContent="",b.onPaste(we)||we.preventDefault(),we.stopImmediatePropagation()},{signal:ge}),a.addEventListener("cut",we=>b.onCut(we),{capture:!0,signal:ge}),a.addEventListener("copy",we=>b.onCopy(we),{capture:!0,signal:ge}),a.addEventListener("blur",we=>{var Oe,je;if(((je=(Oe=we.relatedTarget)==null?void 0:Oe._mathfield)==null?void 0:je.element)===y){a.focus({preventScroll:!0}),we.preventDefault(),we.stopPropagation();return}const ct=zs.state;if(ct==="open"||ct==="opening"){we.preventDefault(),we.stopPropagation();return}if(we.relatedTarget===we.target.getRootNode().host){we.preventDefault(),we.stopPropagation();return}he||ae||(he=!0,E=null,ee=null,b.onBlur(),he=!1)},{capture:!0,signal:ge}),a.addEventListener("focus",we=>{he||ae||(ae=!0,b.onFocus(),ae=!1)},{capture:!0,signal:ge}),{dispose:()=>pe.abort(),cancelComposition:()=>{re&&(a.blur(),requestAnimationFrame(()=>a.focus({preventScroll:!0})))},blur:()=>{typeof a.blur=="function"&&a.blur()},focus:()=>{!ae&&typeof a.focus=="function"&&a.focus({preventScroll:!0})},hasFocus:()=>Sh()===a,setAriaLabel:we=>a.setAttribute("aria-label",we),setValue:we=>{var Oe;a.textContent=we,a.style.left="-1000px",(Oe=window.getSelection())==null||Oe.selectAllChildren(a)},moveTo:(we,Oe)=>{a.style.top=`${Oe}px`,a.style.left=`${we}px`}}}function lc(a){var y;if(!a||!wh(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=Rm(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(ft()){const y=Xe(),b=a.startsWith("!"),E=a.endsWith(y);if(b&&!E||!b&&E)return!0}return a==="!other"?!1:a==="other"}function Vm(a,y,b){if(a.length===0)return"";const E=sc(f0(p0(b))),ee=sc({key:b.key,shift:b.shiftKey,alt:b.altKey,ctrl:b.ctrlKey,meta:b.metaKey||b.ctrlKey&&/macos|ios/.test(Xe()),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 $m(a,y){let b=[];if(typeof y=="string"){const re=rd[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(vf)}function jm(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=f0(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=Xe()==="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 Ee(Ce({},a),{key:sc(b)});const ee=Om(b.key,y);if(!ee)return Ee(Ce({},a),{key:sc(b)});if(ee.shift&&b.shift||ee.alt&&b.alt)throw new Error(`The keybinding ${a.key} (${yf(a.command)}) is conflicting with the key combination ${sc(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,Ee(Ce({},a),{key:sc(ee)})}function yf(a){if(Array.isArray(a)){const y=[...a];return y.shift()+"("+y.map(b=>typeof b=="string"?`"${b}"`:b.toString()).join(", ")+")"}return a}function Gm(a,y){const b=[],E=[];for(const ee of a)try{const re=jm(ee,y);if(!re)continue;const ae=E.find(he=>he.key===re.key&&he.ifMode===re.ifMode);if(ae)throw new Error(`Ambiguous key binding ${ee.key} (${yf(ee.command)}) matches ${ae.key} (${yf(ae.command)}) with the ${y.displayName} keyboard layout`);E.push(re)}catch(re){re instanceof Error&&b.push(re.message)}return[E,b]}var Um=class extends ni{constructor(){super("latex")}createAtom(a){return new qa(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"}),fa(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(Wa(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 pe of y)oe.test(pe)&&re.push(new qa(pe));let ae=a.at(a.position);if(ae instanceof cd&&(ae=ae.lastChild),!(ae.parent instanceof cd)){const pe=new cd("");ae.parent.addChildAfter(pe,ae),ae=pe.firstChild}const he=ae.parent.addChildrenAfter(re,ae);return a.silenceNotifications=ee,b.selectionMode==="before"||(b.selectionMode==="item"?a.setSelection(a.anchor,a.offsetOf(he)):he&&(a.position=a.offsetOf(he))),a.contentDidChange({data:y,inputType:"insertText"}),a.silenceNotifications=E,!0}};function Xm(a){return a.atoms.find(y=>y.type==="latexgroup")}function yd(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 pe=a.at(E);ee=pe instanceof qa&&pe.isSuggestion,ee||E++}if(!ee)return[void 0,void 0];let ae=E,he=!1;for(;ae<=re&&!he;){const pe=a.at(ae);he=!(pe instanceof qa&&pe.isSuggestion),he||ae++}return[E-1,ae-1]}new Um;function Ch(a){const y=yd(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 bd(a,y){var b;const{model:E}=a;Ch(a);for(const we of yd(E))we.isError=!1;if(!E.selectionIsCollapsed||a.options.popoverPolicy==="off"){cc(a);return}const ee=[];let re=E.at(E.position);for(;re&&re instanceof qa&&/^[a-zA-Z\*]$/.test(re.value);)re=re.leftSibling;if(re&&re instanceof qa&&re.value==="\\")for(ee.push(re),re=re.rightSibling;re&&re instanceof qa&&/^[a-zA-Z\*]$/.test(re.value);)ee.push(re),re=re.rightSibling;const ae=ee.map(we=>we.value).join(""),he=yt(a,ae);if(he.length===0){if(/^\\[a-zA-Z\*]+$/.test(ae))for(const we of ee)we.isError=!0;cc(a);return}const pe=(b=y==null?void 0:y.atIndex)!=null?b:0;a.suggestionIndex=pe<0?he.length-1:pe%he.length;const ge=he[a.suggestionIndex];if(ge!==ae){const we=ee[ee.length-1];we.parent.addChildrenAfter([...ge.slice(ae.length-ge.length)].map(Oe=>new qa(Oe,{isSuggestion:!0})),we),pu(a,{interactive:!0})}qm(a,he)}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 uc(a,y="accept",b){var E,ee;cc(a);const re=Xm(a.model);if(!re)return!1;if(y==="accept-suggestion"||y==="accept-all"){const ge=yd(a.model).filter(we=>we.isSuggestion);if(ge.length!==0){for(const we of ge)we.isSuggestion=!1;a.model.position=a.model.offsetOf(ge[ge.length-1])}if(y==="accept-suggestion")return ge.length!==0}const he=yd(a.model).filter(ge=>!ge.isSuggestion).map(ge=>ge.value).join(""),pe=re.leftSibling;return re.parent.removeChild(re),a.model.position=a.model.offsetOf(pe),a.switchMode((E=b==null?void 0:b.mode)!=null?E:"math"),y==="reject"||(ni.insert(a.model,he,{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 Mh(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 bf(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 xi({from:a.context}),E=new wn({mode:"math",type:"root",body:Va(y,{context:b})}),ee=Yu(fd(new Zn(E.render(b),{classes:"ML__base"}),b));return qu(ee,{classes:"ML__latex"}).toMarkup()}function qm(a,y){var b;if(y.length===0){cc(a);return}let E="";for(const[re,ae]of y.entries()){const he=ae,pe=Ym(a,ae),ge=$m(a.keybindings,he).join("
");E+=`
  • ${he}${pe}`,ge&&(E+=`${ge}`),E+="
  • "}const ee=Qm(a,`
      ${E}
    `);xf()&&((b=ee.querySelector(".ML__popover__current"))==null||b.scrollIntoView({block:"nearest",inline:"nearest"})),setTimeout(()=>{var re;ee&&!xf()&&(ee.classList.add("is-visible"),Eh(a),(re=ee.querySelector(".ML__popover__current"))==null||re.scrollIntoView({block:"nearest",inline:"nearest"}))},32)}function xf(){const a=document.getElementById("mathlive-suggestion-popover");return a?a.classList.contains("is-visible"):!1}function Eh(a,y){var b;if(!a.element||a.element.mathfield!==a||!xf())return;if(((b=a.model.at(a.model.position))==null?void 0:b.type)!=="latex"){cc(a);return}if(y!=null&&y.deferred){setTimeout(()=>Eh(a),32);return}const E=Ns(a.field);if(!E)return;const ee=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,re=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,ae=window.innerWidth-document.documentElement.clientWidth,he=window.innerHeight-document.documentElement.clientHeight,pe=window.mathVirtualKeyboard.boundingRect.height,ge=document.getElementById("mathlive-suggestion-popover");E.x+ge.offsetWidth/2>re-ae?ge.style.left=`${re-ge.offsetWidth-ae}px`:E.x-ge.offsetWidth/2<0?ge.style.left="0":ge.style.left=`${E.x-ge.offsetWidth/2}px`;const we=E.y-E.height;ee-he-pe-E.yE.preventDefault()),b.addEventListener("click",E=>{let ee=E.target;for(;ee&&!ee.dataset.command;)ee=ee.parentElement;ee&&(uc(a,"reject"),ni.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 Jm(){document.getElementById("mathlive-suggestion-popover")&&(bf("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 kh=null,y0,b0,wf=((b0=(y0=globalThis==null?void 0:globalThis.document)==null?void 0:y0.currentScript)==null?void 0:b0.src)||eg();function x0(a){return Hl(this,null,function*(){if(/^(?:[a-z+]+:)?\/\//i.test(a))return new URL(a).href;if(kh===null)try{const y=yield fetch(wf,{method:"HEAD"});y.status===200&&(kh=y.url)}catch(y){console.error(`Invalid URL "${a}" (relative to "${wf}")`)}return new URL(a,kh!=null?kh:wf).href})}function tg(a,y,b={}){return new FontFace(a,`url(${y}.woff2) format('woff2')`,b)}var Wo="not-loaded";function ng(){return Hl(this,null,function*(){return Wo="not-loaded",Ah()})}function Ah(){return Hl(this,null,function*(){var a;if(Wo!=="not-loaded")return;if(Wo="loading",(a=getComputedStyle(document.documentElement).getPropertyValue("--ML__static-fonts"))!=null?a:!1){Wo="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(ae=>ae.family);if(b.every(ae=>E.includes(ae))){Wo="ready";return}if(!window.MathfieldElement.fontsDirectory){Wo="not-loaded";return}const ee=yield x0(window.MathfieldElement.fontsDirectory);if(!ee){document.body.classList.add("ML__fonts-did-not-load"),Wo="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(ae=>tg(ae[0].replace(/-[a-zA-Z]+$/,""),`${ee}/${ae[0]}`,ae[1]));try{(yield Promise.all(re.map(he=>{try{return he.load()}catch(pe){}}))).forEach(he=>document.fonts.add(he)),Wo="ready";return}catch(ae){console.error(`MathLive 0.98.5: The math fonts could not be loaded from "${ee}"`,{cause:ae}),document.body.classList.add("ML__fonts-did-not-load")}Wo="error"}})}function rg(a){let y=0;for(let b=0;b{zo(a)&&a.dirty&&(a.atomBoundsCache=new Map,pu(a,y),a.atomBoundsCache=void 0)})))}function ig(a,y){var b;y=y!=null?y:{};const E=new xi({from:Ee(Ce({},a.context),{atomIdsSettings:{seed:y.forHighlighting?rg(wn.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 qu(fd(ee,E),{classes:a.hasEditablePrompts?"ML__latex ML__prompting":"ML__latex",attributes:{translate:"no","aria-hidden":"true"}})}function w0(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 pu(a,y){if(!zo(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 ae=w0(a,y);const he=a.element.querySelector("[part=menu-toggle]");if(he&&(a.model.atoms.length<=1||a.disabled||a.readOnly&&!a.hasEditableContent||a.userSelect==="none"?he.style.display="none":he.style.display=""),a.model.atoms.length<=1){const pe=a.options.contentPlaceholder;pe&&(ae+=`${$a(pe)}`)}E.innerHTML=window.MathfieldElement.createHTML(ae),Lh(a,y.interactive),a.dirty=!1}function Lh(a,y){const b=a.field;if(!b)return;for(const he of b.querySelectorAll(".ML__selection, .ML__contains-highlight"))he.remove();!(y!=null&&y)&&Wo!=="error"&&Wo!=="ready"&&setTimeout(()=>{Wo==="ready"?Lh(a):setTimeout(()=>Lh(a),128)},32);const E=a.model,ee=b.offsetWidth,re=b.getBoundingClientRect().width;let ae=Math.floor(re)/ee;if(ae=isNaN(ae)?1:ae,E.selectionIsCollapsed){Eh(a,{deferred:!0});let he=E.at(E.position);for(;he&&he.type!=="prompt"&&!(he.containsCaret&&he.displayContainsHighlight);)he=he.parent;if(he!=null&&he.containsCaret&&he.displayContainsHighlight){const pe=ad(a,Tl(a,he),ae);if(pe){pe.left/=ae,pe.right/=ae,pe.top/=ae,pe.bottom/=ae;const ge=document.createElement("div");ge.classList.add("ML__contains-highlight"),ge.style.position="absolute",ge.style.left=`${pe.left+1}px`,ge.style.top=`${Math.ceil(pe.top)}px`,ge.style.width=`${Math.ceil(pe.right-pe.left)}px`,ge.style.height=`${Math.ceil(pe.bottom-pe.top)}px`,b.insertBefore(ge,b.childNodes[0])}}return}for(const he of ag(sd(a,{excludeAtomsWithBackground:!0}))){he.left/=ae,he.right/=ae,he.top/=ae,he.bottom/=ae;const pe=document.createElement("div");pe.classList.add("ML__selection"),pe.style.position="absolute",pe.style.left=`${he.left}px`,pe.style.top=`${he.top}px`,pe.style.width=`${Math.ceil(he.right-he.left)}px`,pe.style.height=`${Math.ceil(he.bottom-he.top-1)}px`,b.insertBefore(pe,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 S0=3,Hs;function Oo(a,y){y=Ce({target:"mathfield",canUndo:!1,audioFeedback:void 0,changeContent:!1,changeSelection:!1},y!=null?y:{}),Hs||(Hs={});for(const b of Object.keys(a))console.assert(!Hs[b],"Selector already defined: ",b),Hs[b]=Ee(Ce({},y),{fn:a[b]})}function Sf(a){let y;if(Array.isArray(a)){if(a[0]==="performWithFeedback")return Sf(a[1]);y=a[0]}else y=a;return y=y.replace(/-\w/g,b=>b[1].toUpperCase()),Hs[y]}function dc(a){var y;return(y=Sf(a))==null?void 0:y.target}function og(a,y){var b;if(!y)return!1;let E,ee=[],re=!1,ae=!1;De(y)?(E=y[0],ee=y.slice(1)):E=y,E=E.replace(/-\w/g,ge=>ge[1].toUpperCase());const he=Hs[E],pe=he==null?void 0:he.target;if(pe==="model"){if(!a.isSelectionEditable&&(he!=null&&he.changeContent))return a.model.announce("plonk"),!1;/^(delete|add)/.test(E)&&(E!=="deleteBackward"&&a.flushInlineShortcutBuffer(),a.snapshot(E)),/^complete/.test(E)||Ch(a),Hs[E].fn(a.model,...ee),bd(a),ae=!0,re=!0}else if(pe==="virtual-keyboard")ae=(b=window.mathVirtualKeyboard.executeCommand(y))!=null?b:!1,re=!0;else if(Hs[E]){if(!a.isSelectionEditable&&(he!=null&&he.changeContent))return a.model.announce("plonk"),!1;/^(undo|redo)/.test(E)&&a.flushInlineShortcutBuffer(),ae=Hs[E].fn(a,...ee),re=!0}else throw new Error(`Unknown command "${E}"`);return pe!=="virtual-keyboard"&&(!a.model.selectionIsCollapsed||he!=null&&he.changeSelection&&y!=="deleteBackward")&&(a.flushInlineShortcutBuffer(),he!=null&&he.changeContent||a.stopCoalescingUndo(),a.defaultStyle={}),ae&&fa(a),re}function sg(a,y){var b;if(!a)return!1;a.focus(),vp.keypressVibration&&rt()&&navigator.vibrate(S0);const E=Sf(y);window.MathfieldElement.playSound((b=E==null?void 0:E.audioFeedback)!=null?b:"keypress");const ee=a.executeCommand(y);return a.scrollIntoView(),ee}Oo({performWithFeedback:(a,y)=>sg(a,y)});function lg(a){return bd(a,{atIndex:a.suggestionIndex+1}),!1}function ug(a){return bd(a,{atIndex:a.suggestionIndex-1}),!1}Oo({complete:uc},{target:"mathfield",audioFeedback:"return",canUndo:!0,changeContent:!0,changeSelection:!0}),Oo({nextSuggestion:lg,previousSuggestion:ug},{target:"mathfield",audioFeedback:"keypress",changeSelection:!0});var Dh="mathlive#virtual-keyboard-message";function Cf(a){var y;return a.type!=="message"?!1:((y=a.data)==null?void 0:y.type)===Dh}var cg=class em{constructor(){this.targetOrigin=window.origin,this.originValidator="none",this._boundingRect=new DOMRect(0,0,0,0),this._isShifted=!1,window.addEventListener("message",this),this.sendMessage("proxy-created"),this.listeners={}}static get singleton(){return this._singleton||(this._singleton=new em),this._singleton}set alphabeticLayout(y){this.sendMessage("update-setting",{alphabeticLayout:y})}set layouts(y){this.sendMessage("update-setting",{layouts:y})}get normalizedLayouts(){return[]}set editToolbar(y){this.sendMessage("update-setting",{editToolbar:y})}set actionKeycap(y){this.sendMessage("update-setting",{actionKeycap:y})}set shiftKeycap(y){this.sendMessage("update-setting",{shiftKeycap:y})}set backspaceKeycap(y){this.sendMessage("update-setting",{backspaceKeycap:y})}set tabKeycap(y){this.sendMessage("update-setting",{tabKeycap:y})}set container(y){throw new Error("Container inside an iframe cannot be changed")}show(y){this.sendMessage("show",y)}hide(y){this.sendMessage("hide",y)}get isShifted(){return this._isShifted}get visible(){return this._boundingRect.height>0}set visible(y){y?this.show():this.hide()}get boundingRect(){return this._boundingRect}executeCommand(y){return this.sendMessage("execute-command",{command:y}),!0}updateToolbar(y){this.sendMessage("update-toolbar",y)}update(y){this.sendMessage("update-setting",y)}connect(){this.sendMessage("connect")}disconnect(){this.sendMessage("disconnect")}addEventListener(y,b,E){this.listeners[y]||(this.listeners[y]=new Set),this.listeners[y].has(b)||this.listeners[y].add(b)}dispatchEvent(y){return!this.listeners[y.type]||this.listeners[y.type].size===0?!0:(this.listeners[y.type].forEach(b=>{typeof b=="function"?b(y):b==null||b.handleEvent(y)}),!y.defaultPrevented)}removeEventListener(y,b,E){this.listeners[y]&&this.listeners[y].delete(b)}handleEvent(y){if(Cf(y)){if(!ld(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;dc(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(Ce({type:Dh,action:y},b),this.targetOrigin)}},C0={numeric:{label:"123",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.numeric",rows:[[{latex:"x",shift:"y",variants:["y","z","t","r","x^2","x^n","x^{#?}","x_n","x_i","x_{#?}",{latex:"f(#?)",class:"small"},{latex:"g(#?)",class:"small"}]},{latex:"n",shift:"a",variants:["i","j","p","k","a","u"]},"[separator-5]","[7]","[8]","[9]","[/]","[separator-5]",{latex:"\\exponentialE",shift:"\\ln",variants:["\\exp","\\times 10^{#?}","\\ln","\\log_{10}","\\log"]},{latex:"\\imaginaryI",variants:["\\Re","\\Im","\\imaginaryJ","\\Vert #0 \\Vert"]},{latex:"\\pi",shift:"\\sin",variants:["\\prod",{latex:"\\theta",aside:"theta"},{latex:"\\rho",aside:"rho"},{latex:"\\tau",aside:"tau"},"\\sin","\\cos","\\tan"]}],[{label:"<",latex:"<",class:"hide-shift",shift:{latex:"\\le",label:"\u2264"}},{label:">",latex:">",class:"hide-shift",shift:{latex:"\\ge",label:"\u2265"}},"[separator-5]","[4]","[5]","[6]","[*]","[separator-5]",{class:"hide-shift",latex:"#@^2}",shift:"#@^{\\prime}}"},{latex:"#@^{#0}}",class:"hide-shift",shift:"#@_{#?}"},{class:"hide-shift",latex:"\\sqrt{#0}",shift:{latex:"\\sqrt[#0]{#?}}"}}],["[(]","[)]","[separator-5]","[1]","[2]","[3]","[-]","[separator-5]",{latex:"\\int^{\\infty}_{0}\\!#?\\,\\mathrm{d}x",class:"small hide-shift",shift:"\\int",variants:[{latex:"\\int_{#?}^{#?}",class:"small"},{latex:"\\int",class:"small"},{latex:"\\iint",class:"small"},{latex:"\\iiint",class:"small"},{latex:"\\oint",class:"small"},"\\mathrm{d}x",{latex:"\\dfrac{\\mathrm{d}}{\\mathrm{d} x}",class:"small"},{latex:"\\frac{\\partial}{\\partial x}",class:"small"},"\\partial"]},{class:"hide-shift",latex:"\\forall",shift:"\\exists"},{label:"[backspace]",width:1}],[{label:"[shift]",width:2},"[separator-5]","[0]","[.]","[=]","[+]","[separator-5]","[left]","[right]",{label:"[action]",width:1}]]},greek:{label:"αβγ",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.greek",rows:[[{label:"φ",class:"MLK__tex hide-shift",insert:"\\varphi",aside:"phi var.",shift:"\\Phi"},{label:"ς",class:"MLK__tex hide-shift",insert:"\\varsigma",aside:"sigma var.",shift:"\\Sigma"},{label:"ϵ",class:"MLK__tex hide-shift",insert:"\\epsilon",aside:"espilon",shift:'\\char"0190'},{label:"ρ",class:"MLK__tex hide-shift",insert:"\\rho",aside:"rho",shift:'\\char"3A1'},{label:"τ",class:"MLK__tex hide-shift",insert:"\\tau",aside:"tau",shift:'\\char"3A4'},{label:"υ",class:"MLK__tex hide-shift",insert:"\\upsilon",aside:"upsilon",shift:"\\Upsilon"},{label:"θ",class:"MLK__tex hide-shift",insert:"\\theta",aside:"theta",shift:"\\Theta"},{label:"ι",class:"MLK__tex hide-shift",insert:"\\iota",aside:"iota",shift:'\\char"399'},{label:"ο",class:"MLK__tex hide-shift",insert:"\\omicron",aside:"omicron",shift:'\\char"39F'},{label:"π",class:"MLK__tex hide-shift",insert:"\\pi",aside:"pi",shift:"\\Pi"}],["[separator-5]",{label:"α",class:"MLK__tex hide-shift",insert:"\\alpha",aside:"alpha",shift:'\\char"391'},{label:"σ",class:"MLK__tex hide-shift",insert:"\\sigma",aside:"sigma",shift:"\\Sigma"},{label:"δ",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:"γ",class:"MLK__tex hide-shift",insert:"\\gamma",aside:"gamma",shift:"\\Gamma"},{label:"η",class:"MLK__tex hide-shift",insert:"\\eta",aside:"eta",shift:'\\char"397'},{label:"ξ",class:"MLK__tex hide-shift",insert:"\\xi",aside:"xi",shift:"\\Xi"},{label:"κ",class:"MLK__tex hide-shift",insert:"\\kappa",aside:"kappa",shift:"\\Kappa"},{label:"λ",class:"MLK__tex hide-shift",insert:"\\lambda",aside:"lambda",shift:"\\Lambda"},"[separator-5]"],["[shift]",{label:"ζ",class:"MLK__tex hide-shift",insert:"\\zeta",aside:"zeta",shift:'\\char"396'},{label:"χ",class:"MLK__tex hide-shift",insert:"\\chi",aside:"chi",shift:'\\char"3A7'},{label:"ψ",class:"MLK__tex hide-shift",insert:"\\psi",aside:"zeta",shift:"\\Psi"},{label:"ω",class:"MLK__tex hide-shift",insert:"\\omega",aside:"omega",shift:"\\Omega"},{label:"β",class:"MLK__tex hide-shift",insert:"\\beta",aside:"beta",shift:'\\char"392'},{label:"ν",class:"MLK__tex hide-shift",insert:"\\nu",aside:"nu",shift:'\\char"39D'},{label:"μ",class:"MLK__tex hide-shift",insert:"\\mu",aside:"mu",shift:'\\char"39C'},"[backspace]"],["[separator]",{label:"ε",class:"MLK__tex",insert:"\\varepsilon",aside:"espilon var."},{label:"ϑ",class:"MLK__tex",insert:"\\vartheta",aside:"theta var."},{label:"ϰ",class:"MLK__tex",insert:"\\varkappa",aside:"kappa var."},{label:"ϖ",class:"MLK__tex",insert:"\\varpi",aside:"pi var."},{label:"ϱ",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]"]]}},_h={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
    \u207B\xB3\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\,\\char"2039',insert:"\\,",aside:"thin space
    \xB3\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\:\\char"2039',insert:"\\:",aside:"medium space
    \u2074\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\;\\char"2039',insert:"\\;",aside:"thick space
    \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 M0(a,y){var b,E,ee;const re=Rl.singleton;if(!re)return;const ae=hc(a),he=(E=(b=re.getKeycap(ae==null?void 0:ae.id))==null?void 0:b.variants)!=null?E:"";if(typeof he=="string"&&!E0(he)||Array.isArray(he)&&he.length===0){y==null||y();return}const pe={};let ge="";for(const un of hg(he)){const Kn=A0(un),sn=Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);pe[sn]=Kn;const[An,Gn]=Bh(Kn);ge+=`
    ${An}
    `}const we=document.createElement("div");we.setAttribute("aria-hidden","true"),we.className="MLK__variant-panel",we.style.height="auto";const Oe=Object.keys(pe).length;let je=5;Oe===1?je=1:Oe===2||Oe===4?je=2:Oe===3||Oe===5||Oe===6?je=3:Oe>=7&&Oe<14&&(je=4),we.style.width=`calc(var(--variant-keycap-length) * ${je} + 12px)`,we.innerHTML=vp.createHTML(ge),zs.open({root:(ee=re==null?void 0:re.container)==null?void 0:ee.querySelector(".ML__keyboard"),child:we}),xd=new AbortController;const{signal:ct}=xd,bt=a==null?void 0:a.getBoundingClientRect();if(bt){bt.top-we.clientHeight<0&&(we.style.width="auto",Oe<=6?we.style.height="56px":Oe<=12?we.style.height="108px":Oe<=18?we.style.height="205px":we.classList.add("compact"));const un=Math.max(0,Math.min(window.innerWidth-we.offsetWidth,(bt.left+bt.right-we.offsetWidth)/2)),Kn=bt.top-we.clientHeight+5;we.style.transform=`translate(${un}px, ${Kn}px)`,we.classList.add("is-visible"),requestAnimationFrame(()=>{we.addEventListener("pointerup",sn=>{const An=hc(sn.target);!(An!=null&&An.id)||!pe[An.id]||(Mf(pe[An.id]),wd(),y==null||y(),sn.preventDefault())},{capture:!0,passive:!1,signal:ct}),we.addEventListener("pointerenter",sn=>{const An=hc(sn.target);!(An!=null&&An.id)||!pe[An.id]||An.classList.add("is-active")},{capture:!0,signal:ct}),we.addEventListener("pointerleave",sn=>{const An=hc(sn.target);!(An!=null&&An.id)||!pe[An.id]||An.classList.remove("is-active")},{capture:!0,signal:ct}),window.addEventListener("pointercancel",()=>{wd(),y==null||y()},{signal:ct}),window.addEventListener("pointerup",()=>{wd(),y==null||y()},{signal:ct})})}}function wd(){xd==null||xd.abort(),xd=null,zs.state==="open"&&zs.close()}function dg(a){if(a==="foreground-color"){const y=[];for(const b of Object.keys($e))y.push({class:"swatch-button",label:'',command:["applyStyle",{color:b}]});return y}if(a==="background-color"){const y=[];for(const b of Object.keys(ze))y.push({class:"swatch-button",label:'',command:["applyStyle",{backgroundColor:b}]});return y}}function E0(a){return _h[a]!==void 0}function hg(a){var y;return typeof a!="string"?a:(_h[a]||(_h[a]=(y=dg(a))!=null?y:[]),_h[a])}function fg(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} {${fg(a[y])}}`).join("")}function Sd(a){if(!a)return"";const y=new xi,b=new wn({mode:"math",type:"root",body:Va(a,{context:y,args:ee=>ee==="@"?"{\\class{ML__box-placeholder}{\\blacksquare}}":"\\placeholder{}"})}),E=Yu(fd(new Zn(b.render(y),{classes:"ML__base"}),y));return qu(E,{classes:"ML__latex"}).toMarkup()}function Cd(a){var y;if(Array.isArray(a))return a.map(E=>Cd(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 he=vd();he&&(E=he.virtualLayout),(!E||E==="auto")&&(E=(a={fr:"azerty",be:"azerty",al:"qwertz",ba:"qwertz",cz:"qwertz",de:"qwertz",hu:"qwertz",sk:"qwertz",ch:"qwertz"}[Je.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,ae=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 he of re){const pe=[];for(const ge of he)/[a-z]/.test(ge)?pe.push({label:ge,class:"hide-shift",shift:{label:ge.toUpperCase()},variants:E0(ge)?ge:void 0}):ge==="~"?E!=="dvorak"?pe.push("[backspace]"):pe.push({label:"[backspace]",width:1}):ge==="^"?pe.push("[shift]"):ge===" "&&pe.push("[separator-5]");ae.push(pe)}return ae.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:Cd({rows:ae})}}function k0(a){if(a==="alphabetic")return mg();if(typeof a=="string")return console.assert(C0[a]!==void 0,`MathLive 0.98.5: unknown keyboard layout "${a}"`),k0(C0[a]);let y;if("rows"in a&&Array.isArray(a.rows)){console.assert(!("layers"in a||"markup"in a),'MathLive 0.98.5: when providing a "rows" property, "layers" and "markup" are ignored');const ee=a,{rows:re}=ee,ae=lt(ee,["rows"]);y=Ee(Ce({},ae),{layers:Cd({rows:a.rows})})}else if("markup"in a&&typeof a.markup=="string"){const ee=a,{markup:re}=ee,ae=lt(ee,["markup"]);y=Ee(Ce({},ae),{layers:Cd(a.markup)})}else y=Ce({},a),"layers"in a?y.layers=Cd(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()){fc(re)&&(b=!0);const ae=re.command;typeof ae=="string"&&["undo","redo","cut","copy","paste"].includes(ae)&&(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='
    ';if(a.normalizedLayouts.length>1)for(const[re,ae]of a.normalizedLayouts.entries()){const he=ae,pe=[re===y?"selected":"layer-switch"];he.tooltip&&pe.push("MLK__tooltip"),he.labelClass&&pe.push(...he.labelClass.split(" ")),ee+=`
    ${(E=he.label)!=null?E:"untitled"}
    `}return ee+="
    ",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:`
    `,redo:`
    `,cutToClipboard:`
    `,copyToClipboard:`
    `,pasteFromClipboard:`
    `};return b+=ee.map(ae=>re[ae]).join(""),b}function yg(a){for(const y of a)bg(y)}function bg(a){const y=Rl.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]=Bh(b);a.innerHTML=window.MathfieldElement.createHTML(E)}}function xg(){Po("virtual-keyboard"),Po("core"),Ah()}function wg(){x("core"),x("virtual-keyboard")}var Sg=` `;function Cg(a){a.resetKeycapRegistry(),xg();const y=document.createElement("div");y.className="ML__keyboard";const b=document.createElement("div");b.className="MLK__plate",b.innerHTML=window.MathfieldElement.createHTML(Sg+a.normalizedLayouts.map((ae,he)=>Mg(a,ae,he)).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 ae of ee)ae.addEventListener("click",he=>{var pe,ge;let we=he.target,Oe="";for(;we&&!Oe;)Oe=(pe=we==null?void 0:we.getAttribute("data-command"))!=null?pe:"",we=(ge=we==null?void 0:we.parentElement)!=null?ge:null;Oe&&a.executeCommand(JSON.parse(Oe))});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 ae of re)ae.addEventListener("pointerdown",he=>he.preventDefault());return a.currentLayer=a.latentLayer,y}function Mg(a,y,b){const E=[];if(!("layers"in y))return"";for(const ee of y.layers)E.push(`
    `),(a.normalizedLayouts.length>1||y.displayEditToolbar)&&(E.push("")),E.push(Eg(a,ee)),E.push("
    ");return E.join("")}function Eg(a,y){if(typeof y=="string")return y;let b="";if(typeof y.style=="string"?b+=``:typeof y.style=="object"&&(b+=``),y.backdrop&&(b+=`
    `),y.container&&(b+=`
    `),y.rows){b+="
    ";for(const E of y.rows){b+="
    ";for(const ee of E)if(ee){const re=a.registerKeycap(ee),[ae,he]=Bh(ee);/(^|\s)separator/.test(he)?b+=`
    ${ae}
    `}b+="
    "}b+="
    "}else y.markup&&(b+=y.markup);return y.container&&(b+="
    "),y.backdrop&&(b+="
    "),b}function Bh(a,y={shifted:!1}){var b,E,ee,re,ae,he,pe;let ge="",we=(b=a.class)!=null?b:"";if(y.shifted&&fc(a)&&(we+=" is-active"),y.shifted&&"shift"in a)typeof a.shift=="string"?ge=Sd(a.shift):typeof a.shift=="object"&&(ge=a.shift.label?a.shift.label:(E=Sd(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?E:""),typeof a.shift=="object"&&(we=(re=(ee=a.shift.class)!=null?ee:a.class)!=null?re:"");else{if(ge=a.label?a.label:(ae=Sd(a.latex||a.insert||"")||a.key)!=null?ae:"",a.shift){let Oe;typeof a.shift=="string"?Oe=Sd(a.shift):a.shift.label?Oe=a.shift.label:Oe=(he=Sd(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?he:"",ge+=`${Oe}`}a.aside&&(ge+=``)}return a.layer&&!/layer-switch/.test(we)&&(we+=" layer-switch"),/(^|\s)(separator|action|shift|fnbutton|bigfnbutton)($|\s)/.test(we)||(we+=" MLK__keycap"),!/\bw[0-9]+\b/.test(we)&&a.width&&(we+=(pe={0:" w0",.5:" w5",1.5:" w15",2:" w20",5:" w50"}[a.width])!=null?pe:""),[ge,we||"MLK__keycap"]}var mu={"[left]":{class:"action hide-shift",label:"",command:["performWithFeedback","moveToPreviousChar"],shift:{label:"",command:["performWithFeedback","extendSelectionBackward"]}},"[right]":{class:"action hide-shift",label:"",command:["performWithFeedback","moveToNextChar"],shift:{label:"",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:""},"[action]":{class:"action hide-shift",command:["performWithFeedback","commit"],shift:{label:"",command:["performWithFeedback","addRowAfter"]},width:1.5,label:""},"[hr]":{class:"separator horizontal-rule"},"[hide-keyboard]":{class:"action",command:["hideVirtualKeyboard"],width:1.5,label:""},"[.]":{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:"",shift:{class:"action warning",label:"",command:"deleteAll"}},"[undo]":{class:"ghost if-can-undo",command:"undo",label:"",tooltip:"tooltip.undo"},"[redo]":{class:"ghost if-can-redo",command:"redo",label:"",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:""},"[foreground-color]":{variants:"foreground-color",command:["applyStyle",{color:"red"}],label:""},"[background-color]":{variants:"background-color",command:["applyStyle",{backgroundColor:"yellow"}],label:""}};function A0(a){var y;if(typeof a=="string"){if(a==="[.]"&&window.MathfieldElement.decimalSeparator===","&&(a="[,]"),!mu[a])return{latex:a};a={label:a}}let b;return"label"in a&&a.label&&mu[a.label]&&(b=Ee(Ce(Ce({},mu[a.label]),a),{label:mu[a.label].label})),"key"in a&&a.key&&mu[a.key]&&(b=Ee(Ce(Ce({},mu[a.key]),a),{key:mu[a.key].key})),b?(b.command==="insertDecimalSeparator"&&(b.label=(y=window.MathfieldElement.decimalSeparator)!=null?y:"."),a.label==="[action]"&&(b=Ce(Ce({},b),window.mathVirtualKeyboard.actionKeycap)),a.label==="[shift]"&&(b=Ce(Ce({},b),window.mathVirtualKeyboard.shiftKeycap)),a.label==="[backspace]"&&(b=Ce(Ce({},b),window.mathVirtualKeyboard.backspaceKeycap)),a.label==="[tab]"&&(b=Ce(Ce({},b),window.mathVirtualKeyboard.tabKeycap)),b):a}var Md;function kg(a){var y;if(a.button!==0)return;const b=Rl.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=hc(a.target);if(!(ee!=null&&ee.id))return;const re=b.getKeycap(ee.id);if(!re)return;console.assert(a.type==="pointerdown");const ae=new AbortController,he=ae.signal;ee.classList.add("is-pressed"),ee.addEventListener("pointerenter",Th(ae),{capture:!0,signal:he}),ee.addEventListener("pointerleave",Th(ae),{capture:!0,signal:he}),ee.addEventListener("pointercancel",Th(ae),{signal:he}),ee.addEventListener("pointerup",Th(ae),{signal:he}),fc(re)&&(ee.classList.add("is-active"),b.shiftPressCount++),re.variants&&(Md&&clearTimeout(Md),Md=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),M0(ee,()=>{ae.abort(),ee==null||ee.classList.remove("is-active")}))},300)),a.preventDefault()}function Th(a){return y=>{const b=hc(y.target);if(!(b!=null&&b.id))return;const E=Rl.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"),fc(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"),fc(ee)&&(E.shiftPressCount--,b.classList.toggle("is-active",E.isShifted));return}if(y.type==="pointerup"){Md&&clearTimeout(Md),fc(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"}]):Mf(ee.shift):Mf(ee),E.shiftPressCount===1&&!y.shiftKey&&(E.shiftPressCount=0)),a.abort(),y.preventDefault();return}}}}function Mf(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=Rl.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 hc(a){if(!a)return;let y=a;for(;y&&!Ag(y);)y=y.parentElement;return y!=null?y:void 0}function fc(a){return!!a.class&&/(^|\s)shift($|\s)/.test(a.class)}var Rl=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 ae=L0();ae&&!ae.readOnly&&ae.mathVirtualKeyboardPolicy==="auto"&&Ve()&&this.show({animate:!0})},300)}),document.addEventListener("focusout",ee=>{ee.target.mathVirtualKeyboardPolicy!=="manual"&&setTimeout(()=>{L0()||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,ae]=Bh(ee,{shifted:this.isShifted});E.innerHTML=window.MathfieldElement.createHTML(re),E.className=ae}}}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 ae=ee.offsetHeight-1;E.style.paddingBottom=re?`calc(${re} + ${ae}px)`:`${ae}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}),wd(),wg(),(b=this._element)==null||b.remove(),this._element=void 0,this.originalContainerBottomPadding!==null&&(E.style.paddingBottom=this.originalContainerBottomPadding)}this.stateChanged()}}get height(){var y,b;return(b=(y=this.element)==null?void 0:y.offsetHeight)!=null?b:0}buildAndAttachElement(){var y;console.assert(!this.element),this.element=Cg(this),window.addEventListener("contextmenu",this,{capture:!0}),this.element.addEventListener("contextmenu",b=>{b.shiftKey||((b.ctrlKey||b.button===2)&&M0(b.target),b.preventDefault(),b.stopPropagation())},{capture:!0}),(y=this.container)==null||y.appendChild(this.element)}handleEvent(y){if(Cf(y)){if(!ld(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=dc(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:Ce({type:Dh,action:y},b)}));return}if(E)E.postMessage(Ce({type:Dh,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=dc(y);return De(y)?(b=y[0],b==="performWithFeedback"&&(y=y.slice(1),ee=dc(y)),E=y.slice(1)):b=y,b=b.replace(/-\w/g,re=>re[1].toUpperCase()),ee==="virtual-keyboard"?Hs[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 L0(){var a,y;let b=Sh(),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(ft()&&!("mathVirtualKeyboard"in window))if(window===window.top){const a=Rl.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>a})}else Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>cg.singleton,configurable:!0});function Ih(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,ae]=E.split(",").map(he=>parseInt(he.trim()));y.scriptDepth=[re,ae]}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=Rl.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>re})}ee="manual"}y.mathVirtualKeyboardPolicy=ee;break;case"letterShapeStyle":a.letterShapeStyle==="auto"?Je.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=mt(a.macros);break;default:De(a[b])?y[b]=[...a[b]]:typeof a[b]=="object"&&!(a[b]instanceof Element)&&b!=="computeEngine"?y[b]=Ce({},a[b]):y[b]=a[b]}return y}function gu(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]=Ce({},a[ee]):E[ee]=a[ee];return typeof y=="string"?E[y]:E}function Ph(){return{readOnly:!1,defaultMode:"math",macros:{},registers:{},colorMap:Lt,backgroundColorMap:at,letterShapeStyle:Je.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:lf,inlineShortcuts:dh,inlineShortcutTimeout:0,mathVirtualKeyboardPolicy:"auto",virtualKeyboardTargetOrigin:window==null?void 0:window.origin,originValidator:"none",onInlineShortcut:()=>"",onScrollIntoView:null,onExport:sf,value:""}}function D0(a){return a.defaultMode==="inline-math"?"math":a.defaultMode}function Nl(a,y){!a||!y||(De(a)?a.forEach(b=>Nl(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),Nl(a.body,y),Nl(a.above,y),Nl(a.below,y),Nl(a.subscript,y),Nl(a.superscript,y)))}function Ef(a,y,b,E){function ee(ae,he){for(const pe of re)if(pe.style[ae]!==he)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=Ds),b.variant&&ee("variant",b.variant)&&(b.variant="normal"),b.variantStyle&&ee("variantStyle",b.variantStyle)&&(b.variantStyle=""));for(const ae of re)ae.applyStyle(b);return!0}function Lg(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 fl(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)}Yt(["math","displaymath"],Qo),Yt("center",Qo),ot("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 ii("lines",a.args,[],{leftDelim:".",rightDelim:".",columns:[{align:"l"}]})}),on("array","{columns:colspec}",(a,y,b,E)=>new ii(a,kf(y),b,{columns:E[0],mathstyleName:"textstyle"})),on(["equation","equation*","subequations"],"",(a,y,b)=>new ii(a,kf(y),b,{columns:[{align:"c"}]})),on(["multline","multline*"],"",Qo),on(["align","align*","aligned","eqnarray"],"",Qo),on("split","",Qo),on(["gather","gathered"],"",Qo),on(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],"[columns:colspec]",Qo),on(["smallmatrix","smallmatrix*"],"[columns:colspec]",Qo),on(["cases","dcases","rcases"],"",Qo);function _g(a){for(const y of a)for(const b of y)if(b.length>0)return!1;return!0}function kf(a,y=1){return _g(a)?Array(y).fill([[new wn({type:"first"}),new Wr]]):a.map(b=>b.length===0?[[new wn({type:"first"})]]:b.map(E=>E.length===0?[new wn({type:"first"})]:(E[0].type!=="first"&&E.unshift(new wn({type:"first"})),E)))}function Qo(a,y=[[[]]],b=[],E=[]){switch(y=kf(y,["split","align","align*","aligned","eqnarray"].includes(a)?2:1),a){case"math":return new ii(a,y,b,{mathstyleName:"textstyle"});case"displaymath":return new ii(a,y,b,{mathstyleName:"textstyle"});case"center":return new ii(a,y,b,{columns:[{align:"c"}]});case"multline":case"multline*":return new ii(a,y,b,{columns:[{align:"m"}],leftDelim:".",rightDelim:"."});case"split":return new ii(a,y,b,{columns:[{align:"r"},{align:"l"}],minColumns:2});case"gather":case"gathered":return new ii(a,y,b,{columns:[{gap:.25},{align:"c"},{gap:0}]});case"pmatrix":case"pmatrix*":return new ii(a,y,b,{mathstyleName:"textstyle",leftDelim:"(",rightDelim:")",columns:vu(E[0])});case"bmatrix":case"bmatrix*":return new ii(a,y,b,{mathstyleName:"textstyle",leftDelim:"[",rightDelim:"]",columns:vu(E[0])});case"Bmatrix":case"Bmatrix*":return new ii(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\lbrace",rightDelim:"\\rbrace",columns:vu(E[0])});case"vmatrix":case"vmatrix*":return new ii(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\vert",rightDelim:"\\vert",columns:vu(E[0])});case"Vmatrix":case"Vmatrix*":return new ii(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\Vert",rightDelim:"\\Vert",columns:vu(E[0])});case"matrix":case"matrix*":return new ii(a,y,b,{mathstyleName:"textstyle",leftDelim:".",rightDelim:".",columns:vu(E==null?void 0:E[0])});case"smallmatrix":case"smallmatrix*":return new ii(a,y,b,{mathstyleName:"scriptstyle",columns:vu(E==null?void 0:E[0]),colSeparationType:"small",arraystretch:.5});case"cases":case"dcases":return new ii(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 ii(a,y,b,{arraystretch:1.2,leftDelim:".",rightDelim:"\\rbrace",columns:[{align:"l"},{gap:1},{align:"l"}]});case"lines":return new ii(a,y,b,{leftDelim:".",rightDelim:".",columns:[{align:"l"}]});case"align":case"align*":case"aligned":case"eqnarray":{let ee=0;for(const he of y)ee=Math.max(ee,he.length);const re=[{gap:0},{align:"r"},{gap:.25},{align:"l"}];let ae=2;for(;ae1){E.removeRow(ee[0]);const ae=E.getCell(Math.max(0,ee[0]-1),ee[1]);re=a.offsetOf(ae[ae.length-1])}break;case"column":if(E.colCount>E.minColumns){E.removeColumn(ee[1]);const ae=E.getCell(ee[0],Math.max(0,ee[1]-1));re=a.offsetOf(ae[ae.length-1])}break}re&&a.setPositionHandlingPlaceholder(re)}}function Og(a){return a.contentWillChange({inputType:"deleteContent"})?(I0(a,"row"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}function Rg(a){return a.contentWillChange({inputType:"deleteContent"})?(I0(a,"column"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}Oo({addRowAfter:_0,addColumnAfter:B0,addRowBefore:Ig,addColumnBefore:Pg,removeRow:Og,removeColumn:Rg,setEnvironment:T0},{target:"model",canUndo:!0,changeContent:!0,changeSelection:!0});function Nh(){return[new Wr]}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 Ng=P0;function Af(a,y,b){if(a.at(y).mode!=="text")return y;const E=b==="backward"?-1:1;let ee;if(de.test(a.at(y).value)){let re=y,ae;do ae=a.at(re).mode==="text"&&de.test(a.at(re).value),re+=E;while(a.at(re)&&ae);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 ae=!0;do ae=a.at(re).mode==="text"&&!/\s/.test(a.at(re).value),re+=E;while(a.at(re)&&ae);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 ae=!0;for(;a.at(re)&&ae;)ae=a.at(re).mode==="text"&&/\s/.test(a.at(re).value),ae&&(ee=re),re+=E;ee=a.at(re)?re-2*E:re-E}return ee-(E>0?0:1)}function pc(a,y,b){var E,ee,re,ae,he,pe,ge;const we=a.position;(E=b==null?void 0:b.extend)!=null&&E||a.collapseSelection(y);let Oe=a.at(a.position);if(y==="forward"&&(Oe.type==="subsup"?(Oe=Oe.rightSibling,Oe||(Oe=a.at(a.position+1))):Oe=a.at(a.position+1)),!Oe)return a.announce("plonk"),!1;let je=a.offsetOf(Oe);if(Oe instanceof vs)je=Af(a,je,y);else if(Oe instanceof qa)if(Oe.isSuggestion)for(console.assert(y==="forward");Oe&&Oe instanceof qa;)Oe.isSuggestion=!1,je=a.offsetOf(Oe),Oe=Oe.rightSibling;else if(y==="forward"){if(Oe=Oe.rightSibling,!Oe||!(Oe instanceof qa))return a.announce("plonk"),!1;for(;Oe&&Oe instanceof qa&&/[a-zA-Z\*]/.test(Oe.value);)je=a.offsetOf(Oe),Oe=Oe.rightSibling}else{if(Oe=Oe.leftSibling,!Oe||!(Oe instanceof qa))return a.announce("plonk"),!1;for(;Oe&&Oe instanceof qa&&/[a-zA-Z\*]/.test(Oe.value);)je=a.offsetOf(Oe),Oe=Oe.leftSibling}else if(y==="forward"&&Oe.type==="mopen"){let ct=0;do Oe.type==="mopen"?ct+=1:Oe.type==="mclose"&&(ct-=1),Oe=Oe.rightSibling;while(!Oe.isLastSibling&&ct!==0);je=a.offsetOf(Oe.leftSibling)}else if(y==="backward"&&Oe.type==="mclose"){let ct=0;do Oe.type==="mopen"?ct+=1:Oe.type==="mclose"&&(ct-=1),Oe=Oe.leftSibling;while(!Oe.isFirstSibling&&ct!==0);je=a.offsetOf(Oe)}else if(y==="backward")if(Oe.type==="first")for(;je>0&&Oe.type==="first";)je-=1,Oe=a.at(je);else{const ct=Oe.type;Oe.type==="subsup"&&(je=a.offsetOf(a.at(je).leftSibling)),je-=1;let bt=(ee=a.at(je))==null?void 0:ee.type;for(;je>=0&&bt===ct;)((re=a.at(je))==null?void 0:re.type)==="subsup"?je=a.offsetOf(a.at(je).leftSibling):je-=1,bt=a.at(je).type}else{const{type:ct}=Oe;let bt=(ae=a.at(je))==null?void 0:ae.type;const{lastOffset:un}=a;for(;je<=un&&(bt===ct||bt==="subsup");){for(;((he=a.at(je).rightSibling)==null?void 0:he.type)==="subsup";)je=a.offsetOf(a.at(je).rightSibling);je+=1,bt=(pe=a.at(je))==null?void 0:pe.type}je-=1}if((ge=b==null?void 0:b.extend)!=null&&ge){if(!a.setSelection(a.anchor,je))return a.announce("plonk"),!1}else{if(je===a.position)return a.announce("plonk"),!1;a.position=je}return a.announce("move",we),a.mathfield.stopCoalescingUndo(),!0}function Ks(a,y,b){var E,ee;if(b=b!=null?b:{extend:!1},a.mathfield.adoptStyle=y==="backward"?"right":"left",y!=="forward"){const[he,pe]=g0(a);he!==void 0&&pe!==void 0&&a.deleteAtoms([he,pe])}if(y==="upward")return zg(a,b);if(y==="downward")return Hg(a,b);if(b.extend){let he=Fh(a,a.position,y);he<0&&(he=0),he>a.lastOffset&&(he=a.lastOffset);const pe=a.setSelection(a.anchor,he);return a.mathfield.stopCoalescingUndo(),pe}if(a.selectionIsPlaceholder){a.collapseSelection(y);const he=Ks(a,y);return a.mathfield.stopCoalescingUndo(),he}let re=a.position;const ae=re;if(a.collapseSelection(y)?(re=a.position,O0(a,re)||(re=Fh(a,re,y))):re=Fh(a,re,y),re<0||re>a.lastOffset){let he=!0;return a.silenceNotifications||(he=(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),he&&a.announce("plonk"),he}return a.setPositionHandlingPlaceholder(re),a.mathfield.stopCoalescingUndo(),a.announce("move",ae),!0}function Fh(a,y,b){return y=y+(b==="forward"?1:-1),y<0||y>a.lastOffset||O0(a,y)?y:Fh(a,y,b)}function O0(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 Fg(a,y,b){let E=1/0,ee=0;for(;eege.type==="prompt"&&!ge.captureSelection):b,he=rc(a.mathfield.getHTMLElement(y)).right,pe=a.offsetOf(Fg(a.mathfield,ae,he))-(re?1:0);if(E){const[ge,we]=a.selection.ranges[0];let Oe;pe<(ee==="up"?ge:we)?Oe={ranges:[[pe,we]],direction:"backward"}:Oe={ranges:[[ge,pe]],direction:"forward"},a.setSelection(Oe)}else a.setPositionHandlingPlaceholder(pe);a.announce(`move ${ee}`)}function zg(a,y){var b,E;const ee=(b=y==null?void 0:y.extend)!=null?b:!1;ee||a.collapseSelection("backward");const re=()=>{var pe,ge;let we=!0;return a.silenceNotifications||(we=(ge=(pe=a.mathfield.host)==null?void 0:pe.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"upward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?ge:!0),a.announce(we?"plonk":"line"),we},ae=a.at(a.position);let he=ae;for(;he&&he.parentBranch!=="below"&&!(Array.isArray(he.parentBranch)&&he.parent instanceof ii);)he=he.parent;if(Array.isArray(he==null?void 0:he.parentBranch)&&he.parent instanceof ii){const pe=he.parent;if(he.parentBranch[0]<1)return re();const ge=he.parentBranch[0]-1,we=pe.array[ge][he.parentBranch[1]];if(!we.some(je=>je.type==="prompt"&&!je.captureSelection)&&a.mathfield.hasEditablePrompts)return re();zh(a,ae,we,ee,"up")}else if(he){const pe=(E=he.parent.branch("above"))!=null?E:he.parent.createBranch("above");if(!pe.some(we=>we.type==="prompt"&&we.placeholderId)&&a.mathfield.hasEditablePrompts)return re();zh(a,ae,pe,ee,"up")}else return re();return a.mathfield.stopCoalescingUndo(),!0}function Hg(a,y){var b,E;const ee=(b=y==null?void 0:y.extend)!=null?b:!1;ee||a.collapseSelection("forward");const re=()=>{var pe,ge;let we=!0;return a.silenceNotifications||(we=(ge=(pe=a.mathfield.host)==null?void 0:pe.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"downward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?ge:!0),a.announce(we?"plonk":"line"),we},ae=a.at(a.position);let he=ae;for(;he&&he.parentBranch!=="above"&&!(Array.isArray(he.parentBranch)&&he.parent instanceof ii);)he=he.parent;if(Array.isArray(he==null?void 0:he.parentBranch)&&he.parent instanceof ii){const pe=he.parent;if(he.parentBranch[0]+1>pe.array.length-1)return re();const ge=he.parentBranch[0]+1,we=pe.array[ge][he.parentBranch[1]];if(!we.some(je=>je.type==="prompt"&&!je.captureSelection)&&a.mathfield.hasEditablePrompts)return re();zh(a,ae,we,ee,"down")}else if(he){const pe=(E=he.parent.branch("below"))!=null?E:he.parent.createBranch("below");if(!pe.some(we=>we.type==="prompt")&&a.mathfield.hasEditablePrompts)return re();zh(a,ae,pe,ee,"down")}else return re();return!0}function R0(a){const y=a.position,b=a.at(y).parent;return b!=null&&b.parent?(a.position=a.offsetOf(b),a.mathfield.stopCoalescingUndo(),a.announce("move",y),!0):(a.announce("plonk"),!1)}function Kg(a){let y=0,b=a.at(a.position),E=!1;for(;b;)(!b.hasEmptyBranch("superscript")||!b.hasEmptyBranch("subscript"))&&(y+=1),b.hasEmptyBranch("superscript")?b.hasEmptyBranch("subscript")||(E=!1):E=!0,b=b.parent;return E?y:0}function Wg(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 N0(a){var y;if(a.collapseSelection(),Kg(a)>=a.mathfield.options.scriptDepth[1])return a.announce("plonk"),!1;let b=a.at(a.position);return b.subsupPlacement===void 0&&(((y=b.rightSibling)==null?void 0:y.type)!=="subsup"&&b.parent.addChildAfter(new Yo({style:b.computedStyle}),b),b=b.rightSibling),b.createBranch("superscript"),a.setSelection(a.getSiblingsRange(a.offsetOf(b.superscript[0]))),!0}function F0(a){var y;if(a.collapseSelection(),Wg(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 Yo({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(pe){const ge=[],we=[];return[...pe.querySelectorAll(`input, select, textarea, a[href], button, [tabindex], audio[controls], video[controls], [contenteditable]:not([contenteditable="false"]), details>summary`)].filter(y).forEach((je,ct)=>{const bt=E(je);bt===0?ge.push(je):we.push({documentOrder:ct,tabIndex:bt,node:je})}),we.sort((je,ct)=>je.tabIndex===ct.tabIndex?je.documentOrder-ct.documentOrder:je.tabIndex-ct.tabIndex).map(je=>je.node).concat(ge)}function y(pe){return!(!b(pe)||ee(pe)||E(pe)<0)}function b(pe){return!(pe.disabled||pe.type==="hidden"&&pe.tagName.toUpperCase()==="INPUT"||he(pe))}function E(pe){var ge;const we=Number.parseInt((ge=pe.getAttribute("tabindex"))!=null?ge:"NaN",10);return Number.isNaN(we)?pe.contentEditable==="true"||(pe.nodeName==="AUDIO"||pe.nodeName==="VIDEO")&&pe.getAttribute("tabindex")===null?0:pe.tabIndex:we}function ee(pe){return pe.tagName.toUpperCase()==="INPUT"&&pe.type==="radio"&&!ae(pe)}function re(pe,ge){for(const we of pe)if(we.checked&&we.form===ge)return we;return null}function ae(pe){var ge;if(!pe.name)return!0;const Oe=((ge=pe.form)!=null?ge:pe.ownerDocument).querySelectorAll('input[type="radio"][name="'+pe.name+'"]'),je=re(Oe,pe.form);return!je||je===pe}function he(pe){if(!ft()||pe===document.activeElement||pe.contains(document.activeElement))return!1;if(getComputedStyle(pe).visibility==="hidden")return!0;const ge=pe.getBoundingClientRect();if(ge.width===0||ge.height===0)return!0;for(;pe;){if(getComputedStyle(pe).display==="none")return!0;pe=pe.parentElement}return!1}return ft()?a(document.body):[]}function yo(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"?yo(a,[y.leftSibling,y]):yo(a,[y,y.leftSibling])}function xs(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 Hh(a,y,b=!0){var E,ee;const re=y==="forward"?1:-1;a.at(a.anchor).type==="placeholder"&&Ks(a,y);let ae;const he=a.at(a.anchor).parentPrompt;he?y==="forward"?ae=a.offsetOf(he)+1:ae=a.offsetOf(he.leftSibling):ae=Math.max(a.position+re,0);const pe=Lf(a,ae,y);if(!pe||y==="forward"&&a.offsetOf(pe)ae){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 we=Zg();if(!document.activeElement||we.length<=1)return a.announce("plonk"),!1;let Oe=we.indexOf(document.activeElement)+re;return Oe<0&&(Oe=we.length-1),Oe>=we.length&&(Oe=0),we[Oe].focus(),a.mathfield.stopCoalescingUndo(),!0}return xs(a,pe),!0}function Lf(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)}Oo({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 he=b.subsupPlacement?F0(a):N0(a);return a.mathfield.stopCoalescingUndo(),he}E.branch(re)||E.createBranch(re);const ae=a.setSelection(a.getBranchRange(a.offsetOf(E),re));return a.mathfield.stopCoalescingUndo(),ae},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=>R0(a),moveToNextChar:a=>Ks(a,"forward"),moveToPreviousChar:a=>Ks(a,"backward"),moveUp:a=>Ks(a,"upward"),moveDown:a=>Ks(a,"downward"),moveToNextWord:a=>pc(a,"forward"),moveToPreviousWord:a=>pc(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 Hh(a,"forward");const re=a.at(a.position);if(re.mode==="text"){if(a.selectionIsCollapsed){let je=re;for(;je&&je.mode==="text";)je=je.leftSibling;let ct=re;for(;((y=ct.rightSibling)==null?void 0:y.mode)==="text";)ct=ct.rightSibling;if(je&&ct)return yo(a,[je,ct])}if(re.rightSibling.mode==="text"){let je=re;for(;je&&je.mode==="text";)je=je.rightSibling;return je?(xs(a,(b=je.leftSibling)!=null?b:je),a.mathfield.switchMode("math"),!0):xs(a,a.lastOffset)}}const he=a.at(a.anchor).parentPrompt,pe=he?a.offsetOf(he)+1:Math.max(a.position+1,0),ge=Lf(a,pe,"forward");if(ge)return xs(a,ge);const we=z0(a,re,je=>je.type==="leftright"||je.type==="text","forward");if(we){if(we.mode==="text"){let je=we;for(;je&&je.mode==="text";)je=je.rightSibling;return yo(a,[(E=we.leftSibling)!=null?E:we,(ee=je.leftSibling)!=null?ee:je])}return yo(a,we)}const Oe=re.parent;if(Oe){if(Oe.type==="leftright"||Oe.type==="surd")return yo(a,Oe);if(re.parentBranch==="superscript"&&Oe.subscript)return yo(a,Oe.subscript);if(re.parentBranch==="above"&&Oe.below)return yo(a,Oe.below);if(re.parentBranch==="superscript"||re.parentBranch==="subscript")return xs(a,Oe);if(re.parentBranch==="above"||re.parentBranch==="below")return yo(a,Oe)}return xs(a,a.lastOffset)},moveToPreviousGroup:a=>{var y;if(a.position===0&&a.anchor===0)return Hh(a,"backward");let b=a.at(a.position);const E=b.mode;if(E==="text"){if(a.selectionIsCollapsed){let he=b;for(;he&&he.mode==="text";)he=he.leftSibling;let pe=b;for(;((y=pe.rightSibling)==null?void 0:y.mode)==="text";)pe=pe.rightSibling;if(he&&pe)return yo(a,[he,pe])}for(;b&&b.mode==="text";)b=b.leftSibling;return b?xs(a,b):xs(a,0)}const ee=a.at(a.anchor).parentPrompt,re=ee?a.offsetOf(ee.leftSibling):Math.max(a.position-1,0),ae=Lf(a,re,"backward");if(ae)return xs(a,ae);if(E==="math"){const he=z0(a,b,ge=>ge.type==="leftright"||ge.type==="text","backward");if(he){if(he.mode==="text"){let ge=he;for(;ge&&ge.mode==="text";)ge=ge.leftSibling;return yo(a,[he,ge])}return yo(a,he)}const pe=b.parent;if(pe){if(pe.type==="leftright"||pe.type==="surd")return yo(a,pe);if(b.parentBranch==="subscript"&&pe.superscript)return yo(a,pe.superscript);if(b.parentBranch==="below"&&pe.above)return yo(a,pe.above);if(b.parentBranch==="superscript"||b.parentBranch==="subscript")return xs(a,pe);if(b.parentBranch==="above"||b.parentBranch==="below")return yo(a,pe)}return xs(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:N0,moveToSubscript:F0},{target:"model",changeSelection:!0}),Oo({moveToNextPlaceholder:a=>Hh(a,"forward"),moveToPreviousPlaceholder:a=>Hh(a,"backward")},{target:"model",changeSelection:!0,audioFeedback:"return"});function z0(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 Kh(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 ae=a.at(E);ee=y===0||ae===void 0||ae.type==="first"||ae.mode!=="math"||!(ae.type&&/mord|mpunct|operator/.test(ae.type)||ae.type==="mop"&&/[a-zA-Z ]+/.test(ae.value))||!ae.hasEmptyBranch("superscript")||!ae.hasEmptyBranch("subscript")||typeof b=="function"&&!b(ae),ee||(ae.mode="text",ae.command=ae.value,ae.verbatimLatex=void 0,re+=ae.value),E-=1,y-=1}a.contentDidChange({data:re,inputType:"insertText"})}function xu(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 ae=a.at(E);ee=y===0||!ae||ae.type==="first"||ae.isFirstSibling||ae.mode!=="text"||ae.value===" "||typeof b=="function"&&!b(ae),ee||(re.push(wn.serialize([ae],{defaultMode:"math"})),ae.mode="math"),E-=1,y-=1}Df(a),a.contentDidChange({data:ci(re),inputType:"insertText"})}function Df(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 Vg(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 $g(a,y,b){const{model:E}=a;if(E.mode==="latex"||!E.at(E.position).isLastSibling||!b||!wh(b))return!1;const ee=lc(b);if(!E.selectionIsCollapsed)return!!(a.model.mode==="text"&&/[/_^]/.test(ee));const re=Vg(E)+ee;if(a.model.mode==="text"){if(y==="Esc"||/[/\\]/.test(ee))return!0;if(/[\^_]/.test(ee))return/(^|\s)[a-zA-Z][^_]$/.test(re)&&xu(E,1),!0;const ae={")":"(","}":"{","]":"["}[ee],{parent:he}=E.at(E.position);if(ae&&he instanceof Li&&he.leftDelim===ae)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 xu(E,1),!1;if(/\D\.[^\d\s]$/.test(re)){xu(E,1);const pe=E.at(E.position);return pe.value="\u22C5",pe.style.variant="normal",pe.command="\\cdot",pe.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 xu(E,1),!0;if(/\([a-z][,;]$/.test(re))return xu(E,2),!0;if(/[\d+\-=><*|]$/.test(ee))return Df(E),!0}else{if(y==="[Space]")return Kh(E,void 0,ae=>/[a-z][:,;.]$/.test(ae.value)),!0;if(/[a-zA-Z]{3,}$/.test(re)&&!/(dxd|abc|xyz|uvw)$/.test(re))return Kh(E,void 0,ae=>/[a-zA-Z]/.test(ae.value)),!0;if(/(^|\W)(if)$/i.test(re))return Kh(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 Kh(E,void 0,ae=>/(:|,|;|.|\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5)/u.test(ae.value)),!0;if(ee==="?"||ee==="."&&!/[\d-+]\.$/.test(re))return!0}return!1}function jg(a,y){if(!a.isSelectionEditable||!a.keystrokeCaptionVisible)return;const b=H0(),E=a.element.getBoundingClientRect();b.style.left=`${E.left}px`,b.style.top=`${E.top-64}px`,b.innerHTML=window.MathfieldElement.createHTML(""+(vf(y)||y)+""+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 Gg(a){if(a.keystrokeCaptionVisible=!a.keystrokeCaptionVisible,a.keystrokeCaptionVisible){const y=H0();y.innerHTML=""}else{const y=Mh("mathlive-keystroke-caption-panel");y.style.visibility="hidden"}return!1}function H0(){const a=document.getElementById("mathlive-keystroke-caption-panel");return a||(Po("keystroke-caption"),Po("core"),Mh("mathlive-keystroke-caption-panel"))}function Ug(){document.getElementById("mathlive-keystroke-caption-panel")&&(bf("mathlive-keystroke-caption-panel"),x("core"),x("keystroke-caption"))}function K0(a,y){var b,E,ee;const{model:re}=a,ae=p0(y);if(y.isTrusted){Nm(y);const ct=vd();a.keyboardLayout!==ct.id&&(a.keyboardLayout=ct.id,a._keybindings=void 0)}if(clearTimeout(a.inlineShortcutBufferFlushTimer),a.inlineShortcutBufferFlushTimer=0,jg(a,ae),y.isTrusted&&y.defaultPrevented)return a.flushInlineShortcutBuffer(),!1;let he,pe="",ge;const we=a.inlineShortcutBuffer;if(a.isSelectionEditable){if(re.mode==="math")if(ae==="[Backspace]")we.pop();else if(!wh(y))a.flushInlineShortcutBuffer();else{const ct=lc(y),bt=[...(E=(b=we[we.length-1])==null?void 0:b.keystrokes)!=null?E:[],ct];we.push({state:re.getState(),keystrokes:bt,leftSiblings:Xg(a)});let un=0,Kn="";for(;!he&&un(ni.insert(re,he,{format:"latex",style:ct}),Df(a.model),he.endsWith(" ")&&(a.switchMode("text"),ni.insert(re," ",{style:ct,mode:"text"})),a.snapshot(),re.selectionIsCollapsed||a.flushInlineShortcutBuffer(),!0)),a.dirty=!0,re.announce("replacement")}return a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}function _f(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=rh(y);const re=window.mathVirtualKeyboard;if(re!=null&&re.isShifted&&(ee=typeof ee=="string"?ee.toUpperCase():ee.map(pe=>pe.toUpperCase())),b.simulateKeystroke){let pe=!0;for(const ge of ee)K0(a,new KeyboardEvent("keypress",{key:ge}))&&(pe=!1);if(pe)return}const ae=E.at(E.position),he=Ce(Ce({},ae.computedStyle),a.defaultStyle);if(E.selectionIsCollapsed||(E.deleteAtoms(Wa(E.selection)),a.snapshot("delete")),E.mode==="latex")E.deferNotifications({content:!0,selection:!0,data:y,type:"insertText"},()=>{Ch(a);for(const pe of ee)ni.insert(E,pe);a.snapshot("insert-latex"),bd(a)});else if(E.mode==="text"){for(const pe of ee)ni.insert(E,pe,{style:he});a.snapshot("insert-text")}else if(E.mode==="math")for(const pe of ee)Yg(a,pe,he,ae);a.dirty=!0,a.scrollIntoView()}function Xg(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){qg(ee),ni.insert(ee,y,{style:b}),a.snapshot(),R0(ee),a.snapshot();return}if(/[a-zA-Z0-9]/.test(y)&&a.adoptStyle!=="none"){const ae=a.adoptStyle==="left"?E:E.parent?E.rightSibling:null;(ae==null?void 0:ae.type)==="mord"&&/[a-zA-Z0-9]/.test(ae.value)&&(b=Ce({},b),ae.style.variant&&(b.variant=ae.style.variant),ae.style.variantStyle&&(b.variantStyle=ae.style.variantStyle))}ni.insert(ee,y,{style:b}),a.snapshot(`insert-${ee.at(ee.position).type}`)}function qg(a){a.selectionIsCollapsed||(a.deleteAtoms(Wa(a.selection)),a.mathfield.snapshot("delete"))}function Bf(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 ae=te[re],he=ne[re];if(!a.selectionIsCollapsed){a.mathfield.snapshot();const[pe,ge]=Wa(a.selection),we=a.extractAtoms([pe,ge]),Oe=ee.addChildrenAfter([new Li("left...right",we,{leftDelim:re,rightDelim:he})],a.at(pe));return a.setSelection(a.offsetOf(Oe.firstChild),a.offsetOf(Oe.lastChild)),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:re,inputType:"insertText"}),!0}if(re==="|"){const pe=ee instanceof Li?ee.leftDelim+ee.rightDelim:"";if(pe==="\\lbrace\\rbrace"||pe==="\\{\\}"||pe==="\\lbrace?")return a.mathfield.snapshot(),ni.insert(a,"\\,\\middle\\vert\\,",{format:"latex",style:b}),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:re,inputType:"insertText"}),!0}if(he){if(ee instanceof Li&&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 Li)){let Oe=E;for(;Oe&&!(Oe.type==="mclose"&&Oe.value===he);)Oe=Oe.rightSibling;if(Oe){a.mathfield.snapshot();const je=a.extractAtoms([a.offsetOf(E),a.offsetOf(Oe)]);return je.pop(),ee.addChildrenAfter([new Li("left...right",je,{leftDelim:re,rightDelim:he})],E),a.position=a.offsetOf(ee.firstChild)+1,a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}}const pe=a.offsetOf(E.lastSibling);let ge;for(ge=a.position;ge<=pe;ge++){const Oe=a.at(ge);if(Oe instanceof Li&&(Oe.leftDelim==="?"||Oe.leftDelim===".")&&W0(re,Oe.rightDelim))break}const we=a.at(ge);if(ge<=pe&&we instanceof Li){we.leftDelim=re,a.mathfield.snapshot();let Oe=a.extractAtoms([a.position,ge-1]);return Oe=Oe.filter(je=>je.type!=="first"),we.addChildren(Oe,we.parentBranch),a.position+=1,a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(ee instanceof Li&&(ee.leftDelim==="?"||ee.leftDelim===".")&&W0(re,ee.rightDelim)){ee.isDirty=!0,ee.leftDelim=re,a.mathfield.snapshot();const Oe=a.extractAtoms([a.offsetOf(E.firstSibling),a.position]);for(const je of Oe)ee.parent.addChildBefore(je,ee);return a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(!(ee instanceof Li&&ee.leftDelim==="|")){if(a.mathfield.snapshot(),ni.insert(a,`\\left${re}\\right?`,{format:"latex",style:b}),E.lastSibling.type!=="first"){const Oe=a.offsetOf(E.lastSibling),je=a.extractAtoms([a.position,Oe]);a.at(a.position).body=je,a.position-=1}return a.mathfield.snapshot("insert-fence"),!0}}if(ae){let pe=E;for(;pe;){if(pe.type==="mopen"&&pe.value===ae){a.mathfield.snapshot();const ct=pe.leftSibling,bt=a.extractAtoms([a.offsetOf(pe.leftSibling),a.offsetOf(E)]);bt.shift();const un=new Li("left...right",bt,{leftDelim:ae,rightDelim:re});return ee.addChildrenAfter([un],ct),a.position=a.offsetOf(un),a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}pe=pe.leftSibling}if(ee instanceof Li&&E.isLastSibling&&Tf(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 ge=a.offsetOf(E.firstSibling);let we;for(we=a.position;we>=ge;we--){const ct=a.at(we);if(ct instanceof Li&&(ct.rightDelim==="?"||ct.rightDelim===".")&&Tf(ct.leftDelim,re))break}const Oe=a.at(we);if(we>=ge&&Oe instanceof Li)return a.mathfield.snapshot(),Oe.rightDelim=re,Oe.addChildren(a.extractAtoms([we,a.position]),Oe.parentBranch),a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(ee instanceof Li&&(ee.rightDelim==="?"||ee.rightDelim===".")&&Tf(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 je=ee.parent;return je instanceof Li&&(je.rightDelim==="?"||je.rightDelim===".")&&a.at(a.position).isLastSibling?(a.position=a.offsetOf(je),Bf(a,re,b)):!1}return!1}function Tf(a,y){return a?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a)?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y):ne[a]===y:!0}function W0(a,y){return y?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y)?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a):te[y]===a:!0}Oo({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:Gg,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)=>(_f(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}}),Oo({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"}),Oo({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})&&(bd(a),a.startRecording(),a.snapshot("paste"),a.model.contentDidChange({inputType:"insertFromPaste"}),fa(a))):a.model.announce("plonk"),a.startRecording()}),!0))},{target:"mathfield",canUndo:!0,changeContent:!0,changeSelection:!0});function Qg(a,y){a.flushInlineShortcutBuffer(),a.stopCoalescingUndo();const b=If(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=Ce(Ce({},a.defaultStyle),b)):a.model.deferNotifications({content:!0,type:"insertText"},()=>{E.selection.ranges.forEach(ee=>Ef(E,ee,b,{operation:"toggle"})),a.snapshot("style-change")}),!0}Oo({applyStyle:Qg},{target:"mathfield",canUndo:!0,changeContent:!0});function If(a,y){var b,E,ee,re,ae,he,pe,ge,we,Oe;const je={};if(typeof y.color=="string"){const bt=(E=a.colorMap((b=y.color)!=null?b:y.verbatimColor))!=null?E:"none";bt!==y.color&&(je.verbatimColor=(ee=y.verbatimColor)!=null?ee:y.color),je.color=bt}if(typeof y.backgroundColor=="string"){const bt=(ae=a.backgroundColorMap((re=y.backgroundColor)!=null?re:y.verbatimBackgroundColor))!=null?ae:"none";bt!==y.backgroundColor&&(je.verbatimBackgroundColor=(he=y.verbatimBackgroundColor)!=null?he:y.backgroundColor),je.backgroundColor=bt}typeof y.fontFamily=="string"&&(je.fontFamily=y.fontFamily),typeof y.series=="string"&&(je.fontSeries=y.series),typeof y.fontSeries=="string"&&(je.fontSeries=y.fontSeries.toLowerCase()),je.fontSeries&&(je.fontSeries=(pe={bold:"b",medium:"m",normal:"m"}[je.fontSeries])!=null?pe:je.fontSeries),typeof y.shape=="string"&&(je.fontShape=y.shape),typeof y.fontShape=="string"&&(je.fontShape=y.fontShape.toLowerCase()),je.fontShape&&(je.fontShape=(ge={italic:"it",up:"n",upright:"n",normal:"n"}[je.fontShape])!=null?ge:je.fontShape),y.variant&&(je.variant=y.variant.toLowerCase()),y.variantStyle&&(je.variantStyle=y.variantStyle.toLowerCase());const ct=(we=y.size)!=null?we:y.fontSize;return typeof ct=="number"?je.fontSize=Math.max(1,Math.min(10,ct)):typeof ct=="string"&&(je.fontSize=(Oe={size1:1,size2:2,size3:3,size4:4,size5:5,size6:6,size7:7,size8:8,size9:9,size10:10}[ct.toLowerCase()])!=null?Oe:{tiny:1,scriptsize:2,footnotesize:3,small:4,normal:5,normalsize:5,large:6,Large:7,LARGE:8,huge:9,Huge:10}[ct]),je}function Pf(a){let[y,b]=Wa(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 ae=a.at(y);if(!ae)return y;const he=b==="forward"?1:-1;if(ae.mode==="text"){for(;ae&&!(ae.mode!=="text"||!de.test(ae.value));)y+=he,ae=a.at(y);return b==="backward"?y-1:y}if(ae.mode==="latex"){if(/[a-zA-Z\*]/.test(ae.value))if(b==="backward")for(;ae&&ae.mode==="latex"&&ae.value!=="\\"&&/[a-zA-Z]/.test(ae.value);)y+=he,ae=a.at(y);else for(;ae&&ae.mode==="latex"&&/[a-zA-Z\*]/.test(ae.value);)y+=he,ae=a.at(y);else if(ae.value==="{"){if(b==="forward"){for(;ae&&ae.mode==="latex"&&ae.value!=="}";)y+=he,ae=a.at(y);return y}return y-1}else if(ae.value==="}"){if(b==="backward"){for(;ae&&ae.mode==="latex"&&ae.value!=="{";)y+=he,ae=a.at(y);return y-1}return y}return y-1}if(ae.mode==="math"){if(ae.isDigit()){for(;(E=a.at(y+he))!=null&&E.isDigit();)y+=he;return b==="backward"?y-1:y}if(ae.style.variant||ae.style.variantStyle){let pe=(ee=a.at(y))==null?void 0:ee.style;for(;pe&&pe.variant===ae.style.variant&&pe.variantStyle===ae.style.variantStyle;)pe=(re=a.at(y+he))==null?void 0:re.style,y+=he;return b==="backward"?y-1:y}return y}return y}Oo({selectGroup:a=>{const y=Pf(a);return y||a.announce("plonk"),y},selectAll:a=>a.setSelection(0,a.lastOffset),extendSelectionForward:a=>Ks(a,"forward",{extend:!0}),extendSelectionBackward:a=>Ks(a,"backward",{extend:!0}),extendToNextWord:a=>pc(a,"forward",{extend:!0}),extendToPreviousWord:a=>pc(a,"backward",{extend:!0}),extendSelectionUpward:a=>Ks(a,"upward",{extend:!0}),extendSelectionDownward:a=>Ks(a,"downward",{extend:!0}),extendToNextBoundary:a=>pc(a,"forward",{extend:!0}),extendToPreviousBoundary:a=>pc(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 wu=null,Ed=0,Wh=class es{static start(y,b,E,ee){var re;es.element=y,(re=es.controller)==null||re.abort(),es.controller=new AbortController;const ae={signal:es.controller.signal};"PointerEvent"in window?(y.addEventListener("pointermove",E,ae),y.addEventListener("pointerup",ee,ae),y.addEventListener("pointercancel",ee,ae),Of(b)&&(es.pointerId=b.pointerId,y.setPointerCapture(b.pointerId))):(window.addEventListener("mousemove",E,ae),window.addEventListener("blur",ee,ae),window.addEventListener("mouseup",ee,ae))}static stop(){var y;(y=es.controller)==null||y.abort(),es.controller=void 0,typeof es.pointerId=="number"&&(es.element.releasePointerCapture(es.pointerId),es.pointerId=void 0)}};function Of(a){return a!==null&&globalThis.PointerEvent!==void 0&&a instanceof PointerEvent}function V0(a,y){var b;if(y.buttons>1)return;a.atomBoundsCache=new Map;const E=a;let ee,re=!1,ae=!1,he="none",pe=!1,ge=!1;const we=y.clientX,Oe=y.clientY,je=Date.now(),ct=E.field,bt=setInterval(()=>{pe?ct.scroll({top:0,left:ct.scrollLeft-16}):ge&&ct.scroll({top:0,left:ct.scrollLeft+16})},32);function un(){Wh.stop(),re=!1,clearInterval(bt),a.element.classList.remove("tracking"),y&&y.preventDefault()}function Kn(An){if(!E.hasFocus()){un();return}const Gn=An.clientX,_n=An.clientY,Br=Of(An)&&An.pointerType==="touch"?20:5;if(Date.now()Kr.right,pe=Gn=0&&Ci>=0&&(E.model.extendSelectionTo(Nr,Ci),fa(a)),ae&&Pf(E.model)}wu&&Math.abs(wu.x-we)<5&&Math.abs(wu.y-Oe)<5&&Date.now()=sn.left&&we<=sn.right&&Oe>=sn.top&&Oe<=sn.bottom){if(a.flushInlineShortcutBuffer(),a.adoptStyle="left",ee=kd(a,we,Oe,{bias:0}),ee>=0){if(a.element.classList.add("tracking"),y.shiftKey){const An=a.model.selectionIsCollapsed;a.model.extendSelectionTo(a.model.anchor,ee),v0(a.model)||An?he="all":he="selection"}else a.model.at(ee).type==="placeholder"?(a.model.setSelection(ee-1,ee),he="selection"):((b=a.model.at(ee).rightSibling)==null?void 0:b.type)==="placeholder"?(a.model.setSelection(ee,ee+1),he="selection"):(a.model.position=ee,v0(a.model)?he="all":he="selection");a.defaultStyle={},y.detail===3||Ed>2?(un(),(y.detail===3||Ed===3)&&(a.model.selection={ranges:[[0,a.model.lastOffset]]},he="all")):re||(re=!0,Wh.start(ct,y,Kn,un),(y.detail===2||Ed===2)&&(ae=!0,Pf(a.model),he="all"))}a.hasFocus()||(he="none",a.focus({preventScroll:!0}))}else wu=null;a.stopCoalescingUndo(),he!=="none"&&(a.model.selectionIsCollapsed&&(he="all"),fa(a)),y.preventDefault()}function Jg(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 $0(a,y,b,E,ee){if(!b.id)return[1/0,null];if(y.has(b.id))return y.get(b.id);const re=Tl(a,b);if(!re)return[1/0,null];let ae=[1/0,null];if(b.hasChildren&&!b.captureSelection&&E>=re.left&&E<=re.right)for(const he of b.children){const pe=$0(a,y,he,E,ee);pe[0]<=ae[0]&&(ae=pe)}return ae[1]||(ae=[Jg(E,ee,re),b]),y.set(b.id,ae),ae}function ev(a,y,b){const[,E]=$0(a,new Map,a.model.root,y,b);return E}function kd(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(y0?(ge.push(we),we=[bt]):we.push(bt);we.length>0&&ge.push(we);let Oe=Number(pe.parentBranch[0]),je=Number(pe.parentBranch[1]);const ct=pe.parent.maxColumns;for(;pe.parent.colCount-je=ct&&(je=0,pe.parent.addRowAfter(Oe),Oe++),pe.parent.setCell(Oe,je,ge[bt])}else pe.parent.addChildrenAfter(ae.filter(ge=>ge.type!=="first"),pe);return he.position=he.offsetOf(ae[ae.length-1]),he.contentDidChange({inputType:"insertFromPaste"}),fa(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 ae=window.MathfieldElement.computeEngine.box(re);ae&&!ae.has("Error")&&(b=ae.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]=Rs(b),E==="auto"&&re&&(E="latex"),a.stopCoalescingUndo(),a.stopRecording(),this.insert(a.model,b,{format:E})&&(a.startRecording(),a.snapshot("paste"),fa(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:ae}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const he=a.silenceNotifications;a.silenceNotifications=!0;const pe={"?":"\\placeholder{}","@":"\\placeholder{}"};pe[0]=b.insertionMode==="replaceAll"?"":a.getValue(a.selection,"latex-unstyled"),b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(Wa(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 ge=-1;pe[0]?pe["@"]=pe[0]:typeof y=="string"&&/(^|[^\\])#@/.test(y)&&(ge=rv(a),ge>=0&&(pe["@"]=a.getValue(ge,a.position,"latex"))),pe[0]||(pe[0]=pe["?"]);let we=!1;const Oe=Gn=>(we=!0,pe[Gn]);let[je,ct]=j0(a,y,Oe,b);if(!ct)return!1;const bt=ct.length===1&&ct[0].type==="genfrac";bt&&ge>=0&&typeof a.mathfield.options.isImplicitFunction=="function"&&a.mathfield.options.isImplicitFunction(a.at(a.position).command)?(pe["@"]=pe["?"],we=!1,[je,ct]=j0(a,y,Oe,b)):ge>=0&&a.deleteAtoms([ge,a.position]);const{parent:un}=a.at(a.position),Kn=un.hasEmptyBranch("body");if(bt&&je!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&un instanceof Li&&un.leftDelim==="("&&Kn){const Gn=un.parent,_n=un.parentBranch;Gn.removeChild(un),Gn.setChildren(ct,_n)}const sn=a.at(a.position);sn.parent.addChildrenAfter(ct,sn),je==="latex"&&typeof y=="string"&&(un==null?void 0:un.type)==="root"&&Kn&&!we&&(un.verbatimLatex=y),a.silenceNotifications=he;const An=ct[ct.length-1];if(b.selectionMode==="placeholder"){const Gn=ct.flatMap(_n=>[_n,..._n.children]).find(_n=>_n.type==="placeholder");if(Gn){const _n=a.offsetOf(Gn);a.setSelection(_n-1,_n),a.announce("move")}else An&&(a.position=a.offsetOf(An))}else b.selectionMode==="before"||(b.selectionMode==="after"?An&&(a.position=a.offsetOf(An)):b.selectionMode==="item"&&a.setSelection(a.anchor,a.offsetOf(An)));return a.contentDidChange({data:re,inputType:"insertText"}),a.silenceNotifications=ae,!0}};function j0(a,y,b,E){var ee;let re,ae=[];if(typeof y!="string"||E.format==="math-json"){const he=window.MathfieldElement.computeEngine;if(!he)return["math-json",[]];[re,y]=["latex",he.box(y).latex],ae=Va(y,{context:a.mathfield.context})}else typeof y=="string"&&E.format==="ascii-math"?([re,y]=cu(y,{format:"ascii-math",inlineShortcuts:a.mathfield.options.inlineShortcuts}),ae=Va(y,{context:a.mathfield.context}),re!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Zh(ae)):(E.format==="auto"||(ee=E.format)!=null&&ee.startsWith("latex"))&&(E.format==="auto"&&([re,y]=cu(y,{format:"auto",inlineShortcuts:a.mathfield.options.inlineShortcuts})),E.format==="latex"&&([,y]=Rs(y)),ae=Va(y,{context:a.mathfield.context,args:b}),E.format!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Zh(ae));return Nl(ae,E.style),[re!=null?re:"latex",ae]}function nv(a){if(!a||(console.assert(a[0].type==="first"),a.length>1))return null;const y=a[0];return y instanceof Li&&y.leftDelim==="("&&y.rightDelim===")"?y.removeBranch("body"):null}function Zh(a){if(a){for(let y=0;a[y];y++){const b=a[y];if(b instanceof Li&&b.leftDelim==="("){let E=0,ee=0,re=0;for(let ae=0;b.body[ae];ae++)b.body[ae].type==="genfrac"&&(E++,ee=ae),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)){Zh(y.branch(b));const E=nv(y.branch(b));E&&y.setChildren(E,b)}if(y instanceof ii)for(const b of y.cells)Zh(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||G0(y));)y=y.leftSibling;else{const ee=[];for(;!y.isFirstSibling&&(G0(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 G0(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 ni{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"),fa(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(Wa(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(Nl(re,b.style),!re)return!1;const ae=a.at(a.position),he=ae.parent.addChildrenAfter(re,ae);return a.silenceNotifications=ee,b.selectionMode==="before"||(b.selectionMode==="item"?a.setSelection(a.anchor,a.offsetOf(he)):he&&(a.position=a.offsetOf(he))),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 "),Va(a,{context:y,parseMode:"text"})}new iv;function Ws(a){return{value:a.model.getValue(),selectionIsCollapsed:a.model.selectionIsCollapsed,canUndo:a.canUndo(),canRedo:a.canRedo(),style:a.selectionStyle,mode:a.model.mode}}var Ji=4,Mo=20,Ia=2*(Mo+Ji),Vh=(a,y)=>` `,U0=(a,y)=>` `,$h=(a,y,b)=>` `,ov=` ${$h(2*(Ji+Ia),2*Ji+3*Ia,0)} ${$h(2*(Ji+Ia),2*Ji+Ia,180)} ${$h(2*Ji+3*Ia,2*(Ji+Ia),-90)} ${$h(2*Ji+Ia,2*(Ji+Ia),90)} ${Vh(2*Ji+Ia,Ji)} ${U0(2*Ji+2*Ia,Ji)} ${Vh(2*Ji+3*Ia,Ji)} ${Vh(Ji,2*Ji+Ia)} ${U0(Ji,2*Ji+2*Ia)} ${Vh(Ji,2*Ji+3*Ia)} `,sv=a=>` `,lv=a=>` `,X0=a=>` `,uv=a=>` `,cv=a=>` `,dv=a=>` `,hv=a=>` `,fv=a=>` `,Rf={matrix:sv,pmatrix:lv,bmatrix:uv,Bmatrix:X0,vmatrix:cv,Vmatrix:dv},Nf={cases:hv,rcases:fv,Bmatrix:X0};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(bt=>{(!ee||bt.length>ee)&&(ee=bt.length)});let re=document.getElementById("mathlive-environment-popover");re||(re=Mh("mathlive-environment-popover"),Po("environment-popover"),Po("core"),re.setAttribute("aria-hidden","true"));let ae;const he=re.querySelector(".MLEP__environment-controls");he?ae=he:(ae=document.createElement("div"),re.innerHTML="",re.appendChild(ae)),ae.className="MLEP__environment-controls",ae.style.display="flex",ae.style.width="100%",ae.style.height="100%",ae.style.boxSizing="border-box",ae.innerHTML=ov;let pe=[],ge="";const we=a.model.parentEnvironment.environmentName;if(uo(we)){const bt=gv(we);ge=Rf[bt]("active");const un=Rf,{[bt]:Kn}=un,sn=lt(un,[Fe(bt)]);pe=Object.values(sn).map(An=>An("inactive"))}else if(co(we)){const bt=vv(we);ge=Nf[bt]("active");const un=Nf,{[bt]:Kn}=un,sn=lt(un,[Fe(bt)]);pe=Object.values(sn).map(An=>An("inactive"))}else Ca(we)&&(ge=Rf.matrix("active"),pe=Object.values(Nf).map(bt=>bt("inactive")));const Oe=document.createElement("div");Oe.className="MLEP__environment-delimiter-controls",Oe.style.display="flex",Oe.style.flexDirection="column",Oe.innerHTML=`
    ${ge} ${pe.join("")}
    `,ge&&ae.appendChild(Oe),ae.querySelectorAll("[data-command]").forEach(bt=>{const un=bt.dataset.command;let Kn=un;try{Kn=JSON.parse(un)}catch(sn){}bt.addEventListener("mousedown",sn=>sn.preventDefault()),Kn&&bt.addEventListener("click",()=>a.executeCommand(Kn))});const ct=(b=a.field)==null?void 0:b.getBoundingClientRect();ct&&(re.style.top=`${window.scrollY+(ct.top-re.clientHeight-15)}px`,re.style.left=`${ct.left+20}px`,re.classList.add("is-visible"))}function Ff(){const a=document.getElementById("mathlive-environment-popover");a==null||a.classList.remove("is-visible")}function mv(){document.getElementById("mathlive-environment-popover")&&(bf("mathlive-environment-popover"),x("environment-popover"),x("core"))}function jh(a){if(!a.hasFocus())return;let y=!1;if(a.model.mode==="math"){const b=a.model.parentEnvironment;if(b!=null&&b.array&&sa(b.environmentName)){const E=a.options.environmentPopoverPolicy;y=E==="auto"||E==="on"}}y?pv(a):Ff()}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 q0(a,y,b){return y==="left"||y==="leading"&&b==="ltr"||y==="trailing"&&b==="rtl"?a.left:a.right}function zf(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 ae=a.getBoundingClientRect(),he=Number.isFinite(y.maxHeight)?Math.min(y.maxHeight,window.innerHeight):window.innerHeight;let pe=Math.min(he,(E=y.height)!=null?E:ae.height),ge=zf(y.location.y,pe,y.verticalPos,re);ge+pe>window.innerHeight-8&&(y.alternateLocation?(ge=zf(y.alternateLocation.y,pe,y.verticalPos,re),ge+pe>window.innerHeight-8&&(ge=void 0)):ge=void 0),Number.isFinite(ge)||(ge=Math.max(8,window.innerHeight-8-pe),8+pe>window.innerHeight-8&&(a.style.bottom="8px")),pe=Math.min(ge+pe,window.innerHeight-8)-ge;const we=Number.isFinite(y.maxWidth)?Math.min(y.maxWidth,window.innerWidth):window.innerWidth;let Oe=Math.min(we,(ee=y.width)!=null?ee:ae.width),je=zf(y.location.x,Oe,y.horizontalPos,re);je+Oe>window.innerWidth-8&&(y.alternateLocation?(je=yv(y.alternateLocation.x,Oe,y.verticalPos,re),je+Oe>window.innerWidth-8&&(je=void 0)):je=void 0),Number.isFinite(je)||(je=Math.max(8,window.innerWidth-8-Oe),8+Oe>window.innerWidth-8&&(a.style.right="8px")),Oe=Math.min(je+Oe,window.innerWidth-8)-je,re==="rtl"?a.style.right=`${Math.ceil(window.innerWidth-je-Oe).toString()}px`:a.style.left=`${Math.ceil(je).toString()}px`,a.style.top=`${Math.ceil(ge).toString()}px`,pe!==ae.height&&(a.style.height=`${Math.ceil(pe).toString()}px`),Oe!==ae.width&&(a.style.width=`${Math.ceil(Oe).toString()}px`)}function xv(a,y){return Math.hypot(y.x-a.x,y.y-a.y)}function mc(a){return"submenu"in a}function Zs(a){return"type"in a&&a.type==="command"||"onMenuSelect"in a||"id"in a}function Hf(a){return"type"in a&&a.type==="divider"}function Kf(a){return"type"in a&&a.type==="heading"}var Q0={};function Wf(a){let y=Q0[a];if(!y){let b;switch(a){case"checkmark":b=``;break;case"trailing-chevron":b='';break;case"mixedmark":b=''}if(b){const E=document.createElement("template");E.innerHTML=b,Q0[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 J0=80,ep=class{constructor(a,y){this._element=null;var b;this.parentMenu=y,this._declaration=a,mc(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=Zs(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(Hf(ee)){this.enabled=!1,this.checked=!1;return}Kf(ee)&&(this.enabled=!1,this.checked=!1,this.visible=!0),Zs(ee)&&(this.checked=Zs(ee)&&((y=gc(ee.checked,a))!=null?y:!1)),(Zs(ee)||mc(ee))&&(this.enabled=(b=gc(ee.enabled,a))!=null?b:!0,this.visible=(E=gc(ee.visible,a))!=null?E:!0,this.visible&&this.enabled&&this.submenu&&(this.submenu.updateState(a),this.submenu.visible||(this.visible=!1))),(Zs(ee)||Kf(ee)||mc(ee))&&(this.label=gc(ee.label,a),this.tooltip=gc(ee.tooltip,a),this.ariaLabel=gc(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(Wf("checkmark"))):this.checked==="mixed"?(a.setAttribute("aria-checked","mixed"),a.append(Wf("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),Zs(this._declaration)&&this._declaration.keyboardShortcut){const b=document.createElement("kbd");b.innerHTML=vf(this._declaration.keyboardShortcut),a.append(b)}this.type==="submenu"&&a.append(Wf("trailing-chevron"))}get element(){if(this._element)return this._element;if(Hf(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,(Zs(this._declaration)||Kf(this._declaration)||mc(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(!Zs(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()},J0)},J0)}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:q0(b,"trailing",E),y:b.top-4},alternateLocation:{x:q0(b,"leading",E),y:b.top-4}})}movingTowardSubmenu(a){if(!this.element||this.type!=="submenu")return!1;const y=this.rootMenu.lastMoveEvent;if(!y)return!1;const b=a.timeStamp-y.timeStamp;if(b>500)return!1;const E=a.clientX-y.clientX;if(wv(E,y.clientY-a.clientY,b)<=.2)return!1;let re="right";if(this.submenu.element){const ae=this.submenu.element.getBoundingClientRect(),he=this.element.getBoundingClientRect();ae.left0:E<0}};function wv(a,y,b){return Math.hypot(a,y)/b}function gc(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 Mc{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(ge=>ge.updateState(y));const re=this.hasCheck;this.hasCheck=this._menuItems.some(ge=>ge.visible&&ge.hasCheck),this.hasCheck!==re&&this._menuItems.forEach(ge=>ge.updateState(y));let ae,he=0;for(const ge of this._menuItems)ge.type==="heading"?(ae&&he===0&&(ae.visible=!1),ae=ge,he=0):ge.type==="divider"&&ae?(ae.visible=he>0,ae=void 0,he=0):ae&&ge.visible&&(he+=1);ae&&(ae.visible=he>0);let pe=!0;for(const ge of this._menuItems)ge.type==="divider"?(ge.visible=!pe,pe=!0):ge.visible&&(pe=!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 ae=this.activeMenuItem;ae.active=!1,(b=ae.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 ae=this._menuItems[ee];if(!ae)break;if(ae.visible&&ae.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 Mc._collator||(Mc._collator=new Intl.Collator(void 0,{usage:"search",sensitivity:"base"})),Mc._collator}findMenuItem(y){var b;this.updateIfDirty();const E=this._menuItems.filter(he=>he.type!=="divider"&&he.visible&&he.enabled);if(E.length===0)return null;const ee=Math.max(...E.map(he=>he.label.length))-y.length;if(ee<0)return null;let re=null,ae=0;for(;aeMc.collator.compare(y,he.label.substring(ae,y.length))===0))!=null?b:null,ae++;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 ae=y!==null;((b=this.activeMenuItem)==null?void 0:b.type)==="submenu"&&((E=this.activeMenuItem.element)==null||E.setAttribute("aria-expanded",ae.toString())),(re=(ee=this.activeMenuItem)==null?void 0:ee.element)==null||re.classList.toggle("is-submenu-open",ae),this.isSubmenuOpen=ae}},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){Hm(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=fu(y)),y.stopImmediatePropagation()}handleKeydownEvent(y){var b,E,ee;if(y.key==="Tab"||y.key==="Escape"){this.hide();return}this.isDynamic&&(this.modifiers=fu(y));let re=!0;const ae=this.activeSubmenu,he=ae.activeMenuItem;switch(y.key){case" ":case"Space":case"Return":case"Enter":he==null||he.select(fu(y));break;case"ArrowRight":if((he==null?void 0:he.type)==="submenu")he.select(fu(y)),this.activeSubmenu.activeMenuItem=this.activeSubmenu.firstMenuItem;else if(!he)ae.activeMenuItem=ae.firstMenuItem;else{const pe=(b=ae.getMenuItemColumn(he))!=null?b:-1;if(pe>=0&&pe<((E=ae.columnCount)!=null?E:1)-1){const ge=ae.nextMenuItem(1);ge&&(ae.activeMenuItem=ge)}}break;case"ArrowLeft":if(ae===this.rootMenu)he||(ae.activeMenuItem=ae.firstMenuItem);else if((he&&(ee=ae.getMenuItemColumn(he))!=null?ee:-1)<=0||!he){ae.hide();const ge=ae.parentMenu.activeMenuItem;if(ge){const{element:we}=ge;we==null||we.focus(),we==null||we.classList.remove("is-submenu-open")}}else{const ge=ae.nextMenuItem(-1);ge&&(ae.activeMenuItem=ge)}break;case"ArrowDown":ae.activeMenuItem=ae.nextMenuItem(ae.columnCount);break;case"ArrowUp":ae.activeMenuItem=ae.nextMenuItem(-ae.columnCount);break;case"Home":case"PageUp":ae.activeMenuItem=ae.firstMenuItem;break;case"End":case"PageDown":ae.activeMenuItem=ae.lastMenuItem;break;case"Backspace":if(this.typingBuffer&&(this.typingBuffer=this.typingBuffer.slice(0,-1),this.typingBuffer)){clearTimeout(this.typingBufferResetTimer);const pe=ae.findMenuItem(this.typingBuffer);pe&&(ae.activeMenuItem=pe),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}break;default:if(wh(y)){isFinite(this.typingBufferResetTimer)&&clearTimeout(this.typingBufferResetTimer),this.typingBuffer+=y.key;const pe=ae.findMenuItem(this.typingBuffer);pe&&(ae.activeMenuItem=pe),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 zs.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),zs.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),zs.state==="open"&&zs.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(Ee(Ce({},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,zs.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 Sv=np;function rp(a){return Hf(a)?!1:typeof a.label=="function"||typeof a.ariaLabel=="function"||typeof a.tooltip=="function"||(Zs(a)||mc(a))&&(typeof a.enabled=="function"||typeof a.visible=="function")||Zs(a)&&typeof a.checked=="function"?!0:mc(a)?a.submenu.some(rp):!1}var Gh=class{};Gh.DELAY=300,Gh.MAX_DISTANCE=10;function Cv(a){return new Promise((y,b)=>{const E=xh(a);E||y(!1);let ee=E;const re=setTimeout(()=>{ae.abort(),y(xv(ee,E){if(ge.type==="pointerup"||ge.type==="pointercancel")clearTimeout(re),ae.abort(),y(!1);else if(ge.type==="pointermove"){const we=xh(ge);we&&(ee=we)}},{passive:!0,signal:he})})}function ip(a,y,b){return Hl(this,null,function*(){if(a.type==="contextmenu"){const E=a;if(b.show({target:y,location:xh(E),modifiers:fu(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:fu(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=xh(a);if(yield Cv(a))return b.state!=="closed"?!1:(b.show({target:y,location:ee}),!0)}return!1})}var ap={acute:714,grave:715,dot:729,ddot:168,mathring:730,tilde:126,bar:713,breve:728,check:711,hat:94,vec:8407};ot(Object.keys(ap),"{body:auto}",{createAtom:a=>new z(Ee(Ce({},a),{body:Ue(a.args[0]),accentChar:ap[a.command.slice(1)]}))}),ot(["widehat","widecheck","widetilde"],"{body:auto}",{createAtom:a=>{const y=zt(Ue(a.args[0]));return new z(Ee(Ce({},a),{body:Ue(a.args[0]),svgAccent:a.command.slice(1)+(y.length>5?"4":["1","1","2","2","3","3"][y.length])}))}}),ot(["overarc","overparen","wideparen"],"{body:auto}",{createAtom:a=>new z(Ee(Ce({},a),{body:Ue(a.args[0]),svgAccent:"overarc"}))}),ot(["underarc","underparen"],"{body:auto}",{createAtom:a=>new qo(Ee(Ce({},a),{body:Ue(a.args[0]),svgBelow:"underarc"}))}),ot("utilde","{body:auto}",{createAtom:a=>{const y=Ue(a.args[0]),b=zt(y),E="widetilde"+(b.length>5?"4":["1","1","2","2","3","3"][b.length]);return new qo(Ee(Ce({},a),{body:y,svgBelow:E,boxType:Al(y)}))}}),ot("^","{:string}",{createAtom:a=>{var y;return new wn(Ee(Ce({},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:"^"}))}}),ot("`","{:string}",{createAtom:a=>{var y;return new wn(Ee(Ce({},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:"`"}))}}),ot("'","{:string}",{createAtom:a=>{var y;return new wn(Ee(Ce({},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:"'"}))}}),ot('"',"{:string}",{createAtom:a=>{var y,b;return new wn(Ee(Ce({},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]:'"'}))}}),ot(".","{:string}",{createAtom:a=>{var y,b;return new wn(Ee(Ce({},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]:"."}))}}),ot("=","{:string}",{createAtom:a=>{var y,b;return new wn(Ee(Ce({},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]:"="}))}}),ot("~","{:string}",{createAtom:a=>{var y;return new wn(Ee(Ce({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"}))}}),ot("c","{:string}",{createAtom:a=>{var y;return new wn(Ee(Ce({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={c:"\xE7",C:"\xC7"}[a.args[0]])!=null?y:""}))}}),ot("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 ae=E[1].split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const he of ae){const pe=he.match(/\s*(\S+)\s+(\S+)\s+(.*)/);if(pe)ee.strokeWidth=pe[1],ee.strokeStyle=pe[2],ee.strokeColor=pe[3];else{const ge=he.match(/\s*([a-z]*)\s*=\s*"(.*)"/);ge&&(ge[1]==="mathbackground"?ee.backgroundcolor=ge[2]:ge[1]==="mathcolor"?ee.strokeColor=ge[2]:ge[1]==="padding"?ee.padding=ge[2]:ge[1]==="shadow"&&(ee.shadow=ge[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(ae=>ae.length>0).forEach(ae=>{re[ae.toLowerCase()]=!0}),new ud(a.command,Ue(E[2]),re,ee)}}),ot("cancel","{body:auto}",{createAtom:a=>{var y;return new ud(a.command,Ue(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:{}})}}),ot("bcancel","{body:auto}",{createAtom:a=>{var y;return new ud(a.command,Ue(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:{}})}}),ot("xcancel","{body:auto}",{createAtom:a=>{var y;return new ud(a.command,Ue(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:{}})}}),ot(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overlinesegment","overgroup"],"{:auto}",{createAtom:a=>{var y;return new qo(Ee(Ce({},a),{body:Ue((y=a.args)==null?void 0:y[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgAbove:a.command.slice(1)}))}}),ot("overbrace","{:auto}",{createAtom:a=>new qo(Ee(Ce({},a),{body:Ue(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgAbove:a.command.slice(1)}))}),ot(["underrightarrow","underleftarrow","underleftrightarrow","underlinesegment","undergroup"],"{:auto}",{createAtom:a=>new qo(Ee(Ce({},a),{body:Ue(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgBelow:a.command.slice(1)}))}),ot(["underbrace"],"{:auto}",{createAtom:a=>new qo(Ee(Ce({},a),{body:Ue(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgBelow:a.command.slice(1)}))}),ot(["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 qo(Ee(Ce({},a),{svgBody:a.command.slice(1),above:((b=Ue((y=a.args)==null?void 0:y[1]))==null?void 0:b.length)===0?void 0:Ue((E=a.args)==null?void 0:E[1]),below:(re=Ue((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)}`}),ot(["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 hu(a.command.slice(1),Ee(Ce({},a),{limits:"adjacent",isFunction:!0,variant:"main",variantStyle:"up"}))}),ot(["liminf","limsup"],"",{ifMode:"math",createAtom:a=>new hu({"\\liminf":"lim inf","\\limsup":"lim sup"}[a.command],Ee(Ce({},a),{limits:"over-under",variant:"main"}))}),ot(["lim","mod"],"",{ifMode:"math",createAtom:a=>new hu(a.command.slice(1),Ee(Ce({},a),{limits:"over-under",variant:"main"}))}),ot(["det","max","min"],"",{ifMode:"math",isFunction:!0,createAtom:a=>new hu(a.command.slice(1),Ee(Ce({},a),{limits:"over-under",isFunction:!0,variant:"main"}))}),ot(["ang"],"{:math}",{ifMode:"math",createAtom:a=>new wn(Ee(Ce({},a),{body:Ue(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 Zn("\xB0",{style:Ee(Ce({},a.style),{variant:"normal",variantStyle:"up"})});return new Zn([b,ee],{type:"inner",isSelected:a.isSelected,caret:E})}}),ot("sqrt","[index:auto]{radicand:expression}",{ifMode:"math",createAtom:a=>new o0(Ee(Ce({},a),{body:Ue(a.args[1]),index:a.args[0]?Ue(a.args[0]):void 0}))}),ot(["frac","dfrac","tfrac","cfrac","binom","dbinom","tbinom"],"{:expression}{:expression}",{ifMode:"math",createAtom:a=>{const y=Ce({},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 oc(E[0]?Ue(E[0]):[new Wr],E[1]?Ue(E[1]):[new Wr],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}`:Qi(a.command,b,E)}}),ot(["brace","brack"],"",{infix:!0,createAtom:a=>new oc(Ue(a.args[0]),Ue(a.args[1]),Ee(Ce({},a),{hasBarLine:!1,leftDelim:a.command==="\\brace"?"\\lbrace":"\\lbrack",rightDelim:a.command==="\\brace"?"\\rbrace":"\\rbrack"})),serialize:(a,y)=>ci([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),ot(["over","atop","choose"],"",{infix:!0,createAtom:a=>{let y,b;const E=a.args;return a.command==="\\choose"&&(y="(",b=")"),new oc(Ue(E[0]),Ue(E[1]),Ee(Ce({},a),{hasBarLine:a.command==="\\over",leftDelim:y,rightDelim:b}))},serialize:(a,y)=>ci([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),ot(["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 oc(Ue(E[0]),Ue(E[1]),Ee(Ce({},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)}`}),ot("pdiff","{numerator}{denominator}",{ifMode:"math",createAtom:a=>new oc(Ue(a.args[0]),Ue(a.args[1]),Ee(Ce({},a),{hasBarLine:!0,numerPrefix:"\u2202",denomPrefix:"\u2202"}))}),ot(["sum","prod","bigcup","bigcap","coprod","bigvee","bigwedge","biguplus","bigotimes","bigoplus","bigodot","bigsqcup","intop"],"",{ifMode:"math",createAtom:a=>new hf({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)],Ee(Ce({},a),{limits:"auto",variant:"main"}))}),ot("smallint","",{ifMode:"math",createAtom:a=>new hu("\u222B",Ee(Ce({},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"};ot(Object.keys(op),"",{ifMode:"math",createAtom:a=>{const y=a.command,b=op[y.slice(1)];return new hf(b,Ee(Ce({},a),{limits:"adjacent",variant:{"\u22D2":"ams","\u22D3":"ams"}[b]}))}}),ot(["Re","Im"],"",{ifMode:"math",createAtom:a=>new hu({"\\Re":"\u211C","\\Im":"\u2111"}[a.command],Ee(Ce({},a),{limits:"adjacent",isFunction:!0,variant:"fraktur"}))}),ot("middle","{:delim}",{ifMode:"math",createAtom:a=>{var y;return new r0(Ee(Ce({},a),{delim:(y=a.args[0])!=null?y:"|",size:1}))}}),ot("the","{:value}",{createAtom:a=>new wn(Ee(Ce({},a),{captureSelection:!0,verbatimLatex:null})),render:(a,y)=>{var b;const E=new xi({parent:y},a.style);let ee="";a.isSelected&&(ee+=" ML__selected");const re=E.evaluate(a.args[0]);return new Zn(((b=Sa(re))!=null?b:"").split("").map(ae=>new Zn(ae,{type:"ord",classes:ee,mode:a.mode,isSelected:a.isSelected,style:Ce({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=Sa(a.args[0]))!=null?y:"\\relax"}`}}),ot("mathtip","{:auto}{:math}",{createAtom:a=>new ff(Ee(Ce({},a),{body:Ue(a.args[0]),tooltip:Ue(a.args[1]),content:"math"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${wn.serialize([a.tooltip],Ee(Ce({},y),{defaultMode:"math"}))}}`}),ot("texttip","{:auto}{:text}",{createAtom:a=>new ff(Ee(Ce({},a),{body:Ue(a.args[0]),tooltip:Ue(a.args[1]),content:"text"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${wn.serialize([a.tooltip],Ee(Ce({},y),{defaultMode:"text"}))}}`}),ot("error","{:math}",{createAtom:a=>new wn(Ee(Ce({},a),{body:Ue(a.args[0])})),serialize:(a,y)=>`\\error{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__error"})}),ot("ensuremath","{:math}",{createAtom:a=>new wn(Ee(Ce({},a),{body:Ue(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(Ee(Ce({},y),{defaultMode:"math"}))}}`}),ot("color","{:value}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimColor:(E=Sa(y[0]))!=null?E:void 0,color:b.toColor((ee=y[0])!=null?ee:{string:"red"})}}}),ot("textcolor","{:value}{content:auto*}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimColor:(E=Sa(y[0]))!=null?E:void 0,color:b.toColor((ee=y[0])!=null?ee:{string:"red"})}}}),ot("boxed","{content:math}",{createAtom:a=>new va(Ee(Ce({},a),{body:Ue(a.args[0]),framecolor:{string:"black"}}))}),ot("colorbox","{:value}{:text*}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimBackgroundColor:(E=Sa(y[0]))!=null?E:void 0,backgroundColor:b.toBackgroundColor((ee=y[0])!=null?ee:{string:"yellow"})}}}),ot("fcolorbox","{frame-color:value}{background-color:value}{content:text}",{applyMode:"text",createAtom:a=>{var y,b;return new va(Ee(Ce({},a),{body:Ue(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(Ee(Ce({},y),{defaultMode:"text"})):Qi(a.command,(b=Sa(a.framecolor))!=null?b:"",(E=Sa(a.backgroundcolor))!=null?E:"",a.bodyToLatex(Ee(Ce({},y),{defaultMode:"text"})))}}),ot("bbox","[:bbox]{body:auto}",{createAtom:a=>{var y;const b=a.args[0],E=Ue(a.args[1]);return b?new va(Ee(Ce({},a),{body:E,padding:b.padding,border:b.border,backgroundcolor:(y=b.backgroundcolor)!=null?y:void 0})):new va(Ee(Ce({},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=Sa(a.padding))!=null?b:""),a.border&&re.push(`border: ${a.border}`),a.backgroundcolor&&re.push((E=Sa(a.backgroundcolor))!=null?E:""),ee+=`[${re.join(",")}]`}return Qi(ee,a.bodyToLatex(y))}}),ot(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"{:rest}",{createAtom:a=>new wn(Ee(Ce({},a),{body:Ue(a.args[0])})),render:(a,y)=>{const b=new xi({parent:y,mathstyle:a.command.slice(1)},a.style),E=wn.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):`{${ci([a.command,a.bodyToLatex(y)])}}`}),ot(["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]})}),ot("fontseries","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontSeries:(b=y[0])!=null?b:"auto"}}}),ot("fontshape","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontShape:(b=y[0])!=null?b:"auto"}}}),ot("fontfamily","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontFamily:(b=y[0])!=null?b:"roman"}}}),ot("selectfont","",{ifMode:"text",applyStyle:()=>({})}),ot("bf","{:rest}",{applyStyle:()=>({fontSeries:"b",fontShape:"n",fontFamily:"roman"})}),ot(["boldsymbol","bm"],"{:math}",{applyMode:"math",createAtom:a=>new wn(Ee(Ce({},a),{body:Ue(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__boldsymbol"})}),ot("bold","{:math*}",{applyMode:"math",applyStyle:()=>({variantStyle:"bold"})}),ot("bfseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),ot("mdseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),ot("upshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),ot("slshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),ot("scshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),ot("textbf","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),ot("textmd","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),ot("textup","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),ot("textnormal","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n",fontSeries:"m"})}),ot("textsl","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),ot("textit","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"it"})}),ot("textsc","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),ot("textrm","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"roman"})}),ot("textsf","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"sans-serif"})}),ot("texttt","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"monospace"})}),ot("mathbf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"bold"})}),ot("mathit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"italic"})}),ot("mathnormal","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"italic"})}),ot("mathbfit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"bolditalic"})}),ot("mathrm","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"up"})}),ot("mathsf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"sans-serif",variantStyle:"up"})}),ot("mathtt","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"monospace",variantStyle:"up"})}),ot("it","{:rest}",{applyStyle:()=>({fontSeries:"m",fontShape:"it",fontFamily:"roman",variantStyle:"italic"})}),ot("rmfamily","",{applyStyle:()=>({fontFamily:"roman"})}),ot("sffamily","",{applyStyle:()=>({fontFamily:"sans-serif"})}),ot("ttfamily","",{applyStyle:()=>({fontFamily:"monospace"})}),ot(["Bbb","mathbb"],"{:math*}",{applyStyle:()=>({variant:"double-struck",variantStyle:"up"})}),ot(["frak","mathfrak"],"{:math*}",{applyStyle:()=>({variant:"fraktur",variantStyle:"up"})}),ot("mathcal","{:math*}",{applyStyle:()=>({variant:"calligraphic",variantStyle:"up"})}),ot("mathscr","{:math*}",{applyStyle:()=>({variant:"script",variantStyle:"up"})}),ot("mbox","{:text}",{ifMode:"math",createAtom:a=>new wn(Ee(Ce({},a),{type:"mord",body:Ue(a.args[0]),mode:"math"})),serialize:(a,y)=>Qi("\\mbox",a.bodyToLatex(Ee(Ce({},y),{defaultMode:"text"})))}),ot("text","{:text}",{ifMode:"math",applyMode:"text"}),ot(["class","htmlClass"],"{name:string}{content:auto}",{createAtom:a=>new wn(Ee(Ce({},a),{body:Ue(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:""})}}),ot(["cssId","htmlId"],"{id:string}{content:auto}",{createAtom:a=>new wn(Ee(Ce({},a),{body:Ue(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}}),ot("htmlData","{data:string}{content:auto}",{createAtom:a=>new wn(Ee(Ce({},a),{body:Ue(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}}),ot(["style","htmlStyle"],"{data:string}{content:auto}",{createAtom:a=>new wn(Ee(Ce({},a),{body:Ue(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}}),ot("em","{:rest}",{createAtom:a=>new wn(Ee(Ce({},a),{body:Ue(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"})}),ot("emph","{:auto}",{createAtom:a=>new wn(Ee(Ce({},a),{body:Ue(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}};ot(["bigl","Bigl","biggl","Biggl","bigr","Bigr","biggr","Biggr","bigm","Bigm","biggm","Biggm","big","Big","bigg","Bigg"],"{:delim}",{createAtom:a=>{var y;return new i0(Ee(Ce({},a),{delim:(y=a.args[0])!=null?y:".",size:sp[a.command].size,delimType:sp[a.command].mclass}))}}),ot(["hspace","hspace*"],"{width:value}",{createAtom:a=>{var y;return new hd(Ee(Ce({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),ot(["mkern","kern","mskip","hskip","mspace"],"{width:value}",{createAtom:a=>{var y;return new hd(Ee(Ce({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),ot("mathchoice","{:math}{:math}{:math}{:math}",{createAtom:a=>new wn(a),render:(a,y)=>{let b=0;const E=y.mathstyle.id;(E===su||E===Is)&&(b=1),(E===cl||E===io)&&(b=2),(E===Io||E===Ka)&&(b=3);const ee=Ue(a.args[b]);return wn.createBox(y,ee)},serialize:(a,y)=>`\\mathchoice{${wn.serialize(a.args[0],y)}}{${wn.serialize(a.args[1],y)}}{${wn.serialize(a.args[2],y)}}{${wn.serialize(a.args[3],y)}}`}),ot("mathop","{:auto}",{createAtom:a=>new wn(Ee(Ce({},a),{type:"mop",body:Ue(a.args[0]),limits:"over-under",isFunction:!0,captureSelection:!0})),render:(a,y)=>{var b;let E=wn.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 Zn(a.bind(y,E),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[Qi(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)),ci(b)}}),ot(["mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",{createAtom:a=>new wn(Ee(Ce({},a),{type:{"\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[a.command],body:Ue(a.args[0])}))}),ot(["operatorname","operatorname*"],"{operator:math}",{createAtom:a=>{const y=Ue(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 wn(Ee(Ce({},a),{type:"mop",body:y,isFunction:!0,limits:a.command==="\\operatorname"?"adjacent":"over-under"}))},render:(a,y)=>{var b;let E=wn.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 Zn(a.bind(y,E),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[Qi(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)),ci(b)}}),ot(["char","unicode"],"{charcode:value}",{createAtom:a=>new wn(Ee(Ce({},a),{type:a.mode==="text"?"text":"mord"})),serialize:a=>{var y;return`${a.command}${Sa((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)}}),ot("rule","[raise:value]{width:value}{thickness:value}",{createAtom:a=>new wn(a),render:(a,y)=>{var b,E,ee;const re=new xi({parent:y,mathstyle:"textstyle"},a.style),ae=re.toEm((b=a.args[0])!=null?b:{dimension:0}),he=re.toEm((E=a.args[1])!=null?E:{dimension:10}),pe=re.toEm((ee=a.args[2])!=null?ee:{dimension:10}),ge=new Zn(null,{classes:"rule",type:"ord"});return ge.width=he,ge.height=pe+ae,ge.depth=-ae,ge.setStyle("border-right-width",he,"em"),ge.setStyle("border-top-width",pe,"em"),ge.setStyle("border-color",a.style.color),ge.setStyle("vertical-align",ae,"em"),a.isSelected&&ge.setStyle("opacity","50%"),a.bind(re,ge),a.caret&&(ge.caret=a.caret),ge.wrap(y)},serialize:a=>`\\rule${a.args[0]?`[${Sa(a.args[0])}]`:""}{${Sa(a.args[1])}}{${Sa(a.args[2])}}`}),ot(["overline","underline"],"{:auto}",{createAtom:a=>new wn(Ee(Ce({},a),{body:Ue(a.args[0])})),render:(a,y)=>{const b=a.command.substring(1),E=new xi({parent:y,mathstyle:"cramp"},a.style),ee=wn.createBox(E,a.body);if(!ee)return null;const re=E.metrics.defaultRuleThickness/E.scalingFactor,ae=new Zn(null,{classes:b+"-line"});ae.height=re,ae.maxFontSize=re*1.125*E.scalingFactor;let he;return b==="overline"?he=new Vi({shift:0,children:[{box:ee},3*re,{box:ae},re]}):he=new Vi({top:ee.height,children:[re,{box:ae},3*re,{box:ee}]}),a.caret&&(he.caret=a.caret),new Zn(he,{classes:b,type:"ignore"})}}),ot("overset","{:auto}{base:auto}",{createAtom:a=>{const y=Ue(a.args[1]);return new qo(Ee(Ce({},a),{above:Ue(a.args[0]),body:y,skipBoundary:!1,boxType:Al(y)}))},serialize:(a,y)=>Qi(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),ot("underset","{:auto}{base:auto}",{createAtom:a=>{const y=Ue(a.args[1]);return new qo(Ee(Ce({},a),{below:Ue(a.args[0]),body:y,skipBoundary:!1,boxType:Al(y)}))},serialize:(a,y)=>Qi(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),ot("overunderset","{above:auto}{below:auto}{base:auto}",{createAtom:a=>{const y=Ue(a.args[2]);return new qo(Ee(Ce({},a),{above:Ue(a.args[0]),below:Ue(a.args[1]),body:y,skipBoundary:!1,boxType:Al(y)}))},serialize:(a,y)=>Qi(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),ot(["stackrel","stackbin"],"[below:auto]{above:auto}{base:auto}",{createAtom:a=>new qo(Ee(Ce({},a),{body:Ue(a.args[2]),above:Ue(a.args[1]),below:Ue(a.args[0]),skipBoundary:!1,boxType:a.command==="\\stackrel"?"rel":"bin"})),serialize:(a,y)=>Qi(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),ot("smash","[:string]{:auto}",{createAtom:a=>{var y,b,E,ee;return new dd(Ee(Ce({},a),{body:Ue(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}))}}),ot(["vphantom"],"{:auto}",{createAtom:a=>new dd(Ee(Ce({},a),{body:Ue(a.args[0]),isInvisible:!0,smashWidth:!0}))}),ot(["hphantom"],"{:auto}",{createAtom:a=>new dd(Ee(Ce({},a),{body:Ue(a.args[0]),isInvisible:!0,smashHeight:!0,smashDepth:!0}))}),ot(["phantom"],"{:auto}",{createAtom:a=>new dd(Ee(Ce({},a),{body:Ue(a.args[0]),isInvisible:!0}))}),ot("not","{:math}",{createAtom:a=>{const y=Ue(a.args[0]);return y.length===0?new wn(Ee(Ce({},a),{type:"mrel",value:"\uE020"})):new wn(Ee(Ce({},a),{body:[new du(Ee(Ce({},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{${wn.serialize(b.group,y)}}`:`\\not${wn.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":Al(Ue(a.args[0])),ee=wn.createBox(y,a.body,{type:E});return a.caret&&(ee.caret=a.caret),a.bind(y,ee)}}),ot(["ne","neq"],"",{createAtom:a=>new wn(Ee(Ce({},a),{type:"mrel",body:[new du(Ee(Ce({},a),{body:"\uE020",align:"right",boxType:"rel"})),new wn(Ee(Ce({},a),{value:"="}))],captureSelection:!0})),serialize:a=>a.command}),ot("rlap","{:auto}",{createAtom:a=>new du(Ee(Ce({},a),{body:Ue(a.args[0]),align:"right"}))}),ot("llap","{:auto}",{createAtom:a=>new du(Ee(Ce({},a),{body:Ue(a.args[0]),align:"left"}))}),ot("mathrlap","{:math}",{createAtom:a=>new du(Ee(Ce({},a),{body:Ue(a.args[0]),align:"left"}))}),ot("mathllap","{:math}",{createAtom:a=>new du(Ee(Ce({},a),{body:Ue(a.args[0]),align:"left"}))}),ot("raisebox","{:value}{:text}",{createAtom:a=>{var y;return new va(Ee(Ce({},a),{body:Ue(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return Qi("\\raisebox",(b=Sa(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),ot("raise","{:value}{:auto}",{createAtom:a=>{var y;return new va(Ee(Ce({},a),{body:Ue(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return Qi("\\raise",(b=Sa(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),ot("lower","{:value}{:auto}",{createAtom:a=>{var y;return new va(Ee(Ce({},a),{body:Ue(a.args[1]),padding:{dimension:0},offset:(y=Xo(a.args[0],-1))!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b,E;return Qi("\\lower",(E=Sa(Xo((b=a.offset)!=null?b:{dimension:0},-1)))!=null?E:"0pt",a.bodyToLatex(y))}}),Le("0123456789/@.?!"),qe(65,90),qe(97,122),Le([["\\forall",8704],["\\exists",8707],["\\nexists",8708,"mord","ams"],["\\mid",8739,"mrel"],["\\top",8868],["\\bot",8869]]),Le([["\\#",35],["\\&",38],["\\parallelogram",9649],["\\spadesuit",9824],["\\heartsuit",9825],["\\diamondsuit",9826],["\\clubsuit",9827],["\\flat",9837],["\\natural",9838],["\\sharp",9839]]),Le([["\\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]]),Le([["\\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"),Le([["\\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"]]),Le([["\\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"]]),Le([["\\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"),Le([["+",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"),Le([["\\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"),Le([["\\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]]),Le([["=",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"),Le([["\\lnot",172],["\\neg",172],["\\triangle",9651],["\\subsetneq",8842],["\\varsubsetneq",57370],["\\subsetneqq",10955],["\\varsubsetneqq",57367],["\\nsubset",8836],["\\nsupset",8837],["\\nsubseteq",8840],["\\nsupseteq",8841]],"mrel","ams"),Le([["\\wp",8472],["\\aleph",8501]]),Le([["\\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"),Le([["\\ ",160],["~",160]],"space"),ot(["!",",",":",";",">","enskip","enspace","quad","qquad"],"",{createAtom:a=>new hd(a)}),ot("space","",{createAtom:a=>new hd(a)}),Le([["\\colon",58],["\\cdotp",8901],["\\vdots",8942,"mord"],["\\ldotp",46],[",",44],[";",59]],"mpunct"),Le([["\\cdots",8943],["\\ddots",8945],["\\ldots",8230],["\\mathellipsis",8230]],"minner"),Le([["\\/",47],["|",8739,"mord"],["\\imath",305],["\\jmath",567],["\\degree",176],["'",8242],['"',8221]]);var lp="",Uh="";function Xh(a){return a.replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function Gi(a,y){return!a||!y.generateID?"":` extid="${a}"`}function Mv(a,y,b){var E,ee,re,ae,he,pe,ge,we,Oe,je,ct;let bt=!1;y=y!=null?y:a.atoms.length;let un="",Kn="",sn=a.atoms[a.index];const An=(ee=(E=sn.style)==null?void 0:E.variant)!=null?ee:"",Gn=(ae=(re=sn.style)==null?void 0:re.variantStyle)!=null?ae:"";let _n="";if(An||Gn){const Kr=nn(sn.value,(he=sn.style)==null?void 0:he.variant,(pe=sn.style)==null?void 0:pe.variantStyle);if(Kr!==sn.value)return a.index+=1,un=`${Kr}`,ml(un,a,b)||(a.mathML+=un,a.lastType="mi"),!0;_n=(ge={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"}[Gn+An])!=null?ge:"",_n=` mathvariant="${_n}"`}const Br={"\\exponentialE":"ⅇ","\\imaginaryI":"ⅈ","\\differentialD":"ⅆ","\\capitalDifferentialD":"ⅅ","\\alpha":"α","\\pi":"π","\\infty":"∞","\\forall":"∀","\\nexists":"∄","\\exists":"∃","\\hbar":"\u210F","\\cdotp":"\u22C5","\\ldots":"\u2026","\\cdots":"\u22EF","\\ddots":"\u22F1","\\vdots":"\u22EE","\\ldotp":"."};if(sn.command==="!")return a.index+=1,un="!",ml(un,a,b)||(a.mathML+=un,a.lastType="mo"),!0;if(Br[sn.command]){a.index+=1;let Kr=`${Br[sn.command]}`;return(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mtext"||a.lastType==="fence")&&(Kr=Uh+Kr),ml(Kr,a,b)||(a.mathML+=Kr,a.lastType="mi"),!0}if(sn.command==="\\operatorname")Kn=vc(sn.body),a.index+=1;else if(An||Gn)for(;a.index0){bt=!0,un=`${Kn}`;const Kr=a.lastType;un.endsWith(">f")||un.endsWith(">g")?(un+=lp,a.lastType="applyfunction"):a.lastType=/^(.*)<\/mo>$/.test(un)?"mo":"mi",ml(un,a,b)||((Kr==="mi"||Kr==="mn"||Kr==="mtext"||Kr==="fence")&&(un=Uh+un),a.mathML+=un)}return bt}function Ev(a){return a.index${a}${he}${ae}`:ae?pe=`${a}${ae}`:he&&(pe=`${a}${he}`),y.mathML+=pe,y.lastType="",!0}function Av(a,y,b){y=y!=null?y:a.atoms.length;const E=a.index;let ee="";for(;a.index0?(a.mathML+=`${ee}`,a.lastType="mtext",!0):!1}function Lv(a,y,b){y=y!=null?y:a.atoms.length;const E=a.index;let ee="",re=kv(a);for(re>=0&&re"+ee+"",re<0&&Ev(a)&&(re=a.index,a.index+=1),ml(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",ee+=Su(a.atoms[pe],b),ee+=Di(a.atoms,b,pe+1,ge),ee+=Su(a.atoms[ge],b),ee+="",a.index=ge+1,(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mfrac"||a.lastType==="fence")&&(a.mathML+=Uh),ml(ee,a,b)&&(E=!0,a.lastType="",ee=""),re="fence")}return ee.length>0&&(E=!0,a.mathML+=ee,a.lastType=re),E}function _v(a,y,b){let E=!1;y=y!=null?y:a.atoms.length;let ee="",re="";const ae=a.atoms[a.index];if(!ae)return!1;const he={"\\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(he[ae.command]){a.index+=1;const pe=`${he[ae.command]}`;return ml(pe,a,b)||(a.mathML+=pe,a.lastType="mo"),!0}if(a.index"):ae.superscript?(ee+=""+pe,ee+=Di(ae.superscript,b),ee+=""):ae.subscript&&(ee+=""+pe,ee+=Di(ae.subscript,b),ee+=""),a.mathML+=ee,a.lastType="mo",a.index+=1,!0}{const pe=a.atoms[a.index],ge=pe.value==="\\operatorname",we=ge?'"+vc(pe.value)+"":Su(pe,b);ee+=we,!ge&&!/^(.*)<\/mo>$/.test(we)?(ee+=lp,re="applyfunction"):re=ge?"mi":"mo"}(a.lastType==="mi"||a.lastType==="mn")&&!/^(.*)<\/mo>$/.test(ee)&&(ee=Uh+ee),a.index+=1}return ee.length>0&&(E=!0,ml(ee,a,b)||(a.mathML+=ee,a.lastType=re)),E}function Di(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 wn)ee.mathML=Zf(a,y);else if(Array.isArray(a)){ee.atoms=a;let re=0;for(E=E||(a?a.length:0);ee.index0&&ee.atoms[ee.index].type==="genfrac"&&(ae=""+ae),ee.atoms[ee.index].type==="genfrac"?ee.lastType="mfrac":ee.lastType="",ee.index+=1,ml(ae,ee,y)?re+=1:ae.length>0&&(ee.mathML+=ae,re+=1)}re>1&&(ee.mathML=""+ee.mathML+"")}return ee.mathML}function Su(a,y){let b="";const E=vc(a.value);return E&&(b=""+E+""),b}function vc(a){if(!a)return"";if(typeof a=="string")return Xh(a);if(!Array.isArray(a)&&typeof a.body=="string")return Xh(a.body);let y="";for(const b of a)typeof b.value=="string"&&(y+=b.value);return Xh(y)}function Zf(a,y){var b,E,ee,re,ae,he,pe,ge,we,Oe,je,ct,bt,un,Kn,sn,An,Gn,_n,Br,Kr,Nr;if(a.mode==="text")return`${a.value}`;const Ci={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"},Hi={"\\!":-3/18,"\\ ":6/18,"\\,":3/18,"\\:":4/18,"\\>":4/18,"\\;":5/18,"\\enspace":.5,"\\quad":1,"\\qquad":2,"\\enskip":.5};let ir="",Zo="",$s,Jo,ja,Vo,Eo,Ui;const{command:ba}=a;if(a.command==="\\error")return`${Di(a.body,y)}`;const Ga={"\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\lbrack":"[","\\rbrack":"]","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"},js={"\\vec":"⃗","\\acute":"´","\\grave":"`","\\dot":"˙","\\ddot":"¨","\\tilde":"~","\\bar":"¯","\\breve":"˘","\\check":"ˇ","\\hat":"^"};switch(a.type){case"first":break;case"group":case"root":ir=Di(a.body,y);break;case"array":if((a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(ir+="",a.leftDelim&&a.leftDelim!=="."&&(ir+=""+(Ga[a.leftDelim]||a.leftDelim)+"")),ir+="",$s=0;$s"+Di(a.array[Jo][$s],y)+"";ir+=""}ir+="",(a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(a.rightDelim&&a.rightDelim!=="."&&(ir+=""+(Ga[a.leftDelim]||a.rightDelim)+""),ir+="");break;case"genfrac":(a.leftDelim||a.rightDelim)&&(ir+=""),a.leftDelim&&a.leftDelim!=="."&&(ir+=""+(Ga[a.leftDelim]||a.leftDelim)+""),a.hasBarLine?(ir+="",ir+=Di(a.above,y)||" ",ir+=Di(a.below,y)||" ",ir+=""):(ir+="",ir+=""+Di(a.above,y)+"",ir+=""+Di(a.below,y)+"",ir+=""),a.rightDelim&&a.rightDelim!=="."&&(ir+=""+(Ga[a.rightDelim]||a.rightDelim)+""),(a.leftDelim||a.rightDelim)&&(ir+="");break;case"surd":a.hasEmptyBranch("above")?(ir+="",ir+=Di(a.body,y),ir+=""):(ir+="",ir+=Di(a.body,y),ir+=Di(a.above,y),ir+="");break;case"leftright":const Gs=a,Us=Gs.leftDelim;ir="",Us&&Us!=="."&&(ir+=`${(b=Ga[Us])!=null?b:Us}`),a.body&&(ir+=Di(a.body,y));const Xs=Gs.matchingRightDelim();Xs&&Xs!=="."&&(ir+=`${(E=Ga[Xs])!=null?E:Xs}`),ir+="";break;case"sizeddelim":case"delim":ir+=`${Ga[a.value]||a.value}`;break;case"accent":ir+='",ir+=Di(a.body,y),ir+=""+(js[ba]||a.accent)+"",ir+="";break;case"line":case"overlap":break;case"overunder":Eo=a.above,Vo=a.below,(a.svgAbove||Eo)&&(a.svgBelow||Vo)?Ui=a.body:Eo&&Eo.length>0?(Ui=a.body,(re=(ee=a.body)==null?void 0:ee[0])!=null&&re.below?(Vo=a.body[0].below,Ui=a.body[0].body):((he=(ae=a.body)==null?void 0:ae[0])==null?void 0:he.type)==="first"&&((ge=(pe=a.body)==null?void 0:pe[1])!=null&&ge.below)&&(Vo=a.body[1].below,Ui=a.body[1].body)):Vo&&Vo.length>0&&(Ui=a.body,(Oe=(we=a.body)==null?void 0:we[0])!=null&&Oe.above?(Eo=a.body[0].above,Ui=a.body[0].body):((ct=(je=a.body)==null?void 0:je[0])==null?void 0:ct.type)==="first"&&((un=(bt=a.body)==null?void 0:bt[1])!=null&&un.above)&&(Eo=a.body[1].overscript,Ui=a.body[1].body)),(a.svgAbove||Eo)&&(a.svgBelow||Vo)?(ir+=``,ir+=(Kn=Ci[a.svgBody])!=null?Kn:Di(Ui,y),ir+=(sn=Ci[a.svgBelow])!=null?sn:Di(Vo,y),ir+=(An=Ci[a.svgAbove])!=null?An:Di(Eo,y),ir+=""):a.svgAbove||Eo?(ir+=``+((Gn=Ci[a.svgBody])!=null?Gn:Di(Ui,y)),ir+=(_n=Ci[a.svgAbove])!=null?_n:Di(Eo,y),ir+=""):(a.svgBelow||Vo)&&(ir+=``+((Br=Ci[a.svgBody])!=null?Br:Di(Ui,y)),ir+=(Kr=Ci[a.svgBelow])!=null?Kr:Di(Vo,y),ir+="");break;case"placeholder":ir+="?";break;case"mord":{ir=typeof a.value=="string"?a.value:ba,ba==="\\char"?ir="&#x"+("000000"+a.args[0].number.toString(16)).slice(-4)+";":ir.length>0&&ir.startsWith("\\")&&(typeof a.value=="string"&&a.value.charCodeAt(0)>255?ir="&#x"+("000000"+a.value.charCodeAt(0).toString(16)).slice(-4)+";":typeof a.value=="string"?ir=a.value.charAt(0):(console.error("Did not expect this"),ir=""));const ws=/\d/.test(ir)?"mn":"mi";ir=`<${ws}${Gi(a.id,y)}>${Xh(ir)}`;break}case"mbin":case"mrel":case"minner":ir=Su(a,y);break;case"mpunct":ir='"+ba+"";break;case"mop":case"operator":case"extensible-symbol":a.body!=="\u200B"&&(ir="",ir+=ba==="\\operatorname"?a.body:ba||a.body,ir+="");break;case"box":ir='"+Di(a.body,y)+"";break;case"spacing":ir+='';break;case"enclose":ir=''+Di(a.body,y)+"";break;case"prompt":ir=''+Di(a.body,y)+"";break;case"space":ir+=" ";break;case"subsup":break;case"phantom":break;case"composition":break;case"rule":break;case"chem":break;case"mopen":ir+=Su(a,y);break;case"mclose":ir+=Su(a,y);break;case"macro":{const ws=a.command+vc(a.macroArgs);ws&&(ir+=`${ws}`)}break;case"latexgroup":ir+=Di(a.body,y);break;case"latex":ir+=""+a.value+"";break;case"tooltip":ir+=Di(a.body,y);break;case"text":ir+=`${a.value}`;break;default:if(a.command==="\\displaystyle")return`${Di(a.body,y)}`;if(a.command==="\\textstyle")return`${Di(a.body,y)}`;console.info("Unexpected element in conversion to MathML:",a)}return ir}var yc={"\\alpha":"alpha ","\\mu":"mew ","\\sigma":"sigma ","\\pi":"pie ","\\imaginaryI":"imaginary eye ","\\imaginaryJ":"imaginary jay ","\\sum":"Summation ","\\prod":"Product ","+":"plus ","-":"minus ",";":' semi-colon ',",":' comma ',"|":'Vertical bar',"(":'Open paren. ',")":' Close paren. ',"=":"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 ",":":' such that ',"\\colon":' such that ',"\\hbar":"etch bar ","\\iff":'if, and only if, ',"\\Longleftrightarrow":'if, and only if, ',"\\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 n',"\\C":'the set c',"\\Z":'the set z',"\\Q":'the set q',"\\infty":"infinity ","\\nabla":"nabla ","\\partial":"partial derivative of ","\\cdot":"times ","\\cdots":"dot dot dot ","\\Rightarrow":"implies ","\\lparen":'open paren',"\\rparen":'close paren',"\\lbrace":'open brace',"\\{":'open brace',"\\rbrace":'close brace',"\\}":'close brace',"\\langle":'left angle bracket',"\\rangle":'right angle bracket',"\\lfloor":'open floor',"\\rfloor":'close floor',"\\lceil":'open ceiling',"\\rceil":'close ceiling',"\\vert":'vertical bar',"\\mvert":'divides',"\\lvert":'left vertical bar',"\\rvert":'right vertical bar',"\\lbrack":' open square bracket ',"\\rbrack":' close square bracket ',mm:"millimeters",cm:"centimeters",km:"kilometers",kg:"kilograms"},Vf={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 Bv(a){let y="";return a.startsWith("\\")&&(y=" "+a.replace("\\","")+" "),y}function Ad(a){let y=0;if(De(a))for(const b of a)b.type!=="first"&&(y+=1);return y===1}function Tv(a){if(De(a)){for(const y of a)if(y.type!=="first"&&y.id)return y.id.toString()}return""}function up(a){let y="";if(De(a))for(const b of a)b.type!=="first"&&typeof b.value=="string"&&(y+=b.value);return y}function Iv(a){return a?a.map(y=>y.value).join(""):""}function vi(a,y){var b,E,ee,re,ae;function he(we){return window.MathfieldElement.textToSpeechMarkup?/[a-z]/.test(we)?` ${we}`:/[A-Z]/.test(we)?`capital ${we.toLowerCase()}`:we:/[a-z]/.test(we)?" '"+we.toUpperCase()+"'":/[A-Z]/.test(we)?" 'capital "+we.toUpperCase()+"'":we}function pe(we){return""+we+""}if(!y)return"";let ge="";if(De(y)){let we=!1,Oe=!1;for(let je=0;je'),ge+=y.value;else{y.id&&a==="math"&&(ge+='');let we="",Oe="",je="",ct=!1;const{command:bt}=y;switch(bt){case"\\vec":return"vector "+vi(a,y.body);case"\\acute":return vi(a,y.body)+" acute";case"\\grave":return vi(a,y.body)+" grave";case"\\dot":return"dot over"+vi(a,y.body);case"\\ddot":return"double dot over"+vi(a,y.body);case"\\mathring":return"ring over"+vi(a,y.body);case"\\tilde":case"\\widetilde":return"tilde over"+vi(a,y.body);case"\\bar":return vi(a,y.body)+" bar";case"\\breve":return vi(a,y.body)+" breve";case"\\check":case"\\widecheck":return"check over "+vi(a,y.body);case"\\hat":case"\\widehat":return"hat over"+vi(a,y.body);case"\\overarc":case"\\overparen":case"\\wideparen":return"arc over "+vi(a,y.body);case"\\underarc":case"\\underparen":return"arc under "+vi(a,y.body)}switch(y.type){case"prompt":const un=y.body.length>1?'start input . '+vi(a,y.body)+'. end input':"blank";ge+=' '+un+'. '+((E=y.correctness)!=null?E:"")+' . ';break;case"array":const Kn=y.array,sn=y.environmentName;if(Object.keys(Vf).includes(sn)){ge+=` begin ${Vf[sn]} `;for(let _n=0;_n0&&(ge+=","),ge+=` row ${_n+1} `;for(let Br=0;Br0&&(ge+=","),ge+=` column ${Br+1}: `,ge+=vi("math",Kn[_n][Br])}ge+=` end ${Vf[sn]} `}break;case"group":bt==="\\ne"?ge+=" not equal ":(bt==="\\not"&&(ge+=" not "),ge+=vi("math",y.body));break;case"root":ge+=vi("math",y.body);break;case"genfrac":if(we=vi("math",y.above),Oe=vi("math",y.below),Ad(y.above)&&Ad(y.below)){const Br={"1/2":" half ","1/3":" one third ","2/3":" two third","1/4":" one quarter ","3/4":" three quarter ","1/5":" one fifth ","2/5":" two fifths ","3/5":" three fifths ","4/5":" four fifths ","1/6":" one sixth ","5/6":" five sixths ","1/8":" one eight ","3/8":" three eights ","5/8":" five eights ","7/8":" seven eights ","1/9":" one ninth ","2/9":" two ninths ","4/9":" four ninths ","5/9":" five ninths ","7/9":" seven ninths ","8/9":" eight ninths "}[up(y.above)+"/"+up(y.below)];Br?ge=Br:ge+=we+" over "+Oe}else ge+=' the fraction '+we+' over '+Oe+'. End fraction.';break;case"surd":if(je=vi("math",y.body),y.hasEmptyBranch("above"))ge+=Ad(y.body)?" the square root of "+je+" , ":' the square root of '+je+'. End square root';else{let _n=vi("math",y.above);_n=_n.trim();const Br=_n.replace(//g,"");Br==="3"?ge+=' the cube root of '+je+'. End cube root':Br==="n"?ge+=' the nth root of '+je+'. End root':ge+=' the root with index: '+_n+', of '+je+'. End root'}break;case"leftright":{const _n=y;ge+=(ee=_n.leftDelim?yc[_n.leftDelim]:void 0)!=null?ee:_n.leftDelim,ge+=vi("math",y.body),ge+=(re=_n.rightDelim?yc[_n.rightDelim]:void 0)!=null?re:_n.rightDelim}break;case"rule":break;case"overunder":break;case"overlap":break;case"macro":const An=bt.replace(/^\\/g,""),Gn=Cn()[An];Gn&&(Gn!=null&&Gn.expand?ge+=vi("math",y.body):ge+=`${An} `);break;case"placeholder":ge+="placeholder ";break;case"delim":case"sizeddelim":case"mord":case"minner":case"mbin":case"mrel":case"mpunct":case"mopen":case"mclose":{if(bt==="\\mathbin"||bt==="\\mathrel"||bt==="\\mathopen"||bt==="\\mathclose"||bt==="\\mathpunct"||bt==="\\mathord"||bt==="\\mathinner"){ge=vi(a,y.body);break}let _n=y.isDigit()?y.asDigit():y.value,Br=y.command;if((y.type==="delim"||y.type==="sizeddelim")&&(Br=y.value,_n=Br),a==="text")ge+=_n;else{if(y.type==="mbin"&&(ge+=''),_n){const Kr=yc[_n]||(Br?yc[Br.trim()]:"");if(Kr)ge+=" "+Kr;else{const Nr=Br?Bv(Br.trim()):"";ge+=Nr||he(_n)}}else ge+=vi("math",y.body);y.type==="mbin"&&(ge+='')}break}case"mop":case"operator":case"extensible-symbol":if(y.value!=="\u200B"){const _n=y.command;if(_n==="\\sum")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let Br=vi("math",y.superscript);Br=Br.trim();let Kr=vi("math",y.subscript);Kr=Kr.trim(),ge+=' the summation from '+Kr+' to '+Br+' of ',ct=!0}else if(y.hasEmptyBranch("subscript"))ge+=" the summation of";else{let Br=vi("math",y.subscript);Br=Br.trim(),ge+=' the summation from '+Br+' of ',ct=!0}else if(_n==="\\prod")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let Br=vi("math",y.superscript);Br=Br.trim();let Kr=vi("math",y.subscript);Kr=Kr.trim(),ge+=' the product from '+Kr+' to '+Br+' of ',ct=!0}else if(y.hasEmptyBranch("subscript"))ge+=" the product of ";else{let Br=vi("math",y.subscript);Br=Br.trim(),ge+=' the product from '+Br+' of ',ct=!0}else if(_n==="\\int")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let Br=vi("math",y.superscript);Br=Br.trim();let Kr=vi("math",y.subscript);Kr=Kr.trim(),ge+=' the integral from '+pe(Kr)+' to '+pe(Br)+' of ',ct=!0}else ge+=' the integral of ';else if(typeof y.value=="string"){const Br=(ae=yc[y.value])!=null?ae:y.command?yc[y.command]:void 0;ge+=Br||" "+y.value}else y.command&&(y.command==="\\mathop"?ge+=vi("math",y.body):y.command==="\\operatorname"?ge+=Iv(y.body):ge+=y.command.startsWith("\\")?" "+y.command.slice(1):" "+y.command)}break;case"enclose":je=vi("math",y.body),ge+=" crossed out "+je+". End crossed out.";break;case"space":case"spacing":break}if(!ct&&!y.hasEmptyBranch("superscript")){let un=vi(a,y.superscript);un=un.trim();const Kn=un.replace(/<[^>]*>/g,"");if(Ad(y.superscript)){if(a==="math"){const sn=Tv(y.superscript);sn&&(ge+='')}Kn==="\u2032"?ge+=" prime ":Kn==="2"?ge+=" squared ":Kn==="3"?ge+=" cubed ":Number.isNaN(Number.parseInt(Kn))?ge+=" to the "+un+"; ":ge+=' to the '+Kn+" power; "}else Number.isNaN(Number.parseInt(Kn))?ge+=" raised to the "+un+"; ":ge+=' raised to the '+Kn+" power; "}if(!ct&&!y.hasEmptyBranch("subscript")){let un=vi("math",y.subscript);un=un.trim(),ge+=Ad(y.subscript)?" sub "+un:" subscript "+un+". End subscript. "}}return ge}function bc(a){var y,b;if(window.MathfieldElement.textToSpeechRules==="sre"&&("sre"in window||"SRE"in window)){const ee=Di(a);if(ee){window.MathfieldElement.textToSpeechMarkup&&(window.MathfieldElement.textToSpeechRulesOptions=(y=window.MathfieldElement.textToSpeechRulesOptions)!=null?y:{},window.MathfieldElement.textToSpeechRulesOptions=Ee(Ce({},window.MathfieldElement.textToSpeechRulesOptions),{markup:window.MathfieldElement.textToSpeechMarkup}),window.MathfieldElement.textToSpeechRulesOptions.markup==="ssml"&&(window.MathfieldElement.textToSpeechRulesOptions=Ee(Ce({},window.MathfieldElement.textToSpeechRulesOptions),{markup:"ssml_step"})),window.MathfieldElement.textToSpeechRulesOptions=Ee(Ce({},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 ae="";try{ae=re.toSpeech(ee)}catch(he){console.error("MathLive 0.98.5: `SRE.toSpeech()` runtime error",he)}return ae}return""}let E=vi("math",a);if(window.MathfieldElement.textToSpeechMarkup==="ssml"){let ee="";window.MathfieldElement.speechEngineRate&&(ee=''),E=''+ee+"

    "+E+"

    "+(ee?"
    ":"")+""}else window.MathfieldElement.textToSpeechMarkup==="mac"&&Xe()==="macos"?E=E.replace(//g,"").replace(//g,"[[emph+]]").replace(/<\/emphasis>/g,"").replace(//g,"[[slc $1]]").replace(/]*>/g,"").replace(/<\/say-as>/g,""):E=E.replace(/<[^>]*>/g,"").replace(/\s{2,}/g," ");return E}var Ld={"\\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"},Dd={"\\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 ya(a){var y,b,E,ee,re,ae,he,pe,ge,we,Oe,je,ct;if(!a)return"";if(De(a)){if(a.length===0)return"";if(a[0].mode==="latex")return a.map(ya).join("");if(a[0].mode==="text"){let Gn=0,_n="";for(;((y=a[Gn])==null?void 0:y.mode)==="text";)_n+=a[Gn].body?ya(a[Gn].body):a[Gn].value,Gn++;return`"${_n}" ${ya(a.slice(Gn))}`}let sn=0;const An=[];for(;a[sn]&&a[sn].mode==="math";){let Gn="";for(;a[sn]&&a[sn].type==="mord"&&/\d/.test(a[sn].value);)Gn+=a[sn++].value;Gn?An.push(Gn):An.push(ya(a[sn++]))}return An.push(ya(a.slice(sn))),Pv(An)}if(a.mode==="text")return`"${a.value}"`;let bt="";const{command:un}=a;let Kn;if(un==="\\placeholder")return`(${ya(a.body)})`;switch(a.type){case"accent":const sn={"\\vec":"vec","\\dot":"dot","\\ddot":"ddot","\\bar":"bar","\\hat":"hat","\\acute":"acute;","\\grave":"grave","\\tilde":"tilde","\\breve":"breave","\\check":"check"}[un];bt=`${sn!=null?sn:""} ${ya(a.body)} `;break;case"first":return"";case"latexgroup":return a.body.map(Nr=>Nr.value).join("");case"group":case"root":bt=(b=Ld[un])!=null?b:ya(a.body);break;case"genfrac":{const Nr=a;(Nr.leftDelim||Nr.rightDelim)&&(bt=Nr.leftDelim==="."||!Nr.leftDelim?"{:":Nr.leftDelim),Nr.hasBarLine?(bt+="(",bt+=ya(Nr.above),bt+=")/(",bt+=ya(Nr.below),bt+=")"):(bt+="("+ya(Nr.above)+"),",bt+="("+ya(Nr.below)+")"),(Nr.leftDelim||Nr.rightDelim)&&(bt+=Nr.rightDelim==="."||!Nr.rightDelim?"{:":Nr.rightDelim)}break;case"surd":bt+=a.hasEmptyBranch("above")?"sqrt("+ya(a.body)+")":"root("+ya(a.above)+")("+ya(a.body)+")";break;case"latex":bt=a.value;break;case"leftright":{const Nr=a,Ci=Nr.leftDelim;bt+=Ci==="."||!Ci?"{:":Ci,bt+=ya(Nr.body);const Hi=Nr.matchingRightDelim();bt+=Hi==="."||!Hi?":}":Hi}break;case"sizeddelim":case"delim":bt=a.value;break;case"overlap":break;case"overunder":break;case"mord":bt=(ee=(E=Ld[un])!=null?E:un)!=null?ee:typeof a.value=="string"?a.value:"",bt.startsWith("\\")&&(bt+=" "),Kn=un?un.match(/{?\\char"([\dabcdefABCDEF]+)}?/):null,Kn?bt=String.fromCodePoint(Number.parseInt("0x"+Kn[1])):bt.length>0&&bt.startsWith("\\")&&(bt=typeof a.value=="string"?a.value.charAt(0):a.command),bt=Ov(bt,a.style);break;case"mbin":case"mrel":case"minner":bt=(ae=(re=Ld[un])!=null?re:Dd[un])!=null?ae:a.value;break;case"mopen":case"mclose":bt=a.value;break;case"mpunct":bt=(he=Dd[un])!=null?he:un;break;case"mop":case"operator":case"extensible-symbol":a.value!=="\u200B"&&(Dd[un]?bt=Dd[un]:bt=un==="\\operatorname"?ya(a.body):(pe=a.value)!=null?pe:un,bt+=" ");break;case"array":const An=a.array,Gn=a.environmentName,_n=(ge={bmatrix:["[","]"],"bmatrix*":["[","]"]}[Gn])!=null?ge:["(",")"],Br=[];for(const Nr of An){const Ci=[];for(const Hi of Nr)Ci.push(_n[0]+ya(Hi)+_n[1]);Br.push(Ci.join(","))}const Kr=(we={bmatrix:["[","]"],"bmatrix*":["[","]"],cases:["{",":}"]}[Gn])!=null?we:["(",")"];bt=Kr[0]+Br.join(",")+Kr[1];break;case"box":break;case"spacing":bt=(Oe=Ld[un])!=null?Oe:" ";break;case"enclose":bt="("+ya(a.body)+")";break;case"space":bt=" ";break;case"subsup":bt="";break;case"macro":bt=(ct=(je=Ld[un])!=null?je:Dd[un])!=null?ct:ya(a.body);break}if(!a.hasEmptyBranch("subscript")){bt+="_";const sn=ya(a.subscript);bt+=sn.length!==1?`(${sn})`:sn}if(!a.hasEmptyBranch("superscript")){bt+="^";const sn=ya(a.superscript);bt+=sn.length!==1?`(${sn})`:sn}return bt}function Ov(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 $a(a,y){var b,E;y!=null||(y={}),y.mathstyle=(b=y.mathstyle)!=null?b:"displaystyle";const ee=new xi({from:Ee(Ce({},Ju()),{renderPlaceholder:()=>new Zn(160,{maxFontSize:1}),letterShapeStyle:(E=y==null?void 0:y.letterShapeStyle)!=null?E:"tex"}),mathstyle:y.mathstyle}),ae=new wn({mode:"math",type:"root",body:Va(a,{context:ee,parseMode:"math",mathstyle:y.mathstyle})}).render(ee);return ae?(Yu(fd(ae,ee)),qu(ae,{classes:"ML__latex"}).toMarkup()):""}function A1(a){return t0(a,{context:Ju()})}function Rv(a,y={}){return Di(Va(a,{parseMode:"math",args:()=>"",mathstyle:"displaystyle"}),y)}function Nv(a){const y=Va(a,{parseMode:"math",mathstyle:"displaystyle"});return bc(y)}var Yh;function Fv(a){var y,b;if(!Yh){const E=(y=globalThis[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:y.ComputeEngine;E?Yh=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=Yh==null?void 0:Yh.box(a).latex)!=null?b:""}function L1(a,y="math"){return ya(new wn({type:"root",body:Va(a,{parseMode:y})}))}function D1(a){return cu(a,{format:"ascii-math"})[1]}function $f(a){if(typeof a=="string"){const y=zv(a);if(!y)throw new Error(`Invalid color: ${a}`);return y}return"C"in a?Kv(a):"a"in a?cp(a):a}function xc(a){return a<0?0:a>255?255:Math.round(a)}function zv(a){if(!a||a[0]!=="#")return;a=a.slice(1);let y;return a.length<=4?(y={r:parseInt(a[0]+a[0],16),g:parseInt(a[1]+a[1],16),b:parseInt(a[2]+a[2],16)},a.length===4&&(y.a=parseInt(a[3]+a[3],16)/255)):(y={r:parseInt(a[0]+a[1],16),g:parseInt(a[2]+a[3],16),b:parseInt(a[4]+a[5],16)},a.length===8&&(y.a=parseInt(a[6]+a[7],16)/255)),y&&typeof y.a=="undefined"&&(y.a=1),y}function jf(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 Hv(a){const[y,b,E]=[a.L,a.a,a.b],ee=Math.sqrt(b*b+E*E),ae=Math.atan2(E,b)*180/Math.PI,he={L:y,C:ee,H:ae};return a.alpha!==void 0&&(he.alpha=a.alpha),he}function Gf(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),ae=Math.pow(y*1.000000054672411-.0894841820949657*b-1.2914855378640917*E,3),he=4.076741661347994*ee-3.307711590408193*re+.230969928729428*ae,pe=-1.2684380040921763*ee+2.6097574006633715*re-.3413193963102197*ae,ge=-.004196086541837188*ee-.7034186144594493*re+1.7076147009309444*ae,we=Oe=>{const je=Math.abs(Oe);return je<=.0031308?Oe*12.92:(Math.sign(Oe)||1)*(1.055*Math.pow(je,1/2.4)-.055)};return[we(he),we(pe),we(ge)]}function Uf(a){const[y,b,E]=a;return y>=0&&y<=1&&b>=0&&b<=1&&E>=0&&E<=1}function Xf(a,y){let[b,E,ee]=a;return b=xc(b*255),E=xc(E*255),ee=xc(ee*255),y!==void 0?{r:b,g:E,b:ee,alpha:y}:{r:b,g:E,b:ee}}function cp(a){let[y,b,E]=Gf(a);if(Uf([y,b,E]))return Xf([y,b,E],a.alpha);const ee=Hv(a);if(ee.C=0,[y,b,E]=Gf(jf(ee)),!Uf([y,b,E]))return Xf([y,b,E],a.alpha);let re=0,ae=a.L,he=(re+ae)/2;ee.C=he;const pe=.36/Math.pow(2,12);for(;ae-re>pe;)he=(re+ae)/2,ee.C=he,[y,b,E]=Gf(jf(ee)),Uf([y,b,E])?re=he:ae=he;return Xf([y,b,E],a.alpha)}function Kv(a){return cp(jf(a))}function dp(a,y){const b=$f(a),E=$f(y),ee=.56,re=.57,ae=.62,he=.65,pe=.022,ge=1.414,we=.1,Oe=5e-4,je=1.14,ct=.027,bt=1.14,un=.027;function Kn(Nr){return Nr>=pe?Nr:Nr+Ys(pe-Nr,ge)}function sn(Nr){return(Nr<0?-1:1)*Math.pow(Math.abs(Nr),2.4)}const An=Kn(sn(E.r/255)*.2126729+sn(E.g/255)*.7151522+sn(E.b/255)*.072175),Gn=Kn(sn(b.r/255)*.2126729+sn(b.g/255)*.7151522+sn(b.b/255)*.072175);let _n,Br,Kr;return Math.abs(Gn-An)An?(_n=Ys(Gn,ee)-Ys(An,re),Br=_n*je):(_n=Ys(Gn,he)-Ys(An,ae),Br=_n*bt),Math.abs(Br)0?Kr=Br-un:Kr=Br+ct,Kr*100}function hp(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 Wv(a){const y=$f(a);let b=((1<<24)+(xc(y.r)<<16)+(xc(y.g)<<8)+xc(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 na(a){const y=fp(a);let b="";for(const E of y){if(typeof E.value!="string")return"";b+=E.value}return b}function fp(a){const b=a.model.selection.ranges;return b.length!==1?[]:a.model.getAtoms(b[0])}function Zv(a,y){const b=fp(a);if(b.length!==1)return!1;const E=pf[y];return E?!!E.test(b[0].value):!1}function Vv(a,y){return na(a).length>0}function $v(a){return[Yf(a,"double-struck","mathbb","tooltip.blackboard"),Yf(a,"fraktur","mathfrak","tooltip.fraktur"),Yf(a,"calligraphic","mathcal","tooltip.caligraphic"),qf(a,"up","mathrm","tooltip.roman-upright"),qf(a,"bold","mathbf","tooltip.bold"),qf(a,"italic","mathit","tooltip.italic")]}function jv(a){return[{label:()=>$a(`\\vec{${na(a)}}`),visible:()=>na(a).length===1,onMenuSelect:()=>a.insert("\\vec{#@}",{selectionMode:"item"})},{label:()=>$a(`\\overrightarrow{${na(a)}}`),visible:()=>na(a).length>0,onMenuSelect:()=>a.insert("\\overrightarrow{#@}",{selectionMode:"item"})},{label:()=>$a(`\\overleftarrow{${na(a)}}`),visible:()=>na(a).length>0,onMenuSelect:()=>a.insert("\\overleftarrow{#@}",{selectionMode:"item"})},{label:()=>$a(`\\dot{${na(a)}}`),visible:()=>na(a).length===1,onMenuSelect:()=>a.insert("\\dot{#@}",{selectionMode:"item"})},{label:()=>$a(`\\ddot{${na(a)}}`),visible:()=>na(a).length===1,onMenuSelect:()=>a.insert("\\ddot{#@}",{selectionMode:"item"})},{label:()=>$a(`\\bar{${na(a)}}`),visible:()=>na(a).length===1,onMenuSelect:()=>a.insert("\\bar{#@}",{selectionMode:"item"})},{label:()=>$a(`\\overline{${na(a)}}`),visible:()=>na(a).length>0,onMenuSelect:()=>a.insert("\\overline{#@}",{selectionMode:"item"})},{label:()=>$a(`\\overgroup{${na(a)}}`),visible:()=>na(a).length>0,onMenuSelect:()=>a.insert("\\overgroup{#@}",{selectionMode:"item"})},{label:()=>$a(`\\overbrace{${na(a)}}`),visible:()=>na(a).length>0,onMenuSelect:()=>a.insert("\\overbrace{#@}",{selectionMode:"item"})},{label:()=>$a(`\\underline{${na(a)}}`),visible:()=>na(a).length>0,onMenuSelect:()=>a.insert("\\underline{#@}",{selectionMode:"item"})},{label:()=>$a(`\\undergroup{${na(a)}}`),visible:()=>na(a).length>0,onMenuSelect:()=>a.insert("\\undergroup{#@}",{selectionMode:"item"})},{label:()=>$a(`\\underbrace{${na(a)}}`),visible:()=>na(a).length>0,onMenuSelect:()=>a.insert("\\underbrace{#@}",{selectionMode:"item"})}]}function Gv(a){return[{label:()=>$a(`\\boxed{${a.getValue(a.model.selection)}}}`),onMenuSelect:()=>a.insert("\\boxed{#@}",{selectionMode:"item"})},{label:()=>$a(`\\bbox[5px, border: 2px solid red]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px solid red]{#@}",{selectionMode:"item"})},{label:()=>$a(`\\bbox[5px, border: 2px dashed black]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px dashed black]{#@}",{selectionMode:"item"})}]}function Uv(a){const y=[];for(const b of Object.keys(ze))y.push({class:(Wv(hp(ze[b]))==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:``,ariaLabel:()=>{var E;return(E=dt(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 Xv(a){const y=[];for(const b of Object.keys($e))y.push({class:(hp($e[b])==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:``,ariaLabel:()=>{var E;return(E=dt(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 qv(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:()=>dt("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 Qv(a){return[{label:()=>dt("menu.array.add row above"),id:"add-row-above",onMenuSelect:()=>a.executeCommand("addRowBefore"),visible:()=>Cu(a)},{label:()=>dt("menu.array.add row below"),id:"add-row-below",onMenuSelect:()=>a.executeCommand("addRowAfter"),visible:()=>Cu(a)},{label:()=>dt("menu.array.add column before"),id:"add-column-before",onMenuSelect:()=>a.executeCommand("addColumnBefore"),visible:()=>Cu(a),enabled:()=>{const y=a.model.parentEnvironment;if(!y)return!1;const[b,E]=e1(a);return bdt("menu.array.add column after"),id:"add-column-after",onMenuSelect:()=>a.executeCommand("addColumnAfter"),visible:()=>Cu(a)},{type:"divider"},{label:()=>dt("menu.array.delete row"),id:"delete-row",onMenuSelect:()=>a.executeCommand("removeRow"),visible:()=>Cu(a)},{label:()=>dt("menu.array.delete column"),id:"delete-column",onMenuSelect:()=>a.executeCommand("removeColumn"),visible:()=>Cu(a)},{type:"divider"},{label:()=>dt("menu.borders"),visible:()=>(Jv(a)||Cu(a))&&a.isSelectionEditable,submenu:[{label:" \u22F1 ",id:"environment-no-border",onMenuSelect:()=>_d(a,"matrix")},{label:"(\u22F1)",id:"environment-parentheses",onMenuSelect:()=>_d(a,"pmatrix")},{label:"[\u22F1]",id:"environment-brackets",onMenuSelect:()=>_d(a,"bmatrix")},{label:"|\u22F1|",id:"environment-bar",onMenuSelect:()=>_d(a,"vmatrix")},{label:"{\u22F1}",id:"environment-braces",onMenuSelect:()=>_d(a,"Bmatrix")}],submenuClass:"border-submenu"},{type:"divider"},{label:()=>dt("menu.insert matrix"),id:"insert-matrix",visible:()=>a.isSelectionEditable,submenu:qv(a),submenuClass:"insert-matrix-submenu",columnCount:5},{label:()=>dt("menu.mode"),id:"mode",visible:()=>a.isSelectionEditable&&a.model.selectionIsCollapsed,submenu:[{label:()=>dt("menu.mode-math"),id:"mode-math",onMenuSelect:()=>{uc(a,"accept-all"),a.executeCommand(["switchMode","math"])},checked:()=>a.model.mode==="math"},{label:()=>dt("menu.mode-text"),id:"mode-text",onMenuSelect:()=>{uc(a,"accept-all"),a.executeCommand(["switchMode","text"])},checked:()=>a.model.mode==="text"},{label:()=>dt("menu.mode-latex"),id:"mode-latex",onMenuSelect:()=>a.executeCommand(["switchMode","latex"]),checked:()=>a.model.mode==="latex"}]},{type:"divider"},{label:()=>dt("menu.font-style"),id:"variant",visible:()=>a.isSelectionEditable,submenu:$v(a),submenuClass:"variant-submenu"},{label:()=>dt("menu.color"),id:"color",visible:()=>a.isSelectionEditable,submenu:Xv(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>dt("menu.background-color"),id:"background-color",visible:()=>a.isSelectionEditable,submenu:Uv(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>dt("menu.accent"),id:"accent",visible:()=>a.isSelectionEditable,submenu:jv(a),submenuClass:"variant-submenu"},{label:()=>dt("menu.decoration"),id:"decoration",visible:()=>a.isSelectionEditable&&na(a).length>0,submenu:Gv(a),submenuClass:"variant-submenu"},{type:"divider"},{label:()=>dt("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:()=>dt("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?dt("menu.solve-for",$a(b)):dt("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 ae;return(ae=re.simplify().latex)!=null?ae:""});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:()=>dt("menu.cut"),onMenuSelect:()=>a.executeCommand("cutToClipboard"),visible:()=>!a.options.readOnly&&a.isSelectionEditable,keyboardShortcut:"meta+X"},{label:()=>dt("menu.copy"),id:"copy",submenu:[{label:()=>dt("menu.copy-as-latex"),id:"copy-latex",onMenuSelect:()=>ni.copyToClipboard(a,"latex"),keyboardShortcut:"meta+C"},{label:()=>dt("menu.copy-as-ascii-math"),id:"copy-ascii-math",onMenuSelect:()=>ni.copyToClipboard(a,"ascii-math")},{label:()=>dt("menu.copy-as-mathml"),id:"copy-math-ml",onMenuSelect:()=>ni.copyToClipboard(a,"math-ml")}]},{label:()=>dt("menu.paste"),id:"paste",onMenuSelect:()=>a.executeCommand("pasteFromClipboard"),visible:()=>a.hasEditableContent,keyboardShortcut:"meta+V"},{label:()=>dt("menu.select-all"),id:"select-all",keyboardShortcut:"meta+A",onMenuSelect:()=>a.executeCommand("selectAll")}]}function Cu(a){var y;return!!((y=a.model.parentEnvironment)!=null&&y.array)}function Jv(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 _d(a,y){Ch(a),a.flushInlineShortcutBuffer(),T0(a.model,y),fa(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 Yf(a,y,b,E){return{label:()=>$a(`\\${b}{${na(a)}}`),tooltip:()=>{var ee;return(ee=dt(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 qf(a,y,b,E){return{label:()=>$a(`\\${b}{${na(a)}}`),tooltip:()=>{var ee;return(ee=dt(E))!=null?ee:E},visible:()=>Vv(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 wc(a,y){return a+bc(y)}Oo({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 ae(we){let Oe=null;switch(we){case"all":Oe=re.root;break;case"selection":Oe=re.getAtoms(re.selection);break;case"left":{Oe=re.getAtoms(re.offsetOf(re.at(re.position).leftSibling),re.position);break}case"right":{Oe=re.getAtoms(re.position,re.offsetOf(re.at(re.position).rightSibling));break}case"group":Oe=re.getAtoms(re.getSiblingsRange(re.position));break;case"parent":{const{parent:je}=re.at(re.position);je!=null&&je.parent?Oe=je:Oe=re.root;break}default:Oe=re.root}return Oe}function he(we){let Oe="";switch(we){case"all":console.log("Internal failure: speak all failed");break;case"selection":Oe="no selection";break;case"left":Oe="at start";break;case"right":Oe="at end";break;case"group":console.log("Internal failure: speak group failed");break;case"parent":Oe="no parent";break;default:console.log('unknown speak_ param value: "'+we+'"');break}return Oe}const pe=ae(y);if(pe===null)return(ee=(E=window.MathfieldElement).speakHook)==null||ee.call(E,he(y)),!1;(b.withHighlighting||window.MathfieldElement.speechEngine==="amazon")&&(window.MathfieldElement.textToSpeechMarkup=window.sre&&window.MathfieldElement.textToSpeechRules==="sre"?"ssml_step":"ssml");const ge=bc(pe);return ft()&&b.withHighlighting?(zl().readAloudMathfield=a,pu(a,{forHighlighting:!0}),window.MathfieldElement.readAloudHook&&window.MathfieldElement.readAloudHook(a.field,ge)):window.MathfieldElement.speakHook&&window.MathfieldElement.speakHook(ge),!1}function r1(a){var y,b;if(!ft()){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,ae)=>{if(re)console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${re}`);else if(ae!=null&&ae.AudioStream){const he=new Uint8Array(ae.AudioStream),pe=new Blob([he.buffer],{type:"audio/mpeg"}),ge=URL.createObjectURL(pe);new Audio(ge).play().catch(Oe=>console.log(Oe))}else console.log("polly.synthesizeSpeech():",ae)})}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=wc("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=wc("",a.model.at(a.model.position));else if(y==="line"){const re=wc("",a.model.root);a.keyboardDelegate.setAriaLabel(re)}else ee=E?wc(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 wc("",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+=wc("",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=Ol(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 we=re.ranges[0][0];if(!this.mathfield.dirty&&!((b=this.at(we))!=null&&b.parentPrompt)&&this.mathfield.hasEditablePrompts){if((E=this.at(we-1))!=null&&E.parentPrompt){this._anchor=this.normalizeOffset(we-1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}if((ee=this.at(we+1))!=null&&ee.parentPrompt){this._anchor=this.normalizeOffset(we+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=we,this._position=we,this._selection=re;return}const ae=Wa(re);re.direction==="backward"?[this._position,this._anchor]=ae:[this._anchor,this._position]=ae;const he=this.at(ae[0]+1),pe=this.at(ae[1]),ge=wn.commonAncestor(he,pe);(ge==null?void 0:ge.type)==="array"&&he.parent===ge&&pe.parent===ge?this._selection={ranges:[ae],direction:re.direction}:this._selection={ranges:[ae],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 qa&&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(tc(a)){if(E=y!=null?y:{},a.ranges.length>1)return a.ranges.reduce((ge,we)=>[...ge,...this.getAtoms(we,E)],[]);a=a.ranges[0]}let ee,re;if(Ps(a)){if(ee=a,!Ps(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 ae=Math.min(ee,re)+1,he=Math.max(ee,re);if(!E.includeChildren&&ae===1&&he===this.lastOffset)return[this.root];let pe=[];for(let ge=ae;ge<=he;ge++){const we=this.atoms[ge];mp(this,we,ae,he)&&pe.push(we)}return E.includeChildren||(pe=pe.filter(ge=>{let we=!1,{parent:Oe}=ge;for(;Oe&&!we;)we=mp(this,Oe,ae,he),Oe=Oe.parent;return!we})),pe}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=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 wn({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 wn.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 Di(a);if(b==="spoken")return bc(a);if(b==="spoken-text"){const E=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="";const ee=bc(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=bc(a);return window.MathfieldElement.textToSpeechMarkup=E,ee}return b==="ascii-math"?ya(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(Ps(a)&&Ps(y)?(E=[this.normalizeRange([a,y])],ee=b):ec(a)?(E=[this.normalizeRange(a)],ee=y):tc(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 ae=window.MathfieldElement.computeEngine.parse(re);return JSON.stringify(ae.json)}catch(ae){return JSON.stringify(["Error",`'${ae.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 ci(E.map(ae=>wn.serialize(this.getAtoms(ae),re)))}return E.map(re=>this.getAtoms(re).map(ae=>this.atomToString(ae,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&&Qf(this,re,[E,ee]);)ee=this.offsetOf(re),re=re.parent;for(re=this.at(E).parent;re!==this.root&&Qf(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&&Qf(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 ae=this.root.changeCounter;y();const he=this.root.changeCounter!==ae,pe=E!==this._anchor||ee!==this._position||uu(this._selection,b)==="different";return this.silenceNotifications=re,a.content&&he&&this.contentDidChange({inputType:a.type}),a.selection&&pe&&this.selectionDidChange(),he||pe}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),ythis.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(Ws(this.mathfield)),this.silenceNotifications||!this.mathfield.host||!this.mathfield)return;const b=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.host.dispatchEvent(new InputEvent("input",Ee(Ce({},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(Ws(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(eeE)return!1;if(!y.hasChildren)return!0;const re=a.offsetOf(y.firstChild);if(re>=b&&re<=E){const ae=a.offsetOf(y.lastChild);if(ae>=b&&ae<=E)return!0}return!1}function Qf(a,y,b){if(!(y!=null&&y.hasChildren))return!1;const[E,ee]=b,re=a.offsetOf(y.firstChild),ae=a.offsetOf(y.lastChild);return re>=E&&re<=ee&&ae>=re&&ae<=ee}function Bd(a,y,b,E){var ee,re,ae,he,pe,ge;const we=b.parent;if(we&&b instanceof Li){const Oe=!E&&y==="forward"||E==="body"&&y==="backward";let je=Oe?a.offsetOf(b.firstChild):a.offsetOf(b.lastChild);return Oe?b.rightDelim!=="?"&&b.rightDelim!=="."?(b.leftDelim=".",b.isDirty=!0):(we.addChildrenAfter(b.removeBranch("body"),b),we.removeChild(b),je--):b.leftDelim!=="?"&&b.leftDelim!=="."?(b.rightDelim=".",b.isDirty=!0):(we.addChildrenAfter(b.removeBranch("body"),b),we.removeChild(b),je--),a.position=je,!0}if(we&&b.type==="surd"){if(y==="forward"&&!E||y==="backward"&&E==="body"){const Oe=b.leftSibling;b.hasChildren&&we.addChildrenAfter(b.removeBranch("body"),b),we.removeChild(b),a.position=a.offsetOf(Oe)}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),we.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(we&&(b.type==="box"||b.type==="enclose")){const Oe=E&&y==="backward"||!E&&y==="forward"?b.leftSibling:b.lastChild;return we.addChildrenAfter(b.removeBranch("body"),b),we.removeChild(b),a.position=a.offsetOf(Oe),!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 Oe=Td.fractionNavigationOrder==="numerator-denominator"?"above":"below",je=Oe==="above"?"below":"above";if(we&&(y==="forward"&&E===Oe||y==="backward"&&E===je)){const ct=b.removeBranch(Oe),bt=b.removeBranch(je);return we.addChildrenAfter([...ct,...bt],b),we.removeChild(b),a.position=a.offsetOf(ct.length>0?ct[ct.length-1]:bt[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 Oe=y==="forward"?(ae=(ee=b.superscript)==null?void 0:ee[0])!=null?ae:(re=b.subscript)==null?void 0:re[0]:(ge=(he=b.subscript)==null?void 0:he[0].lastSibling)!=null?ge:(pe=b.superscript)==null?void 0:pe[0].lastSibling;return Oe&&(a.position=a.offsetOf(Oe)),!0}return!1}if(!b.hasChildren&&b.type==="subsup"){const Oe=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);return b.parent.removeChild(b),a.position=Oe,!0}if(E==="superscript")if(y==="backward"){const Oe=a.offsetOf(b.firstChild)-1;console.assert(Oe>=0),a.position=Oe}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 Oe=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);b.parent.removeChild(b),a.position=Oe}return!0}if((we==null?void 0:we.type)==="genfrac"&&!E&&b.type!=="first"){let Oe=a.offsetOf(b.leftSibling);return we.removeChild(b),we.hasEmptyBranch("above")&&we.hasEmptyBranch("below")?(Oe=a.offsetOf(we.leftSibling),we.parent.removeChild(we),a.announce("delete",void 0,[we]),a.position=Oe,!0):(a.announce("delete",void 0,[b]),a.position=Oe,!0)}if(y==="backward"&&((we==null?void 0:we.command)==="\\ln"||(we==null?void 0:we.command)==="\\log")&&b.parentBranch!=="body"){const Oe=a.offsetOf(we.leftSibling);return we.parent.removeChild(we),a.announce("delete",void 0,[we]),a.position=Oe,!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&&Bd(a,"backward",y))){if(y!=null&&y.isFirstSibling){if(Bd(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])}}):Vs(a,Wa(a.selection),"deleteContentBackward")}function u1(a){return!a.mathfield.isSelectionEditable||!a.contentWillChange({inputType:"deleteContentForward"})?!1:a.selectionIsCollapsed?a.deferNotifications({content:!0,selection:!0,type:"deleteContentForward"},()=>{var y,b;let E=a.at(a.position).rightSibling;if(E&&Bd(a,"forward",E))return;if(E){if(a.at(a.position).isLastSibling&&Bd(a,"forward",E.parent,E.parentBranch))return}else{if(E=a.at(a.position),E.isLastSibling&&Bd(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])}):Vs(a,Wa(a.selection),"deleteContentForward")}function Vs(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 ae=E[0];ae.type==="first"&&(ae=ae.rightSibling);const he=E[E.length-1];if(ae===ee&&he===re){const pe=E[0].parent;pe.parent&&pe.type!=="prompt"&&(y=[a.offsetOf(pe.leftSibling),a.offsetOf(pe)])}if(E.length===1&&E[0].type==="placeholder"&&E[0].parent.type==="genfrac"){const pe=E[0].parent,ge=E[0].parentBranch==="below"?"above":"below",we=a.offsetOf(pe.leftSibling);return a.deferNotifications({content:!0,selection:!0,type:b},()=>{var Oe,je;const ct=pe.removeBranch(ge);if(ct.length===1&&ct[0].type==="placeholder")(je=pe.parent)==null||je.removeChild(pe),a.position=Math.max(0,we);else{const bt=pe.parent.addChildrenAfter(ct,pe);(Oe=pe.parent)==null||Oe.removeChild(pe),a.position=a.offsetOf(bt)}})}}return a.deferNotifications({content:!0,selection:!0,type:b},()=>a.deleteAtoms(y))}Oo({deleteAll:a=>a.contentWillChange({inputType:"deleteContent"})&&Vs(a,[0,-1],"deleteContent"),deleteForward:a=>u1(a),deleteBackward:a=>l1(a),deleteNextWord:a=>a.contentWillChange({inputType:"deleteWordForward"})&&Vs(a,[a.anchor,Af(a,a.position,"forward")],"deleteWordForward"),deletePreviousWord:a=>a.contentWillChange({inputType:"deleteWordBackward"})&&Vs(a,[a.anchor,Af(a,a.position,"backward")],"deleteWordBackward"),deleteToGroupStart:a=>a.contentWillChange({inputType:"deleteSoftLineBackward"})&&Vs(a,[a.anchor,a.offsetOf(a.at(a.position).firstSibling)],"deleteSoftLineBackward"),deleteToGroupEnd:a=>a.contentWillChange({inputType:"deleteSoftLineForward"})&&Vs(a,[a.anchor,a.offsetOf(a.at(a.position).lastSibling)],"deleteSoftLineForward"),deleteToMathFieldStart:a=>a.contentWillChange({inputType:"deleteHardLineBackward"})&&Vs(a,[a.anchor,0],"deleteHardLineBackward"),deleteToMathFieldEnd:a=>a.contentWillChange({inputType:"deleteHardLineForward"})&&Vs(a,[a.anchor,-1],"deleteHardLineForward")},{target:"model",audioFeedback:"delete",canUndo:!0,changeContent:!0,changeSelection:!0});var c1=``,d1=``,h1=class{constructor(a,y){this.focusBlurInProgress=!1;var b,E,ee;this.options=Ce(Ee(Ce({},Ph()),{macros:Cn(),registers:_l()}),Ih(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 ae=(E=(b=y.value)!=null?b:this.element.textContent)!=null?E:"";ae=ae.trim();const he=D0(this.options),pe=new wn({type:"root",mode:he,body:Va(ae,{context:this.context})});this.model=new s1(this,he,pe),this.undoManager=new Ng(this.model);const ge=[];if(ge.push(""),ge.push('"),ge.push(""),ge.push(""),ge.push(""),this.element.innerHTML=window.MathfieldElement.createHTML(ge.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=Je.subscribe(()=>Je.update(this.element)),Je.update(this.element),this.field=this.element.querySelector("[part=content]"),this.field.addEventListener("click",Oe=>Oe.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(Ws(this)))},{signal:re}),this._menu=new Sv(Qv(this),{host:this.host}),this.field.addEventListener("contextmenu",this,{signal:re});const we=this.element.querySelector("[part=menu-toggle]");we==null||we.addEventListener("pointerdown",Oe=>{if(Oe.currentTarget!==we||this._menu.state!=="closed")return;this.element.classList.add("tracking");const je=we.getBoundingClientRect();this._menu.modifiers=fu(Oe),this._menu.show({target:we,location:{x:je.left,y:je.bottom},onDismiss:()=>this.element.classList.remove("tracking")}),Oe.preventDefault(),Oe.stopPropagation()},{signal:re}),(this.model.atoms.length<=1||this.disabled||this.readOnly&&!this.hasEditableContent||this.userSelect==="none")&&(we.style.display="none"),this.ariaLiveText=this.element.querySelector("[role=status]"),this.keyboardDelegate=Wm(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(()=>fa(this)),this.resizeObserver.observe(this.field),window.mathVirtualKeyboard.addEventListener("virtual-keyboard-toggle",this,{signal:re}),gd&&!Je.locale.startsWith(gd.locale)&&Fm(Je.locale),Wo!=="ready"&&document.fonts.ready.then(()=>Lh(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(Ws(this)),jh(this))}disconnectFromVirtualKeyboard(){this.connectedToVirtualKeyboard&&(window.removeEventListener("message",this),window.mathVirtualKeyboard.disconnect(),this.connectedToVirtualKeyboard=!1,Ff())}showMenu(a){var y,b;const E=(b=(y=a==null?void 0:a.location)!=null?y:Ns(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:Lt(a)}}get backgroundColorMap(){return a=>{var y,b,E,ee,re,ae;return(ae=(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?ae:at(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=wn.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=Ce({},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=If(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 pe of Object.keys(y)){const ge=this.queryStyle({[pe]:y[pe]});if(ge==="none")return"none";if(ge==="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 ae=re.length;if(ae===0)return"none";let he=0;for(const pe of re){if(pe.type==="first"){ae-=1;continue}pe.style[E]===ee&&(he+=1)}return he===0?"none":he===ae?"all":"some"}get keybindings(){var a,y;if(this._keybindings)return this._keybindings;const[b,E]=Gm(this.options.keybindings,(a=vd())!=null?a:zm());return((y=vd())==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=Ce(Ce({},this.options),Ih(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=wn.serialize([this.model.root],{expandMacro:!1,defaultMode:this.options.defaultMode});("macros"in a||this.model.getValue()!==E)&&ni.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)&&fa(this)}getOptions(a){return gu(this.options,a)}getOption(a){return gu(this.options,a)}handleEvent(a){return Hl(this,null,function*(){var y;if(zo(this)){if(Cf(a)){if(!ld(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(dc(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"&&V0(this,a);break;case"pointerdown":this.userSelect!=="none"&&(V0(this,a),a.shiftKey===!1&&(yield ip(a,this.element.querySelector("[part=container]"),this._menu))&&Wh.stop());break;case"contextmenu":this.userSelect!=="none"&&a.shiftKey===!1&&(yield ip(a,this.element.querySelector("[part=container]"),this._menu))&&Wh.stop();break;case"virtual-keyboard-toggle":this.hasFocus()&&jh(this);break;case"resize":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>zo(this)&&this.onGeometryChange());break;case"scroll":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>zo(this)&&this.onGeometryChange());break;case"wheel":this.onWheel(a);break;default:console.warn("Unexpected event type",a.type)}}})}dispose(){if(!zo(this))return;Je.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,Ug(),Jm(),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 dc(a)==="virtual-keyboard"?(this.focus({preventScroll:!0}),window.mathVirtualKeyboard.executeCommand(a),requestAnimationFrame(()=>window.mathVirtualKeyboard.update(Ws(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=af(this.model,this.model.position))!=null?b:"math");const E=this.undoManager.canUndo();ni.insert(this.model,a,y)&&(fa(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&&pu(this,{interactive:!0});const y=this.field.getBoundingClientRect();let b=null;if(this.model.selectionIsCollapsed)b=Ns(this.field);else{const E=sd(this);if(E.length>0){let ee=-1/0,re=-1/0;for(const ae of E)ae.right>ee&&(ee=ae.right),ae.topE.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;Ey.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&&rt()&&navigator.vibrate(S0),window.MathfieldElement.playSound("keypress")),a==="\\\\"?_0(this.model):a==="&"?B0(this.model):this.model.selectionIsCollapsed?ni.insert(this.model,a,Ce({style:this.model.at(this.model.position).computedStyle},y)):ni.insert(this.model,a,y),this.snapshot(`insert-${this.model.at(this.model.position).type}`),fa(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:ae}=this;ae.deferNotifications({content:!!b||!!y,selection:!0,type:"insertText"},()=>{let he=!1;if(this.flushInlineShortcutBuffer(),this.stopCoalescingUndo(),y&&a!=="latex"){const pe=Va(y,{context:this.context,parseMode:a});ae.collapseSelection("forward");const ge=ae.at(ae.position);ae.position=ae.offsetOf(ge.parent.addChildrenAfter(pe,ge)),he=!0}if(this.model.mode=a,a==="latex"){let pe=ae.selectionIsCollapsed;uc(this,"accept");let ge,we=ae.at(ae.position);if(pe)ge="\\";else{const je=Wa(ae.selection);ge=this.model.getValue(je,"latex");const ct=this.model.extractAtoms(je);ct.length===1&&ct[0].type==="placeholder"&&(ge=y,pe=!0),we=ae.at(je[0])}const Oe=new cd(ge);we.parent.addChildAfter(Oe,we),pe?ae.position=ae.offsetOf(Oe.lastChild):ae.setSelection(ae.offsetOf(Oe.firstChild),ae.offsetOf(Oe.lastChild))}else yd(ae).forEach(pe=>{pe.isError=!1});if(b){const pe=Va(b,{context:this.context,parseMode:re});ae.collapseSelection("forward");const ge=ae.at(ae.position);ae.position=ae.offsetOf(ge.parent.addChildrenAfter(pe,ge)),he=!0}return fa(this),this.undoManager.snapshot(a==="latex"?"insert-latex":"insert"),he}),this.model.mode=a,window.mathVirtualKeyboard.update(Ws(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};ec(y)?ee.range=y:(y.operation==="toggle"&&(ee.operation="toggle"),ee.range=y.range,ee.silenceNotifications=(b=y.silenceNotifications)!=null?b:!1);const re=If(this,a),ae=(E=ee.operation)!=null?E:"set";if(ee.range===void 0&&this.model.selectionIsCollapsed){if(ae==="set"){this.defaultStyle=Ce(Ce({},this.defaultStyle),re);return}const he=Ce({},this.defaultStyle);for(const pe of Object.keys(re))he[pe]===re[pe]?(pe==="color"&&delete he.verbatimColor,pe==="backgroundColor"&&delete he.verbatimBackgroundColor,delete he[pe]):he[pe]=re[pe];this.defaultStyle=he;return}this.model.deferNotifications({content:!ee.silenceNotifications,type:"insertText"},()=>{if(ee.range===void 0)for(const he of this.model.selection.ranges)Ef(this.model,he,re,{operation:ae});else Ef(this.model,ee.range,re,{operation:ae})}),fa(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=Ns(this.field);return a?{x:a.x,y:a.y}:null}setCaretPoint(a,y){const b=kd(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),fa(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,Ee(Ce({},b),{insertionMode:"replaceSelection"}))}b!=null&&b.silenceNotifications&&(this.valueOnFocus=this.getValue()),fa(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),fa(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(Ws(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(Ws(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(Ws(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"?(uc(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(Ws(this)),jh(this)}onContentWillChange(a){var y,b,E;return(E=(b=this.host)==null?void 0:b.dispatchEvent(new InputEvent("beforeinput",Ee(Ce({},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(),pu(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="",cc(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})),fa(this),this.focusBlurInProgress=!1,Ff();const E=new AbortController,ee=E.signal;document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&document.addEventListener("visibilitychange",()=>{zo(this)&&document.visibilityState==="visible"&&this.focus({preventScroll:!0})},{once:!0,signal:ee})},{once:!0,signal:ee}),setTimeout(()=>E.abort(),100)}onInput(a){_f(this,a)}onKeystroke(a){return K0(this,a)}onCompositionStart(a){this.model.deleteAtoms(Wa(this.model.selection));const y=Ns(this.field);y&&requestAnimationFrame(()=>{pu(this),this.keyboardDelegate.moveTo(y.x,y.y-y.height)})}onCompositionUpdate(a){Lg(this.model,a),fa(this)}onCompositionEnd(a){Dg(this.model),_f(this,a,{simulateKeystroke:!0})}onCut(a){if(!this.isSelectionEditable){this.model.announce("plonk");return}this.model.contentWillChange({inputType:"deleteByCut"})&&(this.stopCoalescingUndo(),ni.onCopy(this,a),Vs(this.model,Wa(this.model.selection),"deleteByCut"),this.snapshot("cut"),fa(this))}onCopy(a){ni.onCopy(this,a)}onPaste(a){let y=this.isSelectionEditable;return y&&(y=ni.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(),Eh(this),jh(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=>xn(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 Jf(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&&Jf(E)})):(a.classList.remove("ML__highlight"),a.children&&a.children.length>0&&[...a.children].forEach(E=>{E instanceof HTMLElement&&Jf(E,y)})))}function f1(a,y){var b;if(!ft())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"]};zl().readAloudElement=a,E.synthesizeSpeech(ee,(re,ae)=>{if(re){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${re}`);return}if(!(ae!=null&&ae.AudioStream)){console.log("polly.synthesizeSpeech():",ae);return}const he=new TextDecoder("utf-8").decode(new Uint8Array(ae.AudioStream));zl().readAloudMarks=he.split(` `).map(pe=>pe?JSON.parse(pe):{}),zl().readAloudTokens=[];for(const pe of zl().readAloudMarks)pe.value&&zl().readAloudTokens.push(pe.value);zl().readAloudCurrentMark="",ee.OutputFormat="mp3",ee.SpeechMarkTypes=[],E.synthesizeSpeech(ee,(pe,ge)=>{if(pe){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech("${y}") error:${pe}`);return}if(!(ge!=null&&ge.AudioStream))return;const we=new Uint8Array(ge.AudioStream),Oe=new Blob([we.buffer],{type:"audio/mpeg"}),je=URL.createObjectURL(Oe),ct=zl();ct.readAloudAudio?ct.readAloudAudio.pause():(ct.readAloudAudio=new Audio,ct.readAloudAudio.addEventListener("ended",()=>{const bt=ct.readAloudMathfield;ct.readAloudStatus="ended",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),bt?(pu(bt),ct.readAloudElement=null,ct.readAloudMathfield=null,ct.readAloudTokens=[],ct.readAloudMarks=[],ct.readAloudCurrentMark=""):gp(ct.readAloudElement)}),ct.readAloudAudio.addEventListener("timeupdate",()=>{let bt="";const un=ct.readAloudAudio.currentTime*1e3+100;for(const Kn of ct.readAloudMarks)Kn.time!1:this._isFunction}static set isFunction(y){this._isFunction=y}static loadSound(y){return Hl(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(),ae=yield this.audioContext.decodeAudioData(re);this.audioBuffers[y]=ae}catch(ee){}})}static playSound(y){return Hl(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(Fl[E])if(Fl[E].startsWith("mf."))if(Fl[E].startsWith(`mf.${E}`))b.push(`Option \`${E}\` cannot be used as a constructor option. Use ${Fl[E]}`);else{const ee=Fl[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 ${Fl[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(Sc()&&(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=[Pl("core"),Pl("mathfield"),Pl("mathfield-element"),Pl("ui"),Pl("menu")],this.shadowRoot.appendChild(document.createElement("span"));const b=document.createElement("slot");b.style.display="none",this.shadowRoot.appendChild(b)}else this.shadowRoot.innerHTML="';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=Mu.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?gu(this._mathfield.options,y):Ei.has(this)?Ce({},gu(Ce(Ce({},Ph()),Ih(Ei.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?gu(this._mathfield.options,y):Ei.has(this)?gu(Ce(Ce({},Ph()),Ih(Ei.get(this).options)),y):null}reflectAttributes(){const y=Ph(),b=this._getOptions();Object.keys(Mu.optionsAttributes).forEach(E=>{const ee=gl(E);Mu.optionsAttributes[E]==="on/off"?y[ee]!==b[ee]?this.setAttribute(E,b[ee]?"on":"off"):this.removeAttribute(E):y[ee]!==b[ee]&&(Mu.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(Ei.has(this)){const b=Ce(Ce({},Ei.get(this).options),y);Ei.set(this,Ee(Ce({},Ei.get(this)),{selection:{ranges:b.readOnly?[[0,0]]:[[0,-1]]},options:b}))}else Ei.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))Fl[b]&&console.warn(`\`mf.setOptions({${b}:...})\` -> ${Fl[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(Ei.has(this)){let ae,he,pe;if(tc(y)?([ae,he]=y.ranges[0],pe=b):ec(y)?([ae,he]=y,pe=b):Ps(y)&&Ps(b)?(ae=y,he=b,pe=E):(ae=0,he=-1,pe=y),(pe===void 0||pe==="latex")&&ae===0&&he===-1)return(re=(ee=Ei.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(Ei.has(this)){const ee=Ei.get(this).options;Ei.set(this,{value:y,selection:{ranges:[[-1,-1]],direction:"forward"},options:ee,menuItems:void 0});return}const E=Id(this);Ei.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?kd(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=Tl(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;zs.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),ae=this.shadowRoot,he=re.userSelect!=="none";if(he)ae.host.addEventListener("pointerdown",this,!0);else{const we=ae.querySelector("span");we.style.pointerEvents="none"}ae.host.addEventListener("focus",this,!0),ae.host.addEventListener("blur",this,!0),Sc()||(this.hasAttribute("role")||this.setAttribute("role","math"),this.hasAttribute("aria-label")||this.setAttribute("aria-label","math input field"),this.setAttribute("aria-multiline","false")),he&&!this.hasAttribute("contenteditable")&&this.setAttribute("contenteditable","true"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0");const pe=ae.querySelector("slot:not([name])");if(pe)try{this._style=pe.assignedElements().filter(we=>we.tagName.toLowerCase()==="style").map(we=>we.textContent).join("")}catch(we){console.error(we)}if(this._style){const we=document.createElement("style");we.textContent=this._style,ae.appendChild(we)}let ge="";if(this.hasAttribute("value")?ge=this.getAttribute("value"):ge=(y=pe==null?void 0:pe.assignedNodes().map(we=>we.nodeType===3?we.textContent:"").join("").trim())!=null?y:"",this._mathfield=new h1(ae.querySelector(":host > span"),Ee(Ce({},(E=(b=Ei.get(this))==null?void 0:b.options)!=null?E:Id(this)),{eventSink:this,value:ge})),!Ei.has(this)){this.upgradeProperty("disabled"),this.upgradeProperty("readonly");for(const we of Object.keys(Mu.optionsAttributes))this.upgradeProperty(gl(we))}if(!((ee=this._mathfield)!=null&&ee.model)){this._mathfield=null;return}if(Ei.has(this)){const we=this._mathfield,Oe=Ei.get(this),je=Oe.menuItems;we.model.deferNotifications({content:!1,selection:!1},()=>{const ct=Oe.value;ct!==void 0&&we.setValue(ct),we.model.selection=Oe.selection,Ei.delete(this)}),je&&(this.menuItems=je)}window.queueMicrotask(()=>{this.isConnected&&this.dispatchEvent(new Event("mount",{cancelable:!1,bubbles:!0,composed:!0}))}),Ah()}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=gu(this._mathfield.options,Object.keys(Mu.optionsAttributes).map(ee=>gl(ee)));Ei.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":fa(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",""),Sc()?this._internals.ariaReadOnly="true":this.setAttribute("aria-readonly","true"),this.setAttribute("aria-readonly","true")):(Sc()?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"),Sc()?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:Ee(Ce({},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=Ei.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}Ei.has(this)?Ei.set(this,Ee(Ce({},Ei.get(this)),{menuItems:y})):Ei.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:Id(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:Ei.has(this)?Ei.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,fa(this._mathfield);return}if(Ei.has(this)){Ei.set(this,Ee(Ce({},Ei.get(this)),{selection:y}));return}Ei.set(this,{value:void 0,selection:y,options:Id(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:Ei.has(this)?Ei.get(this).selection.ranges[0][0]:0}set position(y){if(this._mathfield&&(this._mathfield.model.position=y,fa(this._mathfield)),Ei.has(this)){Ei.set(this,Ee(Ce({},Ei.get(this)),{selection:{ranges:[[y,y]]}}));return}Ei.set(this,{value:void 0,selection:{ranges:[[y,y]]},options:Id(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}};Qa.version="0.98.5",Qa._fontsDirectory="./fonts",Qa._soundsDirectory="./sounds",Qa.keypressVibration=!0,Qa._keypressSound={spacebar:"keypress-spacebar.wav",return:"keypress-return.wav",delete:"keypress-delete.wav",default:"keypress-standard.wav"},Qa._plonkSound="plonk.wav",Qa.audioBuffers={},Qa.createHTML=a=>a,Qa._speechEngineRate="100%",Qa._speechEngineVoice="Joanna",Qa._textToSpeechMarkup="",Qa._textToSpeechRules="mathlive",Qa._textToSpeechRulesOptions={},Qa.speakHook=r1,Qa.readAloudHook=f1,Qa._decimalSeparator=".",Qa.fractionNavigationOrder="numerator-denominator",Qa._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 Td=Qa;function gl(a){return a.replace(/[^a-zA-Z\d]+(.)/g,(y,b)=>b.toUpperCase())}function Id(a){const y={readOnly:!1},b=Td.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[gl(E)]=!0:b[E]==="on/off"?ee==="on"?y[gl(E)]=!0:ee==="off"?y[gl(E)]=!1:y[gl(E)]=void 0:b[E]==="number"?y[gl(E)]=Number.parseFloat(ee!=null?ee:"0"):y[gl(E)]=ee}}),y}function Sc(){return!(!("ElementInternals"in window)||!HTMLElement.prototype.attachInternals||!("role"in window.ElementInternals.prototype))}var vp=Td,yp,bp,xp,wp;if(ft()&&!((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=Td,(wp=window.customElements)==null||wp.define("math-field",Td)}function m1(a,y,b){let E=b,ee=0;const re=a.length;for(;E0&&re.push({type:"text",data:he.slice(0,ge)}),pe=!1);let Oe=!1;for(;!Oe;){if(pe){if(we=he.indexOf(y,ge),we===-1){Oe=!0;break}ge!==we&&re.push({type:"text",data:he.slice(ge,we)}),ge=we}else{if(we=m1(b,he,ge+y.length),we===-1){Oe=!0;break}let je=he.slice(ge+y.length,we);ee==="ascii-math"&&([,je]=cu(je,{format:"ascii-math"})),re.push({type:"math",data:je,rawData:he.slice(ge,we+b.length),mathstyle:E}),ge=we+b.length}pe=!pe}ge{E=qh(E,ee,re,"textstyle")}),y!=null&&y.display&&y.display.forEach(([ee,re])=>{E=qh(E,ee,re,"displaystyle")}),b!=null&&b.inline&&b.inline.forEach(([ee,re])=>{E=qh(E,ee,re,"textstyle","ascii-math")}),b!=null&&b.display&&b.display.forEach(([ee,re])=>{E=qh(E,ee,re,"displaystyle","ascii-math")}),E}function g1(a,y){const b=document.createElement("span");b.setAttribute("translate","no");try{const E=""+y.renderToMathML(a)+"";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 Cc(a,y,b,E){var ee;const re=v1(a,b,y||"textstyle",E),ae=(ee=b.renderAccessibleContent)!=null?ee:"";if(re&&/\b(mathml|speakable-text)\b/i.test(ae)){const he=document.createElement("span");if(/\bmathml\b/i.test(ae)&&b.renderToMathML&&he.append(g1(a,b)),/\bspeakable-text\b/i.test(ae)&&b.renderToSpeakableText){const pe=document.createElement("span");pe.setAttribute("translate","no");const ge=b.renderToSpeakableText(a);pe.innerHTML=window.MathfieldElement.createHTML(ge),pe.className="ML__sr-only",he.append(pe)}return he.append(re),he}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 ae=Cc(a,"",y,!0);ae&&re.appendChild(ae)}else{if(!a.trim())return null;const ae=Sp(a,(E=y.TeX)==null?void 0:E.delimiters,(ee=y.asciiMath)==null?void 0:ee.delimiters);if(ae.length===1&&ae[0].type==="text")return null;re=document.createDocumentFragment();for(const he of ae)if(he.type==="text")re.appendChild(document.createTextNode(he.data));else{const pe=Cc(he.data,he.mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);pe&&re.appendChild(pe)}}return re}function Cp(a,y){var b,E,ee,re,ae,he,pe,ge,we,Oe,je,ct,bt,un,Kn,sn;if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const An=(b=a.childNodes[0].textContent)!=null?b:"";if((E=y.TeX)!=null&&E.processEnvironments&&/^\s*\\begin/.test(An)){a.textContent="";const _n=Cc(An,"",y,!0);_n&&a.append(_n);return}const Gn=Sp(An,(ee=y.TeX)==null?void 0:ee.delimiters,(re=y.asciiMath)==null?void 0:re.delimiters);if(Gn.length===1&&Gn[0].type==="math"){a.textContent="";const _n=Cc(Gn[0].data,Gn[0].mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);_n&&a.append(_n);return}if(Gn.length===1&&Gn[0].type==="text")return}for(let An=a.childNodes.length-1;An>=0;An--){const Gn=a.childNodes[An];if(Gn.nodeType===3){const _n=y1((ae=Gn.textContent)!=null?ae:"",y);_n&&(An+=_n.childNodes.length-1,Gn.replaceWith(_n))}else if(Gn.nodeType===1){const _n=Gn,Br=Gn.nodeName.toLowerCase();if(Br==="script"){const Kr=Gn;let Nr;if((he=y.processScriptTypePattern)!=null&&he.test(Kr.type))Nr=(pe=Kr.textContent)!=null?pe:"";else if((ge=y.processMathJSONScriptTypePattern)!=null&&ge.test(Kr.type))try{Nr=(Oe=y.serializeToLatex)==null?void 0:Oe.call(y,JSON.parse((we=Kr.textContent)!=null?we:""))}catch(Ci){console.error(Ci)}if(Nr){let Ci="textstyle";for(const ir of Kr.type.split(";")){const[Zo,$s]=ir.toLowerCase().split("=");Zo.trim()==="mode"&&(Ci=$s.trim()==="display"?"displaystyle":"textstyle")}const Hi=Cc(Nr,Ci,y,!0);Hi&&Kr.parentNode.replaceChild(Hi,Kr)}}else if(((ct=(je=y.processClassPattern)==null?void 0:je.test(_n.className))!=null?ct:!1)||!((un=(bt=y.skipTags)==null?void 0:bt.includes(Br))!=null&&un||(sn=(Kn=y.ignoreClassPattern)==null?void 0:Kn.test(_n.className))!=null&&sn))if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const Nr=a.textContent;a.textContent="";const Ci=Cc(Nr!=null?Nr:"","displaystyle",y,!0);Ci&&a.append(Ci)}else Cp(_n,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 ae=Ce(Ce({},b1),y);ae.ignoreClassPattern=new RegExp((b=ae.ignoreClass)!=null?b:""),ae.processClassPattern=new RegExp((E=ae.processClass)!=null?E:""),ae.processScriptTypePattern=new RegExp((ee=ae.processScriptType)!=null?ee:""),ae.processMathJSONScriptTypePattern=new RegExp((re=ae.processMathJSONScriptType)!=null?re:""),Ah(),Po("core"),Cp(a,ae)}catch(ae){ae instanceof Error?console.error("renderMathInElement(): "+ae.message):console.error("renderMathInElement(): Could not render math for element",a)}}function w1(a,y){const b=Rl.singleton;return b?(b.show(),wd(),b.currentLayer=y,b.render(),b.focus(),!0):!1}function S1(){const a=window.mathVirtualKeyboard;return a.visible?a.hide({animate:!0}):a.show({animate:!0}),!1}Oo({switchKeyboardLayer:w1,toggleVirtualKeyboard:S1,hideVirtualKeyboard:()=>(window.mathVirtualKeyboard.hide({animate:!0}),!1),showVirtualKeyboard:()=>(window.mathVirtualKeyboard.show({animate:!0}),!1)},{target:"virtual-keyboard"});function zl(){var a,y;return(y=globalThis[a=Symbol.for("io.cortexjs.mathlive")])!=null||(globalThis[a]={}),globalThis[Symbol.for("io.cortexjs.mathlive")]}function _1(){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 B1(a){M1(document.body,a)}function C1(a){if(typeof a=="string"){const y=document.getElementById(a);if(y===null)throw new Error(`The element with ID "${a}" could not be found.`);return y}return typeof a=="string"?null:a}function M1(a,y){var b,E,ee,re;const ae=C1(a);if(!ae)return;const he=y!=null?y:{};(b=he.renderToMarkup)!=null||(he.renderToMarkup=$a),(E=he.renderToMathML)!=null||(he.renderToMathML=Rv),(ee=he.renderToSpeakableText)!=null||(he.renderToSpeakableText=Nv),(re=he.serializeToLatex)!=null||(he.serializeToLatex=Fv),x1(ae,he)}var T1={mathlive:"0.98.5"}},16722:function(fn,Jt,fe){"use strict";fe.d(Jt,{Z:function(){return Ce}});const ye=Ee=>typeof Ee=="object"&&Ee!=null&&Ee.nodeType===1,We=(Ee,Fe)=>(!Fe||Ee!=="hidden")&&Ee!=="visible"&&Ee!=="clip",Te=(Ee,Fe)=>{if(Ee.clientHeight{const Ke=(ft=>{if(!ft.ownerDocument||!ft.ownerDocument.defaultView)return null;try{return ft.ownerDocument.defaultView.frameElement}catch(Ve){return null}})(De);return!!Ke&&(Ke.clientHeightftFe||ft>Ee&&Ve=Fe&&rt>=lt?ft-Ee-De:Ve>Fe&&rtlt?Ve-Fe+Ke:0,be=Ee=>{const Fe=Ee.parentElement;return Fe==null?Ee.getRootNode().host||null:Fe},_e=(Ee,Fe)=>{var lt,De,Ke,ft;if(typeof document=="undefined")return[];const{scrollMode:Ve,block:rt,inline:Xe,boundary:St,skipOverflowHiddenElements:Kt}=Fe,Je=typeof St=="function"?St:Vt=>Vt!==St;if(!ye(Ee))throw new TypeError("Invalid target");const dt=document.scrollingElement||document.documentElement,Ze=[];let Me=Ee;for(;ye(Me)&&Je(Me);){if(Me=be(Me),Me===dt){Ze.push(Me);break}Me!=null&&Me===document.body&&Te(Me)&&!Te(document.documentElement)||Me!=null&&Te(Me,Kt)&&Ze.push(Me)}const ze=(De=(lt=window.visualViewport)==null?void 0:lt.width)!=null?De:innerWidth,$e=(ft=(Ke=window.visualViewport)==null?void 0:Ke.height)!=null?ft:innerHeight,{scrollX:pt,scrollY:Ge}=window,{height:Lt,width:at,top:At,right:tt,bottom:Nt,left:tn}=Ee.getBoundingClientRect(),{top:Xt,right:qt,bottom:Ot,left:He}=(Vt=>{const Qe=window.getComputedStyle(Vt);return{top:parseFloat(Qe.scrollMarginTop)||0,right:parseFloat(Qe.scrollMarginRight)||0,bottom:parseFloat(Qe.scrollMarginBottom)||0,left:parseFloat(Qe.scrollMarginLeft)||0}})(Ee);let xe=rt==="start"||rt==="nearest"?At-Xt:rt==="end"?Nt+Ot:At+Lt/2-Xt+Ot,gt=Xe==="center"?tn+at/2-He+qt:Xe==="end"?tt+qt:tn-He;const nn=[];for(let Vt=0;Vt=0&&tn>=0&&Nt<=$e&&tt<=ze&&(Qe===dt&&!Te(Qe)||At>=dn&&Nt<=$t&&tn>=wt&&tt<=Et))return nn;const Dt=getComputedStyle(Qe),Pt=parseInt(Dt.borderLeftWidth,10),ve=parseInt(Dt.borderTopWidth,10),le=parseInt(Dt.borderRightWidth,10),oe=parseInt(Dt.borderBottomWidth,10);let ce=0,de=0;const se="offsetWidth"in Qe?Qe.offsetWidth-Qe.clientWidth-Pt-le:0,Le="offsetHeight"in Qe?Qe.offsetHeight-Qe.clientHeight-ve-oe:0,qe="offsetWidth"in Qe?Qe.offsetWidth===0?0:kt/Qe.offsetWidth:0,vt="offsetHeight"in Qe?Qe.offsetHeight===0?0:Ue/Qe.offsetHeight:0;if(dt===Qe)ce=rt==="start"?xe:rt==="end"?xe-$e:rt==="nearest"?it(Ge,Ge+$e,$e,ve,oe,Ge+xe,Ge+xe+Lt,Lt):xe-$e/2,de=Xe==="start"?gt:Xe==="center"?gt-ze/2:Xe==="end"?gt-ze:it(pt,pt+ze,ze,Pt,le,pt+gt,pt+gt+at,at),ce=Math.max(0,ce+Ge),de=Math.max(0,de+pt);else{ce=rt==="start"?xe-dn-ve:rt==="end"?xe-$t+oe+Le:rt==="nearest"?it(dn,$t,Ue,ve,oe+Le,xe,xe+Lt,Lt):xe-(dn+Ue/2)+Le/2,de=Xe==="start"?gt-wt-Pt:Xe==="center"?gt-(wt+kt/2)+se/2:Xe==="end"?gt-Et+le+se:it(wt,Et,kt,Pt,le+se,gt,gt+at,at);const{scrollLeft:yt,scrollTop:_t}=Qe;ce=vt===0?0:Math.max(0,Math.min(_t+ce/vt,Qe.scrollHeight-Ue/vt+Le)),de=qe===0?0:Math.max(0,Math.min(yt+de/qe,Qe.scrollWidth-kt/qe+se)),xe+=_t-ce,gt+=yt-de}nn.push({el:Qe,top:ce,left:de})}return nn},Re=Ee=>Ee===!1?{block:"end",inline:"nearest"}:(Fe=>Fe===Object(Fe)&&Object.keys(Fe).length!==0)(Ee)?Ee:{block:"start",inline:"nearest"};function Ce(Ee,Fe){if(!Ee.isConnected||!(Ke=>{let ft=Ke;for(;ft&&ft.parentNode;){if(ft.parentNode===document)return!0;ft=ft.parentNode instanceof ShadowRoot?ft.parentNode.host:ft.parentNode}return!1})(Ee))return;const lt=(Ke=>{const ft=window.getComputedStyle(Ke);return{top:parseFloat(ft.scrollMarginTop)||0,right:parseFloat(ft.scrollMarginRight)||0,bottom:parseFloat(ft.scrollMarginBottom)||0,left:parseFloat(ft.scrollMarginLeft)||0}})(Ee);if((Ke=>typeof Ke=="object"&&typeof Ke.behavior=="function")(Fe))return Fe.behavior(_e(Ee,Fe));const De=typeof Fe=="boolean"||Fe==null?void 0:Fe.behavior;for(const{el:Ke,top:ft,left:Ve}of _e(Ee,Re(Fe))){const rt=ft-lt.top+lt.bottom,Xe=Ve-lt.left+lt.right;Ke.scroll({top:rt,left:Xe,behavior:De})}}}}]); }());