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

3432 lines
1.7 MiB

This file contains ambiguous Unicode characters!

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

!(function(){var _l=Math.pow;var gu=(hn,Zt,le)=>new Promise((ge,We)=>{var Pe=Ae=>{try{be(le.next(Ae))}catch(ke){We(ke)}},et=Ae=>{try{be(le.throw(Ae))}catch(ke){We(ke)}},be=Ae=>Ae.done?ge(Ae.value):Promise.resolve(Ae.value).then(Pe,et);be((le=le.apply(hn,Zt)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[5729],{18299:function(hn,Zt,le){"use strict";le.d(Zt,{Z:function(){return ke}});var ge=le(87462),We=le(67294),Pe={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"},et=Pe,be=le(74643),Ae=function(pe,Ie){return We.createElement(be.Z,(0,ge.Z)({},pe,{ref:Ie,icon:et}))},ke=We.forwardRef(Ae)},42922:function(hn,Zt,le){"use strict";le.d(Zt,{Z:function(){return ke}});var ge=le(87462),We=le(67294),Pe={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"},et=Pe,be=le(74643),Ae=function(pe,Ie){return We.createElement(be.Z,(0,ge.Z)({},pe,{ref:Ie,icon:et}))},ke=We.forwardRef(Ae)},25877:function(hn,Zt,le){"use strict";le.d(Zt,{Z:function(){return ke}});var ge=le(87462),We=le(67294),Pe={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"},et=Pe,be=le(74643),Ae=function(pe,Ie){return We.createElement(be.Z,(0,ge.Z)({},pe,{ref:Ie,icon:et}))},ke=We.forwardRef(Ae)},55304:function(hn,Zt,le){"use strict";le.d(Zt,{Z:function(){return ke}});var ge=le(87462),We=le(67294),Pe={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"},et=Pe,be=le(74643),Ae=function(pe,Ie){return We.createElement(be.Z,(0,ge.Z)({},pe,{ref:Ie,icon:et}))},ke=We.forwardRef(Ae)},63237:function(hn,Zt,le){"use strict";le.d(Zt,{Z:function(){return ke}});var ge=le(87462),We=le(67294),Pe={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"},et=Pe,be=le(74643),Ae=function(pe,Ie){return We.createElement(be.Z,(0,ge.Z)({},pe,{ref:Ie,icon:et}))},ke=We.forwardRef(Ae)},99569:function(hn,Zt,le){"use strict";le.d(Zt,{Z:function(){return ke}});var ge=le(87462),We=le(67294),Pe={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"},et=Pe,be=le(74643),Ae=function(pe,Ie){return We.createElement(be.Z,(0,ge.Z)({},pe,{ref:Ie,icon:et}))},ke=We.forwardRef(Ae)},22751:function(hn,Zt,le){"use strict";le.d(Zt,{Z:function(){return ke}});var ge=le(87462),We=le(67294),Pe={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"},et=Pe,be=le(74643),Ae=function(pe,Ie){return We.createElement(be.Z,(0,ge.Z)({},pe,{ref:Ie,icon:et}))},ke=We.forwardRef(Ae)},38308:function(hn,Zt,le){"use strict";le.d(Zt,{Z:function(){return ke}});var ge=le(87462),We=le(67294),Pe={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"},et=Pe,be=le(74643),Ae=function(pe,Ie){return We.createElement(be.Z,(0,ge.Z)({},pe,{ref:Ie,icon:et}))},ke=We.forwardRef(Ae)},17663:function(hn,Zt,le){"use strict";le.d(Zt,{Z:function(){return ke}});var ge=le(87462),We=le(67294),Pe={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"},et=Pe,be=le(74643),Ae=function(pe,Ie){return We.createElement(be.Z,(0,ge.Z)({},pe,{ref:Ie,icon:et}))},ke=We.forwardRef(Ae)},91034:function(hn,Zt,le){"use strict";le.d(Zt,{Z:function(){return ke}});var ge=le(87462),We=le(67294),Pe={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"},et=Pe,be=le(74643),Ae=function(pe,Ie){return We.createElement(be.Z,(0,ge.Z)({},pe,{ref:Ie,icon:et}))},ke=We.forwardRef(Ae)},72395:function(hn,Zt,le){"use strict";le.d(Zt,{Z:function(){return ke}});var ge=le(87462),We=le(67294),Pe={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"},et=Pe,be=le(74643),Ae=function(pe,Ie){return We.createElement(be.Z,(0,ge.Z)({},pe,{ref:Ie,icon:et}))},ke=We.forwardRef(Ae)},53978:function(hn,Zt,le){"use strict";le.d(Zt,{Z:function(){return ke}});var ge=le(87462),We=le(67294),Pe={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"},et=Pe,be=le(74643),Ae=function(pe,Ie){return We.createElement(be.Z,(0,ge.Z)({},pe,{ref:Ie,icon:et}))},ke=We.forwardRef(Ae)},71749:function(){"use strict"},30483:function(){"use strict"},71736:function(hn,Zt){"use strict";Zt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var hn={},Zt="5.0",le={},ge=null,We=!1,Pe=!1,et=null,be=!1,Ae=null,ke=null,Se=0;Se<arguments.length;Se++){var pe=arguments[Se];if(pe!==null)switch(typeof pe){case"number":Zt=pe.toFixed(1);break;case"string":pe.match(new RegExp("^[0-9]\\.[0-9]+$"))?Zt=pe:et=pe;break;case"object":typeof pe.is3D!="undefined"?ge=pe:le=pe;break;case"boolean":We=pe,Pe=!0;break}}ge===null&&(ge={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},le.material_id!==void 0&&!Pe&&(We=!0)),et!==null&&le.id===void 0&&(le.id=et);var Ie="",ot="",Oe=!1,wt=null,lt=null,tt=null,Ge=!1,Me=null,bt=null,zt=null,Ye=null,it=null;le.height!==void 0&&(le.height=Math.round(le.height)),le.width!==void 0&&(le.width=Math.round(le.width));var Be=function(nt){return parseFloat(nt)>4?parseFloat(nt):5};hn.setHTML5Codebase=function(nt,at){ke=nt,Ft(nt,at)},hn.setJavaCodebase=hn.setJavaCodebaseVersion=hn.isCompiledInstalled=hn.setPreCompiledScriptPath=hn.setPreCompiledResourcePath=function(){},hn.setHTML5CodebaseVersion=function(nt,at){var $t=parseFloat(nt);if($t!==NaN&&$t<5){console.log("The GeoGebra HTML5 codebase version "+$t+" is deprecated. Using version latest instead.");return}Ae=nt,_e(nt,at)},hn.getHTML5CodebaseVersion=function(){return lt},hn.getParameters=function(){return le},hn.setFontsCSSURL=function(nt){Ye=nt},hn.setGiacJSURL=function(nt){},hn.setJNLPFile=function(nt){Ie=nt},hn.setJNLPBaseDir=function(nt){},hn.inject=function(){function nt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var at="auto",$t=le.id,kn,Ht=!1,It=0;It<arguments.length;It++){var Ct=arguments[It];typeof Ct=="string"?(Ct=Ct.toLowerCase(),Ct.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?at=Ct:$t=arguments[It]):typeof Ct=="boolean"?Ht=Ct:Ct instanceof HTMLElement&&(kn=Ct)}tn();function tn(){if(!be){setTimeout(tn,200);return}at=nr(at);var pn=kn||document.getElementById($t);if(!pn){console.log("possibly bug on ajax loading? ");return}if(hn.removeExistingApplet(pn,!1),le.width===void 0&&pn.clientWidth&&(le.width=pn.clientWidth),le.height===void 0&&pn.clientHeight&&(le.height=pn.clientHeight),!(le.width&&le.height)&&at==="html5"&&(delete le.width,delete le.height),wt=at,at==="screenshot")Dt(pn,le);else{var Ee=!1;le.hasOwnProperty("playButton")&&le.playButton||le.hasOwnProperty("clickToLoad")&&le.clickToLoad?Ee=!0:le.hasOwnProperty("playButtonAutoDecide")&&le.playButtonAutoDecide&&(Ee=(!xe()||nt())&&Ke()),Ee?(wt="screenshot",Ut(pn,le,Ht,at)):Rt(pn,le,Ht)}}};function xe(){try{return window.self!==window.top}catch(nt){return!0}}function Ke(){return le.hasOwnProperty("screenshotGenerator")&&le.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}hn.getViews=function(){return ge},hn.isJavaInstalled=function(){return!1};var Ue=function(nt){var at=function(It){var Ct=JSON.parse(It),tn=function(ce){return ce.type=="G"||ce.type=="E"},pn=Ct.elements?Ct.elements.filter(tn)[0]:Ct;if(!pn||!pn.url){$t();return}le.fileName=pn.url,ft(pn.settings||{}),ge.is3D=!0;var Ee="https://www.geogebra.org/images/";hn.setPreviewImage(Me||pn.previewUrl,Ee+"GeoGebra_loading.png",Ee+"applet_play.png"),nt()},$t=function(){le.onError&&le.onError(),Sn("Error: Fetching material (id "+le.material_id+") failed.",le)},kn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ht="/materials/"+le.material_id+"?scope=basic";pt("https://"+kn+"/api/proxy.php?path="+encodeURIComponent(Ht),at,$t)};function ft(nt){var at=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function($t){nt[$t]=!!nt[$t]}),at.forEach(function($t){le[$t]===void 0&&nt[$t]!==void 0&&(le[$t]=nt[$t])}),le.showToolBarHelp===void 0&&(le.showToolBarHelp=le.showToolBar)}function pt(nt,at,$t){var kn=new XMLHttpRequest;kn.open("GET",nt),kn.onload=function(){at(kn.responseText)},kn.onerror=$t,kn.send()}hn.isHTML5Installed=function(){return!0},hn.getLoadedAppletType=function(){return wt},hn.setPreviewImage=function(nt,at,$t){Me=nt,bt=at,zt=$t},hn.removeExistingApplet=function(nt,at){var $t;typeof nt=="string"&&(nt=document.getElementById(nt)),wt=null;var kn=null;for($t=0;$t<nt.childNodes.length;$t++){var Ht=nt.childNodes[$t],It=Ht.className;It==="applet_screenshot"?at?(Ht.style.display="block",wt="screenshot"):Ht.style.display="none":It!=="applet_scaler prerender"&&(nt.removeChild(Ht),kn=It&&It.indexOf("appletParameters")!=-1?Ht.id:null,$t--)}var Ct=le.id!==void 0?le.id:kn,tn=window[Ct];tn&&typeof tn.getBase64=="function"&&(tn.remove(),window[Ct]=null)},hn.refreshHitPoints=function(){if(Be(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var nt=hn.getAppletObject();return nt&&typeof nt.recalculateEnvironments=="function"?(nt.recalculateEnvironments(),!0):!1},hn.startAnimation=function(){var nt=hn.getAppletObject();return nt&&typeof nt.startAnimation=="function"?(nt.startAnimation(),!0):!1},hn.stopAnimation=function(){var nt=hn.getAppletObject();return nt&&typeof nt.stopAnimation=="function"?(nt.stopAnimation(),!0):!1},hn.getAppletObject=function(){var nt=le.id!==void 0?le.id:"ggbApplet";return window[nt]},hn.resize=function(){};var Mt=function(nt,at,$t){var kn=document.createElement("param");kn.setAttribute("name",at),kn.setAttribute("value",$t),nt.appendChild(kn)},Qe=function(nt){return nt&&nt!=="false"},Rt=function(nt,at,$t){Be(lt)<=4.2&&($t=!0);var kn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==lt||ggbHTML5LoadedCodebaseIsWebSimple&&!Ge)&&(kn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ht=document.createElement("div");Ht.classList.add("appletParameters","notranslate");var It=at.width,Ct=at.height;if(at.disableAutoScale=at.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():at.disableAutoScale,at.width!==void 0)if(Be(lt)<=4.4)Qe(at.showToolBar)&&(at.height-=7),Qe(at.showAlgebraInput)&&(at.height-=37),at.width<605&&Qe(at.showToolBar)&&(at.width=605,It=605);else{var tn=100;(Qe(at.showToolBar)||Qe(at.showMenuBar))&&(at.hasOwnProperty("customToolBar")&&(at.customToolbar=at.customToolBar),tn=Qe(at.showMenuBar)?245:155),It<tn&&(at.width=tn,It=tn)}Ht.style.border="none",Ht.style.display="inline-block";for(var pn in at)at.hasOwnProperty(pn)&&pn!=="appletOnLoad"&&Ht.setAttribute("data-param-"+pn,at[pn]);Ye&&Ht.setAttribute("data-param-fontscssurl",Ye),hn.resize=function(){GGBAppletUtils.responsiveResize(nt,at)},window.addEventListener("resize",function(Nt){hn.resize()});var Ee=typeof at.appletOnLoad=="function"?at.appletOnLoad:function(){};if(!$t&&at.width!==void 0){at.hasOwnProperty("showSplash")||Ht.setAttribute("data-param-showSplash","false");var ce=nt.querySelector(".applet_scaler.prerender"),se=ce!==null;if(se)var fe=ce.querySelector(".ggb_preview");else{var fe=Xn(It,Ct,at.borderColor,!1);ce=document.createElement("div"),ce.className="applet_scaler",ce.style.position="relative",ce.style.display="block",ce.style.width=It+"px",ce.style.height=Ct+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ce,"66%"),Be(lt)>=5?(at.appletOnLoad=function(Nt){var zn=nt.querySelector(".ggb_preview");zn&&zn.parentNode.removeChild(zn),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ce),window.GGBT_wsf_view&&$(window).trigger("resize"),Ee(Nt)},se||ce.appendChild(fe)):Ht.appendChild(fe),ce.appendChild(Ht),se||nt.appendChild(ce),setTimeout(function(){hn.resize()},1)}else{var de=document.createElement("div");de.className="applet_scaler",de.style.position="relative",de.style.display="block",de.appendChild(Ht),nt.appendChild(de),at.appletOnLoad=function(Nt){hn.resize(),Ee(Nt)}}function oe(Nt,zn){zn&&typeof zn.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Nt,zn.appletOnLoad):renderGGBElement(Nt),Sn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",zn)}function Te(Nt,zn){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Nt,params:zn}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Gn){oe(Gn.article,Gn.params)}),html5AppletsToProcess=null)},Be(lt)<5&&(Nt.className+=" geogebraweb")):oe(Nt,zn)}if(kn){scriptLoadStarted=!0;for(var je=0;je<Ht.childNodes.length;je++){var Et=Ht.childNodes[je].tagName;Et==="TABLE"&&(Ht.removeChild(Ht.childNodes[je]),je--)}if(ggbHTML5LoadedScript!==null){var At=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');At!=null&&At.parentNode.removeChild(At)}var Ot=document.createElement("script"),Bt=function(){Te(Ht,at)};Ot.src=ot+tt,ggbHTML5LoadedCodebaseIsWebSimple=Ge,ggbHTML5LoadedCodebaseVersion=lt,ggbHTML5LoadedScript=Ot.src,Sn("GeoGebra HTML5 codebase loaded: '"+ot+"'.",at),!ke&&(!Ae||Ae=="5.0")?(Ge?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Bt()):ot.requirejs?__webpack_require__.e(12).then(function(){var Nt=[__webpack_require__(12)];Bt.apply(null,Nt)}.bind(this)).catch(__webpack_require__.oe):(Ot.onload=Bt,nt.appendChild(Ot))}else Te(Ht,at);at.height=Ct,at.width=It},Dt=function(nt,at,$t){var kn=Xn(at.width,at.height,at.borderColor,$t),Ht=document.createElement("div");Ht.style.position="relative",Ht.style.display="block",Ht.style.width=at.width+"px",Ht.style.height=at.height+"px",Ht.className="applet_screenshot applet_scaler"+($t?" applet_screenshot_play":""),Ht.appendChild(kn);var It=GGBAppletUtils.getScale(at,nt,$t);$t?(nt.appendChild(wn()),window.GGBT_wsf_view||(nt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ht,"66%"),nt.appendChild(Ht),It!==1&&!isNaN(It)&&(GGBAppletUtils.scaleElement(Ht,It),Ht.style.width=at.width+"px",Ht.style.height=at.height+"px",Ht.parentNode.style.width=at.width*It+"px",Ht.parentNode.style.height=at.height*It+"px"),hn.resize=function(){on(nt,kn,Ht,$t)},window.addEventListener("resize",function(Ct){hn.resize()}),hn.resize()};function on(nt,at,$t,kn){if(nt.contains(at)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(nt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(nt)}var Ht=GGBAppletUtils.getScale(le,nt,kn);$t.parentNode!==null&&(!isNaN(Ht)&&Ht!==1?(GGBAppletUtils.scaleElement($t,Ht),$t.parentNode.style.width=le.width*Ht+"px",$t.parentNode.style.height=le.height*Ht+"px"):(GGBAppletUtils.scaleElement($t,1),$t.parentNode.style.width=le.width+"px",$t.parentNode.style.height=le.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(nt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}hn.onExitFullscreen=function(nt,at){at.appendChild(nt)};var Ut=function(nt,at,$t,kn){Dt(nt,at,!0);for(var Ht=function(){var tn=[];for(Ct=0;Ct<nt.childNodes.length;Ct++)tn.push(nt.childNodes[Ct]);if(window.GGBT_wsf_view){var pn=window.GGBT_wsf_view.renderFullScreen(nt,at.id),Ee=document.getElementById("fullscreencontainer"),ce=jQuery(nt).find(".fullscreencontent");ce.length>0?(pn.remove(),ce.attr("id","fullscreencontent").show(),jQuery(Ee).append(ce),window.dispatchEvent(new Event("resize"))):Rt(pn,at,!1),window.GGBT_wsf_view.launchFullScreen(Ee)}else wt=kn,Rt(nt,at,!1);if(!window.GGBT_wsf_view)for(Ct=0;Ct<tn.length;Ct++)nt.removeChild(tn[Ct])},It=nt.getElementsByClassName("ggb_preview_play"),Ct=0;Ct<It.length;Ct++)It[Ct].addEventListener("click",Ht,!1),It[Ct].addEventListener("ontouchstart",Ht,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(nt),Ke()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},wn=function(){var nt=document.createElement("div");if(nt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var at='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',$t=document.createElement("style");$t.styleSheet?$t.styleSheet.cssText=at:$t.appendChild(document.createTextNode(at)),document.getElementsByTagName("head")[0].appendChild($t)}return nt},Xn=function(nt,at,$t,kn){var Ht=document.createElement("div");Ht.className="ggb_preview",Ht.style.position="absolute",Ht.style.zIndex="90",Ht.style.width=nt-2+"px",Ht.style.height=at-2+"px",Ht.style.top="0px",Ht.style.left="0px",Ht.style.overflow="hidden",Ht.style.backgroundColor="white";var It="lightgrey";$t!==void 0&&($t==="none"?It="transparent":It=$t),Ht.style.border="1px solid "+It;var Ct=document.createElement("img");if(Ct.style.position="relative",Ct.style.zIndex="1000",Ct.style.top="-1px",Ct.style.left="-1px",Me!==null&&Ct.setAttribute("src",Me),Ct.style.opacity=.7,bt!==null){var tn,pn,Ee;if(!kn){tn=document.createElement("img"),tn.style.position="absolute",tn.style.zIndex="1001",tn.style.opacity=1,Ct.style.opacity=.3,pn=360,pn>nt/4*3&&(pn=nt/4*3),Ee=pn/5.8,tn.setAttribute("src",bt),tn.setAttribute("width",pn),tn.setAttribute("height",Ee);var ce=(nt-pn)/2,se=(at-Ee)/2;tn.style.left=ce+"px",tn.style.top=se+"px",Ht.appendChild(tn)}}return Ht.appendChild(Ct),Ht},nr=function(nt){return nt=nt.toLowerCase(),nt==="html5"||nt==="screenshot"?nt:"html5"},Je=["web","webSimple","web3d","tablet","tablet3d","phone"],_e=function(nt,at){if(lt=nt,at){Ft(lt,!0);return}var $t=!We;if($t){var kn=Be(lt);!isNaN(kn)&&kn<4.4&&($t=!1)}var Ht,It;window.location.protocol.substr(0,4)==="http"?Ht=window.location.protocol:Ht="http:";var Ct=lt.indexOf("//");Ct>0?It=lt:Ct===0?It=Ht+lt:It="https://www.geogebra.org/apps/5.2.814.0/";for(var tn in Je)if(lt.slice(Je[tn].length*-1)===Je[tn]||lt.slice((Je[tn].length+1)*-1)===Je[tn]+"/"){Ft(It,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&$t&&!ge.is3D&&!ge.AV&&!ge.SV&&!ge.CV&&!ge.EV2&&!ge.CP&&!ge.PC&&!ge.DA&&!ge.FI&&!ge.PV&&!Qe(le.showToolBar)&&!Qe(le.showMenuBar)&&!Qe(le.showAlgebraInput)&&!Qe(le.enableRightClick)&&(!le.appName||le.appName=="classic")?It+="webSimple/":It+="web3d/",Ft(It,!1)},Ft=function(nt,at){if(nt.requirejs){ot=nt;return}nt.slice(-1)!=="/"&&(nt+="/"),ot=nt,at===null&&(at=nt.indexOf("http")===-1),Oe=at,tt="web.nocache.js",Ge=!1;var $t=ot.split("/");$t.length>1&&(!at&&$t[$t.length-2]==="webSimple"?(tt="webSimple.nocache.js",Ge=!0):Je.indexOf($t[$t.length-2])>=0&&(tt=$t[$t.length-2]+".nocache.js")),$t=nt.split("/"),lt=$t[$t.length-3],lt.substr(0,4)==="test"?lt=lt.substr(4,1)+"."+lt.substr(5,1):(lt.substr(0,3)==="war"||lt.substr(0,4)==="beta")&&(lt="5.0");var kn=parseFloat(lt);kn!==NaN&&kn<5&&nt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+kn+" is deprecated. Using version latest instead."),_e("5.0",at))},Sn=function(nt,at){window.console&&window.console.log&&(!at||typeof at.showLogging=="undefined"||at.showLogging&&at.showLogging!=="false")&&console.log(nt)};le.material_id!==void 0?Ue(an):an();function an(){var nt=Zt;Ae!==null?nt=Ae:parseFloat(nt)<5&&(nt="5.0"),_e(nt,!1),ke!==null&&Ft(ke,Oe),be=!0}return hn},GGBAppletUtils=function(){"use strict";function hn(){return window.GGBT_wsf_edit!==void 0}function Zt(be,Ae){Ae!=1?(be.style.transformOrigin="0% 0% 0px",be.style.webkitTransformOrigin="0% 0% 0px",be.style.transform="scale("+Ae+","+Ae+")",be.style.webkitTransform="scale("+Ae+","+Ae+")",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 le(be,Ae,ke,Se,pe,Ie){var ot=null;if(Ie!=null&&Ie!="")for(var Oe=be.parentNode;Oe!=null;)if((" "+Oe.className+" ").indexOf(" "+Ie+" ")>-1){ot=Oe;break}else Oe=Oe.parentNode;var wt=0,lt=0,tt=0,Ge=0,Me=0,bt=0,zt=0;if(ot)wt=ot.offsetWidth,lt=Math.max(Se?ot.offsetWidth:0,ot.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(wt=Math.min(window.innerWidth,document.documentElement.clientWidth),lt=Math.min(window.innerHeight,document.documentElement.clientHeight),tt=wt):(wt=window.innerWidth,lt=window.innerHeight,tt=window.innerWidth),be){var Ye=be.getBoundingClientRect();Ye.left>0&&Ye.left<=wt&&(pe===void 0||!pe)&&(document.dir==="rtl"?(Me=wt-Ye.width-Ye.left,bt=tt<=480?10:30):(bt=Ye.left,Me=tt<=480?10:30),Ge=bt+Me)}if(be&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var it=be.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ge=40,zt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ge=0,zt=40)}}return be&&((ke===void 0||!ke)&&Ae>0&&Ae+Ge<wt?wt=Ae:wt-=Ge,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ke===void 0||!ke)&&(lt-=zt)),{width:wt,height:lt}}function ge(be,Ae,ke,Se,pe){if(be.isScreenshoGenerator)return 1;var Ie=Se!==void 0&&Se,ot=be.noScaleMargin!=null&&be.noScaleMargin,Oe=function(it){return it&&it!=="false"},wt=Oe(be.autoHeight),lt=le(Ae,be.width,ke,wt,Ie&&window.GGBT_wsf_view||ot,pe),tt=parseInt(lt.width),Ge=be.width,Me=be.height;if(Ge===void 0){var bt=Ae.querySelector(".appletParameters");bt&&(Ge=bt.offsetWidth,Me=bt.offsetHeight)}var zt=tt/Ge,Ye=Ie?1:lt.height/Me;return ke!==void 0&&!ke&&(zt=Math.min(1,zt),Ye=Math.min(1,Ye)),Math.min(zt,Ye)}function We(be,Ae,ke){var Se=1,pe,Ie=!1;if(be.hasOwnProperty("allowUpscale")&&(Ie=be.allowUpscale),be.hasOwnProperty("scale")&&(Se=parseFloat(be.scale),(isNaN(Se)||Se===null||Se===0)&&(Se=1),Se>1&&(Ie=!0)),Ae&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ie=!0),!(be.hasOwnProperty("disableAutoScale")&&be.disableAutoScale))pe=ge(be,Ae,Ie,ke,be.scaleContainerClass);else return Se;return Ie&&(!be.hasOwnProperty("scale")||Se===1)?pe:Math.min(Se,pe)}function Pe(be){var Ae=Math.min(window.innerWidth,document.documentElement.clientWidth),ke=Math.min(window.innerHeight,document.documentElement.clientHeight),Se=be.getBoundingClientRect(),pe=(Ae-Se.width)/2,Ie=(ke-Se.height)/2;Ie<0&&(Ie=0),be.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(pe<40?be.style.left="40px":be.style.left=pe+"px",be.style.top=Ie+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ie<40?be.style.top="40px":be.style.top=Ie+"px",be.style.left=pe+"px")}function et(be,Ae){var ke=be.querySelector(".appletParameters");if(ke){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ae.id!==ke.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(be)}if(ke.parentElement&&/fullscreen/.test(ke.parentElement.className))return;var Se=We(Ae,be);hn()&&ke.setAttribute("data-param-scale",Se);for(var pe=null,Ie=0;Ie<be.childNodes.length;Ie++)if(be.childNodes[Ie].className!==void 0&&be.childNodes[Ie].className.match(/^applet_scaler/)){pe=be.childNodes[Ie];break}if(pe!==null&&pe.querySelector(".noscale")!==null)return;var ot=Ae.id!==void 0?Ae.id:"ggbApplet",Oe=window[ot];(Oe==null||!Oe.recalculateEnvironments)&&pe!==null&&!pe.className.match(/fullscreen/)&&(pe.parentNode.style.transform="",!isNaN(Se)&&Se!==1?(pe.parentNode.style.width=Ae.width*Se+"px",pe.parentNode.style.height=Ae.height*Se+"px",Zt(pe,Se)):(Zt(pe,1),pe.parentNode.style.width=Ae.width+"px",pe.parentNode.style.height=Ae.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Pe(be),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ke).parents(".content-added-content"))}}return{responsiveResize:et,isFlexibleWorksheetEditor:hn,positionCenter:Pe,getScale:We,scaleElement:Zt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var hn=n.location.search;return hn.indexOf(J)!=-1||hn.indexOf(K)!=-1}function q(hn,Zt){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(hn){var Zt=s[L].bindings;s[L].bindings=function(){for(var le=Zt?Zt():{},ge=hn[webModule.__softPermutationId],We=O;We<ge.length;We++){var Pe=ge[We];le[Pe[O]]=Pe[P]}return le}};var t;function u(){return v(),t}function v(){if(!t){var hn=o.createElement(Q);if(hn.id=L,hn.style.cssText=R+S,hn.tabIndex=-1,o.body.appendChild(hn),t=hn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Zt=document.compatMode==U?V:W;t.write(Zt+X),t.close()}}}function w(hn){function Zt(ge){function We(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Pe=We();if(Pe){ge();return}function et(){if(!Pe){if(!We())return;Pe=!0,ge(),o.removeEventListener&&o.removeEventListener(Z,et,!1),be&&clearInterval(be)}}o.addEventListener&&o.addEventListener(Z,et,!1);var be=setInterval(function(){et()},$)}function le(ge){var We=u(),Pe=We.body,et=We.createElement(_);et.language=ab,et.crossOrigin=W,et.src=ge,webModule.__errFn&&(et.onerror=function(){webModule.__errFn(L,new Error(bb+ge))}),Pe.appendChild(et)}Zt(function(){le(hn)})}webModule.__startLoadingFragment=function(hn){return C(hn)},webModule.__installRunAsyncCode=function(hn){var Zt=u(),le=Zt.body,ge=Zt.createElement(_);ge.language=ab,ge.text=hn,le.appendChild(ge),le.removeChild(ge)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(hn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(hn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(hn){var Zt=c[hn];return Zt==null?null:Zt},r=d,webModule.__errFn=e}function B(){function hn(be){var Ae=be.lastIndexOf(rb);Ae==-1&&(Ae=be.length);var ke=be.indexOf(sb);ke==-1&&(ke=be.length);var Se=be.lastIndexOf(tb,Math.min(ke,Ae));return Se>=O?be.substring(O,Se+P):W}function Zt(be){if(!be.match(/^\w+:\/\//)){var Ae=o.createElement(ub);Ae.src=be+vb,be=hn(Ae.src)}return be}function le(){var be=__gwt_getMetaProperty(wb);return be!=null?be:W}function ge(){for(var be=o.getElementsByTagName(_),Ae=O;Ae<be.length;++Ae)if(be[Ae].src.indexOf(xb)!=-1)return hn(be[Ae].src);return W}function We(){var be=o.getElementsByTagName(yb);return be.length>O?be[be.length-P].href:W}function Pe(){var be=o.location;return be.href==be.protocol+zb+be.host+be.pathname+be.search+be.hash}var et=le();return et==W&&(et=ge()),et==W&&(et=We()),et==W&&Pe()&&(et=hn(o.location.href)),et=Zt(et),et}function C(hn){return hn.match(/^\//)||hn.match(/^[a-zA-Z]+:\/\//)?hn:webModule.__moduleBase+hn}function D(){var hn=[],Zt=O,le=[],ge=[];function We(be){var Ae=ge[be](),ke=le[be];if(Ae in ke)return Ae;var Se=[];for(var pe in ke)Se[ke[pe]]=pe;throw r&&r(be,Se,Ae),null}if(__gwt_isKnownPropertyValue=function(be,Ae){return Ae in le[be]},webModule.__getPropMap=function(){var be={};for(var Ae in le)le.hasOwnProperty(Ae)&&(be[Ae]=We(Ae));return be},webModule.__computePropValue=We,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Pe;try{Pe=Cb;var et=Pe.indexOf(Db);et!=-1&&(Zt=parseInt(Pe.substring(et+P),$),Pe=Pe.substring(O,et))}catch(be){}return webModule.__softPermutationId=Zt,C(Pe+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},15476:function(hn,Zt,le){"use strict";le.d(Zt,{Ax:function(){return et},Ds:function(){return be},KI:function(){return ke},SI:function(){return Pe},f1:function(){return We}});var ge=le(11320);function We(Se){let pe=!0;if(Se.length>0){for(let Ie=0;Ie<Se.length;Ie++)if(Se[Ie].compile_success==0||!Se[Ie].compile_success){pe=!1;break}}else pe=!1;return pe}function Pe(Se,pe=""){let Ie=[];for(let ot=0;ot<Se.length;ot++){let Oe=Se[ot],wt=pe?`${pe}/${Oe.name}`:`${Oe.name}`;Ie.push({title:Oe.name,type:Oe.type,isLeaf:Oe.type!=="tree",key:wt})}return Ie}function et(Se,pe,Ie){for(let ot=0;ot<Se.length;ot++){let Oe=Se[ot];if(Oe.key===pe){Oe.children=Ie;break}Oe.children&&et(Oe.children,pe,Ie)}return Se}function be(Se,pe,Ie){let ot;return function(){let Oe=this,wt=arguments,lt=function(){ot=null,Ie||Se.apply(Oe,wt)},tt=Ie&&!ot;clearTimeout(ot),ot=setTimeout(lt,pe),tt&&Se.apply(Oe,wt)}}const Ae=!0,ke=ge.Z.API_SERVER},60580:function(hn,Zt,le){"use strict";le.d(Zt,{Z:function(){return lt}});var ge=le(71577),We=le(67294),Pe=Object.defineProperty,et=Object.defineProperties,be=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,pe=(tt,Ge,Me)=>Ge in tt?Pe(tt,Ge,{enumerable:!0,configurable:!0,writable:!0,value:Me}):tt[Ge]=Me,Ie=(tt,Ge)=>{for(var Me in Ge||(Ge={}))ke.call(Ge,Me)&&pe(tt,Me,Ge[Me]);if(Ae)for(var Me of Ae(Ge))Se.call(Ge,Me)&&pe(tt,Me,Ge[Me]);return tt},ot=(tt,Ge)=>et(tt,be(Ge)),Oe=(tt,Ge)=>{var Me={};for(var bt in tt)ke.call(tt,bt)&&Ge.indexOf(bt)<0&&(Me[bt]=tt[bt]);if(tt!=null&&Ae)for(var bt of Ae(tt))Ge.indexOf(bt)<0&&Se.call(tt,bt)&&(Me[bt]=tt[bt]);return Me},wt=(tt,Ge,Me)=>new Promise((bt,zt)=>{var Ye=xe=>{try{Be(Me.next(xe))}catch(Ke){zt(Ke)}},it=xe=>{try{Be(Me.throw(xe))}catch(Ke){zt(Ke)}},Be=xe=>xe.done?bt(xe.value):Promise.resolve(xe.value).then(Ye,it);Be((Me=Me.apply(tt,Ge)).next())});const lt=tt=>{var Ge=tt,{children:Me}=Ge,bt=Oe(Ge,["children"]);const[zt,Ye]=(0,We.useState)(!1);return We.createElement(ge.ZP,ot(Ie({},bt),{loading:zt,onClick:it=>wt(void 0,null,function*(){try{Ye(!0),yield bt.onClick(it),Ye(!1)}catch(Be){console.error(Be),Ye(!1)}})}),Me)}},63205:function(hn,Zt,le){"use strict";le.d(Zt,{Z:function(){return ot}});var ge=le(67294),We={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Pe=le(94184),et=le.n(Pe),be=le(57953),Ae=le(15979),ke=le(33170),Se=le(28706),pe=(Oe,wt,lt)=>new Promise((tt,Ge)=>{var Me=Ye=>{try{zt(lt.next(Ye))}catch(it){Ge(it)}},bt=Ye=>{try{zt(lt.throw(Ye))}catch(it){Ge(it)}},zt=Ye=>Ye.done?tt(Ye.value):Promise.resolve(Ye.value).then(Me,bt);zt((lt=lt.apply(Oe,wt)).next())}),ot=({data:Oe,className:wt,fullWidth:lt,style:tt={},onClose:Ge,onOk:Me,showFullTools:bt,noAssociationId:zt})=>{const Ye=(0,ge.useRef)(null),it=(0,ge.useRef)(null),Be=(0,ge.useRef)(null),xe=(0,ge.useRef)(null),[Ke,Ue]=(0,ge.useState)(!1),[ft,pt]=(0,ge.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ge.useEffect)(()=>{Be.current||(Be.current=document.createElement("style"),document.head.appendChild(Be.current)),Oe!=null&&Oe.visible?(document.body.setAttribute("data-custom","y-hidden"),Be.current.innerHTML=" html { overflow-y: hidden; }",Oe!=null&&Oe.src&&Mt()):(document.body.removeAttribute("data-custom"),Be.current&&(document.head.removeChild(Be.current),Be.current=null))},[Oe==null?void 0:Oe.visible]);const Mt=()=>pe(void 0,null,function*(){Ue(!0),pt("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ut=yield(0,Se.ZJ)(Oe==null?void 0:Oe.src);Ye.current.src="",Ye.current.src=Ut,Ye.current.onload=function(){on()},Ue(!1),pt("")}),Qe=()=>{document.body.removeAttribute("data-custom"),Be.current.innerHTML=" ",Ge()},Rt=Ut=>pe(void 0,null,function*(){Ue(!0),pt("\u6B63\u5728\u4FDD\u5B58\u4E2D");const wn=yield(0,ke.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Oe.title,file:Ut.dataUrl}});wn!=null&&wn.id&&!zt?(yield(0,ke.ZP)(`/api/attachments/${Oe.id}/add_subitem.json`,{method:"post",body:{subitem_id:wn==null?void 0:wn.id,settings:JSON.stringify(Ut.state)}})).status===0&&Me():wn!=null&&wn.id&&Me(wn),document.body.removeAttribute("data-custom"),Be.current.innerHTML=" ",Ue(!1),pt("")}),Dt=()=>{const Ut=document.querySelector('a[href="https://markerjs.com/"]');Ut&&Ut.parentNode&&(Ut.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(Xn=>{const nr=document.querySelector(Xn.name);nr&&nr.setAttribute("title",Xn.title)})},on=()=>{it.current=new Ae.hP(Ye.current),it.current.targetRoot=xe.current,it.current.addEventListener("render",Rt),it.current.addEventListener("beforeclose",Qe),bt&&(it.current.availableMarkerTypes=it.current.ALL_MARKER_TYPES,it.current.uiStyleSettings.redoButtonVisible=!0,it.current.uiStyleSettings.notesButtonVisible=!0,it.current.uiStyleSettings.zoomButtonVisible=!0,it.current.uiStyleSettings.zoomOutButtonVisible=!0,it.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=it.current.uiStyleSettings,it.current.show(),Oe!=null&&Oe.snapshotData&&it.current.restoreState(Oe.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Dt()},300)};return ge.createElement(ge.Fragment,null,(Oe==null?void 0:Oe.visible)&&ge.createElement(be.Z,{spinning:Ke,tip:ft,style:{position:"absolute"}},ge.createElement("div",{ref:xe,className:et()(We.imageDimensions,wt,lt?We.fullWidth:""),style:tt},ge.createElement("img",{className:We.img,ref:Ye}))))}},36527:function(hn,Zt,le){"use strict";var ge=le(67294),We=le(71230),Pe=le(15746),et=le(66368),be=le(71577),Ae=le(35598),ke=le(71736),Se=le(84279),pe=le(67294);const Ie=(0,ge.forwardRef)(({callback:ot,showSaveButton:Oe,value:wt=""},lt)=>{const tt=(0,ge.useRef)(),Ge=[{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 "}]}]}],Me=[{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}`}]}]}],bt=it=>{tt.current.setValue(tt.current.getValue()+" "+it.value+" ")},zt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:pe.createElement(We.Z,{className:ke.Z.lists,gutter:[10,10]},Ge.map((it,Be)=>pe.createElement(Pe.Z,{flex:"110px",className:ke.Z.item},pe.createElement("div",null,pe.createElement(Ae.Z,{value:`$$${it.value}$$`}),it.name),pe.createElement("div",{className:ke.Z.children},it.children.map((xe,Ke)=>pe.createElement("div",{key:Ke},pe.createElement("h1",null,xe.name),pe.createElement(We.Z,{gutter:[10,10]},xe.data.map((Ue,ft)=>pe.createElement(Pe.Z,{key:ft,onClick:()=>bt(Ue),className:ke.Z.diamond},pe.createElement(Ae.Z,{value:"`$$"+Ue.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:pe.createElement(We.Z,{className:ke.Z.lists,gutter:[10,10]},Me.map((it,Be)=>pe.createElement(Pe.Z,{flex:"110px",className:ke.Z.item},pe.createElement("div",null,pe.createElement(Ae.Z,{value:"`$$"+it.value+"$$`"}),it.name),pe.createElement("div",{className:ke.Z.children},it.children.map((xe,Ke)=>pe.createElement("div",{key:Ke},xe.name&&pe.createElement("h1",null,xe.name),pe.createElement(We.Z,{gutter:[10,10]},xe.data.map((Ue,ft)=>pe.createElement(Pe.Z,{key:ft,onClick:()=>bt(Ue),className:ke.Z.diamond},pe.createElement(Ae.Z,{value:"`$$"+Ue.value+"$$`"}))))))))))}],Ye=()=>{var it=document.createElement("div");it.innerHTML=tt.current.getValue();var Be=it.innerText;return ot&&ot(Be),Be};return(0,ge.useImperativeHandle)(lt,()=>({getData:Ye})),pe.createElement("div",{className:ke.Z.mathWrap},pe.createElement(et.default,{defaultActiveKey:"1",items:zt}),pe.createElement("math-field",{locale:"zh_cn",className:ke.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:tt,style:{width:800,marginTop:30,fontSize:18}},wt||""),Oe&&pe.createElement("div",{className:ke.Z.button},pe.createElement(be.ZP,{size:"large",onClick:Ye,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Zt.Z=Ie},57444:function(hn,Zt,le){"use strict";le.d(Zt,{h:function(){return it}});var ge=le(67294),We=le(11713),Pe=le(22150),et=le(71577),be=le(4631),Ae=le.n(be),ke=le(71749),Se=le(30483),pe=Object.defineProperty,Ie=Object.defineProperties,ot=Object.getOwnPropertyDescriptors,Oe=Object.getOwnPropertySymbols,wt=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,tt=(Be,xe,Ke)=>xe in Be?pe(Be,xe,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Be[xe]=Ke,Ge=(Be,xe)=>{for(var Ke in xe||(xe={}))wt.call(xe,Ke)&&tt(Be,Ke,xe[Ke]);if(Oe)for(var Ke of Oe(xe))lt.call(xe,Ke)&&tt(Be,Ke,xe[Ke]);return Be},Me=(Be,xe)=>Ie(Be,ot(xe));const bt=We.default.Option,zt={labelCol:{span:4},wrapperCol:{span:20}},Ye={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"]};Zt.Z=({callback:Be,onCancel:xe})=>{const[Ke,Ue]=(0,ge.useState)("python");function ft(Mt){Ue(Ye[Mt][1])}function pt(Mt){Be(Mt)}return ge.createElement(Pe.default,Me(Ge({},zt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:pt,style:{width:500}}),ge.createElement(Pe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ge.createElement(We.default,{getPopupContainer:Mt=>Mt.parentNode,onChange:ft},Object.keys(Ye).map(Mt=>ge.createElement(bt,{key:Mt,value:Mt},Ye[Mt][0])))),ge.createElement(Pe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ge.createElement(it,{mode:Ke})),ge.createElement("div",{className:"flex-container flex-end"},ge.createElement(et.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ge.createElement(et.ZP,{type:"ghost",onClick:xe},"\u53D6\u6D88")))};function it({value:Be,onChange:xe,mode:Ke,options:Ue={}}){const ft=(0,ge.useRef)(),[pt,Mt]=(0,ge.useState)();return(0,ge.useEffect)(()=>{if(pt){let Qe=function(Rt){const Dt=Rt.getValue();xe&&xe(Dt)};return pt.on("change",Qe),()=>{pt.off("change",Qe)}}},[pt,xe]),(0,ge.useEffect)(()=>{pt&&pt.setOption("mode",Ke)},[pt,Ke]),(0,ge.useEffect)(()=>{pt&&(Be!==pt.getValue()||Be==="")&&setTimeout(()=>{pt.setValue(Be||"")},300)},[pt,Be]),(0,ge.useEffect)(()=>{if(ft.current&&!pt){const Qe=Ae().fromTextArea(ft.current,Ge({mode:Ke,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ue));Mt(Qe)}},[ft.current,pt]),ge.createElement("div",{className:"my-codemirror-container"},ge.createElement("textarea",{ref:ft}))}},91304:function(hn,Zt,le){"use strict";le.d(Zt,{Z:function(){return hr}});var ge=le(67294),We=le(4631),Pe=le.n(We),et=le(91033),be=le(71749),Ae=le(57341),ke=le(82801),Se=le(88386),pe=le(49047),Ie=le(80785),ot=le(35598),Oe=({value:On="",className:qe,showTextOnly:st,showLines:Lt,style:qt={}})=>{const Ve=(0,ge.useMemo)(()=>"",[On]);return ge.createElement(ge.Fragment,null,ge.createElement("div",{dangerouslySetInnerHTML:{__html:Ve}}))},wt=le(67294),lt=Object.defineProperty,tt=Object.defineProperties,Ge=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,bt=Object.prototype.hasOwnProperty,zt=Object.prototype.propertyIsEnumerable,Ye=(On,qe,st)=>qe in On?lt(On,qe,{enumerable:!0,configurable:!0,writable:!0,value:st}):On[qe]=st,it=(On,qe)=>{for(var st in qe||(qe={}))bt.call(qe,st)&&Ye(On,st,qe[st]);if(Me)for(var st of Me(qe))zt.call(qe,st)&&Ye(On,st,qe[st]);return On},Be=(On,qe)=>tt(On,Ge(qe));let xe=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Ke({onActionCallback:On,title:qe,icon:st,actionName:Lt,className:qt="",children:Ve}){function gt(){On(Lt)}return wt.createElement("a",{title:qe,className:qt,onClick:gt},wt.createElement("i",{className:`${st}`}),Ve)}var Ue=({watch:On,showNullButton:qe,showNullProgramButton:st,onActionCallback:Lt,fullScreen:qt,insertTemp:Ve,hidetoolBar:gt,extraUse:Kt})=>{const Pt=[...xe,{title:`${On?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${On?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return wt.createElement("ul",{className:"markdown-toolbar-container"},!gt&&Pt.map((Gt,Vt)=>wt.createElement("li",{key:Vt},Gt.actionName?wt.createElement(Ke,Be(it({},Gt),{onActionCallback:Lt})):wt.createElement("span",{className:"v-line"}))),qe?wt.createElement("li",null,wt.createElement(Ke,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Lt},wt.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,st?wt.createElement(wt.Fragment,null,wt.createElement("li",null,wt.createElement(Ke,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Lt},wt.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),wt.createElement("li",null,wt.createElement(Ke,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Lt},wt.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Ve&&wt.createElement("li",null,wt.createElement(Ke,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Ve}`,onActionCallback:Lt},wt.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Kt&&wt.createElement("li",null,Kt),wt.createElement("li",{className:"btn-full-screen"},wt.createElement(Ke,{icon:`${qt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:qt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Lt})))},ft=le(76621),pt=le(22150),Mt=le(69677),Qe=le(71577),Rt=Object.defineProperty,Dt=Object.defineProperties,on=Object.getOwnPropertyDescriptors,Ut=Object.getOwnPropertySymbols,wn=Object.prototype.hasOwnProperty,Xn=Object.prototype.propertyIsEnumerable,nr=(On,qe,st)=>qe in On?Rt(On,qe,{enumerable:!0,configurable:!0,writable:!0,value:st}):On[qe]=st,Je=(On,qe)=>{for(var st in qe||(qe={}))wn.call(qe,st)&&nr(On,st,qe[st]);if(Ut)for(var st of Ut(qe))Xn.call(qe,st)&&nr(On,st,qe[st]);return On},_e=(On,qe)=>Dt(On,on(qe));const Ft={labelCol:{span:4},wrapperCol:{span:20}};var Sn=({callback:On,onCancel:qe})=>{function st(Lt){On(Lt)}return ge.createElement(pt.default,_e(Je({},Ft),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:st,style:{width:500}}),ge.createElement(pt.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ge.createElement(Mt.default,null)),ge.createElement(pt.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ge.createElement(Mt.default,null)),ge.createElement("div",{className:"flex-container flex-end"},ge.createElement(Qe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ge.createElement(Qe.ZP,{type:"ghost",onClick:qe},"\u53D6\u6D88")))},an=le(57444),nt=le(70859),at=le(14446),$t=le(71230),kn=le(63205),Ht=le(67294),It=({callback:On,onCancel:qe})=>{const st=document.createElement("canvas"),Lt=st.getContext("2d");st.width=1e3,st.height=800,Lt.fillStyle="#ffffff",Lt.fillRect(0,0,st.width,st.height);const qt=st.toDataURL("image/png");return Ht.createElement(at.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ht.createElement($t.Z,{style:{height:"100vh"}},Ht.createElement(kn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:qt,visible:!0,title:String(Date.now())},onOk:Ve=>{On({src:Ve.url})},onClose:qe})))},Ct=le(72565),tn=le(15746),pn=le(2453),Ee={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ce=le(67294),fe=(0,ge.forwardRef)(({onCancel:On,editImgId:qe,callback:st},Lt)=>{let qt=(0,ge.useRef)(),Ve=(0,ge.useRef)(),gt=(0,ge.useRef)(),Kt=(0,ge.useRef)(!1);const Pt=(0,ge.useRef)(!1);console.log("ref:",Lt);const[Gt,Vt]=(0,ge.useState)(0),[Pn,mr]=(0,ge.useState)("100vh");return(0,ge.useEffect)(()=>{Vt(1);try{indexedDB.databases().then(Vn=>{Vn.forEach(Un=>indexedDB.deleteDatabase(Un.name))})}catch(Vn){}},[]),(0,ge.useImperativeHandle)(Lt,()=>({setHeight:mr})),ce.createElement("div",{ref:Pt,className:"body-overflow-initial"},ce.createElement(Ct.Z,{width:"100vw",height:Pn,footer:null,closable:!0,placement:"bottom",open:!!Gt,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${Ee.drawerWrap}`,onClose:()=>{window.saveDrawData(Vn=>{st({src:`/api/attachments/${Vn}`,id:Vn})})},title:ce.createElement($t.Z,{align:"middle"},ce.createElement(tn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ce.createElement(tn.Z,{onClick:()=>{mr(Pn==="60px"?"100vh":"60px")}},ce.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),ce.createElement(tn.Z,{onClick:()=>{window.saveDrawData(Vn=>{if(Vn===null){pn.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}pn.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),st({src:`/api/attachments/${Vn}`,id:Vn,disabledClose:!0})})}},ce.createElement(Qe.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},ce.createElement("iframe",{src:`${window.ENV==="build"?"/react/build":""}/drawio/src/main/webapp/?id=${qe||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Ve})))}),de=le(11320),oe=le(78045),Te=le(31795);const je=oe.ZP.Group,Et={margin:"0 8px"};var At=({callback:On,onCancel:qe})=>{function st(Lt){On(Lt)}return ge.createElement(pt.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:st},ge.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ge.createElement("span",{style:Et},"\u5355\u5143\u683C\u6570\uFF1A"),ge.createElement("span",{style:Et},"\u884C\u6570"),ge.createElement(pt.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ge.createElement(Te.Z,null)),ge.createElement("span",{style:Et},"\u5217\u6570"),ge.createElement(pt.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ge.createElement(Te.Z,null))),ge.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ge.createElement("span",{style:Et},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ge.createElement(pt.default.Item,{name:"align"},ge.createElement(je,null,ge.createElement(oe.ZP,{value:"default"},ge.createElement("i",{className:"fa fa-align-justify"})),ge.createElement(oe.ZP,{value:"left"},ge.createElement("i",{className:"fa fa-align-left"})),ge.createElement(oe.ZP,{value:"center"},ge.createElement("i",{className:"fa fa-align-center"})),ge.createElement(oe.ZP,{value:"right"},ge.createElement("i",{className:"fa fa-align-right"}))))),ge.createElement("div",{className:"flex-container flex-end"},ge.createElement(Qe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ge.createElement(Qe.ZP,{type:"ghost",onClick:qe},"\u53D6\u6D88")))},Ot=le(47897),Bt=le(61016),Nt=le.n(Bt),Gn=(0,ge.forwardRef)(({use3d:On,width:qe,height:st,callback:Lt,showSaveButton:qt},Ve)=>{const gt=(0,ge.useRef)(),Kt=(0,ge.useRef)(),[Pt,Gt]=(0,ge.useState)(!1),Vt=(0,ge.useRef)({id:gt,appName:"graphing",width:qe||1e3,height:st||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ge.useEffect)(()=>{Kt.current=new(Nt())(Vt.current,!0),window.onload=function(){Kt.current.inject("applet_container")}},[]);const Pn=()=>{var mr=window.ggbApplet.getPNGBase64(1,!0,72);return Lt&&Lt(mr),mr};return(0,ge.useEffect)(()=>{Vt.current.appName=Pt?"3D":"graphing",Kt.current.inject("applet_container")},[Pt]),(0,ge.useEffect)(()=>{Gt(On)},[On]),(0,ge.useImperativeHandle)(Ve,()=>({getImgData:Pn})),ge.createElement(ge.Fragment,null,ge.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:gt}),ge.createElement($t.Z,{align:"middle"},ge.createElement(tn.Z,{flex:1},ge.createElement(Ot.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Pt,onChange:mr=>Gt(mr)})),ge.createElement(tn.Z,null,ge.createElement(Qe.ZP,{size:"large",onClick:Pn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),_t=le(36527),cn=le(25934);const Jn="link",lr="upload-image",En="add-flowchart",wr="draw-image",xi="add-flowchart",ei="code-block",Yr="add-table",Gr="------------",Ai={default:Gr,left:`:${Gr}`,center:`:${Gr}:`,right:`${Gr}:`};var ti=le(99914),ki=(On,qe,st)=>new Promise((Lt,qt)=>{var Ve=Pt=>{try{Kt(st.next(Pt))}catch(Gt){qt(Gt)}},gt=Pt=>{try{Kt(st.throw(Pt))}catch(Gt){qt(Gt)}},Kt=Pt=>Pt.done?Lt(Pt.value):Promise.resolve(Pt.value).then(Ve,gt);Kt((st=st.apply(On,qe)).next())});function Ri(){}let jn=0;const Pi=1e4,va="\u2581",da="@\u2581\u2581@",ya="@\u2581@",ea=`
**\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`,kt=["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 bn(On){return/^\d+$/.test(On)?`${On}px`:On}const In=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",kr={[In+"-B"]:"bold",[In+"-I"]:"italic"},qn={[Jn]:"\u6DFB\u52A0\u94FE\u63A5",[ei]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[lr]:"\u6DFB\u52A0\u56FE\u7247",[wr]:"\u6DFB\u52A0\u753B\u56FE",[En]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Yr]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var hr=({defaultValue:On="",onChange:qe,width:st="100%",height:Lt=400,miniToolbar:qt=!1,isFocus:Ve=!1,watch:gt,insertTemp:Kt,mode:Pt="markdown",id:Gt="markdown-editor-id",showResizeBar:Vt=!1,noStorage:Pn=!1,showNullButton:mr=!1,showNullProgramButton:Vn=!1,hidetoolBar:Un=!1,fullScreen:er=!1,onBlur:rr,onCMBeforeChange:Dr,onFullScreen:dn,className:Hn="",disablePaste:pi=!1,disabled:wi=!1,disabledFill:Zr=!1,placeholder:Or="",values:Li="",extraUse:dr,onAddBlank:ci})=>{const[vn,Yi]=(0,ge.useState)(null),[Di,wa]=(0,ge.useState)(On),[Xi,_i]=(0,ge.useState)(gt),[fa,Gi]=(0,ge.useState)(er),[Ci,ta]=(0,ge.useState)(""),[ka,na]=(0,ge.useState)(0),[Fi,Aa]=(0,ge.useState)(Lt),[Ba,ha]=(0,ge.useState)(!1),oi=(0,ge.useRef)((0,cn.Z)()),vt=(0,ge.useRef)(!1),ht=(0,ge.useRef)(),[Wt,rn]=(0,ge.useState)(0),[Mn,Cr]=(0,ge.useState)(0),Sr=(0,ge.useRef)(),Tr=(0,ge.useRef)(),Fr=(0,ge.useRef)(),_r=(0,ge.useRef)(),ni=(0,ge.useRef)(),di=(0,ge.useRef)(),Ei=()=>ki(void 0,null,function*(){var sn;const nn=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:oi.current}});(sn=nn==null?void 0:nn.attachments)!=null&&sn.length&&(console.log("cm:",vn,Sr),nn.attachments.map(gn=>{gn.content_type.indexOf("image")>-1?vn.replaceSelection(`![,](/api/attachments/${gn.id}?type=${gn.content_type})`):gn.content_type.indexOf("video")>-1?vn.replaceSelection(`<video width="100%" controls src="${de.Z.API_SERVER}/api/attachments/${data.id}"></video>`):gn.content_type.indexOf("pdf")>-1?vn.replaceSelection(`<a href="${de.Z.API_SERVER}/api/attachments/${gn.id}?type=${gn.content_type}&disposition=inline" target="_blank">${gn.name}</a>`):vn.replaceSelection(`[${gn.name}](${de.Z.API_SERVER}/api/attachments/${gn.id}?type=${gn.content_type})`)}))});(0,ge.useEffect)(()=>{const sn=window.scrollY||window.pageYOffset;wa(Li),vn==null||vn.setValue(Li),window.scrollTo(0,sn)},[Li]),(0,ge.useEffect)(()=>{dn==null||dn(fa)},[fa]),(0,ge.useEffect)(()=>{if(Sr.current){let sn=function(gn,xn){var tr;if(pi){xn.preventDefault();return}const Kn=xn.clipboardData;if(Kn){const Nn=Kn.types.toString(),$n=Kn.items;if(Nn==="Files"||Kn.types.indexOf("Files")>-1){if(xn.preventDefault(),Pt=="stex")return;try{let Wn=$n[1];((tr=$n[0])==null?void 0:tr.kind)==="file"&&(Wn=$n[0]);const or=Wn.getAsFile(),He=or.name.split(".").pop();(0,nt.I)(or,$e=>{var Tt,mt,Yt;$e.id?((Tt=or==null?void 0:or.type)==null?void 0:Tt.indexOf("image"))>-1?nn.replaceSelection(`<img width="100%" src="/api/attachments/${$e.id}?type=${$e.content_type})" alt="" />`):((mt=or==null?void 0:or.type)==null?void 0:mt.indexOf("video"))>-1?nn.replaceSelection(`<video width="100%" controls src="/api/attachments/${$e.id}"></video>`):((Yt=or==null?void 0:or.type)==null?void 0:Yt.indexOf("pdf"))>-1?nn.replaceSelection(`<a href="/api/attachments/${$e.id}?type=${or.type}&disposition=inline" target="_blank">${or.name}</a>`):kt.includes(He)?nn.replaceSelection(`<a href="/api/attachments/${$e.id}?type=office&disposition=inline" target="_blank">${or.name}</a>`):nn.replaceSelection(`[${or.name}](/api/attachments/${$e.id}?type=${$e.content_type})`):($e==null?void 0:$e.status)===401&&(pn.ZP.warning(($e==null?void 0:$e.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Wn){pn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const nn=Pe().fromTextArea(Sr.current,{mode:Pt,lineNumbers:!qt,lineWrapping:!0,value:On,autoCloseTags:!Vn,autoCloseBrackets:!0});return nn.on("keyup",function(gn,xn){xn.keyCode===8&&(gn.getValue()==""?nn.setOption("placeholder",Or):nn.setOption("placeholder",null))}),nn.on("keydown",function(gn,xn){if(xn.keyCode===8){var tr=$i(gn);tr&&xn.preventDefault()}}),Ve&&nn.focus(),nn.on("paste",sn),nn.on("dragleave",function(gn,xn){Tr.current.classList.remove("mouse-hover-md")}),wi&&nn.on("beforeChange",function(gn,xn){(xn.origin==="paste"||xn.origin==="+input")&&xn.cancel()}),Yi(nn),()=>{nn.off("paste",sn)}}},[]);const ji=(0,ge.useCallback)(()=>{if(Tr.current)try{}catch(sn){console.log(sn,"---- to set md editor body height")}},[Fi,Tr,fa]);(0,ge.useEffect)(()=>{function sn(){let nn=new et.Z(gn=>{for(let xn of gn)(xn.target.offsetHeight>0||xn.target.offsetWidth>0)&&(ji(),vn.setSize("100%","100%"),vn.refresh())});return nn.observe(Sr.current.parentElement),nn}if(vn){const nn=sn();return()=>{var gn,xn;(gn=Sr.current)!=null&&gn.parentElement&&nn.unobserve((xn=Sr.current)==null?void 0:xn.parentElement)}}},[vn,ji]),(0,ge.useEffect)(()=>{if(vn){let sn=[];for(const[nn,gn]of Object.entries(kr)){let xn={[nn]:()=>{zi(gn)}};sn.push(xn),vn.addKeyMap(xn)}return ht.current=setInterval(()=>{vt.current&&Ei()},4e3),()=>{clearInterval(ht.current);for(let nn of sn)vn.removeKeyMap(nn)}}},[vn]),(0,ge.useEffect)(()=>{er!==fa&&Gi(er)},[er]),(0,ti.Z)(()=>{if(!Pn&&ka>0){let sn=new Date().getTime(),nn=window.sessionStorage.getItem(Gt);sn>=ka+Pi&&(!nn||nn!==Di)&&(window.sessionStorage.setItem(Gt,Di),ha(!0))}},Pi),(0,ge.useEffect)(()=>{_i(gt)},[vn,gt]),(0,ge.useEffect)(()=>{vn&&Ve&&vn.focus()},[vn,Ve]),(0,ge.useEffect)(()=>{if(Xi&&vn){let sn=function(gn){let xn=gn.target;if(_r.current){let tr=xn.scrollTop/xn.scrollHeight;_r.current.scrollTop=_r.current.scrollHeight*tr}};const nn=vn.getScrollerElement();return nn.addEventListener("scroll",sn),()=>{nn.removeEventListener("scroll",sn)}}},[vn,Xi]),(0,ge.useEffect)(()=>{if(vn&&Dr){let sn=function(nn,gn){Dr(nn,gn)};return vn.on("beforeChange",sn),()=>{vn.off("beforeChange",sn)}}},[vn,Dr]),(0,ge.useEffect)(()=>{if(vn&&rr){let sn=function(){rr(vn.getValue())};return vn.on("blur",sn),()=>{vn.off("blur",sn)}}},[vn,rr]);function $i(sn,nn){var gn=sn.getDoc(),xn=gn.getCursor(),tr=gn.getLine(xn.line),Kn=tr.charAt(xn.ch-1),Nn=tr.lastIndexOf("@\u2581@",xn.ch),$n=tr.lastIndexOf("@\u2581\u2581@",xn.ch),Wn=Nn>$n?Nn:$n,or=Nn>$n?3:4;if(da.indexOf(Kn)===-1)return null;if(console.log("change1:",nn,sn,tr,xn,Wn,Nn,$n,Kn),Wn>=0&&xn.ch-Wn<5){var He=Wn+or;return gn.replaceRange("",{line:xn.line,ch:Wn},{line:xn.line,ch:He}),{line:xn.line,ch:He}}return null}(0,ge.useEffect)(()=>{if(vn){let sn=function(nn,gn){const xn=nn.getValue();wa(xn),na(new Date().getTime()),nn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),qe&&(Vn?qe(xn,Xt(xn)):qe(xn))};return vn.on("change",sn),()=>{vn.off("change",sn)}}},[vn,qe]),(0,ge.useEffect)(()=>{if(vn)if(On==null)vn.setValue(""),wa("");else{const sn=window.scrollY||window.pageYOffset;On!==vn.getValue()&&(vn.setValue(On),wa(On),vn.setCursor(wi?1:vn.lineCount(),0),window.scrollTo(0,sn))}},[vn,On]);const zi=(0,ge.useCallback)(sn=>{const nn=vn.getCursor(),gn=vn.getSelection();let xn=gn.split(`
`);switch(sn){case"bold":return vn.replaceSelection("**"+gn+"**"),gn===""&&vn.setCursor(nn.line,nn.ch+2),vn.focus();case"italic":return vn.replaceSelection("*"+gn+"*"),gn===""&&vn.setCursor(nn.line,nn.ch+1),vn.focus();case"code":return vn.replaceSelection("`"+gn+"`"),gn===""&&vn.setCursor(nn.line,nn.ch+1),vn.focus();case"inline-latex":return ta("inline-latex"),vn.focus();case"latex":return vn.replaceSelection("```latex\n"+gn+"\n```"),vn.setCursor(nn.line+1,gn.length+1),vn.focus();case"line-break":return vn.replaceSelection(`<br/>
`),vn.focus();case"list-ul":return gn===""?vn.replaceSelection("- "+gn):vn.replaceSelection(xn.map(tr=>tr===""?"":`- ${tr}`).join(`
`)),vn.focus();case"list-ol":return gn===""?vn.replaceSelection("1. "+gn):vn.replaceSelection(xn.map((tr,Kn)=>tr===""?"":`${Kn+1}. ${tr}`).join(`
`)),vn.focus();case"add-null-ch":ci==null||ci();return;case"add-signal":return gn===""&&vn.setCursor(nn.line,nn.ch),vn.replaceSelection(ya),vn.focus();case"add-multiple":return gn===""&&vn.setCursor(nn.line,nn.ch),vn.replaceSelection(da),vn.focus();case"inster-template-1":return gn===""&&vn.setCursor(nn.line,nn.ch),vn.replaceSelection(ea),vn.focus();case"eraser":return vn.setValue(""),vn.focus();case"trigger-watch":return _i(!Xi),vn.focus();case"trigger-full-screen":return Gi(!fa),vn.focus();case Jn:ta(Jn);return;case ei:ta(ei);return;case lr:ta(lr);return;case wr:ta(wr);return;case"maths-latex":ta("maths-latex");return;case En:ni.current="",sessionStorage.removeItem("file_id"),ta(En);return;case Yr:ta(Yr);return;default:throw new Error}},[vn,Xi,fa]),Le=(0,ge.useCallback)((sn,nn)=>{var gn,xn,tr,Kn,Nn,$n;ta("");const{src:Wn,alt:or,id:He}=sn||{};switch(Ci){case Jn:const{title:fn,link:ln}=sn;return vn.replaceSelection(`[${fn}](${ln})`),vn.focus();case ei:const{language:Ln,content:yn}=sn;return vn.replaceSelection(["```"+Ln,yn,"```"].join(`
`)),vn.focus();case"maths-latex":for(var $e=atob(sn),Tt=new Uint8Array($e.length),mt=0;mt<$e.length;mt++)Tt[mt]=$e.charCodeAt(mt);var Yt=new Blob([Tt],{type:"image/png"});(0,nt.I)(Yt,Br=>{Br.id?vn.replaceSelection(`![,](/api/attachments/${Br.id}?type=${Br.content_type})`):(Br==null?void 0:Br.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":vn.replaceSelection("`$$"+sn+"$$`");break;case xi:if(!He)return;vn.focus(),vn.getValue().indexOf(Wn)===-1?vn.replaceSelection(`<center><img id="${He}" width="80%" src="${Wn}" class="draw-flowchart" alt="${or||""}" /></center>`):document.getElementById(He).src=de.Z.API_SERVER+Wn+"?t="+Date.now();try{setTimeout(()=>{rr(vn.getValue())},100)}catch(Br){}break;case lr:case wr:const Qt=nn,Cn=(tr=(xn=(gn=Qt==null?void 0:Qt.name)==null?void 0:gn.split("."))==null?void 0:xn.pop)==null?void 0:tr.call(xn);return((Kn=Qt==null?void 0:Qt.type)==null?void 0:Kn.indexOf("image"))>-1||!(Qt!=null&&Qt.type)?Qt!=null&&Qt.align||Qt!=null&&Qt.width?vn.replaceSelection(`<p style="text-align:${Qt.align||"initial"}"><img width="${Qt.width?Qt.width+"%":"initial"}" src="${Wn}" alt="${or||""}" /></p>`):vn.replaceSelection(`<img width="100%" src="${Wn}" alt="${or||""}" />`):((Nn=Qt==null?void 0:Qt.type)==null?void 0:Nn.indexOf("video"))>-1?vn.replaceSelection(`<video width="100%" controls src="${Wn}"></video>`):(($n=Qt==null?void 0:Qt.type)==null?void 0:$n.indexOf("pdf"))>-1?vn.replaceSelection(`<a href="${Wn}?type=${Qt.type}&disposition=inline" target="_blank">${Qt.name}</a>`):kt.includes(Cn)?vn.replaceSelection(`<a href="${Wn}?type=office&disposition=inline" target="_blank">${Qt.name}</a>`):vn.replaceSelection(`[${Qt.name}](${Wn})`),vn.focus();case Yr:const{row:Dn,col:ar,align:An}=sn;let gr=`
`;for(let Br=0;Br<Dn;Br++){let br=[],Ar=[];for(let ur=0;ur<ar;ur++)Br===1&&Ar.push(Ai[An]),br.push(" ");Br===1&&(gr+=`| ${Ar.join(" | ")} |
`),gr+=`| ${br.join(ar===1?"":" | ")} |
`}return vn.replaceSelection(gr+`
`),vn.focus();default:throw new Error}},[vn,Ci]),ze=(0,ge.useMemo)(()=>{switch(Ci){case Jn:return ge.createElement(Sn,{callback:Le,onCancel:Fe});case ei:return ge.createElement(an.Z,{callback:Le,onCancel:Fe});case lr:return ge.createElement(nt.Z,{callback:Le,onCancel:Fe});case En:return ge.createElement(fe,{editImgId:ni.current,callback:Le,onCancel:Fe});case Yr:return ge.createElement(At,{callback:Le,onCancel:Fe});case"maths-latex":return ge.createElement(Gn,{showSaveButton:!0,callback:Le});case"inline-latex":return ge.createElement(_t.Z,{showSaveButton:!0,callback:Le});default:return null}},[Ci]);function Fe(){ta("")}(0,ge.useEffect)(()=>{if(Fr.current){let sn=function(Nn){tr=!0,Kn=Nn.pageY},nn=function(){tr=!1},gn=function(Nn){if(tr){let $n=Nn.pageY-Kn;$n<0&&($n=0),$n>300&&($n=300);let Wn=Lt+$n+"px";Aa(Wn)}},xn=Fr.current,tr=!1,Kn=0;return xn.addEventListener("mousedown",sn),document.addEventListener("mousemove",gn),document.addEventListener("mouseup",nn),()=>{xn.removeEventListener("mousedown",sn),document.removeEventListener("mousemove",gn),document.removeEventListener("mouseup",nn)}}},[vn,Fr]),(0,ge.useEffect)(()=>{Aa(Lt)},[Lt]);const Ze=bn(st),rt=bn(Fi),dt={width:Ze,height:rt},yt=(0,ge.useMemo)(()=>{if(ka){let sn=new Date(ka),nn=sn.getHours(),gn=sn.getMinutes(),xn=sn.getSeconds();return nn=nn<10?"0"+nn:nn,gn=gn<10?"0"+gn:gn,xn=xn<10?"0"+xn:xn,`${nn}:${gn}:${xn}`}return 0},[ka]),Xt=sn=>{const nn=[];if(Vn){let gn=-1;sn=sn.replace(/(@▁▁@|@▁@)/g,function(xn,tr,Kn){nn.push({multiLine:xn!==ya})})}return nn};function Jt(){window.sessionStorage.removeItem(Gt),ha(!1),na(0)}function Fn(){ha(!1),na(0),vn.setValue(window.sessionStorage.getItem(Gt))}(0,ge.useEffect)(()=>{qn[Ci]&&Ci!==wr&&Ci!==En&&setTimeout(()=>{const sn=document.getElementsByClassName("markdown-popup-form")[0],nn=window.innerWidth/2-sn.offsetWidth/2,gn=window.innerHeight/2-sn.offsetHeight/2;rn(nn),Cr(gn)},0)},[Ci]);const ir=sn=>{sn.preventDefault();const nn=sn.clientX-Wt,gn=sn.clientY-Mn;document.body.onmousemove=xn=>{let tr=xn.clientX-nn,Kn=xn.clientY-gn;const Nn=document.getElementsByClassName("markdown-popup-form")[0],$n=window.innerWidth-Nn.offsetWidth,Wn=window.innerHeight-Nn.offsetHeight;tr=Math.max(0,Math.min(tr,$n)),Kn=Math.max(0,Math.min(Kn,Wn)),_n(xn.clientX,xn.clientY,nn,gn)&&(rn(tr),Cr(Kn))},document.body.onmouseup=function(){document.body.onmousemove=null}},_n=(sn,nn,gn,xn)=>{const tr=document.body.clientHeight,Kn=document.body.clientWidth;return sn<20&&gn>sn||sn>Kn-20&&gn<sn||nn<20&&xn>nn||nn>tr-20&&xn<nn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ge.createElement(ge.Fragment,null,ge.createElement("div",{className:"markdown-editor-wrapper",ref:Tr},ge.createElement("div",{className:`markdown-editor-container ${Hn} ${Xi?"on-preview":""} ${qt?"mini":""} ${fa?"full-screen":""}`,style:dt},ge.createElement(Ue,{insertTemp:Kt,watch:Xi,fullScreen:fa,showNullButton:mr,showNullProgramButton:Vn,onActionCallback:zi,hidetoolBar:Un,extraUse:dr}),ge.createElement("div",{className:"markdown-editor-body"},ge.createElement("div",{className:"codemirror-container"},ge.createElement("textarea",{ref:Sr,placeholder:Or})),Xi?ge.createElement("div",{ref:_r,className:"preview-container"},Pt==="stex"&&ge.createElement(Oe,{value:Di}),Pt!=="stex"&&ge.createElement(ot.Z,{edit:!0,disabledFill:Zr,showProgramFill:Vn,value:Di,openEditor:sn=>{var nn;ni.current=sn,(nn=di.current)==null||nn.setHeight("100vh"),setTimeout(()=>{ta("add-flowchart")},150)}})):null))),Vt?ge.createElement("a",{ref:Fr,className:"editor-resize"}):null,Ci===wr&&ge.createElement(It,{callback:Le,onCancel:Fe}),Ci===En&&ge.createElement(fe,{ref:di,editImgId:ni.current,callback:Le,onCancel:Fe}),ge.createElement(ft.Z,null,qn[Ci]&&Ci!==wr&&Ci!==En?ge.createElement(at.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Wt,top:Mn},title:ge.createElement("div",{style:{cursor:"move"},onMouseDown:ir},qn[Ci]),open:!0,onCancel:Fe,footer:null,destroyOnClose:!0,width:Ci===En?"1200px":null,height:Ci===En?"80vh":null,className:"markdown-popup-form"},ze):null))}},70859:function(hn,Zt,le){"use strict";le.d(Zt,{Z:function(){return Ke},I:function(){return ft}});var ge=le(22150),We=le(2453),Pe=le(69677),et=le(93421),be=le(31795),Ae=le(78045),ke=le(71577),Se=le(15476),pe=le(67294),Ie=le(52262),ot=le(67294),Oe=Object.defineProperty,wt=Object.defineProperties,lt=Object.getOwnPropertyDescriptors,tt=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,bt=(pt,Mt,Qe)=>Mt in pt?Oe(pt,Mt,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):pt[Mt]=Qe,zt=(pt,Mt)=>{for(var Qe in Mt||(Mt={}))Ge.call(Mt,Qe)&&bt(pt,Qe,Mt[Qe]);if(tt)for(var Qe of tt(Mt))Me.call(Mt,Qe)&&bt(pt,Qe,Mt[Qe]);return pt},Ye=(pt,Mt)=>wt(pt,lt(Mt));const{useForm:it}=ge.default,Be={width:280,marginRight:10},xe={labelCol:{span:5},wrapperCol:{span:19}};var Ke=({callback:pt,onCancel:Mt})=>{const[Qe]=it();let Rt=(0,pe.useRef)();function Dt(wn){Rt.current.width=Qe.getFieldValue("width"),Rt.current.align=Qe.getFieldValue("align"),pt(wn,Rt.current)}function on(wn,Xn){if(wn.status===-1){We.ZP.error(wn.message);return}Qe.setFieldsValue({src:`/api/attachments/${wn.id}`,type:Xn.type})}function Ut(wn){let Xn=wn.target.files[0];Rt.current=Xn,ft(Xn,on)}return ot.createElement(ge.default,Ye(zt({form:Qe},xe),{className:"upload-image-panel",onFinish:Dt,style:{width:470,overflow:"hidden"}}),ot.createElement(ge.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ot.createElement("div",{className:"flex-container"},ot.createElement(ge.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},ot.createElement(Pe.default,{style:Be})),ot.createElement(Ue,{onFileChange:Ut}))),ot.createElement(ge.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ot.createElement(Pe.default,{style:{width:264}})),ot.createElement(ge.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ot.createElement(et.Z,null,ot.createElement(ge.default.Item,{name:"width",style:{margin:0}},ot.createElement(be.Z,{style:{width:264}})),ot.createElement("span",{className:"ml8"},"%"))),ot.createElement(ge.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ot.createElement(Ae.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"}]})),ot.createElement("aside",null,ot.createElement(ge.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ot.createElement(ke.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ot.createElement(ke.ZP,{type:"default",onClick:Mt},"\u53D6\u6D88"))))};function Ue({onFileChange:pt}){return ot.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ot.createElement("input",{type:"file",onChange:pt}))}function ft(pt,Mt){if(!pt)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ie.bg)())throw We.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Qe=new FormData;Qe.append("editormd-image-file",pt),Qe.append("file_param_name","editormd-image-file"),Qe.append("byxhr","true");var Rt=new window.XMLHttpRequest;Rt.withCredentials=!0,Rt.addEventListener("load",function(Dt){Mt(JSON.parse(Dt.target.responseText),pt)},!1),Rt.addEventListener("error",function(Dt){console.error(Dt)},!1),Rt.open("POST",`${Se.KI}/api/attachments.json`),Rt.send(Qe)}},76621:function(hn,Zt,le){"use strict";le.d(Zt,{Z:function(){return Pe}});var ge=le(67294),We=le(73935);class Pe extends ge.Component{constructor(be){super(be);const Ae=window.document;this.node=Ae.createElement("div"),Ae.body.appendChild(this.node)}render(){const{children:be}=this.props;return(0,We.createPortal)(be,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(hn,Zt,le){"use strict";le.d(Zt,{Z:function(){return We}});var ge=le(67294);function We(Pe,et){const be=(0,ge.useRef)();(0,ge.useEffect)(()=>{be.current=Pe}),(0,ge.useEffect)(()=>{function Ae(){be.current()}if(et!==null){let ke=setInterval(Ae,et);return()=>clearInterval(ke)}},[et])}},81765:function(hn,Zt,le){"use strict";le.r(Zt),le.d(Zt,{default:function(){return kn}});var ge=le(67294),We=le(35973),Pe=le(33170),et=le(22150),be=le(2453),Ae=le(71230),ke=le(15746),Se=le(68508),pe=le(46303),Ie=le(71577),ot=le(14446),Oe=le(69677),wt=le(91304),lt=le(60580),tt=le(35598),Ge=le(11320),Me={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"},bt=le(78045),zt=le(78207),Ye={wrap:"wrap___AsKly",link:"link___CnaN3"},it=le(28706),Be=Object.defineProperty,xe=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,ft=(Ht,It,Ct)=>It in Ht?Be(Ht,It,{enumerable:!0,configurable:!0,writable:!0,value:Ct}):Ht[It]=Ct,pt=(Ht,It)=>{for(var Ct in It||(It={}))Ke.call(It,Ct)&&ft(Ht,Ct,It[Ct]);if(xe)for(var Ct of xe(It))Ue.call(It,Ct)&&ft(Ht,Ct,It[Ct]);return Ht},Mt=(Ht,It)=>{var Ct={};for(var tn in Ht)Ke.call(Ht,tn)&&It.indexOf(tn)<0&&(Ct[tn]=Ht[tn]);if(Ht!=null&&xe)for(var tn of xe(Ht))It.indexOf(tn)<0&&Ue.call(Ht,tn)&&(Ct[tn]=Ht[tn]);return Ct},Qe=(Ht,It,Ct)=>new Promise((tn,pn)=>{var Ee=fe=>{try{se(Ct.next(fe))}catch(de){pn(de)}},ce=fe=>{try{se(Ct.throw(fe))}catch(de){pn(de)}},se=fe=>fe.done?tn(fe.value):Promise.resolve(fe.value).then(Ee,ce);se((Ct=Ct.apply(Ht,It)).next())});const{TextArea:Rt}=Oe.default,Dt=Ht=>{var It=Ht,{user:Ct,globalSetting:tn,loading:pn,dispatch:Ee}=It,ce=Mt(It,["user","globalSetting","loading","dispatch"]);const[se]=et.default.useForm();(0,ge.useEffect)(()=>{var de;(0,it.W)((de=Ct.userInfo)==null?void 0:de.login)||(0,zt.o1)(Ee)},[Ct.userInfo.login]);const fe=de=>Qe(void 0,null,function*(){var oe;const Te=yield(0,Pe.ZP)("/api/helps/feedback.json",{method:"post",body:pt({},de)});(Te==null?void 0:Te.status)===0&&We.history.push(`/messages/${(oe=Ct.userInfo)==null?void 0:oe.login}/message_detail?target_ids=1`)});return ge.createElement("section",{className:`${Ye.wrap} bg-white pl30 pr30 pt30`},ge.createElement("div",{className:"c-grey-999 line26"},"\u60F3\u5BF9\u6211\u4EEC\u7684\u5E73\u53F0\u63D0\u4F9B\u529F\u80FD\u5EFA\u8BAE\uFF1F",ge.createElement("br",null),"\u53D1\u73B0\u7F51\u9875\u4E2D\u7684\u95EE\u9898\u6216bug\u60F3\u544A\u8BC9\u6211\u4EEC\uFF1F",ge.createElement("br",null),"\u671F\u671B\u4E0E\u6211\u4EEC\u5C55\u5F00\u5408\u4F5C\uFF1F",ge.createElement("br",null),"\u5728\u8FD9\u91CC\u628A\u4F60\u60F3\u8BF4\u7684\u4E00\u5207\u544A\u8BC9\u6211\u4EEC\u5427\uFF1F"),ge.createElement("div",{className:"c-red-ee4 mt20 mb20"},"* ",ge.createElement(We.Link,{to:"/help/help_center",className:`${Ye.link} c-red-ee4`},"\u770B\u770B\u5E2E\u52A9\u4E2D\u5FC3\u662F\u5426\u6709\u4F60\u60F3\u8981\u7684\u7B54\u6848")),ge.createElement(et.default,{layout:"vertical",form:se,onFinish:fe,initialValues:{question_kind:"\u767B\u5F55\u6CE8\u518C"}},ge.createElement(et.default.Item,{label:"\u95EE\u9898\u5206\u7C7B\uFF1A",name:"question_kind",rules:[{required:!0,message:"\u4E0D\u80FD\u4E3A\u7A7A"}]},ge.createElement(bt.ZP.Group,null,ge.createElement(bt.ZP,{value:"\u767B\u5F55\u6CE8\u518C"},"\u767B\u5F55\u6CE8\u518C"),ge.createElement(bt.ZP,{value:"\u4FE1\u606F\u8BA4\u8BC1"},"\u4FE1\u606F\u8BA4\u8BC1"),ge.createElement(bt.ZP,{value:"\u5B9E\u8BAD\u7F16\u7A0B"},"\u5B9E\u8BAD\u7F16\u7A0B"),ge.createElement(bt.ZP,{value:"\u5B9E\u8BAD\u8BFE\u7A0B"},"\u5B9E\u8BAD\u8BFE\u7A0B"),ge.createElement(bt.ZP,{value:"\u8BFE\u5802"},"\u8BFE\u5802"),ge.createElement(bt.ZP,{value:"\u5176\u5B83"},"\u5176\u5B83"))),ge.createElement(et.default.Item,{label:"\u95EE\u9898\u9875\u9762\u7F51\u5740\uFF1A",name:"url",rules:[{required:!0,message:"\u4E0D\u80FD\u4E3A\u7A7A"}]},ge.createElement(Oe.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"})),ge.createElement(et.default.Item,{label:"\u95EE\u9898\u63CF\u8FF0\uFF1A",name:"description",rules:[{required:!0,message:"\u4E0D\u80FD\u4E3A\u7A7A"}]},ge.createElement(Rt,{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"})),ge.createElement(et.default.Item,null,ge.createElement(Ie.ZP,{type:"primary",htmlType:"submit"},"\u63D0\u4EA4"))))};var on=(0,We.connect)(({user:Ht,loading:It,globalSetting:Ct})=>({user:Ht,globalSetting:Ct,loading:It.models.index}))(Dt),Ut=Object.defineProperty,wn=Object.defineProperties,Xn=Object.getOwnPropertyDescriptors,nr=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,Ft=(Ht,It,Ct)=>It in Ht?Ut(Ht,It,{enumerable:!0,configurable:!0,writable:!0,value:Ct}):Ht[It]=Ct,Sn=(Ht,It)=>{for(var Ct in It||(It={}))Je.call(It,Ct)&&Ft(Ht,Ct,It[Ct]);if(nr)for(var Ct of nr(It))_e.call(It,Ct)&&Ft(Ht,Ct,It[Ct]);return Ht},an=(Ht,It)=>wn(Ht,Xn(It)),nt=(Ht,It)=>{var Ct={};for(var tn in Ht)Je.call(Ht,tn)&&It.indexOf(tn)<0&&(Ct[tn]=Ht[tn]);if(Ht!=null&&nr)for(var tn of nr(Ht))It.indexOf(tn)<0&&_e.call(Ht,tn)&&(Ct[tn]=Ht[tn]);return Ct},at=(Ht,It,Ct)=>new Promise((tn,pn)=>{var Ee=fe=>{try{se(Ct.next(fe))}catch(de){pn(de)}},ce=fe=>{try{se(Ct.throw(fe))}catch(de){pn(de)}},se=fe=>fe.done?tn(fe.value):Promise.resolve(fe.value).then(Ee,ce);se((Ct=Ct.apply(Ht,It)).next())});const $t=Ht=>{var It=Ht,{user:Ct,globalSetting:tn,loading:pn,dispatch:Ee}=It,ce=nt(It,["user","globalSetting","loading","dispatch"]),se,fe,de,oe,Te,je,Et;const[At,Ot]=(0,ge.useState)({content:"",message:"",status:0,contacts:[],address:"",data:[]}),[Bt,Nt]=(0,ge.useState)(!0),[zn]=et.default.useForm(),Gn=(0,We.useParams)(),_t=(0,We.useLocation)(),[cn,Jn]=(0,ge.useState)(null),[lr,En]=(0,ge.useState)(0),[wr,xi]=(0,ge.useState)(!1),[ei,Yr]=(0,ge.useState)(!1),[Gr,Ai]=(0,ge.useState)(cn==null?void 0:cn.content),ti=[{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(jn=>{var Pi;return(Pi=tn==null?void 0:tn.setting)!=null&&Pi.is_local?jn.name!=="\u5173\u4E8E\u6211\u4EEC":!0}),ki=()=>at(void 0,null,function*(){var jn,Pi,va,da;_t.pathname.indexOf("/feedback")===-1&&Ot(yield(0,Pe.ZP)(`/api/helps/${(Pi=(jn=ti.filter(ya=>ya.key===Gn.id))==null?void 0:jn[0])==null?void 0:Pi.id}.json`,{method:"get"})),Nt(!1),(0,it.Dk)((da=(va=ti.filter(ya=>ya.key===Gn.id))==null?void 0:va[0])==null?void 0:da.name)});function Ri(){return at(this,null,function*(){let jn=yield(0,Pe.ZP)("/api/helps/update_content.json",{method:"put",body:{type:Gn.id,content:Gr}});(jn==null?void 0:jn.status)===0&&(be.ZP.info("\u63D0\u4EA4\u6210\u529F"),xi(!1),Nt(!0),ki())})}return(0,ge.useEffect)(()=>{Nt(!0),ki()},[Gn.id]),ge.createElement("section",null,ge.createElement("aside",{className:"edu-container mt30"},ge.createElement(Ae.Z,{gutter:[20,20]},ge.createElement(ke.Z,null,ge.createElement(Se.default,{className:Me.menu,style:{width:174},defaultSelectedKeys:[(se=ti.filter(jn=>jn.key===Gn.id))==null?void 0:se[0].key],mode:"inline"},ti.map(function(jn,Pi){return ge.createElement(Se.default.Item,{key:jn.key},ge.createElement(We.Link,{to:`/help/${jn.key}`,onClick:()=>{xi(!1),Jn(null)}},jn.name))}))),ge.createElement(ke.Z,{flex:"1"},ge.createElement("h1",{className:Me.title},(fe=ti.filter(jn=>jn.key===Gn.id))==null?void 0:fe[0].name,((de=ti.filter(jn=>jn.key===Gn.id))==null?void 0:de[0].editable)&&((oe=Ct==null?void 0:Ct.userInfo)==null?void 0:oe.role)===1&&ge.createElement("a",{style:{float:"right",color:"#165DFF"},onClick:()=>at(void 0,null,function*(){xi(!0);let jn=yield(0,Pe.ZP)("/api/helps/edit_content.json",{params:{type:Gn.id}});(jn==null?void 0:jn.status)===0&&(Jn(jn),console.log(jn))})},ge.createElement("i",{className:"iconfont icon-bianji10 font14",style:{color:"#165DFF"}})," \u7F16\u8F91")),ge.createElement("div",{className:"minH500"},Gn.id==="feedback"?ge.createElement(on,null):ge.createElement(pe.Z,{loading:Bt},ge.createElement("div",{className:[Me.content,"bg-white pl30 pr30 pt30"].join(" ")},wr?ge.createElement("div",null,ge.createElement(wt.Z,{defaultValue:cn==null?void 0:cn.content,onChange:jn=>Ai(jn)}),ge.createElement("div",{className:Me.btns},ge.createElement(Ie.ZP,{className:Me.cancel,onClick:()=>xi(!1)},"\u53D6\u6D88"),ge.createElement(lt.Z,{className:Me.confirm,type:"primary",onClick:Ri},"\u4FDD\u5B58\u66F4\u6539"))):ge.createElement("div",null,ge.createElement(tt.Z,{value:At.content||""})),(Te=At.contacts)==null?void 0:Te.map(function(jn,Pi){var va;return ge.createElement("ul",{key:Pi,className:Me.contcats},((va=Ct==null?void 0:Ct.userInfo)==null?void 0:va.role)===1&&ge.createElement("a",{style:{float:"right",color:"#165DFF"},onClick:()=>{Yr(!0),En(Pi+1),zn.setFieldsValue({name:jn.name,qq:jn.qq,mail:jn.mail})}},ge.createElement("i",{className:"iconfont icon-bianji10 font14",style:{color:"#165DFF"}})," \u7F16\u8F91"),ge.createElement("h1",null,jn.type),ge.createElement("li",null,ge.createElement("span",null,"\u8054\u7CFB\u4EBA:"),jn.name),ge.createElement("li",null,ge.createElement("span",null,"QQ:"),jn.qq),ge.createElement("li",null,ge.createElement("span",null,"Email:"),jn.mail))}),At.address&&ge.createElement("ul",{className:Me.contcats},((je=Ct==null?void 0:Ct.userInfo)==null?void 0:je.role)===1&&ge.createElement("a",{style:{float:"right",color:"#165DFF"},onClick:()=>{Yr(!0),En(4),zn.setFieldsValue({address:At.address})}},ge.createElement("i",{className:"iconfont icon-bianji10 font14",style:{color:"#165DFF"}})," \u7F16\u8F91"),ge.createElement("h1",null,"\u516C\u53F8\u5730\u5740"),ge.createElement("li",null,At.address)),(Et=At.data)==null?void 0:Et.map(function(jn,Pi){var va;return ge.createElement("div",{className:Me.cooperatives},ge.createElement("h1",null,jn.name),ge.createElement(Ae.Z,{gutter:[10,20]},(va=jn.values)==null?void 0:va.map(function(da,ya){return ge.createElement(ke.Z,{span:6},ge.createElement("div",{className:Me.imgWrp},ge.createElement("img",{src:Ge.Z.IMG_SERVER+da.img})))})))}))))))),ge.createElement(ot.default,{centered:!0,title:"\u7F16\u8F91",open:ei,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",destroyOnClose:!0,onCancel:()=>{Yr(!1)},onOk:()=>at(void 0,null,function*(){const jn=Sn({},yield zn.validateFields());(yield(0,Pe.ZP)("/api/helps/update_contact.json",{method:"put",body:an(Sn({},jn),{type:lr})})).status===0&&(be.ZP.success("\u4FEE\u6539\u6210\u529F"),ki(),Yr(!1))})},ge.createElement(et.default,{form:zn,labelAlign:"right",labelCol:{span:4},scrollToFirstError:!0},lr!==4&&ge.createElement(et.default.Item,{label:"\u8054\u7CFB\u4EBA",name:"name",placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u4EBA"},ge.createElement(Oe.default,{maxLength:60,size:"large",style:{height:40,marginTop:"-4px"}})),lr!==4&&ge.createElement(et.default.Item,{label:"QQ",name:"qq",placeholder:"\u8BF7\u8F93\u5165QQ"},ge.createElement(Oe.default,{maxLength:60,size:"large",style:{height:40,marginTop:"-4px"}})),lr!==4&&ge.createElement(et.default.Item,{label:"Email",name:"mail",placeholder:"\u8BF7\u8F93\u5165Email"},ge.createElement(Oe.default,{maxLength:60,size:"large",style:{height:40,marginTop:"-4px"}})),lr===4&&ge.createElement(et.default.Item,{label:"\u516C\u53F8\u5730\u5740",name:"address",placeholder:"\u8BF7\u8F93\u5165\u516C\u53F8\u5730\u5740"},ge.createElement(Oe.default,{maxLength:60,size:"large",style:{height:40,marginTop:"-4px"}})))))};var kn=(0,We.connect)(({user:Ht,loading:It,globalSetting:Ct})=>({user:Ht,globalSetting:Ct,loading:It.models.index}))($t)},78207:function(hn,Zt,le){"use strict";le.d(Zt,{rX:function(){return it},pW:function(){return Be},gy:function(){return xe},xY:function(){return Ye},O5:function(){return zt},tJ:function(){return lt},o1:function(){return tt},Rd:function(){return bt}});var ge=le(35973),We=le(14446),Pe=le(96074),et=le(2453),be=le(52262),Ae=le(28706),ke=le(55304),Se=le(25510),pe="data:image/png;base64,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",Ie=le.p+"static/newqrcode.a8740efb.png",ot=le(32637),Oe=le(67294),wt=(Ke,Ue,ft)=>new Promise((pt,Mt)=>{var Qe=on=>{try{Dt(ft.next(on))}catch(Ut){Mt(Ut)}},Rt=on=>{try{Dt(ft.throw(on))}catch(Ut){Mt(Ut)}},Dt=on=>on.done?pt(on.value):Promise.resolve(on.value).then(Qe,Rt);Dt((ft=ft.apply(Ke,Ue)).next())});const lt=(Ke,Ue=!1)=>!!(tt(Ke)&&Ge(Ue)),tt=Ke=>(0,be.bg)()?!0:(Ke({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),Ge=(Ke=!1)=>{var Ue;const{user:ft}=(0,ge.getDvaApp)()._store.getState();return(Ue=ft.userInfo)!=null&&Ue.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,Ae.xg)("/account/profile/edit"),Me()}}),!1)},Me=()=>{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()}})},bt=()=>{We.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:Oe.createElement("div",{style:{textAlign:"center"}},Oe.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"),Oe.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:ot}),Oe.createElement("div",{style:{color:"#666666",fontSize:14,marginTop:15}},"\u6DFB\u52A0\u5BA2\u670D\u4EBA\u5458\u5FAE\u4FE1\uFF0C\u83B7\u5F97\u66F4\u591A\u652F\u6301"))})},zt=()=>{var Ke;const{user:Ue}=(0,ge.getDvaApp)()._store.getState();return(Ke=Ue.userInfo)!=null&&Ke.professional_certification?!0:(We.default.confirm({title:"\u63D0\u793A",centered:!0,content:Oe.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,Ae.xg)("/account/certification")}}),!1)},Ye=()=>(0,be.V9)()?!0:(We.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:Oe.createElement("div",{className:"tc",style:{marginLeft:-38}},Oe.createElement("p",null,"\u626B\u7801\u52A0\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),Oe.createElement("img",{src:Ie,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),it=(Ke,Ue)=>Ke?!0:(We.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:Oe.createElement("div",null,Oe.createElement("p",null,Ue||"\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"),Oe.createElement("div",{style:{marginLeft:"110px"}},Oe.createElement("img",{src:pe,width:200}),Oe.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,Ae.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),Be=Ke=>{We.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:Oe.createElement("div",null,Oe.createElement("div",null,Oe.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"),Oe.createElement(Pe.Z,null),Oe.createElement("p",{style:{color:"#666666",fontSize:12}}," ",Oe.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 ",Oe.createElement("a",null,Ke),"\u5929\u3002"),Oe.createElement("p",{style:{color:"#666666",fontSize:12}}," ",Oe.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")),Oe.createElement("div",{style:{textAlign:"center",marginTop:30}},Oe.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Se,alt:"\u4E8C\u7EF4\u7801",width:160})))})},xe=(Ke,Ue="")=>{const{shixunsDetail:{detail:ft}}=(0,ge.getDvaApp)()._store.getState();if((ft==null?void 0:ft.public)===2||(ft==null?void 0:ft.public)===1||(ft==null?void 0:ft.shixun_status)===3){let pt="";return(ft==null?void 0:ft.public)===2&&(pt="\u5DF2\u516C\u5F00"),(ft==null?void 0:ft.public)===1&&(pt="\u5F85\u5BA1\u6838"),(ft==null?void 0:ft.shixun_status)===3&&(pt="\u5DF2\u5173\u95ED"),We.default.info({centered:!0,icon:Oe.createElement(ke.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:Oe.createElement("div",{className:"tc",style:{marginLeft:-38}},Oe.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},Oe.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",pt,"\uFF0C",Ue,"\u3002"),Oe.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),Oe.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Se,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(ft==null?void 0:ft.shixun_status)===2?(We.default.confirm({centered:!0,icon:Oe.createElement(ke.Z,null),title:"\u63D0\u793A",content:Oe.createElement("div",null,Oe.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",Ue,"\u3002"),Oe.createElement("br",null),Oe.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:Oe.createElement(ke.Z,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>wt(void 0,null,function*(){(yield Ke({type:"shixunsDetail/cancelRelease",payload:{id:ft==null?void 0:ft.identifier}})).status!==401&&(et.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),Ke({type:"shixunsDetail/getShixunsDetail",payload:{id:ft==null?void 0:ft.identifier}}),Ke({type:"practiceSetting/getCommonData",payload:{id:ft==null?void 0:ft.identifier}}))})})}}),!0):!1}},9708:function(hn,Zt,le){"use strict";le.d(Zt,{F:function(){return be},Z:function(){return et}});var ge=le(94184),We=le.n(ge);const Pe=null;function et(Ae,ke,Se){return We()({[`${Ae}-status-success`]:ke==="success",[`${Ae}-status-warning`]:ke==="warning",[`${Ae}-status-error`]:ke==="error",[`${Ae}-status-validating`]:ke==="validating",[`${Ae}-has-feedback`]:Se})}const be=(Ae,ke)=>ke||Ae},88258:function(hn,Zt,le){"use strict";var ge=le(67294),We=le(53124),Pe=le(32983);const et=be=>{const{componentName:Ae}=be,{getPrefixCls:ke}=(0,ge.useContext)(We.E_),Se=ke("empty");switch(Ae){case"Table":case"List":return ge.createElement(Pe.Z,{image:Pe.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ge.createElement(Pe.Z,{image:Pe.Z.PRESENTED_IMAGE_SIMPLE,className:`${Se}-small`});default:return ge.createElement(Pe.Z,null)}};Zt.Z=et},96074:function(hn,Zt,le){"use strict";le.d(Zt,{Z:function(){return Oe}});var ge=le(94184),We=le.n(ge),Pe=le(67294),et=le(53124),be=le(14747),Ae=le(67968),ke=le(45503);const Se=wt=>{const{componentCls:lt,sizePaddingEdgeHorizontal:tt,colorSplit:Ge,lineWidth:Me,textPaddingInline:bt,orientationMargin:zt,verticalMarginInline:Ye}=wt;return{[lt]:Object.assign(Object.assign({},(0,be.Wf)(wt)),{borderBlockStart:`${Me}px solid ${Ge}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:Ye,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${Me}px solid ${Ge}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${wt.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${lt}-with-text`]:{display:"flex",alignItems:"center",margin:`${wt.dividerHorizontalWithTextGutterMargin}px 0`,color:wt.colorTextHeading,fontWeight:500,fontSize:wt.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${Ge}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${Me}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${lt}-with-text-left`]:{"&::before":{width:`${zt*100}%`},"&::after":{width:`${100-zt*100}%`}},[`&-horizontal${lt}-with-text-right`]:{"&::before":{width:`${100-zt*100}%`},"&::after":{width:`${zt*100}%`}},[`${lt}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:bt},"&-dashed":{background:"none",borderColor:Ge,borderStyle:"dashed",borderWidth:`${Me}px 0 0`},[`&-horizontal${lt}-with-text${lt}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${lt}-dashed`]:{borderInlineStartWidth:Me,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${lt}-with-text`]:{color:wt.colorText,fontWeight:"normal",fontSize:wt.fontSize},[`&-horizontal${lt}-with-text-left${lt}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${lt}-inner-text`]:{paddingInlineStart:tt}},[`&-horizontal${lt}-with-text-right${lt}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${lt}-inner-text`]:{paddingInlineEnd:tt}}})}};var pe=(0,Ae.Z)("Divider",wt=>{const lt=(0,ke.TS)(wt,{dividerHorizontalWithTextGutterMargin:wt.margin,dividerHorizontalGutterMargin:wt.marginLG,sizePaddingEdgeHorizontal:0});return[Se(lt)]},wt=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:wt.marginXS})),Ie=function(wt,lt){var tt={};for(var Ge in wt)Object.prototype.hasOwnProperty.call(wt,Ge)&&lt.indexOf(Ge)<0&&(tt[Ge]=wt[Ge]);if(wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,Ge=Object.getOwnPropertySymbols(wt);Me<Ge.length;Me++)lt.indexOf(Ge[Me])<0&&Object.prototype.propertyIsEnumerable.call(wt,Ge[Me])&&(tt[Ge[Me]]=wt[Ge[Me]]);return tt},Oe=wt=>{const{getPrefixCls:lt,direction:tt,divider:Ge}=Pe.useContext(et.E_),{prefixCls:Me,type:bt="horizontal",orientation:zt="center",orientationMargin:Ye,className:it,rootClassName:Be,children:xe,dashed:Ke,plain:Ue,style:ft}=wt,pt=Ie(wt,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Mt=lt("divider",Me),[Qe,Rt]=pe(Mt),Dt=zt.length>0?`-${zt}`:zt,on=!!xe,Ut=zt==="left"&&Ye!=null,wn=zt==="right"&&Ye!=null,Xn=We()(Mt,Ge==null?void 0:Ge.className,Rt,`${Mt}-${bt}`,{[`${Mt}-with-text`]:on,[`${Mt}-with-text${Dt}`]:on,[`${Mt}-dashed`]:!!Ke,[`${Mt}-plain`]:!!Ue,[`${Mt}-rtl`]:tt==="rtl",[`${Mt}-no-default-orientation-margin-left`]:Ut,[`${Mt}-no-default-orientation-margin-right`]:wn},it,Be),nr=Pe.useMemo(()=>typeof Ye=="number"?Ye:/^\d+$/.test(Ye)?Number(Ye):Ye,[Ye]),Je=Object.assign(Object.assign({},Ut&&{marginLeft:nr}),wn&&{marginRight:nr});return Qe(Pe.createElement("div",Object.assign({className:Xn,style:Object.assign(Object.assign({},Ge==null?void 0:Ge.style),ft)},pt,{role:"separator"}),xe&&bt!=="vertical"&&Pe.createElement("span",{className:`${Mt}-inner-text`,style:Je},xe)))}},72565:function(hn,Zt,le){"use strict";le.d(Zt,{Z:function(){return oi}});var ge=le(94184),We=le.n(ge),Pe=le(1413),et=le(97685),be=le(67294),Ae=le(73935);function ke(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Se={};function pe(vt,ht){}function Ie(vt,ht){}function ot(){Se={}}function Oe(vt,ht,Wt){!ht&&!Se[Wt]&&(vt(!1,Wt),Se[Wt]=!0)}function wt(vt,ht){Oe(pe,vt,ht)}function lt(vt,ht){Oe(Ie,vt,ht)}var tt=null,Ge=le(71002),Me=le(18459);function bt(vt,ht,Wt){var rn=be.useRef({});return(!("value"in rn.current)||Wt(rn.current.condition,ht))&&(rn.current.value=vt(),rn.current.condition=ht),rn.current.value}function zt(vt,ht){typeof vt=="function"?vt(ht):(0,Ge.Z)(vt)==="object"&&vt&&"current"in vt&&(vt.current=ht)}function Ye(){for(var vt=arguments.length,ht=new Array(vt),Wt=0;Wt<vt;Wt++)ht[Wt]=arguments[Wt];var rn=ht.filter(function(Mn){return Mn});return rn.length<=1?rn[0]:function(Mn){ht.forEach(function(Cr){zt(Cr,Mn)})}}function it(){for(var vt=arguments.length,ht=new Array(vt),Wt=0;Wt<vt;Wt++)ht[Wt]=arguments[Wt];return bt(function(){return Ye.apply(void 0,ht)},ht,function(rn,Mn){return rn.length===Mn.length&&rn.every(function(Cr,Sr){return Cr===Mn[Sr]})})}function Be(vt){var ht,Wt,rn=(0,Me.isMemo)(vt)?vt.type.type:vt.type;return!(typeof rn=="function"&&!((ht=rn.prototype)!==null&&ht!==void 0&&ht.render)||typeof vt=="function"&&!((Wt=vt.prototype)!==null&&Wt!==void 0&&Wt.render))}var xe=be.createContext(null),Ke=xe,Ue=le(74902),ft=ke()?be.useLayoutEffect:be.useEffect,pt=ft,Mt=function(ht,Wt){var rn=React.useRef(!0);ft(function(){if(!rn.current)return ht()},Wt),ft(function(){return rn.current=!1,function(){rn.current=!0}},[])},Qe=[];function Rt(vt,ht){var Wt=be.useState(function(){if(!ke())return null;var $i=document.createElement("div");return $i}),rn=(0,et.Z)(Wt,1),Mn=rn[0],Cr=be.useRef(!1),Sr=be.useContext(Ke),Tr=be.useState(Qe),Fr=(0,et.Z)(Tr,2),_r=Fr[0],ni=Fr[1],di=Sr||(Cr.current?void 0:function($i){ni(function(zi){var Le=[$i].concat((0,Ue.Z)(zi));return Le})});function Ei(){Mn.parentElement||document.body.appendChild(Mn),Cr.current=!0}function ji(){var $i;($i=Mn.parentElement)===null||$i===void 0||$i.removeChild(Mn),Cr.current=!1}return pt(function(){return vt?Sr?Sr(Ei):Ei():ji(),ji},[vt]),pt(function(){_r.length&&(_r.forEach(function($i){return $i()}),ni(Qe))},[_r]),[Mn,di]}function Dt(vt,ht){if(!vt)return!1;if(vt.contains)return vt.contains(ht);for(var Wt=ht;Wt;){if(Wt===vt)return!0;Wt=Wt.parentNode}return!1}var on="data-rc-order",Ut="rc-util-key",wn=new Map;function Xn(){var vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ht=vt.mark;return ht?ht.startsWith("data-")?ht:"data-".concat(ht):Ut}function nr(vt){if(vt.attachTo)return vt.attachTo;var ht=document.querySelector("head");return ht||document.body}function Je(vt){return vt==="queue"?"prependQueue":vt?"prepend":"append"}function _e(vt){return Array.from((wn.get(vt)||vt).children).filter(function(ht){return ht.tagName==="STYLE"})}function Ft(vt){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ke())return null;var Wt=ht.csp,rn=ht.prepend,Mn=document.createElement("style");Mn.setAttribute(on,Je(rn)),Wt!=null&&Wt.nonce&&(Mn.nonce=Wt==null?void 0:Wt.nonce),Mn.innerHTML=vt;var Cr=nr(ht),Sr=Cr.firstChild;if(rn){if(rn==="queue"){var Tr=_e(Cr).filter(function(Fr){return["prepend","prependQueue"].includes(Fr.getAttribute(on))});if(Tr.length)return Cr.insertBefore(Mn,Tr[Tr.length-1].nextSibling),Mn}Cr.insertBefore(Mn,Sr)}else Cr.appendChild(Mn);return Mn}function Sn(vt){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Wt=nr(ht);return _e(Wt).find(function(rn){return rn.getAttribute(Xn(ht))===vt})}function an(vt){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Wt=Sn(vt,ht);if(Wt){var rn=nr(ht);rn.removeChild(Wt)}}function nt(vt,ht){var Wt=wn.get(vt);if(!Wt||!Dt(document,Wt)){var rn=Ft("",ht),Mn=rn.parentNode;wn.set(vt,Mn),vt.removeChild(rn)}}function at(){wn.clear()}function $t(vt,ht){var Wt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},rn=nr(Wt);nt(rn,Wt);var Mn=Sn(ht,Wt);if(Mn){var Cr,Sr;if((Cr=Wt.csp)!==null&&Cr!==void 0&&Cr.nonce&&Mn.nonce!==((Sr=Wt.csp)===null||Sr===void 0?void 0:Sr.nonce)){var Tr;Mn.nonce=(Tr=Wt.csp)===null||Tr===void 0?void 0:Tr.nonce}return Mn.innerHTML!==vt&&(Mn.innerHTML=vt),Mn}var Fr=Ft(vt,Wt);return Fr.setAttribute(Xn(Wt),ht),Fr}var kn;function Ht(vt){if(typeof document=="undefined")return 0;if(vt||kn===void 0){var ht=document.createElement("div");ht.style.width="100%",ht.style.height="200px";var Wt=document.createElement("div"),rn=Wt.style;rn.position="absolute",rn.top="0",rn.left="0",rn.pointerEvents="none",rn.visibility="hidden",rn.width="200px",rn.height="150px",rn.overflow="hidden",Wt.appendChild(ht),document.body.appendChild(Wt);var Mn=ht.offsetWidth;Wt.style.overflow="scroll";var Cr=ht.offsetWidth;Mn===Cr&&(Cr=Wt.clientWidth),document.body.removeChild(Wt),kn=Mn-Cr}return kn}function It(vt){var ht=vt.match(/^(.*)px$/),Wt=Number(ht==null?void 0:ht[1]);return Number.isNaN(Wt)?Ht():Wt}function Ct(vt){if(typeof document=="undefined"||!vt||!(vt instanceof Element))return{width:0,height:0};var ht=getComputedStyle(vt,"::-webkit-scrollbar"),Wt=ht.width,rn=ht.height;return{width:It(Wt),height:It(rn)}}function tn(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var pn="rc-util-locker-".concat(Date.now()),Ee=0;function ce(vt){var ht=!!vt,Wt=be.useState(function(){return Ee+=1,"".concat(pn,"_").concat(Ee)}),rn=(0,et.Z)(Wt,1),Mn=rn[0];pt(function(){if(ht){var Cr=Ct(document.body).width,Sr=tn();$t(`
html body {
overflow-y: hidden;
`.concat(Sr?"width: calc(100% - ".concat(Cr,"px);"):"",`
}`),Mn)}else an(Mn);return function(){an(Mn)}},[ht,Mn])}var se=!1;function fe(vt){return typeof vt=="boolean"&&(se=vt),se}var de=function(ht){return ht===!1?!1:!ke()||!ht?null:typeof ht=="string"?document.querySelector(ht):typeof ht=="function"?ht():ht},oe=be.forwardRef(function(vt,ht){var Wt=vt.open,rn=vt.autoLock,Mn=vt.getContainer,Cr=vt.debug,Sr=vt.autoDestroy,Tr=Sr===void 0?!0:Sr,Fr=vt.children,_r=be.useState(Wt),ni=(0,et.Z)(_r,2),di=ni[0],Ei=ni[1],ji=di||Wt;be.useEffect(function(){(Tr||Wt)&&Ei(Wt)},[Wt,Tr]);var $i=be.useState(function(){return de(Mn)}),zi=(0,et.Z)($i,2),Le=zi[0],ze=zi[1];be.useEffect(function(){var sn=de(Mn);ze(sn!=null?sn:null)});var Fe=Rt(ji&&!Le,Cr),Ze=(0,et.Z)(Fe,2),rt=Ze[0],dt=Ze[1],yt=Le!=null?Le:rt;ce(rn&&Wt&&ke()&&(yt===rt||yt===document.body));var Xt=null;if(Fr&&Be(Fr)&&ht){var Jt=Fr;Xt=Jt.ref}var Fn=it(Xt,ht);if(!ji||!ke()||Le===void 0)return null;var ir=yt===!1||fe(),_n=Fr;return ht&&(_n=be.cloneElement(Fr,{ref:Fn})),be.createElement(Ke.Provider,{value:dt},ir?_n:(0,Ae.createPortal)(_n,yt))}),Te=oe,je=Te;function Et(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var At=Et()?be.useLayoutEffect:be.useEffect,Ot=function(ht,Wt){var rn=be.useRef(!0);At(function(){return ht(rn.current)},Wt),At(function(){return rn.current=!1,function(){rn.current=!0}},[])},Bt=function(ht,Wt){Ot(function(rn){if(!rn)return ht()},Wt)},Nt=Ot,zn=be.createContext(null),Gn=be.createContext({}),_t=zn,cn=le(4942),Jn=le(87462),lr=le(62874),En={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(ht){var Wt=ht.keyCode;if(ht.altKey&&!ht.ctrlKey||ht.metaKey||Wt>=En.F1&&Wt<=En.F12)return!1;switch(Wt){case En.ALT:case En.CAPS_LOCK:case En.CONTEXT_MENU:case En.CTRL:case En.DOWN:case En.END:case En.ESC:case En.HOME:case En.INSERT:case En.LEFT:case En.MAC_FF_META:case En.META:case En.NUMLOCK:case En.NUM_CENTER:case En.PAGE_DOWN:case En.PAGE_UP:case En.PAUSE:case En.PRINT_SCREEN:case En.RIGHT:case En.SHIFT:case En.UP:case En.WIN_KEY:case En.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ht){if(ht>=En.ZERO&&ht<=En.NINE||ht>=En.NUM_ZERO&&ht<=En.NUM_MULTIPLY||ht>=En.A&&ht<=En.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ht===0)return!0;switch(ht){case En.SPACE:case En.QUESTION_MARK:case En.NUM_PLUS:case En.NUM_MINUS:case En.NUM_PERIOD:case En.NUM_DIVISION:case En.SEMICOLON:case En.DASH:case En.EQUALS:case En.COMMA:case En.PERIOD:case En.SLASH:case En.APOSTROPHE:case En.SINGLE_QUOTE:case En.OPEN_SQUARE_BRACKET:case En.BACKSLASH:case En.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},wr=En,xi=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,ei=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Yr="".concat(xi," ").concat(ei).split(/[\s\n]+/),Gr="aria-",Ai="data-";function ti(vt,ht){return vt.indexOf(ht)===0}function ki(vt){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Wt;ht===!1?Wt={aria:!0,data:!0,attr:!0}:ht===!0?Wt={aria:!0}:Wt=(0,Pe.Z)({},ht);var rn={};return Object.keys(vt).forEach(function(Mn){(Wt.aria&&(Mn==="role"||ti(Mn,Gr))||Wt.data&&ti(Mn,Ai)||Wt.attr&&Yr.includes(Mn))&&(rn[Mn]=vt[Mn])}),rn}function Ri(vt){var ht=React.useRef();ht.current=vt;var Wt=React.useCallback(function(){for(var rn,Mn=arguments.length,Cr=new Array(Mn),Sr=0;Sr<Mn;Sr++)Cr[Sr]=arguments[Sr];return(rn=ht.current)===null||rn===void 0?void 0:rn.call.apply(rn,[ht].concat(Cr))},[]);return Wt}function jn(vt){var ht=React.useRef(!1),Wt=React.useState(vt),rn=_slicedToArray(Wt,2),Mn=rn[0],Cr=rn[1];React.useEffect(function(){return ht.current=!1,function(){ht.current=!0}},[]);function Sr(Tr,Fr){Fr&&ht.current||Cr(Tr)}return[Mn,Sr]}function Pi(vt){return vt!==void 0}function va(vt,ht){var Wt=ht||{},rn=Wt.defaultValue,Mn=Wt.value,Cr=Wt.onChange,Sr=Wt.postState,Tr=useState(function(){return Pi(Mn)?Mn:Pi(rn)?typeof rn=="function"?rn():rn:typeof vt=="function"?vt():vt}),Fr=_slicedToArray(Tr,2),_r=Fr[0],ni=Fr[1],di=Mn!==void 0?Mn:_r,Ei=Sr?Sr(di):di,ji=useEvent(Cr),$i=useState([di]),zi=_slicedToArray($i,2),Le=zi[0],ze=zi[1];useLayoutUpdateEffect(function(){var Ze=Le[0];_r!==Ze&&ji(_r,Ze)},[Le]),useLayoutUpdateEffect(function(){Pi(Mn)||ni(Mn)},[Mn]);var Fe=useEvent(function(Ze,rt){ni(Ze,rt),ze([di],rt)});return[Ei,Fe]}var da=le(33993);function ya(vt,ht,Wt){var rn=be.useRef({});return(!("value"in rn.current)||Wt(rn.current.condition,ht))&&(rn.current.value=vt(),rn.current.condition=ht),rn.current.value}function ea(vt,ht){typeof vt=="function"?vt(ht):(0,Ge.Z)(vt)==="object"&&vt&&"current"in vt&&(vt.current=ht)}function kt(){for(var vt=arguments.length,ht=new Array(vt),Wt=0;Wt<vt;Wt++)ht[Wt]=arguments[Wt];var rn=ht.filter(function(Mn){return Mn});return rn.length<=1?rn[0]:function(Mn){ht.forEach(function(Cr){ea(Cr,Mn)})}}function bn(){for(var vt=arguments.length,ht=new Array(vt),Wt=0;Wt<vt;Wt++)ht[Wt]=arguments[Wt];return ya(function(){return kt.apply(void 0,ht)},ht,function(rn,Mn){return rn.length!==Mn.length||rn.every(function(Cr,Sr){return Cr!==Mn[Sr]})})}function Tn(vt){var ht,Wt,rn=isMemo(vt)?vt.type.type:vt.type;return!(typeof rn=="function"&&!((ht=rn.prototype)!==null&&ht!==void 0&&ht.render)||typeof vt=="function"&&!((Wt=vt.prototype)!==null&&Wt!==void 0&&Wt.render))}function In(vt){return!isValidElement(vt)||isFragment(vt)?!1:Tn(vt)}function kr(vt,ht,Wt,rn){if(!ht.length)return Wt;var Mn=_toArray(ht),Cr=Mn[0],Sr=Mn.slice(1),Tr;return!vt&&typeof Cr=="number"?Tr=[]:Array.isArray(vt)?Tr=_toConsumableArray(vt):Tr=_objectSpread({},vt),rn&&Wt===void 0&&Sr.length===1?delete Tr[Cr][Sr[0]]:Tr[Cr]=kr(Tr[Cr],Sr,Wt,rn),Tr}function qn(vt,ht,Wt){var rn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return ht.length&&rn&&Wt===void 0&&!get(vt,ht.slice(0,-1))?vt:kr(vt,ht,Wt,rn)}function hr(vt){return _typeof(vt)==="object"&&vt!==null&&Object.getPrototypeOf(vt)===Object.prototype}function On(vt){return Array.isArray(vt)?[]:{}}var qe=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function st(){for(var vt=arguments.length,ht=new Array(vt),Wt=0;Wt<vt;Wt++)ht[Wt]=arguments[Wt];var rn=On(ht[0]);return ht.forEach(function(Mn){function Cr(Sr,Tr){var Fr=new Set(Tr),_r=get(Mn,Sr),ni=Array.isArray(_r);if(ni||hr(_r)){if(!Fr.has(_r)){Fr.add(_r);var di=get(rn,Sr);ni?rn=qn(rn,Sr,[]):(!di||_typeof(di)!=="object")&&(rn=qn(rn,Sr,On(_r))),qe(_r).forEach(function(Ei){Cr([].concat(_toConsumableArray(Sr),[Ei]),Fr)})}}else rn=qn(rn,Sr,_r)}Cr([])}),rn}var Lt={},qt=[],Ve=function(ht){qt.push(ht)};function gt(vt,ht){if(0)var Wt}function Kt(vt,ht){if(0)var Wt}function Pt(){Lt={}}function Gt(vt,ht,Wt){!ht&&!Lt[Wt]&&(vt(!1,Wt),Lt[Wt]=!0)}function Vt(vt,ht){Gt(gt,vt,ht)}function Pn(vt,ht){Gt(Kt,vt,ht)}Vt.preMessage=Ve,Vt.resetWarned=Pt,Vt.noteOnce=Pn;var mr=Vt,Vn=function(ht){var Wt=ht.prefixCls,rn=ht.className,Mn=ht.style,Cr=ht.children,Sr=ht.containerRef,Tr=ht.id,Fr=ht.onMouseEnter,_r=ht.onMouseOver,ni=ht.onMouseLeave,di=ht.onClick,Ei=ht.onKeyDown,ji=ht.onKeyUp,$i={onMouseEnter:Fr,onMouseOver:_r,onMouseLeave:ni,onClick:di,onKeyDown:Ei,onKeyUp:ji},zi=be.useContext(Gn),Le=zi.panel,ze=bn(Le,Sr);return be.createElement(be.Fragment,null,be.createElement("div",(0,Jn.Z)({id:Tr,className:We()("".concat(Wt,"-content"),rn),style:(0,Pe.Z)({},Mn),"aria-modal":"true",role:"dialog",ref:ze},$i),Cr))},Un=Vn;function er(vt){return typeof vt=="string"&&String(Number(vt))===vt?(mr(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(vt)):vt}function rr(vt){warning(!("wrapperClassName"in vt),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!vt.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Dr={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function dn(vt,ht){var Wt,rn,Mn,Cr,Sr=vt.prefixCls,Tr=vt.open,Fr=vt.placement,_r=vt.inline,ni=vt.push,di=vt.forceRender,Ei=vt.autoFocus,ji=vt.keyboard,$i=vt.rootClassName,zi=vt.rootStyle,Le=vt.zIndex,ze=vt.className,Fe=vt.id,Ze=vt.style,rt=vt.motion,dt=vt.width,yt=vt.height,Xt=vt.children,Jt=vt.contentWrapperStyle,Fn=vt.mask,ir=vt.maskClosable,_n=vt.maskMotion,sn=vt.maskClassName,nn=vt.maskStyle,gn=vt.afterOpenChange,xn=vt.onClose,tr=vt.onMouseEnter,Kn=vt.onMouseOver,Nn=vt.onMouseLeave,$n=vt.onClick,Wn=vt.onKeyDown,or=vt.onKeyUp,He=be.useRef(),$e=be.useRef(),Tt=be.useRef();be.useImperativeHandle(ht,function(){return He.current});var mt=function(Er){var Nr=Er.keyCode,Kr=Er.shiftKey;switch(Nr){case wr.TAB:{if(Nr===wr.TAB){if(!Kr&&document.activeElement===Tt.current){var xr;(xr=$e.current)===null||xr===void 0||xr.focus({preventScroll:!0})}else if(Kr&&document.activeElement===$e.current){var Vr;(Vr=Tt.current)===null||Vr===void 0||Vr.focus({preventScroll:!0})}}break}case wr.ESC:{xn&&ji&&(Er.stopPropagation(),xn(Er));break}}};be.useEffect(function(){if(Tr&&Ei){var ur;(ur=He.current)===null||ur===void 0||ur.focus({preventScroll:!0})}},[Tr]);var Yt=be.useState(!1),fn=(0,et.Z)(Yt,2),ln=fn[0],Ln=fn[1],yn=be.useContext(_t),Qt;ni===!1?Qt={distance:0}:ni===!0?Qt={}:Qt=ni||{};var Cn=(Wt=(rn=(Mn=Qt)===null||Mn===void 0?void 0:Mn.distance)!==null&&rn!==void 0?rn:yn==null?void 0:yn.pushDistance)!==null&&Wt!==void 0?Wt:180,Dn=be.useMemo(function(){return{pushDistance:Cn,push:function(){Ln(!0)},pull:function(){Ln(!1)}}},[Cn]);be.useEffect(function(){if(Tr){var ur;yn==null||(ur=yn.push)===null||ur===void 0||ur.call(yn)}else{var Er;yn==null||(Er=yn.pull)===null||Er===void 0||Er.call(yn)}},[Tr]),be.useEffect(function(){return function(){var ur;yn==null||(ur=yn.pull)===null||ur===void 0||ur.call(yn)}},[]);var ar=Fn&&be.createElement(lr.Z,(0,Jn.Z)({key:"mask"},_n,{visible:Tr}),function(ur,Er){var Nr=ur.className,Kr=ur.style;return be.createElement("div",{className:We()("".concat(Sr,"-mask"),Nr,sn),style:(0,Pe.Z)((0,Pe.Z)({},Kr),nn),onClick:ir&&Tr?xn:void 0,ref:Er})}),An=typeof rt=="function"?rt(Fr):rt,gr={};if(ln&&Cn)switch(Fr){case"top":gr.transform="translateY(".concat(Cn,"px)");break;case"bottom":gr.transform="translateY(".concat(-Cn,"px)");break;case"left":gr.transform="translateX(".concat(Cn,"px)");break;default:gr.transform="translateX(".concat(-Cn,"px)");break}Fr==="left"||Fr==="right"?gr.width=er(dt):gr.height=er(yt);var Br={onMouseEnter:tr,onMouseOver:Kn,onMouseLeave:Nn,onClick:$n,onKeyDown:Wn,onKeyUp:or},br=be.createElement(lr.Z,(0,Jn.Z)({key:"panel"},An,{visible:Tr,forceRender:di,onVisibleChanged:function(Er){gn==null||gn(Er)},removeOnLeave:!1,leavedClassName:"".concat(Sr,"-content-wrapper-hidden")}),function(ur,Er){var Nr=ur.className,Kr=ur.style;return be.createElement("div",(0,Jn.Z)({className:We()("".concat(Sr,"-content-wrapper"),Nr),style:(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},gr),Kr),Jt)},ki(vt,{data:!0})),be.createElement(Un,(0,Jn.Z)({id:Fe,containerRef:Er,prefixCls:Sr,className:ze,style:Ze},Br),Xt))}),Ar=(0,Pe.Z)({},zi);return Le&&(Ar.zIndex=Le),be.createElement(_t.Provider,{value:Dn},be.createElement("div",{className:We()(Sr,"".concat(Sr,"-").concat(Fr),$i,(Cr={},(0,cn.Z)(Cr,"".concat(Sr,"-open"),Tr),(0,cn.Z)(Cr,"".concat(Sr,"-inline"),_r),Cr)),style:Ar,tabIndex:-1,ref:He,onKeyDown:mt},ar,be.createElement("div",{tabIndex:0,ref:$e,style:Dr,"aria-hidden":"true","data-sentinel":"start"}),br,be.createElement("div",{tabIndex:0,ref:Tt,style:Dr,"aria-hidden":"true","data-sentinel":"end"})))}var Hn=be.forwardRef(dn),pi=Hn,wi=function(ht){var Wt=ht.open,rn=Wt===void 0?!1:Wt,Mn=ht.prefixCls,Cr=Mn===void 0?"rc-drawer":Mn,Sr=ht.placement,Tr=Sr===void 0?"right":Sr,Fr=ht.autoFocus,_r=Fr===void 0?!0:Fr,ni=ht.keyboard,di=ni===void 0?!0:ni,Ei=ht.width,ji=Ei===void 0?378:Ei,$i=ht.mask,zi=$i===void 0?!0:$i,Le=ht.maskClosable,ze=Le===void 0?!0:Le,Fe=ht.getContainer,Ze=ht.forceRender,rt=ht.afterOpenChange,dt=ht.destroyOnClose,yt=ht.onMouseEnter,Xt=ht.onMouseOver,Jt=ht.onMouseLeave,Fn=ht.onClick,ir=ht.onKeyDown,_n=ht.onKeyUp,sn=ht.panelRef,nn=be.useState(!1),gn=(0,et.Z)(nn,2),xn=gn[0],tr=gn[1],Kn=be.useState(!1),Nn=(0,et.Z)(Kn,2),$n=Nn[0],Wn=Nn[1];Nt(function(){Wn(!0)},[]);var or=$n?rn:!1,He=be.useRef(),$e=be.useRef();Nt(function(){or&&($e.current=document.activeElement)},[or]);var Tt=function(Ln){var yn;if(tr(Ln),rt==null||rt(Ln),!Ln&&$e.current&&!((yn=He.current)!==null&&yn!==void 0&&yn.contains($e.current))){var Qt;(Qt=$e.current)===null||Qt===void 0||Qt.focus({preventScroll:!0})}},mt=be.useMemo(function(){return{panel:sn}},[sn]);if(!Ze&&!xn&&!or&&dt)return null;var Yt={onMouseEnter:yt,onMouseOver:Xt,onMouseLeave:Jt,onClick:Fn,onKeyDown:ir,onKeyUp:_n},fn=(0,Pe.Z)((0,Pe.Z)({},ht),{},{open:or,prefixCls:Cr,placement:Tr,autoFocus:_r,keyboard:di,width:ji,mask:zi,maskClosable:ze,inline:Fe===!1,afterOpenChange:Tt,ref:He},Yt);return be.createElement(Gn.Provider,{value:mt},be.createElement(je,{open:or||Ze||xn,autoDestroy:!1,getContainer:Fe,autoLock:zi&&(or||xn)},be.createElement(pi,fn)))},Zr=wi,Or=Zr,Li=le(33603),dr=le(53124),ci=le(65223),vn=le(69760),Di=vt=>{const{prefixCls:ht,title:Wt,footer:rn,extra:Mn,closeIcon:Cr,closable:Sr,onClose:Tr,headerStyle:Fr,drawerStyle:_r,bodyStyle:ni,footerStyle:di,children:Ei}=vt,ji=be.useCallback(Fe=>be.createElement("button",{type:"button",onClick:Tr,"aria-label":"Close",className:`${ht}-close`},Fe),[Tr]),[$i,zi]=(0,vn.Z)(Sr,Cr,ji,void 0,!0),Le=be.useMemo(()=>!Wt&&!$i?null:be.createElement("div",{style:Fr,className:We()(`${ht}-header`,{[`${ht}-header-close-only`]:$i&&!Wt&&!Mn})},be.createElement("div",{className:`${ht}-header-title`},zi,Wt&&be.createElement("div",{className:`${ht}-title`},Wt)),Mn&&be.createElement("div",{className:`${ht}-extra`},Mn)),[$i,zi,Mn,Fr,ht,Wt]),ze=be.useMemo(()=>{if(!rn)return null;const Fe=`${ht}-footer`;return be.createElement("div",{className:Fe,style:di},rn)},[rn,di,ht]);return be.createElement("div",{className:`${ht}-wrapper-body`,style:_r},Le,be.createElement("div",{className:`${ht}-body`,style:ni},Ei),ze)},wa=le(4173),Xi=le(67968),_i=le(45503),Gi=vt=>{const{componentCls:ht,motionDurationSlow:Wt}=vt,rn={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Wt}`}}};return{[ht]:{[`${ht}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${Wt}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${ht}-panel-motion`]:{"&-left":[rn,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[rn,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[rn,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[rn,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const Ci=vt=>{const{componentCls:ht,zIndexPopup:Wt,colorBgMask:rn,colorBgElevated:Mn,motionDurationSlow:Cr,motionDurationMid:Sr,padding:Tr,paddingLG:Fr,fontSizeLG:_r,lineHeightLG:ni,lineWidth:di,lineType:Ei,colorSplit:ji,marginSM:$i,colorIcon:zi,colorIconHover:Le,colorText:ze,fontWeightStrong:Fe,footerPaddingBlock:Ze,footerPaddingInline:rt}=vt,dt=`${ht}-content-wrapper`;return{[ht]:{position:"fixed",inset:0,zIndex:Wt,pointerEvents:"none","&-pure":{position:"relative",background:Mn,[`&${ht}-left`]:{boxShadow:vt.boxShadowDrawerLeft},[`&${ht}-right`]:{boxShadow:vt.boxShadowDrawerRight},[`&${ht}-top`]:{boxShadow:vt.boxShadowDrawerUp},[`&${ht}-bottom`]:{boxShadow:vt.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${ht}-mask`]:{position:"absolute",inset:0,zIndex:Wt,background:rn,pointerEvents:"auto"},[dt]:{position:"absolute",zIndex:Wt,maxWidth:"100vw",transition:`all ${Cr}`,"&-hidden":{display:"none"}},[`&-left > ${dt}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:vt.boxShadowDrawerLeft},[`&-right > ${dt}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:vt.boxShadowDrawerRight},[`&-top > ${dt}`]:{top:0,insetInline:0,boxShadow:vt.boxShadowDrawerUp},[`&-bottom > ${dt}`]:{bottom:0,insetInline:0,boxShadow:vt.boxShadowDrawerDown},[`${ht}-content`]:{width:"100%",height:"100%",overflow:"auto",background:Mn,pointerEvents:"auto"},[`${ht}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${ht}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Tr}px ${Fr}px`,fontSize:_r,lineHeight:ni,borderBottom:`${di}px ${Ei} ${ji}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${ht}-extra`]:{flex:"none"},[`${ht}-close`]:{display:"inline-block",marginInlineEnd:$i,color:zi,fontWeight:Fe,fontSize:_r,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${Sr}`,textRendering:"auto","&:focus, &:hover":{color:Le,textDecoration:"none"}},[`${ht}-title`]:{flex:1,margin:0,color:ze,fontWeight:vt.fontWeightStrong,fontSize:_r,lineHeight:ni},[`${ht}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Fr,overflow:"auto"},[`${ht}-footer`]:{flexShrink:0,padding:`${Ze}px ${rt}px`,borderTop:`${di}px ${Ei} ${ji}`},"&-rtl":{direction:"rtl"}}}};var ta=(0,Xi.Z)("Drawer",vt=>{const ht=(0,_i.TS)(vt,{});return[Ci(ht),Gi(ht)]},vt=>({zIndexPopup:vt.zIndexPopupBase,footerPaddingBlock:vt.paddingXS,footerPaddingInline:vt.padding})),ka=le(16569),na=function(vt,ht){var Wt={};for(var rn in vt)Object.prototype.hasOwnProperty.call(vt,rn)&&ht.indexOf(rn)<0&&(Wt[rn]=vt[rn]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mn=0,rn=Object.getOwnPropertySymbols(vt);Mn<rn.length;Mn++)ht.indexOf(rn[Mn])<0&&Object.prototype.propertyIsEnumerable.call(vt,rn[Mn])&&(Wt[rn[Mn]]=vt[rn[Mn]]);return Wt};const Fi=null,Aa={distance:180},Ba=vt=>{var ht;const{rootClassName:Wt,width:rn,height:Mn,size:Cr="default",mask:Sr=!0,push:Tr=Aa,open:Fr,afterOpenChange:_r,onClose:ni,prefixCls:di,getContainer:Ei,style:ji,className:$i,visible:zi,afterVisibleChange:Le}=vt,ze=na(vt,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:Fe,getPrefixCls:Ze,direction:rt,drawer:dt}=be.useContext(dr.E_),yt=Ze("drawer",di),[Xt,Jt]=ta(yt),Fn=Ei===void 0&&Fe?()=>Fe(document.body):Ei,ir=We()({"no-mask":!Sr,[`${yt}-rtl`]:rt==="rtl"},Wt,Jt),_n=be.useMemo(()=>rn!=null?rn:Cr==="large"?736:378,[rn,Cr]),sn=be.useMemo(()=>Mn!=null?Mn:Cr==="large"?736:378,[Mn,Cr]),nn={motionName:(0,Li.m)(yt,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},gn=tr=>({motionName:(0,Li.m)(yt,`panel-motion-${tr}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),xn=(0,ka.H)();return Xt(be.createElement(wa.BR,null,be.createElement(ci.Ux,{status:!0,override:!0},be.createElement(Or,Object.assign({prefixCls:yt,onClose:ni,maskMotion:nn,motion:gn},ze,{open:Fr!=null?Fr:zi,mask:Sr,push:Tr,width:_n,height:sn,style:Object.assign(Object.assign({},dt==null?void 0:dt.style),ji),className:We()(dt==null?void 0:dt.className,$i),rootClassName:ir,getContainer:Fn,afterOpenChange:_r!=null?_r:Le,panelRef:xn}),be.createElement(Di,Object.assign({prefixCls:yt},ze,{onClose:ni}))))))},ha=vt=>{const{prefixCls:ht,style:Wt,className:rn,placement:Mn="right"}=vt,Cr=na(vt,["prefixCls","style","className","placement"]),{getPrefixCls:Sr}=be.useContext(dr.E_),Tr=Sr("drawer",ht),[Fr,_r]=ta(Tr),ni=We()(Tr,`${Tr}-pure`,`${Tr}-${Mn}`,_r,rn);return Fr(be.createElement("div",{className:ni,style:Wt},be.createElement(Di,Object.assign({prefixCls:Tr},Cr))))};Ba._InternalPanelDoNotUseOrYouWillBeFired=ha;var oi=Ba},32983:function(hn,Zt,le){"use strict";le.d(Zt,{Z:function(){return Ye}});var ge=le(94184),We=le.n(ge),Pe=le(67294),et=le(53124),be=le(10110),Ae=le(84780),ke=le(46605),pe=()=>{const[,it]=(0,ke.Z)(),xe=new Ae.C(it.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return Pe.createElement("svg",{style:xe,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},Pe.createElement("g",{fill:"none",fillRule:"evenodd"},Pe.createElement("g",{transform:"translate(24 31.67)"},Pe.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),Pe.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"}),Pe.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)"}),Pe.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"}),Pe.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"})),Pe.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"}),Pe.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},Pe.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),Pe.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},ot=()=>{const[,it]=(0,ke.Z)(),{colorFill:Be,colorFillTertiary:xe,colorFillQuaternary:Ke,colorBgContainer:Ue}=it,{borderColor:ft,shadowColor:pt,contentColor:Mt}=(0,Pe.useMemo)(()=>({borderColor:new Ae.C(Be).onBackground(Ue).toHexShortString(),shadowColor:new Ae.C(xe).onBackground(Ue).toHexShortString(),contentColor:new Ae.C(Ke).onBackground(Ue).toHexShortString()}),[Be,xe,Ke,Ue]);return Pe.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Pe.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Pe.createElement("ellipse",{fill:pt,cx:"32",cy:"33",rx:"32",ry:"7"}),Pe.createElement("g",{fillRule:"nonzero",stroke:ft},Pe.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"}),Pe.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:Mt}))))},Oe=le(67968),wt=le(45503);const lt=it=>{const{componentCls:Be,margin:xe,marginXS:Ke,marginXL:Ue,fontSize:ft,lineHeight:pt}=it;return{[Be]:{marginInline:Ke,fontSize:ft,lineHeight:pt,textAlign:"center",[`${Be}-image`]:{height:it.emptyImgHeight,marginBottom:Ke,opacity:it.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Be}-description`]:{color:it.colorText},[`${Be}-footer`]:{marginTop:xe},"&-normal":{marginBlock:Ue,color:it.colorTextDisabled,[`${Be}-description`]:{color:it.colorTextDisabled},[`${Be}-image`]:{height:it.emptyImgHeightMD}},"&-small":{marginBlock:Ke,color:it.colorTextDisabled,[`${Be}-image`]:{height:it.emptyImgHeightSM}}}}};var tt=(0,Oe.Z)("Empty",it=>{const{componentCls:Be,controlHeightLG:xe}=it,Ke=(0,wt.TS)(it,{emptyImgCls:`${Be}-img`,emptyImgHeight:xe*2.5,emptyImgHeightMD:xe,emptyImgHeightSM:xe*.875});return[lt(Ke)]}),Ge=function(it,Be){var xe={};for(var Ke in it)Object.prototype.hasOwnProperty.call(it,Ke)&&Be.indexOf(Ke)<0&&(xe[Ke]=it[Ke]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,Ke=Object.getOwnPropertySymbols(it);Ue<Ke.length;Ue++)Be.indexOf(Ke[Ue])<0&&Object.prototype.propertyIsEnumerable.call(it,Ke[Ue])&&(xe[Ke[Ue]]=it[Ke[Ue]]);return xe};const Me=Pe.createElement(pe,null),bt=Pe.createElement(ot,null),zt=it=>{var{className:Be,rootClassName:xe,prefixCls:Ke,image:Ue=Me,description:ft,children:pt,imageStyle:Mt,style:Qe}=it,Rt=Ge(it,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Dt,direction:on,empty:Ut}=Pe.useContext(et.E_),wn=Dt("empty",Ke),[Xn,nr]=tt(wn),[Je]=(0,be.Z)("Empty"),_e=typeof ft!="undefined"?ft:Je==null?void 0:Je.description,Ft=typeof _e=="string"?_e:"empty";let Sn=null;return typeof Ue=="string"?Sn=Pe.createElement("img",{alt:Ft,src:Ue}):Sn=Ue,Xn(Pe.createElement("div",Object.assign({className:We()(nr,wn,Ut==null?void 0:Ut.className,{[`${wn}-normal`]:Ue===bt,[`${wn}-rtl`]:on==="rtl"},Be,xe),style:Object.assign(Object.assign({},Ut==null?void 0:Ut.style),Qe)},Rt),Pe.createElement("div",{className:`${wn}-image`,style:Mt},Sn),_e&&Pe.createElement("div",{className:`${wn}-description`},_e),pt&&Pe.createElement("div",{className:`${wn}-footer`},pt)))};zt.PRESENTED_IMAGE_DEFAULT=Me,zt.PRESENTED_IMAGE_SIMPLE=bt;var Ye=zt},22150:function(hn,Zt,le){"use strict";le.d(Zt,{default:function(){return qt}});var ge=le(74902),We=le(94184),Pe=le.n(We),et=le(38379),be=le(67294),Ae=le(33603),ke=le(65223);function Se(Ve){const[gt,Kt]=be.useState(Ve);return be.useEffect(()=>{const Pt=setTimeout(()=>{Kt(Ve)},Ve.length?0:10);return()=>{clearTimeout(Pt)}},[Ve]),gt}var pe=le(14747),Ie=le(50438),ot=le(33507),Oe=le(45503),wt=le(67968),tt=Ve=>{const{componentCls:gt}=Ve,Kt=`${gt}-show-help`,Pt=`${gt}-show-help-item`;return{[Kt]:{transition:`opacity ${Ve.motionDurationSlow} ${Ve.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Pt]:{overflow:"hidden",transition:`height ${Ve.motionDurationSlow} ${Ve.motionEaseInOut},
opacity ${Ve.motionDurationSlow} ${Ve.motionEaseInOut},
transform ${Ve.motionDurationSlow} ${Ve.motionEaseInOut} !important`,[`&${Pt}-appear, &${Pt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Pt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const Ge=Ve=>({legend:{display:"block",width:"100%",marginBottom:Ve.marginLG,padding:0,color:Ve.colorTextDescription,fontSize:Ve.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Ve.lineWidth}px ${Ve.lineType} ${Ve.colorBorder}`},label:{fontSize:Ve.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 ${Ve.controlOutlineWidth}px ${Ve.controlOutline}`},output:{display:"block",paddingTop:15,color:Ve.colorText,fontSize:Ve.fontSize,lineHeight:Ve.lineHeight}}),Me=(Ve,gt)=>{const{formItemCls:Kt}=Ve;return{[Kt]:{[`${Kt}-label > label`]:{height:gt},[`${Kt}-control-input`]:{minHeight:gt}}}},bt=Ve=>{const{componentCls:gt}=Ve;return{[Ve.componentCls]:Object.assign(Object.assign(Object.assign({},(0,pe.Wf)(Ve)),Ge(Ve)),{[`${gt}-text`]:{display:"inline-block",paddingInlineEnd:Ve.paddingSM},"&-small":Object.assign({},Me(Ve,Ve.controlHeightSM)),"&-large":Object.assign({},Me(Ve,Ve.controlHeightLG))})}},zt=Ve=>{const{formItemCls:gt,iconCls:Kt,componentCls:Pt,rootPrefixCls:Gt,labelRequiredMarkColor:Vt,labelColor:Pn,labelFontSize:mr,labelHeight:Vn,labelColonMarginInlineStart:Un,labelColonMarginInlineEnd:er,itemMarginBottom:rr}=Ve;return{[gt]:Object.assign(Object.assign({},(0,pe.Wf)(Ve)),{marginBottom:rr,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden.${Gt}-row`]:{display:"none"},"&-has-warning":{[`${gt}-split`]:{color:Ve.colorError}},"&-has-error":{[`${gt}-split`]:{color:Ve.colorWarning}},[`${gt}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Ve.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Vn,color:Pn,fontSize:mr,[`> ${Kt}`]:{fontSize:Ve.fontSize,verticalAlign:"top"},[`&${gt}-required:not(${gt}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Ve.marginXXS,color:Vt,fontSize:Ve.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Pt}-hide-required-mark &`]:{display:"none"}},[`${gt}-optional`]:{display:"inline-block",marginInlineStart:Ve.marginXXS,color:Ve.colorTextDescription,[`${Pt}-hide-required-mark &`]:{display:"none"}},[`${gt}-tooltip`]:{color:Ve.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Ve.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Un,marginInlineEnd:er},[`&${gt}-no-colon::after`]:{content:'"\\a0"'}}},[`${gt}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Gt}-col-'"]):not([class*="' ${Gt}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Ve.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[gt]:{"&-explain, &-extra":{clear:"both",color:Ve.colorTextDescription,fontSize:Ve.fontSize,lineHeight:Ve.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Ve.controlHeightSM,transition:`color ${Ve.motionDurationMid} ${Ve.motionEaseOut}`},"&-explain":{"&-error":{color:Ve.colorError},"&-warning":{color:Ve.colorWarning}}},[`&-with-help ${gt}-explain`]:{height:"auto",opacity:1},[`${gt}-feedback-icon`]:{fontSize:Ve.fontSize,textAlign:"center",visibility:"visible",animationName:Ie.kr,animationDuration:Ve.motionDurationMid,animationTimingFunction:Ve.motionEaseOutBack,pointerEvents:"none","&-success":{color:Ve.colorSuccess},"&-error":{color:Ve.colorError},"&-warning":{color:Ve.colorWarning},"&-validating":{color:Ve.colorPrimary}}})}},Ye=Ve=>{const{componentCls:gt,formItemCls:Kt}=Ve;return{[`${gt}-horizontal`]:{[`${Kt}-label`]:{flexGrow:0},[`${Kt}-control`]:{flex:"1 1 0",minWidth:0},[`${Kt}-label[class$='-24'], ${Kt}-label[class*='-24 ']`]:{[`& + ${Kt}-control`]:{minWidth:"unset"}}}}},it=Ve=>{const{componentCls:gt,formItemCls:Kt}=Ve;return{[`${gt}-inline`]:{display:"flex",flexWrap:"wrap",[Kt]:{flex:"none",marginInlineEnd:Ve.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Kt}-label,
> ${Kt}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Kt}-label`]:{flex:"none"},[`${gt}-text`]:{display:"inline-block"},[`${Kt}-has-feedback`]:{display:"inline-block"}}}}},Be=Ve=>({padding:Ve.verticalLabelPadding,margin:Ve.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),xe=Ve=>{const{componentCls:gt,formItemCls:Kt,rootPrefixCls:Pt}=Ve;return{[`${Kt} ${Kt}-label`]:Be(Ve),[gt]:{[Kt]:{flexWrap:"wrap",[`${Kt}-label, ${Kt}-control`]:{[`&:not([class*=" ${Pt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ke=Ve=>{const{componentCls:gt,formItemCls:Kt,rootPrefixCls:Pt}=Ve;return{[`${gt}-vertical`]:{[Kt]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${gt}-item-control`]:{width:"100%"}}},[`${gt}-vertical ${Kt}-label,
.${Pt}-col-24${Kt}-label,
.${Pt}-col-xl-24${Kt}-label`]:Be(Ve),[`@media (max-width: ${Ve.screenXSMax}px)`]:[xe(Ve),{[gt]:{[`.${Pt}-col-xs-24${Kt}-label`]:Be(Ve)}}],[`@media (max-width: ${Ve.screenSMMax}px)`]:{[gt]:{[`.${Pt}-col-sm-24${Kt}-label`]:Be(Ve)}},[`@media (max-width: ${Ve.screenMDMax}px)`]:{[gt]:{[`.${Pt}-col-md-24${Kt}-label`]:Be(Ve)}},[`@media (max-width: ${Ve.screenLGMax}px)`]:{[gt]:{[`.${Pt}-col-lg-24${Kt}-label`]:Be(Ve)}}}},Ue=(Ve,gt)=>(0,Oe.TS)(Ve,{formItemCls:`${Ve.componentCls}-item`,rootPrefixCls:gt});var ft=(0,wt.Z)("Form",(Ve,gt)=>{let{rootPrefixCls:Kt}=gt;const Pt=Ue(Ve,Kt);return[bt(Pt),zt(Pt),tt(Pt),Ye(Pt),it(Pt),Ke(Pt),(0,ot.Z)(Pt),Ie.kr]},Ve=>({labelRequiredMarkColor:Ve.colorError,labelColor:Ve.colorTextHeading,labelFontSize:Ve.fontSize,labelHeight:Ve.controlHeight,labelColonMarginInlineStart:Ve.marginXXS/2,labelColonMarginInlineEnd:Ve.marginXS,itemMarginBottom:Ve.marginLG,verticalLabelPadding:`0 0 ${Ve.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const pt=[];function Mt(Ve,gt,Kt){let Pt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Ve=="string"?Ve:`${gt}-${Pt}`,error:Ve,errorStatus:Kt}}var Rt=Ve=>{let{help:gt,helpStatus:Kt,errors:Pt=pt,warnings:Gt=pt,className:Vt,fieldId:Pn,onVisibleChanged:mr}=Ve;const{prefixCls:Vn}=be.useContext(ke.Rk),Un=`${Vn}-item-explain`,[,er]=ft(Vn),rr=(0,be.useMemo)(()=>(0,Ae.Z)(Vn),[Vn]),Dr=Se(Pt),dn=Se(Gt),Hn=be.useMemo(()=>gt!=null?[Mt(gt,"help",Kt)]:[].concat((0,ge.Z)(Dr.map((wi,Zr)=>Mt(wi,"error","error",Zr))),(0,ge.Z)(dn.map((wi,Zr)=>Mt(wi,"warning","warning",Zr)))),[gt,Kt,Dr,dn]),pi={};return Pn&&(pi.id=`${Pn}_help`),be.createElement(et.default,{motionDeadline:rr.motionDeadline,motionName:`${Vn}-show-help`,visible:!!Hn.length,onVisibleChanged:mr},wi=>{const{className:Zr,style:Or}=wi;return be.createElement("div",Object.assign({},pi,{className:Pe()(Un,Zr,Vt,er),style:Or,role:"alert"}),be.createElement(et.CSSMotionList,Object.assign({keys:Hn},(0,Ae.Z)(Vn),{motionName:`${Vn}-show-help-item`,component:!1}),Li=>{const{key:dr,error:ci,errorStatus:vn,className:Yi,style:Di}=Li;return be.createElement("div",{key:dr,className:Pe()(Yi,{[`${Un}-${vn}`]:vn}),style:Di},ci)}))})},Dt=le(58083),on=le(53124),Ut=le(98866),wn=le(97647),Xn=le(98675),nr=le(17423);const Je=["parentNode"],_e="form_item";function Ft(Ve){return Ve===void 0||Ve===!1?[]:Array.isArray(Ve)?Ve:[Ve]}function Sn(Ve,gt){if(!Ve.length)return;const Kt=Ve.join("_");return gt?`${gt}_${Kt}`:Je.includes(Kt)?`${_e}_${Kt}`:Kt}function an(Ve,gt,Kt,Pt,Gt,Vt){let Pn=Pt;return Vt!==void 0?Pn=Vt:Kt.validating?Pn="validating":Ve.length?Pn="error":gt.length?Pn="warning":(Kt.touched||Gt&&Kt.validated)&&(Pn="success"),Pn}function nt(Ve){return Ft(Ve).join("_")}function at(Ve){const[gt]=(0,Dt.useForm)(),Kt=be.useRef({}),Pt=be.useMemo(()=>Ve!=null?Ve:Object.assign(Object.assign({},gt),{__INTERNAL__:{itemRef:Gt=>Vt=>{const Pn=nt(Gt);Vt?Kt.current[Pn]=Vt:delete Kt.current[Pn]}},scrollToField:function(Gt){let Vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Pn=Ft(Gt),mr=Sn(Pn,Pt.__INTERNAL__.name),Vn=mr?document.getElementById(mr):null;Vn&&(0,nr.Z)(Vn,Object.assign({scrollMode:"if-needed",block:"nearest"},Vt))},getFieldInstance:Gt=>{const Vt=nt(Gt);return Kt.current[Vt]}}),[Ve,gt]);return[Pt]}var $t=le(37920),kn=function(Ve,gt){var Kt={};for(var Pt in Ve)Object.prototype.hasOwnProperty.call(Ve,Pt)&&gt.indexOf(Pt)<0&&(Kt[Pt]=Ve[Pt]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gt=0,Pt=Object.getOwnPropertySymbols(Ve);Gt<Pt.length;Gt++)gt.indexOf(Pt[Gt])<0&&Object.prototype.propertyIsEnumerable.call(Ve,Pt[Gt])&&(Kt[Pt[Gt]]=Ve[Pt[Gt]]);return Kt};const Ht=(Ve,gt)=>{const Kt=be.useContext(Ut.Z),{getPrefixCls:Pt,direction:Gt,form:Vt}=be.useContext(on.E_),{prefixCls:Pn,className:mr,rootClassName:Vn,size:Un,disabled:er=Kt,form:rr,colon:Dr,labelAlign:dn,labelWrap:Hn,labelCol:pi,wrapperCol:wi,hideRequiredMark:Zr,layout:Or="horizontal",scrollToFirstError:Li,requiredMark:dr,onFinishFailed:ci,name:vn,style:Yi,feedbackIcons:Di}=Ve,wa=kn(Ve,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Xi=(0,Xn.Z)(Un),_i=be.useContext($t.Z),fa=(0,be.useMemo)(()=>dr!==void 0?dr:Vt&&Vt.requiredMark!==void 0?Vt.requiredMark:!Zr,[Zr,dr,Vt]),Gi=Dr!=null?Dr:Vt==null?void 0:Vt.colon,Ci=Pt("form",Pn),[ta,ka]=ft(Ci),na=Pe()(Ci,`${Ci}-${Or}`,{[`${Ci}-hide-required-mark`]:fa===!1,[`${Ci}-rtl`]:Gt==="rtl",[`${Ci}-${Xi}`]:Xi},ka,Vt==null?void 0:Vt.className,mr,Vn),[Fi]=at(rr),{__INTERNAL__:Aa}=Fi;Aa.name=vn;const Ba=(0,be.useMemo)(()=>({name:vn,labelAlign:dn,labelCol:pi,labelWrap:Hn,wrapperCol:wi,vertical:Or==="vertical",colon:Gi,requiredMark:fa,itemRef:Aa.itemRef,form:Fi,feedbackIcons:Di}),[vn,dn,pi,wi,Or,Gi,fa,Fi,Di]);be.useImperativeHandle(gt,()=>Fi);const ha=(vt,ht)=>{if(vt){let Wt={block:"nearest"};typeof vt=="object"&&(Wt=vt),Fi.scrollToField(ht,Wt)}},oi=vt=>{if(ci==null||ci(vt),vt.errorFields.length){const ht=vt.errorFields[0].name;if(Li!==void 0){ha(Li,ht);return}Vt&&Vt.scrollToFirstError!==void 0&&ha(Vt.scrollToFirstError,ht)}};return ta(be.createElement(Ut.n,{disabled:er},be.createElement(wn.q,{size:Xi},be.createElement(ke.RV,Object.assign({},{validateMessages:_i}),be.createElement(ke.q3.Provider,{value:Ba},be.createElement(Dt.default,Object.assign({id:vn},wa,{name:vn,onFinishFailed:oi,form:Fi,style:Object.assign(Object.assign({},Vt==null?void 0:Vt.style),Yi),className:na})))))))};var Ct=be.forwardRef(Ht),tn=le(9475),pn=le(17799),Ee=le(96159),ce=le(37419);function se(Ve){if(typeof Ve=="function")return Ve;const gt=(0,ce.Z)(Ve);return gt.length<=1?gt[0]:gt}const fe=()=>{const{status:Ve,errors:gt=[],warnings:Kt=[]}=(0,be.useContext)(ke.aM);return{status:Ve,errors:gt,warnings:Kt}};fe.Context=ke.aM;var de=fe,oe=le(96523);function Te(Ve){const[gt,Kt]=be.useState(Ve),Pt=(0,be.useRef)(null),Gt=(0,be.useRef)([]),Vt=(0,be.useRef)(!1);be.useEffect(()=>(Vt.current=!1,()=>{Vt.current=!0,oe.Z.cancel(Pt.current),Pt.current=null}),[]);function Pn(mr){Vt.current||(Pt.current===null&&(Gt.current=[],Pt.current=(0,oe.Z)(()=>{Pt.current=null,Kt(Vn=>{let Un=Vn;return Gt.current.forEach(er=>{Un=er(Un)}),Un})})),Gt.current.push(mr))}return[gt,Pn]}function je(){const{itemRef:Ve}=be.useContext(ke.q3),gt=be.useRef({});function Kt(Pt,Gt){const Vt=Gt&&typeof Gt=="object"&&Gt.ref,Pn=Pt.join("_");return(gt.current.name!==Pn||gt.current.originRef!==Vt)&&(gt.current.name=Pn,gt.current.originRef=Vt,gt.current.ref=(0,pn.sQ)(Ve(Pt),Vt)),gt.current.ref}return Kt}var Et=le(48130),At=le(14075),Ot=le(10366),Bt=le(92820),Nt=le(21584);const zn=Ve=>{const{formItemCls:gt}=Ve;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${gt}-control`]:{display:"flex"}}}};var Gn=(0,wt.b)(["Form","item-item"],(Ve,gt)=>{let{rootPrefixCls:Kt}=gt;const Pt=Ue(Ve,Kt);return[zn(Pt)]}),cn=Ve=>{const{prefixCls:gt,status:Kt,wrapperCol:Pt,children:Gt,errors:Vt,warnings:Pn,_internalItemRender:mr,extra:Vn,help:Un,fieldId:er,marginBottom:rr,onErrorVisibleChanged:Dr}=Ve,dn=`${gt}-item`,Hn=be.useContext(ke.q3),pi=Pt||Hn.wrapperCol||{},wi=Pe()(`${dn}-control`,pi.className),Zr=be.useMemo(()=>Object.assign({},Hn),[Hn]);delete Zr.labelCol,delete Zr.wrapperCol;const Or=be.createElement("div",{className:`${dn}-control-input`},be.createElement("div",{className:`${dn}-control-input-content`},Gt)),Li=be.useMemo(()=>({prefixCls:gt,status:Kt}),[gt,Kt]),dr=rr!==null||Vt.length||Pn.length?be.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},be.createElement(ke.Rk.Provider,{value:Li},be.createElement(Rt,{fieldId:er,errors:Vt,warnings:Pn,help:Un,helpStatus:Kt,className:`${dn}-explain-connected`,onVisibleChanged:Dr})),!!rr&&be.createElement("div",{style:{width:0,height:rr}})):null,ci={};er&&(ci.id=`${er}_extra`);const vn=Vn?be.createElement("div",Object.assign({},ci,{className:`${dn}-extra`}),Vn):null,Yi=mr&&mr.mark==="pro_table_render"&&mr.render?mr.render(Ve,{input:Or,errorList:dr,extra:vn}):be.createElement(be.Fragment,null,Or,dr,vn);return be.createElement(ke.q3.Provider,{value:Zr},be.createElement(Nt.Z,Object.assign({},pi,{className:wi}),Yi),be.createElement(Gn,{prefixCls:gt}))},Jn=le(17663),lr=le(24457),En=le(10110),wr=le(83062),xi=function(Ve,gt){var Kt={};for(var Pt in Ve)Object.prototype.hasOwnProperty.call(Ve,Pt)&&gt.indexOf(Pt)<0&&(Kt[Pt]=Ve[Pt]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gt=0,Pt=Object.getOwnPropertySymbols(Ve);Gt<Pt.length;Gt++)gt.indexOf(Pt[Gt])<0&&Object.prototype.propertyIsEnumerable.call(Ve,Pt[Gt])&&(Kt[Pt[Gt]]=Ve[Pt[Gt]]);return Kt};function ei(Ve){return Ve?typeof Ve=="object"&&!be.isValidElement(Ve)?Ve:{title:Ve}:null}var Gr=Ve=>{let{prefixCls:gt,label:Kt,htmlFor:Pt,labelCol:Gt,labelAlign:Vt,colon:Pn,required:mr,requiredMark:Vn,tooltip:Un}=Ve;var er;const[rr]=(0,En.Z)("Form"),{vertical:Dr,labelAlign:dn,labelCol:Hn,labelWrap:pi,colon:wi}=be.useContext(ke.q3);if(!Kt)return null;const Zr=Gt||Hn||{},Or=Vt||dn,Li=`${gt}-item-label`,dr=Pe()(Li,Or==="left"&&`${Li}-left`,Zr.className,{[`${Li}-wrap`]:!!pi});let ci=Kt;const vn=Pn===!0||wi!==!1&&Pn!==!1;vn&&!Dr&&typeof Kt=="string"&&Kt.trim()!==""&&(ci=Kt.replace(/[:|]\s*$/,""));const Di=ei(Un);if(Di){const{icon:fa=be.createElement(Jn.Z,null)}=Di,Gi=xi(Di,["icon"]),Ci=be.createElement(wr.Z,Object.assign({},Gi),be.cloneElement(fa,{className:`${gt}-item-tooltip`,title:""}));ci=be.createElement(be.Fragment,null,ci,Ci)}const wa=Vn==="optional",Xi=typeof Vn=="function";Xi?ci=Vn(ci,{required:!!mr}):wa&&!mr&&(ci=be.createElement(be.Fragment,null,ci,be.createElement("span",{className:`${gt}-item-optional`,title:""},(rr==null?void 0:rr.optional)||((er=lr.Z.Form)===null||er===void 0?void 0:er.optional))));const _i=Pe()({[`${gt}-item-required`]:mr,[`${gt}-item-required-mark-optional`]:wa||Xi,[`${gt}-item-no-colon`]:!vn});return be.createElement(Nt.Z,Object.assign({},Zr,{className:dr}),be.createElement("label",{htmlFor:Pt,className:_i,title:typeof Kt=="string"?Kt:""},ci))},Ai=le(87725),ti=le(16646),ki=le(87995),Ri=le(3407);const jn={success:Ai.Z,warning:ki.Z,error:ti.Z,validating:Ri.Z};function Pi(Ve){let{children:gt,errors:Kt,warnings:Pt,hasFeedback:Gt,validateStatus:Vt,prefixCls:Pn,meta:mr,noStyle:Vn}=Ve;const Un=`${Pn}-item`,{feedbackIcons:er}=be.useContext(ke.q3),rr=an(Kt,Pt,mr,null,!!Gt,Vt),{isFormItemInput:Dr,status:dn}=be.useContext(ke.aM),Hn=be.useMemo(()=>{var pi;let wi;if(Gt){const Li=Gt!==!0&&Gt.icons||er,dr=rr&&((pi=Li==null?void 0:Li({status:rr,errors:Kt,warnings:Pt}))===null||pi===void 0?void 0:pi[rr]),ci=rr&&jn[rr];wi=dr!==!1&&ci?be.createElement("span",{className:Pe()(`${Un}-feedback-icon`,`${Un}-feedback-icon-${rr}`)},dr||be.createElement(ci,null)):null}let Zr=!0,Or=rr||"";return Vn&&(Zr=Dr,Or=(rr!=null?rr:dn)||""),{status:Or,errors:Kt,warnings:Pt,hasFeedback:!!Gt,feedbackIcon:wi,isFormItemInput:Zr}},[rr,Gt,Vn,Dr,dn]);return be.createElement(ke.aM.Provider,{value:Hn},gt)}var va=function(Ve,gt){var Kt={};for(var Pt in Ve)Object.prototype.hasOwnProperty.call(Ve,Pt)&&gt.indexOf(Pt)<0&&(Kt[Pt]=Ve[Pt]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gt=0,Pt=Object.getOwnPropertySymbols(Ve);Gt<Pt.length;Gt++)gt.indexOf(Pt[Gt])<0&&Object.prototype.propertyIsEnumerable.call(Ve,Pt[Gt])&&(Kt[Pt[Gt]]=Ve[Pt[Gt]]);return Kt};function da(Ve){const{prefixCls:gt,className:Kt,rootClassName:Pt,style:Gt,help:Vt,errors:Pn,warnings:mr,validateStatus:Vn,meta:Un,hasFeedback:er,hidden:rr,children:Dr,fieldId:dn,required:Hn,isRequired:pi,onSubItemMetaChange:wi}=Ve,Zr=va(Ve,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),Or=`${gt}-item`,{requiredMark:Li}=be.useContext(ke.q3),dr=be.useRef(null),ci=Se(Pn),vn=Se(mr),Yi=Vt!=null,Di=!!(Yi||Pn.length||mr.length),wa=!!dr.current&&(0,Et.Z)(dr.current),[Xi,_i]=be.useState(null);(0,At.Z)(()=>{if(Di&&dr.current){const ka=getComputedStyle(dr.current);_i(parseInt(ka.marginBottom,10))}},[Di,wa]);const fa=ka=>{ka||_i(null)},Ci=function(){let ka=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const na=ka?ci:Un.errors,Fi=ka?vn:Un.warnings;return an(na,Fi,Un,"",!!er,Vn)}(),ta=Pe()(Or,Kt,Pt,{[`${Or}-with-help`]:Yi||ci.length||vn.length,[`${Or}-has-feedback`]:Ci&&er,[`${Or}-has-success`]:Ci==="success",[`${Or}-has-warning`]:Ci==="warning",[`${Or}-has-error`]:Ci==="error",[`${Or}-is-validating`]:Ci==="validating",[`${Or}-hidden`]:rr});return be.createElement("div",{className:ta,style:Gt,ref:dr},be.createElement(Bt.Z,Object.assign({className:`${Or}-row`},(0,Ot.Z)(Zr,["_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(Gr,Object.assign({htmlFor:dn},Ve,{requiredMark:Li,required:Hn!=null?Hn:pi,prefixCls:gt})),be.createElement(cn,Object.assign({},Ve,Un,{errors:ci,warnings:vn,prefixCls:gt,status:Ci,help:Vt,marginBottom:Xi,onErrorVisibleChanged:fa}),be.createElement(ke.qI.Provider,{value:wi},be.createElement(Pi,{prefixCls:gt,meta:Un,errors:Un.errors,warnings:Un.warnings,hasFeedback:er,validateStatus:Ci},Dr)))),!!Xi&&be.createElement("div",{className:`${Or}-margin-offset`,style:{marginBottom:-Xi}}))}const ya="__SPLIT__",ea=null,kt=be.memo(Ve=>{let{children:gt}=Ve;return gt},(Ve,gt)=>Ve.value===gt.value&&Ve.update===gt.update&&Ve.childProps.length===gt.childProps.length&&Ve.childProps.every((Kt,Pt)=>Kt===gt.childProps[Pt]));function bn(Ve){return Ve!=null}function Tn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function In(Ve){const{name:gt,noStyle:Kt,className:Pt,dependencies:Gt,prefixCls:Vt,shouldUpdate:Pn,rules:mr,children:Vn,required:Un,label:er,messageVariables:rr,trigger:Dr="onChange",validateTrigger:dn,hidden:Hn,help:pi}=Ve,{getPrefixCls:wi}=be.useContext(on.E_),{name:Zr}=be.useContext(ke.q3),Or=se(Vn),Li=typeof Or=="function",dr=be.useContext(ke.qI),{validateTrigger:ci}=be.useContext(Dt.FieldContext),vn=dn!==void 0?dn:ci,Yi=bn(gt),Di=wi("form",Vt),[wa,Xi]=ft(Di),_i=be.useContext(Dt.ListContext),fa=be.useRef(),[Gi,Ci]=Te({}),[ta,ka]=(0,tn.Z)(()=>Tn()),na=ht=>{const Wt=_i==null?void 0:_i.getKey(ht.name);if(ka(ht.destroy?Tn():ht,!0),Kt&&pi!==!1&&dr){let rn=ht.name;if(ht.destroy)rn=fa.current||rn;else if(Wt!==void 0){const[Mn,Cr]=Wt;rn=[Mn].concat((0,ge.Z)(Cr)),fa.current=rn}dr(ht,rn)}},Fi=(ht,Wt)=>{Ci(rn=>{const Mn=Object.assign({},rn),Sr=[].concat((0,ge.Z)(ht.name.slice(0,-1)),(0,ge.Z)(Wt)).join(ya);return ht.destroy?delete Mn[Sr]:Mn[Sr]=ht,Mn})},[Aa,Ba]=be.useMemo(()=>{const ht=(0,ge.Z)(ta.errors),Wt=(0,ge.Z)(ta.warnings);return Object.values(Gi).forEach(rn=>{ht.push.apply(ht,(0,ge.Z)(rn.errors||[])),Wt.push.apply(Wt,(0,ge.Z)(rn.warnings||[]))}),[ht,Wt]},[Gi,ta.errors,ta.warnings]),ha=je();function oi(ht,Wt,rn){return Kt&&!Hn?be.createElement(Pi,{prefixCls:Di,hasFeedback:Ve.hasFeedback,validateStatus:Ve.validateStatus,meta:ta,errors:Aa,warnings:Ba,noStyle:!0},ht):be.createElement(da,Object.assign({key:"row"},Ve,{className:Pe()(Pt,Xi),prefixCls:Di,fieldId:Wt,isRequired:rn,errors:Aa,warnings:Ba,meta:ta,onSubItemMetaChange:Fi}),ht)}if(!Yi&&!Li&&!Gt)return wa(oi(Or));let vt={};return typeof er=="string"?vt.label=er:gt&&(vt.label=String(gt)),rr&&(vt=Object.assign(Object.assign({},vt),rr)),wa(be.createElement(Dt.Field,Object.assign({},Ve,{messageVariables:vt,trigger:Dr,validateTrigger:vn,onMetaChange:na}),(ht,Wt,rn)=>{const Mn=Ft(gt).length&&Wt?Wt.name:[],Cr=Sn(Mn,Zr),Sr=Un!==void 0?Un:!!(mr&&mr.some(_r=>{if(_r&&typeof _r=="object"&&_r.required&&!_r.warningOnly)return!0;if(typeof _r=="function"){const ni=_r(rn);return ni&&ni.required&&!ni.warningOnly}return!1})),Tr=Object.assign({},ht);let Fr=null;if(Array.isArray(Or)&&Yi)Fr=Or;else if(!(Li&&(!(Pn||Gt)||Yi))){if(!(Gt&&!Li&&!Yi))if((0,Ee.l$)(Or)){const _r=Object.assign(Object.assign({},Or.props),Tr);if(_r.id||(_r.id=Cr),pi||Aa.length>0||Ba.length>0||Ve.extra){const Ei=[];(pi||Aa.length>0)&&Ei.push(`${Cr}_help`),Ve.extra&&Ei.push(`${Cr}_extra`),_r["aria-describedby"]=Ei.join(" ")}Aa.length>0&&(_r["aria-invalid"]="true"),Sr&&(_r["aria-required"]="true"),(0,pn.Yr)(Or)&&(_r.ref=ha(Mn,Or)),new Set([].concat((0,ge.Z)(Ft(Dr)),(0,ge.Z)(Ft(vn)))).forEach(Ei=>{_r[Ei]=function(){for(var ji,$i,zi,Le,ze,Fe=arguments.length,Ze=new Array(Fe),rt=0;rt<Fe;rt++)Ze[rt]=arguments[rt];(zi=Tr[Ei])===null||zi===void 0||(ji=zi).call.apply(ji,[Tr].concat(Ze)),(ze=(Le=Or.props)[Ei])===null||ze===void 0||($i=ze).call.apply($i,[Le].concat(Ze))}});const di=[_r["aria-required"],_r["aria-invalid"],_r["aria-describedby"]];Fr=be.createElement(kt,{value:Tr[Ve.valuePropName||"value"],update:Or,childProps:di},(0,Ee.Tm)(Or,_r))}else Li&&(Pn||Gt)&&!Yi?Fr=Or(rn):Fr=Or}return oi(Fr,Cr,Sr)}))}const kr=In;kr.useStatus=de;var qn=kr,hr=function(Ve,gt){var Kt={};for(var Pt in Ve)Object.prototype.hasOwnProperty.call(Ve,Pt)&&gt.indexOf(Pt)<0&&(Kt[Pt]=Ve[Pt]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gt=0,Pt=Object.getOwnPropertySymbols(Ve);Gt<Pt.length;Gt++)gt.indexOf(Pt[Gt])<0&&Object.prototype.propertyIsEnumerable.call(Ve,Pt[Gt])&&(Kt[Pt[Gt]]=Ve[Pt[Gt]]);return Kt},qe=Ve=>{var{prefixCls:gt,children:Kt}=Ve,Pt=hr(Ve,["prefixCls","children"]);const{getPrefixCls:Gt}=be.useContext(on.E_),Vt=Gt("form",gt),Pn=be.useMemo(()=>({prefixCls:Vt,status:"error"}),[Vt]);return be.createElement(Dt.List,Object.assign({},Pt),(mr,Vn,Un)=>be.createElement(ke.Rk.Provider,{value:Pn},Kt(mr.map(er=>Object.assign(Object.assign({},er),{fieldKey:er.key})),Vn,{errors:Un.errors,warnings:Un.warnings})))};function st(){const{form:Ve}=(0,be.useContext)(ke.q3);return Ve}const Lt=Ct;Lt.Item=qn,Lt.List=qe,Lt.ErrorList=Rt,Lt.useForm=at,Lt.useFormInstance=st,Lt.useWatch=Dt.useWatch,Lt.Provider=ke.RV,Lt.create=()=>{};var qt=Lt},31795:function(hn,Zt,le){"use strict";le.d(Zt,{Z:function(){return On}});var ge=le(42922),We=le(53978),Pe=le(94184),et=le.n(Pe),be=le(87462),Ae=le(4942),ke=le(71002),Se=le(97685),pe=le(45987),Ie=le(15671),ot=le(43144);function Oe(){return typeof BigInt=="function"}function wt(qe){return!qe&&qe!==0&&!Number.isNaN(qe)||!String(qe).trim()}function lt(qe){var st=qe.trim(),Lt=st.startsWith("-");Lt&&(st=st.slice(1)),st=st.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),st.startsWith(".")&&(st="0".concat(st));var qt=st||"0",Ve=qt.split("."),gt=Ve[0]||"0",Kt=Ve[1]||"0";gt==="0"&&Kt==="0"&&(Lt=!1);var Pt=Lt?"-":"";return{negative:Lt,negativeStr:Pt,trimStr:qt,integerStr:gt,decimalStr:Kt,fullStr:"".concat(Pt).concat(qt)}}function tt(qe){var st=String(qe);return!Number.isNaN(Number(st))&&st.includes("e")}function Ge(qe){var st=String(qe);if(tt(qe)){var Lt=Number(st.slice(st.indexOf("e-")+2)),qt=st.match(/\.(\d+)/);return qt!=null&&qt[1]&&(Lt+=qt[1].length),Lt}return st.includes(".")&&bt(st)?st.length-st.indexOf(".")-1:0}function Me(qe){var st=String(qe);if(tt(qe)){if(qe>Number.MAX_SAFE_INTEGER)return String(Oe()?BigInt(qe).toString():Number.MAX_SAFE_INTEGER);if(qe<Number.MIN_SAFE_INTEGER)return String(Oe()?BigInt(qe).toString():Number.MIN_SAFE_INTEGER);st=qe.toFixed(Ge(st))}return lt(st).fullStr}function bt(qe){return typeof qe=="number"?!Number.isNaN(qe):qe?/^\s*-?\d+(\.\d+)?\s*$/.test(qe)||/^\s*-?\d+\.\s*$/.test(qe)||/^\s*-?\.\d+\s*$/.test(qe):!1}var zt=function(){function qe(st){if((0,Ie.Z)(this,qe),(0,Ae.Z)(this,"origin",""),(0,Ae.Z)(this,"negative",void 0),(0,Ae.Z)(this,"integer",void 0),(0,Ae.Z)(this,"decimal",void 0),(0,Ae.Z)(this,"decimalLen",void 0),(0,Ae.Z)(this,"empty",void 0),(0,Ae.Z)(this,"nan",void 0),wt(st)){this.empty=!0;return}if(this.origin=String(st),st==="-"||Number.isNaN(st)){this.nan=!0;return}var Lt=st;if(tt(Lt)&&(Lt=Number(Lt)),Lt=typeof Lt=="string"?Lt:Me(Lt),bt(Lt)){var qt=lt(Lt);this.negative=qt.negative;var Ve=qt.trimStr.split(".");this.integer=BigInt(Ve[0]);var gt=Ve[1]||"0";this.decimal=BigInt(gt),this.decimalLen=gt.length}else this.nan=!0}return(0,ot.Z)(qe,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(Lt){var qt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(Lt,"0"));return BigInt(qt)}},{key:"negate",value:function(){var Lt=new qe(this.toString());return Lt.negative=!Lt.negative,Lt}},{key:"cal",value:function(Lt,qt,Ve){var gt=Math.max(this.getDecimalStr().length,Lt.getDecimalStr().length),Kt=this.alignDecimal(gt),Pt=Lt.alignDecimal(gt),Gt=qt(Kt,Pt).toString(),Vt=Ve(gt),Pn=lt(Gt),mr=Pn.negativeStr,Vn=Pn.trimStr,Un="".concat(mr).concat(Vn.padStart(Vt+1,"0"));return new qe("".concat(Un.slice(0,-Vt),".").concat(Un.slice(-Vt)))}},{key:"add",value:function(Lt){if(this.isInvalidate())return new qe(Lt);var qt=new qe(Lt);return qt.isInvalidate()?this:this.cal(qt,function(Ve,gt){return Ve+gt},function(Ve){return Ve})}},{key:"multi",value:function(Lt){var qt=new qe(Lt);return this.isInvalidate()||qt.isInvalidate()?new qe(NaN):this.cal(qt,function(Ve,gt){return Ve*gt},function(Ve){return Ve*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(Lt){return this.toString()===(Lt==null?void 0:Lt.toString())}},{key:"lessEquals",value:function(Lt){return this.add(Lt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var Lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Lt?this.isInvalidate()?"":lt("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),qe}(),Ye=function(){function qe(st){if((0,Ie.Z)(this,qe),(0,Ae.Z)(this,"origin",""),(0,Ae.Z)(this,"number",void 0),(0,Ae.Z)(this,"empty",void 0),wt(st)){this.empty=!0;return}this.origin=String(st),this.number=Number(st)}return(0,ot.Z)(qe,[{key:"negate",value:function(){return new qe(-this.toNumber())}},{key:"add",value:function(Lt){if(this.isInvalidate())return new qe(Lt);var qt=Number(Lt);if(Number.isNaN(qt))return this;var Ve=this.number+qt;if(Ve>Number.MAX_SAFE_INTEGER)return new qe(Number.MAX_SAFE_INTEGER);if(Ve<Number.MIN_SAFE_INTEGER)return new qe(Number.MIN_SAFE_INTEGER);var gt=Math.max(Ge(this.number),Ge(qt));return new qe(Ve.toFixed(gt))}},{key:"multi",value:function(Lt){var qt=Number(Lt);if(this.isInvalidate()||Number.isNaN(qt))return new qe(NaN);var Ve=this.number*qt;if(Ve>Number.MAX_SAFE_INTEGER)return new qe(Number.MAX_SAFE_INTEGER);if(Ve<Number.MIN_SAFE_INTEGER)return new qe(Number.MIN_SAFE_INTEGER);var gt=Math.max(Ge(this.number),Ge(qt));return new qe(Ve.toFixed(gt))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(Lt){return this.toNumber()===(Lt==null?void 0:Lt.toNumber())}},{key:"lessEquals",value:function(Lt){return this.add(Lt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var Lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Lt?this.isInvalidate()?"":Me(this.number):this.origin}}]),qe}();function it(qe){return Oe()?new zt(qe):new Ye(qe)}function Be(qe,st,Lt){var qt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(qe==="")return"";var Ve=lt(qe),gt=Ve.negativeStr,Kt=Ve.integerStr,Pt=Ve.decimalStr,Gt="".concat(st).concat(Pt),Vt="".concat(gt).concat(Kt);if(Lt>=0){var Pn=Number(Pt[Lt]);if(Pn>=5&&!qt){var mr=it(qe).add("".concat(gt,"0.").concat("0".repeat(Lt)).concat(10-Pn));return Be(mr.toString(),st,Lt,qt)}return Lt===0?Vt:"".concat(Vt).concat(st).concat(Pt.padEnd(Lt,"0").slice(0,Lt))}return Gt===".0"?Vt:"".concat(Vt).concat(Gt)}var xe=it,Ke=le(67656),Ue=le(67294);function ft(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var pt=ft()?Ue.useLayoutEffect:Ue.useEffect,Mt=function(st,Lt){var qt=Ue.useRef(!0);pt(function(){return st(qt.current)},Lt),pt(function(){return qt.current=!1,function(){qt.current=!0}},[])},Qe=function(st,Lt){Mt(function(qt){if(!qt)return st()},Lt)},Rt=Mt,Dt=le(27183);function on(qe,st,Lt){var qt=React.useRef({});return(!("value"in qt.current)||Lt(qt.current.condition,st))&&(qt.current.value=qe(),qt.current.condition=st),qt.current.value}function Ut(qe,st){typeof qe=="function"?qe(st):(0,ke.Z)(qe)==="object"&&qe&&"current"in qe&&(qe.current=st)}function wn(){for(var qe=arguments.length,st=new Array(qe),Lt=0;Lt<qe;Lt++)st[Lt]=arguments[Lt];var qt=st.filter(function(Ve){return Ve});return qt.length<=1?qt[0]:function(Ve){st.forEach(function(gt){Ut(gt,Ve)})}}function Xn(){for(var qe=arguments.length,st=new Array(qe),Lt=0;Lt<qe;Lt++)st[Lt]=arguments[Lt];return useMemo(function(){return wn.apply(void 0,st)},st,function(qt,Ve){return qt.length!==Ve.length||qt.every(function(gt,Kt){return gt!==Ve[Kt]})})}function nr(qe){var st,Lt,qt=isMemo(qe)?qe.type.type:qe.type;return!(typeof qt=="function"&&!((st=qt.prototype)!==null&&st!==void 0&&st.render)||typeof qe=="function"&&!((Lt=qe.prototype)!==null&&Lt!==void 0&&Lt.render))}function Je(qe){return!isValidElement(qe)||isFragment(qe)?!1:nr(qe)}var _e={},Ft=[],Sn=function(st){Ft.push(st)};function an(qe,st){if(0)var Lt}function nt(qe,st){if(0)var Lt}function at(){_e={}}function $t(qe,st,Lt){!st&&!_e[Lt]&&(qe(!1,Lt),_e[Lt]=!0)}function kn(qe,st){$t(an,qe,st)}function Ht(qe,st){$t(nt,qe,st)}kn.preMessage=Sn,kn.resetWarned=at,kn.noteOnce=Ht;var It=kn;function Ct(qe,st){var Lt=(0,Ue.useRef)(null);function qt(){try{var gt=qe.selectionStart,Kt=qe.selectionEnd,Pt=qe.value,Gt=Pt.substring(0,gt),Vt=Pt.substring(Kt);Lt.current={start:gt,end:Kt,value:Pt,beforeTxt:Gt,afterTxt:Vt}}catch(Pn){}}function Ve(){if(qe&&Lt.current&&st)try{var gt=qe.value,Kt=Lt.current,Pt=Kt.beforeTxt,Gt=Kt.afterTxt,Vt=Kt.start,Pn=gt.length;if(gt.endsWith(Gt))Pn=gt.length-Lt.current.afterTxt.length;else if(gt.startsWith(Pt))Pn=Pt.length;else{var mr=Pt[Vt-1],Vn=gt.indexOf(mr,Vt-1);Vn!==-1&&(Pn=Vn+1)}qe.setSelectionRange(Pn,Pn)}catch(Un){It(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Un.message))}}return[qt,Ve]}var tn=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var qe=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(qe)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(qe==null?void 0:qe.substr(0,4))},pn=function(){var st=(0,Ue.useState)(!1),Lt=(0,Se.Z)(st,2),qt=Lt[0],Ve=Lt[1];return Rt(function(){Ve(tn())},[]),qt},Ee=pn,ce=function(st){return+setTimeout(st,16)},se=function(st){return clearTimeout(st)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(ce=function(st){return window.requestAnimationFrame(st)},se=function(st){return window.cancelAnimationFrame(st)});var fe=0,de=new Map;function oe(qe){de.delete(qe)}var Te=function(st){var Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;fe+=1;var qt=fe;function Ve(gt){if(gt===0)oe(qt),st();else{var Kt=ce(function(){Ve(gt-1)});de.set(qt,Kt)}}return Ve(Lt),qt};Te.cancel=function(qe){var st=de.get(qe);return oe(st),se(st)};var je=Te,Et=200,At=600;function Ot(qe){var st=qe.prefixCls,Lt=qe.upNode,qt=qe.downNode,Ve=qe.upDisabled,gt=qe.downDisabled,Kt=qe.onStep,Pt=Ue.useRef(),Gt=Ue.useRef([]),Vt=Ue.useRef();Vt.current=Kt;var Pn=function(){clearTimeout(Pt.current)},mr=function(pi,wi){pi.preventDefault(),Pn(),Vt.current(wi);function Zr(){Vt.current(wi),Pt.current=setTimeout(Zr,Et)}Pt.current=setTimeout(Zr,At)};Ue.useEffect(function(){return function(){Pn(),Gt.current.forEach(function(Hn){return je.cancel(Hn)})}},[]);var Vn=Ee();if(Vn)return null;var Un="".concat(st,"-handler"),er=et()(Un,"".concat(Un,"-up"),(0,Ae.Z)({},"".concat(Un,"-up-disabled"),Ve)),rr=et()(Un,"".concat(Un,"-down"),(0,Ae.Z)({},"".concat(Un,"-down-disabled"),gt)),Dr=function(){return Gt.current.push(je(Pn))},dn={unselectable:"on",role:"button",onMouseUp:Dr,onMouseLeave:Dr};return Ue.createElement("div",{className:"".concat(Un,"-wrap")},Ue.createElement("span",(0,be.Z)({},dn,{onMouseDown:function(pi){mr(pi,!0)},"aria-label":"Increase Value","aria-disabled":Ve,className:er}),Lt||Ue.createElement("span",{unselectable:"on",className:"".concat(st,"-handler-up-inner")})),Ue.createElement("span",(0,be.Z)({},dn,{onMouseDown:function(pi){mr(pi,!1)},"aria-label":"Decrease Value","aria-disabled":gt,className:rr}),qt||Ue.createElement("span",{unselectable:"on",className:"".concat(st,"-handler-down-inner")})))}function Bt(qe){var st=typeof qe=="number"?Me(qe):lt(qe).fullStr,Lt=st.includes(".");return Lt?lt(st.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:qe+"0"}var Nt=le(87887),zn=function(){var qe=(0,Ue.useRef)(0),st=function(){je.cancel(qe.current)};return(0,Ue.useEffect)(function(){return st},[]),function(Lt){st(),qe.current=je(function(){Lt()})}},Gn=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],_t=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],cn=function(st,Lt){return st||Lt.isEmpty()?Lt.toString():Lt.toNumber()},Jn=function(st){var Lt=xe(st);return Lt.isInvalidate()?null:Lt},lr=Ue.forwardRef(function(qe,st){var Lt,qt=qe.prefixCls,Ve=qt===void 0?"rc-input-number":qt,gt=qe.className,Kt=qe.style,Pt=qe.min,Gt=qe.max,Vt=qe.step,Pn=Vt===void 0?1:Vt,mr=qe.defaultValue,Vn=qe.value,Un=qe.disabled,er=qe.readOnly,rr=qe.upHandler,Dr=qe.downHandler,dn=qe.keyboard,Hn=qe.controls,pi=Hn===void 0?!0:Hn,wi=qe.classNames,Zr=qe.stringMode,Or=qe.parser,Li=qe.formatter,dr=qe.precision,ci=qe.decimalSeparator,vn=qe.onChange,Yi=qe.onInput,Di=qe.onPressEnter,wa=qe.onStep,Xi=(0,pe.Z)(qe,Gn),_i="".concat(Ve,"-input"),fa=Ue.useRef(null),Gi=Ue.useState(!1),Ci=(0,Se.Z)(Gi,2),ta=Ci[0],ka=Ci[1],na=Ue.useRef(!1),Fi=Ue.useRef(!1),Aa=Ue.useRef(!1),Ba=Ue.useState(function(){return xe(Vn!=null?Vn:mr)}),ha=(0,Se.Z)(Ba,2),oi=ha[0],vt=ha[1];function ht(Kn){Vn===void 0&&vt(Kn)}var Wt=Ue.useCallback(function(Kn,Nn){if(!Nn)return dr>=0?dr:Math.max(Ge(Kn),Ge(Pn))},[dr,Pn]),rn=Ue.useCallback(function(Kn){var Nn=String(Kn);if(Or)return Or(Nn);var $n=Nn;return ci&&($n=$n.replace(ci,".")),$n.replace(/[^\w.-]+/g,"")},[Or,ci]),Mn=Ue.useRef(""),Cr=Ue.useCallback(function(Kn,Nn){if(Li)return Li(Kn,{userTyping:Nn,input:String(Mn.current)});var $n=typeof Kn=="number"?Me(Kn):Kn;if(!Nn){var Wn=Wt($n,Nn);if(bt($n)&&(ci||Wn>=0)){var or=ci||".";$n=Be($n,or,Wn)}}return $n},[Li,Wt,ci]),Sr=Ue.useState(function(){var Kn=mr!=null?mr:Vn;return oi.isInvalidate()&&["string","number"].includes((0,ke.Z)(Kn))?Number.isNaN(Kn)?"":Kn:Cr(oi.toString(),!1)}),Tr=(0,Se.Z)(Sr,2),Fr=Tr[0],_r=Tr[1];Mn.current=Fr;function ni(Kn,Nn){_r(Cr(Kn.isInvalidate()?Kn.toString(!1):Kn.toString(!Nn),Nn))}var di=Ue.useMemo(function(){return Jn(Gt)},[Gt,dr]),Ei=Ue.useMemo(function(){return Jn(Pt)},[Pt,dr]),ji=Ue.useMemo(function(){return!di||!oi||oi.isInvalidate()?!1:di.lessEquals(oi)},[di,oi]),$i=Ue.useMemo(function(){return!Ei||!oi||oi.isInvalidate()?!1:oi.lessEquals(Ei)},[Ei,oi]),zi=Ct(fa.current,ta),Le=(0,Se.Z)(zi,2),ze=Le[0],Fe=Le[1],Ze=function(Nn){return di&&!Nn.lessEquals(di)?di:Ei&&!Ei.lessEquals(Nn)?Ei:null},rt=function(Nn){return!Ze(Nn)},dt=function(Nn,$n){var Wn=Nn,or=rt(Wn)||Wn.isEmpty();if(!Wn.isEmpty()&&!$n&&(Wn=Ze(Wn)||Wn,or=!0),!er&&!Un&&or){var He=Wn.toString(),$e=Wt(He,$n);return $e>=0&&(Wn=xe(Be(He,".",$e)),rt(Wn)||(Wn=xe(Be(He,".",$e,!0)))),Wn.equals(oi)||(ht(Wn),vn==null||vn(Wn.isEmpty()?null:cn(Zr,Wn)),Vn===void 0&&ni(Wn,$n)),Wn}return oi},yt=zn(),Xt=function Kn(Nn){if(ze(),Mn.current=Nn,_r(Nn),!Fi.current){var $n=rn(Nn),Wn=xe($n);Wn.isNaN()||dt(Wn,!0)}Yi==null||Yi(Nn),yt(function(){var or=Nn;Or||(or=Nn.replace(/。/g,".")),or!==Nn&&Kn(or)})},Jt=function(){Fi.current=!0},Fn=function(){Fi.current=!1,Xt(fa.current.value)},ir=function(Nn){Xt(Nn.target.value)},_n=function(Nn){var $n;if(!(Nn&&ji||!Nn&&$i)){na.current=!1;var Wn=xe(Aa.current?Bt(Pn):Pn);Nn||(Wn=Wn.negate());var or=(oi||xe(0)).add(Wn.toString()),He=dt(or,!1);wa==null||wa(cn(Zr,He),{offset:Aa.current?Bt(Pn):Pn,type:Nn?"up":"down"}),($n=fa.current)===null||$n===void 0||$n.focus()}},sn=function(Nn){var $n=xe(rn(Fr)),Wn=$n;$n.isNaN()?Wn=dt(oi,Nn):Wn=dt($n,Nn),Vn!==void 0?ni(oi,!1):Wn.isNaN()||ni(Wn,!1)},nn=function(){na.current=!0},gn=function(Nn){var $n=Nn.key,Wn=Nn.shiftKey;na.current=!0,Aa.current=Wn,$n==="Enter"&&(Fi.current||(na.current=!1),sn(!1),Di==null||Di(Nn)),dn!==!1&&!Fi.current&&["Up","ArrowUp","Down","ArrowDown"].includes($n)&&(_n($n==="Up"||$n==="ArrowUp"),Nn.preventDefault())},xn=function(){na.current=!1,Aa.current=!1},tr=function(){sn(!1),ka(!1),na.current=!1};return Qe(function(){oi.isInvalidate()||ni(oi,!1)},[dr]),Qe(function(){var Kn=xe(Vn);vt(Kn);var Nn=xe(rn(Fr));(!Kn.equals(Nn)||!na.current||Li)&&ni(Kn,na.current)},[Vn]),Qe(function(){Li&&Fe()},[Fr]),Ue.createElement("div",{className:et()(Ve,wi==null?void 0:wi.input,gt,(Lt={},(0,Ae.Z)(Lt,"".concat(Ve,"-focused"),ta),(0,Ae.Z)(Lt,"".concat(Ve,"-disabled"),Un),(0,Ae.Z)(Lt,"".concat(Ve,"-readonly"),er),(0,Ae.Z)(Lt,"".concat(Ve,"-not-a-number"),oi.isNaN()),(0,Ae.Z)(Lt,"".concat(Ve,"-out-of-range"),!oi.isInvalidate()&&!rt(oi)),Lt)),style:Kt,onFocus:function(){ka(!0)},onBlur:tr,onKeyDown:gn,onKeyUp:xn,onCompositionStart:Jt,onCompositionEnd:Fn,onBeforeInput:nn},pi&&Ue.createElement(Ot,{prefixCls:Ve,upNode:rr,downNode:Dr,upDisabled:ji,downDisabled:$i,onStep:_n}),Ue.createElement("div",{className:"".concat(_i,"-wrap")},Ue.createElement("input",(0,be.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Pt,"aria-valuemax":Gt,"aria-valuenow":oi.isInvalidate()?null:oi.toString(),step:Pn},Xi,{ref:wn(fa,st),className:_i,value:Fr,onChange:ir,disabled:Un,readOnly:er}))))}),En=Ue.forwardRef(function(qe,st){var Lt=qe.disabled,qt=qe.style,Ve=qe.prefixCls,gt=qe.value,Kt=qe.prefix,Pt=qe.suffix,Gt=qe.addonBefore,Vt=qe.addonAfter,Pn=qe.classes,mr=qe.className,Vn=qe.classNames,Un=(0,pe.Z)(qe,_t),er=Ue.useRef(null),rr=function(dn){er.current&&(0,Nt.nH)(er.current,dn)};return Ue.createElement(Ke.BaseInput,{inputElement:Ue.createElement(lr,(0,be.Z)({prefixCls:Ve,disabled:Lt,classNames:Vn,ref:wn(er,st)},Un)),className:mr,triggerFocus:rr,prefixCls:Ve,value:gt,disabled:Lt,style:qt,prefix:Kt,suffix:Pt,addonAfter:Vt,addonBefore:Gt,classes:Pn,classNames:Vn,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});En.displayName="InputNumber";var wr=En,xi=wr,ei=le(9708),Yr=le(53124),Gr=le(46735),Ai=le(98866),ti=le(98675),ki=le(65223),Ri=le(4173),jn=le(47673),Pi=le(14747),va=le(80110),da=le(67968),ya=le(45503);const ea=(qe,st)=>{let{componentCls:Lt,borderRadiusSM:qt,borderRadiusLG:Ve}=qe;const gt=st==="lg"?Ve:qt;return{[`&-${st}`]:{[`${Lt}-handler-wrap`]:{borderStartEndRadius:gt,borderEndEndRadius:gt},[`${Lt}-handler-up`]:{borderStartEndRadius:gt},[`${Lt}-handler-down`]:{borderEndEndRadius:gt}}}},kt=qe=>{const{componentCls:st,lineWidth:Lt,lineType:qt,colorBorder:Ve,borderRadius:gt,fontSizeLG:Kt,controlHeightLG:Pt,controlHeightSM:Gt,colorError:Vt,paddingInlineSM:Pn,colorTextDescription:mr,motionDurationMid:Vn,handleHoverColor:Un,paddingInline:er,paddingBlock:rr,handleBg:Dr,handleActiveBg:dn,colorTextDisabled:Hn,borderRadiusSM:pi,borderRadiusLG:wi,controlWidth:Zr,handleVisible:Or,handleBorderColor:Li}=qe;return[{[st]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Pi.Wf)(qe)),(0,jn.ik)(qe)),(0,jn.bi)(qe,st)),{display:"inline-block",width:Zr,margin:0,padding:0,border:`${Lt}px ${qt} ${Ve}`,borderRadius:gt,"&-rtl":{direction:"rtl",[`${st}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Kt,borderRadius:wi,[`input${st}-input`]:{height:Pt-2*Lt}},"&-sm":{padding:0,borderRadius:pi,[`input${st}-input`]:{height:Gt-2*Lt,padding:`0 ${Pn}px`}},"&:hover":Object.assign({},(0,jn.pU)(qe)),"&-focused":Object.assign({},(0,jn.M1)(qe)),"&-out-of-range":{[`${st}-input-wrap`]:{input:{color:Vt}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Pi.Wf)(qe)),(0,jn.s7)(qe)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${st}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${st}-group-addon`]:{borderRadius:wi,fontSize:qe.fontSizeLG}},"&-sm":{[`${st}-group-addon`]:{borderRadius:pi}},[`${st}-wrapper-disabled > ${st}-group-addon`]:Object.assign({},(0,jn.Xy)(qe))}}),[`&-disabled ${st}-input`]:{cursor:"not-allowed"},[st]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,Pi.Wf)(qe)),{width:"100%",padding:`${rr}px ${er}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:gt,outline:0,transition:`all ${Vn} linear`,appearance:"textfield",fontSize:"inherit"}),(0,jn.nz)(qe.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[st]:Object.assign(Object.assign(Object.assign({[`&:hover ${st}-handler-wrap, &-focused ${st}-handler-wrap`]:{opacity:1},[`${st}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:qe.handleWidth,height:"100%",background:Dr,borderStartStartRadius:0,borderStartEndRadius:gt,borderEndEndRadius:gt,borderEndStartRadius:0,opacity:Or===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${Vn} linear ${Vn}`,[`${st}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
${st}-handler-up-inner,
${st}-handler-down-inner
`]:{marginInlineEnd:0,fontSize:qe.handleFontSize}}},[`${st}-handler`]:{height:"50%",overflow:"hidden",color:mr,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Lt}px ${qt} ${Li}`,transition:`all ${Vn} linear`,"&:active":{background:dn},"&:hover":{height:"60%",[`
${st}-handler-up-inner,
${st}-handler-down-inner
`]:{color:Un}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Pi.Ro)()),{color:mr,transition:`all ${Vn} linear`,userSelect:"none"})},[`${st}-handler-up`]:{borderStartEndRadius:gt},[`${st}-handler-down`]:{borderBlockStart:`${Lt}px ${qt} ${Li}`,borderEndEndRadius:gt}},ea(qe,"lg")),ea(qe,"sm")),{"&-disabled, &-readonly":{[`${st}-handler-wrap`]:{display:"none"},[`${st}-input`]:{color:"inherit"}},[`
${st}-handler-up-disabled,
${st}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${st}-handler-up-disabled:hover &-handler-up-inner,
${st}-handler-down-disabled:hover &-handler-down-inner
`]:{color:Hn}})},{[`${st}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${st}-handler-down`]:{borderBlockStartWidth:0}}}]},bn=qe=>{const{componentCls:st,paddingBlock:Lt,paddingInline:qt,inputAffixPadding:Ve,controlWidth:gt,borderRadiusLG:Kt,borderRadiusSM:Pt}=qe;return{[`${st}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,jn.ik)(qe)),(0,jn.bi)(qe,`${st}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:gt,padding:0,paddingInlineStart:qt,"&-lg":{borderRadius:Kt},"&-sm":{borderRadius:Pt},[`&:not(${st}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,jn.pU)(qe)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${st}-disabled`]:{background:"transparent"},[`> div${st}`]:{width:"100%",border:"none",outline:"none",[`&${st}-focused`]:{boxShadow:"none !important"}},[`input${st}-input`]:{padding:`${Lt}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${st}-handler-wrap`]:{zIndex:2},[st]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Ve},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:qt,marginInlineStart:Ve}}})}};var Tn=(0,da.Z)("InputNumber",qe=>{const st=(0,ya.TS)(qe,(0,jn.e5)(qe));return[kt(st),bn(st),(0,va.c)(st)]},qe=>Object.assign(Object.assign({},(0,jn.TM)(qe)),{controlWidth:90,handleWidth:qe.controlHeightSM-qe.lineWidth*2,handleFontSize:qe.fontSize/2,handleVisible:"auto",handleActiveBg:qe.colorFillAlter,handleBg:qe.colorBgContainer,handleHoverColor:qe.colorPrimary,handleBorderColor:qe.colorBorder})),In=function(qe,st){var Lt={};for(var qt in qe)Object.prototype.hasOwnProperty.call(qe,qt)&&st.indexOf(qt)<0&&(Lt[qt]=qe[qt]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,qt=Object.getOwnPropertySymbols(qe);Ve<qt.length;Ve++)st.indexOf(qt[Ve])<0&&Object.prototype.propertyIsEnumerable.call(qe,qt[Ve])&&(Lt[qt[Ve]]=qe[qt[Ve]]);return Lt};const kr=Ue.forwardRef((qe,st)=>{const{getPrefixCls:Lt,direction:qt}=Ue.useContext(Yr.E_),Ve=Ue.useRef(null);Ue.useImperativeHandle(st,()=>Ve.current);const{className:gt,rootClassName:Kt,size:Pt,disabled:Gt,prefixCls:Vt,addonBefore:Pn,addonAfter:mr,prefix:Vn,bordered:Un=!0,readOnly:er,status:rr,controls:Dr}=qe,dn=In(qe,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),Hn=Lt("input-number",Vt),[pi,wi]=Tn(Hn),{compactSize:Zr,compactItemClassnames:Or}=(0,Ri.ri)(Hn,qt);let Li=Ue.createElement(We.Z,{className:`${Hn}-handler-up-inner`}),dr=Ue.createElement(ge.Z,{className:`${Hn}-handler-down-inner`});const ci=typeof Dr=="boolean"?Dr:void 0;typeof Dr=="object"&&(Li=typeof Dr.upIcon=="undefined"?Li:Ue.createElement("span",{className:`${Hn}-handler-up-inner`},Dr.upIcon),dr=typeof Dr.downIcon=="undefined"?dr:Ue.createElement("span",{className:`${Hn}-handler-down-inner`},Dr.downIcon));const{hasFeedback:vn,status:Yi,isFormItemInput:Di,feedbackIcon:wa}=Ue.useContext(ki.aM),Xi=(0,ei.F)(Yi,rr),_i=(0,ti.Z)(na=>{var Fi;return(Fi=Pt!=null?Pt:Zr)!==null&&Fi!==void 0?Fi:na}),fa=Ue.useContext(Ai.Z),Gi=Gt!=null?Gt:fa,Ci=et()({[`${Hn}-lg`]:_i==="large",[`${Hn}-sm`]:_i==="small",[`${Hn}-rtl`]:qt==="rtl",[`${Hn}-borderless`]:!Un,[`${Hn}-in-form-item`]:Di},(0,ei.Z)(Hn,Xi),Or,wi),ta=`${Hn}-group`,ka=Ue.createElement(xi,Object.assign({ref:Ve,disabled:Gi,className:et()(gt,Kt),upHandler:Li,downHandler:dr,prefixCls:Hn,readOnly:er,controls:ci,prefix:Vn,suffix:vn&&wa,addonAfter:mr&&Ue.createElement(Ri.BR,null,Ue.createElement(ki.Ux,{override:!0,status:!0},mr)),addonBefore:Pn&&Ue.createElement(Ri.BR,null,Ue.createElement(ki.Ux,{override:!0,status:!0},Pn)),classNames:{input:Ci},classes:{affixWrapper:et()((0,ei.Z)(`${Hn}-affix-wrapper`,Xi,vn),{[`${Hn}-affix-wrapper-sm`]:_i==="small",[`${Hn}-affix-wrapper-lg`]:_i==="large",[`${Hn}-affix-wrapper-rtl`]:qt==="rtl",[`${Hn}-affix-wrapper-borderless`]:!Un},wi),wrapper:et()({[`${ta}-rtl`]:qt==="rtl",[`${Hn}-wrapper-disabled`]:Gi},wi),group:et()({[`${Hn}-group-wrapper-sm`]:_i==="small",[`${Hn}-group-wrapper-lg`]:_i==="large",[`${Hn}-group-wrapper-rtl`]:qt==="rtl"},(0,ei.Z)(`${Hn}-group-wrapper`,Xi,vn),wi)}},dn));return pi(ka)}),qn=kr,hr=qe=>Ue.createElement(Gr.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},Ue.createElement(kr,Object.assign({},qe)));qn._InternalPanelDoNotUseOrYouWillBeFired=hr;var On=qn},82586:function(hn,Zt,le){"use strict";le.d(Zt,{Z:function(){return zt},n:function(){return Me}});var ge=le(16646),We=le(94184),Pe=le.n(We),et=le(67656),be=le(17799),Ae=le(67294),ke=le(9708),Se=le(53124),pe=le(98866),Ie=le(98675),ot=le(65223),Oe=le(4173),wt=le(72922),lt=le(47673);function tt(Ye){return!!(Ye.prefix||Ye.suffix||Ye.allowClear)}var Ge=function(Ye,it){var Be={};for(var xe in Ye)Object.prototype.hasOwnProperty.call(Ye,xe)&&it.indexOf(xe)<0&&(Be[xe]=Ye[xe]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,xe=Object.getOwnPropertySymbols(Ye);Ke<xe.length;Ke++)it.indexOf(xe[Ke])<0&&Object.prototype.propertyIsEnumerable.call(Ye,xe[Ke])&&(Be[xe[Ke]]=Ye[xe[Ke]]);return Be};function Me(Ye,it){if(!Ye)return;Ye.focus(it);const{cursor:Be}=it||{};if(Be){const xe=Ye.value.length;switch(Be){case"start":Ye.setSelectionRange(0,0);break;case"end":Ye.setSelectionRange(xe,xe);break;default:Ye.setSelectionRange(0,xe);break}}}var zt=(0,Ae.forwardRef)((Ye,it)=>{var Be;const{prefixCls:xe,bordered:Ke=!0,status:Ue,size:ft,disabled:pt,onBlur:Mt,onFocus:Qe,suffix:Rt,allowClear:Dt,addonAfter:on,addonBefore:Ut,className:wn,style:Xn,styles:nr,rootClassName:Je,onChange:_e,classNames:Ft}=Ye,Sn=Ge(Ye,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:an,direction:nt,input:at}=Ae.useContext(Se.E_),$t=an("input",xe),kn=(0,Ae.useRef)(null),[Ht,It]=(0,lt.ZP)($t),{compactSize:Ct,compactItemClassnames:tn}=(0,Oe.ri)($t,nt),pn=(0,Ie.Z)(Gn=>{var _t;return(_t=ft!=null?ft:Ct)!==null&&_t!==void 0?_t:Gn}),Ee=Ae.useContext(pe.Z),ce=pt!=null?pt:Ee,{status:se,hasFeedback:fe,feedbackIcon:de}=(0,Ae.useContext)(ot.aM),oe=(0,ke.F)(se,Ue),Te=tt(Ye)||!!fe,je=(0,Ae.useRef)(Te);(0,Ae.useEffect)(()=>{var Gn;Te&&je.current,je.current=Te},[Te]);const Et=(0,wt.Z)(kn,!0),At=Gn=>{Et(),Mt==null||Mt(Gn)},Ot=Gn=>{Et(),Qe==null||Qe(Gn)},Bt=Gn=>{Et(),_e==null||_e(Gn)},Nt=(fe||Rt)&&Ae.createElement(Ae.Fragment,null,Rt,fe&&de);let zn;return typeof Dt=="object"&&(Dt!=null&&Dt.clearIcon)?zn=Dt:Dt&&(zn={clearIcon:Ae.createElement(ge.Z,null)}),Ht(Ae.createElement(et.default,Object.assign({ref:(0,be.sQ)(it,kn),prefixCls:$t,autoComplete:at==null?void 0:at.autoComplete},Sn,{disabled:ce,onBlur:At,onFocus:Ot,style:Object.assign(Object.assign({},at==null?void 0:at.style),Xn),styles:Object.assign(Object.assign({},at==null?void 0:at.styles),nr),suffix:Nt,allowClear:zn,className:Pe()(wn,Je,tn,at==null?void 0:at.className),onChange:Bt,addonAfter:on&&Ae.createElement(Oe.BR,null,Ae.createElement(ot.Ux,{override:!0,status:!0},on)),addonBefore:Ut&&Ae.createElement(Oe.BR,null,Ae.createElement(ot.Ux,{override:!0,status:!0},Ut)),classNames:Object.assign(Object.assign(Object.assign({},Ft),at==null?void 0:at.classNames),{input:Pe()({[`${$t}-sm`]:pn==="small",[`${$t}-lg`]:pn==="large",[`${$t}-rtl`]:nt==="rtl",[`${$t}-borderless`]:!Ke},!Te&&(0,ke.Z)($t,oe),Ft==null?void 0:Ft.input,(Be=at==null?void 0:at.classNames)===null||Be===void 0?void 0:Be.input,It)}),classes:{affixWrapper:Pe()({[`${$t}-affix-wrapper-sm`]:pn==="small",[`${$t}-affix-wrapper-lg`]:pn==="large",[`${$t}-affix-wrapper-rtl`]:nt==="rtl",[`${$t}-affix-wrapper-borderless`]:!Ke},(0,ke.Z)(`${$t}-affix-wrapper`,oe,fe),It),wrapper:Pe()({[`${$t}-group-rtl`]:nt==="rtl"},It),group:Pe()({[`${$t}-group-wrapper-sm`]:pn==="small",[`${$t}-group-wrapper-lg`]:pn==="large",[`${$t}-group-wrapper-rtl`]:nt==="rtl",[`${$t}-group-wrapper-disabled`]:ce},(0,ke.Z)(`${$t}-group-wrapper`,oe,fe),It)}})))})},96330:function(hn,Zt,le){"use strict";var ge=le(16646),We=le(94184),Pe=le.n(We),et=le(64701),be=le(67294),Ae=le(9708),ke=le(53124),Se=le(98866),pe=le(98675),Ie=le(65223),ot=le(82586),Oe=le(47673),wt=function(tt,Ge){var Me={};for(var bt in tt)Object.prototype.hasOwnProperty.call(tt,bt)&&Ge.indexOf(bt)<0&&(Me[bt]=tt[bt]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,bt=Object.getOwnPropertySymbols(tt);zt<bt.length;zt++)Ge.indexOf(bt[zt])<0&&Object.prototype.propertyIsEnumerable.call(tt,bt[zt])&&(Me[bt[zt]]=tt[bt[zt]]);return Me};const lt=(0,be.forwardRef)((tt,Ge)=>{const{prefixCls:Me,bordered:bt=!0,size:zt,disabled:Ye,status:it,allowClear:Be,showCount:xe,classNames:Ke,rootClassName:Ue,className:ft}=tt,pt=wt(tt,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Mt,direction:Qe}=be.useContext(ke.E_),Rt=(0,pe.Z)(zt),Dt=be.useContext(Se.Z),on=Ye!=null?Ye:Dt,{status:Ut,hasFeedback:wn,feedbackIcon:Xn}=be.useContext(Ie.aM),nr=(0,Ae.F)(Ut,it),Je=be.useRef(null);be.useImperativeHandle(Ge,()=>{var nt;return{resizableTextArea:(nt=Je.current)===null||nt===void 0?void 0:nt.resizableTextArea,focus:at=>{var $t,kn;(0,ot.n)((kn=($t=Je.current)===null||$t===void 0?void 0:$t.resizableTextArea)===null||kn===void 0?void 0:kn.textArea,at)},blur:()=>{var at;return(at=Je.current)===null||at===void 0?void 0:at.blur()}}});const _e=Mt("input",Me);let Ft;typeof Be=="object"&&(Be!=null&&Be.clearIcon)?Ft=Be:Be&&(Ft={clearIcon:be.createElement(ge.Z,null)});const[Sn,an]=(0,Oe.ZP)(_e);return Sn(be.createElement(et.default,Object.assign({},pt,{disabled:on,allowClear:Ft,className:Pe()(ft,Ue),classes:{affixWrapper:Pe()(`${_e}-textarea-affix-wrapper`,{[`${_e}-affix-wrapper-rtl`]:Qe==="rtl",[`${_e}-affix-wrapper-borderless`]:!bt,[`${_e}-affix-wrapper-sm`]:Rt==="small",[`${_e}-affix-wrapper-lg`]:Rt==="large",[`${_e}-textarea-show-count`]:xe},(0,Ae.Z)(`${_e}-affix-wrapper`,nr),an)},classNames:Object.assign(Object.assign({},Ke),{textarea:Pe()({[`${_e}-borderless`]:!bt,[`${_e}-sm`]:Rt==="small",[`${_e}-lg`]:Rt==="large"},(0,Ae.Z)(_e,nr),an,Ke==null?void 0:Ke.textarea)}),prefixCls:_e,suffix:wn&&be.createElement("span",{className:`${_e}-textarea-suffix`},Xn),showCount:xe,ref:Je})))});Zt.Z=lt},72922:function(hn,Zt,le){"use strict";le.d(Zt,{Z:function(){return We}});var ge=le(67294);function We(Pe,et){const be=(0,ge.useRef)([]),Ae=()=>{be.current.push(setTimeout(()=>{var ke,Se,pe,Ie;!((ke=Pe.current)===null||ke===void 0)&&ke.input&&((Se=Pe.current)===null||Se===void 0?void 0:Se.input.getAttribute("type"))==="password"&&(!((pe=Pe.current)===null||pe===void 0)&&pe.input.hasAttribute("value"))&&((Ie=Pe.current)===null||Ie===void 0||Ie.input.removeAttribute("value"))}))};return(0,ge.useEffect)(()=>(et&&Ae(),()=>be.current.forEach(ke=>{ke&&clearTimeout(ke)})),[]),Ae}},69677:function(hn,Zt,le){"use strict";le.d(Zt,{default:function(){return Rt}});var ge=le(94184),We=le.n(ge),Pe=le(67294),et=le(53124),be=le(65223),Ae=le(47673),Se=Dt=>{const{getPrefixCls:on,direction:Ut}=(0,Pe.useContext)(et.E_),{prefixCls:wn,className:Xn}=Dt,nr=on("input-group",wn),Je=on("input"),[_e,Ft]=(0,Ae.ZP)(Je),Sn=We()(nr,{[`${nr}-lg`]:Dt.size==="large",[`${nr}-sm`]:Dt.size==="small",[`${nr}-compact`]:Dt.compact,[`${nr}-rtl`]:Ut==="rtl"},Ft,Xn),an=(0,Pe.useContext)(be.aM),nt=(0,Pe.useMemo)(()=>Object.assign(Object.assign({},an),{isFormItemInput:!1}),[an]);return _e(Pe.createElement("span",{className:Sn,style:Dt.style,onMouseEnter:Dt.onMouseEnter,onMouseLeave:Dt.onMouseLeave,onFocus:Dt.onFocus,onBlur:Dt.onBlur},Pe.createElement(be.aM.Provider,{value:nt},Dt.children)))},pe=le(82586),Ie=le(63237),ot=le(99569),Oe=le(10366),wt=le(17799),lt=le(72922),tt=function(Dt,on){var Ut={};for(var wn in Dt)Object.prototype.hasOwnProperty.call(Dt,wn)&&on.indexOf(wn)<0&&(Ut[wn]=Dt[wn]);if(Dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xn=0,wn=Object.getOwnPropertySymbols(Dt);Xn<wn.length;Xn++)on.indexOf(wn[Xn])<0&&Object.prototype.propertyIsEnumerable.call(Dt,wn[Xn])&&(Ut[wn[Xn]]=Dt[wn[Xn]]);return Ut};const Ge=Dt=>Dt?Pe.createElement(ot.Z,null):Pe.createElement(Ie.Z,null),Me={click:"onClick",hover:"onMouseOver"};var zt=Pe.forwardRef((Dt,on)=>{const{visibilityToggle:Ut=!0}=Dt,wn=typeof Ut=="object"&&Ut.visible!==void 0,[Xn,nr]=(0,Pe.useState)(()=>wn?Ut.visible:!1),Je=(0,Pe.useRef)(null);Pe.useEffect(()=>{wn&&nr(Ut.visible)},[wn,Ut]);const _e=(0,lt.Z)(Je),Ft=()=>{const{disabled:ce}=Dt;ce||(Xn&&_e(),nr(se=>{var fe;const de=!se;return typeof Ut=="object"&&((fe=Ut.onVisibleChange)===null||fe===void 0||fe.call(Ut,de)),de}))},Sn=ce=>{const{action:se="click",iconRender:fe=Ge}=Dt,de=Me[se]||"",oe=fe(Xn),Te={[de]:Ft,className:`${ce}-icon`,key:"passwordIcon",onMouseDown:je=>{je.preventDefault()},onMouseUp:je=>{je.preventDefault()}};return Pe.cloneElement(Pe.isValidElement(oe)?oe:Pe.createElement("span",null,oe),Te)},{className:an,prefixCls:nt,inputPrefixCls:at,size:$t}=Dt,kn=tt(Dt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Ht}=Pe.useContext(et.E_),It=Ht("input",at),Ct=Ht("input-password",nt),tn=Ut&&Sn(Ct),pn=We()(Ct,an,{[`${Ct}-${$t}`]:!!$t}),Ee=Object.assign(Object.assign({},(0,Oe.Z)(kn,["suffix","iconRender","visibilityToggle"])),{type:Xn?"text":"password",className:pn,prefixCls:It,suffix:tn});return $t&&(Ee.size=$t),Pe.createElement(pe.Z,Object.assign({ref:(0,wt.sQ)(on,Je)},Ee))}),Ye=le(72395),it=le(96159),Be=le(71577),xe=le(98675),Ke=le(4173),Ue=function(Dt,on){var Ut={};for(var wn in Dt)Object.prototype.hasOwnProperty.call(Dt,wn)&&on.indexOf(wn)<0&&(Ut[wn]=Dt[wn]);if(Dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xn=0,wn=Object.getOwnPropertySymbols(Dt);Xn<wn.length;Xn++)on.indexOf(wn[Xn])<0&&Object.prototype.propertyIsEnumerable.call(Dt,wn[Xn])&&(Ut[wn[Xn]]=Dt[wn[Xn]]);return Ut},pt=Pe.forwardRef((Dt,on)=>{const{prefixCls:Ut,inputPrefixCls:wn,className:Xn,size:nr,suffix:Je,enterButton:_e=!1,addonAfter:Ft,loading:Sn,disabled:an,onSearch:nt,onChange:at,onCompositionStart:$t,onCompositionEnd:kn}=Dt,Ht=Ue(Dt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:It,direction:Ct}=Pe.useContext(et.E_),tn=Pe.useRef(!1),pn=It("input-search",Ut),Ee=It("input",wn),{compactSize:ce}=(0,Ke.ri)(pn,Ct),se=(0,xe.Z)(cn=>{var Jn;return(Jn=nr!=null?nr:ce)!==null&&Jn!==void 0?Jn:cn}),fe=Pe.useRef(null),de=cn=>{cn&&cn.target&&cn.type==="click"&&nt&&nt(cn.target.value,cn,{source:"clear"}),at&&at(cn)},oe=cn=>{var Jn;document.activeElement===((Jn=fe.current)===null||Jn===void 0?void 0:Jn.input)&&cn.preventDefault()},Te=cn=>{var Jn,lr;nt&&nt((lr=(Jn=fe.current)===null||Jn===void 0?void 0:Jn.input)===null||lr===void 0?void 0:lr.value,cn,{source:"input"})},je=cn=>{tn.current||Sn||Te(cn)},Et=typeof _e=="boolean"?Pe.createElement(Ye.Z,null):null,At=`${pn}-button`;let Ot;const Bt=_e||{},Nt=Bt.type&&Bt.type.__ANT_BUTTON===!0;Nt||Bt.type==="button"?Ot=(0,it.Tm)(Bt,Object.assign({onMouseDown:oe,onClick:cn=>{var Jn,lr;(lr=(Jn=Bt==null?void 0:Bt.props)===null||Jn===void 0?void 0:Jn.onClick)===null||lr===void 0||lr.call(Jn,cn),Te(cn)},key:"enterButton"},Nt?{className:At,size:se}:{})):Ot=Pe.createElement(Be.ZP,{className:At,type:_e?"primary":void 0,size:se,disabled:an,key:"enterButton",onMouseDown:oe,onClick:Te,loading:Sn,icon:Et},_e),Ft&&(Ot=[Ot,(0,it.Tm)(Ft,{key:"addonAfter"})]);const zn=We()(pn,{[`${pn}-rtl`]:Ct==="rtl",[`${pn}-${se}`]:!!se,[`${pn}-with-button`]:!!_e},Xn),Gn=cn=>{tn.current=!0,$t==null||$t(cn)},_t=cn=>{tn.current=!1,kn==null||kn(cn)};return Pe.createElement(pe.Z,Object.assign({ref:(0,wt.sQ)(fe,on),onPressEnter:je},Ht,{size:se,onCompositionStart:Gn,onCompositionEnd:_t,prefixCls:Ee,addonAfter:Ot,suffix:Je,onChange:de,className:zn,disabled:an}))}),Mt=le(96330);const Qe=pe.Z;Qe.Group=Se,Qe.Search=pt,Qe.TextArea=Mt.Z,Qe.Password=zt;var Rt=Qe},47673:function(hn,Zt,le){"use strict";le.d(Zt,{M1:function(){return ke},TM:function(){return it},Xy:function(){return Se},bi:function(){return ot},e5:function(){return Ye},ik:function(){return Oe},nz:function(){return be},pU:function(){return Ae},s7:function(){return wt},x0:function(){return Ie}});var ge=le(14747),We=le(80110),Pe=le(45503),et=le(67968);const be=Be=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:Be,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Ae=Be=>({borderColor:Be.hoverBorderColor}),ke=Be=>({borderColor:Be.activeBorderColor,boxShadow:Be.activeShadow,outline:0}),Se=Be=>({color:Be.colorTextDisabled,backgroundColor:Be.colorBgContainerDisabled,borderColor:Be.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},Ae((0,Pe.TS)(Be,{hoverBorderColor:Be.colorBorder})))}),pe=Be=>{const{paddingBlockLG:xe,fontSizeLG:Ke,lineHeightLG:Ue,borderRadiusLG:ft,paddingInlineLG:pt}=Be;return{padding:`${xe}px ${pt}px`,fontSize:Ke,lineHeight:Ue,borderRadius:ft}},Ie=Be=>({padding:`${Be.paddingBlockSM}px ${Be.paddingInlineSM}px`,borderRadius:Be.borderRadiusSM}),ot=(Be,xe)=>{const{componentCls:Ke,colorError:Ue,colorWarning:ft,errorActiveShadow:pt,warningActiveShadow:Mt,colorErrorBorderHover:Qe,colorWarningBorderHover:Rt}=Be;return{[`&-status-error:not(${xe}-disabled):not(${xe}-borderless)${xe}`]:{borderColor:Ue,"&:hover":{borderColor:Qe},"&:focus, &-focused":Object.assign({},ke((0,Pe.TS)(Be,{activeBorderColor:Ue,activeShadow:pt}))),[`${Ke}-prefix, ${Ke}-suffix`]:{color:Ue}},[`&-status-warning:not(${xe}-disabled):not(${xe}-borderless)${xe}`]:{borderColor:ft,"&:hover":{borderColor:Rt},"&:focus, &-focused":Object.assign({},ke((0,Pe.TS)(Be,{activeBorderColor:ft,activeShadow:Mt}))),[`${Ke}-prefix, ${Ke}-suffix`]:{color:ft}}}},Oe=Be=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Be.paddingBlock}px ${Be.paddingInline}px`,color:Be.colorText,fontSize:Be.fontSize,lineHeight:Be.lineHeight,backgroundColor:Be.colorBgContainer,backgroundImage:"none",borderWidth:Be.lineWidth,borderStyle:Be.lineType,borderColor:Be.colorBorder,borderRadius:Be.borderRadius,transition:`all ${Be.motionDurationMid}`},be(Be.colorTextPlaceholder)),{"&:hover":Object.assign({},Ae(Be)),"&:focus, &-focused":Object.assign({},ke(Be)),"&-disabled, &[disabled]":Object.assign({},Se(Be)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:Be.controlHeight,lineHeight:Be.lineHeight,verticalAlign:"bottom",transition:`all ${Be.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},pe(Be)),"&-sm":Object.assign({},Ie(Be)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),wt=Be=>{const{componentCls:xe,antCls:Ke}=Be;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:Be.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${xe}, &-lg > ${xe}-group-addon`]:Object.assign({},pe(Be)),[`&-sm ${xe}, &-sm > ${xe}-group-addon`]:Object.assign({},Ie(Be)),[`&-lg ${Ke}-select-single ${Ke}-select-selector`]:{height:Be.controlHeightLG},[`&-sm ${Ke}-select-single ${Ke}-select-selector`]:{height:Be.controlHeightSM},[`> ${xe}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${xe}-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 ${Be.paddingInline}px`,color:Be.colorText,fontWeight:"normal",fontSize:Be.fontSize,textAlign:"center",backgroundColor:Be.colorFillAlter,border:`${Be.lineWidth}px ${Be.lineType} ${Be.colorBorder}`,borderRadius:Be.borderRadius,transition:`all ${Be.motionDurationSlow}`,lineHeight:1,[`${Ke}-select`]:{margin:`-${Be.paddingBlock+1}px -${Be.paddingInline}px`,[`&${Ke}-select-single:not(${Ke}-select-customize-input)`]:{[`${Ke}-select-selector`]:{backgroundColor:"inherit",border:`${Be.lineWidth}px ${Be.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${Ke}-select-selector`]:{color:Be.colorPrimary}}},[`${Ke}-cascader-picker`]:{margin:`-9px -${Be.paddingInline}px`,backgroundColor:"transparent",[`${Ke}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${xe}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${xe}-search-with-button &`]:{zIndex:0}}},[`> ${xe}:first-child, ${xe}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${Ke}-select ${Ke}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${xe}-affix-wrapper`]:{[`&:not(:first-child) ${xe}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${xe}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${xe}:last-child, ${xe}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${Ke}-select ${Ke}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${xe}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${xe}-search &`]:{borderStartStartRadius:Be.borderRadius,borderEndStartRadius:Be.borderRadius}},[`&:not(:first-child), ${xe}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${xe}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,ge.dF)()),{[`${xe}-group-addon, ${xe}-group-wrap, > ${xe}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:Be.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
& > ${xe}-affix-wrapper,
& > ${xe}-number-affix-wrapper,
& > ${Ke}-picker-range
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-Be.lineWidth,borderInlineEndWidth:Be.lineWidth},[`${xe}`]:{float:"none"},[`& > ${Ke}-select > ${Ke}-select-selector,
& > ${Ke}-select-auto-complete ${xe},
& > ${Ke}-cascader-picker ${xe},
& > ${xe}-group-wrapper ${xe}`]:{borderInlineEndWidth:Be.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${Ke}-select-focused`]:{zIndex:1},[`& > ${Ke}-select > ${Ke}-select-arrow`]:{zIndex:1},[`& > *:first-child,
& > ${Ke}-select:first-child > ${Ke}-select-selector,
& > ${Ke}-select-auto-complete:first-child ${xe},
& > ${Ke}-cascader-picker:first-child ${xe}`]:{borderStartStartRadius:Be.borderRadius,borderEndStartRadius:Be.borderRadius},[`& > *:last-child,
& > ${Ke}-select:last-child > ${Ke}-select-selector,
& > ${Ke}-cascader-picker:last-child ${xe},
& > ${Ke}-cascader-picker-focused:last-child ${xe}`]:{borderInlineEndWidth:Be.lineWidth,borderStartEndRadius:Be.borderRadius,borderEndEndRadius:Be.borderRadius},[`& > ${Ke}-select-auto-complete ${xe}`]:{verticalAlign:"top"},[`${xe}-group-wrapper + ${xe}-group-wrapper`]:{marginInlineStart:-Be.lineWidth,[`${xe}-affix-wrapper`]:{borderRadius:0}},[`${xe}-group-wrapper:not(:last-child)`]:{[`&${xe}-search > ${xe}-group`]:{[`& > ${xe}-group-addon > ${xe}-search-button`]:{borderRadius:0},[`& > ${xe}`]:{borderStartStartRadius:Be.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Be.borderRadius}}}})}},lt=Be=>{const{componentCls:xe,controlHeightSM:Ke,lineWidth:Ue}=Be,pt=(Ke-Ue*2-16)/2;return{[xe]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ge.Wf)(Be)),Oe(Be)),ot(Be,xe)),{'&[type="color"]':{height:Be.controlHeight,[`&${xe}-lg`]:{height:Be.controlHeightLG},[`&${xe}-sm`]:{height:Ke,paddingTop:pt,paddingBottom:pt}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},tt=Be=>{const{componentCls:xe}=Be;return{[`${xe}-clear-icon`]:{margin:0,color:Be.colorTextQuaternary,fontSize:Be.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${Be.motionDurationSlow}`,"&:hover":{color:Be.colorTextTertiary},"&:active":{color:Be.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Be.inputAffixPadding}px`}}}},Ge=Be=>{const{componentCls:xe,inputAffixPadding:Ke,colorTextDescription:Ue,motionDurationSlow:ft,colorIcon:pt,colorIconHover:Mt,iconCls:Qe}=Be;return{[`${xe}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Oe(Be)),{display:"inline-flex",[`&:not(${xe}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Ae(Be)),{zIndex:1,[`${xe}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${xe}[disabled]`]:{background:"transparent"}},[`> input${xe}`]:{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"'},[`${xe}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:Be.paddingXS}},"&-show-count-suffix":{color:Ue},"&-show-count-has-suffix":{marginInlineEnd:Be.paddingXXS},"&-prefix":{marginInlineEnd:Ke},"&-suffix":{marginInlineStart:Ke}}}),tt(Be)),{[`${Qe}${xe}-password-icon`]:{color:pt,cursor:"pointer",transition:`all ${ft}`,"&:hover":{color:Mt}}}),ot(Be,`${xe}-affix-wrapper`))}},Me=Be=>{const{componentCls:xe,colorError:Ke,colorWarning:Ue,borderRadiusLG:ft,borderRadiusSM:pt}=Be;return{[`${xe}-group`]:Object.assign(Object.assign(Object.assign({},(0,ge.Wf)(Be)),wt(Be)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${xe}-group-addon`]:{borderRadius:ft,fontSize:Be.fontSizeLG}},"&-sm":{[`${xe}-group-addon`]:{borderRadius:pt}},"&-status-error":{[`${xe}-group-addon`]:{color:Ke,borderColor:Ke}},"&-status-warning":{[`${xe}-group-addon`]:{color:Ue,borderColor:Ue}},"&-disabled":{[`${xe}-group-addon`]:Object.assign({},Se(Be))},[`&:not(${xe}-compact-first-item):not(${xe}-compact-last-item)${xe}-compact-item`]:{[`${xe}, ${xe}-group-addon`]:{borderRadius:0}},[`&:not(${xe}-compact-last-item)${xe}-compact-first-item`]:{[`${xe}, ${xe}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${xe}-compact-first-item)${xe}-compact-last-item`]:{[`${xe}, ${xe}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},bt=Be=>{const{componentCls:xe,antCls:Ke}=Be,Ue=`${xe}-search`;return{[Ue]:{[`${xe}`]:{"&:hover, &:focus":{borderColor:Be.colorPrimaryHover,[`+ ${xe}-group-addon ${Ue}-button:not(${Ke}-btn-primary)`]:{borderInlineStartColor:Be.colorPrimaryHover}}},[`${xe}-affix-wrapper`]:{borderRadius:0},[`${xe}-lg`]:{lineHeight:Be.lineHeightLG-2e-4},[`> ${xe}-group`]:{[`> ${xe}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${Ue}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:Be.borderRadius,borderEndEndRadius:Be.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${Ue}-button:not(${Ke}-btn-primary)`]:{color:Be.colorTextDescription,"&:hover":{color:Be.colorPrimaryHover},"&:active":{color:Be.colorPrimaryActive},[`&${Ke}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${Ue}-button`]:{height:Be.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${Ue}-button`]:{height:Be.controlHeightLG},[`&-small ${Ue}-button`]:{height:Be.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${xe}-compact-item`]:{[`&:not(${xe}-compact-last-item)`]:{[`${xe}-group-addon`]:{[`${xe}-search-button`]:{marginInlineEnd:-Be.lineWidth,borderRadius:0}}},[`&:not(${xe}-compact-first-item)`]:{[`${xe},${xe}-affix-wrapper`]:{borderRadius:0}},[`> ${xe}-group-addon ${xe}-search-button,
> ${xe},
${xe}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${xe}-affix-wrapper-focused`]:{zIndex:2}}}}},zt=Be=>{const{componentCls:xe,paddingLG:Ke}=Be,Ue=`${xe}-textarea`;return{[Ue]:{position:"relative","&-show-count":{[`> ${xe}`]:{height:"100%"},[`${xe}-data-count`]:{position:"absolute",bottom:-Be.fontSize*Be.lineHeight,insetInlineEnd:0,color:Be.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${xe}`]:{paddingInlineEnd:Ke}},[`&-affix-wrapper${Ue}-has-feedback`]:{[`${xe}`]:{paddingInlineEnd:Ke}},[`&-affix-wrapper${xe}-affix-wrapper`]:{padding:0,[`> textarea${xe}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${xe}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${xe}-clear-icon`]:{position:"absolute",insetInlineEnd:Be.paddingXS,insetBlockStart:Be.paddingXS},[`${Ue}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Be.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function Ye(Be){return(0,Pe.TS)(Be,{inputAffixPadding:Be.paddingXXS})}const it=Be=>{const{controlHeight:xe,fontSize:Ke,lineHeight:Ue,lineWidth:ft,controlHeightSM:pt,controlHeightLG:Mt,fontSizeLG:Qe,lineHeightLG:Rt,paddingSM:Dt,controlPaddingHorizontalSM:on,controlPaddingHorizontal:Ut,colorFillAlter:wn,colorPrimaryHover:Xn,controlOutlineWidth:nr,controlOutline:Je,colorErrorOutline:_e,colorWarningOutline:Ft}=Be;return{paddingBlock:Math.max(Math.round((xe-Ke*Ue)/2*10)/10-ft,3),paddingBlockSM:Math.max(Math.round((pt-Ke*Ue)/2*10)/10-ft,0),paddingBlockLG:Math.ceil((Mt-Qe*Rt)/2*10)/10-ft,paddingInline:Dt-ft,paddingInlineSM:on-ft,paddingInlineLG:Ut-ft,addonBg:wn,activeBorderColor:Xn,hoverBorderColor:Xn,activeShadow:`0 0 0 ${nr}px ${Je}`,errorActiveShadow:`0 0 0 ${nr}px ${_e}`,warningActiveShadow:`0 0 0 ${nr}px ${Ft}`}};Zt.ZP=(0,et.Z)("Input",Be=>{const xe=(0,Pe.TS)(Be,Ye(Be));return[lt(xe),zt(xe),Ge(xe),Me(xe),bt(xe),(0,We.c)(xe)]},it)},71322:function(hn,Zt,le){"use strict";le.d(Zt,{D:function(){return zt},Z:function(){return Be}});var ge=le(87462),We=le(67294),Pe={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"},et=Pe,be=le(74643),Ae=function(Ke,Ue){return We.createElement(be.Z,(0,ge.Z)({},Ke,{ref:Ue,icon:et}))},ke=We.forwardRef(Ae),Se=le(22751),pe=le(91034),Ie=le(94184),ot=le.n(Ie),Oe=le(10366),lt=xe=>!isNaN(parseFloat(xe))&&isFinite(xe),tt=le(53124),Ge=le(84321),Me=function(xe,Ke){var Ue={};for(var ft in xe)Object.prototype.hasOwnProperty.call(xe,ft)&&Ke.indexOf(ft)<0&&(Ue[ft]=xe[ft]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,ft=Object.getOwnPropertySymbols(xe);pt<ft.length;pt++)Ke.indexOf(ft[pt])<0&&Object.prototype.propertyIsEnumerable.call(xe,ft[pt])&&(Ue[ft[pt]]=xe[ft[pt]]);return Ue};const bt={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},zt=We.createContext({}),Ye=(()=>{let xe=0;return function(){let Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return xe+=1,`${Ke}${xe}`}})();var Be=We.forwardRef((xe,Ke)=>{const{prefixCls:Ue,className:ft,trigger:pt,children:Mt,defaultCollapsed:Qe=!1,theme:Rt="dark",style:Dt={},collapsible:on=!1,reverseArrow:Ut=!1,width:wn=200,collapsedWidth:Xn=80,zeroWidthTriggerStyle:nr,breakpoint:Je,onCollapse:_e,onBreakpoint:Ft}=xe,Sn=Me(xe,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:an}=(0,We.useContext)(Ge.Gs),[nt,at]=(0,We.useState)("collapsed"in xe?xe.collapsed:Qe),[$t,kn]=(0,We.useState)(!1);(0,We.useEffect)(()=>{"collapsed"in xe&&at(xe.collapsed)},[xe.collapsed]);const Ht=(ce,se)=>{"collapsed"in xe||at(ce),_e==null||_e(ce,se)},It=(0,We.useRef)();It.current=ce=>{kn(ce.matches),Ft==null||Ft(ce.matches),nt!==ce.matches&&Ht(ce.matches,"responsive")},(0,We.useEffect)(()=>{function ce(fe){return It.current(fe)}let se;if(typeof window!="undefined"){const{matchMedia:fe}=window;if(fe&&Je&&Je in bt){se=fe(`(max-width: ${bt[Je]})`);try{se.addEventListener("change",ce)}catch(de){se.addListener(ce)}ce(se)}}return()=>{try{se==null||se.removeEventListener("change",ce)}catch(fe){se==null||se.removeListener(ce)}}},[Je]),(0,We.useEffect)(()=>{const ce=Ye("ant-sider-");return an.addSider(ce),()=>an.removeSider(ce)},[]);const Ct=()=>{Ht(!nt,"clickTrigger")},{getPrefixCls:tn}=(0,We.useContext)(tt.E_),pn=()=>{const ce=tn("layout-sider",Ue),se=(0,Oe.Z)(Sn,["collapsed"]),fe=nt?Xn:wn,de=lt(fe)?`${fe}px`:String(fe),oe=parseFloat(String(Xn||0))===0?We.createElement("span",{onClick:Ct,className:ot()(`${ce}-zero-width-trigger`,`${ce}-zero-width-trigger-${Ut?"right":"left"}`),style:nr},pt||We.createElement(ke,null)):null,Et={expanded:Ut?We.createElement(pe.Z,null):We.createElement(Se.Z,null),collapsed:Ut?We.createElement(Se.Z,null):We.createElement(pe.Z,null)}[nt?"collapsed":"expanded"],At=pt!==null?oe||We.createElement("div",{className:`${ce}-trigger`,onClick:Ct,style:{width:de}},pt||Et):null,Ot=Object.assign(Object.assign({},Dt),{flex:`0 0 ${de}`,maxWidth:de,minWidth:de,width:de}),Bt=ot()(ce,`${ce}-${Rt}`,{[`${ce}-collapsed`]:!!nt,[`${ce}-has-trigger`]:on&&pt!==null&&!oe,[`${ce}-below`]:!!$t,[`${ce}-zero-width`]:parseFloat(de)===0},ft);return We.createElement("aside",Object.assign({className:Bt},se,{style:Ot,ref:Ke}),We.createElement("div",{className:`${ce}-children`},Mt),on||$t&&oe?At:null)},Ee=We.useMemo(()=>({siderCollapsed:nt}),[nt]);return We.createElement(zt.Provider,{value:Ee},pn())})},84321:function(hn,Zt,le){"use strict";le.d(Zt,{VY:function(){return Ye},$_:function(){return zt},h4:function(){return bt},Gs:function(){return wt},ZP:function(){return it}});var ge=le(74902),We=le(94184),Pe=le.n(We),et=le(10366),be=le(67294),Ae=le(53124),ke=le(67968),pe=Be=>{const{componentCls:xe,bodyBg:Ke,lightSiderBg:Ue,lightTriggerBg:ft,lightTriggerColor:pt}=Be;return{[`${xe}-sider-light`]:{background:Ue,[`${xe}-sider-trigger`]:{color:pt,background:ft},[`${xe}-sider-zero-width-trigger`]:{color:pt,background:ft,border:`1px solid ${Ke}`,borderInlineStart:0}}}};const Ie=Be=>{const{antCls:xe,componentCls:Ke,colorText:Ue,triggerColor:ft,footerBg:pt,triggerBg:Mt,headerHeight:Qe,headerPadding:Rt,headerColor:Dt,footerPadding:on,triggerHeight:Ut,zeroTriggerHeight:wn,zeroTriggerWidth:Xn,motionDurationMid:nr,motionDurationSlow:Je,fontSize:_e,borderRadius:Ft,bodyBg:Sn,headerBg:an,siderBg:nt}=Be;return{[Ke]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Sn,"&, *":{boxSizing:"border-box"},[`&${Ke}-has-sider`]:{flexDirection:"row",[`> ${Ke}, > ${Ke}-content`]:{width:0}},[`${Ke}-header, &${Ke}-footer`]:{flex:"0 0 auto"},[`${Ke}-sider`]:{position:"relative",minWidth:0,background:nt,transition:`all ${nr}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${xe}-menu${xe}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Ut},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Ut,color:ft,lineHeight:`${Ut}px`,textAlign:"center",background:Mt,cursor:"pointer",transition:`all ${nr}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Qe,insetInlineEnd:-Xn,zIndex:1,width:Xn,height:wn,color:ft,fontSize:Be.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:nt,borderStartStartRadius:0,borderStartEndRadius:Ft,borderEndEndRadius:Ft,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Je} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Je}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Xn,borderStartStartRadius:Ft,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ft}}}}},pe(Be)),{"&-rtl":{direction:"rtl"}}),[`${Ke}-header`]:{height:Qe,padding:Rt,color:Dt,lineHeight:`${Qe}px`,background:an,[`${xe}-menu`]:{lineHeight:"inherit"}},[`${Ke}-footer`]:{padding:on,color:Ue,fontSize:_e,background:pt},[`${Ke}-content`]:{flex:"auto",minHeight:0}}};var ot=(0,ke.Z)("Layout",Be=>[Ie(Be)],Be=>{const{colorBgLayout:xe,controlHeight:Ke,controlHeightLG:Ue,colorText:ft,controlHeightSM:pt,marginXXS:Mt,colorTextLightSolid:Qe,colorBgContainer:Rt}=Be,Dt=Ue*1.25;return{colorBgHeader:"#001529",colorBgBody:xe,colorBgTrigger:"#002140",bodyBg:xe,headerBg:"#001529",headerHeight:Ke*2,headerPadding:`0 ${Dt}px`,headerColor:ft,footerPadding:`${pt}px ${Dt}px`,footerBg:xe,siderBg:"#001529",triggerHeight:Ue+Mt*2,triggerBg:"#002140",triggerColor:Qe,zeroTriggerWidth:Ue,zeroTriggerHeight:Ue,lightSiderBg:Rt,lightTriggerBg:Rt,lightTriggerColor:ft}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Oe=function(Be,xe){var Ke={};for(var Ue in Be)Object.prototype.hasOwnProperty.call(Be,Ue)&&xe.indexOf(Ue)<0&&(Ke[Ue]=Be[Ue]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Ue=Object.getOwnPropertySymbols(Be);ft<Ue.length;ft++)xe.indexOf(Ue[ft])<0&&Object.prototype.propertyIsEnumerable.call(Be,Ue[ft])&&(Ke[Ue[ft]]=Be[Ue[ft]]);return Ke};const wt=be.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function lt(Be){let{suffixCls:xe,tagName:Ke,displayName:Ue}=Be;return ft=>be.forwardRef((Mt,Qe)=>be.createElement(ft,Object.assign({ref:Qe,suffixCls:xe,tagName:Ke},Mt)))}const tt=be.forwardRef((Be,xe)=>{const{prefixCls:Ke,suffixCls:Ue,className:ft,tagName:pt}=Be,Mt=Oe(Be,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Qe}=be.useContext(Ae.E_),Rt=Qe("layout",Ke),[Dt,on]=ot(Rt),Ut=Ue?`${Rt}-${Ue}`:Rt;return Dt(be.createElement(pt,Object.assign({className:Pe()(Ke||Ut,ft,on),ref:xe},Mt)))}),Ge=be.forwardRef((Be,xe)=>{const{direction:Ke}=be.useContext(Ae.E_),[Ue,ft]=be.useState([]),{prefixCls:pt,className:Mt,rootClassName:Qe,children:Rt,hasSider:Dt,tagName:on,style:Ut}=Be,wn=Oe(Be,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Xn=(0,et.Z)(wn,["suffixCls"]),{getPrefixCls:nr,layout:Je}=be.useContext(Ae.E_),_e=nr("layout",pt),[Ft,Sn]=ot(_e),an=Pe()(_e,{[`${_e}-has-sider`]:typeof Dt=="boolean"?Dt:Ue.length>0,[`${_e}-rtl`]:Ke==="rtl"},Je==null?void 0:Je.className,Mt,Qe,Sn),nt=be.useMemo(()=>({siderHook:{addSider:at=>{ft($t=>[].concat((0,ge.Z)($t),[at]))},removeSider:at=>{ft($t=>$t.filter(kn=>kn!==at))}}}),[]);return Ft(be.createElement(wt.Provider,{value:nt},be.createElement(on,Object.assign({ref:xe,className:an,style:Object.assign(Object.assign({},Je==null?void 0:Je.style),Ut)},Xn),Rt)))}),Me=lt({tagName:"div",displayName:"Layout"})(Ge),bt=lt({suffixCls:"header",tagName:"header",displayName:"Header"})(tt),zt=lt({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(tt),Ye=lt({suffixCls:"content",tagName:"main",displayName:"Content"})(tt);var it=Me},76529:function(hn,Zt,le){"use strict";le.d(Zt,{J:function(){return Ae}});var ge=le(67294),We=le(4173),Pe=le(60276),et=function(ke,Se){var pe={};for(var Ie in ke)Object.prototype.hasOwnProperty.call(ke,Ie)&&Se.indexOf(Ie)<0&&(pe[Ie]=ke[Ie]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,Ie=Object.getOwnPropertySymbols(ke);ot<Ie.length;ot++)Se.indexOf(Ie[ot])<0&&Object.prototype.propertyIsEnumerable.call(ke,Ie[ot])&&(pe[Ie[ot]]=ke[Ie[ot]]);return pe};const be=ge.createContext(null),Ae=ge.forwardRef((ke,Se)=>{const{children:pe}=ke,Ie=et(ke,["children"]),ot=ge.useContext(be),Oe=ge.useMemo(()=>Object.assign(Object.assign({},ot),Ie),[ot,Ie.prefixCls,Ie.mode,Ie.selectable]);return ge.createElement(be.Provider,{value:Oe},ge.createElement(We.BR,null,(0,Pe.supportNodeRef)(pe)?ge.cloneElement(pe,{ref:Se}):pe))});Zt.Z=be},68508:function(hn,Zt,le){"use strict";le.d(Zt,{default:function(){return ce}});var ge=le(78595),We=le(67294),Pe=le(71322),et=le(94184),be=le.n(et),Ae=le(53124),ke=function(se,fe){var de={};for(var oe in se)Object.prototype.hasOwnProperty.call(se,oe)&&fe.indexOf(oe)<0&&(de[oe]=se[oe]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,oe=Object.getOwnPropertySymbols(se);Te<oe.length;Te++)fe.indexOf(oe[Te])<0&&Object.prototype.propertyIsEnumerable.call(se,oe[Te])&&(de[oe[Te]]=se[oe[Te]]);return de},pe=se=>{const{prefixCls:fe,className:de,dashed:oe}=se,Te=ke(se,["prefixCls","className","dashed"]),{getPrefixCls:je}=We.useContext(Ae.E_),Et=je("menu",fe),At=be()({[`${Et}-item-divider-dashed`]:!!oe},de);return We.createElement(ge.iz,Object.assign({className:At},Te))},Ie=le(37419),ot=le(10366),Oe=le(83062),wt=le(96159),tt=(0,We.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Me=se=>{var fe;const{className:de,children:oe,icon:Te,title:je,danger:Et}=se,{prefixCls:At,firstLevel:Ot,direction:Bt,disableMenuItemTitleTooltip:Nt,inlineCollapsed:zn}=We.useContext(tt),Gn=wr=>{const xi=We.createElement("span",{className:`${At}-title-content`},oe);return(!Te||(0,wt.l$)(oe)&&oe.type==="span")&&oe&&wr&&Ot&&typeof oe=="string"?We.createElement("div",{className:`${At}-inline-collapsed-noicon`},oe.charAt(0)):xi},{siderCollapsed:_t}=We.useContext(Pe.D);let cn=je;typeof je=="undefined"?cn=Ot?oe:"":je===!1&&(cn="");const Jn={title:cn};!_t&&!zn&&(Jn.title=null,Jn.open=!1);const lr=(0,Ie.Z)(oe).length;let En=We.createElement(ge.ck,Object.assign({},(0,ot.Z)(se,["title","icon","danger"]),{className:be()({[`${At}-item-danger`]:Et,[`${At}-item-only-child`]:(Te?lr+1:lr)===1},de),title:typeof je=="string"?je:void 0}),(0,wt.Tm)(Te,{className:be()((0,wt.l$)(Te)?(fe=Te.props)===null||fe===void 0?void 0:fe.className:"",`${At}-item-icon`)}),Gn(zn));return Nt||(En=We.createElement(Oe.Z,Object.assign({},Jn,{placement:Bt==="rtl"?"left":"right",overlayClassName:`${At}-inline-collapsed-tooltip`}),En)),En},zt=se=>{var fe;const{popupClassName:de,icon:oe,title:Te,theme:je}=se,Et=We.useContext(tt),{prefixCls:At,inlineCollapsed:Ot,theme:Bt}=Et,Nt=(0,ge.Xl)();let zn;if(!oe)zn=Ot&&!Nt.length&&Te&&typeof Te=="string"?We.createElement("div",{className:`${At}-inline-collapsed-noicon`},Te.charAt(0)):We.createElement("span",{className:`${At}-title-content`},Te);else{const _t=(0,wt.l$)(Te)&&Te.type==="span";zn=We.createElement(We.Fragment,null,(0,wt.Tm)(oe,{className:be()((0,wt.l$)(oe)?(fe=oe.props)===null||fe===void 0?void 0:fe.className:"",`${At}-item-icon`)}),_t?Te:We.createElement("span",{className:`${At}-title-content`},Te))}const Gn=We.useMemo(()=>Object.assign(Object.assign({},Et),{firstLevel:!1}),[Et]);return We.createElement(tt.Provider,{value:Gn},We.createElement(ge.Wd,Object.assign({},(0,ot.Z)(se,["icon"]),{title:zn,popupClassName:be()(At,de,`${At}-${je||Bt}`)})))},Ye=le(25877),it=le(60276),Be=le(33603),xe=le(76529),Ke=function(se,fe){var de={};for(var oe in se)Object.prototype.hasOwnProperty.call(se,oe)&&fe.indexOf(oe)<0&&(de[oe]=se[oe]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,oe=Object.getOwnPropertySymbols(se);Te<oe.length;Te++)fe.indexOf(oe[Te])<0&&Object.prototype.propertyIsEnumerable.call(se,oe[Te])&&(de[oe[Te]]=se[oe[Te]]);return de};function Ue(se){return(se||[]).map((fe,de)=>{if(fe&&typeof fe=="object"){const oe=fe,{label:Te,children:je,key:Et,type:At}=oe,Ot=Ke(oe,["label","children","key","type"]),Bt=Et!=null?Et:`tmp-${de}`;return je||At==="group"?At==="group"?We.createElement(ge.BW,Object.assign({key:Bt},Ot,{title:Te}),Ue(je)):We.createElement(zt,Object.assign({key:Bt},Ot,{title:Te}),Ue(je)):At==="divider"?We.createElement(pe,Object.assign({key:Bt},Ot)):We.createElement(Me,Object.assign({key:Bt},Ot),Te)}return null}).filter(fe=>fe)}function ft(se){return We.useMemo(()=>se&&Ue(se),[se])}var pt=le(84780),Mt=le(14747),Qe=le(33507),Rt=le(67771),Dt=le(50438),on=le(67968),Ut=le(45503),Xn=se=>{const{componentCls:fe,motionDurationSlow:de,horizontalLineHeight:oe,colorSplit:Te,lineWidth:je,lineType:Et,itemPaddingInline:At}=se;return{[`${fe}-horizontal`]:{lineHeight:oe,border:0,borderBottom:`${je}px ${Et} ${Te}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${fe}-item, ${fe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:At},[`> ${fe}-item:hover,
> ${fe}-item-active,
> ${fe}-submenu ${fe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${fe}-item, ${fe}-submenu-title`]:{transition:[`border-color ${de}`,`background ${de}`].join(",")},[`${fe}-submenu-arrow`]:{display:"none"}}}},Je=se=>{let{componentCls:fe,menuArrowOffset:de}=se;return{[`${fe}-rtl`]:{direction:"rtl"},[`${fe}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${fe}-rtl${fe}-vertical,
${fe}-submenu-rtl ${fe}-vertical`]:{[`${fe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${de})`},"&::after":{transform:`rotate(45deg) translateY(${de})`}}}}};const _e=se=>Object.assign({},(0,Mt.oN)(se));var Sn=(se,fe)=>{const{componentCls:de,itemColor:oe,itemSelectedColor:Te,groupTitleColor:je,itemBg:Et,subMenuItemBg:At,itemSelectedBg:Ot,activeBarHeight:Bt,activeBarWidth:Nt,activeBarBorderWidth:zn,motionDurationSlow:Gn,motionEaseInOut:_t,motionEaseOut:cn,itemPaddingInline:Jn,motionDurationMid:lr,itemHoverColor:En,lineType:wr,colorSplit:xi,itemDisabledColor:ei,dangerItemColor:Yr,dangerItemHoverColor:Gr,dangerItemSelectedColor:Ai,dangerItemActiveBg:ti,dangerItemSelectedBg:ki,itemHoverBg:Ri,itemActiveBg:jn,menuSubMenuBg:Pi,horizontalItemSelectedColor:va,horizontalItemSelectedBg:da,horizontalItemBorderRadius:ya,horizontalItemHoverBg:ea,popupBg:kt}=se;return{[`${de}-${fe}, ${de}-${fe} > ${de}`]:{color:oe,background:Et,[`&${de}-root:focus-visible`]:Object.assign({},_e(se)),[`${de}-item-group-title`]:{color:je},[`${de}-submenu-selected`]:{[`> ${de}-submenu-title`]:{color:Te}},[`${de}-item-disabled, ${de}-submenu-disabled`]:{color:`${ei} !important`},[`${de}-item:not(${de}-item-selected):not(${de}-submenu-selected)`]:{[`&:hover, > ${de}-submenu-title:hover`]:{color:En}},[`&:not(${de}-horizontal)`]:{[`${de}-item:not(${de}-item-selected)`]:{"&:hover":{backgroundColor:Ri},"&:active":{backgroundColor:jn}},[`${de}-submenu-title`]:{"&:hover":{backgroundColor:Ri},"&:active":{backgroundColor:jn}}},[`${de}-item-danger`]:{color:Yr,[`&${de}-item:hover`]:{[`&:not(${de}-item-selected):not(${de}-submenu-selected)`]:{color:Gr}},[`&${de}-item:active`]:{background:ti}},[`${de}-item a`]:{"&, &:hover":{color:"inherit"}},[`${de}-item-selected`]:{color:Te,[`&${de}-item-danger`]:{color:Ai},"a, a:hover":{color:"inherit"}},[`& ${de}-item-selected`]:{backgroundColor:Ot,[`&${de}-item-danger`]:{backgroundColor:ki}},[`${de}-item, ${de}-submenu-title`]:{[`&:not(${de}-item-disabled):focus-visible`]:Object.assign({},_e(se))},[`&${de}-submenu > ${de}`]:{backgroundColor:Pi},[`&${de}-popup > ${de}`]:{backgroundColor:kt},[`&${de}-horizontal`]:Object.assign(Object.assign({},fe==="dark"?{borderBottom:0}:{}),{[`> ${de}-item, > ${de}-submenu`]:{top:zn,marginTop:-zn,marginBottom:0,borderRadius:ya,"&::after":{position:"absolute",insetInline:Jn,bottom:0,borderBottom:`${Bt}px solid transparent`,transition:`border-color ${Gn} ${_t}`,content:'""'},"&:hover, &-active, &-open":{background:ea,"&::after":{borderBottomWidth:Bt,borderBottomColor:va}},"&-selected":{color:va,backgroundColor:da,"&:hover":{backgroundColor:da},"&::after":{borderBottomWidth:Bt,borderBottomColor:va}}}}),[`&${de}-root`]:{[`&${de}-inline, &${de}-vertical`]:{borderInlineEnd:`${zn}px ${wr} ${xi}`}},[`&${de}-inline`]:{[`${de}-sub${de}-inline`]:{background:At},[`${de}-item, ${de}-submenu-title`]:zn&&Nt?{width:`calc(100% + ${zn}px)`}:{},[`${de}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Nt}px solid ${Te}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${lr} ${cn}`,`opacity ${lr} ${cn}`].join(","),content:'""'},[`&${de}-item-danger`]:{"&::after":{borderInlineEndColor:Ai}}},[`${de}-selected, ${de}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${lr} ${_t}`,`opacity ${lr} ${_t}`].join(",")}}}}}};const an=se=>{const{componentCls:fe,itemHeight:de,itemMarginInline:oe,padding:Te,menuArrowSize:je,marginXS:Et,itemMarginBlock:At}=se,Ot=Te+je+Et;return{[`${fe}-item`]:{position:"relative",overflow:"hidden"},[`${fe}-item, ${fe}-submenu-title`]:{height:de,lineHeight:`${de}px`,paddingInline:Te,overflow:"hidden",textOverflow:"ellipsis",marginInline:oe,marginBlock:At,width:`calc(100% - ${oe*2}px)`},[`> ${fe}-item,
> ${fe}-submenu > ${fe}-submenu-title`]:{height:de,lineHeight:`${de}px`},[`${fe}-item-group-list ${fe}-submenu-title,
${fe}-submenu-title`]:{paddingInlineEnd:Ot}}};var at=se=>{const{componentCls:fe,iconCls:de,itemHeight:oe,colorTextLightSolid:Te,dropdownWidth:je,controlHeightLG:Et,motionDurationMid:At,motionEaseOut:Ot,paddingXL:Bt,itemMarginInline:Nt,fontSizeLG:zn,motionDurationSlow:Gn,paddingXS:_t,boxShadowSecondary:cn,collapsedWidth:Jn,collapsedIconSize:lr}=se,En={height:oe,lineHeight:`${oe}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[fe]:{"&-inline, &-vertical":Object.assign({[`&${fe}-root`]:{boxShadow:"none"}},an(se))},[`${fe}-submenu-popup`]:{[`${fe}-vertical`]:Object.assign(Object.assign({},an(se)),{boxShadow:cn})}},{[`${fe}-submenu-popup ${fe}-vertical${fe}-sub`]:{minWidth:je,maxHeight:`calc(100vh - ${Et*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${fe}-inline`]:{width:"100%",[`&${fe}-root`]:{[`${fe}-item, ${fe}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Gn}`,`background ${Gn}`,`padding ${At} ${Ot}`].join(","),[`> ${fe}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${fe}-sub${fe}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${fe}-submenu > ${fe}-submenu-title`]:En,[`& ${fe}-item-group-title`]:{paddingInlineStart:Bt}},[`${fe}-item`]:En}},{[`${fe}-inline-collapsed`]:{width:Jn,[`&${fe}-root`]:{[`${fe}-item, ${fe}-submenu ${fe}-submenu-title`]:{[`> ${fe}-inline-collapsed-noicon`]:{fontSize:zn,textAlign:"center"}}},[`> ${fe}-item,
> ${fe}-item-group > ${fe}-item-group-list > ${fe}-item,
> ${fe}-item-group > ${fe}-item-group-list > ${fe}-submenu > ${fe}-submenu-title,
> ${fe}-submenu > ${fe}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${zn/2}px - ${Nt}px)`,textOverflow:"clip",[`
${fe}-submenu-arrow,
${fe}-submenu-expand-icon
`]:{opacity:0},[`${fe}-item-icon, ${de}`]:{margin:0,fontSize:lr,lineHeight:`${oe}px`,"+ span":{display:"inline-block",opacity:0}}},[`${fe}-item-icon, ${de}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${fe}-item-icon, ${de}`]:{display:"none"},"a, a:hover":{color:Te}},[`${fe}-item-group-title`]:Object.assign(Object.assign({},Mt.vS),{paddingInline:_t})}}]};const $t=se=>{const{componentCls:fe,motionDurationSlow:de,motionDurationMid:oe,motionEaseInOut:Te,motionEaseOut:je,iconCls:Et,iconSize:At,iconMarginInlineEnd:Ot}=se;return{[`${fe}-item, ${fe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${de}`,`background ${de}`,`padding ${de} ${Te}`].join(","),[`${fe}-item-icon, ${Et}`]:{minWidth:At,fontSize:At,transition:[`font-size ${oe} ${je}`,`margin ${de} ${Te}`,`color ${de}`].join(","),"+ span":{marginInlineStart:Ot,opacity:1,transition:[`opacity ${de} ${Te}`,`margin ${de}`,`color ${de}`].join(",")}},[`${fe}-item-icon`]:Object.assign({},(0,Mt.Ro)()),[`&${fe}-item-only-child`]:{[`> ${Et}, > ${fe}-item-icon`]:{marginInlineEnd:0}}},[`${fe}-item-disabled, ${fe}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${fe}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},kn=se=>{const{componentCls:fe,motionDurationSlow:de,motionEaseInOut:oe,borderRadius:Te,menuArrowSize:je,menuArrowOffset:Et}=se;return{[`${fe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:se.margin,width:je,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${de} ${oe}, opacity ${de}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:je*.6,height:je*.15,backgroundColor:"currentcolor",borderRadius:Te,transition:[`background ${de} ${oe}`,`transform ${de} ${oe}`,`top ${de} ${oe}`,`color ${de} ${oe}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Et})`},"&::after":{transform:`rotate(-45deg) translateY(${Et})`}}}}},Ht=se=>{const{antCls:fe,componentCls:de,fontSize:oe,motionDurationSlow:Te,motionDurationMid:je,motionEaseInOut:Et,paddingXS:At,padding:Ot,colorSplit:Bt,lineWidth:Nt,zIndexPopup:zn,borderRadiusLG:Gn,subMenuItemBorderRadius:_t,menuArrowSize:cn,menuArrowOffset:Jn,lineType:lr,menuPanelMaskInset:En,groupTitleLineHeight:wr,groupTitleFontSize:xi}=se;return[{"":{[`${de}`]:Object.assign(Object.assign({},(0,Mt.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,Mt.Wf)(se)),(0,Mt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:oe,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Te} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${de}-item`]:{flex:"none"}},[`${de}-item, ${de}-submenu, ${de}-submenu-title`]:{borderRadius:se.itemBorderRadius},[`${de}-item-group-title`]:{padding:`${At}px ${Ot}px`,fontSize:xi,lineHeight:wr,transition:`all ${Te}`},[`&-horizontal ${de}-submenu`]:{transition:[`border-color ${Te} ${Et}`,`background ${Te} ${Et}`].join(",")},[`${de}-submenu, ${de}-submenu-inline`]:{transition:[`border-color ${Te} ${Et}`,`background ${Te} ${Et}`,`padding ${je} ${Et}`].join(",")},[`${de}-submenu ${de}-sub`]:{cursor:"initial",transition:[`background ${Te} ${Et}`,`padding ${Te} ${Et}`].join(",")},[`${de}-title-content`]:{transition:`color ${Te}`},[`${de}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${de}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Bt,borderStyle:lr,borderWidth:0,borderTopWidth:Nt,marginBlock:Nt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),$t(se)),{[`${de}-item-group`]:{[`${de}-item-group-list`]:{margin:0,padding:0,[`${de}-item, ${de}-submenu-title`]:{paddingInline:`${oe*2}px ${Ot}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:zn,borderRadius:Gn,boxShadow:"none",transformOrigin:"0 0",[`&${de}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${En}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:En},"\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:se.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:se.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:se.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:se.paddingXS},[`> ${de}`]:Object.assign(Object.assign(Object.assign({borderRadius:Gn},$t(se)),kn(se)),{[`${de}-item, ${de}-submenu > ${de}-submenu-title`]:{borderRadius:_t},[`${de}-submenu-title::after`]:{transition:`transform ${Te} ${Et}`}})}}),kn(se)),{[`&-inline-collapsed ${de}-submenu-arrow,
&-inline ${de}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Jn})`},"&::after":{transform:`rotate(45deg) translateX(-${Jn})`}},[`${de}-submenu-open${de}-submenu-inline > ${de}-submenu-title > ${de}-submenu-arrow`]:{transform:`translateY(-${cn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Jn})`},"&::before":{transform:`rotate(45deg) translateX(${Jn})`}}})},{[`${fe}-layout-header`]:{[de]:{lineHeight:"inherit"}}}]};var It=(se,fe)=>(0,on.Z)("Menu",oe=>{if(fe===!1)return[];const{colorBgElevated:Te,colorPrimary:je,colorTextLightSolid:Et,controlHeightLG:At,fontSize:Ot,darkItemColor:Bt,darkDangerItemColor:Nt,darkItemBg:zn,darkSubMenuItemBg:Gn,darkItemSelectedColor:_t,darkItemSelectedBg:cn,darkDangerItemSelectedBg:Jn,darkItemHoverBg:lr,darkGroupTitleColor:En,darkItemHoverColor:wr,darkItemDisabledColor:xi,darkDangerItemHoverColor:ei,darkDangerItemSelectedColor:Yr,darkDangerItemActiveBg:Gr}=oe,Ai=Ot/7*5,ti=(0,Ut.TS)(oe,{menuArrowSize:Ai,menuHorizontalHeight:At*1.15,menuArrowOffset:`${Ai*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Te}),ki=(0,Ut.TS)(ti,{itemColor:Bt,itemHoverColor:wr,groupTitleColor:En,itemSelectedColor:_t,itemBg:zn,popupBg:zn,subMenuItemBg:Gn,itemActiveBg:"transparent",itemSelectedBg:cn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:lr,itemDisabledColor:xi,dangerItemColor:Nt,dangerItemHoverColor:ei,dangerItemSelectedColor:Yr,dangerItemActiveBg:Gr,dangerItemSelectedBg:Jn,menuSubMenuBg:Gn,horizontalItemSelectedColor:Et,horizontalItemSelectedBg:je});return[Ht(ti),Xn(ti),at(ti),Sn(ti,"light"),Sn(ki,"dark"),Je(ti),(0,Qe.Z)(ti),(0,Rt.oN)(ti,"slide-up"),(0,Rt.oN)(ti,"slide-down"),(0,Dt._y)(ti,"zoom-big")]},oe=>{const{colorPrimary:Te,colorError:je,colorTextDisabled:Et,colorErrorBg:At,colorText:Ot,colorTextDescription:Bt,colorBgContainer:Nt,colorFillAlter:zn,colorFillContent:Gn,lineWidth:_t,lineWidthBold:cn,controlItemBgActive:Jn,colorBgTextHover:lr,controlHeightLG:En,lineHeight:wr,colorBgElevated:xi,marginXXS:ei,padding:Yr,fontSize:Gr,controlHeightSM:Ai,fontSizeLG:ti,colorTextLightSolid:ki,colorErrorHover:Ri}=oe,jn=new pt.C(ki).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:oe.zIndexPopupBase+50,radiusItem:oe.borderRadiusLG,itemBorderRadius:oe.borderRadiusLG,radiusSubMenuItem:oe.borderRadiusSM,subMenuItemBorderRadius:oe.borderRadiusSM,colorItemText:Ot,itemColor:Ot,colorItemTextHover:Ot,itemHoverColor:Ot,colorItemTextHoverHorizontal:Te,horizontalItemHoverColor:Te,colorGroupTitle:Bt,groupTitleColor:Bt,colorItemTextSelected:Te,itemSelectedColor:Te,colorItemTextSelectedHorizontal:Te,horizontalItemSelectedColor:Te,colorItemBg:Nt,itemBg:Nt,colorItemBgHover:lr,itemHoverBg:lr,colorItemBgActive:Gn,itemActiveBg:Jn,colorSubItemBg:zn,subMenuItemBg:zn,colorItemBgSelected:Jn,itemSelectedBg:Jn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:cn,activeBarHeight:cn,colorActiveBarBorderSize:_t,activeBarBorderWidth:_t,colorItemTextDisabled:Et,itemDisabledColor:Et,colorDangerItemText:je,dangerItemColor:je,colorDangerItemTextHover:je,dangerItemHoverColor:je,colorDangerItemTextSelected:je,dangerItemSelectedColor:je,colorDangerItemBgActive:At,dangerItemActiveBg:At,colorDangerItemBgSelected:At,dangerItemSelectedBg:At,itemMarginInline:oe.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:En,groupTitleLineHeight:wr,collapsedWidth:En*2,popupBg:xi,itemMarginBlock:ei,itemPaddingInline:Yr,horizontalLineHeight:`${En*1.15}px`,iconSize:Gr,iconMarginInlineEnd:Ai-Gr,collapsedIconSize:ti,groupTitleFontSize:Gr,darkItemDisabledColor:new pt.C(ki).setAlpha(.25).toRgbString(),darkItemColor:jn,darkDangerItemColor:je,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:ki,darkItemSelectedBg:Te,darkDangerItemSelectedBg:je,darkItemHoverBg:"transparent",darkGroupTitleColor:jn,darkItemHoverColor:ki,darkDangerItemHoverColor:Ri,darkDangerItemSelectedColor:ki,darkDangerItemActiveBg:je}},{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"]]})(se),Ct=function(se,fe){var de={};for(var oe in se)Object.prototype.hasOwnProperty.call(se,oe)&&fe.indexOf(oe)<0&&(de[oe]=se[oe]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,oe=Object.getOwnPropertySymbols(se);Te<oe.length;Te++)fe.indexOf(oe[Te])<0&&Object.prototype.propertyIsEnumerable.call(se,oe[Te])&&(de[oe[Te]]=se[oe[Te]]);return de},pn=(0,We.forwardRef)((se,fe)=>{var de,oe;const Te=We.useContext(xe.Z),je=Te||{},{getPrefixCls:Et,getPopupContainer:At,direction:Ot,menu:Bt}=We.useContext(Ae.E_),Nt=Et(),{prefixCls:zn,className:Gn,style:_t,theme:cn="light",expandIcon:Jn,_internalDisableMenuItemTitleTooltip:lr,inlineCollapsed:En,siderCollapsed:wr,items:xi,children:ei,rootClassName:Yr,mode:Gr,selectable:Ai,onClick:ti,overflowedIndicatorPopupClassName:ki}=se,Ri=Ct(se,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),jn=(0,ot.Z)(Ri,["collapsedWidth"]),Pi=ft(xi)||ei;(de=je.validator)===null||de===void 0||de.call(je,{mode:Gr});const va=(0,it.useEvent)(function(){var On;ti==null||ti.apply(void 0,arguments),(On=je.onClick)===null||On===void 0||On.call(je)}),da=je.mode||Gr,ya=Ai!=null?Ai:je.selectable,ea=We.useMemo(()=>wr!==void 0?wr:En,[En,wr]),kt={horizontal:{motionName:`${Nt}-slide-up`},inline:(0,Be.Z)(Nt),other:{motionName:`${Nt}-zoom-big`}},bn=Et("menu",zn||je.prefixCls),[Tn,In]=It(bn,!Te),kr=be()(`${bn}-${cn}`,Bt==null?void 0:Bt.className,Gn);let qn;if(typeof Jn=="function")qn=Jn;else if(Jn===null||Jn===!1)qn=null;else if(je.expandIcon===null||je.expandIcon===!1)qn=null;else{const On=Jn!=null?Jn:je.expandIcon;qn=(0,wt.Tm)(On,{className:be()(`${bn}-submenu-expand-icon`,(0,wt.l$)(On)?(oe=On.props)===null||oe===void 0?void 0:oe.className:"")})}const hr=We.useMemo(()=>({prefixCls:bn,inlineCollapsed:ea||!1,direction:Ot,firstLevel:!0,theme:cn,mode:da,disableMenuItemTitleTooltip:lr}),[bn,ea,Ot,lr,cn]);return Tn(We.createElement(xe.Z.Provider,{value:null},We.createElement(tt.Provider,{value:hr},We.createElement(ge.ZP,Object.assign({getPopupContainer:At,overflowedIndicator:We.createElement(Ye.Z,null),overflowedIndicatorPopupClassName:be()(bn,`${bn}-${cn}`,ki),mode:da,selectable:ya,onClick:va},jn,{inlineCollapsed:ea,style:Object.assign(Object.assign({},Bt==null?void 0:Bt.style),_t),className:kr,prefixCls:bn,direction:Ot,defaultMotions:kt,expandIcon:qn,ref:fe,rootClassName:be()(Yr,In)}),Pi))))});const Ee=(0,We.forwardRef)((se,fe)=>{const de=(0,We.useRef)(null),oe=We.useContext(Pe.D);return(0,We.useImperativeHandle)(fe,()=>({menu:de.current,focus:Te=>{var je;(je=de.current)===null||je===void 0||je.focus(Te)}})),We.createElement(pn,Object.assign({ref:de},se,oe))});Ee.Item=Me,Ee.SubMenu=zt,Ee.Divider=pe,Ee.ItemGroup=ge.BW;var ce=Ee},78045:function(hn,Zt,le){"use strict";le.d(Zt,{ZP:function(){return Je}});var ge=le(94184),We=le.n(ge),Pe=le(5663),et=le(1337),be=le(67294),Ae=le(53124),ke=le(98675);const Se=be.createContext(null),pe=Se.Provider;var Ie=Se;const ot=be.createContext(null),Oe=ot.Provider;var wt=le(95860),lt=le(17799),tt=le(98866),Ge=le(65223),Me=le(14747),bt=le(67968),zt=le(45503);const Ye=_e=>{const{componentCls:Ft,antCls:Sn}=_e,an=`${Ft}-group`;return{[an]:Object.assign(Object.assign({},(0,Me.Wf)(_e)),{display:"inline-block",fontSize:0,[`&${an}-rtl`]:{direction:"rtl"},[`${Sn}-badge ${Sn}-badge-count`]:{zIndex:1},[`> ${Sn}-badge:not(:first-child) > ${Sn}-button-wrapper`]:{borderInlineStart:"none"}})}},it=_e=>{const{componentCls:Ft,wrapperMarginInlineEnd:Sn,colorPrimary:an,radioSize:nt,motionDurationSlow:at,motionDurationMid:$t,motionEaseInOutCirc:kn,colorBgContainer:Ht,colorBorder:It,lineWidth:Ct,dotSize:tn,colorBgContainerDisabled:pn,colorTextDisabled:Ee,paddingXS:ce,dotColorDisabled:se,lineType:fe,radioDotDisabledSize:de,wireframe:oe,colorWhite:Te}=_e,je=`${Ft}-inner`;return{[`${Ft}-wrapper`]:Object.assign(Object.assign({},(0,Me.Wf)(_e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:Sn,cursor:"pointer",[`&${Ft}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:_e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${Ft}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Ct}px ${fe} ${an}`,borderRadius:"50%",visibility:"hidden",content:'""'},[Ft]:Object.assign(Object.assign({},(0,Me.Wf)(_e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${Ft}-wrapper:hover &,
&:hover ${je}`]:{borderColor:an},[`${Ft}-input:focus-visible + ${je}`]:Object.assign({},(0,Me.oN)(_e)),[`${Ft}:hover::after, ${Ft}-wrapper:hover &::after`]:{visibility:"visible"},[`${Ft}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:nt,height:nt,marginBlockStart:nt/-2,marginInlineStart:nt/-2,backgroundColor:oe?an:Te,borderBlockStart:0,borderInlineStart:0,borderRadius:nt,transform:"scale(0)",opacity:0,transition:`all ${at} ${kn}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:nt,height:nt,backgroundColor:Ht,borderColor:It,borderStyle:"solid",borderWidth:Ct,borderRadius:"50%",transition:`all ${$t}`},[`${Ft}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${Ft}-checked`]:{[je]:{borderColor:an,backgroundColor:oe?Ht:an,"&::after":{transform:`scale(${tn/nt})`,opacity:1,transition:`all ${at} ${kn}`}}},[`${Ft}-disabled`]:{cursor:"not-allowed",[je]:{backgroundColor:pn,borderColor:It,cursor:"not-allowed","&::after":{backgroundColor:se}},[`${Ft}-input`]:{cursor:"not-allowed"},[`${Ft}-disabled + span`]:{color:Ee,cursor:"not-allowed"},[`&${Ft}-checked`]:{[je]:{"&::after":{transform:`scale(${de/nt})`}}}},[`span${Ft} + *`]:{paddingInlineStart:ce,paddingInlineEnd:ce}})}},Be=_e=>{const{buttonColor:Ft,controlHeight:Sn,componentCls:an,lineWidth:nt,lineType:at,colorBorder:$t,motionDurationSlow:kn,motionDurationMid:Ht,buttonPaddingInline:It,fontSize:Ct,buttonBg:tn,fontSizeLG:pn,controlHeightLG:Ee,controlHeightSM:ce,paddingXS:se,borderRadius:fe,borderRadiusSM:de,borderRadiusLG:oe,buttonCheckedBg:Te,buttonSolidCheckedColor:je,colorTextDisabled:Et,colorBgContainerDisabled:At,buttonCheckedBgDisabled:Ot,buttonCheckedColorDisabled:Bt,colorPrimary:Nt,colorPrimaryHover:zn,colorPrimaryActive:Gn,buttonSolidCheckedBg:_t,buttonSolidCheckedHoverBg:cn,buttonSolidCheckedActiveBg:Jn}=_e;return{[`${an}-button-wrapper`]:{position:"relative",display:"inline-block",height:Sn,margin:0,paddingInline:It,paddingBlock:0,color:Ft,fontSize:Ct,lineHeight:`${Sn-nt*2}px`,background:tn,border:`${nt}px ${at} ${$t}`,borderBlockStartWidth:nt+.02,borderInlineStartWidth:0,borderInlineEndWidth:nt,cursor:"pointer",transition:[`color ${Ht}`,`background ${Ht}`,`box-shadow ${Ht}`].join(","),a:{color:Ft},[`> ${an}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-nt,insetInlineStart:-nt,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:nt,paddingInline:0,backgroundColor:$t,transition:`background-color ${kn}`,content:'""'}},"&:first-child":{borderInlineStart:`${nt}px ${at} ${$t}`,borderStartStartRadius:fe,borderEndStartRadius:fe},"&:last-child":{borderStartEndRadius:fe,borderEndEndRadius:fe},"&:first-child:last-child":{borderRadius:fe},[`${an}-group-large &`]:{height:Ee,fontSize:pn,lineHeight:`${Ee-nt*2}px`,"&:first-child":{borderStartStartRadius:oe,borderEndStartRadius:oe},"&:last-child":{borderStartEndRadius:oe,borderEndEndRadius:oe}},[`${an}-group-small &`]:{height:ce,paddingInline:se-nt,paddingBlock:0,lineHeight:`${ce-nt*2}px`,"&:first-child":{borderStartStartRadius:de,borderEndStartRadius:de},"&:last-child":{borderStartEndRadius:de,borderEndEndRadius:de}},"&:hover":{position:"relative",color:Nt},"&:has(:focus-visible)":Object.assign({},(0,Me.oN)(_e)),[`${an}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${an}-button-wrapper-disabled)`]:{zIndex:1,color:Nt,background:Te,borderColor:Nt,"&::before":{backgroundColor:Nt},"&:first-child":{borderColor:Nt},"&:hover":{color:zn,borderColor:zn,"&::before":{backgroundColor:zn}},"&:active":{color:Gn,borderColor:Gn,"&::before":{backgroundColor:Gn}}},[`${an}-group-solid &-checked:not(${an}-button-wrapper-disabled)`]:{color:je,background:_t,borderColor:_t,"&:hover":{color:je,background:cn,borderColor:cn},"&:active":{color:je,background:Jn,borderColor:Jn}},"&-disabled":{color:Et,backgroundColor:At,borderColor:$t,cursor:"not-allowed","&:first-child, &:hover":{color:Et,backgroundColor:At,borderColor:$t}},[`&-disabled${an}-button-wrapper-checked`]:{color:Bt,backgroundColor:Ot,borderColor:$t,boxShadow:"none"}}}},xe=_e=>_e-4*2;var Ke=(0,bt.Z)("Radio",_e=>{const{controlOutline:Ft,controlOutlineWidth:Sn,radioSize:an}=_e,nt=`0 0 0 ${Sn}px ${Ft}`,at=nt,$t=xe(an),kn=(0,zt.TS)(_e,{radioDotDisabledSize:$t,radioFocusShadow:nt,radioButtonFocusShadow:at});return[Ye(kn),it(kn),Be(kn)]},_e=>{const{wireframe:Ft,padding:Sn,marginXS:an,lineWidth:nt,fontSizeLG:at,colorText:$t,colorBgContainer:kn,colorTextDisabled:Ht,controlItemBgActiveDisabled:It,colorTextLightSolid:Ct,colorPrimary:tn,colorPrimaryHover:pn,colorPrimaryActive:Ee}=_e,ce=4,se=at,fe=Ft?xe(se):se-(ce+nt)*2;return{radioSize:se,dotSize:fe,dotColorDisabled:Ht,buttonSolidCheckedColor:Ct,buttonSolidCheckedBg:tn,buttonSolidCheckedHoverBg:pn,buttonSolidCheckedActiveBg:Ee,buttonBg:kn,buttonCheckedBg:kn,buttonColor:$t,buttonCheckedBgDisabled:It,buttonCheckedColorDisabled:Ht,buttonPaddingInline:Sn-nt,wrapperMarginInlineEnd:an}}),Ue=le(45353),ft=le(92429),pt=function(_e,Ft){var Sn={};for(var an in _e)Object.prototype.hasOwnProperty.call(_e,an)&&Ft.indexOf(an)<0&&(Sn[an]=_e[an]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,an=Object.getOwnPropertySymbols(_e);nt<an.length;nt++)Ft.indexOf(an[nt])<0&&Object.prototype.propertyIsEnumerable.call(_e,an[nt])&&(Sn[an[nt]]=_e[an[nt]]);return Sn};const Mt=(_e,Ft)=>{var Sn,an;const nt=be.useContext(Ie),at=be.useContext(ot),{getPrefixCls:$t,direction:kn,radio:Ht}=be.useContext(Ae.E_),It=be.useRef(null),Ct=(0,lt.sQ)(Ft,It),{isFormItemInput:tn}=be.useContext(Ge.aM),pn=Gn=>{var _t,cn;(_t=_e.onChange)===null||_t===void 0||_t.call(_e,Gn),(cn=nt==null?void 0:nt.onChange)===null||cn===void 0||cn.call(nt,Gn)},{prefixCls:Ee,className:ce,rootClassName:se,children:fe,style:de}=_e,oe=pt(_e,["prefixCls","className","rootClassName","children","style"]),Te=$t("radio",Ee),je=((nt==null?void 0:nt.optionType)||at)==="button",Et=je?`${Te}-button`:Te,[At,Ot]=Ke(Te),Bt=Object.assign({},oe),Nt=be.useContext(tt.Z);nt&&(Bt.name=nt.name,Bt.onChange=pn,Bt.checked=_e.value===nt.value,Bt.disabled=(Sn=Bt.disabled)!==null&&Sn!==void 0?Sn:nt.disabled),Bt.disabled=(an=Bt.disabled)!==null&&an!==void 0?an:Nt;const zn=We()(`${Et}-wrapper`,{[`${Et}-wrapper-checked`]:Bt.checked,[`${Et}-wrapper-disabled`]:Bt.disabled,[`${Et}-wrapper-rtl`]:kn==="rtl",[`${Et}-wrapper-in-form-item`]:tn},Ht==null?void 0:Ht.className,ce,se,Ot);return At(be.createElement(Ue.Z,{component:"Radio",disabled:Bt.disabled},be.createElement("label",{className:zn,style:Object.assign(Object.assign({},Ht==null?void 0:Ht.style),de),onMouseEnter:_e.onMouseEnter,onMouseLeave:_e.onMouseLeave},be.createElement(wt.Z,Object.assign({},Bt,{className:We()(Bt.className,!je&&ft.A),type:"radio",prefixCls:Et,ref:Ct})),fe!==void 0?be.createElement("span",null,fe):null)))};var Rt=be.forwardRef(Mt);const Dt=be.forwardRef((_e,Ft)=>{const{getPrefixCls:Sn,direction:an}=be.useContext(Ae.E_),[nt,at]=(0,Pe.Z)(_e.defaultValue,{value:_e.value}),$t=_t=>{const cn=nt,Jn=_t.target.value;"value"in _e||at(Jn);const{onChange:lr}=_e;lr&&Jn!==cn&&lr(_t)},{prefixCls:kn,className:Ht,rootClassName:It,options:Ct,buttonStyle:tn="outline",disabled:pn,children:Ee,size:ce,style:se,id:fe,onMouseEnter:de,onMouseLeave:oe,onFocus:Te,onBlur:je}=_e,Et=Sn("radio",kn),At=`${Et}-group`,[Ot,Bt]=Ke(Et);let Nt=Ee;Ct&&Ct.length>0&&(Nt=Ct.map(_t=>typeof _t=="string"||typeof _t=="number"?be.createElement(Rt,{key:_t.toString(),prefixCls:Et,disabled:pn,value:_t,checked:nt===_t},_t):be.createElement(Rt,{key:`radio-group-value-options-${_t.value}`,prefixCls:Et,disabled:_t.disabled||pn,value:_t.value,checked:nt===_t.value,title:_t.title,style:_t.style},_t.label)));const zn=(0,ke.Z)(ce),Gn=We()(At,`${At}-${tn}`,{[`${At}-${zn}`]:zn,[`${At}-rtl`]:an==="rtl"},Ht,It,Bt);return Ot(be.createElement("div",Object.assign({},(0,et.Z)(_e,{aria:!0,data:!0}),{className:Gn,style:se,onMouseEnter:de,onMouseLeave:oe,onFocus:Te,onBlur:je,id:fe,ref:Ft}),be.createElement(pe,{value:{onChange:$t,value:nt,disabled:_e.disabled,name:_e.name,optionType:_e.optionType}},Nt)))});var on=be.memo(Dt),Ut=function(_e,Ft){var Sn={};for(var an in _e)Object.prototype.hasOwnProperty.call(_e,an)&&Ft.indexOf(an)<0&&(Sn[an]=_e[an]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,an=Object.getOwnPropertySymbols(_e);nt<an.length;nt++)Ft.indexOf(an[nt])<0&&Object.prototype.propertyIsEnumerable.call(_e,an[nt])&&(Sn[an[nt]]=_e[an[nt]]);return Sn};const wn=(_e,Ft)=>{const{getPrefixCls:Sn}=be.useContext(Ae.E_),{prefixCls:an}=_e,nt=Ut(_e,["prefixCls"]),at=Sn("radio",an);return be.createElement(Oe,{value:"button"},be.createElement(Rt,Object.assign({prefixCls:at},nt,{type:"radio",ref:Ft})))};var Xn=be.forwardRef(wn);const nr=Rt;nr.Button=Xn,nr.Group=on,nr.__ANT_RADIO=!0;var Je=nr},11713:function(hn,Zt,le){"use strict";le.d(Zt,{default:function(){return or}});var ge=le(94184),We=le.n(ge),Pe=le(87462),et=le(74902),be=le(4942),Ae=le(1413),ke=le(97685),Se=le(45987),pe=le(71002),Ie=le(67294);function ot(He){var $e=Ie.useRef();$e.current=He;var Tt=Ie.useCallback(function(){for(var mt,Yt=arguments.length,fn=new Array(Yt),ln=0;ln<Yt;ln++)fn[ln]=arguments[ln];return(mt=$e.current)===null||mt===void 0?void 0:mt.call.apply(mt,[$e].concat(fn))},[]);return Tt}function Oe(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var wt=Oe()?Ie.useLayoutEffect:Ie.useEffect,lt=wt,tt=function($e,Tt){var mt=Ie.useRef(!0);wt(function(){if(!mt.current)return $e()},Tt),wt(function(){return mt.current=!1,function(){mt.current=!0}},[])};function Ge(He){var $e=Ie.useRef(!1),Tt=Ie.useState(He),mt=(0,ke.Z)(Tt,2),Yt=mt[0],fn=mt[1];Ie.useEffect(function(){return $e.current=!1,function(){$e.current=!0}},[]);function ln(Ln,yn){yn&&$e.current||fn(Ln)}return[Yt,ln]}function Me(He){return He!==void 0}function bt(He,$e){var Tt=$e||{},mt=Tt.defaultValue,Yt=Tt.value,fn=Tt.onChange,ln=Tt.postState,Ln=Ge(function(){return Me(Yt)?Yt:Me(mt)?typeof mt=="function"?mt():mt:typeof He=="function"?He():He}),yn=(0,ke.Z)(Ln,2),Qt=yn[0],Cn=yn[1],Dn=Yt!==void 0?Yt:Qt,ar=ln?ln(Dn):Dn,An=ot(fn),gr=Ge([Dn]),Br=(0,ke.Z)(gr,2),br=Br[0],Ar=Br[1];tt(function(){var Er=br[0];Qt!==Er&&An(Qt,Er)},[br]),tt(function(){Me(Yt)||Cn(Yt)},[Yt]);var ur=ot(function(Er,Nr){Cn(Er,Nr),Ar([Dn],Nr)});return[ar,ur]}var zt={};function Ye(He,$e){}function it(He,$e){}function Be(){zt={}}function xe(He,$e,Tt){!$e&&!zt[Tt]&&(He(!1,Tt),zt[Tt]=!0)}function Ke(He,$e){xe(Ye,He,$e)}function Ue(He,$e){xe(it,He,$e)}var ft=Ke,pt=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var He=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(He)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(He==null?void 0:He.substr(0,4))},Mt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function($e){var Tt=$e.keyCode;if($e.altKey&&!$e.ctrlKey||$e.metaKey||Tt>=Mt.F1&&Tt<=Mt.F12)return!1;switch(Tt){case Mt.ALT:case Mt.CAPS_LOCK:case Mt.CONTEXT_MENU:case Mt.CTRL:case Mt.DOWN:case Mt.END:case Mt.ESC:case Mt.HOME:case Mt.INSERT:case Mt.LEFT:case Mt.MAC_FF_META:case Mt.META:case Mt.NUMLOCK:case Mt.NUM_CENTER:case Mt.PAGE_DOWN:case Mt.PAGE_UP:case Mt.PAUSE:case Mt.PRINT_SCREEN:case Mt.RIGHT:case Mt.SHIFT:case Mt.UP:case Mt.WIN_KEY:case Mt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function($e){if($e>=Mt.ZERO&&$e<=Mt.NINE||$e>=Mt.NUM_ZERO&&$e<=Mt.NUM_MULTIPLY||$e>=Mt.A&&$e<=Mt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&$e===0)return!0;switch($e){case Mt.SPACE:case Mt.QUESTION_MARK:case Mt.NUM_PLUS:case Mt.NUM_MINUS:case Mt.NUM_PERIOD:case Mt.NUM_DIVISION:case Mt.SEMICOLON:case Mt.DASH:case Mt.EQUALS:case Mt.COMMA:case Mt.PERIOD:case Mt.SLASH:case Mt.APOSTROPHE:case Mt.SINGLE_QUOTE:case Mt.OPEN_SQUARE_BRACKET:case Mt.BACKSLASH:case Mt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Qe=Mt,Rt=le(47655);function Dt(He,$e,Tt){var mt=Ie.useRef({});return(!("value"in mt.current)||Tt(mt.current.condition,$e))&&(mt.current.value=He(),mt.current.condition=$e),mt.current.value}function on(He,$e){typeof He=="function"?He($e):(0,pe.Z)(He)==="object"&&He&&"current"in He&&(He.current=$e)}function Ut(){for(var He=arguments.length,$e=new Array(He),Tt=0;Tt<He;Tt++)$e[Tt]=arguments[Tt];var mt=$e.filter(function(Yt){return Yt});return mt.length<=1?mt[0]:function(Yt){$e.forEach(function(fn){on(fn,Yt)})}}function wn(){for(var He=arguments.length,$e=new Array(He),Tt=0;Tt<He;Tt++)$e[Tt]=arguments[Tt];return Dt(function(){return Ut.apply(void 0,$e)},$e,function(mt,Yt){return mt.length===Yt.length&&mt.every(function(fn,ln){return fn===Yt[ln]})})}function Xn(He){var $e,Tt,mt=isMemo(He)?He.type.type:He.type;return!(typeof mt=="function"&&!(($e=mt.prototype)!==null&&$e!==void 0&&$e.render)||typeof He=="function"&&!((Tt=He.prototype)!==null&&Tt!==void 0&&Tt.render))}var nr=function($e){var Tt=$e.className,mt=$e.customizeIcon,Yt=$e.customizeIconProps,fn=$e.onMouseDown,ln=$e.onClick,Ln=$e.children,yn;return typeof mt=="function"?yn=mt(Yt):yn=mt,Ie.createElement("span",{className:Tt,onMouseDown:function(Cn){Cn.preventDefault(),fn&&fn(Cn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:ln,"aria-hidden":!0},yn!==void 0?yn:Ie.createElement("span",{className:We()(Tt.split(/\s+/).map(function(Qt){return"".concat(Qt,"-icon")}))},Ln))},Je=nr;function _e(He,$e,Tt,mt,Yt){var fn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,ln=arguments.length>6?arguments[6]:void 0,Ln=arguments.length>7?arguments[7]:void 0,yn=Ie.useMemo(function(){if((0,pe.Z)(mt)==="object")return mt.clearIcon;if(Yt)return Yt},[mt,Yt]),Qt=Ie.useMemo(function(){return!!(!fn&&mt&&(Tt.length||ln)&&!(Ln==="combobox"&&ln===""))},[mt,fn,Tt.length,ln,Ln]);return{allowClear:Qt,clearIcon:Ie.createElement(Je,{className:"".concat(He,"-clear"),onMouseDown:$e,customizeIcon:yn},"\xD7")}}var Ft=Ie.createContext(null);function Sn(){return Ie.useContext(Ft)}function an(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,$e=Ie.useState(!1),Tt=(0,ke.Z)($e,2),mt=Tt[0],Yt=Tt[1],fn=Ie.useRef(null),ln=function(){window.clearTimeout(fn.current)};Ie.useEffect(function(){return ln},[]);var Ln=function(Qt,Cn){ln(),fn.current=window.setTimeout(function(){Yt(Qt),Cn&&Cn()},He)};return[mt,Ln,ln]}function nt(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,$e=Ie.useRef(null),Tt=Ie.useRef(null);Ie.useEffect(function(){return function(){window.clearTimeout(Tt.current)}},[]);function mt(Yt){(Yt||$e.current===null)&&($e.current=Yt),window.clearTimeout(Tt.current),Tt.current=window.setTimeout(function(){$e.current=null},He)}return[function(){return $e.current},mt]}function at(He,$e,Tt,mt){var Yt=Ie.useRef(null);Yt.current={open:$e,triggerOpen:Tt,customizedTrigger:mt},Ie.useEffect(function(){function fn(ln){var Ln;if(!((Ln=Yt.current)!==null&&Ln!==void 0&&Ln.customizedTrigger)){var yn=ln.target;yn.shadowRoot&&ln.composed&&(yn=ln.composedPath()[0]||yn),Yt.current.open&&He().filter(function(Qt){return Qt}).every(function(Qt){return!Qt.contains(yn)&&Qt!==yn})&&Yt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",fn),function(){return window.removeEventListener("mousedown",fn)}},[])}var $t=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,kn=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Ht="".concat($t," ").concat(kn).split(/[\s\n]+/),It="aria-",Ct="data-";function tn(He,$e){return He.indexOf($e)===0}function pn(He){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Tt;$e===!1?Tt={aria:!0,data:!0,attr:!0}:$e===!0?Tt={aria:!0}:Tt=(0,Ae.Z)({},$e);var mt={};return Object.keys(He).forEach(function(Yt){(Tt.aria&&(Yt==="role"||tn(Yt,It))||Tt.data&&tn(Yt,Ct)||Tt.attr&&Ht.includes(Yt))&&(mt[Yt]=He[Yt])}),mt}var Ee=le(48555),ce=le(14075),se=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],fe=void 0;function de(He,$e){var Tt=He.prefixCls,mt=He.invalidate,Yt=He.item,fn=He.renderItem,ln=He.responsive,Ln=He.responsiveDisabled,yn=He.registerSize,Qt=He.itemKey,Cn=He.className,Dn=He.style,ar=He.children,An=He.display,gr=He.order,Br=He.component,br=Br===void 0?"div":Br,Ar=(0,Se.Z)(He,se),ur=ln&&!An;function Er(fi){yn(Qt,fi)}Ie.useEffect(function(){return function(){Er(null)}},[]);var Nr=fn&&Yt!==fe?fn(Yt):ar,Kr;mt||(Kr={opacity:ur?0:1,height:ur?0:fe,overflowY:ur?"hidden":fe,order:ln?gr:fe,pointerEvents:ur?"none":fe,position:ur?"absolute":fe});var xr={};ur&&(xr["aria-hidden"]=!0);var Vr=Ie.createElement(br,(0,Pe.Z)({className:We()(!mt&&Tt,Cn),style:(0,Ae.Z)((0,Ae.Z)({},Kr),Dn)},xr,Ar,{ref:$e}),Nr);return ln&&(Vr=Ie.createElement(Ee.Z,{onResize:function(Hi){var Ti=Hi.offsetWidth;Er(Ti)},disabled:Ln},Vr)),Vr}var oe=Ie.forwardRef(de);oe.displayName="Item";var Te=oe,je=le(77527),Et=le(73935),At=le(96523);function Ot(He){if(typeof MessageChannel=="undefined")(0,At.Z)(He);else{var $e=new MessageChannel;$e.port1.onmessage=function(){return He()},$e.port2.postMessage(void 0)}}function Bt(){var He=Ie.useRef(null),$e=function(mt){He.current||(He.current=[],Ot(function(){(0,Et.unstable_batchedUpdates)(function(){He.current.forEach(function(Yt){Yt()}),He.current=null})})),He.current.push(mt)};return $e}function Nt(He,$e){var Tt=Ie.useState($e),mt=(0,ke.Z)(Tt,2),Yt=mt[0],fn=mt[1],ln=(0,je.Z)(function(Ln){He(function(){fn(Ln)})});return[Yt,ln]}var zn=Ie.createContext(null),Gn=["component"],_t=["className"],cn=["className"],Jn=function($e,Tt){var mt=Ie.useContext(zn);if(!mt){var Yt=$e.component,fn=Yt===void 0?"div":Yt,ln=(0,Se.Z)($e,Gn);return Ie.createElement(fn,(0,Pe.Z)({},ln,{ref:Tt}))}var Ln=mt.className,yn=(0,Se.Z)(mt,_t),Qt=$e.className,Cn=(0,Se.Z)($e,cn);return Ie.createElement(zn.Provider,{value:null},Ie.createElement(Te,(0,Pe.Z)({ref:Tt,className:We()(Ln,Qt)},yn,Cn)))},lr=Ie.forwardRef(Jn);lr.displayName="RawItem";var En=lr,wr=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],xi="responsive",ei="invalidate";function Yr(He){return"+ ".concat(He.length," ...")}function Gr(He,$e){var Tt=He.prefixCls,mt=Tt===void 0?"rc-overflow":Tt,Yt=He.data,fn=Yt===void 0?[]:Yt,ln=He.renderItem,Ln=He.renderRawItem,yn=He.itemKey,Qt=He.itemWidth,Cn=Qt===void 0?10:Qt,Dn=He.ssr,ar=He.style,An=He.className,gr=He.maxCount,Br=He.renderRest,br=He.renderRawRest,Ar=He.suffix,ur=He.component,Er=ur===void 0?"div":ur,Nr=He.itemComponent,Kr=He.onVisibleChange,xr=(0,Se.Z)(He,wr),Vr=Dn==="full",fi=Bt(),Hi=Nt(fi,null),Ti=(0,ke.Z)(Hi,2),mi=Ti[0],Bi=Ti[1],Oi=mi||0,qr=Nt(fi,new Map),gi=(0,ke.Z)(qr,2),Pr=gi[0],Ur=gi[1],si=Nt(fi,0),Ii=(0,ke.Z)(si,2),Ra=Ii[0],Fa=Ii[1],La=Nt(fi,0),qi=(0,ke.Z)(La,2),Ni=qi[0],ri=qi[1],Pa=Nt(fi,0),ii=(0,ke.Z)(Pa,2),Rr=ii[0],yi=ii[1],Qi=(0,Ie.useState)(null),Mi=(0,ke.Z)(Qi,2),Vi=Mi[0],jr=Mi[1],aa=(0,Ie.useState)(null),pa=(0,ke.Z)(aa,2),ra=pa[0],ma=pa[1],Sa=Ie.useMemo(function(){return ra===null&&Vr?Number.MAX_SAFE_INTEGER:ra||0},[ra,mi]),Ua=(0,Ie.useState)(!1),ia=(0,ke.Z)(Ua,2),Ca=ia[0],Qa=ia[1],ja="".concat(mt,"-item"),so=Math.max(Ra,Ni),za=gr===xi,ba=fn.length&&za,ai=gr===ei,bi=ba||typeof gr=="number"&&fn.length>gr,Ji=(0,Ie.useMemo)(function(){var Zi=fn;return ba?mi===null&&Vr?Zi=fn:Zi=fn.slice(0,Math.min(fn.length,Oi/Cn)):typeof gr=="number"&&(Zi=fn.slice(0,gr)),Zi},[fn,Cn,mi,gr,ba]),ga=(0,Ie.useMemo)(function(){return ba?fn.slice(Sa+1):fn.slice(Ji.length)},[fn,Ji,ba,Sa]),Ka=(0,Ie.useCallback)(function(Zi,vr){var Qr;return typeof yn=="function"?yn(Zi):(Qr=yn&&(Zi==null?void 0:Zi[yn]))!==null&&Qr!==void 0?Qr:vr},[yn]),io=(0,Ie.useCallback)(ln||function(Zi){return Zi},[ln]);function ho(Zi,vr,Qr){ra===Zi&&(vr===void 0||vr===Vi)||(ma(Zi),Qr||(Qa(Zi<fn.length-1),Kr==null||Kr(Zi)),vr!==void 0&&jr(vr))}function Po(Zi,vr){Bi(vr.clientWidth)}function Oo(Zi,vr){Ur(function(Qr){var Jr=new Map(Qr);return vr===null?Jr.delete(Zi):Jr.set(Zi,vr),Jr})}function lo(Zi,vr){ri(vr),Fa(Ni)}function Do(Zi,vr){yi(vr)}function Ki(Zi){return Pr.get(Ka(Ji[Zi],Zi))}(0,ce.Z)(function(){if(Oi&&typeof so=="number"&&Ji){var Zi=Rr,vr=Ji.length,Qr=vr-1;if(!vr){ho(0,null);return}for(var Jr=0;Jr<vr;Jr+=1){var li=Ki(Jr);if(Vr&&(li=li||0),li===void 0){ho(Jr-1,void 0,!0);break}if(Zi+=li,Qr===0&&Zi<=Oi||Jr===Qr-1&&Zi+Ki(Qr)<=Oi){ho(Qr,null);break}else if(Zi+so>Oi){ho(Jr-1,Zi-li-Rr+Ni);break}}Ar&&Ki(0)+Rr>Oi&&jr(null)}},[Oi,Pr,Ni,Rr,Ka,Ji]);var hi=Ca&&!!ga.length,Da={};Vi!==null&&ba&&(Da={position:"absolute",left:Vi,top:0});var Ea={prefixCls:ja,responsive:ba,component:Nr,invalidate:ai},uo=Ln?function(Zi,vr){var Qr=Ka(Zi,vr);return Ie.createElement(zn.Provider,{key:Qr,value:(0,Ae.Z)((0,Ae.Z)({},Ea),{},{order:vr,item:Zi,itemKey:Qr,registerSize:Oo,display:vr<=Sa})},Ln(Zi,vr))}:function(Zi,vr){var Qr=Ka(Zi,vr);return Ie.createElement(Te,(0,Pe.Z)({},Ea,{order:vr,key:Qr,item:Zi,renderItem:io,itemKey:Qr,registerSize:Oo,display:vr<=Sa}))},ao,hs={order:hi?Sa:Number.MAX_SAFE_INTEGER,className:"".concat(ja,"-rest"),registerSize:lo,display:hi};if(br)br&&(ao=Ie.createElement(zn.Provider,{value:(0,Ae.Z)((0,Ae.Z)({},Ea),hs)},br(ga)));else{var Jo=Br||Yr;ao=Ie.createElement(Te,(0,Pe.Z)({},Ea,hs),typeof Jo=="function"?Jo(ga):Jo)}var ps=Ie.createElement(Er,(0,Pe.Z)({className:We()(!ai&&mt,An),style:ar,ref:$e},xr),Ji.map(uo),bi?ao:null,Ar&&Ie.createElement(Te,(0,Pe.Z)({},Ea,{responsive:za,responsiveDisabled:!ba,order:Sa,className:"".concat(ja,"-suffix"),registerSize:Do,display:!0,style:Da}),Ar));return za&&(ps=Ie.createElement(Ee.Z,{onResize:Po,disabled:!ba},ps)),ps}var Ai=Ie.forwardRef(Gr);Ai.displayName="Overflow",Ai.Item=En,Ai.RESPONSIVE=xi,Ai.INVALIDATE=ei;var ti=Ai,ki=ti,Ri=function($e,Tt){var mt,Yt,fn=$e.prefixCls,ln=$e.id,Ln=$e.inputElement,yn=$e.disabled,Qt=$e.tabIndex,Cn=$e.autoFocus,Dn=$e.autoComplete,ar=$e.editable,An=$e.activeDescendantId,gr=$e.value,Br=$e.maxLength,br=$e.onKeyDown,Ar=$e.onMouseDown,ur=$e.onChange,Er=$e.onPaste,Nr=$e.onCompositionStart,Kr=$e.onCompositionEnd,xr=$e.open,Vr=$e.attrs,fi=Ln||Ie.createElement("input",null),Hi=fi,Ti=Hi.ref,mi=Hi.props,Bi=mi.onKeyDown,Oi=mi.onChange,qr=mi.onMouseDown,gi=mi.onCompositionStart,Pr=mi.onCompositionEnd,Ur=mi.style;return"maxLength"in fi.props,fi=Ie.cloneElement(fi,(0,Ae.Z)((0,Ae.Z)((0,Ae.Z)({type:"search"},mi),{},{id:ln,ref:Ut(Tt,Ti),disabled:yn,tabIndex:Qt,autoComplete:Dn||"off",autoFocus:Cn,className:We()("".concat(fn,"-selection-search-input"),(mt=fi)===null||mt===void 0||(Yt=mt.props)===null||Yt===void 0?void 0:Yt.className),role:"combobox","aria-label":"Search","aria-expanded":xr||!1,"aria-haspopup":"listbox","aria-owns":"".concat(ln,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(ln,"_list"),"aria-activedescendant":xr?An:void 0},Vr),{},{value:ar?gr:"",maxLength:Br,readOnly:!ar,unselectable:ar?null:"on",style:(0,Ae.Z)((0,Ae.Z)({},Ur),{},{opacity:ar?null:0}),onKeyDown:function(Ii){br(Ii),Bi&&Bi(Ii)},onMouseDown:function(Ii){Ar(Ii),qr&&qr(Ii)},onChange:function(Ii){ur(Ii),Oi&&Oi(Ii)},onCompositionStart:function(Ii){Nr(Ii),gi&&gi(Ii)},onCompositionEnd:function(Ii){Kr(Ii),Pr&&Pr(Ii)},onPaste:Er})),fi},jn=Ie.forwardRef(Ri);jn.displayName="Input";var Pi=jn;function va(He){return Array.isArray(He)?He:He!==void 0?[He]:[]}var da=typeof window!="undefined"&&window.document&&window.document.documentElement,ya=da;function ea(He){return He!=null}function kt(He){return!He&&He!==0}function bn(He){return["string","number"].includes((0,pe.Z)(He))}function Tn(He){var $e=void 0;return He&&(bn(He.title)?$e=He.title.toString():bn(He.label)&&($e=He.label.toString())),$e}function In(He,$e){ya?Ie.useLayoutEffect(He,$e):Ie.useEffect(He,$e)}function kr(He){var $e;return($e=He.key)!==null&&$e!==void 0?$e:He.value}var qn=function($e){$e.preventDefault(),$e.stopPropagation()},hr=function($e){var Tt=$e.id,mt=$e.prefixCls,Yt=$e.values,fn=$e.open,ln=$e.searchValue,Ln=$e.autoClearSearchValue,yn=$e.inputRef,Qt=$e.placeholder,Cn=$e.disabled,Dn=$e.mode,ar=$e.showSearch,An=$e.autoFocus,gr=$e.autoComplete,Br=$e.activeDescendantId,br=$e.tabIndex,Ar=$e.removeIcon,ur=$e.maxTagCount,Er=$e.maxTagTextLength,Nr=$e.maxTagPlaceholder,Kr=Nr===void 0?function(jr){return"+ ".concat(jr.length," ...")}:Nr,xr=$e.tagRender,Vr=$e.onToggleOpen,fi=$e.onRemove,Hi=$e.onInputChange,Ti=$e.onInputPaste,mi=$e.onInputKeyDown,Bi=$e.onInputMouseDown,Oi=$e.onInputCompositionStart,qr=$e.onInputCompositionEnd,gi=Ie.useRef(null),Pr=(0,Ie.useState)(0),Ur=(0,ke.Z)(Pr,2),si=Ur[0],Ii=Ur[1],Ra=(0,Ie.useState)(!1),Fa=(0,ke.Z)(Ra,2),La=Fa[0],qi=Fa[1],Ni="".concat(mt,"-selection"),ri=fn||Dn==="multiple"&&Ln===!1||Dn==="tags"?ln:"",Pa=Dn==="tags"||Dn==="multiple"&&Ln===!1||ar&&(fn||La);In(function(){Ii(gi.current.scrollWidth)},[ri]);function ii(jr,aa,pa,ra,ma){return Ie.createElement("span",{className:We()("".concat(Ni,"-item"),(0,be.Z)({},"".concat(Ni,"-item-disabled"),pa)),title:Tn(jr)},Ie.createElement("span",{className:"".concat(Ni,"-item-content")},aa),ra&&Ie.createElement(Je,{className:"".concat(Ni,"-item-remove"),onMouseDown:qn,onClick:ma,customizeIcon:Ar},"\xD7"))}function Rr(jr,aa,pa,ra,ma){var Sa=function(ia){qn(ia),Vr(!fn)};return Ie.createElement("span",{onMouseDown:Sa},xr({label:aa,value:jr,disabled:pa,closable:ra,onClose:ma}))}function yi(jr){var aa=jr.disabled,pa=jr.label,ra=jr.value,ma=!Cn&&!aa,Sa=pa;if(typeof Er=="number"&&(typeof pa=="string"||typeof pa=="number")){var Ua=String(Sa);Ua.length>Er&&(Sa="".concat(Ua.slice(0,Er),"..."))}var ia=function(Qa){Qa&&Qa.stopPropagation(),fi(jr)};return typeof xr=="function"?Rr(ra,Sa,aa,ma,ia):ii(jr,Sa,aa,ma,ia)}function Qi(jr){var aa=typeof Kr=="function"?Kr(jr):Kr;return ii({title:aa},aa,!1)}var Mi=Ie.createElement("div",{className:"".concat(Ni,"-search"),style:{width:si},onFocus:function(){qi(!0)},onBlur:function(){qi(!1)}},Ie.createElement(Pi,{ref:yn,open:fn,prefixCls:mt,id:Tt,inputElement:null,disabled:Cn,autoFocus:An,autoComplete:gr,editable:Pa,activeDescendantId:Br,value:ri,onKeyDown:mi,onMouseDown:Bi,onChange:Hi,onPaste:Ti,onCompositionStart:Oi,onCompositionEnd:qr,tabIndex:br,attrs:pn($e,!0)}),Ie.createElement("span",{ref:gi,className:"".concat(Ni,"-search-mirror"),"aria-hidden":!0},ri,"\xA0")),Vi=Ie.createElement(ki,{prefixCls:"".concat(Ni,"-overflow"),data:Yt,renderItem:yi,renderRest:Qi,suffix:Mi,itemKey:kr,maxCount:ur});return Ie.createElement(Ie.Fragment,null,Vi,!Yt.length&&!ri&&Ie.createElement("span",{className:"".concat(Ni,"-placeholder")},Qt))},On=hr,qe=function($e){var Tt=$e.inputElement,mt=$e.prefixCls,Yt=$e.id,fn=$e.inputRef,ln=$e.disabled,Ln=$e.autoFocus,yn=$e.autoComplete,Qt=$e.activeDescendantId,Cn=$e.mode,Dn=$e.open,ar=$e.values,An=$e.placeholder,gr=$e.tabIndex,Br=$e.showSearch,br=$e.searchValue,Ar=$e.activeValue,ur=$e.maxLength,Er=$e.onInputKeyDown,Nr=$e.onInputMouseDown,Kr=$e.onInputChange,xr=$e.onInputPaste,Vr=$e.onInputCompositionStart,fi=$e.onInputCompositionEnd,Hi=$e.title,Ti=Ie.useState(!1),mi=(0,ke.Z)(Ti,2),Bi=mi[0],Oi=mi[1],qr=Cn==="combobox",gi=qr||Br,Pr=ar[0],Ur=br||"";qr&&Ar&&!Bi&&(Ur=Ar),Ie.useEffect(function(){qr&&Oi(!1)},[qr,Ar]);var si=Cn!=="combobox"&&!Dn&&!Br?!1:!!Ur,Ii=Hi===void 0?Tn(Pr):Hi,Ra=function(){if(Pr)return null;var La=si?{visibility:"hidden"}:void 0;return Ie.createElement("span",{className:"".concat(mt,"-selection-placeholder"),style:La},An)};return Ie.createElement(Ie.Fragment,null,Ie.createElement("span",{className:"".concat(mt,"-selection-search")},Ie.createElement(Pi,{ref:fn,prefixCls:mt,id:Yt,open:Dn,inputElement:Tt,disabled:ln,autoFocus:Ln,autoComplete:yn,editable:gi,activeDescendantId:Qt,value:Ur,onKeyDown:Er,onMouseDown:Nr,onChange:function(La){Oi(!0),Kr(La)},onPaste:xr,onCompositionStart:Vr,onCompositionEnd:fi,tabIndex:gr,attrs:pn($e,!0),maxLength:qr?ur:void 0})),!qr&&Pr?Ie.createElement("span",{className:"".concat(mt,"-selection-item"),title:Ii,style:si?{visibility:"hidden"}:void 0},Pr.label):null,Ra())},st=qe;function Lt(He){return![Qe.ESC,Qe.SHIFT,Qe.BACKSPACE,Qe.TAB,Qe.WIN_KEY,Qe.ALT,Qe.META,Qe.WIN_KEY_RIGHT,Qe.CTRL,Qe.SEMICOLON,Qe.EQUALS,Qe.CAPS_LOCK,Qe.CONTEXT_MENU,Qe.F1,Qe.F2,Qe.F3,Qe.F4,Qe.F5,Qe.F6,Qe.F7,Qe.F8,Qe.F9,Qe.F10,Qe.F11,Qe.F12].includes(He)}var qt=function($e,Tt){var mt=(0,Ie.useRef)(null),Yt=(0,Ie.useRef)(!1),fn=$e.prefixCls,ln=$e.open,Ln=$e.mode,yn=$e.showSearch,Qt=$e.tokenWithEnter,Cn=$e.autoClearSearchValue,Dn=$e.onSearch,ar=$e.onSearchSubmit,An=$e.onToggleOpen,gr=$e.onInputKeyDown,Br=$e.domRef;Ie.useImperativeHandle(Tt,function(){return{focus:function(){mt.current.focus()},blur:function(){mt.current.blur()}}});var br=nt(0),Ar=(0,ke.Z)(br,2),ur=Ar[0],Er=Ar[1],Nr=function(Ur){var si=Ur.which;(si===Qe.UP||si===Qe.DOWN)&&Ur.preventDefault(),gr&&gr(Ur),si===Qe.ENTER&&Ln==="tags"&&!Yt.current&&!ln&&(ar==null||ar(Ur.target.value)),Lt(si)&&An(!0)},Kr=function(){Er(!0)},xr=(0,Ie.useRef)(null),Vr=function(Ur){Dn(Ur,!0,Yt.current)!==!1&&An(!0)},fi=function(){Yt.current=!0},Hi=function(Ur){Yt.current=!1,Ln!=="combobox"&&Vr(Ur.target.value)},Ti=function(Ur){var si=Ur.target.value;if(Qt&&xr.current&&/[\r\n]/.test(xr.current)){var Ii=xr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");si=si.replace(Ii,xr.current)}xr.current=null,Vr(si)},mi=function(Ur){var si=Ur.clipboardData,Ii=si.getData("text");xr.current=Ii},Bi=function(Ur){var si=Ur.target;if(si!==mt.current){var Ii=document.body.style.msTouchAction!==void 0;Ii?setTimeout(function(){mt.current.focus()}):mt.current.focus()}},Oi=function(Ur){var si=ur();Ur.target!==mt.current&&!si&&Ln!=="combobox"&&Ur.preventDefault(),(Ln!=="combobox"&&(!yn||!si)||!ln)&&(ln&&Cn!==!1&&Dn("",!0,!1),An())},qr={inputRef:mt,onInputKeyDown:Nr,onInputMouseDown:Kr,onInputChange:Ti,onInputPaste:mi,onInputCompositionStart:fi,onInputCompositionEnd:Hi},gi=Ln==="multiple"||Ln==="tags"?Ie.createElement(On,(0,Pe.Z)({},$e,qr)):Ie.createElement(st,(0,Pe.Z)({},$e,qr));return Ie.createElement("div",{ref:Br,className:"".concat(fn,"-selector"),onClick:Bi,onMouseDown:Oi},gi)},Ve=Ie.forwardRef(qt);Ve.displayName="Selector";var gt=Ve,Kt=le(62709),Pt=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Gt=function($e){var Tt=$e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Tt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Tt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Tt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Tt,adjustY:1},htmlRegion:"scroll"}}},Vt=function($e,Tt){var mt=$e.prefixCls,Yt=$e.disabled,fn=$e.visible,ln=$e.children,Ln=$e.popupElement,yn=$e.animation,Qt=$e.transitionName,Cn=$e.dropdownStyle,Dn=$e.dropdownClassName,ar=$e.direction,An=ar===void 0?"ltr":ar,gr=$e.placement,Br=$e.builtinPlacements,br=$e.dropdownMatchSelectWidth,Ar=$e.dropdownRender,ur=$e.dropdownAlign,Er=$e.getPopupContainer,Nr=$e.empty,Kr=$e.getTriggerDOMNode,xr=$e.onPopupVisibleChange,Vr=$e.onPopupMouseEnter,fi=(0,Se.Z)($e,Pt),Hi="".concat(mt,"-dropdown"),Ti=Ln;Ar&&(Ti=Ar(Ln));var mi=Ie.useMemo(function(){return Br||Gt(br)},[Br,br]),Bi=yn?"".concat(Hi,"-").concat(yn):Qt,Oi=typeof br=="number",qr=Ie.useMemo(function(){return Oi?null:br===!1?"minWidth":"width"},[br,Oi]),gi=Cn;Oi&&(gi=(0,Ae.Z)((0,Ae.Z)({},gi),{},{width:br}));var Pr=Ie.useRef(null);return Ie.useImperativeHandle(Tt,function(){return{getPopupElement:function(){return Pr.current}}}),Ie.createElement(Kt.Z,(0,Pe.Z)({},fi,{showAction:xr?["click"]:[],hideAction:xr?["click"]:[],popupPlacement:gr||(An==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:mi,prefixCls:Hi,popupTransitionName:Bi,popup:Ie.createElement("div",{ref:Pr,onMouseEnter:Vr},Ti),stretch:qr,popupAlign:ur,popupVisible:fn,getPopupContainer:Er,popupClassName:We()(Dn,(0,be.Z)({},"".concat(Hi,"-empty"),Nr)),popupStyle:gi,getTriggerDOMNode:Kr,onPopupVisibleChange:xr}),ln)},Pn=Ie.forwardRef(Vt);Pn.displayName="SelectTrigger";var mr=Pn,Vn=le(84506);function Un(He,$e){var Tt=He.key,mt;return"value"in He&&(mt=He.value),Tt!=null?Tt:mt!==void 0?mt:"rc-index-key-".concat($e)}function er(He,$e){var Tt=He||{},mt=Tt.label,Yt=Tt.value,fn=Tt.options,ln=Tt.groupLabel,Ln=mt||($e?"children":"label");return{label:Ln,value:Yt||"value",options:fn||"options",groupLabel:ln||Ln}}function rr(He){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Tt=$e.fieldNames,mt=$e.childrenAsData,Yt=[],fn=er(Tt,!1),ln=fn.label,Ln=fn.value,yn=fn.options,Qt=fn.groupLabel;function Cn(Dn,ar){Dn.forEach(function(An){if(ar||!(yn in An)){var gr=An[Ln];Yt.push({key:Un(An,Yt.length),groupOption:ar,data:An,label:An[ln],value:gr})}else{var Br=An[Qt];Br===void 0&&mt&&(Br=An.label),Yt.push({key:Un(An,Yt.length),group:!0,data:An,label:Br}),Cn(An[yn],!0)}})}return Cn(He,!1),Yt}function Dr(He){var $e=(0,Ae.Z)({},He);return"props"in $e||Object.defineProperty($e,"props",{get:function(){return ft(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),$e}}),$e}function dn(He,$e){if(!$e||!$e.length)return null;var Tt=!1;function mt(fn,ln){var Ln=(0,Vn.Z)(ln),yn=Ln[0],Qt=Ln.slice(1);if(!yn)return[fn];var Cn=fn.split(yn);return Tt=Tt||Cn.length>1,Cn.reduce(function(Dn,ar){return[].concat((0,et.Z)(Dn),(0,et.Z)(mt(ar,Qt)))},[]).filter(function(Dn){return Dn})}var Yt=mt(He,$e);return Tt?Yt:null}var Hn=["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"],pi=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function wi(He){return He==="tags"||He==="multiple"}var Zr=Ie.forwardRef(function(He,$e){var Tt,mt,Yt=He.id,fn=He.prefixCls,ln=He.className,Ln=He.showSearch,yn=He.tagRender,Qt=He.direction,Cn=He.omitDomProps,Dn=He.displayValues,ar=He.onDisplayValuesChange,An=He.emptyOptions,gr=He.notFoundContent,Br=gr===void 0?"Not Found":gr,br=He.onClear,Ar=He.mode,ur=He.disabled,Er=He.loading,Nr=He.getInputElement,Kr=He.getRawInputElement,xr=He.open,Vr=He.defaultOpen,fi=He.onDropdownVisibleChange,Hi=He.activeValue,Ti=He.onActiveValueChange,mi=He.activeDescendantId,Bi=He.searchValue,Oi=He.autoClearSearchValue,qr=He.onSearch,gi=He.onSearchSplit,Pr=He.tokenSeparators,Ur=He.allowClear,si=He.suffixIcon,Ii=He.clearIcon,Ra=He.OptionList,Fa=He.animation,La=He.transitionName,qi=He.dropdownStyle,Ni=He.dropdownClassName,ri=He.dropdownMatchSelectWidth,Pa=He.dropdownRender,ii=He.dropdownAlign,Rr=He.placement,yi=He.builtinPlacements,Qi=He.getPopupContainer,Mi=He.showAction,Vi=Mi===void 0?[]:Mi,jr=He.onFocus,aa=He.onBlur,pa=He.onKeyUp,ra=He.onKeyDown,ma=He.onMouseDown,Sa=(0,Se.Z)(He,Hn),Ua=wi(Ar),ia=(Ln!==void 0?Ln:Ua)||Ar==="combobox",Ca=(0,Ae.Z)({},Sa);pi.forEach(function(Ia){delete Ca[Ia]}),Cn==null||Cn.forEach(function(Ia){delete Ca[Ia]});var Qa=Ie.useState(!1),ja=(0,ke.Z)(Qa,2),so=ja[0],za=ja[1];Ie.useEffect(function(){za(pt())},[]);var ba=Ie.useRef(null),ai=Ie.useRef(null),bi=Ie.useRef(null),Ji=Ie.useRef(null),ga=Ie.useRef(null),Ka=an(),io=(0,ke.Z)(Ka,3),ho=io[0],Po=io[1],Oo=io[2];Ie.useImperativeHandle($e,function(){var Ia,oa;return{focus:(Ia=Ji.current)===null||Ia===void 0?void 0:Ia.focus,blur:(oa=Ji.current)===null||oa===void 0?void 0:oa.blur,scrollTo:function(es){var sa;return(sa=ga.current)===null||sa===void 0?void 0:sa.scrollTo(es)}}});var lo=Ie.useMemo(function(){var Ia;if(Ar!=="combobox")return Bi;var oa=(Ia=Dn[0])===null||Ia===void 0?void 0:Ia.value;return typeof oa=="string"||typeof oa=="number"?String(oa):""},[Bi,Ar,Dn]),Do=Ar==="combobox"&&typeof Nr=="function"&&Nr()||null,Ki=typeof Kr=="function"&&Kr(),hi=wn(ai,Ki==null||(Tt=Ki.props)===null||Tt===void 0?void 0:Tt.ref),Da=Ie.useState(!1),Ea=(0,ke.Z)(Da,2),uo=Ea[0],ao=Ea[1];lt(function(){ao(!0)},[]);var hs=bt(!1,{defaultValue:Vr,value:xr}),Jo=(0,ke.Z)(hs,2),ps=Jo[0],Zi=Jo[1],vr=uo?ps:!1,Qr=!Br&&An;(ur||Qr&&vr&&Ar==="combobox")&&(vr=!1);var Jr=Qr?!1:vr,li=Ie.useCallback(function(Ia){var oa=Ia!==void 0?Ia:!vr;ur||(Zi(oa),vr!==oa&&(fi==null||fi(oa)))},[ur,vr,Zi,fi]),Wa=Ie.useMemo(function(){return(Pr||[]).some(function(Ia){return[`
`,`\r
`].includes(Ia)})},[Pr]),Ga=function(oa,Wo,es){var sa=!0,Ha=oa;Ti==null||Ti(null);var Oa=es?null:dn(oa,Pr);return Ar!=="combobox"&&Oa&&(Ha="",gi==null||gi(Oa),li(!1),sa=!1),qr&&lo!==Ha&&qr(Ha,{source:Wo?"typing":"effect"}),sa},zo=function(oa){!oa||!oa.trim()||qr(oa,{source:"submit"})};Ie.useEffect(function(){!vr&&!Ua&&Ar!=="combobox"&&Ga("",!1,!1)},[vr]),Ie.useEffect(function(){ps&&ur&&Zi(!1),ur&&Po(!1)},[ur]);var Vo=nt(),ls=(0,ke.Z)(Vo,2),la=ls[0],No=ls[1],us=function(oa){var Wo=la(),es=oa.which;if(es===Qe.ENTER&&(Ar!=="combobox"&&oa.preventDefault(),vr||li(!0)),No(!!lo),es===Qe.BACKSPACE&&!Wo&&Ua&&!lo&&Dn.length){for(var sa=(0,et.Z)(Dn),Ha=null,Oa=sa.length-1;Oa>=0;Oa-=1){var po=sa[Oa];if(!po.disabled){sa.splice(Oa,1),Ha=po;break}}Ha&&ar(sa,{type:"remove",values:[Ha]})}for(var is=arguments.length,Ws=new Array(is>1?is-1:0),gs=1;gs<is;gs++)Ws[gs-1]=arguments[gs];if(vr&&ga.current){var Ql;(Ql=ga.current).onKeyDown.apply(Ql,[oa].concat(Ws))}ra==null||ra.apply(void 0,[oa].concat(Ws))},cl=function(oa){for(var Wo=arguments.length,es=new Array(Wo>1?Wo-1:0),sa=1;sa<Wo;sa++)es[sa-1]=arguments[sa];if(vr&&ga.current){var Ha;(Ha=ga.current).onKeyUp.apply(Ha,[oa].concat(es))}pa==null||pa.apply(void 0,[oa].concat(es))},Ds=function(oa){var Wo=Dn.filter(function(es){return es!==oa});ar(Wo,{type:"remove",values:[oa]})},ms=Ie.useRef(!1),Ho=function(){Po(!0),ur||(jr&&!ms.current&&jr.apply(void 0,arguments),Vi.includes("focus")&&li(!0)),ms.current=!0},Ts=function(){Po(!1,function(){ms.current=!1,li(!1)}),!ur&&(lo&&(Ar==="tags"?qr(lo,{source:"submit"}):Ar==="multiple"&&qr("",{source:"blur"})),aa&&aa.apply(void 0,arguments))},Is=[];Ie.useEffect(function(){return function(){Is.forEach(function(Ia){return clearTimeout(Ia)}),Is.splice(0,Is.length)}},[]);var qs=function(oa){var Wo,es=oa.target,sa=(Wo=bi.current)===null||Wo===void 0?void 0:Wo.getPopupElement();if(sa&&sa.contains(es)){var Ha=setTimeout(function(){var Ws=Is.indexOf(Ha);if(Ws!==-1&&Is.splice(Ws,1),Oo(),!so&&!sa.contains(document.activeElement)){var gs;(gs=Ji.current)===null||gs===void 0||gs.focus()}});Is.push(Ha)}for(var Oa=arguments.length,po=new Array(Oa>1?Oa-1:0),is=1;is<Oa;is++)po[is-1]=arguments[is];ma==null||ma.apply(void 0,[oa].concat(po))},oo=Ie.useState({}),Ta=(0,ke.Z)(oo,2),Xa=Ta[1];function go(){Xa({})}var yo;Ki&&(yo=function(oa){li(oa)}),at(function(){var Ia;return[ba.current,(Ia=bi.current)===null||Ia===void 0?void 0:Ia.getPopupElement()]},Jr,li,!!Ki);var Ko=Ie.useMemo(function(){return(0,Ae.Z)((0,Ae.Z)({},He),{},{notFoundContent:Br,open:vr,triggerOpen:Jr,id:Yt,showSearch:ia,multiple:Ua,toggleOpen:li})},[He,Br,Jr,vr,Yt,ia,Ua,li]),wo=!!si||Er,xs;wo&&(xs=Ie.createElement(Je,{className:We()("".concat(fn,"-arrow"),(0,be.Z)({},"".concat(fn,"-arrow-loading"),Er)),customizeIcon:si,customizeIconProps:{loading:Er,searchValue:lo,open:vr,focused:ho,showSearch:ia}}));var Xl=function(){var oa;br==null||br(),(oa=Ji.current)===null||oa===void 0||oa.focus(),ar([],{type:"clear",values:Dn}),Ga("",!1,!1)},Yl=_e(fn,Xl,Dn,Ur,Ii,ur,lo,Ar),vu=Yl.allowClear,Xu=Yl.clearIcon,Ks=Ie.createElement(Ra,{ref:ga}),_s=We()(fn,ln,(mt={},(0,be.Z)(mt,"".concat(fn,"-focused"),ho),(0,be.Z)(mt,"".concat(fn,"-multiple"),Ua),(0,be.Z)(mt,"".concat(fn,"-single"),!Ua),(0,be.Z)(mt,"".concat(fn,"-allow-clear"),Ur),(0,be.Z)(mt,"".concat(fn,"-show-arrow"),wo),(0,be.Z)(mt,"".concat(fn,"-disabled"),ur),(0,be.Z)(mt,"".concat(fn,"-loading"),Er),(0,be.Z)(mt,"".concat(fn,"-open"),vr),(0,be.Z)(mt,"".concat(fn,"-customize-input"),Do),(0,be.Z)(mt,"".concat(fn,"-show-search"),ia),mt)),yu=Ie.createElement(mr,{ref:bi,disabled:ur,prefixCls:fn,visible:Jr,popupElement:Ks,animation:Fa,transitionName:La,dropdownStyle:qi,dropdownClassName:Ni,direction:Qt,dropdownMatchSelectWidth:ri,dropdownRender:Pa,dropdownAlign:ii,placement:Rr,builtinPlacements:yi,getPopupContainer:Qi,empty:An,getTriggerDOMNode:function(){return ai.current},onPopupVisibleChange:yo,onPopupMouseEnter:go},Ki?Ie.cloneElement(Ki,{ref:hi}):Ie.createElement(gt,(0,Pe.Z)({},He,{domRef:ai,prefixCls:fn,inputElement:Do,ref:Ji,id:Yt,showSearch:ia,autoClearSearchValue:Oi,mode:Ar,activeDescendantId:mi,tagRender:yn,values:Dn,open:vr,onToggleOpen:li,activeValue:Hi,searchValue:lo,onSearch:Ga,onSearchSubmit:zo,onRemove:Ds,tokenWithEnter:Wa}))),ql;return Ki?ql=yu:ql=Ie.createElement("div",(0,Pe.Z)({className:_s},Ca,{ref:ba,onMouseDown:qs,onKeyDown:us,onKeyUp:cl,onFocus:Ho,onBlur:Ts}),ho&&!vr&&Ie.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Dn.map(function(Ia){var oa=Ia.label,Wo=Ia.value;return["number","string"].includes((0,pe.Z)(oa))?oa:Wo}).join(", "))),yu,xs,vu&&Xu),Ie.createElement(Ft.Provider,{value:Ko},ql)}),Or=Zr,Li=function(He,$e){var Tt=Ie.useRef({values:new Map,options:new Map}),mt=Ie.useMemo(function(){var fn=Tt.current,ln=fn.values,Ln=fn.options,yn=He.map(function(Dn){if(Dn.label===void 0){var ar;return(0,Ae.Z)((0,Ae.Z)({},Dn),{},{label:(ar=ln.get(Dn.value))===null||ar===void 0?void 0:ar.label})}return Dn}),Qt=new Map,Cn=new Map;return yn.forEach(function(Dn){Qt.set(Dn.value,Dn),Cn.set(Dn.value,$e.get(Dn.value)||Ln.get(Dn.value))}),Tt.current.values=Qt,Tt.current.options=Cn,yn},[He,$e]),Yt=Ie.useCallback(function(fn){return $e.get(fn)||Tt.current.options.get(fn)},[$e]);return[mt,Yt]};function dr(He,$e){return va(He).join("").toUpperCase().includes($e)}var ci=function(He,$e,Tt,mt,Yt){return Ie.useMemo(function(){if(!Tt||mt===!1)return He;var fn=$e.options,ln=$e.label,Ln=$e.value,yn=[],Qt=typeof mt=="function",Cn=Tt.toUpperCase(),Dn=Qt?mt:function(An,gr){return Yt?dr(gr[Yt],Cn):gr[fn]?dr(gr[ln!=="children"?ln:"label"],Cn):dr(gr[Ln],Cn)},ar=Qt?function(An){return Dr(An)}:function(An){return An};return He.forEach(function(An){if(An[fn]){var gr=Dn(Tt,ar(An));if(gr)yn.push(An);else{var Br=An[fn].filter(function(br){return Dn(Tt,ar(br))});Br.length&&yn.push((0,Ae.Z)((0,Ae.Z)({},An),{},(0,be.Z)({},fn,Br)))}return}Dn(Tt,ar(An))&&yn.push(An)}),yn},[He,mt,Yt,Tt,$e])},vn=0,Yi=Oe();function Di(){var He;return Yi?(He=vn,vn+=1):He="TEST_OR_SSR",He}function wa(He){var $e=Ie.useState(),Tt=(0,ke.Z)($e,2),mt=Tt[0],Yt=Tt[1];return Ie.useEffect(function(){Yt("rc_select_".concat(Di()))},[]),He||mt}function Xi(He){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Tt=[];return Ie.Children.forEach(He,function(mt){mt==null&&!$e.keepEmpty||(Array.isArray(mt)?Tt=Tt.concat(Xi(mt)):(0,Rt.isFragment)(mt)&&mt.props?Tt=Tt.concat(Xi(mt.props.children,$e)):Tt.push(mt))}),Tt}var _i=["children","value"],fa=["children"];function Gi(He){var $e=He,Tt=$e.key,mt=$e.props,Yt=mt.children,fn=mt.value,ln=(0,Se.Z)(mt,_i);return(0,Ae.Z)({key:Tt,value:fn!==void 0?fn:Tt,children:Yt},ln)}function Ci(He){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Xi(He).map(function(Tt,mt){if(!Ie.isValidElement(Tt)||!Tt.type)return null;var Yt=Tt,fn=Yt.type.isSelectOptGroup,ln=Yt.key,Ln=Yt.props,yn=Ln.children,Qt=(0,Se.Z)(Ln,fa);return $e||!fn?Gi(Tt):(0,Ae.Z)((0,Ae.Z)({key:"__RC_SELECT_GRP__".concat(ln===null?mt:ln,"__"),label:ln},Qt),{},{options:Ci(yn)})}).filter(function(Tt){return Tt})}function ta(He,$e,Tt,mt,Yt){return Ie.useMemo(function(){var fn=He,ln=!He;ln&&(fn=Ci($e));var Ln=new Map,yn=new Map,Qt=function(ar,An,gr){gr&&typeof gr=="string"&&ar.set(An[gr],An)};function Cn(Dn){for(var ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,An=0;An<Dn.length;An+=1){var gr=Dn[An];!gr[Tt.options]||ar?(Ln.set(gr[Tt.value],gr),Qt(yn,gr,Tt.label),Qt(yn,gr,mt),Qt(yn,gr,Yt)):Cn(gr[Tt.options],!0)}}return Cn(fn),{options:fn,valueOptions:Ln,labelOptions:yn}},[He,$e,Tt,mt,Yt])}function ka(He){var $e=Ie.useRef();$e.current=He;var Tt=Ie.useCallback(function(){return $e.current.apply($e,arguments)},[]);return Tt}var na=function(){return null};na.isSelectOptGroup=!0;var Fi=na,Aa=function(){return null};Aa.isSelectOption=!0;var Ba=Aa;function ha(He,$e){var Tt=(0,Ae.Z)({},He);return Array.isArray($e)&&$e.forEach(function(mt){delete Tt[mt]}),Tt}var oi=le(73299),vt=Ie.createContext(null),ht=vt;function Wt(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var rn=["disabled","title","children","style","className"];function Mn(He){return typeof He=="string"||typeof He=="number"}var Cr=function($e,Tt){var mt=Sn(),Yt=mt.prefixCls,fn=mt.id,ln=mt.open,Ln=mt.multiple,yn=mt.mode,Qt=mt.searchValue,Cn=mt.toggleOpen,Dn=mt.notFoundContent,ar=mt.onPopupScroll,An=Ie.useContext(ht),gr=An.flattenOptions,Br=An.onActiveValue,br=An.defaultActiveFirstOption,Ar=An.onSelect,ur=An.menuItemSelectedIcon,Er=An.rawValues,Nr=An.fieldNames,Kr=An.virtual,xr=An.direction,Vr=An.listHeight,fi=An.listItemHeight,Hi="".concat(Yt,"-item"),Ti=Dt(function(){return gr},[ln,gr],function(ii,Rr){return Rr[0]&&ii[1]!==Rr[1]}),mi=Ie.useRef(null),Bi=function(Rr){Rr.preventDefault()},Oi=function(Rr){mi.current&&mi.current.scrollTo(typeof Rr=="number"?{index:Rr}:Rr)},qr=function(Rr){for(var yi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Qi=Ti.length,Mi=0;Mi<Qi;Mi+=1){var Vi=(Rr+Mi*yi+Qi)%Qi,jr=Ti[Vi],aa=jr.group,pa=jr.data;if(!aa&&!pa.disabled)return Vi}return-1},gi=Ie.useState(function(){return qr(0)}),Pr=(0,ke.Z)(gi,2),Ur=Pr[0],si=Pr[1],Ii=function(Rr){var yi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;si(Rr);var Qi={source:yi?"keyboard":"mouse"},Mi=Ti[Rr];if(!Mi){Br(null,-1,Qi);return}Br(Mi.value,Rr,Qi)};(0,Ie.useEffect)(function(){Ii(br!==!1?qr(0):-1)},[Ti.length,Qt]);var Ra=Ie.useCallback(function(ii){return Er.has(ii)&&yn!=="combobox"},[yn,(0,et.Z)(Er).toString(),Er.size]);(0,Ie.useEffect)(function(){var ii=setTimeout(function(){if(!Ln&&ln&&Er.size===1){var yi=Array.from(Er)[0],Qi=Ti.findIndex(function(Mi){var Vi=Mi.data;return Vi.value===yi});Qi!==-1&&(Ii(Qi),Oi(Qi))}});if(ln){var Rr;(Rr=mi.current)===null||Rr===void 0||Rr.scrollTo(void 0)}return function(){return clearTimeout(ii)}},[ln,Qt,gr.length]);var Fa=function(Rr){Rr!==void 0&&Ar(Rr,{selected:!Er.has(Rr)}),Ln||Cn(!1)};if(Ie.useImperativeHandle(Tt,function(){return{onKeyDown:function(Rr){var yi=Rr.which,Qi=Rr.ctrlKey;switch(yi){case Qe.N:case Qe.P:case Qe.UP:case Qe.DOWN:{var Mi=0;if(yi===Qe.UP?Mi=-1:yi===Qe.DOWN?Mi=1:Wt()&&Qi&&(yi===Qe.N?Mi=1:yi===Qe.P&&(Mi=-1)),Mi!==0){var Vi=qr(Ur+Mi,Mi);Oi(Vi),Ii(Vi,!0)}break}case Qe.ENTER:{var jr=Ti[Ur];jr&&!jr.data.disabled?Fa(jr.value):Fa(void 0),ln&&Rr.preventDefault();break}case Qe.ESC:Cn(!1),ln&&Rr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Rr){Oi(Rr)}}}),Ti.length===0)return Ie.createElement("div",{role:"listbox",id:"".concat(fn,"_list"),className:"".concat(Hi,"-empty"),onMouseDown:Bi},Dn);var La=Object.keys(Nr).map(function(ii){return Nr[ii]}),qi=function(Rr){return Rr.label};function Ni(ii,Rr){var yi=ii.group;return{role:yi?"presentation":"option",id:"".concat(fn,"_list_").concat(Rr)}}var ri=function(Rr){var yi=Ti[Rr];if(!yi)return null;var Qi=yi.data||{},Mi=Qi.value,Vi=yi.group,jr=pn(Qi,!0),aa=qi(yi);return yi?Ie.createElement("div",(0,Pe.Z)({"aria-label":typeof aa=="string"&&!Vi?aa:null},jr,{key:Rr},Ni(yi,Rr),{"aria-selected":Ra(Mi)}),Mi):null},Pa={role:"listbox",id:"".concat(fn,"_list")};return Ie.createElement(Ie.Fragment,null,Kr&&Ie.createElement("div",(0,Pe.Z)({},Pa,{style:{height:0,width:0,overflow:"hidden"}}),ri(Ur-1),ri(Ur),ri(Ur+1)),Ie.createElement(oi.Z,{itemKey:"key",ref:mi,data:Ti,height:Vr,itemHeight:fi,fullHeight:!1,onMouseDown:Bi,onScroll:ar,virtual:Kr,direction:xr,innerProps:Kr?null:Pa},function(ii,Rr){var yi,Qi=ii.group,Mi=ii.groupOption,Vi=ii.data,jr=ii.label,aa=ii.value,pa=Vi.key;if(Qi){var ra,ma=(ra=Vi.title)!==null&&ra!==void 0?ra:Mn(jr)?jr.toString():void 0;return Ie.createElement("div",{className:We()(Hi,"".concat(Hi,"-group")),title:ma},jr!==void 0?jr:pa)}var Sa=Vi.disabled,Ua=Vi.title,ia=Vi.children,Ca=Vi.style,Qa=Vi.className,ja=(0,Se.Z)(Vi,rn),so=ha(ja,La),za=Ra(aa),ba="".concat(Hi,"-option"),ai=We()(Hi,ba,Qa,(yi={},(0,be.Z)(yi,"".concat(ba,"-grouped"),Mi),(0,be.Z)(yi,"".concat(ba,"-active"),Ur===Rr&&!Sa),(0,be.Z)(yi,"".concat(ba,"-disabled"),Sa),(0,be.Z)(yi,"".concat(ba,"-selected"),za),yi)),bi=qi(ii),Ji=!ur||typeof ur=="function"||za,ga=typeof bi=="number"?bi:bi||aa,Ka=Mn(ga)?ga.toString():void 0;return Ua!==void 0&&(Ka=Ua),Ie.createElement("div",(0,Pe.Z)({},pn(so),Kr?{}:Ni(ii,Rr),{"aria-selected":za,className:ai,title:Ka,onMouseMove:function(){Ur===Rr||Sa||Ii(Rr)},onClick:function(){Sa||Fa(aa)},style:Ca}),Ie.createElement("div",{className:"".concat(ba,"-content")},ga),Ie.isValidElement(ur)||za,Ji&&Ie.createElement(Je,{className:"".concat(Hi,"-option-state"),customizeIcon:ur,customizeIconProps:{isSelected:za}},za?"\u2713":null))}))},Sr=Ie.forwardRef(Cr);Sr.displayName="OptionList";var Tr=Sr;function Fr(He){var $e=He.mode,Tt=He.options,mt=He.children,Yt=He.backfill,fn=He.allowClear,ln=He.placeholder,Ln=He.getInputElement,yn=He.showSearch,Qt=He.onSearch,Cn=He.defaultOpen,Dn=He.autoFocus,ar=He.labelInValue,An=He.value,gr=He.inputValue,Br=He.optionLabelProp,br=isMultiple($e),Ar=yn!==void 0?yn:br||$e==="combobox",ur=Tt||convertChildrenToData(mt);if(warning($e!=="tags"||ur.every(function(xr){return!xr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),$e==="tags"||$e==="combobox"){var Er=ur.some(function(xr){return xr.options?xr.options.some(function(Vr){return typeof("value"in Vr?Vr.value:Vr.key)=="number"}):typeof("value"in xr?xr.value:xr.key)=="number"});warning(!Er,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning($e!=="combobox"||!Br,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning($e==="combobox"||!Yt,"`backfill` only works with `combobox` mode."),warning($e==="combobox"||!Ln,"`getInputElement` only work with `combobox` mode."),noteOnce($e!=="combobox"||!Ln||!fn||!ln,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Qt&&!Ar&&$e!=="combobox"&&$e!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Cn||Dn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),An!=null){var Nr=toArray(An);warning(!ar||Nr.every(function(xr){return _typeof(xr)==="object"&&("key"in xr||"value"in xr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!br||Array.isArray(An),"`value` should be array when `mode` is `multiple` or `tags`")}if(mt){var Kr=null;toNodeArray(mt).some(function(xr){if(!React.isValidElement(xr)||!xr.type)return!1;var Vr=xr,fi=Vr.type;if(fi.isSelectOption)return!1;if(fi.isSelectOptGroup){var Hi=toNodeArray(xr.props.children).every(function(Ti){return!React.isValidElement(Ti)||!xr.type||Ti.type.isSelectOption?!0:(Kr=Ti.type,!1)});return!Hi}return Kr=fi,!0}),Kr&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Kr.displayName||Kr.name||Kr,"`.")),warning(gr===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function _r(He,$e){if(He){var Tt=function mt(Yt){for(var fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ln=0;ln<Yt.length;ln++){var Ln=Yt[ln];if(Ln[$e==null?void 0:$e.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!fn&&Array.isArray(Ln[$e==null?void 0:$e.options])&&mt(Ln[$e==null?void 0:$e.options],!0))break}};Tt(He)}}var ni=null,di=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],Ei=["inputValue"];function ji(He){return!He||(0,pe.Z)(He)!=="object"}var $i=Ie.forwardRef(function(He,$e){var Tt=He.id,mt=He.mode,Yt=He.prefixCls,fn=Yt===void 0?"rc-select":Yt,ln=He.backfill,Ln=He.fieldNames,yn=He.inputValue,Qt=He.searchValue,Cn=He.onSearch,Dn=He.autoClearSearchValue,ar=Dn===void 0?!0:Dn,An=He.onSelect,gr=He.onDeselect,Br=He.dropdownMatchSelectWidth,br=Br===void 0?!0:Br,Ar=He.filterOption,ur=He.filterSort,Er=He.optionFilterProp,Nr=He.optionLabelProp,Kr=He.options,xr=He.children,Vr=He.defaultActiveFirstOption,fi=He.menuItemSelectedIcon,Hi=He.virtual,Ti=He.direction,mi=He.listHeight,Bi=mi===void 0?200:mi,Oi=He.listItemHeight,qr=Oi===void 0?20:Oi,gi=He.value,Pr=He.defaultValue,Ur=He.labelInValue,si=He.onChange,Ii=(0,Se.Z)(He,di),Ra=wa(Tt),Fa=wi(mt),La=!!(!Kr&&xr),qi=Ie.useMemo(function(){return Ar===void 0&&mt==="combobox"?!1:Ar},[Ar,mt]),Ni=Ie.useMemo(function(){return er(Ln,La)},[JSON.stringify(Ln),La]),ri=bt("",{value:Qt!==void 0?Qt:yn,postState:function(Qr){return Qr||""}}),Pa=(0,ke.Z)(ri,2),ii=Pa[0],Rr=Pa[1],yi=ta(Kr,xr,Ni,Er,Nr),Qi=yi.valueOptions,Mi=yi.labelOptions,Vi=yi.options,jr=Ie.useCallback(function(vr){var Qr=va(vr);return Qr.map(function(Jr){var li,Wa,Ga,zo,Vo;if(ji(Jr))li=Jr;else{var ls;Ga=Jr.key,Wa=Jr.label,li=(ls=Jr.value)!==null&&ls!==void 0?ls:Ga}var la=Qi.get(li);if(la){var No;if(Wa===void 0&&(Wa=la==null?void 0:la[Nr||Ni.label]),Ga===void 0&&(Ga=(No=la==null?void 0:la.key)!==null&&No!==void 0?No:li),zo=la==null?void 0:la.disabled,Vo=la==null?void 0:la.title,0)var us}return{label:Wa,value:li,key:Ga,disabled:zo,title:Vo}})},[Ni,Nr,Qi]),aa=bt(Pr,{value:gi}),pa=(0,ke.Z)(aa,2),ra=pa[0],ma=pa[1],Sa=Ie.useMemo(function(){var vr,Qr=jr(ra);return mt==="combobox"&&kt((vr=Qr[0])===null||vr===void 0?void 0:vr.value)?[]:Qr},[ra,jr,mt]),Ua=Li(Sa,Qi),ia=(0,ke.Z)(Ua,2),Ca=ia[0],Qa=ia[1],ja=Ie.useMemo(function(){if(!mt&&Ca.length===1){var vr=Ca[0];if(vr.value===null&&(vr.label===null||vr.label===void 0))return[]}return Ca.map(function(Qr){var Jr;return(0,Ae.Z)((0,Ae.Z)({},Qr),{},{label:(Jr=Qr.label)!==null&&Jr!==void 0?Jr:Qr.value})})},[mt,Ca]),so=Ie.useMemo(function(){return new Set(Ca.map(function(vr){return vr.value}))},[Ca]);Ie.useEffect(function(){if(mt==="combobox"){var vr,Qr=(vr=Ca[0])===null||vr===void 0?void 0:vr.value;Rr(ea(Qr)?String(Qr):"")}},[Ca]);var za=ka(function(vr,Qr){var Jr,li=Qr!=null?Qr:vr;return Jr={},(0,be.Z)(Jr,Ni.value,vr),(0,be.Z)(Jr,Ni.label,li),Jr}),ba=Ie.useMemo(function(){if(mt!=="tags")return Vi;var vr=(0,et.Z)(Vi),Qr=function(li){return Qi.has(li)};return(0,et.Z)(Ca).sort(function(Jr,li){return Jr.value<li.value?-1:1}).forEach(function(Jr){var li=Jr.value;Qr(li)||vr.push(za(li,Jr.label))}),vr},[za,Vi,Qi,Ca,mt]),ai=ci(ba,Ni,ii,qi,Er),bi=Ie.useMemo(function(){return mt!=="tags"||!ii||ai.some(function(vr){return vr[Er||"value"]===ii})||ai.some(function(vr){return vr[Ni.value]===ii})?ai:[za(ii)].concat((0,et.Z)(ai))},[za,Er,mt,ai,ii,Ni]),Ji=Ie.useMemo(function(){return ur?(0,et.Z)(bi).sort(function(vr,Qr){return ur(vr,Qr)}):bi},[bi,ur]),ga=Ie.useMemo(function(){return rr(Ji,{fieldNames:Ni,childrenAsData:La})},[Ji,Ni,La]),Ka=function(Qr){var Jr=jr(Qr);if(ma(Jr),si&&(Jr.length!==Ca.length||Jr.some(function(Ga,zo){var Vo;return((Vo=Ca[zo])===null||Vo===void 0?void 0:Vo.value)!==(Ga==null?void 0:Ga.value)}))){var li=Ur?Jr:Jr.map(function(Ga){return Ga.value}),Wa=Jr.map(function(Ga){return Dr(Qa(Ga.value))});si(Fa?li:li[0],Fa?Wa:Wa[0])}},io=Ie.useState(null),ho=(0,ke.Z)(io,2),Po=ho[0],Oo=ho[1],lo=Ie.useState(0),Do=(0,ke.Z)(lo,2),Ki=Do[0],hi=Do[1],Da=Vr!==void 0?Vr:mt!=="combobox",Ea=Ie.useCallback(function(vr,Qr){var Jr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},li=Jr.source,Wa=li===void 0?"keyboard":li;hi(Qr),ln&&mt==="combobox"&&vr!==null&&Wa==="keyboard"&&Oo(String(vr))},[ln,mt]),uo=function(Qr,Jr,li){var Wa=function(){var ms,Ho=Qa(Qr);return[Ur?{label:Ho==null?void 0:Ho[Ni.label],value:Qr,key:(ms=Ho==null?void 0:Ho.key)!==null&&ms!==void 0?ms:Qr}:Qr,Dr(Ho)]};if(Jr&&An){var Ga=Wa(),zo=(0,ke.Z)(Ga,2),Vo=zo[0],ls=zo[1];An(Vo,ls)}else if(!Jr&&gr&&li!=="clear"){var la=Wa(),No=(0,ke.Z)(la,2),us=No[0],cl=No[1];gr(us,cl)}},ao=ka(function(vr,Qr){var Jr,li=Fa?Qr.selected:!0;li?Jr=Fa?[].concat((0,et.Z)(Ca),[vr]):[vr]:Jr=Ca.filter(function(Wa){return Wa.value!==vr}),Ka(Jr),uo(vr,li),mt==="combobox"?Oo(""):(!wi||ar)&&(Rr(""),Oo(""))}),hs=function(Qr,Jr){Ka(Qr);var li=Jr.type,Wa=Jr.values;(li==="remove"||li==="clear")&&Wa.forEach(function(Ga){uo(Ga.value,!1,li)})},Jo=function(Qr,Jr){if(Rr(Qr),Oo(null),Jr.source==="submit"){var li=(Qr||"").trim();if(li){var Wa=Array.from(new Set([].concat((0,et.Z)(so),[li])));Ka(Wa),uo(li,!0),Rr("")}return}Jr.source!=="blur"&&(mt==="combobox"&&Ka(Qr),Cn==null||Cn(Qr))},ps=function(Qr){var Jr=Qr;mt!=="tags"&&(Jr=Qr.map(function(Wa){var Ga=Mi.get(Wa);return Ga==null?void 0:Ga.value}).filter(function(Wa){return Wa!==void 0}));var li=Array.from(new Set([].concat((0,et.Z)(so),(0,et.Z)(Jr))));Ka(li),li.forEach(function(Wa){uo(Wa,!0)})},Zi=Ie.useMemo(function(){var vr=Hi!==!1&&br!==!1;return(0,Ae.Z)((0,Ae.Z)({},yi),{},{flattenOptions:ga,onActiveValue:Ea,defaultActiveFirstOption:Da,onSelect:ao,menuItemSelectedIcon:fi,rawValues:so,fieldNames:Ni,virtual:vr,direction:Ti,listHeight:Bi,listItemHeight:qr,childrenAsData:La})},[yi,ga,Ea,Da,ao,fi,so,Ni,Hi,br,Bi,qr,La]);return Ie.createElement(ht.Provider,{value:Zi},Ie.createElement(Or,(0,Pe.Z)({},Ii,{id:Ra,prefixCls:fn,ref:$e,omitDomProps:Ei,mode:mt,displayValues:ja,onDisplayValuesChange:hs,direction:Ti,searchValue:ii,onSearch:Jo,autoClearSearchValue:ar,onSearchSplit:ps,dropdownMatchSelectWidth:br,OptionList:Tr,emptyOptions:!ga.length,activeValue:Po,activeDescendantId:"".concat(Ra,"_list_").concat(Ki)})))}),zi=$i;zi.Option=Ba,zi.OptGroup=Fi;var Le=zi,ze=Le,Fe=le(10366),Ze=le(8745),rt=le(33603),dt=le(9708),yt=le(53124),Xt=le(98866),Jt=le(88258),Fn=le(98675),ir=le(65223),_n=le(4173),sn=le(87244),nn=le(13458),gn=le(78642),xn=le(46163),tr=function(He,$e){var Tt={};for(var mt in He)Object.prototype.hasOwnProperty.call(He,mt)&&$e.indexOf(mt)<0&&(Tt[mt]=He[mt]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,mt=Object.getOwnPropertySymbols(He);Yt<mt.length;Yt++)$e.indexOf(mt[Yt])<0&&Object.prototype.propertyIsEnumerable.call(He,mt[Yt])&&(Tt[mt[Yt]]=He[mt[Yt]]);return Tt};const Kn="SECRET_COMBOBOX_MODE_DO_NOT_USE",Nn=(He,$e)=>{var Tt,{prefixCls:mt,bordered:Yt=!0,className:fn,rootClassName:ln,getPopupContainer:Ln,popupClassName:yn,dropdownClassName:Qt,listHeight:Cn=256,placement:Dn,listItemHeight:ar=24,size:An,disabled:gr,notFoundContent:Br,status:br,builtinPlacements:Ar,dropdownMatchSelectWidth:ur,popupMatchSelectWidth:Er,direction:Nr,style:Kr,allowClear:xr}=He,Vr=tr(He,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:fi,getPrefixCls:Hi,renderEmpty:Ti,direction:mi,virtual:Bi,popupMatchSelectWidth:Oi,popupOverflow:qr,select:gi}=Ie.useContext(yt.E_),Pr=Hi("select",mt),Ur=Hi(),si=Nr!=null?Nr:mi,{compactSize:Ii,compactItemClassnames:Ra}=(0,_n.ri)(Pr,si),[Fa,La]=(0,sn.Z)(Pr),qi=Ie.useMemo(()=>{const{mode:ba}=Vr;if(ba!=="combobox")return ba===Kn?"combobox":ba},[Vr.mode]),Ni=qi==="multiple"||qi==="tags",ri=(0,gn.Z)(Vr.suffixIcon,Vr.showArrow),Pa=(Tt=Er!=null?Er:ur)!==null&&Tt!==void 0?Tt:Oi,{status:ii,hasFeedback:Rr,isFormItemInput:yi,feedbackIcon:Qi}=Ie.useContext(ir.aM),Mi=(0,dt.F)(ii,br);let Vi;Br!==void 0?Vi=Br:qi==="combobox"?Vi=null:Vi=(Ti==null?void 0:Ti("Select"))||Ie.createElement(Jt.Z,{componentName:"Select"});const{suffixIcon:jr,itemIcon:aa,removeIcon:pa,clearIcon:ra}=(0,xn.Z)(Object.assign(Object.assign({},Vr),{multiple:Ni,hasFeedback:Rr,feedbackIcon:Qi,showSuffixIcon:ri,prefixCls:Pr,showArrow:Vr.showArrow,componentName:"Select"})),ma=xr===!0?{clearIcon:ra}:xr,Sa=(0,Fe.Z)(Vr,["suffixIcon","itemIcon"]),Ua=We()(yn||Qt,{[`${Pr}-dropdown-${si}`]:si==="rtl"},ln,La),ia=(0,Fn.Z)(ba=>{var ai;return(ai=An!=null?An:Ii)!==null&&ai!==void 0?ai:ba}),Ca=Ie.useContext(Xt.Z),Qa=gr!=null?gr:Ca,ja=We()({[`${Pr}-lg`]:ia==="large",[`${Pr}-sm`]:ia==="small",[`${Pr}-rtl`]:si==="rtl",[`${Pr}-borderless`]:!Yt,[`${Pr}-in-form-item`]:yi},(0,dt.Z)(Pr,Mi,Rr),Ra,gi==null?void 0:gi.className,fn,ln,La),so=Ie.useMemo(()=>Dn!==void 0?Dn:si==="rtl"?"bottomRight":"bottomLeft",[Dn,si]),za=(0,nn.Z)(Ar,qr);return Fa(Ie.createElement(ze,Object.assign({ref:$e,virtual:Bi,showSearch:gi==null?void 0:gi.showSearch},Sa,{style:Object.assign(Object.assign({},gi==null?void 0:gi.style),Kr),dropdownMatchSelectWidth:Pa,builtinPlacements:za,transitionName:(0,rt.m)(Ur,"slide-up",Vr.transitionName),listHeight:Cn,listItemHeight:ar,mode:qi,prefixCls:Pr,placement:so,direction:si,suffixIcon:jr,menuItemSelectedIcon:aa,removeIcon:pa,allowClear:ma,notFoundContent:Vi,className:ja,getPopupContainer:Ln||fi,dropdownClassName:Ua,disabled:Qa})))},$n=Ie.forwardRef(Nn),Wn=(0,Ze.Z)($n);$n.SECRET_COMBOBOX_MODE_DO_NOT_USE=Kn,$n.Option=Ba,$n.OptGroup=Fi,$n._InternalPanelDoNotUseOrYouWillBeFired=Wn;var or=$n},87244:function(hn,Zt,le){"use strict";le.d(Zt,{Z:function(){return Be}});var ge=le(14747),We=le(80110),Pe=le(45503),et=le(67968),be=le(67771),Ae=le(33297);const ke=xe=>{const{optionHeight:Ke,optionFontSize:Ue,optionLineHeight:ft,optionPadding:pt}=xe;return{position:"relative",display:"block",minHeight:Ke,padding:pt,color:xe.colorText,fontWeight:"normal",fontSize:Ue,lineHeight:ft,boxSizing:"border-box"}};var pe=xe=>{const{antCls:Ke,componentCls:Ue}=xe,ft=`${Ue}-item`,pt=`&${Ke}-slide-up-enter${Ke}-slide-up-enter-active`,Mt=`&${Ke}-slide-up-appear${Ke}-slide-up-appear-active`,Qe=`&${Ke}-slide-up-leave${Ke}-slide-up-leave-active`,Rt=`${Ue}-dropdown-placement-`;return[{[`${Ue}-dropdown`]:Object.assign(Object.assign({},(0,ge.Wf)(xe)),{position:"absolute",top:-9999,zIndex:xe.zIndexPopup,boxSizing:"border-box",padding:xe.paddingXXS,overflow:"hidden",fontSize:xe.fontSize,fontVariant:"initial",backgroundColor:xe.colorBgElevated,borderRadius:xe.borderRadiusLG,outline:"none",boxShadow:xe.boxShadowSecondary,[`
${pt}${Rt}bottomLeft,
${Mt}${Rt}bottomLeft
`]:{animationName:be.fJ},[`
${pt}${Rt}topLeft,
${Mt}${Rt}topLeft,
${pt}${Rt}topRight,
${Mt}${Rt}topRight
`]:{animationName:be.Qt},[`${Qe}${Rt}bottomLeft`]:{animationName:be.Uw},[`
${Qe}${Rt}topLeft,
${Qe}${Rt}topRight
`]:{animationName:be.ly},"&-hidden":{display:"none"},[`${ft}`]:Object.assign(Object.assign({},ke(xe)),{cursor:"pointer",transition:`background ${xe.motionDurationSlow} ease`,borderRadius:xe.borderRadiusSM,"&-group":{color:xe.colorTextDescription,fontSize:xe.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},ge.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${ft}-option-disabled)`]:{backgroundColor:xe.optionActiveBg},[`&-selected:not(${ft}-option-disabled)`]:{color:xe.optionSelectedColor,fontWeight:xe.optionSelectedFontWeight,backgroundColor:xe.optionSelectedBg,[`${ft}-option-state`]:{color:xe.colorPrimary}},"&-disabled":{[`&${ft}-option-selected`]:{backgroundColor:xe.colorBgContainerDisabled},color:xe.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:xe.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,be.oN)(xe,"slide-up"),(0,be.oN)(xe,"slide-down"),(0,Ae.Fm)(xe,"move-up"),(0,Ae.Fm)(xe,"move-down")]};const Ie=2,ot=xe=>{let{controlHeightSM:Ke,controlHeight:Ue,lineWidth:ft}=xe;const pt=(Ue-Ke)/2-ft,Mt=Math.ceil(pt/2);return[pt,Mt]};function Oe(xe,Ke){const{componentCls:Ue,iconCls:ft}=xe,pt=`${Ue}-selection-overflow`,Mt=xe.multipleSelectItemHeight,[Qe]=ot(xe),Rt=Ke?`${Ue}-${Ke}`:"";return{[`${Ue}-multiple${Rt}`]:{fontSize:xe.fontSize,[pt]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Ue}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${Qe-Ie}px ${Ie*2}px`,borderRadius:xe.borderRadius,[`${Ue}-show-search&`]:{cursor:"text"},[`${Ue}-disabled&`]:{background:xe.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Ie}px 0`,lineHeight:`${Mt}px`,visibility:"hidden",content:'"\\a0"'}},[`
&${Ue}-show-arrow ${Ue}-selector,
&${Ue}-allow-clear ${Ue}-selector
`]:{paddingInlineEnd:xe.fontSizeIcon+xe.controlPaddingHorizontal},[`${Ue}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Mt,marginTop:Ie,marginBottom:Ie,lineHeight:`${Mt-xe.lineWidth*2}px`,background:xe.multipleItemBg,border:`${xe.lineWidth}px ${xe.lineType} ${xe.multipleItemBorderColor}`,borderRadius:xe.borderRadiusSM,cursor:"default",transition:`font-size ${xe.motionDurationSlow}, line-height ${xe.motionDurationSlow}, height ${xe.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Ie*2,paddingInlineStart:xe.paddingXS,paddingInlineEnd:xe.paddingXS/2,[`${Ue}-disabled&`]:{color:xe.multipleItemColorDisabled,borderColor:xe.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:xe.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,ge.Ro)()),{display:"inline-flex",alignItems:"center",color:xe.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${ft}`]:{verticalAlign:"-0.2em"},"&:hover":{color:xe.colorIconHover}})},[`${pt}-item + ${pt}-item`]:{[`${Ue}-selection-search`]:{marginInlineStart:0}},[`${Ue}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:xe.inputPaddingHorizontalBase-Qe,"\n &-input,\n &-mirror\n ":{height:Mt,fontFamily:xe.fontFamily,lineHeight:`${Mt}px`,transition:`all ${xe.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Ue}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:xe.inputPaddingHorizontalBase,insetInlineEnd:xe.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${xe.motionDurationSlow}`}}}}var lt=xe=>{const{componentCls:Ke}=xe,Ue=(0,Pe.TS)(xe,{controlHeight:xe.controlHeightSM,multipleSelectItemHeight:xe.controlHeightXS,borderRadius:xe.borderRadiusSM,borderRadiusSM:xe.borderRadiusXS}),ft=(0,Pe.TS)(xe,{fontSize:xe.fontSizeLG,controlHeight:xe.controlHeightLG,multipleSelectItemHeight:xe.multipleItemHeightLG,borderRadius:xe.borderRadiusLG,borderRadiusSM:xe.borderRadius}),[,pt]=ot(xe);return[Oe(xe),Oe(Ue,"sm"),{[`${Ke}-multiple${Ke}-sm`]:{[`${Ke}-selection-placeholder`]:{insetInline:xe.controlPaddingHorizontalSM-xe.lineWidth},[`${Ke}-selection-search`]:{marginInlineStart:pt}}},Oe(ft,"lg")]};function tt(xe,Ke){const{componentCls:Ue,inputPaddingHorizontalBase:ft,borderRadius:pt}=xe,Mt=xe.controlHeight-xe.lineWidth*2,Qe=Math.ceil(xe.fontSize*1.25),Rt=Ke?`${Ue}-${Ke}`:"";return{[`${Ue}-single${Rt}`]:{fontSize:xe.fontSize,[`${Ue}-selector`]:Object.assign(Object.assign({},(0,ge.Wf)(xe)),{display:"flex",borderRadius:pt,[`${Ue}-selection-search`]:{position:"absolute",top:0,insetInlineStart:ft,insetInlineEnd:ft,bottom:0,"&-input":{width:"100%"}},[`
${Ue}-selection-item,
${Ue}-selection-placeholder
`]:{padding:0,lineHeight:`${Mt}px`,transition:`all ${xe.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Mt}px`}},[`${Ue}-selection-item`]:{position:"relative",userSelect:"none"},[`${Ue}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Ue}-selection-item:after`,`${Ue}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${Ue}-show-arrow ${Ue}-selection-item,
&${Ue}-show-arrow ${Ue}-selection-placeholder
`]:{paddingInlineEnd:Qe},[`&${Ue}-open ${Ue}-selection-item`]:{color:xe.colorTextPlaceholder},[`&:not(${Ue}-customize-input)`]:{[`${Ue}-selector`]:{width:"100%",height:xe.controlHeight,padding:`0 ${ft}px`,[`${Ue}-selection-search-input`]:{height:Mt},"&:after":{lineHeight:`${Mt}px`}}},[`&${Ue}-customize-input`]:{[`${Ue}-selector`]:{"&:after":{display:"none"},[`${Ue}-selection-search`]:{position:"static",width:"100%"},[`${Ue}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${ft}px`,"&:after":{display:"none"}}}}}}}function Ge(xe){const{componentCls:Ke}=xe,Ue=xe.controlPaddingHorizontalSM-xe.lineWidth;return[tt(xe),tt((0,Pe.TS)(xe,{controlHeight:xe.controlHeightSM,borderRadius:xe.borderRadiusSM}),"sm"),{[`${Ke}-single${Ke}-sm`]:{[`&:not(${Ke}-customize-input)`]:{[`${Ke}-selection-search`]:{insetInlineStart:Ue,insetInlineEnd:Ue},[`${Ke}-selector`]:{padding:`0 ${Ue}px`},[`&${Ke}-show-arrow ${Ke}-selection-search`]:{insetInlineEnd:Ue+xe.fontSize*1.5},[`
&${Ke}-show-arrow ${Ke}-selection-item,
&${Ke}-show-arrow ${Ke}-selection-placeholder
`]:{paddingInlineEnd:xe.fontSize*1.5}}}},tt((0,Pe.TS)(xe,{controlHeight:xe.singleItemHeightLG,fontSize:xe.fontSizeLG,borderRadius:xe.borderRadiusLG}),"lg")]}const Me=xe=>{const{componentCls:Ke,selectorBg:Ue}=xe;return{position:"relative",backgroundColor:Ue,border:`${xe.lineWidth}px ${xe.lineType} ${xe.colorBorder}`,transition:`all ${xe.motionDurationMid} ${xe.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ke}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Ke}-disabled&`]:{color:xe.colorTextDisabled,background:xe.colorBgContainerDisabled,cursor:"not-allowed",[`${Ke}-multiple&`]:{background:xe.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},bt=function(xe,Ke){let Ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:ft,borderHoverColor:pt,outlineColor:Mt,antCls:Qe}=Ke,Rt=Ue?{[`${ft}-selector`]:{borderColor:pt}}:{};return{[xe]:{[`&:not(${ft}-disabled):not(${ft}-customize-input):not(${Qe}-pagination-size-changer)`]:Object.assign(Object.assign({},Rt),{[`${ft}-focused& ${ft}-selector`]:{borderColor:pt,boxShadow:`0 0 0 ${Ke.controlOutlineWidth}px ${Mt}`,outline:0},[`&:hover ${ft}-selector`]:{borderColor:pt}})}}},zt=xe=>{const{componentCls:Ke}=xe;return{[`${Ke}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},Ye=xe=>{const{componentCls:Ke,inputPaddingHorizontalBase:Ue,iconCls:ft}=xe;return{[Ke]:Object.assign(Object.assign({},(0,ge.Wf)(xe)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Ke}-customize-input) ${Ke}-selector`]:Object.assign(Object.assign({},Me(xe)),zt(xe)),[`${Ke}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},ge.vS),[`${Ke}-selection-placeholder`]:Object.assign(Object.assign({},ge.vS),{flex:1,color:xe.colorTextPlaceholder,pointerEvents:"none"}),[`${Ke}-arrow`]:Object.assign(Object.assign({},(0,ge.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ue,height:xe.fontSizeIcon,marginTop:-xe.fontSizeIcon/2,color:xe.colorTextQuaternary,fontSize:xe.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[ft]:{verticalAlign:"top",transition:`transform ${xe.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Ke}-suffix)`]:{pointerEvents:"auto"}},[`${Ke}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Ke}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ue,zIndex:1,display:"inline-block",width:xe.fontSizeIcon,height:xe.fontSizeIcon,marginTop:-xe.fontSizeIcon/2,color:xe.colorTextQuaternary,fontSize:xe.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:xe.clearBg,cursor:"pointer",opacity:0,transition:`color ${xe.motionDurationMid} ease, opacity ${xe.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:xe.colorTextTertiary}},"&:hover":{[`${Ke}-clear`]:{opacity:1}}}),[`${Ke}-has-feedback`]:{[`${Ke}-clear`]:{insetInlineEnd:Ue+xe.fontSize+xe.paddingXS}}}},it=xe=>{const{componentCls:Ke}=xe;return[{[Ke]:{[`&-borderless ${Ke}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Ke}-in-form-item`]:{width:"100%"}}},Ye(xe),Ge(xe),lt(xe),pe(xe),{[`${Ke}-rtl`]:{direction:"rtl"}},bt(Ke,(0,Pe.TS)(xe,{borderHoverColor:xe.colorPrimaryHover,outlineColor:xe.controlOutline})),bt(`${Ke}-status-error`,(0,Pe.TS)(xe,{borderHoverColor:xe.colorErrorHover,outlineColor:xe.colorErrorOutline}),!0),bt(`${Ke}-status-warning`,(0,Pe.TS)(xe,{borderHoverColor:xe.colorWarningHover,outlineColor:xe.colorWarningOutline}),!0),(0,We.c)(xe,{borderElCls:`${Ke}-selector`,focusElCls:`${Ke}-focused`})]};var Be=(0,et.Z)("Select",(xe,Ke)=>{let{rootPrefixCls:Ue}=Ke;const ft=(0,Pe.TS)(xe,{rootPrefixCls:Ue,inputPaddingHorizontalBase:xe.paddingSM-1,multipleSelectItemHeight:xe.multipleItemHeight});return[it(ft)]},xe=>{const{fontSize:Ke,lineHeight:Ue,controlHeight:ft,controlPaddingHorizontal:pt,zIndexPopupBase:Mt,colorText:Qe,fontWeightStrong:Rt,controlItemBgActive:Dt,controlItemBgHover:on,colorBgContainer:Ut,colorFillSecondary:wn,controlHeightLG:Xn,controlHeightSM:nr,colorBgContainerDisabled:Je,colorTextDisabled:_e}=xe;return{zIndexPopup:Mt+50,optionSelectedColor:Qe,optionSelectedFontWeight:Rt,optionSelectedBg:Dt,optionActiveBg:on,optionPadding:`${(ft-Ke*Ue)/2}px ${pt}px`,optionFontSize:Ke,optionLineHeight:Ue,optionHeight:ft,selectorBg:Ut,clearBg:Ut,singleItemHeightLG:Xn,multipleItemBg:wn,multipleItemBorderColor:"transparent",multipleItemHeight:nr,multipleItemHeightLG:ft,multipleSelectorBgDisabled:Je,multipleItemColorDisabled:_e,multipleItemBorderColorDisabled:"transparent"}})},13458:function(hn,Zt,le){"use strict";le.d(Zt,{Z:function(){return We}});const ge=Pe=>{const be={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Pe==="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(Pe,et){return Pe||ge(et)}},78642:function(hn,Zt,le){"use strict";le.d(Zt,{Z:function(){return ge}});function ge(We,Pe){return Pe!==void 0?Pe:We!==null}},46163:function(hn,Zt,le){"use strict";le.d(Zt,{Z:function(){return Se}});var ge=le(18299),We=le(16646),Pe=le(73475),et=le(42922),be=le(3407),Ae=le(72395),ke=le(67294);function Se(pe){let{suffixIcon:Ie,clearIcon:ot,menuItemSelectedIcon:Oe,removeIcon:wt,loading:lt,multiple:tt,hasFeedback:Ge,prefixCls:Me,showSuffixIcon:bt,feedbackIcon:zt,showArrow:Ye,componentName:it}=pe;const Be=ot!=null?ot:ke.createElement(We.Z,null),xe=pt=>Ie===null&&!Ge&&!Ye?null:ke.createElement(ke.Fragment,null,bt!==!1&&pt,Ge&&zt);let Ke=null;if(Ie!==void 0)Ke=xe(Ie);else if(lt)Ke=xe(ke.createElement(be.Z,{spin:!0}));else{const pt=`${Me}-suffix`;Ke=Mt=>{let{open:Qe,showSearch:Rt}=Mt;return xe(Qe&&Rt?ke.createElement(Ae.Z,{className:pt}):ke.createElement(et.Z,{className:pt}))}}let Ue=null;Oe!==void 0?Ue=Oe:tt?Ue=ke.createElement(ge.Z,null):Ue=null;let ft=null;return wt!==void 0?ft=wt:ft=ke.createElement(Pe.Z,null),{clearIcon:Be,suffixIcon:Ke,itemIcon:Ue,removeIcon:ft}}},46303:function(hn,Zt,le){"use strict";le.d(Zt,{Z:function(){return se}});var ge=le(94184),We=le.n(ge),Pe=le(67294),et=le(53124),be=le(10366),ke=fe=>{const{prefixCls:de,className:oe,style:Te,size:je,shape:Et}=fe,At=We()({[`${de}-lg`]:je==="large",[`${de}-sm`]:je==="small"}),Ot=We()({[`${de}-circle`]:Et==="circle",[`${de}-square`]:Et==="square",[`${de}-round`]:Et==="round"}),Bt=Pe.useMemo(()=>typeof je=="number"?{width:je,height:je,lineHeight:`${je}px`}:{},[je]);return Pe.createElement("span",{className:We()(de,At,Ot,oe),style:Object.assign(Object.assign({},Bt),Te)})},Se=le(45930),pe=le(67968),Ie=le(45503);const ot=new Se.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Oe=fe=>({height:fe,lineHeight:`${fe}px`}),wt=fe=>Object.assign({width:fe},Oe(fe)),lt=fe=>({background:fe.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:ot,animationDuration:fe.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),tt=fe=>Object.assign({width:fe*5,minWidth:fe*5},Oe(fe)),Ge=fe=>{const{skeletonAvatarCls:de,gradientFromColor:oe,controlHeight:Te,controlHeightLG:je,controlHeightSM:Et}=fe;return{[`${de}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:oe},wt(Te)),[`${de}${de}-circle`]:{borderRadius:"50%"},[`${de}${de}-lg`]:Object.assign({},wt(je)),[`${de}${de}-sm`]:Object.assign({},wt(Et))}},Me=fe=>{const{controlHeight:de,borderRadiusSM:oe,skeletonInputCls:Te,controlHeightLG:je,controlHeightSM:Et,gradientFromColor:At}=fe;return{[`${Te}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:At,borderRadius:oe},tt(de)),[`${Te}-lg`]:Object.assign({},tt(je)),[`${Te}-sm`]:Object.assign({},tt(Et))}},bt=fe=>Object.assign({width:fe},Oe(fe)),zt=fe=>{const{skeletonImageCls:de,imageSizeBase:oe,gradientFromColor:Te,borderRadiusSM:je}=fe;return{[`${de}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Te,borderRadius:je},bt(oe*2)),{[`${de}-path`]:{fill:"#bfbfbf"},[`${de}-svg`]:Object.assign(Object.assign({},bt(oe)),{maxWidth:oe*4,maxHeight:oe*4}),[`${de}-svg${de}-svg-circle`]:{borderRadius:"50%"}}),[`${de}${de}-circle`]:{borderRadius:"50%"}}},Ye=(fe,de,oe)=>{const{skeletonButtonCls:Te}=fe;return{[`${oe}${Te}-circle`]:{width:de,minWidth:de,borderRadius:"50%"},[`${oe}${Te}-round`]:{borderRadius:de}}},it=fe=>Object.assign({width:fe*2,minWidth:fe*2},Oe(fe)),Be=fe=>{const{borderRadiusSM:de,skeletonButtonCls:oe,controlHeight:Te,controlHeightLG:je,controlHeightSM:Et,gradientFromColor:At}=fe;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${oe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:At,borderRadius:de,width:Te*2,minWidth:Te*2},it(Te))},Ye(fe,Te,oe)),{[`${oe}-lg`]:Object.assign({},it(je))}),Ye(fe,je,`${oe}-lg`)),{[`${oe}-sm`]:Object.assign({},it(Et))}),Ye(fe,Et,`${oe}-sm`))},xe=fe=>{const{componentCls:de,skeletonAvatarCls:oe,skeletonTitleCls:Te,skeletonParagraphCls:je,skeletonButtonCls:Et,skeletonInputCls:At,skeletonImageCls:Ot,controlHeight:Bt,controlHeightLG:Nt,controlHeightSM:zn,gradientFromColor:Gn,padding:_t,marginSM:cn,borderRadius:Jn,titleHeight:lr,blockRadius:En,paragraphLiHeight:wr,controlHeightXS:xi,paragraphMarginTop:ei}=fe;return{[`${de}`]:{display:"table",width:"100%",[`${de}-header`]:{display:"table-cell",paddingInlineEnd:_t,verticalAlign:"top",[`${oe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Gn},wt(Bt)),[`${oe}-circle`]:{borderRadius:"50%"},[`${oe}-lg`]:Object.assign({},wt(Nt)),[`${oe}-sm`]:Object.assign({},wt(zn))},[`${de}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Te}`]:{width:"100%",height:lr,background:Gn,borderRadius:En,[`+ ${je}`]:{marginBlockStart:zn}},[`${je}`]:{padding:0,"> li":{width:"100%",height:wr,listStyle:"none",background:Gn,borderRadius:En,"+ li":{marginBlockStart:xi}}},[`${je}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${de}-content`]:{[`${Te}, ${je} > li`]:{borderRadius:Jn}}},[`${de}-with-avatar ${de}-content`]:{[`${Te}`]:{marginBlockStart:cn,[`+ ${je}`]:{marginBlockStart:ei}}},[`${de}${de}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Be(fe)),Ge(fe)),Me(fe)),zt(fe)),[`${de}${de}-block`]:{width:"100%",[`${Et}`]:{width:"100%"},[`${At}`]:{width:"100%"}},[`${de}${de}-active`]:{[`
${Te},
${je} > li,
${oe},
${Et},
${At},
${Ot}
`]:Object.assign({},lt(fe))}}};var Ke=(0,pe.Z)("Skeleton",fe=>{const{componentCls:de}=fe,oe=(0,Ie.TS)(fe,{skeletonAvatarCls:`${de}-avatar`,skeletonTitleCls:`${de}-title`,skeletonParagraphCls:`${de}-paragraph`,skeletonButtonCls:`${de}-button`,skeletonInputCls:`${de}-input`,skeletonImageCls:`${de}-image`,imageSizeBase:fe.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${fe.gradientFromColor} 25%, ${fe.gradientToColor} 37%, ${fe.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[xe(oe)]},fe=>{const{colorFillContent:de,colorFill:oe}=fe,Te=de,je=oe;return{color:Te,colorGradientEnd:je,gradientFromColor:Te,gradientToColor:je,titleHeight:fe.controlHeight/2,blockRadius:fe.borderRadiusSM,paragraphMarginTop:fe.marginLG+fe.marginXXS,paragraphLiHeight:fe.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),ft=fe=>{const{prefixCls:de,className:oe,rootClassName:Te,active:je,shape:Et="circle",size:At="default"}=fe,{getPrefixCls:Ot}=Pe.useContext(et.E_),Bt=Ot("skeleton",de),[Nt,zn]=Ke(Bt),Gn=(0,be.Z)(fe,["prefixCls","className"]),_t=We()(Bt,`${Bt}-element`,{[`${Bt}-active`]:je},oe,Te,zn);return Nt(Pe.createElement("div",{className:_t},Pe.createElement(ke,Object.assign({prefixCls:`${Bt}-avatar`,shape:Et,size:At},Gn))))},Mt=fe=>{const{prefixCls:de,className:oe,rootClassName:Te,active:je,block:Et=!1,size:At="default"}=fe,{getPrefixCls:Ot}=Pe.useContext(et.E_),Bt=Ot("skeleton",de),[Nt,zn]=Ke(Bt),Gn=(0,be.Z)(fe,["prefixCls"]),_t=We()(Bt,`${Bt}-element`,{[`${Bt}-active`]:je,[`${Bt}-block`]:Et},oe,Te,zn);return Nt(Pe.createElement("div",{className:_t},Pe.createElement(ke,Object.assign({prefixCls:`${Bt}-button`,size:At},Gn))))};const Qe="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 Dt=fe=>{const{prefixCls:de,className:oe,rootClassName:Te,style:je,active:Et}=fe,{getPrefixCls:At}=Pe.useContext(et.E_),Ot=At("skeleton",de),[Bt,Nt]=Ke(Ot),zn=We()(Ot,`${Ot}-element`,{[`${Ot}-active`]:Et},oe,Te,Nt);return Bt(Pe.createElement("div",{className:zn},Pe.createElement("div",{className:We()(`${Ot}-image`,oe),style:je},Pe.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Ot}-image-svg`},Pe.createElement("path",{d:Qe,className:`${Ot}-image-path`})))))},Ut=fe=>{const{prefixCls:de,className:oe,rootClassName:Te,active:je,block:Et,size:At="default"}=fe,{getPrefixCls:Ot}=Pe.useContext(et.E_),Bt=Ot("skeleton",de),[Nt,zn]=Ke(Bt),Gn=(0,be.Z)(fe,["prefixCls"]),_t=We()(Bt,`${Bt}-element`,{[`${Bt}-active`]:je,[`${Bt}-block`]:Et},oe,Te,zn);return Nt(Pe.createElement("div",{className:_t},Pe.createElement(ke,Object.assign({prefixCls:`${Bt}-input`,size:At},Gn))))},wn=le(87462),Xn={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"},nr=Xn,Je=le(74643),_e=function(de,oe){return Pe.createElement(Je.Z,(0,wn.Z)({},de,{ref:oe,icon:nr}))},Ft=Pe.forwardRef(_e),an=fe=>{const{prefixCls:de,className:oe,rootClassName:Te,style:je,active:Et,children:At}=fe,{getPrefixCls:Ot}=Pe.useContext(et.E_),Bt=Ot("skeleton",de),[Nt,zn]=Ke(Bt),Gn=We()(Bt,`${Bt}-element`,{[`${Bt}-active`]:Et},zn,oe,Te),_t=At!=null?At:Pe.createElement(Ft,null);return Nt(Pe.createElement("div",{className:Gn},Pe.createElement("div",{className:We()(`${Bt}-image`,oe),style:je},_t)))},nt=le(74902),$t=fe=>{const de=Ot=>{const{width:Bt,rows:Nt=2}=fe;if(Array.isArray(Bt))return Bt[Ot];if(Nt-1===Ot)return Bt},{prefixCls:oe,className:Te,style:je,rows:Et}=fe,At=(0,nt.Z)(Array(Et)).map((Ot,Bt)=>Pe.createElement("li",{key:Bt,style:{width:de(Bt)}}));return Pe.createElement("ul",{className:We()(oe,Te),style:je},At)},Ht=fe=>{let{prefixCls:de,className:oe,width:Te,style:je}=fe;return Pe.createElement("h3",{className:We()(de,oe),style:Object.assign({width:Te},je)})};function It(fe){return fe&&typeof fe=="object"?fe:{}}function Ct(fe,de){return fe&&!de?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function tn(fe,de){return!fe&&de?{width:"38%"}:fe&&de?{width:"50%"}:{}}function pn(fe,de){const oe={};return(!fe||!de)&&(oe.width="61%"),!fe&&de?oe.rows=3:oe.rows=2,oe}const Ee=fe=>{const{prefixCls:de,loading:oe,className:Te,rootClassName:je,style:Et,children:At,avatar:Ot=!1,title:Bt=!0,paragraph:Nt=!0,active:zn,round:Gn}=fe,{getPrefixCls:_t,direction:cn,skeleton:Jn}=Pe.useContext(et.E_),lr=_t("skeleton",de),[En,wr]=Ke(lr);if(oe||!("loading"in fe)){const xi=!!Ot,ei=!!Bt,Yr=!!Nt;let Gr;if(xi){const ki=Object.assign(Object.assign({prefixCls:`${lr}-avatar`},Ct(ei,Yr)),It(Ot));Gr=Pe.createElement("div",{className:`${lr}-header`},Pe.createElement(ke,Object.assign({},ki)))}let Ai;if(ei||Yr){let ki;if(ei){const jn=Object.assign(Object.assign({prefixCls:`${lr}-title`},tn(xi,Yr)),It(Bt));ki=Pe.createElement(Ht,Object.assign({},jn))}let Ri;if(Yr){const jn=Object.assign(Object.assign({prefixCls:`${lr}-paragraph`},pn(xi,ei)),It(Nt));Ri=Pe.createElement($t,Object.assign({},jn))}Ai=Pe.createElement("div",{className:`${lr}-content`},ki,Ri)}const ti=We()(lr,{[`${lr}-with-avatar`]:xi,[`${lr}-active`]:zn,[`${lr}-rtl`]:cn==="rtl",[`${lr}-round`]:Gn},Jn==null?void 0:Jn.className,Te,je,wr);return En(Pe.createElement("div",{className:ti,style:Object.assign(Object.assign({},Jn==null?void 0:Jn.style),Et)},Gr,Ai))}return typeof At!="undefined"?At:null};Ee.Button=Mt,Ee.Avatar=ft,Ee.Input=Ut,Ee.Image=Dt,Ee.Node=an;var ce=Ee,se=ce},33507:function(hn,Zt){"use strict";const le=ge=>({[ge.componentCls]:{[`${ge.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${ge.motionDurationMid} ${ge.motionEaseInOut},
opacity ${ge.motionDurationMid} ${ge.motionEaseInOut} !important`}},[`${ge.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${ge.motionDurationMid} ${ge.motionEaseInOut},
opacity ${ge.motionDurationMid} ${ge.motionEaseInOut} !important`}}});Zt.Z=le},33297:function(hn,Zt,le){"use strict";le.d(Zt,{Fm:function(){return Oe}});var ge=le(45930),We=le(93590);const Pe=new ge.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),et=new ge.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 ge.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ae=new ge.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),ke=new ge.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Se=new ge.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),pe=new ge.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ie=new ge.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),ot={"move-up":{inKeyframes:pe,outKeyframes:Ie},"move-down":{inKeyframes:Pe,outKeyframes:et},"move-left":{inKeyframes:be,outKeyframes:Ae},"move-right":{inKeyframes:ke,outKeyframes:Se}},Oe=(wt,lt)=>{const{antCls:tt}=wt,Ge=`${tt}-${lt}`,{inKeyframes:Me,outKeyframes:bt}=ot[lt];return[(0,We.R)(Ge,Me,bt,wt.motionDurationMid),{[`
${Ge}-enter,
${Ge}-appear
`]:{opacity:0,animationTimingFunction:wt.motionEaseOutCirc},[`${Ge}-leave`]:{animationTimingFunction:wt.motionEaseInOutCirc}}]}},67771:function(hn,Zt,le){"use strict";le.d(Zt,{Qt:function(){return be},Uw:function(){return et},fJ:function(){return Pe},ly:function(){return Ae},oN:function(){return Oe}});var ge=le(45930),We=le(93590);const Pe=new ge.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),et=new ge.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),be=new ge.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Ae=new ge.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),ke=new ge.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Se=new ge.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),pe=new ge.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Ie=new ge.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),ot={"slide-up":{inKeyframes:Pe,outKeyframes:et},"slide-down":{inKeyframes:be,outKeyframes:Ae},"slide-left":{inKeyframes:ke,outKeyframes:Se},"slide-right":{inKeyframes:pe,outKeyframes:Ie}},Oe=(wt,lt)=>{const{antCls:tt}=wt,Ge=`${tt}-${lt}`,{inKeyframes:Me,outKeyframes:bt}=ot[lt];return[(0,We.R)(Ge,Me,bt,wt.motionDurationMid),{[`
${Ge}-enter,
${Ge}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:wt.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${Ge}-leave`]:{animationTimingFunction:wt.motionEaseInQuint}}]}},47897:function(hn,Zt,le){"use strict";le.d(Zt,{Z:function(){return fe}});var ge=le(3407),We=le(94184),Pe=le.n(We);function et(){return et=Object.assign?Object.assign.bind():function(de){for(var oe=1;oe<arguments.length;oe++){var Te=arguments[oe];for(var je in Te)Object.prototype.hasOwnProperty.call(Te,je)&&(de[je]=Te[je])}return de},et.apply(this,arguments)}function be(de){"@babel/helpers - typeof";return be=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(oe){return typeof oe}:function(oe){return oe&&typeof Symbol=="function"&&oe.constructor===Symbol&&oe!==Symbol.prototype?"symbol":typeof oe},be(de)}function Ae(de,oe){if(be(de)!=="object"||de===null)return de;var Te=de[Symbol.toPrimitive];if(Te!==void 0){var je=Te.call(de,oe||"default");if(be(je)!=="object")return je;throw new TypeError("@@toPrimitive must return a primitive value.")}return(oe==="string"?String:Number)(de)}function ke(de){var oe=Ae(de,"string");return be(oe)==="symbol"?oe:String(oe)}function Se(de,oe,Te){return oe=ke(oe),oe in de?Object.defineProperty(de,oe,{value:Te,enumerable:!0,configurable:!0,writable:!0}):de[oe]=Te,de}function pe(de){if(Array.isArray(de))return de}function Ie(de,oe){var Te=de==null?null:typeof Symbol!="undefined"&&de[Symbol.iterator]||de["@@iterator"];if(Te!=null){var je,Et,At,Ot,Bt=[],Nt=!0,zn=!1;try{if(At=(Te=Te.call(de)).next,oe===0){if(Object(Te)!==Te)return;Nt=!1}else for(;!(Nt=(je=At.call(Te)).done)&&(Bt.push(je.value),Bt.length!==oe);Nt=!0);}catch(Gn){zn=!0,Et=Gn}finally{try{if(!Nt&&Te.return!=null&&(Ot=Te.return(),Object(Ot)!==Ot))return}finally{if(zn)throw Et}}return Bt}}function ot(de,oe){(oe==null||oe>de.length)&&(oe=de.length);for(var Te=0,je=new Array(oe);Te<oe;Te++)je[Te]=de[Te];return je}function Oe(de,oe){if(de){if(typeof de=="string")return ot(de,oe);var Te=Object.prototype.toString.call(de).slice(8,-1);if(Te==="Object"&&de.constructor&&(Te=de.constructor.name),Te==="Map"||Te==="Set")return Array.from(de);if(Te==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Te))return ot(de,oe)}}function wt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lt(de,oe){return pe(de)||Ie(de,oe)||Oe(de,oe)||wt()}function tt(de,oe){if(de==null)return{};var Te={},je=Object.keys(de),Et,At;for(At=0;At<je.length;At++)Et=je[At],!(oe.indexOf(Et)>=0)&&(Te[Et]=de[Et]);return Te}function Ge(de,oe){if(de==null)return{};var Te=tt(de,oe),je,Et;if(Object.getOwnPropertySymbols){var At=Object.getOwnPropertySymbols(de);for(Et=0;Et<At.length;Et++)je=At[Et],!(oe.indexOf(je)>=0)&&Object.prototype.propertyIsEnumerable.call(de,je)&&(Te[je]=de[je])}return Te}var Me=le(67294);function bt(de){if(Array.isArray(de))return de}function zt(de,oe){var Te=de==null?null:typeof Symbol!="undefined"&&de[Symbol.iterator]||de["@@iterator"];if(Te!=null){var je,Et,At,Ot,Bt=[],Nt=!0,zn=!1;try{if(At=(Te=Te.call(de)).next,oe===0){if(Object(Te)!==Te)return;Nt=!1}else for(;!(Nt=(je=At.call(Te)).done)&&(Bt.push(je.value),Bt.length!==oe);Nt=!0);}catch(Gn){zn=!0,Et=Gn}finally{try{if(!Nt&&Te.return!=null&&(Ot=Te.return(),Object(Ot)!==Ot))return}finally{if(zn)throw Et}}return Bt}}function Ye(de,oe){(oe==null||oe>de.length)&&(oe=de.length);for(var Te=0,je=new Array(oe);Te<oe;Te++)je[Te]=de[Te];return je}function it(de,oe){if(de){if(typeof de=="string")return Ye(de,oe);var Te=Object.prototype.toString.call(de).slice(8,-1);if(Te==="Object"&&de.constructor&&(Te=de.constructor.name),Te==="Map"||Te==="Set")return Array.from(de);if(Te==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Te))return Ye(de,oe)}}function Be(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xe(de,oe){return bt(de)||zt(de,oe)||it(de,oe)||Be()}function Ke(de){var oe=Me.useRef();oe.current=de;var Te=Me.useCallback(function(){for(var je,Et=arguments.length,At=new Array(Et),Ot=0;Ot<Et;Ot++)At[Ot]=arguments[Ot];return(je=oe.current)===null||je===void 0?void 0:je.call.apply(je,[oe].concat(At))},[]);return Te}function Ue(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ft=Ue()?Me.useLayoutEffect:Me.useEffect,pt=function(oe,Te){var je=Me.useRef(!0);ft(function(){return oe(je.current)},Te),ft(function(){return je.current=!1,function(){je.current=!0}},[])},Mt=function(oe,Te){pt(function(je){if(!je)return oe()},Te)},Qe=null;function Rt(de){var oe=Me.useRef(!1),Te=Me.useState(de),je=xe(Te,2),Et=je[0],At=je[1];Me.useEffect(function(){return oe.current=!1,function(){oe.current=!0}},[]);function Ot(Bt,Nt){Nt&&oe.current||At(Bt)}return[Et,Ot]}function Dt(de){return de!==void 0}function on(de,oe){var Te=oe||{},je=Te.defaultValue,Et=Te.value,At=Te.onChange,Ot=Te.postState,Bt=Rt(function(){return Dt(Et)?Et:Dt(je)?typeof je=="function"?je():je:typeof de=="function"?de():de}),Nt=xe(Bt,2),zn=Nt[0],Gn=Nt[1],_t=Et!==void 0?Et:zn,cn=Ot?Ot(_t):_t,Jn=Ke(At),lr=Rt([_t]),En=xe(lr,2),wr=En[0],xi=En[1];Mt(function(){var Yr=wr[0];zn!==Yr&&Jn(zn,Yr)},[wr]),Mt(function(){Dt(Et)||Gn(Et)},[Et]);var ei=Ke(function(Yr,Gr){Gn(Yr,Gr),xi([_t],Gr)});return[cn,ei]}var Ut={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(oe){var Te=oe.keyCode;if(oe.altKey&&!oe.ctrlKey||oe.metaKey||Te>=Ut.F1&&Te<=Ut.F12)return!1;switch(Te){case Ut.ALT:case Ut.CAPS_LOCK:case Ut.CONTEXT_MENU:case Ut.CTRL:case Ut.DOWN:case Ut.END:case Ut.ESC:case Ut.HOME:case Ut.INSERT:case Ut.LEFT:case Ut.MAC_FF_META:case Ut.META:case Ut.NUMLOCK:case Ut.NUM_CENTER:case Ut.PAGE_DOWN:case Ut.PAGE_UP:case Ut.PAUSE:case Ut.PRINT_SCREEN:case Ut.RIGHT:case Ut.SHIFT:case Ut.UP:case Ut.WIN_KEY:case Ut.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(oe){if(oe>=Ut.ZERO&&oe<=Ut.NINE||oe>=Ut.NUM_ZERO&&oe<=Ut.NUM_MULTIPLY||oe>=Ut.A&&oe<=Ut.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&oe===0)return!0;switch(oe){case Ut.SPACE:case Ut.QUESTION_MARK:case Ut.NUM_PLUS:case Ut.NUM_MINUS:case Ut.NUM_PERIOD:case Ut.NUM_DIVISION:case Ut.SEMICOLON:case Ut.DASH:case Ut.EQUALS:case Ut.COMMA:case Ut.PERIOD:case Ut.SLASH:case Ut.APOSTROPHE:case Ut.SINGLE_QUOTE:case Ut.OPEN_SQUARE_BRACKET:case Ut.BACKSLASH:case Ut.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},wn=Ut,Xn=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],nr=Me.forwardRef(function(de,oe){var Te,je=de.prefixCls,Et=je===void 0?"rc-switch":je,At=de.className,Ot=de.checked,Bt=de.defaultChecked,Nt=de.disabled,zn=de.loadingIcon,Gn=de.checkedChildren,_t=de.unCheckedChildren,cn=de.onClick,Jn=de.onChange,lr=de.onKeyDown,En=Ge(de,Xn),wr=on(!1,{value:Ot,defaultValue:Bt}),xi=lt(wr,2),ei=xi[0],Yr=xi[1];function Gr(Ri,jn){var Pi=ei;return Nt||(Pi=Ri,Yr(Pi),Jn==null||Jn(Pi,jn)),Pi}function Ai(Ri){Ri.which===wn.LEFT?Gr(!1,Ri):Ri.which===wn.RIGHT&&Gr(!0,Ri),lr==null||lr(Ri)}function ti(Ri){var jn=Gr(!ei,Ri);cn==null||cn(jn,Ri)}var ki=Pe()(Et,At,(Te={},Se(Te,"".concat(Et,"-checked"),ei),Se(Te,"".concat(Et,"-disabled"),Nt),Te));return Me.createElement("button",et({},En,{type:"button",role:"switch","aria-checked":ei,disabled:Nt,className:ki,ref:oe,onKeyDown:Ai,onClick:ti}),zn,Me.createElement("span",{className:"".concat(Et,"-inner")},Me.createElement("span",{className:"".concat(Et,"-inner-checked")},Gn),Me.createElement("span",{className:"".concat(Et,"-inner-unchecked")},_t)))});nr.displayName="Switch";var Je=nr,_e=le(45353),Ft=le(53124),Sn=le(98866),an=le(98675),nt=le(84780),at=le(14747),$t=le(67968),kn=le(45503);const Ht=de=>{const{componentCls:oe,trackHeightSM:Te,trackPadding:je,trackMinWidthSM:Et,innerMinMarginSM:At,innerMaxMarginSM:Ot,handleSizeSM:Bt}=de,Nt=`${oe}-inner`;return{[oe]:{[`&${oe}-small`]:{minWidth:Et,height:Te,lineHeight:`${Te}px`,[`${oe}-inner`]:{paddingInlineStart:Ot,paddingInlineEnd:At,[`${Nt}-checked`]:{marginInlineStart:`calc(-100% + ${Bt+je*2}px - ${Ot*2}px)`,marginInlineEnd:`calc(100% - ${Bt+je*2}px + ${Ot*2}px)`},[`${Nt}-unchecked`]:{marginTop:-Te,marginInlineStart:0,marginInlineEnd:0}},[`${oe}-handle`]:{width:Bt,height:Bt},[`${oe}-loading-icon`]:{top:(Bt-de.switchLoadingIconSize)/2,fontSize:de.switchLoadingIconSize},[`&${oe}-checked`]:{[`${oe}-inner`]:{paddingInlineStart:At,paddingInlineEnd:Ot,[`${Nt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Nt}-unchecked`]:{marginInlineStart:`calc(100% - ${Bt+je*2}px + ${Ot*2}px)`,marginInlineEnd:`calc(-100% + ${Bt+je*2}px - ${Ot*2}px)`}},[`${oe}-handle`]:{insetInlineStart:`calc(100% - ${Bt+je}px)`}},[`&:not(${oe}-disabled):active`]:{[`&:not(${oe}-checked) ${Nt}`]:{[`${Nt}-unchecked`]:{marginInlineStart:de.marginXXS/2,marginInlineEnd:-de.marginXXS/2}},[`&${oe}-checked ${Nt}`]:{[`${Nt}-checked`]:{marginInlineStart:-de.marginXXS/2,marginInlineEnd:de.marginXXS/2}}}}}}},It=de=>{const{componentCls:oe,handleSize:Te}=de;return{[oe]:{[`${oe}-loading-icon${de.iconCls}`]:{position:"relative",top:(Te-de.fontSize)/2,color:de.switchLoadingIconColor,verticalAlign:"top"},[`&${oe}-checked ${oe}-loading-icon`]:{color:de.switchColor}}}},Ct=de=>{const{componentCls:oe,motion:Te,trackPadding:je,handleBg:Et,handleShadow:At,handleSize:Ot}=de,Bt=`${oe}-handle`;return{[oe]:{[Bt]:{position:"absolute",top:je,insetInlineStart:je,width:Ot,height:Ot,transition:`all ${de.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Et,borderRadius:Ot/2,boxShadow:At,transition:`all ${de.switchDuration} ease-in-out`,content:'""'}},[`&${oe}-checked ${Bt}`]:{insetInlineStart:`calc(100% - ${Ot+je}px)`},[`&:not(${oe}-disabled):active`]:Te?{[`${Bt}::before`]:{insetInlineEnd:de.switchHandleActiveInset,insetInlineStart:0},[`&${oe}-checked ${Bt}::before`]:{insetInlineEnd:0,insetInlineStart:de.switchHandleActiveInset}}:{}}}},tn=de=>{const{componentCls:oe,trackHeight:Te,trackPadding:je,innerMinMargin:Et,innerMaxMargin:At,handleSize:Ot}=de,Bt=`${oe}-inner`;return{[oe]:{[Bt]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:At,paddingInlineEnd:Et,transition:`padding-inline-start ${de.switchDuration} ease-in-out, padding-inline-end ${de.switchDuration} ease-in-out`,[`${Bt}-checked, ${Bt}-unchecked`]:{display:"block",color:de.colorTextLightSolid,fontSize:de.fontSizeSM,transition:`margin-inline-start ${de.switchDuration} ease-in-out, margin-inline-end ${de.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Bt}-checked`]:{marginInlineStart:`calc(-100% + ${Ot+je*2}px - ${At*2}px)`,marginInlineEnd:`calc(100% - ${Ot+je*2}px + ${At*2}px)`},[`${Bt}-unchecked`]:{marginTop:-Te,marginInlineStart:0,marginInlineEnd:0}},[`&${oe}-checked ${Bt}`]:{paddingInlineStart:Et,paddingInlineEnd:At,[`${Bt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Bt}-unchecked`]:{marginInlineStart:`calc(100% - ${Ot+je*2}px + ${At*2}px)`,marginInlineEnd:`calc(-100% + ${Ot+je*2}px - ${At*2}px)`}},[`&:not(${oe}-disabled):active`]:{[`&:not(${oe}-checked) ${Bt}`]:{[`${Bt}-unchecked`]:{marginInlineStart:je*2,marginInlineEnd:-je*2}},[`&${oe}-checked ${Bt}`]:{[`${Bt}-checked`]:{marginInlineStart:-je*2,marginInlineEnd:je*2}}}}}},pn=de=>{const{componentCls:oe,trackHeight:Te,trackMinWidth:je}=de;return{[oe]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,at.Wf)(de)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:je,height:Te,lineHeight:`${Te}px`,verticalAlign:"middle",background:de.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${de.motionDurationMid}`,userSelect:"none",[`&:hover:not(${oe}-disabled)`]:{background:de.colorTextTertiary}}),(0,at.Qy)(de)),{[`&${oe}-checked`]:{background:de.switchColor,[`&:hover:not(${oe}-disabled)`]:{background:de.colorPrimaryHover}},[`&${oe}-loading, &${oe}-disabled`]:{cursor:"not-allowed",opacity:de.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${oe}-rtl`]:{direction:"rtl"}})}};var Ee=(0,$t.Z)("Switch",de=>{const oe=(0,kn.TS)(de,{switchDuration:de.motionDurationMid,switchColor:de.colorPrimary,switchDisabledOpacity:de.opacityLoading,switchLoadingIconSize:de.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${de.opacityLoading})`,switchHandleActiveInset:"-30%"});return[pn(oe),tn(oe),Ct(oe),It(oe),Ht(oe)]},de=>{const{fontSize:oe,lineHeight:Te,controlHeight:je,colorWhite:Et}=de,At=oe*Te,Ot=je/2,Bt=2,Nt=At-Bt*2,zn=Ot-Bt*2;return{trackHeight:At,trackHeightSM:Ot,trackMinWidth:Nt*2+Bt*4,trackMinWidthSM:zn*2+Bt*2,trackPadding:Bt,handleBg:Et,handleSize:Nt,handleSizeSM:zn,handleShadow:`0 2px 4px 0 ${new nt.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:Nt/2,innerMaxMargin:Nt+Bt+Bt*2,innerMinMarginSM:zn/2,innerMaxMarginSM:zn+Bt+Bt*2}}),ce=function(de,oe){var Te={};for(var je in de)Object.prototype.hasOwnProperty.call(de,je)&&oe.indexOf(je)<0&&(Te[je]=de[je]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,je=Object.getOwnPropertySymbols(de);Et<je.length;Et++)oe.indexOf(je[Et])<0&&Object.prototype.propertyIsEnumerable.call(de,je[Et])&&(Te[je[Et]]=de[je[Et]]);return Te};const se=Me.forwardRef((de,oe)=>{const{prefixCls:Te,size:je,disabled:Et,loading:At,className:Ot,rootClassName:Bt,style:Nt}=de,zn=ce(de,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Gn,direction:_t,switch:cn}=Me.useContext(Ft.E_),Jn=Me.useContext(Sn.Z),lr=(Et!=null?Et:Jn)||At,En=Gn("switch",Te),wr=Me.createElement("div",{className:`${En}-handle`},At&&Me.createElement(ge.Z,{className:`${En}-loading-icon`})),[xi,ei]=Ee(En),Yr=(0,an.Z)(je),Gr=Pe()(cn==null?void 0:cn.className,{[`${En}-small`]:Yr==="small",[`${En}-loading`]:At,[`${En}-rtl`]:_t==="rtl"},Ot,Bt,ei),Ai=Object.assign(Object.assign({},cn==null?void 0:cn.style),Nt);return xi(Me.createElement(_e.Z,{component:"Switch"},Me.createElement(Je,Object.assign({},zn,{prefixCls:En,className:Gr,style:Ai,disabled:lr,ref:oe,loadingIcon:wr}))))});se.__ANT_SWITCH=!0;var fe=se},66368:function(hn,Zt,le){"use strict";le.d(Zt,{default:function(){return zi}});var ge=le(73475),We=le(25877),Pe=le(38308),et=le(94184),be=le.n(et),Ae=le(87462),ke=le(4942),Se=le(1413),pe=le(97685),Ie=le(71002),ot=le(45987),Oe=le(67294),wt=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Le=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(Le)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(Le==null?void 0:Le.substr(0,4))};function lt(Le){var ze=Oe.useRef();ze.current=Le;var Fe=Oe.useCallback(function(){for(var Ze,rt=arguments.length,dt=new Array(rt),yt=0;yt<rt;yt++)dt[yt]=arguments[yt];return(Ze=ze.current)===null||Ze===void 0?void 0:Ze.call.apply(Ze,[ze].concat(dt))},[]);return Fe}function tt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ge=tt()?Oe.useLayoutEffect:Oe.useEffect,Me=function(ze,Fe){var Ze=Oe.useRef(!0);Ge(function(){return ze(Ze.current)},Fe),Ge(function(){return Ze.current=!1,function(){Ze.current=!0}},[])},bt=function(ze,Fe){Me(function(Ze){if(!Ze)return ze()},Fe)},zt=null;function Ye(Le){var ze=Oe.useRef(!1),Fe=Oe.useState(Le),Ze=(0,pe.Z)(Fe,2),rt=Ze[0],dt=Ze[1];Oe.useEffect(function(){return ze.current=!1,function(){ze.current=!0}},[]);function yt(Xt,Jt){Jt&&ze.current||dt(Xt)}return[rt,yt]}function it(Le){return Le!==void 0}function Be(Le,ze){var Fe=ze||{},Ze=Fe.defaultValue,rt=Fe.value,dt=Fe.onChange,yt=Fe.postState,Xt=Ye(function(){return it(rt)?rt:it(Ze)?typeof Ze=="function"?Ze():Ze:typeof Le=="function"?Le():Le}),Jt=(0,pe.Z)(Xt,2),Fn=Jt[0],ir=Jt[1],_n=rt!==void 0?rt:Fn,sn=yt?yt(_n):_n,nn=lt(dt),gn=Ye([_n]),xn=(0,pe.Z)(gn,2),tr=xn[0],Kn=xn[1];bt(function(){var $n=tr[0];Fn!==$n&&nn(Fn,$n)},[tr]),bt(function(){it(rt)||ir(rt)},[rt]);var Nn=lt(function($n,Wn){ir($n,Wn),Kn([_n],Wn)});return[sn,Nn]}var xe=le(62874),Ke=(0,Oe.createContext)(null),Ue=Oe.forwardRef(function(Le,ze){var Fe=Le.prefixCls,Ze=Le.className,rt=Le.style,dt=Le.id,yt=Le.active,Xt=Le.tabKey,Jt=Le.children;return Oe.createElement("div",{id:dt&&"".concat(dt,"-panel-").concat(Xt),role:"tabpanel",tabIndex:yt?0:-1,"aria-labelledby":dt&&"".concat(dt,"-tab-").concat(Xt),"aria-hidden":!yt,style:rt,className:be()(Fe,yt&&"".concat(Fe,"-active"),Ze),ref:ze},Jt)}),ft=Ue,pt=["key","forceRender","style","className"];function Mt(Le){var ze=Le.id,Fe=Le.activeKey,Ze=Le.animated,rt=Le.tabPosition,dt=Le.destroyInactiveTabPane,yt=Oe.useContext(Ke),Xt=yt.prefixCls,Jt=yt.tabs,Fn=Ze.tabPane,ir="".concat(Xt,"-tabpane");return Oe.createElement("div",{className:be()("".concat(Xt,"-content-holder"))},Oe.createElement("div",{className:be()("".concat(Xt,"-content"),"".concat(Xt,"-content-").concat(rt),(0,ke.Z)({},"".concat(Xt,"-content-animated"),Fn))},Jt.map(function(_n){var sn=_n.key,nn=_n.forceRender,gn=_n.style,xn=_n.className,tr=(0,ot.Z)(_n,pt),Kn=sn===Fe;return Oe.createElement(xe.Z,(0,Ae.Z)({key:sn,visible:Kn,forceRender:nn,removeOnLeave:!!dt,leavedClassName:"".concat(ir,"-hidden")},Ze.tabPaneMotion),function(Nn,$n){var Wn=Nn.style,or=Nn.className;return Oe.createElement(ft,(0,Ae.Z)({},tr,{prefixCls:ir,id:ze,tabKey:sn,animated:Fn,active:Kn,style:(0,Se.Z)((0,Se.Z)({},gn),Wn),className:be()(xn,or),ref:$n}))})})))}var Qe=le(74902),Rt=le(48555),Dt=le(59864);function on(Le,ze,Fe){var Ze=Oe.useRef({});return(!("value"in Ze.current)||Fe(Ze.current.condition,ze))&&(Ze.current.value=Le(),Ze.current.condition=ze),Ze.current.value}function Ut(Le,ze){typeof Le=="function"?Le(ze):(0,Ie.Z)(Le)==="object"&&Le&&"current"in Le&&(Le.current=ze)}function wn(){for(var Le=arguments.length,ze=new Array(Le),Fe=0;Fe<Le;Fe++)ze[Fe]=arguments[Fe];var Ze=ze.filter(function(rt){return rt});return Ze.length<=1?Ze[0]:function(rt){ze.forEach(function(dt){Ut(dt,rt)})}}function Xn(){for(var Le=arguments.length,ze=new Array(Le),Fe=0;Fe<Le;Fe++)ze[Fe]=arguments[Fe];return on(function(){return wn.apply(void 0,ze)},ze,function(Ze,rt){return Ze.length===rt.length&&Ze.every(function(dt,yt){return dt===rt[yt]})})}function nr(Le){var ze,Fe,Ze=isMemo(Le)?Le.type.type:Le.type;return!(typeof Ze=="function"&&!((ze=Ze.prototype)!==null&&ze!==void 0&&ze.render)||typeof Le=="function"&&!((Fe=Le.prototype)!==null&&Fe!==void 0&&Fe.render))}var Je={width:0,height:0,left:0,top:0};function _e(Le,ze,Fe){return(0,Oe.useMemo)(function(){for(var Ze,rt=new Map,dt=ze.get((Ze=Le[0])===null||Ze===void 0?void 0:Ze.key)||Je,yt=dt.left+dt.width,Xt=0;Xt<Le.length;Xt+=1){var Jt=Le[Xt].key,Fn=ze.get(Jt);if(!Fn){var ir;Fn=ze.get((ir=Le[Xt-1])===null||ir===void 0?void 0:ir.key)||Je}var _n=rt.get(Jt)||(0,Se.Z)({},Fn);_n.right=yt-_n.left-_n.width,rt.set(Jt,_n)}return rt},[Le.map(function(Ze){return Ze.key}).join("_"),ze,Fe])}function Ft(Le,ze){var Fe=Oe.useRef(Le),Ze=Oe.useState({}),rt=(0,pe.Z)(Ze,2),dt=rt[1];function yt(Xt){var Jt=typeof Xt=="function"?Xt(Fe.current):Xt;Jt!==Fe.current&&ze(Jt,Fe.current),Fe.current=Jt,dt({})}return[Fe.current,yt]}var Sn=.1,an=.01,nt=20,at=Math.pow(.995,nt);function $t(Le,ze){var Fe=(0,Oe.useState)(),Ze=(0,pe.Z)(Fe,2),rt=Ze[0],dt=Ze[1],yt=(0,Oe.useState)(0),Xt=(0,pe.Z)(yt,2),Jt=Xt[0],Fn=Xt[1],ir=(0,Oe.useState)(0),_n=(0,pe.Z)(ir,2),sn=_n[0],nn=_n[1],gn=(0,Oe.useState)(),xn=(0,pe.Z)(gn,2),tr=xn[0],Kn=xn[1],Nn=(0,Oe.useRef)();function $n(mt){var Yt=mt.touches[0],fn=Yt.screenX,ln=Yt.screenY;dt({x:fn,y:ln}),window.clearInterval(Nn.current)}function Wn(mt){if(rt){mt.preventDefault();var Yt=mt.touches[0],fn=Yt.screenX,ln=Yt.screenY;dt({x:fn,y:ln});var Ln=fn-rt.x,yn=ln-rt.y;ze(Ln,yn);var Qt=Date.now();Fn(Qt),nn(Qt-Jt),Kn({x:Ln,y:yn})}}function or(){if(rt&&(dt(null),Kn(null),tr)){var mt=tr.x/sn,Yt=tr.y/sn,fn=Math.abs(mt),ln=Math.abs(Yt);if(Math.max(fn,ln)<Sn)return;var Ln=mt,yn=Yt;Nn.current=window.setInterval(function(){if(Math.abs(Ln)<an&&Math.abs(yn)<an){window.clearInterval(Nn.current);return}Ln*=at,yn*=at,ze(Ln*nt,yn*nt)},nt)}}var He=(0,Oe.useRef)();function $e(mt){var Yt=mt.deltaX,fn=mt.deltaY,ln=0,Ln=Math.abs(Yt),yn=Math.abs(fn);Ln===yn?ln=He.current==="x"?Yt:fn:Ln>yn?(ln=Yt,He.current="x"):(ln=fn,He.current="y"),ze(-ln,-ln)&&mt.preventDefault()}var Tt=(0,Oe.useRef)(null);Tt.current={onTouchStart:$n,onTouchMove:Wn,onTouchEnd:or,onWheel:$e},Oe.useEffect(function(){function mt(Ln){Tt.current.onTouchStart(Ln)}function Yt(Ln){Tt.current.onTouchMove(Ln)}function fn(Ln){Tt.current.onTouchEnd(Ln)}function ln(Ln){Tt.current.onWheel(Ln)}return document.addEventListener("touchmove",Yt,{passive:!1}),document.addEventListener("touchend",fn,{passive:!1}),Le.current.addEventListener("touchstart",mt,{passive:!1}),Le.current.addEventListener("wheel",ln),function(){document.removeEventListener("touchmove",Yt),document.removeEventListener("touchend",fn)}},[])}function kn(Le){var ze=(0,Oe.useState)(0),Fe=(0,pe.Z)(ze,2),Ze=Fe[0],rt=Fe[1],dt=(0,Oe.useRef)(0),yt=(0,Oe.useRef)();return yt.current=Le,bt(function(){var Xt;(Xt=yt.current)===null||Xt===void 0||Xt.call(yt)},[Ze]),function(){dt.current===Ze&&(dt.current+=1,rt(dt.current))}}function Ht(Le){var ze=(0,Oe.useRef)([]),Fe=(0,Oe.useState)({}),Ze=(0,pe.Z)(Fe,2),rt=Ze[1],dt=(0,Oe.useRef)(typeof Le=="function"?Le():Le),yt=kn(function(){var Jt=dt.current;ze.current.forEach(function(Fn){Jt=Fn(Jt)}),ze.current=[],dt.current=Jt,rt({})});function Xt(Jt){ze.current.push(Jt),yt()}return[dt.current,Xt]}var It={width:0,height:0,left:0,top:0,right:0};function Ct(Le,ze,Fe,Ze,rt,dt,yt){var Xt=yt.tabs,Jt=yt.tabPosition,Fn=yt.rtl,ir,_n,sn;return["top","bottom"].includes(Jt)?(ir="width",_n=Fn?"right":"left",sn=Math.abs(Fe)):(ir="height",_n="top",sn=-Fe),(0,Oe.useMemo)(function(){if(!Xt.length)return[0,0];for(var nn=Xt.length,gn=nn,xn=0;xn<nn;xn+=1){var tr=Le.get(Xt[xn].key)||It;if(tr[_n]+tr[ir]>sn+ze){gn=xn-1;break}}for(var Kn=0,Nn=nn-1;Nn>=0;Nn-=1){var $n=Le.get(Xt[Nn].key)||It;if($n[_n]<sn){Kn=Nn+1;break}}return Kn>=gn?[0,0]:[Kn,gn]},[Le,ze,Ze,rt,dt,sn,Jt,Xt.map(function(nn){return nn.key}).join("_"),Fn])}function tn(Le){var ze;return Le instanceof Map?(ze={},Le.forEach(function(Fe,Ze){ze[Ze]=Fe})):ze=Le,JSON.stringify(ze)}var pn="TABS_DQ";function Ee(Le){return String(Le).replace(/"/g,pn)}function ce(Le,ze,Fe,Ze){return!(!Fe||Ze||Le===!1||Le===void 0&&(ze===!1||ze===null))}function se(Le,ze){var Fe=Le.prefixCls,Ze=Le.editable,rt=Le.locale,dt=Le.style;return!Ze||Ze.showAdd===!1?null:Oe.createElement("button",{ref:ze,type:"button",className:"".concat(Fe,"-nav-add"),style:dt,"aria-label":(rt==null?void 0:rt.addAriaLabel)||"Add tab",onClick:function(Xt){Ze.onEdit("add",{event:Xt})}},Ze.addIcon||"+")}var fe=Oe.forwardRef(se),de=Oe.forwardRef(function(Le,ze){var Fe=Le.position,Ze=Le.prefixCls,rt=Le.extra;if(!rt)return null;var dt,yt={};return(0,Ie.Z)(rt)==="object"&&!Oe.isValidElement(rt)?yt=rt:yt.right=rt,Fe==="right"&&(dt=yt.right),Fe==="left"&&(dt=yt.left),dt?Oe.createElement("div",{className:"".concat(Ze,"-extra-content"),ref:ze},dt):null}),oe=de,Te=le(62709);function je(Le,ze,Fe){var Ze=React.useRef({});return(!("value"in Ze.current)||Fe(Ze.current.condition,ze))&&(Ze.current.value=Le(),Ze.current.condition=ze),Ze.current.value}function Et(Le,ze){typeof Le=="function"?Le(ze):(0,Ie.Z)(Le)==="object"&&Le&&"current"in Le&&(Le.current=ze)}function At(){for(var Le=arguments.length,ze=new Array(Le),Fe=0;Fe<Le;Fe++)ze[Fe]=arguments[Fe];var Ze=ze.filter(function(rt){return rt});return Ze.length<=1?Ze[0]:function(rt){ze.forEach(function(dt){Et(dt,rt)})}}function Ot(){for(var Le=arguments.length,ze=new Array(Le),Fe=0;Fe<Le;Fe++)ze[Fe]=arguments[Fe];return useMemo(function(){return At.apply(void 0,ze)},ze,function(Ze,rt){return Ze.length===rt.length&&Ze.every(function(dt,yt){return dt===rt[yt]})})}function Bt(Le){var ze,Fe,Ze=(0,Dt.isMemo)(Le)?Le.type.type:Le.type;return!(typeof Ze=="function"&&!((ze=Ze.prototype)!==null&&ze!==void 0&&ze.render)||typeof Le=="function"&&!((Fe=Le.prototype)!==null&&Fe!==void 0&&Fe.render))}var Nt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(ze){var Fe=ze.keyCode;if(ze.altKey&&!ze.ctrlKey||ze.metaKey||Fe>=Nt.F1&&Fe<=Nt.F12)return!1;switch(Fe){case Nt.ALT:case Nt.CAPS_LOCK:case Nt.CONTEXT_MENU:case Nt.CTRL:case Nt.DOWN:case Nt.END:case Nt.ESC:case Nt.HOME:case Nt.INSERT:case Nt.LEFT:case Nt.MAC_FF_META:case Nt.META:case Nt.NUMLOCK:case Nt.NUM_CENTER:case Nt.PAGE_DOWN:case Nt.PAGE_UP:case Nt.PAUSE:case Nt.PRINT_SCREEN:case Nt.RIGHT:case Nt.SHIFT:case Nt.UP:case Nt.WIN_KEY:case Nt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ze){if(ze>=Nt.ZERO&&ze<=Nt.NINE||ze>=Nt.NUM_ZERO&&ze<=Nt.NUM_MULTIPLY||ze>=Nt.A&&ze<=Nt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ze===0)return!0;switch(ze){case Nt.SPACE:case Nt.QUESTION_MARK:case Nt.NUM_PLUS:case Nt.NUM_MINUS:case Nt.NUM_PERIOD:case Nt.NUM_DIVISION:case Nt.SEMICOLON:case Nt.DASH:case Nt.EQUALS:case Nt.COMMA:case Nt.PERIOD:case Nt.SLASH:case Nt.APOSTROPHE:case Nt.SINGLE_QUOTE:case Nt.OPEN_SQUARE_BRACKET:case Nt.BACKSLASH:case Nt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},zn=Nt,Gn=function(ze){return+setTimeout(ze,16)},_t=function(ze){return clearTimeout(ze)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Gn=function(ze){return window.requestAnimationFrame(ze)},_t=function(ze){return window.cancelAnimationFrame(ze)});var cn=0,Jn=new Map;function lr(Le){Jn.delete(Le)}var En=function(ze){var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;cn+=1;var Ze=cn;function rt(dt){if(dt===0)lr(Ze),ze();else{var yt=Gn(function(){rt(dt-1)});Jn.set(Ze,yt)}}return rt(Fe),Ze};En.cancel=function(Le){var ze=Jn.get(Le);return lr(ze),_t(ze)};var wr=En,xi=zn.ESC,ei=zn.TAB;function Yr(Le){var ze=Le.visible,Fe=Le.triggerRef,Ze=Le.onVisibleChange,rt=Le.autoFocus,dt=Le.overlayRef,yt=Oe.useRef(!1),Xt=function(){if(ze){var _n,sn;(_n=Fe.current)===null||_n===void 0||(sn=_n.focus)===null||sn===void 0||sn.call(_n),Ze==null||Ze(!1)}},Jt=function(){var _n;return(_n=dt.current)!==null&&_n!==void 0&&_n.focus?(dt.current.focus(),yt.current=!0,!0):!1},Fn=function(_n){switch(_n.keyCode){case xi:Xt();break;case ei:{var sn=!1;yt.current||(sn=Jt()),sn?_n.preventDefault():Xt();break}}};Oe.useEffect(function(){return ze?(window.addEventListener("keydown",Fn),rt&&wr(Jt,3),function(){window.removeEventListener("keydown",Fn),yt.current=!1}):function(){yt.current=!1}},[ze])}var Gr=(0,Oe.forwardRef)(function(Le,ze){var Fe=Le.overlay,Ze=Le.arrow,rt=Le.prefixCls,dt=(0,Oe.useMemo)(function(){var Xt;return typeof Fe=="function"?Xt=Fe():Xt=Fe,Xt},[Fe]),yt=At(ze,dt==null?void 0:dt.ref);return Oe.createElement(Oe.Fragment,null,Ze&&Oe.createElement("div",{className:"".concat(rt,"-arrow")}),Oe.cloneElement(dt,{ref:Bt(dt)?yt:void 0}))}),Ai=Gr,ti={adjustX:1,adjustY:1},ki=[0,0],Ri={topLeft:{points:["bl","tl"],overflow:ti,offset:[0,-4],targetOffset:ki},top:{points:["bc","tc"],overflow:ti,offset:[0,-4],targetOffset:ki},topRight:{points:["br","tr"],overflow:ti,offset:[0,-4],targetOffset:ki},bottomLeft:{points:["tl","bl"],overflow:ti,offset:[0,4],targetOffset:ki},bottom:{points:["tc","bc"],overflow:ti,offset:[0,4],targetOffset:ki},bottomRight:{points:["tr","br"],overflow:ti,offset:[0,4],targetOffset:ki}},jn=Ri,Pi=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function va(Le,ze){var Fe,Ze=Le.arrow,rt=Ze===void 0?!1:Ze,dt=Le.prefixCls,yt=dt===void 0?"rc-dropdown":dt,Xt=Le.transitionName,Jt=Le.animation,Fn=Le.align,ir=Le.placement,_n=ir===void 0?"bottomLeft":ir,sn=Le.placements,nn=sn===void 0?jn:sn,gn=Le.getPopupContainer,xn=Le.showAction,tr=Le.hideAction,Kn=Le.overlayClassName,Nn=Le.overlayStyle,$n=Le.visible,Wn=Le.trigger,or=Wn===void 0?["hover"]:Wn,He=Le.autoFocus,$e=Le.overlay,Tt=Le.children,mt=Le.onVisibleChange,Yt=(0,ot.Z)(Le,Pi),fn=Oe.useState(),ln=(0,pe.Z)(fn,2),Ln=ln[0],yn=ln[1],Qt="visible"in Le?$n:Ln,Cn=Oe.useRef(null),Dn=Oe.useRef(null),ar=Oe.useRef(null);Oe.useImperativeHandle(ze,function(){return Cn.current});var An=function(xr){yn(xr),mt==null||mt(xr)};Yr({visible:Qt,triggerRef:ar,onVisibleChange:An,autoFocus:He,overlayRef:Dn});var gr=function(xr){var Vr=Le.onOverlayClick;yn(!1),Vr&&Vr(xr)},Br=function(){return Oe.createElement(Ai,{ref:Dn,overlay:$e,prefixCls:yt,arrow:rt})},br=function(){return typeof $e=="function"?Br:Br()},Ar=function(){var xr=Le.minOverlayWidthMatchTrigger,Vr=Le.alignPoint;return"minOverlayWidthMatchTrigger"in Le?xr:!Vr},ur=function(){var xr=Le.openClassName;return xr!==void 0?xr:"".concat(yt,"-open")},Er=Oe.cloneElement(Tt,{className:be()((Fe=Tt.props)===null||Fe===void 0?void 0:Fe.className,Qt&&ur()),ref:Bt(Tt)?At(ar,Tt.ref):void 0}),Nr=tr;return!Nr&&or.indexOf("contextMenu")!==-1&&(Nr=["click"]),Oe.createElement(Te.Z,(0,Ae.Z)({builtinPlacements:nn},Yt,{prefixCls:yt,ref:Cn,popupClassName:be()(Kn,(0,ke.Z)({},"".concat(yt,"-show-arrow"),rt)),popupStyle:Nn,action:or,showAction:xn,hideAction:Nr,popupPlacement:_n,popupAlign:Fn,popupTransitionName:Xt,popupAnimation:Jt,popupVisible:Qt,stretch:Ar()?"minWidth":"",popup:br(),onPopupVisibleChange:An,onPopupClick:gr,getPopupContainer:gn}),Er)}var da=Oe.forwardRef(va),ya=da,ea=le(78595),kt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(ze){var Fe=ze.keyCode;if(ze.altKey&&!ze.ctrlKey||ze.metaKey||Fe>=kt.F1&&Fe<=kt.F12)return!1;switch(Fe){case kt.ALT:case kt.CAPS_LOCK:case kt.CONTEXT_MENU:case kt.CTRL:case kt.DOWN:case kt.END:case kt.ESC:case kt.HOME:case kt.INSERT:case kt.LEFT:case kt.MAC_FF_META:case kt.META:case kt.NUMLOCK:case kt.NUM_CENTER:case kt.PAGE_DOWN:case kt.PAGE_UP:case kt.PAUSE:case kt.PRINT_SCREEN:case kt.RIGHT:case kt.SHIFT:case kt.UP:case kt.WIN_KEY:case kt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ze){if(ze>=kt.ZERO&&ze<=kt.NINE||ze>=kt.NUM_ZERO&&ze<=kt.NUM_MULTIPLY||ze>=kt.A&&ze<=kt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ze===0)return!0;switch(ze){case kt.SPACE:case kt.QUESTION_MARK:case kt.NUM_PLUS:case kt.NUM_MINUS:case kt.NUM_PERIOD:case kt.NUM_DIVISION:case kt.SEMICOLON:case kt.DASH:case kt.EQUALS:case kt.COMMA:case kt.PERIOD:case kt.SLASH:case kt.APOSTROPHE:case kt.SINGLE_QUOTE:case kt.OPEN_SQUARE_BRACKET:case kt.BACKSLASH:case kt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},bn=kt;function Tn(Le,ze){var Fe=Le.prefixCls,Ze=Le.id,rt=Le.tabs,dt=Le.locale,yt=Le.mobile,Xt=Le.moreIcon,Jt=Xt===void 0?"More":Xt,Fn=Le.moreTransitionName,ir=Le.style,_n=Le.className,sn=Le.editable,nn=Le.tabBarGutter,gn=Le.rtl,xn=Le.removeAriaLabel,tr=Le.onTabClick,Kn=Le.getPopupContainer,Nn=Le.popupClassName,$n=(0,Oe.useState)(!1),Wn=(0,pe.Z)($n,2),or=Wn[0],He=Wn[1],$e=(0,Oe.useState)(null),Tt=(0,pe.Z)($e,2),mt=Tt[0],Yt=Tt[1],fn="".concat(Ze,"-more-popup"),ln="".concat(Fe,"-dropdown"),Ln=mt!==null?"".concat(fn,"-").concat(mt):null,yn=dt==null?void 0:dt.dropdownAriaLabel;function Qt(br,Ar){br.preventDefault(),br.stopPropagation(),sn.onEdit("remove",{key:Ar,event:br})}var Cn=Oe.createElement(ea.ZP,{onClick:function(Ar){var ur=Ar.key,Er=Ar.domEvent;tr(ur,Er),He(!1)},prefixCls:"".concat(ln,"-menu"),id:fn,tabIndex:-1,role:"listbox","aria-activedescendant":Ln,selectedKeys:[mt],"aria-label":yn!==void 0?yn:"expanded dropdown"},rt.map(function(br){var Ar=br.closable,ur=br.disabled,Er=br.closeIcon,Nr=br.key,Kr=br.label,xr=ce(Ar,Er,sn,ur);return Oe.createElement(ea.sN,{key:Nr,id:"".concat(fn,"-").concat(Nr),role:"option","aria-controls":Ze&&"".concat(Ze,"-panel-").concat(Nr),disabled:ur},Oe.createElement("span",null,Kr),xr&&Oe.createElement("button",{type:"button","aria-label":xn||"remove",tabIndex:0,className:"".concat(ln,"-menu-item-remove"),onClick:function(fi){fi.stopPropagation(),Qt(fi,Nr)}},Er||sn.removeIcon||"\xD7"))}));function Dn(br){for(var Ar=rt.filter(function(xr){return!xr.disabled}),ur=Ar.findIndex(function(xr){return xr.key===mt})||0,Er=Ar.length,Nr=0;Nr<Er;Nr+=1){ur=(ur+br+Er)%Er;var Kr=Ar[ur];if(!Kr.disabled){Yt(Kr.key);return}}}function ar(br){var Ar=br.which;if(!or){[bn.DOWN,bn.SPACE,bn.ENTER].includes(Ar)&&(He(!0),br.preventDefault());return}switch(Ar){case bn.UP:Dn(-1),br.preventDefault();break;case bn.DOWN:Dn(1),br.preventDefault();break;case bn.ESC:He(!1);break;case bn.SPACE:case bn.ENTER:mt!==null&&tr(mt,br);break}}(0,Oe.useEffect)(function(){var br=document.getElementById(Ln);br&&br.scrollIntoView&&br.scrollIntoView(!1)},[mt]),(0,Oe.useEffect)(function(){or||Yt(null)},[or]);var An=(0,ke.Z)({},gn?"marginRight":"marginLeft",nn);rt.length||(An.visibility="hidden",An.order=1);var gr=be()((0,ke.Z)({},"".concat(ln,"-rtl"),gn)),Br=yt?null:Oe.createElement(ya,{prefixCls:ln,overlay:Cn,trigger:["hover"],visible:rt.length?or:!1,transitionName:Fn,onVisibleChange:He,overlayClassName:be()(gr,Nn),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:Kn},Oe.createElement("button",{type:"button",className:"".concat(Fe,"-nav-more"),style:An,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":fn,id:"".concat(Ze,"-more"),"aria-expanded":or,onKeyDown:ar},Jt));return Oe.createElement("div",{className:be()("".concat(Fe,"-nav-operations"),_n),style:ir,ref:ze},Br,Oe.createElement(fe,{prefixCls:Fe,locale:dt,editable:sn}))}var In=Oe.memo(Oe.forwardRef(Tn),function(Le,ze){return ze.tabMoving});function kr(Le){var ze,Fe=Le.prefixCls,Ze=Le.id,rt=Le.active,dt=Le.tab,yt=dt.key,Xt=dt.label,Jt=dt.disabled,Fn=dt.closeIcon,ir=Le.closable,_n=Le.renderWrapper,sn=Le.removeAriaLabel,nn=Le.editable,gn=Le.onClick,xn=Le.onFocus,tr=Le.style,Kn="".concat(Fe,"-tab"),Nn=ce(ir,Fn,nn,Jt);function $n(He){Jt||gn(He)}function Wn(He){He.preventDefault(),He.stopPropagation(),nn.onEdit("remove",{key:yt,event:He})}var or=Oe.createElement("div",{key:yt,"data-node-key":Ee(yt),className:be()(Kn,(ze={},(0,ke.Z)(ze,"".concat(Kn,"-with-remove"),Nn),(0,ke.Z)(ze,"".concat(Kn,"-active"),rt),(0,ke.Z)(ze,"".concat(Kn,"-disabled"),Jt),ze)),style:tr,onClick:$n},Oe.createElement("div",{role:"tab","aria-selected":rt,id:Ze&&"".concat(Ze,"-tab-").concat(yt),className:"".concat(Kn,"-btn"),"aria-controls":Ze&&"".concat(Ze,"-panel-").concat(yt),"aria-disabled":Jt,tabIndex:Jt?null:0,onClick:function($e){$e.stopPropagation(),$n($e)},onKeyDown:function($e){[bn.SPACE,bn.ENTER].includes($e.which)&&($e.preventDefault(),$n($e))},onFocus:xn},Xt),Nn&&Oe.createElement("button",{type:"button","aria-label":sn||"remove",tabIndex:0,className:"".concat(Kn,"-remove"),onClick:function($e){$e.stopPropagation(),Wn($e)}},Fn||nn.removeIcon||"\xD7"));return _n?_n(or):or}var qn=kr,hr=function(ze){return+setTimeout(ze,16)},On=function(ze){return clearTimeout(ze)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(hr=function(ze){return window.requestAnimationFrame(ze)},On=function(ze){return window.cancelAnimationFrame(ze)});var qe=0,st=new Map;function Lt(Le){st.delete(Le)}var qt=function(ze){var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;qe+=1;var Ze=qe;function rt(dt){if(dt===0)Lt(Ze),ze();else{var yt=hr(function(){rt(dt-1)});st.set(Ze,yt)}}return rt(Fe),Ze};qt.cancel=function(Le){var ze=st.get(Le);return Lt(ze),On(ze)};var Ve=qt,gt=function(ze){var Fe=ze.activeTabOffset,Ze=ze.horizontal,rt=ze.rtl,dt=ze.indicatorSize,yt=(0,Oe.useState)(),Xt=(0,pe.Z)(yt,2),Jt=Xt[0],Fn=Xt[1],ir=(0,Oe.useRef)(),_n=function(gn){return typeof dt=="function"?dt(gn):typeof dt=="number"?dt:gn};function sn(){Ve.cancel(ir.current)}return(0,Oe.useEffect)(function(){var nn={};return Fe&&(Ze?(rt?(nn.right=Fe.right+Fe.width/2,nn.transform="translateX(50%)"):(nn.left=Fe.left+Fe.width/2,nn.transform="translateX(-50%)"),nn.width=_n(Fe.width)):(nn.top=Fe.top+Fe.height/2,nn.transform="translateY(-50%)",nn.height=_n(Fe.height))),sn(),ir.current=Ve(function(){Fn(nn)}),sn},[Fe,Ze,rt,dt]),{style:Jt}},Kt=gt,Pt=function(ze){var Fe=ze.current||{},Ze=Fe.offsetWidth,rt=Ze===void 0?0:Ze,dt=Fe.offsetHeight,yt=dt===void 0?0:dt;return[rt,yt]},Gt=function(ze,Fe){return ze[Fe?0:1]};function Vt(Le,ze){var Fe,Ze=Oe.useContext(Ke),rt=Ze.prefixCls,dt=Ze.tabs,yt=Le.className,Xt=Le.style,Jt=Le.id,Fn=Le.animated,ir=Le.activeKey,_n=Le.rtl,sn=Le.extra,nn=Le.editable,gn=Le.locale,xn=Le.tabPosition,tr=Le.tabBarGutter,Kn=Le.children,Nn=Le.onTabClick,$n=Le.onTabScroll,Wn=Le.indicatorSize,or=(0,Oe.useRef)(),He=(0,Oe.useRef)(),$e=(0,Oe.useRef)(),Tt=(0,Oe.useRef)(),mt=(0,Oe.useRef)(),Yt=(0,Oe.useRef)(),fn=(0,Oe.useRef)(),ln=xn==="top"||xn==="bottom",Ln=Ft(0,function(Ki,hi){ln&&$n&&$n({direction:Ki>hi?"left":"right"})}),yn=(0,pe.Z)(Ln,2),Qt=yn[0],Cn=yn[1],Dn=Ft(0,function(Ki,hi){!ln&&$n&&$n({direction:Ki>hi?"top":"bottom"})}),ar=(0,pe.Z)(Dn,2),An=ar[0],gr=ar[1],Br=(0,Oe.useState)([0,0]),br=(0,pe.Z)(Br,2),Ar=br[0],ur=br[1],Er=(0,Oe.useState)([0,0]),Nr=(0,pe.Z)(Er,2),Kr=Nr[0],xr=Nr[1],Vr=(0,Oe.useState)([0,0]),fi=(0,pe.Z)(Vr,2),Hi=fi[0],Ti=fi[1],mi=(0,Oe.useState)([0,0]),Bi=(0,pe.Z)(mi,2),Oi=Bi[0],qr=Bi[1],gi=Ht(new Map),Pr=(0,pe.Z)(gi,2),Ur=Pr[0],si=Pr[1],Ii=_e(dt,Ur,Kr[0]),Ra=Gt(Ar,ln),Fa=Gt(Kr,ln),La=Gt(Hi,ln),qi=Gt(Oi,ln),Ni=Ra<Fa+La,ri=Ni?Ra-qi:Ra-La,Pa="".concat(rt,"-nav-operations-hidden"),ii=0,Rr=0;ln&&_n?(ii=0,Rr=Math.max(0,Fa-ri)):(ii=Math.min(0,ri-Fa),Rr=0);function yi(Ki){return Ki<ii?ii:Ki>Rr?Rr:Ki}var Qi=(0,Oe.useRef)(),Mi=(0,Oe.useState)(),Vi=(0,pe.Z)(Mi,2),jr=Vi[0],aa=Vi[1];function pa(){aa(Date.now())}function ra(){window.clearTimeout(Qi.current)}$t(Tt,function(Ki,hi){function Da(Ea,uo){Ea(function(ao){var hs=yi(ao+uo);return hs})}return Ni?(ln?Da(Cn,Ki):Da(gr,hi),ra(),pa(),!0):!1}),(0,Oe.useEffect)(function(){return ra(),jr&&(Qi.current=window.setTimeout(function(){aa(0)},100)),ra},[jr]);var ma=Ct(Ii,ri,ln?Qt:An,Fa,La,qi,(0,Se.Z)((0,Se.Z)({},Le),{},{tabs:dt})),Sa=(0,pe.Z)(ma,2),Ua=Sa[0],ia=Sa[1],Ca=lt(function(){var Ki=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ir,hi=Ii.get(Ki)||{width:0,height:0,left:0,right:0,top:0};if(ln){var Da=Qt;_n?hi.right<Qt?Da=hi.right:hi.right+hi.width>Qt+ri&&(Da=hi.right+hi.width-ri):hi.left<-Qt?Da=-hi.left:hi.left+hi.width>-Qt+ri&&(Da=-(hi.left+hi.width-ri)),gr(0),Cn(yi(Da))}else{var Ea=An;hi.top<-An?Ea=-hi.top:hi.top+hi.height>-An+ri&&(Ea=-(hi.top+hi.height-ri)),Cn(0),gr(yi(Ea))}}),Qa={};xn==="top"||xn==="bottom"?Qa[_n?"marginRight":"marginLeft"]=tr:Qa.marginTop=tr;var ja=dt.map(function(Ki,hi){var Da=Ki.key;return Oe.createElement(qn,{id:Jt,prefixCls:rt,key:Da,tab:Ki,style:hi===0?void 0:Qa,closable:Ki.closable,editable:nn,active:Da===ir,renderWrapper:Kn,removeAriaLabel:gn==null?void 0:gn.removeAriaLabel,onClick:function(uo){Nn(Da,uo)},onFocus:function(){Ca(Da),pa(),Tt.current&&(_n||(Tt.current.scrollLeft=0),Tt.current.scrollTop=0)}})}),so=function(){return si(function(){var hi=new Map;return dt.forEach(function(Da){var Ea,uo=Da.key,ao=(Ea=mt.current)===null||Ea===void 0?void 0:Ea.querySelector('[data-node-key="'.concat(Ee(uo),'"]'));ao&&hi.set(uo,{width:ao.offsetWidth,height:ao.offsetHeight,left:ao.offsetLeft,top:ao.offsetTop})}),hi})};(0,Oe.useEffect)(function(){so()},[dt.map(function(Ki){return Ki.key}).join("_")]);var za=kn(function(){var Ki=Pt(or),hi=Pt(He),Da=Pt($e);ur([Ki[0]-hi[0]-Da[0],Ki[1]-hi[1]-Da[1]]);var Ea=Pt(fn);Ti(Ea);var uo=Pt(Yt);qr(uo);var ao=Pt(mt);xr([ao[0]-Ea[0],ao[1]-Ea[1]]),so()}),ba=dt.slice(0,Ua),ai=dt.slice(ia+1),bi=[].concat((0,Qe.Z)(ba),(0,Qe.Z)(ai)),Ji=Ii.get(ir),ga=Kt({activeTabOffset:Ji,horizontal:ln,rtl:_n,indicatorSize:Wn}),Ka=ga.style;(0,Oe.useEffect)(function(){Ca()},[ir,ii,Rr,tn(Ji),tn(Ii),ln]),(0,Oe.useEffect)(function(){za()},[_n]);var io=!!bi.length,ho="".concat(rt,"-nav-wrap"),Po,Oo,lo,Do;return ln?_n?(Oo=Qt>0,Po=Qt!==Rr):(Po=Qt<0,Oo=Qt!==ii):(lo=An<0,Do=An!==ii),Oe.createElement(Rt.Z,{onResize:za},Oe.createElement("div",{ref:Xn(ze,or),role:"tablist",className:be()("".concat(rt,"-nav"),yt),style:Xt,onKeyDown:function(){pa()}},Oe.createElement(oe,{ref:He,position:"left",extra:sn,prefixCls:rt}),Oe.createElement(Rt.Z,{onResize:za},Oe.createElement("div",{className:be()(ho,(Fe={},(0,ke.Z)(Fe,"".concat(ho,"-ping-left"),Po),(0,ke.Z)(Fe,"".concat(ho,"-ping-right"),Oo),(0,ke.Z)(Fe,"".concat(ho,"-ping-top"),lo),(0,ke.Z)(Fe,"".concat(ho,"-ping-bottom"),Do),Fe)),ref:Tt},Oe.createElement(Rt.Z,{onResize:za},Oe.createElement("div",{ref:mt,className:"".concat(rt,"-nav-list"),style:{transform:"translate(".concat(Qt,"px, ").concat(An,"px)"),transition:jr?"none":void 0}},ja,Oe.createElement(fe,{ref:fn,prefixCls:rt,locale:gn,editable:nn,style:(0,Se.Z)((0,Se.Z)({},ja.length===0?void 0:Qa),{},{visibility:io?"hidden":null})}),Oe.createElement("div",{className:be()("".concat(rt,"-ink-bar"),(0,ke.Z)({},"".concat(rt,"-ink-bar-animated"),Fn.inkBar)),style:Ka}))))),Oe.createElement(In,(0,Ae.Z)({},Le,{removeAriaLabel:gn==null?void 0:gn.removeAriaLabel,ref:Yt,prefixCls:rt,tabs:bi,className:!io&&Pa,tabMoving:!!jr})),Oe.createElement(oe,{ref:$e,position:"right",extra:sn,prefixCls:rt})))}var Pn=Oe.forwardRef(Vt),mr=["renderTabBar"],Vn=["label","key"];function Un(Le){var ze=Le.renderTabBar,Fe=(0,ot.Z)(Le,mr),Ze=Oe.useContext(Ke),rt=Ze.tabs;if(ze){var dt=(0,Se.Z)((0,Se.Z)({},Fe),{},{panes:rt.map(function(yt){var Xt=yt.label,Jt=yt.key,Fn=(0,ot.Z)(yt,Vn);return Oe.createElement(ft,(0,Ae.Z)({tab:Xt,key:Jt,tabKey:Jt},Fn))})});return ze(dt,Pn)}return Oe.createElement(Pn,Fe)}var er={},rr=[],Dr=function(ze){rr.push(ze)};function dn(Le,ze){if(0)var Fe}function Hn(Le,ze){if(0)var Fe}function pi(){er={}}function wi(Le,ze,Fe){!ze&&!er[Fe]&&(Le(!1,Fe),er[Fe]=!0)}function Zr(Le,ze){wi(dn,Le,ze)}function Or(Le,ze){wi(Hn,Le,ze)}Zr.preMessage=Dr,Zr.resetWarned=pi,Zr.noteOnce=Or;var Li=null;function dr(){var Le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},ze;return Le===!1?ze={inkBar:!1,tabPane:!1}:Le===!0?ze={inkBar:!0,tabPane:!1}:ze=(0,Se.Z)({inkBar:!0},(0,Ie.Z)(Le)==="object"?Le:{}),ze.tabPaneMotion&&ze.tabPane===void 0&&(ze.tabPane=!0),!ze.tabPaneMotion&&ze.tabPane&&(ze.tabPane=!1),ze}var ci=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],vn=0;function Yi(Le,ze){var Fe,Ze=Le.id,rt=Le.prefixCls,dt=rt===void 0?"rc-tabs":rt,yt=Le.className,Xt=Le.items,Jt=Le.direction,Fn=Le.activeKey,ir=Le.defaultActiveKey,_n=Le.editable,sn=Le.animated,nn=Le.tabPosition,gn=nn===void 0?"top":nn,xn=Le.tabBarGutter,tr=Le.tabBarStyle,Kn=Le.tabBarExtraContent,Nn=Le.locale,$n=Le.moreIcon,Wn=Le.moreTransitionName,or=Le.destroyInactiveTabPane,He=Le.renderTabBar,$e=Le.onChange,Tt=Le.onTabClick,mt=Le.onTabScroll,Yt=Le.getPopupContainer,fn=Le.popupClassName,ln=Le.indicatorSize,Ln=(0,ot.Z)(Le,ci),yn=Oe.useMemo(function(){return(Xt||[]).filter(function(qr){return qr&&(0,Ie.Z)(qr)==="object"&&"key"in qr})},[Xt]),Qt=Jt==="rtl",Cn=dr(sn),Dn=(0,Oe.useState)(!1),ar=(0,pe.Z)(Dn,2),An=ar[0],gr=ar[1];(0,Oe.useEffect)(function(){gr(wt())},[]);var Br=Be(function(){var qr;return(qr=yn[0])===null||qr===void 0?void 0:qr.key},{value:Fn,defaultValue:ir}),br=(0,pe.Z)(Br,2),Ar=br[0],ur=br[1],Er=(0,Oe.useState)(function(){return yn.findIndex(function(qr){return qr.key===Ar})}),Nr=(0,pe.Z)(Er,2),Kr=Nr[0],xr=Nr[1];(0,Oe.useEffect)(function(){var qr=yn.findIndex(function(Pr){return Pr.key===Ar});if(qr===-1){var gi;qr=Math.max(0,Math.min(Kr,yn.length-1)),ur((gi=yn[qr])===null||gi===void 0?void 0:gi.key)}xr(qr)},[yn.map(function(qr){return qr.key}).join("_"),Ar,Kr]);var Vr=Be(null,{value:Ze}),fi=(0,pe.Z)(Vr,2),Hi=fi[0],Ti=fi[1];(0,Oe.useEffect)(function(){Ze||(Ti("rc-tabs-".concat(vn)),vn+=1)},[]);function mi(qr,gi){Tt==null||Tt(qr,gi);var Pr=qr!==Ar;ur(qr),Pr&&($e==null||$e(qr))}var Bi={id:Hi,activeKey:Ar,animated:Cn,tabPosition:gn,rtl:Qt,mobile:An},Oi=(0,Se.Z)((0,Se.Z)({},Bi),{},{editable:_n,locale:Nn,moreIcon:$n,moreTransitionName:Wn,tabBarGutter:xn,onTabClick:mi,onTabScroll:mt,extra:Kn,style:tr,panes:null,getPopupContainer:Yt,popupClassName:fn,indicatorSize:ln});return Oe.createElement(Ke.Provider,{value:{tabs:yn,prefixCls:dt}},Oe.createElement("div",(0,Ae.Z)({ref:ze,id:Ze,className:be()(dt,"".concat(dt,"-").concat(gn),(Fe={},(0,ke.Z)(Fe,"".concat(dt,"-mobile"),An),(0,ke.Z)(Fe,"".concat(dt,"-editable"),_n),(0,ke.Z)(Fe,"".concat(dt,"-rtl"),Qt),Fe),yt)},Ln),Oe.createElement(Un,(0,Ae.Z)({},Oi,{renderTabBar:He})),Oe.createElement(Mt,(0,Ae.Z)({destroyInactiveTabPane:or},Bi,{animated:Cn}))))}var Di=Oe.forwardRef(Yi),wa=Di,Xi=wa,_i=le(53124),fa=le(98675),Ci=()=>null,ta=le(33603);const ka={motionAppear:!1,motionEnter:!0,motionLeave:!0};function na(Le){let ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},Fe;return ze===!1?Fe={inkBar:!1,tabPane:!1}:ze===!0?Fe={inkBar:!0,tabPane:!0}:Fe=Object.assign({inkBar:!0},typeof ze=="object"?ze:{}),Fe.tabPane&&(Fe.tabPaneMotion=Object.assign(Object.assign({},ka),{motionName:(0,ta.m)(Le,"switch")})),Fe}var Fi=le(37419),Aa=function(Le,ze){var Fe={};for(var Ze in Le)Object.prototype.hasOwnProperty.call(Le,Ze)&&ze.indexOf(Ze)<0&&(Fe[Ze]=Le[Ze]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Ze=Object.getOwnPropertySymbols(Le);rt<Ze.length;rt++)ze.indexOf(Ze[rt])<0&&Object.prototype.propertyIsEnumerable.call(Le,Ze[rt])&&(Fe[Ze[rt]]=Le[Ze[rt]]);return Fe};function Ba(Le){return Le.filter(ze=>ze)}function ha(Le,ze){if(Le)return Le;const Fe=(0,Fi.Z)(ze).map(Ze=>{if(Oe.isValidElement(Ze)){const{key:rt,props:dt}=Ze,yt=dt||{},{tab:Xt}=yt,Jt=Aa(yt,["tab"]);return Object.assign(Object.assign({key:String(rt)},Jt),{label:Xt})}return null});return Ba(Fe)}var oi=le(14747),vt=le(67968),ht=le(45503),Wt=le(67771),Mn=Le=>{const{componentCls:ze,motionDurationSlow:Fe}=Le;return[{[ze]:{[`${ze}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${Fe}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${Fe}`}}}}},[(0,Wt.oN)(Le,"slide-up"),(0,Wt.oN)(Le,"slide-down")]]};const Cr=Le=>{const{componentCls:ze,tabsCardPadding:Fe,cardBg:Ze,cardGutter:rt,colorBorderSecondary:dt,itemSelectedColor:yt}=Le;return{[`${ze}-card`]:{[`> ${ze}-nav, > div > ${ze}-nav`]:{[`${ze}-tab`]:{margin:0,padding:Fe,background:Ze,border:`${Le.lineWidth}px ${Le.lineType} ${dt}`,transition:`all ${Le.motionDurationSlow} ${Le.motionEaseInOut}`},[`${ze}-tab-active`]:{color:yt,background:Le.colorBgContainer},[`${ze}-ink-bar`]:{visibility:"hidden"}},[`&${ze}-top, &${ze}-bottom`]:{[`> ${ze}-nav, > div > ${ze}-nav`]:{[`${ze}-tab + ${ze}-tab`]:{marginLeft:{_skip_check_:!0,value:`${rt}px`}}}},[`&${ze}-top`]:{[`> ${ze}-nav, > div > ${ze}-nav`]:{[`${ze}-tab`]:{borderRadius:`${Le.borderRadiusLG}px ${Le.borderRadiusLG}px 0 0`},[`${ze}-tab-active`]:{borderBottomColor:Le.colorBgContainer}}},[`&${ze}-bottom`]:{[`> ${ze}-nav, > div > ${ze}-nav`]:{[`${ze}-tab`]:{borderRadius:`0 0 ${Le.borderRadiusLG}px ${Le.borderRadiusLG}px`},[`${ze}-tab-active`]:{borderTopColor:Le.colorBgContainer}}},[`&${ze}-left, &${ze}-right`]:{[`> ${ze}-nav, > div > ${ze}-nav`]:{[`${ze}-tab + ${ze}-tab`]:{marginTop:`${rt}px`}}},[`&${ze}-left`]:{[`> ${ze}-nav, > div > ${ze}-nav`]:{[`${ze}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Le.borderRadiusLG}px 0 0 ${Le.borderRadiusLG}px`}},[`${ze}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:Le.colorBgContainer}}}},[`&${ze}-right`]:{[`> ${ze}-nav, > div > ${ze}-nav`]:{[`${ze}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Le.borderRadiusLG}px ${Le.borderRadiusLG}px 0`}},[`${ze}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:Le.colorBgContainer}}}}}}},Sr=Le=>{const{componentCls:ze,itemHoverColor:Fe,dropdownEdgeChildVerticalPadding:Ze}=Le;return{[`${ze}-dropdown`]:Object.assign(Object.assign({},(0,oi.Wf)(Le)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Le.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${ze}-dropdown-menu`]:{maxHeight:Le.tabsDropdownHeight,margin:0,padding:`${Ze}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:Le.colorBgContainer,backgroundClip:"padding-box",borderRadius:Le.borderRadiusLG,outline:"none",boxShadow:Le.boxShadowSecondary,"&-item":Object.assign(Object.assign({},oi.vS),{display:"flex",alignItems:"center",minWidth:Le.tabsDropdownWidth,margin:0,padding:`${Le.paddingXXS}px ${Le.paddingSM}px`,color:Le.colorText,fontWeight:"normal",fontSize:Le.fontSize,lineHeight:Le.lineHeight,cursor:"pointer",transition:`all ${Le.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:Le.marginSM},color:Le.colorTextDescription,fontSize:Le.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:Fe}},"&:hover":{background:Le.controlItemBgHover},"&-disabled":{"&, &:hover":{color:Le.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Tr=Le=>{const{componentCls:ze,margin:Fe,colorBorderSecondary:Ze,horizontalMargin:rt,verticalItemPadding:dt,verticalItemMargin:yt}=Le;return{[`${ze}-top, ${ze}-bottom`]:{flexDirection:"column",[`> ${ze}-nav, > div > ${ze}-nav`]:{margin:rt,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Le.lineWidth}px ${Le.lineType} ${Ze}`,content:"''"},[`${ze}-ink-bar`]:{height:Le.lineWidthBold,"&-animated":{transition:`width ${Le.motionDurationSlow}, left ${Le.motionDurationSlow},
right ${Le.motionDurationSlow}`}},[`${ze}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:Le.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:Le.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:Le.boxShadowTabsOverflowRight},[`&${ze}-nav-wrap-ping-left::before`]:{opacity:1},[`&${ze}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${ze}-top`]:{[`> ${ze}-nav,
> div > ${ze}-nav`]:{"&::before":{bottom:0},[`${ze}-ink-bar`]:{bottom:0}}},[`${ze}-bottom`]:{[`> ${ze}-nav, > div > ${ze}-nav`]:{order:1,marginTop:`${Fe}px`,marginBottom:0,"&::before":{top:0},[`${ze}-ink-bar`]:{top:0}},[`> ${ze}-content-holder, > div > ${ze}-content-holder`]:{order:0}},[`${ze}-left, ${ze}-right`]:{[`> ${ze}-nav, > div > ${ze}-nav`]:{flexDirection:"column",minWidth:Le.controlHeight*1.25,[`${ze}-tab`]:{padding:dt,textAlign:"center"},[`${ze}-tab + ${ze}-tab`]:{margin:yt},[`${ze}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:Le.controlHeight},"&::before":{top:0,boxShadow:Le.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:Le.boxShadowTabsOverflowBottom},[`&${ze}-nav-wrap-ping-top::before`]:{opacity:1},[`&${ze}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${ze}-ink-bar`]:{width:Le.lineWidthBold,"&-animated":{transition:`height ${Le.motionDurationSlow}, top ${Le.motionDurationSlow}`}},[`${ze}-nav-list, ${ze}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${ze}-left`]:{[`> ${ze}-nav, > div > ${ze}-nav`]:{[`${ze}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${ze}-content-holder, > div > ${ze}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${Le.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${Le.lineWidth}px ${Le.lineType} ${Le.colorBorder}`},[`> ${ze}-content > ${ze}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:Le.paddingLG}}}},[`${ze}-right`]:{[`> ${ze}-nav, > div > ${ze}-nav`]:{order:1,[`${ze}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${ze}-content-holder, > div > ${ze}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-Le.lineWidth},borderRight:{_skip_check_:!0,value:`${Le.lineWidth}px ${Le.lineType} ${Le.colorBorder}`},[`> ${ze}-content > ${ze}-tabpane`]:{paddingRight:{_skip_check_:!0,value:Le.paddingLG}}}}}},Fr=Le=>{const{componentCls:ze,cardPaddingSM:Fe,cardPaddingLG:Ze,horizontalItemPaddingSM:rt,horizontalItemPaddingLG:dt}=Le;return{[ze]:{"&-small":{[`> ${ze}-nav`]:{[`${ze}-tab`]:{padding:rt,fontSize:Le.titleFontSizeSM}}},"&-large":{[`> ${ze}-nav`]:{[`${ze}-tab`]:{padding:dt,fontSize:Le.titleFontSizeLG}}}},[`${ze}-card`]:{[`&${ze}-small`]:{[`> ${ze}-nav`]:{[`${ze}-tab`]:{padding:Fe}},[`&${ze}-bottom`]:{[`> ${ze}-nav ${ze}-tab`]:{borderRadius:`0 0 ${Le.borderRadius}px ${Le.borderRadius}px`}},[`&${ze}-top`]:{[`> ${ze}-nav ${ze}-tab`]:{borderRadius:`${Le.borderRadius}px ${Le.borderRadius}px 0 0`}},[`&${ze}-right`]:{[`> ${ze}-nav ${ze}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Le.borderRadius}px ${Le.borderRadius}px 0`}}},[`&${ze}-left`]:{[`> ${ze}-nav ${ze}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Le.borderRadius}px 0 0 ${Le.borderRadius}px`}}}},[`&${ze}-large`]:{[`> ${ze}-nav`]:{[`${ze}-tab`]:{padding:Ze}}}}}},_r=Le=>{const{componentCls:ze,itemActiveColor:Fe,itemHoverColor:Ze,iconCls:rt,tabsHorizontalItemMargin:dt,horizontalItemPadding:yt,itemSelectedColor:Xt,itemColor:Jt}=Le,Fn=`${ze}-tab`;return{[Fn]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:yt,fontSize:Le.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:Jt,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:Fe}},(0,oi.Qy)(Le)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-Le.marginXXS},marginLeft:{_skip_check_:!0,value:Le.marginXS},color:Le.colorTextDescription,fontSize:Le.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${Le.motionDurationSlow}`,"&:hover":{color:Le.colorTextHeading}},"&:hover":{color:Ze},[`&${Fn}-active ${Fn}-btn`]:{color:Xt,textShadow:Le.tabsActiveTextShadow},[`&${Fn}-disabled`]:{color:Le.colorTextDisabled,cursor:"not-allowed"},[`&${Fn}-disabled ${Fn}-btn, &${Fn}-disabled ${ze}-remove`]:{"&:focus, &:active":{color:Le.colorTextDisabled}},[`& ${Fn}-remove ${rt}`]:{margin:0},[rt]:{marginRight:{_skip_check_:!0,value:Le.marginSM}}},[`${Fn} + ${Fn}`]:{margin:{_skip_check_:!0,value:dt}}}},ni=Le=>{const{componentCls:ze,tabsHorizontalItemMarginRTL:Fe,iconCls:Ze,cardGutter:rt}=Le;return{[`${ze}-rtl`]:{direction:"rtl",[`${ze}-nav`]:{[`${ze}-tab`]:{margin:{_skip_check_:!0,value:Fe},[`${ze}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[Ze]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${Le.marginSM}px`}},[`${ze}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${Le.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${Le.marginXXS}px`},[Ze]:{margin:0}}}},[`&${ze}-left`]:{[`> ${ze}-nav`]:{order:1},[`> ${ze}-content-holder`]:{order:0}},[`&${ze}-right`]:{[`> ${ze}-nav`]:{order:0},[`> ${ze}-content-holder`]:{order:1}},[`&${ze}-card${ze}-top, &${ze}-card${ze}-bottom`]:{[`> ${ze}-nav, > div > ${ze}-nav`]:{[`${ze}-tab + ${ze}-tab`]:{marginRight:{_skip_check_:!0,value:rt},marginLeft:{_skip_check_:!0,value:0}}}}},[`${ze}-dropdown-rtl`]:{direction:"rtl"},[`${ze}-menu-item`]:{[`${ze}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},di=Le=>{const{componentCls:ze,tabsCardPadding:Fe,cardHeight:Ze,cardGutter:rt,itemHoverColor:dt,itemActiveColor:yt,colorBorderSecondary:Xt}=Le;return{[ze]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,oi.Wf)(Le)),{display:"flex",[`> ${ze}-nav, > div > ${ze}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${ze}-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 ${Le.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${ze}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${Le.motionDurationSlow}`},[`${ze}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${ze}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${ze}-nav-more`]:{position:"relative",padding:Fe,background:"transparent",border:0,color:Le.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:Le.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${ze}-nav-add`]:Object.assign({minWidth:Ze,marginLeft:{_skip_check_:!0,value:rt},padding:`0 ${Le.paddingXS}px`,background:"transparent",border:`${Le.lineWidth}px ${Le.lineType} ${Xt}`,borderRadius:`${Le.borderRadiusLG}px ${Le.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:Le.colorText,transition:`all ${Le.motionDurationSlow} ${Le.motionEaseInOut}`,"&:hover":{color:dt},"&:active, &:focus:not(:focus-visible)":{color:yt}},(0,oi.Qy)(Le))},[`${ze}-extra-content`]:{flex:"none"},[`${ze}-ink-bar`]:{position:"absolute",background:Le.inkBarColor,pointerEvents:"none"}}),_r(Le)),{[`${ze}-content`]:{position:"relative",width:"100%"},[`${ze}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${ze}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${ze}-centered`]:{[`> ${ze}-nav, > div > ${ze}-nav`]:{[`${ze}-nav-wrap`]:{[`&:not([class*='${ze}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var Ei=(0,vt.Z)("Tabs",Le=>{const ze=(0,ht.TS)(Le,{tabsCardPadding:Le.cardPadding||`${(Le.cardHeight-Math.round(Le.fontSize*Le.lineHeight))/2-Le.lineWidth}px ${Le.padding}px`,dropdownEdgeChildVerticalPadding:Le.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Le.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${Le.horizontalItemGutter}px`});return[Fr(ze),ni(ze),Tr(ze),Sr(ze),Cr(ze),di(ze),Mn(ze)]},Le=>{const ze=Le.controlHeightLG;return{zIndexPopup:Le.zIndexPopupBase+50,cardBg:Le.colorFillAlter,cardHeight:ze,cardPadding:"",cardPaddingSM:`${Le.paddingXXS*1.5}px ${Le.padding}px`,cardPaddingLG:`${Le.paddingXS}px ${Le.padding}px ${Le.paddingXXS*1.5}px`,titleFontSize:Le.fontSize,titleFontSizeLG:Le.fontSizeLG,titleFontSizeSM:Le.fontSize,inkBarColor:Le.colorPrimary,horizontalMargin:`0 0 ${Le.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${Le.paddingSM}px 0`,horizontalItemPaddingSM:`${Le.paddingXS}px 0`,horizontalItemPaddingLG:`${Le.padding}px 0`,verticalItemPadding:`${Le.paddingXS}px ${Le.paddingLG}px`,verticalItemMargin:`${Le.margin}px 0 0 0`,itemColor:Le.colorText,itemSelectedColor:Le.colorPrimary,itemHoverColor:Le.colorPrimaryHover,itemActiveColor:Le.colorPrimaryActive,cardGutter:Le.marginXXS/2}}),ji=function(Le,ze){var Fe={};for(var Ze in Le)Object.prototype.hasOwnProperty.call(Le,Ze)&&ze.indexOf(Ze)<0&&(Fe[Ze]=Le[Ze]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Ze=Object.getOwnPropertySymbols(Le);rt<Ze.length;rt++)ze.indexOf(Ze[rt])<0&&Object.prototype.propertyIsEnumerable.call(Le,Ze[rt])&&(Fe[Ze[rt]]=Le[Ze[rt]]);return Fe};const $i=Le=>{const{type:ze,className:Fe,rootClassName:Ze,size:rt,onEdit:dt,hideAdd:yt,centered:Xt,addIcon:Jt,popupClassName:Fn,children:ir,items:_n,animated:sn,style:nn,indicatorSize:gn}=Le,xn=ji(Le,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:tr,moreIcon:Kn=Oe.createElement(We.Z,null)}=xn,{direction:Nn,tabs:$n,getPrefixCls:Wn,getPopupContainer:or}=Oe.useContext(_i.E_),He=Wn("tabs",tr),[$e,Tt]=Ei(He);let mt;ze==="editable-card"&&(mt={onEdit:(Qt,Cn)=>{let{key:Dn,event:ar}=Cn;dt==null||dt(Qt==="add"?ar:Dn,Qt)},removeIcon:Oe.createElement(ge.Z,null),addIcon:Jt||Oe.createElement(Pe.Z,null),showAdd:yt!==!0});const Yt=Wn(),fn=ha(_n,ir),ln=na(He,sn),Ln=(0,fa.Z)(rt),yn=Object.assign(Object.assign({},$n==null?void 0:$n.style),nn);return $e(Oe.createElement(Xi,Object.assign({direction:Nn,getPopupContainer:or,moreTransitionName:`${Yt}-slide-up`},xn,{items:fn,className:be()({[`${He}-${Ln}`]:Ln,[`${He}-card`]:["card","editable-card"].includes(ze),[`${He}-editable-card`]:ze==="editable-card",[`${He}-centered`]:Xt},$n==null?void 0:$n.className,Fe,Ze,Tt),popupClassName:be()(Fn,Tt),style:yn,editable:mt,moreIcon:Kn,prefixCls:He,animated:ln,indicatorSize:gn!=null?gn:$n==null?void 0:$n.indicatorSize})))};$i.TabPane=Ci;var zi=$i},41771:function(hn,Zt){"use strict";var le;var ge=typeof Symbol=="function"&&Symbol.for,We=ge?Symbol.for("react.element"):60103,Pe=ge?Symbol.for("react.portal"):60106,et=ge?Symbol.for("react.fragment"):60107,be=ge?Symbol.for("react.strict_mode"):60108,Ae=ge?Symbol.for("react.profiler"):60114,ke=ge?Symbol.for("react.provider"):60109,Se=ge?Symbol.for("react.context"):60110,pe=ge?Symbol.for("react.async_mode"):60111,Ie=ge?Symbol.for("react.concurrent_mode"):60111,ot=ge?Symbol.for("react.forward_ref"):60112,Oe=ge?Symbol.for("react.suspense"):60113,wt=ge?Symbol.for("react.suspense_list"):60120,lt=ge?Symbol.for("react.memo"):60115,tt=ge?Symbol.for("react.lazy"):60116,Ge=ge?Symbol.for("react.block"):60121,Me=ge?Symbol.for("react.fundamental"):60117,bt=ge?Symbol.for("react.responder"):60118,zt=ge?Symbol.for("react.scope"):60119;function Ye(Be){if(typeof Be=="object"&&Be!==null){var xe=Be.$$typeof;switch(xe){case We:switch(Be=Be.type,Be){case pe:case Ie:case et:case Ae:case be:case Oe:return Be;default:switch(Be=Be&&Be.$$typeof,Be){case Se:case ot:case tt:case lt:case ke:return Be;default:return xe}}case Pe:return xe}}}function it(Be){return Ye(Be)===Ie}le=pe,le=Ie,le=Se,le=ke,le=We,le=ot,le=et,le=tt,le=lt,le=Pe,le=Ae,le=be,le=Oe,le=function(Be){return it(Be)||Ye(Be)===pe},le=it,le=function(Be){return Ye(Be)===Se},le=function(Be){return Ye(Be)===ke},le=function(Be){return typeof Be=="object"&&Be!==null&&Be.$$typeof===We},le=function(Be){return Ye(Be)===ot},Zt.isFragment=function(Be){return Ye(Be)===et},le=function(Be){return Ye(Be)===tt},le=function(Be){return Ye(Be)===lt},le=function(Be){return Ye(Be)===Pe},le=function(Be){return Ye(Be)===Ae},le=function(Be){return Ye(Be)===be},le=function(Be){return Ye(Be)===Oe},le=function(Be){return typeof Be=="string"||typeof Be=="function"||Be===et||Be===Ie||Be===Ae||Be===be||Be===Oe||Be===wt||typeof Be=="object"&&Be!==null&&(Be.$$typeof===tt||Be.$$typeof===lt||Be.$$typeof===ke||Be.$$typeof===Se||Be.$$typeof===ot||Be.$$typeof===Me||Be.$$typeof===bt||Be.$$typeof===zt||Be.$$typeof===Ge)},le=Ye},47655:function(hn,Zt,le){"use strict";hn.exports=le(41771)},64701:function(hn,Zt,le){"use strict";le.r(Zt),le.d(Zt,{ResizableTextArea:function(){return Sn},default:function(){return Ht}});var ge=le(87462),We=le(1413),Pe=le(4942),et=le(71002),be=le(97685),Ae=le(45987),ke=le(74902),Se=le(94184),pe=le.n(Se),Ie=le(67656),ot=le(87887),Oe=le(67294);function wt(It){var Ct=Oe.useRef();Ct.current=It;var tn=Oe.useCallback(function(){for(var pn,Ee=arguments.length,ce=new Array(Ee),se=0;se<Ee;se++)ce[se]=arguments[se];return(pn=Ct.current)===null||pn===void 0?void 0:pn.call.apply(pn,[Ct].concat(ce))},[]);return tn}function lt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var tt=lt()?Oe.useLayoutEffect:Oe.useEffect,Ge=tt,Me=function(Ct,tn){var pn=Oe.useRef(!0);tt(function(){if(!pn.current)return Ct()},tn),tt(function(){return pn.current=!1,function(){pn.current=!0}},[])};function bt(It){var Ct=Oe.useRef(!1),tn=Oe.useState(It),pn=(0,be.Z)(tn,2),Ee=pn[0],ce=pn[1];Oe.useEffect(function(){return Ct.current=!1,function(){Ct.current=!0}},[]);function se(fe,de){de&&Ct.current||ce(fe)}return[Ee,se]}function zt(It){return It!==void 0}function Ye(It,Ct){var tn=Ct||{},pn=tn.defaultValue,Ee=tn.value,ce=tn.onChange,se=tn.postState,fe=bt(function(){return zt(Ee)?Ee:zt(pn)?typeof pn=="function"?pn():pn:typeof It=="function"?It():It}),de=(0,be.Z)(fe,2),oe=de[0],Te=de[1],je=Ee!==void 0?Ee:oe,Et=se?se(je):je,At=wt(ce),Ot=bt([je]),Bt=(0,be.Z)(Ot,2),Nt=Bt[0],zn=Bt[1];Me(function(){var _t=Nt[0];oe!==_t&&At(oe,_t)},[Nt]),Me(function(){zt(Ee)||Te(Ee)},[Ee]);var Gn=wt(function(_t,cn){Te(_t,cn),zn([je],cn)});return[Et,Gn]}var it=le(48555),Be=function(Ct){return+setTimeout(Ct,16)},xe=function(Ct){return clearTimeout(Ct)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Be=function(Ct){return window.requestAnimationFrame(Ct)},xe=function(Ct){return window.cancelAnimationFrame(Ct)});var Ke=0,Ue=new Map;function ft(It){Ue.delete(It)}var pt=function(Ct){var tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Ke+=1;var pn=Ke;function Ee(ce){if(ce===0)ft(pn),Ct();else{var se=Be(function(){Ee(ce-1)});Ue.set(pn,se)}}return Ee(tn),pn};pt.cancel=function(It){var Ct=Ue.get(It);return ft(Ct),xe(Ct)};var Mt=pt,Qe=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,Rt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Dt={},on;function Ut(It){var Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,tn=It.getAttribute("id")||It.getAttribute("data-reactid")||It.getAttribute("name");if(Ct&&Dt[tn])return Dt[tn];var pn=window.getComputedStyle(It),Ee=pn.getPropertyValue("box-sizing")||pn.getPropertyValue("-moz-box-sizing")||pn.getPropertyValue("-webkit-box-sizing"),ce=parseFloat(pn.getPropertyValue("padding-bottom"))+parseFloat(pn.getPropertyValue("padding-top")),se=parseFloat(pn.getPropertyValue("border-bottom-width"))+parseFloat(pn.getPropertyValue("border-top-width")),fe=Rt.map(function(oe){return"".concat(oe,":").concat(pn.getPropertyValue(oe))}).join(";"),de={sizingStyle:fe,paddingSize:ce,borderSize:se,boxSizing:Ee};return Ct&&tn&&(Dt[tn]=de),de}function wn(It){var Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,tn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,pn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;on||(on=document.createElement("textarea"),on.setAttribute("tab-index","-1"),on.setAttribute("aria-hidden","true"),document.body.appendChild(on)),It.getAttribute("wrap")?on.setAttribute("wrap",It.getAttribute("wrap")):on.removeAttribute("wrap");var Ee=Ut(It,Ct),ce=Ee.paddingSize,se=Ee.borderSize,fe=Ee.boxSizing,de=Ee.sizingStyle;on.setAttribute("style","".concat(de,";").concat(Qe)),on.value=It.value||It.placeholder||"";var oe=void 0,Te=void 0,je,Et=on.scrollHeight;if(fe==="border-box"?Et+=se:fe==="content-box"&&(Et-=ce),tn!==null||pn!==null){on.value=" ";var At=on.scrollHeight-ce;tn!==null&&(oe=At*tn,fe==="border-box"&&(oe=oe+ce+se),Et=Math.max(oe,Et)),pn!==null&&(Te=At*pn,fe==="border-box"&&(Te=Te+ce+se),je=Et>Te?"":"hidden",Et=Math.min(Te,Et))}var Ot={height:Et,overflowY:je,resize:"none"};return oe&&(Ot.minHeight=oe),Te&&(Ot.maxHeight=Te),Ot}var Xn=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],nr=0,Je=1,_e=2,Ft=Oe.forwardRef(function(It,Ct){var tn=It,pn=tn.prefixCls,Ee=tn.onPressEnter,ce=tn.defaultValue,se=tn.value,fe=tn.autoSize,de=tn.onResize,oe=tn.className,Te=tn.style,je=tn.disabled,Et=tn.onChange,At=tn.onInternalAutoSize,Ot=(0,Ae.Z)(tn,Xn),Bt=Ye(ce,{value:se,postState:function(In){return In!=null?In:""}}),Nt=(0,be.Z)(Bt,2),zn=Nt[0],Gn=Nt[1],_t=function(In){Gn(In.target.value),Et==null||Et(In)},cn=Oe.useRef();Oe.useImperativeHandle(Ct,function(){return{textArea:cn.current}});var Jn=Oe.useMemo(function(){return fe&&(0,et.Z)(fe)==="object"?[fe.minRows,fe.maxRows]:[]},[fe]),lr=(0,be.Z)(Jn,2),En=lr[0],wr=lr[1],xi=!!fe,ei=function(){try{if(document.activeElement===cn.current){var In=cn.current,kr=In.selectionStart,qn=In.selectionEnd,hr=In.scrollTop;cn.current.setSelectionRange(kr,qn),cn.current.scrollTop=hr}}catch(On){}},Yr=Oe.useState(_e),Gr=(0,be.Z)(Yr,2),Ai=Gr[0],ti=Gr[1],ki=Oe.useState(),Ri=(0,be.Z)(ki,2),jn=Ri[0],Pi=Ri[1],va=function(){ti(nr)};Ge(function(){xi&&va()},[se,En,wr,xi]),Ge(function(){if(Ai===nr)ti(Je);else if(Ai===Je){var Tn=wn(cn.current,!1,En,wr);ti(_e),Pi(Tn)}else ei()},[Ai]);var da=Oe.useRef(),ya=function(){Mt.cancel(da.current)},ea=function(In){Ai===_e&&(de==null||de(In),fe&&(ya(),da.current=Mt(function(){va()})))};Oe.useEffect(function(){return ya},[]);var kt=xi?jn:null,bn=(0,We.Z)((0,We.Z)({},Te),kt);return(Ai===nr||Ai===Je)&&(bn.overflowY="hidden",bn.overflowX="hidden"),Oe.createElement(it.Z,{onResize:ea,disabled:!(fe||de)},Oe.createElement("textarea",(0,ge.Z)({},Ot,{ref:cn,style:bn,className:pe()(pn,oe,(0,Pe.Z)({},"".concat(pn,"-disabled"),je)),disabled:je,value:zn,onChange:_t})))}),Sn=Ft,an=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function nt(It,Ct){return(0,ke.Z)(It||"").slice(0,Ct).join("")}function at(It,Ct,tn,pn){var Ee=tn;return It?Ee=nt(tn,pn):(0,ke.Z)(Ct||"").length<tn.length&&(0,ke.Z)(tn||"").length>pn&&(Ee=Ct),Ee}var $t=Oe.forwardRef(function(It,Ct){var tn,pn=It.defaultValue,Ee=It.value,ce=It.onFocus,se=It.onBlur,fe=It.onChange,de=It.allowClear,oe=It.maxLength,Te=It.onCompositionStart,je=It.onCompositionEnd,Et=It.suffix,At=It.prefixCls,Ot=At===void 0?"rc-textarea":At,Bt=It.classes,Nt=It.showCount,zn=It.className,Gn=It.style,_t=It.disabled,cn=It.hidden,Jn=It.classNames,lr=It.styles,En=It.onResize,wr=(0,Ae.Z)(It,an),xi=Ye(pn,{value:Ee,defaultValue:pn}),ei=(0,be.Z)(xi,2),Yr=ei[0],Gr=ei[1],Ai=(0,Oe.useRef)(null),ti=Oe.useState(!1),ki=(0,be.Z)(ti,2),Ri=ki[0],jn=ki[1],Pi=Oe.useState(!1),va=(0,be.Z)(Pi,2),da=va[0],ya=va[1],ea=Oe.useRef(),kt=Oe.useRef(0),bn=Oe.useState(null),Tn=(0,be.Z)(bn,2),In=Tn[0],kr=Tn[1],qn=function(){var er;(er=Ai.current)===null||er===void 0||er.textArea.focus()};(0,Oe.useImperativeHandle)(Ct,function(){return{resizableTextArea:Ai.current,focus:qn,blur:function(){var er;(er=Ai.current)===null||er===void 0||er.textArea.blur()}}}),(0,Oe.useEffect)(function(){jn(function(Un){return!_t&&Un})},[_t]);var hr=Number(oe)>0,On=function(er){ya(!0),ea.current=Yr,kt.current=er.currentTarget.selectionStart,Te==null||Te(er)},qe=function(er){ya(!1);var rr=er.currentTarget.value;if(hr){var Dr,dn=kt.current>=oe+1||kt.current===((Dr=ea.current)===null||Dr===void 0?void 0:Dr.length);rr=at(dn,ea.current,rr,oe)}rr!==Yr&&(Gr(rr),(0,ot.rJ)(er.currentTarget,er,fe,rr)),je==null||je(er)},st=function(er){var rr=er.target.value;if(!da&&hr){var Dr=er.target.selectionStart>=oe+1||er.target.selectionStart===rr.length||!er.target.selectionStart;rr=at(Dr,Yr,rr,oe)}Gr(rr),(0,ot.rJ)(er.currentTarget,er,fe,rr)},Lt=function(er){var rr=wr.onPressEnter,Dr=wr.onKeyDown;er.key==="Enter"&&rr&&rr(er),Dr==null||Dr(er)},qt=function(er){jn(!0),ce==null||ce(er)},Ve=function(er){jn(!1),se==null||se(er)},gt=function(er){var rr;Gr(""),qn(),(0,ot.rJ)((rr=Ai.current)===null||rr===void 0?void 0:rr.textArea,er,fe)},Kt=(0,ot.D7)(Yr);!da&&hr&&Ee==null&&(Kt=nt(Kt,oe));var Pt=Et,Gt;if(Nt){var Vt=(0,ke.Z)(Kt).length;(0,et.Z)(Nt)==="object"?Gt=Nt.formatter({value:Kt,count:Vt,maxLength:oe}):Gt="".concat(Vt).concat(hr?" / ".concat(oe):""),Pt=Oe.createElement(Oe.Fragment,null,Pt,Oe.createElement("span",{className:pe()("".concat(Ot,"-data-count"),Jn==null?void 0:Jn.count),style:lr==null?void 0:lr.count},Gt))}var Pn=function(er){var rr;En==null||En(er),(rr=Ai.current)!==null&&rr!==void 0&&rr.textArea.style.height&&kr(!0)},mr=!wr.autoSize&&!Nt&&!de,Vn=Oe.createElement(Ie.BaseInput,{value:Kt,allowClear:de,handleReset:gt,suffix:Pt,prefixCls:Ot,classes:{affixWrapper:pe()(Bt==null?void 0:Bt.affixWrapper,(tn={},(0,Pe.Z)(tn,"".concat(Ot,"-show-count"),Nt),(0,Pe.Z)(tn,"".concat(Ot,"-textarea-allow-clear"),de),tn))},disabled:_t,focused:Ri,className:zn,style:(0,We.Z)((0,We.Z)({},Gn),In&&!mr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Gt=="string"?Gt:void 0}},hidden:cn,inputElement:Oe.createElement(Sn,(0,ge.Z)({},wr,{onKeyDown:Lt,onChange:st,onFocus:qt,onBlur:Ve,onCompositionStart:On,onCompositionEnd:qe,className:Jn==null?void 0:Jn.textarea,style:(0,We.Z)((0,We.Z)({},lr==null?void 0:lr.textarea),{},{resize:Gn==null?void 0:Gn.resize}),disabled:_t,prefixCls:Ot,onResize:Pn,ref:Ai}))});return Vn}),kn=$t,Ht=kn},1337:function(hn,Zt,le){"use strict";le.d(Zt,{Z:function(){return Se}});var ge=le(1413),We=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,Pe=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,et="".concat(We," ").concat(Pe).split(/[\s\n]+/),be="aria-",Ae="data-";function ke(pe,Ie){return pe.indexOf(Ie)===0}function Se(pe){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ot;Ie===!1?ot={aria:!0,data:!0,attr:!0}:Ie===!0?ot={aria:!0}:ot=(0,ge.Z)({},Ie);var Oe={};return Object.keys(pe).forEach(function(wt){(ot.aria&&(wt==="role"||ke(wt,be))||ot.data&&ke(wt,Ae)||ot.attr&&et.includes(wt))&&(Oe[wt]=pe[wt])}),Oe}},88386:function(hn,Zt,le){(function(ge){ge(le(4631))})(function(ge){ge.defineOption("placeholder","",function(Se,pe,Ie){var ot=Ie&&Ie!=ge.Init;if(pe&&!ot)Se.on("blur",be),Se.on("change",Ae),Se.on("swapDoc",Ae),ge.on(Se.getInputField(),"compositionupdate",Se.state.placeholderCompose=function(){et(Se)}),Ae(Se);else if(!pe&&ot){Se.off("blur",be),Se.off("change",Ae),Se.off("swapDoc",Ae),ge.off(Se.getInputField(),"compositionupdate",Se.state.placeholderCompose),We(Se);var Oe=Se.getWrapperElement();Oe.className=Oe.className.replace(" CodeMirror-empty","")}pe&&!Se.hasFocus()&&be(Se)});function We(Se){Se.state.placeholder&&(Se.state.placeholder.parentNode.removeChild(Se.state.placeholder),Se.state.placeholder=null)}function Pe(Se){We(Se);var pe=Se.state.placeholder=document.createElement("pre");pe.style.cssText="height: 0; overflow: visible",pe.style.direction=Se.getOption("direction"),pe.className="CodeMirror-placeholder CodeMirror-line-like";var Ie=Se.getOption("placeholder");typeof Ie=="string"&&(Ie=document.createTextNode(Ie)),pe.appendChild(Ie),Se.display.lineSpace.insertBefore(pe,Se.display.lineSpace.firstChild)}function et(Se){setTimeout(function(){var pe=!1,Ie=Se.getInputField();Ie.nodeName=="TEXTAREA"?pe=!Ie.value:Se.lineCount()==1&&(pe=!/[^\u200b]/.test(Ie.querySelector(".CodeMirror-line").textContent)),pe?Pe(Se):We(Se)},20)}function be(Se){ke(Se)&&Pe(Se)}function Ae(Se){var pe=Se.getWrapperElement(),Ie=ke(Se);pe.className=pe.className.replace(" CodeMirror-empty","")+(Ie?" CodeMirror-empty":""),Ie?Pe(Se):We(Se)}function ke(Se){return Se.lineCount()===1&&Se.getLine(0)===""}})},82801:function(hn,Zt,le){(function(ge){ge(le(4631))})(function(ge){var We={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Pe=ge.Pos;ge.defineOption("autoCloseBrackets",!1,function(tt,Ge,Me){Me&&Me!=ge.Init&&(tt.removeKeyMap(be),tt.state.closeBrackets=null),Ge&&(Ae(et(Ge,"pairs")),tt.state.closeBrackets=Ge,tt.addKeyMap(be))});function et(tt,Ge){return Ge=="pairs"&&typeof tt=="string"?tt:typeof tt=="object"&&tt[Ge]!=null?tt[Ge]:We[Ge]}var be={Backspace:pe,Enter:Ie};function Ae(tt){for(var Ge=0;Ge<tt.length;Ge++){var Me=tt.charAt(Ge),bt="'"+Me+"'";be[bt]||(be[bt]=ke(Me))}}Ae(We.pairs+"`");function ke(tt){return function(Ge){return Oe(Ge,tt)}}function Se(tt){var Ge=tt.state.closeBrackets;if(!Ge||Ge.override)return Ge;var Me=tt.getModeAt(tt.getCursor());return Me.closeBrackets||Ge}function pe(tt){var Ge=Se(tt);if(!Ge||tt.getOption("disableInput"))return ge.Pass;for(var Me=et(Ge,"pairs"),bt=tt.listSelections(),zt=0;zt<bt.length;zt++){if(!bt[zt].empty())return ge.Pass;var Ye=wt(tt,bt[zt].head);if(!Ye||Me.indexOf(Ye)%2!=0)return ge.Pass}for(var zt=bt.length-1;zt>=0;zt--){var it=bt[zt].head;tt.replaceRange("",Pe(it.line,it.ch-1),Pe(it.line,it.ch+1),"+delete")}}function Ie(tt){var Ge=Se(tt),Me=Ge&&et(Ge,"explode");if(!Me||tt.getOption("disableInput"))return ge.Pass;for(var bt=tt.listSelections(),zt=0;zt<bt.length;zt++){if(!bt[zt].empty())return ge.Pass;var Ye=wt(tt,bt[zt].head);if(!Ye||Me.indexOf(Ye)%2!=0)return ge.Pass}tt.operation(function(){var it=tt.lineSeparator()||`
`;tt.replaceSelection(it+it,null),tt.execCommand("goCharLeft"),bt=tt.listSelections();for(var Be=0;Be<bt.length;Be++){var xe=bt[Be].head.line;tt.indentLine(xe,null,!0),tt.indentLine(xe+1,null,!0)}})}function ot(tt){var Ge=ge.cmpPos(tt.anchor,tt.head)>0;return{anchor:new Pe(tt.anchor.line,tt.anchor.ch+(Ge?-1:1)),head:new Pe(tt.head.line,tt.head.ch+(Ge?1:-1))}}function Oe(tt,Ge){var Me=Se(tt);if(!Me||tt.getOption("disableInput"))return ge.Pass;var bt=et(Me,"pairs"),zt=bt.indexOf(Ge);if(zt==-1)return ge.Pass;for(var Ye=et(Me,"closeBefore"),it=et(Me,"triples"),Be=bt.charAt(zt+1)==Ge,xe=tt.listSelections(),Ke=zt%2==0,Ue,ft=0;ft<xe.length;ft++){var pt=xe[ft],Mt=pt.head,Qe,Rt=tt.getRange(Mt,Pe(Mt.line,Mt.ch+1));if(Ke&&!pt.empty())Qe="surround";else if((Be||!Ke)&&Rt==Ge)Be&&lt(tt,Mt)?Qe="both":it.indexOf(Ge)>=0&&tt.getRange(Mt,Pe(Mt.line,Mt.ch+3))==Ge+Ge+Ge?Qe="skipThree":Qe="skip";else if(Be&&Mt.ch>1&&it.indexOf(Ge)>=0&&tt.getRange(Pe(Mt.line,Mt.ch-2),Mt)==Ge+Ge){if(Mt.ch>2&&/\bstring/.test(tt.getTokenTypeAt(Pe(Mt.line,Mt.ch-2))))return ge.Pass;Qe="addFour"}else if(Be){var Dt=Mt.ch==0?" ":tt.getRange(Pe(Mt.line,Mt.ch-1),Mt);if(!ge.isWordChar(Rt)&&Dt!=Ge&&!ge.isWordChar(Dt))Qe="both";else return ge.Pass}else if(Ke&&(Rt.length===0||/\s/.test(Rt)||Ye.indexOf(Rt)>-1))Qe="both";else return ge.Pass;if(!Ue)Ue=Qe;else if(Ue!=Qe)return ge.Pass}var on=zt%2?bt.charAt(zt-1):Ge,Ut=zt%2?Ge:bt.charAt(zt+1);tt.operation(function(){if(Ue=="skip")tt.execCommand("goCharRight");else if(Ue=="skipThree")for(var wn=0;wn<3;wn++)tt.execCommand("goCharRight");else if(Ue=="surround"){for(var Xn=tt.getSelections(),wn=0;wn<Xn.length;wn++)Xn[wn]=on+Xn[wn]+Ut;tt.replaceSelections(Xn,"around"),Xn=tt.listSelections().slice();for(var wn=0;wn<Xn.length;wn++)Xn[wn]=ot(Xn[wn]);tt.setSelections(Xn)}else Ue=="both"?(tt.replaceSelection(on+Ut,null),tt.triggerElectric(on+Ut),tt.execCommand("goCharLeft")):Ue=="addFour"&&(tt.replaceSelection(on+on+on+on,"before"),tt.execCommand("goCharRight"))})}function wt(tt,Ge){var Me=tt.getRange(Pe(Ge.line,Ge.ch-1),Pe(Ge.line,Ge.ch+1));return Me.length==2?Me:null}function lt(tt,Ge){var Me=tt.getTokenAt(Pe(Ge.line,Ge.ch+1));return/\bstring/.test(Me.type)&&Me.start==Ge.ch&&(Ge.ch==0||!/\bstring/.test(tt.getTokenTypeAt(Ge)))}})},57341:function(hn,Zt,le){(function(ge){ge(le(4631),le(4786))})(function(ge){ge.defineOption("autoCloseTags",!1,function(pe,Ie,ot){if(ot!=ge.Init&&ot&&pe.removeKeyMap("autoCloseTags"),!!Ie){var Oe={name:"autoCloseTags"};(typeof Ie!="object"||Ie.whenClosing!==!1)&&(Oe["'/'"]=function(wt){return Ae(wt)}),(typeof Ie!="object"||Ie.whenOpening!==!1)&&(Oe["'>'"]=function(wt){return et(wt)}),pe.addKeyMap(Oe)}});var We=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Pe=["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 et(pe){if(pe.getOption("disableInput"))return ge.Pass;for(var Ie=pe.listSelections(),ot=[],Oe=pe.getOption("autoCloseTags"),wt=0;wt<Ie.length;wt++){if(!Ie[wt].empty())return ge.Pass;var lt=Ie[wt].head,tt=pe.getTokenAt(lt),Ge=ge.innerMode(pe.getMode(),tt.state),Me=Ge.state,bt=Ge.mode.xmlCurrentTag&&Ge.mode.xmlCurrentTag(Me),zt=bt&&bt.name;if(!zt)return ge.Pass;var Ye=Ge.mode.configuration=="html",it=typeof Oe=="object"&&Oe.dontCloseTags||Ye&&We,Be=typeof Oe=="object"&&Oe.indentTags||Ye&&Pe;tt.end>lt.ch&&(zt=zt.slice(0,zt.length-tt.end+lt.ch));var xe=zt.toLowerCase();if(!zt||tt.type=="string"&&(tt.end!=lt.ch||!/[\"\']/.test(tt.string.charAt(tt.string.length-1))||tt.string.length==1)||tt.type=="tag"&&bt.close||tt.string.indexOf("/")==lt.ch-tt.start-1||it&&ke(it,xe)>-1||Se(pe,Ge.mode.xmlCurrentContext&&Ge.mode.xmlCurrentContext(Me)||[],zt,lt,!0))return ge.Pass;var Ke=typeof Oe=="object"&&Oe.emptyTags;if(Ke&&ke(Ke,zt)>-1){ot[wt]={text:"/>",newPos:ge.Pos(lt.line,lt.ch+2)};continue}var Ue=Be&&ke(Be,xe)>-1;ot[wt]={indent:Ue,text:">"+(Ue?`
`:"")+"</"+zt+">",newPos:Ue?ge.Pos(lt.line+1,0):ge.Pos(lt.line,lt.ch+1)}}for(var ft=typeof Oe=="object"&&Oe.dontIndentOnAutoClose,wt=Ie.length-1;wt>=0;wt--){var pt=ot[wt];pe.replaceRange(pt.text,Ie[wt].head,Ie[wt].anchor,"+insert");var Mt=pe.listSelections().slice(0);Mt[wt]={head:pt.newPos,anchor:pt.newPos},pe.setSelections(Mt),!ft&&pt.indent&&(pe.indentLine(pt.newPos.line,null,!0),pe.indentLine(pt.newPos.line+1,null,!0))}}function be(pe,Ie){for(var ot=pe.listSelections(),Oe=[],wt=Ie?"/":"</",lt=pe.getOption("autoCloseTags"),tt=typeof lt=="object"&&lt.dontIndentOnSlash,Ge=0;Ge<ot.length;Ge++){if(!ot[Ge].empty())return ge.Pass;var Me=ot[Ge].head,bt=pe.getTokenAt(Me),zt=ge.innerMode(pe.getMode(),bt.state),Ye=zt.state;if(Ie&&(bt.type=="string"||bt.string.charAt(0)!="<"||bt.start!=Me.ch-1))return ge.Pass;var it,Be=zt.mode.name!="xml"&&pe.getMode().name=="htmlmixed";if(Be&&zt.mode.name=="javascript")it=wt+"script";else if(Be&&zt.mode.name=="css")it=wt+"style";else{var xe=zt.mode.xmlCurrentContext&&zt.mode.xmlCurrentContext(Ye);if(!xe||xe.length&&Se(pe,xe,xe[xe.length-1],Me))return ge.Pass;it=wt+xe[xe.length-1]}pe.getLine(Me.line).charAt(bt.end)!=">"&&(it+=">"),Oe[Ge]=it}if(pe.replaceSelections(Oe),ot=pe.listSelections(),!tt)for(var Ge=0;Ge<ot.length;Ge++)(Ge==ot.length-1||ot[Ge].head.line<ot[Ge+1].head.line)&&pe.indentLine(ot[Ge].head.line)}function Ae(pe){return pe.getOption("disableInput")?ge.Pass:be(pe,!0)}ge.commands.closeTag=function(pe){return be(pe)};function ke(pe,Ie){if(pe.indexOf)return pe.indexOf(Ie);for(var ot=0,Oe=pe.length;ot<Oe;++ot)if(pe[ot]==Ie)return ot;return-1}function Se(pe,Ie,ot,Oe,wt){if(!ge.scanForClosingTag)return!1;var lt=Math.min(pe.lastLine()+1,Oe.line+500),tt=ge.scanForClosingTag(pe,Oe,null,lt);if(!tt||tt.tag!=ot)return!1;for(var Ge=wt?1:0,Me=Ie.length-1;Me>=0&&Ie[Me]==ot;Me--)++Ge;Oe=tt.to;for(var Me=1;Me<Ge;Me++){var bt=ge.scanForClosingTag(pe,Oe,null,lt);if(!bt||bt.tag!=ot)return!1;Oe=bt.to}return!0}})},4786:function(hn,Zt,le){(function(ge){ge(le(4631))})(function(ge){"use strict";var We=ge.Pos;function Pe(Me,bt){return Me.line-bt.line||Me.ch-bt.ch}var et="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",be=et+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Ae=new RegExp("<(/?)(["+et+"]["+be+"]*)","g");function ke(Me,bt,zt,Ye){this.line=bt,this.ch=zt,this.cm=Me,this.text=Me.getLine(bt),this.min=Ye?Math.max(Ye.from,Me.firstLine()):Me.firstLine(),this.max=Ye?Math.min(Ye.to-1,Me.lastLine()):Me.lastLine()}function Se(Me,bt){var zt=Me.cm.getTokenTypeAt(We(Me.line,bt));return zt&&/\btag\b/.test(zt)}function pe(Me){if(!(Me.line>=Me.max))return Me.ch=0,Me.text=Me.cm.getLine(++Me.line),!0}function Ie(Me){if(!(Me.line<=Me.min))return Me.text=Me.cm.getLine(--Me.line),Me.ch=Me.text.length,!0}function ot(Me){for(;;){var bt=Me.text.indexOf(">",Me.ch);if(bt==-1){if(pe(Me))continue;return}if(!Se(Me,bt+1)){Me.ch=bt+1;continue}var zt=Me.text.lastIndexOf("/",bt),Ye=zt>-1&&!/\S/.test(Me.text.slice(zt+1,bt));return Me.ch=bt+1,Ye?"selfClose":"regular"}}function Oe(Me){for(;;){var bt=Me.ch?Me.text.lastIndexOf("<",Me.ch-1):-1;if(bt==-1){if(Ie(Me))continue;return}if(!Se(Me,bt+1)){Me.ch=bt;continue}Ae.lastIndex=bt,Me.ch=bt;var zt=Ae.exec(Me.text);if(zt&&zt.index==bt)return zt}}function wt(Me){for(;;){Ae.lastIndex=Me.ch;var bt=Ae.exec(Me.text);if(!bt){if(pe(Me))continue;return}if(!Se(Me,bt.index+1)){Me.ch=bt.index+1;continue}return Me.ch=bt.index+bt[0].length,bt}}function lt(Me){for(;;){var bt=Me.ch?Me.text.lastIndexOf(">",Me.ch-1):-1;if(bt==-1){if(Ie(Me))continue;return}if(!Se(Me,bt+1)){Me.ch=bt;continue}var zt=Me.text.lastIndexOf("/",bt),Ye=zt>-1&&!/\S/.test(Me.text.slice(zt+1,bt));return Me.ch=bt+1,Ye?"selfClose":"regular"}}function tt(Me,bt){for(var zt=[];;){var Ye=wt(Me),it,Be=Me.line,xe=Me.ch-(Ye?Ye[0].length:0);if(!Ye||!(it=ot(Me)))return;if(it!="selfClose")if(Ye[1]){for(var Ke=zt.length-1;Ke>=0;--Ke)if(zt[Ke]==Ye[2]){zt.length=Ke;break}if(Ke<0&&(!bt||bt==Ye[2]))return{tag:Ye[2],from:We(Be,xe),to:We(Me.line,Me.ch)}}else zt.push(Ye[2])}}function Ge(Me,bt){for(var zt=[];;){var Ye=lt(Me);if(!Ye)return;if(Ye=="selfClose"){Oe(Me);continue}var it=Me.line,Be=Me.ch,xe=Oe(Me);if(!xe)return;if(xe[1])zt.push(xe[2]);else{for(var Ke=zt.length-1;Ke>=0;--Ke)if(zt[Ke]==xe[2]){zt.length=Ke;break}if(Ke<0&&(!bt||bt==xe[2]))return{tag:xe[2],from:We(Me.line,Me.ch),to:We(it,Be)}}}}ge.registerHelper("fold","xml",function(Me,bt){for(var zt=new ke(Me,bt.line,0);;){var Ye=wt(zt);if(!Ye||zt.line!=bt.line)return;var it=ot(zt);if(!it)return;if(!Ye[1]&&it!="selfClose"){var Be=We(zt.line,zt.ch),xe=tt(zt,Ye[2]);return xe&&Pe(xe.from,Be)>0?{from:Be,to:xe.from}:null}}}),ge.findMatchingTag=function(Me,bt,zt){var Ye=new ke(Me,bt.line,bt.ch,zt);if(!(Ye.text.indexOf(">")==-1&&Ye.text.indexOf("<")==-1)){var it=ot(Ye),Be=it&&We(Ye.line,Ye.ch),xe=it&&Oe(Ye);if(!(!it||!xe||Pe(Ye,bt)>0)){var Ke={from:We(Ye.line,Ye.ch),to:Be,tag:xe[2]};return it=="selfClose"?{open:Ke,close:null,at:"open"}:xe[1]?{open:Ge(Ye,xe[2]),close:Ke,at:"close"}:(Ye=new ke(Me,Be.line,Be.ch,zt),{open:Ke,close:tt(Ye,xe[2]),at:"open"})}}},ge.findEnclosingTag=function(Me,bt,zt,Ye){for(var it=new ke(Me,bt.line,bt.ch,zt);;){var Be=Ge(it,Ye);if(!Be)break;var xe=new ke(Me,bt.line,bt.ch,zt),Ke=tt(xe,Be.tag);if(Ke)return{open:Be,close:Ke}}},ge.scanForClosingTag=function(Me,bt,zt,Ye){var it=new ke(Me,bt.line,bt.ch,Ye?{from:0,to:Ye}:null);return tt(it,zt)}})},4631:function(hn){(function(Zt,le){hn.exports=le()})(this,function(){"use strict";var Zt=navigator.userAgent,le=navigator.platform,ge=/gecko\/\d/i.test(Zt),We=/MSIE \d/.test(Zt),Pe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Zt),et=/Edge\/(\d+)/.exec(Zt),be=We||Pe||et,Ae=be&&(We?document.documentMode||6:+(et||Pe)[1]),ke=!et&&/WebKit\//.test(Zt),Se=ke&&/Qt\/\d+\.\d+/.test(Zt),pe=!et&&/Chrome\//.test(Zt),Ie=/Opera\//.test(Zt),ot=/Apple Computer/.test(navigator.vendor),Oe=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Zt),wt=/PhantomJS/.test(Zt),lt=!et&&/AppleWebKit/.test(Zt)&&/Mobile\/\w+/.test(Zt),tt=/Android/.test(Zt),Ge=lt||tt||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Zt),Me=lt||/Mac/.test(le),bt=/\bCrOS\b/.test(Zt),zt=/win/i.test(le),Ye=Ie&&Zt.match(/Version\/(\d*\.\d*)/);Ye&&(Ye=Number(Ye[1])),Ye&&Ye>=15&&(Ie=!1,ke=!0);var it=Me&&(Se||Ie&&(Ye==null||Ye<12.11)),Be=ge||be&&Ae>=9;function xe(x){return new RegExp("(^|\\s)"+x+"(?:$|\\s)\\s*")}var Ke=function(x,z){var ne=x.className,te=xe(z).exec(ne);if(te){var ie=ne.slice(te.index+te[0].length);x.className=ne.slice(0,te.index)+(ie?te[1]+ie:"")}};function Ue(x){for(var z=x.childNodes.length;z>0;--z)x.removeChild(x.firstChild);return x}function ft(x,z){return Ue(x).appendChild(z)}function pt(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.length;++ue)ie.appendChild(z[ue]);return ie}function Mt(x,z,ne,te){var ie=pt(x,z,ne,te);return ie.setAttribute("role","presentation"),ie}var Qe;document.createRange?Qe=function(x,z,ne,te){var ie=document.createRange();return ie.setEnd(te||x,ne),ie.setStart(x,z),ie}:Qe=function(x,z,ne){var te=document.body.createTextRange();try{te.moveToElementText(x.parentNode)}catch(ie){return te}return te.collapse(!0),te.moveEnd("character",ne),te.moveStart("character",z),te};function Rt(x,z){if(z.nodeType==3&&(z=z.parentNode),x.contains)return x.contains(z);do if(z.nodeType==11&&(z=z.host),z==x)return!0;while(z=z.parentNode)}function Dt(){var x;try{x=document.activeElement}catch(z){x=document.body||null}for(;x&&x.shadowRoot&&x.shadowRoot.activeElement;)x=x.shadowRoot.activeElement;return x}function on(x,z){var ne=x.className;xe(z).test(ne)||(x.className+=(ne?" ":"")+z)}function Ut(x,z){for(var ne=x.split(" "),te=0;te<ne.length;te++)ne[te]&&!xe(ne[te]).test(z)&&(z+=" "+ne[te]);return z}var wn=function(x){x.select()};lt?wn=function(x){x.selectionStart=0,x.selectionEnd=x.value.length}:be&&(wn=function(x){try{x.select()}catch(z){}});function Xn(x){var z=Array.prototype.slice.call(arguments,1);return function(){return x.apply(null,z)}}function nr(x,z,ne){z||(z={});for(var te in x)x.hasOwnProperty(te)&&(ne!==!1||!z.hasOwnProperty(te))&&(z[te]=x[te]);return z}function Je(x,z,ne,te,ie){z==null&&(z=x.search(/[^\s\u00a0]/),z==-1&&(z=x.length));for(var ue=te||0,ve=ie||0;;){var Ce=x.indexOf(" ",ue);if(Ce<0||Ce>=z)return ve+(z-ue);ve+=Ce-ue,ve+=ne-ve%ne,ue=Ce+1}}var _e=function(){this.id=null,this.f=null,this.time=0,this.handler=Xn(this.onTimeout,this)};_e.prototype.onTimeout=function(x){x.id=0,x.time<=+new Date?x.f():setTimeout(x.handler,x.time-+new Date)},_e.prototype.set=function(x,z){this.f=z;var ne=+new Date+x;(!this.id||ne<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,x),this.time=ne)};function Ft(x,z){for(var ne=0;ne<x.length;++ne)if(x[ne]==z)return ne;return-1}var Sn=50,an={toString:function(){return"CodeMirror.Pass"}},nt={scroll:!1},at={origin:"*mouse"},$t={origin:"+move"};function kn(x,z,ne){for(var te=0,ie=0;;){var ue=x.indexOf(" ",te);ue==-1&&(ue=x.length);var ve=ue-te;if(ue==x.length||ie+ve>=z)return te+Math.min(ve,z-ie);if(ie+=ue-te,ie+=ne-ie%ne,te=ue+1,ie>=z)return te}}var Ht=[""];function It(x){for(;Ht.length<=x;)Ht.push(Ct(Ht)+" ");return Ht[x]}function Ct(x){return x[x.length-1]}function tn(x,z){for(var ne=[],te=0;te<x.length;te++)ne[te]=z(x[te],te);return ne}function pn(x,z,ne){for(var te=0,ie=ne(z);te<x.length&&ne(x[te])<=ie;)te++;x.splice(te,0,z)}function Ee(){}function ce(x,z){var ne;return Object.create?ne=Object.create(x):(Ee.prototype=x,ne=new Ee),z&&nr(z,ne),ne}var se=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function fe(x){return/\w/.test(x)||x>"\x80"&&(x.toUpperCase()!=x.toLowerCase()||se.test(x))}function de(x,z){return z?z.source.indexOf("\\w")>-1&&fe(x)?!0:z.test(x):fe(x)}function oe(x){for(var z in x)if(x.hasOwnProperty(z)&&x[z])return!1;return!0}var Te=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function je(x){return x.charCodeAt(0)>=768&&Te.test(x)}function Et(x,z,ne){for(;(ne<0?z>0:z<x.length)&&je(x.charAt(z));)z+=ne;return z}function At(x,z,ne){for(var te=z>ne?-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 Ot(x,z,ne,te){if(!x)return te(z,ne,"ltr",0);for(var ie=!1,ue=0;ue<x.length;++ue){var ve=x[ue];(ve.from<ne&&ve.to>z||z==ne&&ve.to==z)&&(te(Math.max(ve.from,z),Math.min(ve.to,ne),ve.level==1?"rtl":"ltr",ue),ie=!0)}ie||te(z,ne,"ltr")}var Bt=null;function Nt(x,z,ne){var te;Bt=null;for(var ie=0;ie<x.length;++ie){var ue=x[ie];if(ue.from<z&&ue.to>z)return ie;ue.to==z&&(ue.from!=ue.to&&ne=="before"?te=ie:Bt=ie),ue.from==z&&(ue.from!=ue.to&&ne!="before"?te=ie:Bt=ie)}return te!=null?te:Bt}var zn=function(){var x="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",z="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ne(Ne){return Ne<=247?x.charAt(Ne):1424<=Ne&&Ne<=1524?"R":1536<=Ne&&Ne<=1785?z.charAt(Ne-1536):1774<=Ne&&Ne<=2220?"r":8192<=Ne&&Ne<=8203?"w":Ne==8204?"b":"L"}var te=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ie=/[stwN]/,ue=/[LRr]/,ve=/[Lb1n]/,Ce=/[1n]/;function De(Ne,ut,St){this.level=Ne,this.from=ut,this.to=St}return function(Ne,ut){var St=ut=="ltr"?"L":"R";if(Ne.length==0||ut=="ltr"&&!te.test(Ne))return!1;for(var en=Ne.length,jt=[],Rn=0;Rn<en;++Rn)jt.push(ne(Ne.charCodeAt(Rn)));for(var Qn=0,yr=St;Qn<en;++Qn){var Ir=jt[Qn];Ir=="m"?jt[Qn]=yr:yr=Ir}for(var zr=0,Lr=St;zr<en;++zr){var Hr=jt[zr];Hr=="1"&&Lr=="r"?jt[zr]="n":ue.test(Hr)&&(Lr=Hr,Hr=="r"&&(jt[zr]="R"))}for(var vi=1,Si=jt[0];vi<en-1;++vi){var ca=jt[vi];ca=="+"&&Si=="1"&&jt[vi+1]=="1"?jt[vi]="1":ca==","&&Si==jt[vi+1]&&(Si=="1"||Si=="n")&&(jt[vi]=Si),Si=ca}for(var to=0;to<en;++to){var $o=jt[to];if($o==",")jt[to]="N";else if($o=="%"){var bo=void 0;for(bo=to+1;bo<en&&jt[bo]=="%";++bo);for(var cs=to&&jt[to-1]=="!"||bo<en&&jt[bo]=="1"?"1":"N",ds=to;ds<bo;++ds)jt[ds]=cs;to=bo-1}}for(var _o=0,fs=St;_o<en;++_o){var Ui=jt[_o];fs=="L"&&Ui=="1"?jt[_o]="L":ue.test(Ui)&&(fs=Ui)}for(var So=0;So<en;++So)if(ie.test(jt[So])){var xo=void 0;for(xo=So+1;xo<en&&ie.test(jt[xo]);++xo);for(var Co=(So?jt[So-1]:St)=="L",ko=(xo<en?jt[xo]:St)=="L",$l=Co==ko?Co?"L":"R":St,ys=So;ys<xo;++ys)jt[ys]=$l;So=xo-1}for(var jo=[],$a,Ro=0;Ro<en;)if(ve.test(jt[Ro])){var Mc=Ro;for(++Ro;Ro<en&&ve.test(jt[Ro]);++Ro);jo.push(new De(0,Mc,Ro))}else{var sl=Ro,xl=jo.length,Us=ut=="rtl"?1:0;for(++Ro;Ro<en&&jt[Ro]!="L";++Ro);for(var Bo=sl;Bo<Ro;)if(Ce.test(jt[Bo])){sl<Bo&&(jo.splice(xl,0,new De(1,sl,Bo)),xl+=Us);var Vl=Bo;for(++Bo;Bo<Ro&&Ce.test(jt[Bo]);++Bo);jo.splice(xl,0,new De(2,Vl,Bo)),xl+=Us,sl=Bo}else++Bo;sl<Ro&&jo.splice(xl,0,new De(1,sl,Ro))}return ut=="ltr"&&(jo[0].level==1&&($a=Ne.match(/^\s+/))&&(jo[0].from=$a[0].length,jo.unshift(new De(0,0,$a[0].length))),Ct(jo).level==1&&($a=Ne.match(/\s+$/))&&(Ct(jo).to-=$a[0].length,jo.push(new De(0,en-$a[0].length,en)))),ut=="rtl"?jo.reverse():jo}}();function Gn(x,z){var ne=x.order;return ne==null&&(ne=x.order=zn(x.text,z)),ne}var _t=[],cn=function(x,z,ne){if(x.addEventListener)x.addEventListener(z,ne,!1);else if(x.attachEvent)x.attachEvent("on"+z,ne);else{var te=x._handlers||(x._handlers={});te[z]=(te[z]||_t).concat(ne)}};function Jn(x,z){return x._handlers&&x._handlers[z]||_t}function lr(x,z,ne){if(x.removeEventListener)x.removeEventListener(z,ne,!1);else if(x.detachEvent)x.detachEvent("on"+z,ne);else{var te=x._handlers,ie=te&&te[z];if(ie){var ue=Ft(ie,ne);ue>-1&&(te[z]=ie.slice(0,ue).concat(ie.slice(ue+1)))}}}function En(x,z){var ne=Jn(x,z);if(ne.length)for(var te=Array.prototype.slice.call(arguments,2),ie=0;ie<ne.length;++ie)ne[ie].apply(null,te)}function wr(x,z,ne){return typeof z=="string"&&(z={type:z,preventDefault:function(){this.defaultPrevented=!0}}),En(x,ne||z.type,x,z),ti(z)||z.codemirrorIgnore}function xi(x){var z=x._handlers&&x._handlers.cursorActivity;if(z)for(var ne=x.curOp.cursorActivityHandlers||(x.curOp.cursorActivityHandlers=[]),te=0;te<z.length;++te)Ft(ne,z[te])==-1&&ne.push(z[te])}function ei(x,z){return Jn(x,z).length>0}function Yr(x){x.prototype.on=function(z,ne){cn(this,z,ne)},x.prototype.off=function(z,ne){lr(this,z,ne)}}function Gr(x){x.preventDefault?x.preventDefault():x.returnValue=!1}function Ai(x){x.stopPropagation?x.stopPropagation():x.cancelBubble=!0}function ti(x){return x.defaultPrevented!=null?x.defaultPrevented:x.returnValue==!1}function ki(x){Gr(x),Ai(x)}function Ri(x){return x.target||x.srcElement}function jn(x){var z=x.which;return z==null&&(x.button&1?z=1:x.button&2?z=3:x.button&4&&(z=2)),Me&&x.ctrlKey&&z==1&&(z=3),z}var Pi=function(){if(be&&Ae<9)return!1;var x=pt("div");return"draggable"in x||"dragDrop"in x}(),va;function da(x){if(va==null){var z=pt("span","\u200B");ft(x,pt("span",[z,document.createTextNode("x")])),x.firstChild.offsetHeight!=0&&(va=z.offsetWidth<=1&&z.offsetHeight>2&&!(be&&Ae<8))}var ne=va?pt("span","\u200B"):pt("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ne.setAttribute("cm-text",""),ne}var ya;function ea(x){if(ya!=null)return ya;var z=ft(x,document.createTextNode("A\u062EA")),ne=Qe(z,0,1).getBoundingClientRect(),te=Qe(z,1,2).getBoundingClientRect();return Ue(x),!ne||ne.left==ne.right?!1:ya=te.right-ne.right<3}var kt=`
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),ve=ue.indexOf("\r");ve!=-1?(ne.push(ue.slice(0,ve)),z+=ve+1):(ne.push(ue),z=ie+1)}return ne}:function(x){return x.split(/\r\n?|\n/)},bn=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},Tn=function(){var x=pt("div");return"oncopy"in x?!0:(x.setAttribute("oncopy","return;"),typeof x.oncopy=="function")}(),In=null;function kr(x){if(In!=null)return In;var z=ft(x,pt("span","x")),ne=z.getBoundingClientRect(),te=Qe(z,0,1).getBoundingClientRect();return In=Math.abs(ne.left-te.left)>1}var qn={},hr={};function On(x,z){arguments.length>2&&(z.dependencies=Array.prototype.slice.call(arguments,2)),qn[x]=z}function qe(x,z){hr[x]=z}function st(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=ce(z,x),x.name=z.name}else{if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(x))return st("application/xml");if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(x))return st("application/json")}return typeof x=="string"?{name:x}:x||{name:"null"}}function Lt(x,z){z=st(z);var ne=qn[z.name];if(!ne)return Lt(x,"text/plain");var te=ne(x,z);if(qt.hasOwnProperty(z.name)){var ie=qt[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 ve in z.modeProps)te[ve]=z.modeProps[ve];return te}var qt={};function Ve(x,z){var ne=qt.hasOwnProperty(x)?qt[x]:qt[x]={};nr(z,ne)}function gt(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 Kt(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 Pt(x,z,ne){return x.startState?x.startState(z,ne):!0}var Gt=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};Gt.prototype.eol=function(){return this.pos>=this.string.length},Gt.prototype.sol=function(){return this.pos==this.lineStart},Gt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Gt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Gt.prototype.eat=function(x){var z=this.string.charAt(this.pos),ne;if(typeof x=="string"?ne=z==x:ne=z&&(x.test?x.test(z):x(z)),ne)return++this.pos,z},Gt.prototype.eatWhile=function(x){for(var z=this.pos;this.eat(x););return this.pos>z},Gt.prototype.eatSpace=function(){for(var x=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>x},Gt.prototype.skipToEnd=function(){this.pos=this.string.length},Gt.prototype.skipTo=function(x){var z=this.string.indexOf(x,this.pos);if(z>-1)return this.pos=z,!0},Gt.prototype.backUp=function(x){this.pos-=x},Gt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Je(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Je(this.string,this.lineStart,this.tabSize):0)},Gt.prototype.indentation=function(){return Je(this.string,null,this.tabSize)-(this.lineStart?Je(this.string,this.lineStart,this.tabSize):0)},Gt.prototype.match=function(x,z,ne){if(typeof x=="string"){var te=function(ve){return ne?ve.toLowerCase():ve},ie=this.string.substr(this.pos,x.length);if(te(ie)==te(x))return z!==!1&&(this.pos+=x.length),!0}else{var ue=this.string.slice(this.pos).match(x);return ue&&ue.index>0?null:(ue&&z!==!1&&(this.pos+=ue[0].length),ue)}},Gt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Gt.prototype.hideFirstChars=function(x,z){this.lineStart+=x;try{return z()}finally{this.lineStart-=x}},Gt.prototype.lookAhead=function(x){var z=this.lineOracle;return z&&z.lookAhead(x)},Gt.prototype.baseToken=function(){var x=this.lineOracle;return x&&x.baseToken(this.pos)};function Vt(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<ue){ne=ie;break}z-=ue}return ne.lines[z]}function Pn(x,z,ne){var te=[],ie=z.line;return x.iter(z.line,ne.line+1,function(ue){var ve=ue.text;ie==ne.line&&(ve=ve.slice(0,ne.ch)),ie==z.line&&(ve=ve.slice(z.ch)),te.push(ve),++ie}),te}function mr(x,z,ne){var te=[];return x.iter(z,ne,function(ie){te.push(ie.text)}),te}function Vn(x,z){var ne=z-x.height;if(ne)for(var te=x;te;te=te.parent)te.height+=ne}function Un(x){if(x.parent==null)return null;for(var z=x.parent,ne=Ft(z.lines,x),te=z.parent;te;z=te,te=te.parent)for(var ie=0;te.children[ie]!=z;++ie)ne+=te.children[ie].chunkSize();return ne+z.first}function er(x,z){var ne=x.first;e:do{for(var te=0;te<x.children.length;++te){var ie=x.children[te],ue=ie.height;if(z<ue){x=ie;continue e}z-=ue,ne+=ie.chunkSize()}return ne}while(!x.lines);for(var ve=0;ve<x.lines.length;++ve){var Ce=x.lines[ve],De=Ce.height;if(z<De)break;z-=De}return ne+ve}function rr(x,z){return z>=x.first&&z<x.first+x.size}function Dr(x,z){return String(x.lineNumberFormatter(z+x.firstLineNumber))}function dn(x,z,ne){if(ne===void 0&&(ne=null),!(this instanceof dn))return new dn(x,z,ne);this.line=x,this.ch=z,this.sticky=ne}function Hn(x,z){return x.line-z.line||x.ch-z.ch}function pi(x,z){return x.sticky==z.sticky&&Hn(x,z)==0}function wi(x){return dn(x.line,x.ch)}function Zr(x,z){return Hn(x,z)<0?z:x}function Or(x,z){return Hn(x,z)<0?x:z}function Li(x,z){return Math.max(x.first,Math.min(z,x.first+x.size-1))}function dr(x,z){if(z.line<x.first)return dn(x.first,0);var ne=x.first+x.size-1;return z.line>ne?dn(ne,Vt(x,ne).text.length):ci(z,Vt(x,z.line).text.length)}function ci(x,z){var ne=x.ch;return ne==null||ne>z?dn(x.line,z):ne<0?dn(x.line,0):x}function vn(x,z){for(var ne=[],te=0;te<z.length;te++)ne[te]=dr(x,z[te]);return ne}var Yi=function(x,z){this.state=x,this.lookAhead=z},Di=function(x,z,ne,te){this.state=z,this.doc=x,this.line=ne,this.maxLookAhead=te||0,this.baseTokens=null,this.baseTokenPos=1};Di.prototype.lookAhead=function(x){var z=this.doc.getLine(this.line+x);return z!=null&&x>this.maxLookAhead&&(this.maxLookAhead=x),z},Di.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}},Di.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Di.fromSaved=function(x,z,ne){return z instanceof Yi?new Di(x,gt(x.mode,z.state),ne,z.lookAhead):new Di(x,gt(x.mode,z),ne)},Di.prototype.save=function(x){var z=x!==!1?gt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Yi(z,this.maxLookAhead):z};function wa(x,z,ne,te){var ie=[x.state.modeGen],ue={};Fi(x,z.text,x.doc.mode,ne,function(Ne,ut){return ie.push(Ne,ut)},ue,te);for(var ve=ne.state,Ce=function(Ne){ne.baseTokens=ie;var ut=x.state.overlays[Ne],St=1,en=0;ne.state=!0,Fi(x,z.text,ut.mode,ne,function(jt,Rn){for(var Qn=St;en<jt;){var yr=ie[St];yr>jt&&ie.splice(St,1,jt,ie[St+1],yr),St+=2,en=Math.min(jt,yr)}if(Rn)if(ut.opaque)ie.splice(Qn,St-Qn,jt,"overlay "+Rn),St=Qn+2;else for(;Qn<St;Qn+=2){var Ir=ie[Qn+1];ie[Qn+1]=(Ir?Ir+" ":"")+"overlay "+Rn}},ue),ne.state=ve,ne.baseTokens=null,ne.baseTokenPos=1},De=0;De<x.state.overlays.length;++De)Ce(De);return{styles:ie,classes:ue.bgClass||ue.textClass?ue:null}}function Xi(x,z,ne){if(!z.styles||z.styles[0]!=x.state.modeGen){var te=_i(x,Un(z)),ie=z.text.length>x.options.maxHighlightLength&&gt(x.doc.mode,te.state),ue=wa(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 _i(x,z,ne){var te=x.doc,ie=x.display;if(!te.mode.startState)return new Di(te,!0,z);var ue=Aa(x,z,ne),ve=ue>te.first&&Vt(te,ue-1).stateAfter,Ce=ve?Di.fromSaved(te,ve,ue):new Di(te,Pt(te.mode),ue);return te.iter(ue,z,function(De){fa(x,De.text,Ce);var Ne=Ce.line;De.stateAfter=Ne==z-1||Ne%5==0||Ne>=ie.viewFrom&&Ne<ie.viewTo?Ce.save():null,Ce.nextLine()}),ne&&(te.modeFrontier=Ce.line),Ce}function fa(x,z,ne,te){var ie=x.doc.mode,ue=new Gt(z,x.options.tabSize,ne);for(ue.start=ue.pos=te||0,z==""&&Gi(ie,ne.state);!ue.eol();)Ci(ie,ue,ne.state),ue.start=ue.pos}function Gi(x,z){if(x.blankLine)return x.blankLine(z);if(x.innerMode){var ne=Kt(x,z);if(ne.mode.blankLine)return ne.mode.blankLine(ne.state)}}function Ci(x,z,ne,te){for(var ie=0;ie<10;ie++){te&&(te[0]=Kt(x,ne).mode);var ue=x.token(z,ne);if(z.pos>z.start)return ue}throw new Error("Mode "+x.name+" failed to advance stream.")}var ta=function(x,z,ne){this.start=x.start,this.end=x.pos,this.string=x.current(),this.type=z||null,this.state=ne};function ka(x,z,ne,te){var ie=x.doc,ue=ie.mode,ve;z=dr(ie,z);var Ce=Vt(ie,z.line),De=_i(x,z.line,ne),Ne=new Gt(Ce.text,x.options.tabSize,De),ut;for(te&&(ut=[]);(te||Ne.pos<z.ch)&&!Ne.eol();)Ne.start=Ne.pos,ve=Ci(ue,Ne,De.state),te&&ut.push(new ta(Ne,ve,gt(ie.mode,De.state)));return te?ut:new ta(Ne,ve,De.state)}function na(x,z){if(x)for(;;){var ne=x.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ne)break;x=x.slice(0,ne.index)+x.slice(ne.index+ne[0].length);var te=ne[1]?"bgClass":"textClass";z[te]==null?z[te]=ne[2]:new RegExp("(?:^|\\s)"+ne[2]+"(?:$|\\s)").test(z[te])||(z[te]+=" "+ne[2])}return x}function Fi(x,z,ne,te,ie,ue,ve){var Ce=ne.flattenSpans;Ce==null&&(Ce=x.options.flattenSpans);var De=0,Ne=null,ut=new Gt(z,x.options.tabSize,te),St,en=x.options.addModeClass&&[null];for(z==""&&na(Gi(ne,te.state),ue);!ut.eol();){if(ut.pos>x.options.maxHighlightLength?(Ce=!1,ve&&fa(x,z,te,ut.pos),ut.pos=z.length,St=null):St=na(Ci(ne,ut,te.state,en),ue),en){var jt=en[0].name;jt&&(St="m-"+(St?jt+" "+St:jt))}if(!Ce||Ne!=St){for(;De<ut.start;)De=Math.min(ut.start,De+5e3),ie(De,Ne);Ne=St}ut.start=ut.pos}for(;De<ut.pos;){var Rn=Math.min(ut.pos,De+5e3);ie(Rn,Ne),De=Rn}}function Aa(x,z,ne){for(var te,ie,ue=x.doc,ve=ne?-1:z-(x.doc.mode.innerMode?1e3:100),Ce=z;Ce>ve;--Ce){if(Ce<=ue.first)return ue.first;var De=Vt(ue,Ce-1),Ne=De.stateAfter;if(Ne&&(!ne||Ce+(Ne instanceof Yi?Ne.lookAhead:0)<=ue.modeFrontier))return Ce;var ut=Je(De.text,null,x.options.tabSize);(ie==null||te>ut)&&(ie=Ce-1,te=ut)}return ie}function Ba(x,z){if(x.modeFrontier=Math.min(x.modeFrontier,z),!(x.highlightFrontier<z-10)){for(var ne=x.first,te=z-1;te>ne;te--){var ie=Vt(x,te).stateAfter;if(ie&&(!(ie instanceof Yi)||te+ie.lookAhead<z)){ne=te+1;break}}x.highlightFrontier=Math.min(x.highlightFrontier,ne)}}var ha=!1,oi=!1;function vt(){ha=!0}function ht(){oi=!0}function Wt(x,z,ne){this.marker=x,this.from=z,this.to=ne}function rn(x,z){if(x)for(var ne=0;ne<x.length;++ne){var te=x[ne];if(te.marker==z)return te}}function Mn(x,z){for(var ne,te=0;te<x.length;++te)x[te]!=z&&(ne||(ne=[])).push(x[te]);return ne}function Cr(x,z){x.markedSpans=x.markedSpans?x.markedSpans.concat([z]):[z],z.marker.attachLine(x)}function Sr(x,z,ne){var te;if(x)for(var ie=0;ie<x.length;++ie){var ue=x[ie],ve=ue.marker,Ce=ue.from==null||(ve.inclusiveLeft?ue.from<=z:ue.from<z);if(Ce||ue.from==z&&ve.type=="bookmark"&&(!ne||!ue.marker.insertLeft)){var De=ue.to==null||(ve.inclusiveRight?ue.to>=z:ue.to>z);(te||(te=[])).push(new Wt(ve,ue.from,De?null:ue.to))}}return te}function Tr(x,z,ne){var te;if(x)for(var ie=0;ie<x.length;++ie){var ue=x[ie],ve=ue.marker,Ce=ue.to==null||(ve.inclusiveRight?ue.to>=z:ue.to>z);if(Ce||ue.from==z&&ve.type=="bookmark"&&(!ne||ue.marker.insertLeft)){var De=ue.from==null||(ve.inclusiveLeft?ue.from<=z:ue.from<z);(te||(te=[])).push(new Wt(ve,De?null:ue.from-z,ue.to==null?null:ue.to-z))}}return te}function Fr(x,z){if(z.full)return null;var ne=rr(x,z.from.line)&&Vt(x,z.from.line).markedSpans,te=rr(x,z.to.line)&&Vt(x,z.to.line).markedSpans;if(!ne&&!te)return null;var ie=z.from.ch,ue=z.to.ch,ve=Hn(z.from,z.to)==0,Ce=Sr(ne,ie,ve),De=Tr(te,ue,ve),Ne=z.text.length==1,ut=Ct(z.text).length+(Ne?ie:0);if(Ce)for(var St=0;St<Ce.length;++St){var en=Ce[St];if(en.to==null){var jt=rn(De,en.marker);jt?Ne&&(en.to=jt.to==null?null:jt.to+ut):en.to=ie}}if(De)for(var Rn=0;Rn<De.length;++Rn){var Qn=De[Rn];if(Qn.to!=null&&(Qn.to+=ut),Qn.from==null){var yr=rn(Ce,Qn.marker);yr||(Qn.from=ut,Ne&&(Ce||(Ce=[])).push(Qn))}else Qn.from+=ut,Ne&&(Ce||(Ce=[])).push(Qn)}Ce&&(Ce=_r(Ce)),De&&De!=Ce&&(De=_r(De));var Ir=[Ce];if(!Ne){var zr=z.text.length-2,Lr;if(zr>0&&Ce)for(var Hr=0;Hr<Ce.length;++Hr)Ce[Hr].to==null&&(Lr||(Lr=[])).push(new Wt(Ce[Hr].marker,null,null));for(var vi=0;vi<zr;++vi)Ir.push(Lr);Ir.push(De)}return Ir}function _r(x){for(var z=0;z<x.length;++z){var ne=x[z];ne.from!=null&&ne.from==ne.to&&ne.marker.clearWhenEmpty!==!1&&x.splice(z--,1)}return x.length?x:null}function ni(x,z,ne){var te=null;if(x.iter(z.line,ne.line+1,function(jt){if(jt.markedSpans)for(var Rn=0;Rn<jt.markedSpans.length;++Rn){var Qn=jt.markedSpans[Rn].marker;Qn.readOnly&&(!te||Ft(te,Qn)==-1)&&(te||(te=[])).push(Qn)}}),!te)return null;for(var ie=[{from:z,to:ne}],ue=0;ue<te.length;++ue)for(var ve=te[ue],Ce=ve.find(0),De=0;De<ie.length;++De){var Ne=ie[De];if(!(Hn(Ne.to,Ce.from)<0||Hn(Ne.from,Ce.to)>0)){var ut=[De,1],St=Hn(Ne.from,Ce.from),en=Hn(Ne.to,Ce.to);(St<0||!ve.inclusiveLeft&&!St)&&ut.push({from:Ne.from,to:Ce.from}),(en>0||!ve.inclusiveRight&&!en)&&ut.push({from:Ce.to,to:Ne.to}),ie.splice.apply(ie,ut),De+=ut.length-3}}return ie}function di(x){var z=x.markedSpans;if(z){for(var ne=0;ne<z.length;++ne)z[ne].marker.detachLine(x);x.markedSpans=null}}function Ei(x,z){if(z){for(var ne=0;ne<z.length;++ne)z[ne].marker.attachLine(x);x.markedSpans=z}}function ji(x){return x.inclusiveLeft?-1:0}function $i(x){return x.inclusiveRight?1:0}function zi(x,z){var ne=x.lines.length-z.lines.length;if(ne!=0)return ne;var te=x.find(),ie=z.find(),ue=Hn(te.from,ie.from)||ji(x)-ji(z);if(ue)return-ue;var ve=Hn(te.to,ie.to)||$i(x)-$i(z);return ve||z.id-x.id}function Le(x,z){var ne=oi&&x.markedSpans,te;if(ne)for(var ie=void 0,ue=0;ue<ne.length;++ue)ie=ne[ue],ie.marker.collapsed&&(z?ie.from:ie.to)==null&&(!te||zi(te,ie.marker)<0)&&(te=ie.marker);return te}function ze(x){return Le(x,!0)}function Fe(x){return Le(x,!1)}function Ze(x,z){var ne=oi&&x.markedSpans,te;if(ne)for(var ie=0;ie<ne.length;++ie){var ue=ne[ie];ue.marker.collapsed&&(ue.from==null||ue.from<z)&&(ue.to==null||ue.to>z)&&(!te||zi(te,ue.marker)<0)&&(te=ue.marker)}return te}function rt(x,z,ne,te,ie){var ue=Vt(x,z),ve=oi&&ue.markedSpans;if(ve)for(var Ce=0;Ce<ve.length;++Ce){var De=ve[Ce];if(De.marker.collapsed){var Ne=De.marker.find(0),ut=Hn(Ne.from,ne)||ji(De.marker)-ji(ie),St=Hn(Ne.to,te)||$i(De.marker)-$i(ie);if(!(ut>=0&&St<=0||ut<=0&&St>=0)&&(ut<=0&&(De.marker.inclusiveRight&&ie.inclusiveLeft?Hn(Ne.to,ne)>=0:Hn(Ne.to,ne)>0)||ut>=0&&(De.marker.inclusiveRight&&ie.inclusiveLeft?Hn(Ne.from,te)<=0:Hn(Ne.from,te)<0)))return!0}}}function dt(x){for(var z;z=ze(x);)x=z.find(-1,!0).line;return x}function yt(x){for(var z;z=Fe(x);)x=z.find(1,!0).line;return x}function Xt(x){for(var z,ne;z=Fe(x);)x=z.find(1,!0).line,(ne||(ne=[])).push(x);return ne}function Jt(x,z){var ne=Vt(x,z),te=dt(ne);return ne==te?z:Un(te)}function Fn(x,z){if(z>x.lastLine())return z;var ne=Vt(x,z),te;if(!ir(x,ne))return z;for(;te=Fe(ne);)ne=te.find(1,!0).line;return Un(ne)+1}function ir(x,z){var ne=oi&&z.markedSpans;if(ne){for(var te=void 0,ie=0;ie<ne.length;++ie)if(te=ne[ie],!!te.marker.collapsed){if(te.from==null)return!0;if(!te.marker.widgetNode&&te.from==0&&te.marker.inclusiveLeft&&_n(x,z,te))return!0}}}function _n(x,z,ne){if(ne.to==null){var te=ne.marker.find(1,!0);return _n(x,te.line,rn(te.line.markedSpans,ne.marker))}if(ne.marker.inclusiveRight&&ne.to==z.text.length)return!0;for(var ie=void 0,ue=0;ue<z.markedSpans.length;++ue)if(ie=z.markedSpans[ue],ie.marker.collapsed&&!ie.marker.widgetNode&&ie.from==ne.to&&(ie.to==null||ie.to!=ne.from)&&(ie.marker.inclusiveLeft||ne.marker.inclusiveRight)&&_n(x,z,ie))return!0}function sn(x){x=dt(x);for(var z=0,ne=x.parent,te=0;te<ne.lines.length;++te){var ie=ne.lines[te];if(ie==x)break;z+=ie.height}for(var ue=ne.parent;ue;ne=ue,ue=ne.parent)for(var ve=0;ve<ue.children.length;++ve){var Ce=ue.children[ve];if(Ce==ne)break;z+=Ce.height}return z}function nn(x){if(x.height==0)return 0;for(var z=x.text.length,ne,te=x;ne=ze(te);){var ie=ne.find(0,!0);te=ie.from.line,z+=ie.from.ch-ie.to.ch}for(te=x;ne=Fe(te);){var ue=ne.find(0,!0);z-=te.text.length-ue.from.ch,te=ue.to.line,z+=te.text.length-ue.to.ch}return z}function gn(x){var z=x.display,ne=x.doc;z.maxLine=Vt(ne,ne.first),z.maxLineLength=nn(z.maxLine),z.maxLineChanged=!0,ne.iter(function(te){var ie=nn(te);ie>z.maxLineLength&&(z.maxLineLength=ie,z.maxLine=te)})}var xn=function(x,z,ne){this.text=x,Ei(this,z),this.height=ne?ne(this):1};xn.prototype.lineNo=function(){return Un(this)},Yr(xn);function tr(x,z,ne,te){x.text=z,x.stateAfter&&(x.stateAfter=null),x.styles&&(x.styles=null),x.order!=null&&(x.order=null),di(x),Ei(x,ne);var ie=te?te(x):1;ie!=x.height&&Vn(x,ie)}function Kn(x){x.parent=null,di(x)}var Nn={},$n={};function Wn(x,z){if(!x||/^\s*$/.test(x))return null;var ne=z.addModeClass?$n:Nn;return ne[x]||(ne[x]=x.replace(/\S+/g,"cm-$&"))}function or(x,z){var ne=Mt("span",null,null,ke?"padding-right: .1px":null),te={pre:Mt("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,ve=void 0;te.pos=0,te.addToken=$e,ea(x.display.measure)&&(ve=Gn(ue,x.doc.direction))&&(te.addToken=mt(te.addToken,ve)),te.map=[];var Ce=z!=x.display.externalMeasured&&Un(ue);fn(ue,te,Xi(x,ue,Ce)),ue.styleClasses&&(ue.styleClasses.bgClass&&(te.bgClass=Ut(ue.styleClasses.bgClass,te.bgClass||"")),ue.styleClasses.textClass&&(te.textClass=Ut(ue.styleClasses.textClass,te.textClass||""))),te.map.length==0&&te.map.push(0,0,te.content.appendChild(da(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(ke){var De=te.content.lastChild;(/\bcm-tab\b/.test(De.className)||De.querySelector&&De.querySelector(".cm-tab"))&&(te.content.className="cm-tab-wrap-hack")}return En(x,"renderLine",x,z.line,te.pre),te.pre.className&&(te.textClass=Ut(te.pre.className,te.textClass||"")),te}function He(x){var z=pt("span","\u2022","cm-invalidchar");return z.title="\\u"+x.charCodeAt(0).toString(16),z.setAttribute("aria-label",z.title),z}function $e(x,z,ne,te,ie,ue,ve){if(z){var Ce=x.splitSpaces?Tt(z,x.trailingSpace):z,De=x.cm.state.specialChars,Ne=!1,ut;if(!De.test(z))x.col+=z.length,ut=document.createTextNode(Ce),x.map.push(x.pos,x.pos+z.length,ut),be&&Ae<9&&(Ne=!0),x.pos+=z.length;else{ut=document.createDocumentFragment();for(var St=0;;){De.lastIndex=St;var en=De.exec(z),jt=en?en.index-St:z.length-St;if(jt){var Rn=document.createTextNode(Ce.slice(St,St+jt));be&&Ae<9?ut.appendChild(pt("span",[Rn])):ut.appendChild(Rn),x.map.push(x.pos,x.pos+jt,Rn),x.col+=jt,x.pos+=jt}if(!en)break;St+=jt+1;var Qn=void 0;if(en[0]==" "){var yr=x.cm.options.tabSize,Ir=yr-x.col%yr;Qn=ut.appendChild(pt("span",It(Ir),"cm-tab")),Qn.setAttribute("role","presentation"),Qn.setAttribute("cm-text"," "),x.col+=Ir}else en[0]=="\r"||en[0]==`
`?(Qn=ut.appendChild(pt("span",en[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Qn.setAttribute("cm-text",en[0]),x.col+=1):(Qn=x.cm.options.specialCharPlaceholder(en[0]),Qn.setAttribute("cm-text",en[0]),be&&Ae<9?ut.appendChild(pt("span",[Qn])):ut.appendChild(Qn),x.col+=1);x.map.push(x.pos,x.pos+1,Qn),x.pos++}}if(x.trailingSpace=Ce.charCodeAt(z.length-1)==32,ne||te||ie||Ne||ue||ve){var zr=ne||"";te&&(zr+=te),ie&&(zr+=ie);var Lr=pt("span",[ut],zr,ue);if(ve)for(var Hr in ve)ve.hasOwnProperty(Hr)&&Hr!="style"&&Hr!="class"&&Lr.setAttribute(Hr,ve[Hr]);return x.content.appendChild(Lr)}x.content.appendChild(ut)}}function Tt(x,z){if(x.length>1&&!/ /.test(x))return x;for(var ne=z,te="",ie=0;ie<x.length;ie++){var ue=x.charAt(ie);ue==" "&&ne&&(ie==x.length-1||x.charCodeAt(ie+1)==32)&&(ue="\xA0"),te+=ue,ne=ue==" "}return te}function mt(x,z){return function(ne,te,ie,ue,ve,Ce,De){ie=ie?ie+" cm-force-border":"cm-force-border";for(var Ne=ne.pos,ut=Ne+te.length;;){for(var St=void 0,en=0;en<z.length&&(St=z[en],!(St.to>Ne&&St.from<=Ne));en++);if(St.to>=ut)return x(ne,te,ie,ue,ve,Ce,De);x(ne,te.slice(0,St.to-Ne),ie,ue,null,Ce,De),ue=null,te=te.slice(St.to-Ne),Ne=St.to}}}function Yt(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 fn(x,z,ne){var te=x.markedSpans,ie=x.text,ue=0;if(!te){for(var ve=1;ve<ne.length;ve+=2)z.addToken(z,ie.slice(ue,ue=ne[ve]),Wn(ne[ve+1],z.cm.options));return}for(var Ce=ie.length,De=0,Ne=1,ut="",St,en,jt=0,Rn,Qn,yr,Ir,zr;;){if(jt==De){Rn=Qn=yr=en="",zr=null,Ir=null,jt=1/0;for(var Lr=[],Hr=void 0,vi=0;vi<te.length;++vi){var Si=te[vi],ca=Si.marker;if(ca.type=="bookmark"&&Si.from==De&&ca.widgetNode)Lr.push(ca);else if(Si.from<=De&&(Si.to==null||Si.to>De||ca.collapsed&&Si.to==De&&Si.from==De)){if(Si.to!=null&&Si.to!=De&&jt>Si.to&&(jt=Si.to,Qn=""),ca.className&&(Rn+=" "+ca.className),ca.css&&(en=(en?en+";":"")+ca.css),ca.startStyle&&Si.from==De&&(yr+=" "+ca.startStyle),ca.endStyle&&Si.to==jt&&(Hr||(Hr=[])).push(ca.endStyle,Si.to),ca.title&&((zr||(zr={})).title=ca.title),ca.attributes)for(var to in ca.attributes)(zr||(zr={}))[to]=ca.attributes[to];ca.collapsed&&(!Ir||zi(Ir.marker,ca)<0)&&(Ir=Si)}else Si.from>De&&jt>Si.from&&(jt=Si.from)}if(Hr)for(var $o=0;$o<Hr.length;$o+=2)Hr[$o+1]==jt&&(Qn+=" "+Hr[$o]);if(!Ir||Ir.from==De)for(var bo=0;bo<Lr.length;++bo)Yt(z,0,Lr[bo]);if(Ir&&(Ir.from||0)==De){if(Yt(z,(Ir.to==null?Ce+1:Ir.to)-De,Ir.marker,Ir.from==null),Ir.to==null)return;Ir.to==De&&(Ir=!1)}}if(De>=Ce)break;for(var cs=Math.min(Ce,jt);;){if(ut){var ds=De+ut.length;if(!Ir){var _o=ds>cs?ut.slice(0,cs-De):ut;z.addToken(z,_o,St?St+Rn:Rn,yr,De+_o.length==jt?Qn:"",en,zr)}if(ds>=cs){ut=ut.slice(cs-De),De=cs;break}De=ds,yr=""}ut=ie.slice(ue,ue=ne[Ne++]),St=Wn(ne[Ne++],z.cm.options)}}}function ln(x,z,ne){this.line=z,this.rest=Xt(z),this.size=this.rest?Un(Ct(this.rest))-ne+1:1,this.node=this.text=null,this.hidden=ir(x,z)}function Ln(x,z,ne){for(var te=[],ie,ue=z;ue<ne;ue=ie){var ve=new ln(x.doc,Vt(x.doc,ue),ue);ie=ue+ve.size,te.push(ve)}return te}var yn=null;function Qt(x){yn?yn.ops.push(x):x.ownsGroup=yn={ops:[x],delayedCallbacks:[]}}function Cn(x){var z=x.delayedCallbacks,ne=0;do{for(;ne<z.length;ne++)z[ne].call(null);for(var te=0;te<x.ops.length;te++){var ie=x.ops[te];if(ie.cursorActivityHandlers)for(;ie.cursorActivityCalled<ie.cursorActivityHandlers.length;)ie.cursorActivityHandlers[ie.cursorActivityCalled++].call(null,ie.cm)}}while(ne<z.length)}function Dn(x,z){var ne=x.ownsGroup;if(ne)try{Cn(ne)}finally{yn=null,z(ne)}}var ar=null;function An(x,z){var ne=Jn(x,z);if(ne.length){var te=Array.prototype.slice.call(arguments,2),ie;yn?ie=yn.delayedCallbacks:ar?ie=ar:(ie=ar=[],setTimeout(gr,0));for(var ue=function(Ce){ie.push(function(){return ne[Ce].apply(null,te)})},ve=0;ve<ne.length;++ve)ue(ve)}}function gr(){var x=ar;ar=null;for(var z=0;z<x.length;++z)x[z]()}function Br(x,z,ne,te){for(var ie=0;ie<z.changes.length;ie++){var ue=z.changes[ie];ue=="text"?Er(x,z):ue=="gutter"?Kr(x,z,ne,te):ue=="class"?Nr(x,z):ue=="widget"&&xr(x,z,te)}z.changes=null}function br(x){return x.node==x.text&&(x.node=pt("div",null,null,"position: relative"),x.text.parentNode&&x.text.parentNode.replaceChild(x.node,x.text),x.node.appendChild(x.text),be&&Ae<8&&(x.node.style.zIndex=2)),x.node}function Ar(x,z){var ne=z.bgClass?z.bgClass+" "+(z.line.bgClass||""):z.line.bgClass;if(ne&&(ne+=" CodeMirror-linebackground"),z.background)ne?z.background.className=ne:(z.background.parentNode.removeChild(z.background),z.background=null);else if(ne){var te=br(z);z.background=te.insertBefore(pt("div",null,ne),te.firstChild),x.display.input.setUneditable(z.background)}}function ur(x,z){var ne=x.display.externalMeasured;return ne&&ne.line==z.line?(x.display.externalMeasured=null,z.measure=ne.measure,ne.built):or(x,z)}function Er(x,z){var ne=z.text.className,te=ur(x,z);z.text==z.node&&(z.node=te.pre),z.text.parentNode.replaceChild(te.pre,z.text),z.text=te.pre,te.bgClass!=z.bgClass||te.textClass!=z.textClass?(z.bgClass=te.bgClass,z.textClass=te.textClass,Nr(x,z)):ne&&(z.text.className=ne)}function Nr(x,z){Ar(x,z),z.line.wrapClass?br(z).className=z.line.wrapClass:z.node!=z.text&&(z.node.className="");var ne=z.textClass?z.textClass+" "+(z.line.textClass||""):z.line.textClass;z.text.className=ne||""}function Kr(x,z,ne,te){if(z.gutter&&(z.node.removeChild(z.gutter),z.gutter=null),z.gutterBackground&&(z.node.removeChild(z.gutterBackground),z.gutterBackground=null),z.line.gutterClass){var ie=br(z);z.gutterBackground=pt("div",null,"CodeMirror-gutter-background "+z.line.gutterClass,"left: "+(x.options.fixedGutter?te.fixedPos:-te.gutterTotalWidth)+"px; width: "+te.gutterTotalWidth+"px"),x.display.input.setUneditable(z.gutterBackground),ie.insertBefore(z.gutterBackground,z.text)}var ue=z.line.gutterMarkers;if(x.options.lineNumbers||ue){var ve=br(z),Ce=z.gutter=pt("div",null,"CodeMirror-gutter-wrapper","left: "+(x.options.fixedGutter?te.fixedPos:-te.gutterTotalWidth)+"px");if(x.display.input.setUneditable(Ce),ve.insertBefore(Ce,z.text),z.line.gutterClass&&(Ce.className+=" "+z.line.gutterClass),x.options.lineNumbers&&(!ue||!ue["CodeMirror-linenumbers"])&&(z.lineNumber=Ce.appendChild(pt("div",Dr(x.options,ne),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+te.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+x.display.lineNumInnerWidth+"px"))),ue)for(var De=0;De<x.display.gutterSpecs.length;++De){var Ne=x.display.gutterSpecs[De].className,ut=ue.hasOwnProperty(Ne)&&ue[Ne];ut&&Ce.appendChild(pt("div",[ut],"CodeMirror-gutter-elt","left: "+te.gutterLeft[Ne]+"px; width: "+te.gutterWidth[Ne]+"px"))}}}function xr(x,z,ne){z.alignable&&(z.alignable=null);for(var te=xe("CodeMirror-linewidget"),ie=z.node.firstChild,ue=void 0;ie;ie=ue)ue=ie.nextSibling,te.test(ie.className)&&z.node.removeChild(ie);fi(x,z,ne)}function Vr(x,z,ne,te){var ie=ur(x,z);return z.text=z.node=ie.pre,ie.bgClass&&(z.bgClass=ie.bgClass),ie.textClass&&(z.textClass=ie.textClass),Nr(x,z),Kr(x,z,ne,te),fi(x,z,te),z.node}function fi(x,z,ne){if(Hi(x,z.line,z,ne,!0),z.rest)for(var te=0;te<z.rest.length;te++)Hi(x,z.rest[te],z,ne,!1)}function Hi(x,z,ne,te,ie){if(z.widgets)for(var ue=br(ne),ve=0,Ce=z.widgets;ve<Ce.length;++ve){var De=Ce[ve],Ne=pt("div",[De.node],"CodeMirror-linewidget"+(De.className?" "+De.className:""));De.handleMouseEvents||Ne.setAttribute("cm-ignore-events","true"),Ti(De,Ne,ne,te),x.display.input.setUneditable(Ne),ie&&De.above?ue.insertBefore(Ne,ne.gutter||ne.text):ue.appendChild(Ne),An(De,"redraw")}}function Ti(x,z,ne,te){if(x.noHScroll){(ne.alignable||(ne.alignable=[])).push(z);var ie=te.wrapperWidth;z.style.left=te.fixedPos+"px",x.coverGutter||(ie-=te.gutterTotalWidth,z.style.paddingLeft=te.gutterTotalWidth+"px"),z.style.width=ie+"px"}x.coverGutter&&(z.style.zIndex=5,z.style.position="relative",x.noHScroll||(z.style.marginLeft=-te.gutterTotalWidth+"px"))}function mi(x){if(x.height!=null)return x.height;var z=x.doc.cm;if(!z)return 0;if(!Rt(document.body,x.node)){var ne="position: relative;";x.coverGutter&&(ne+="margin-left: -"+z.display.gutters.offsetWidth+"px;"),x.noHScroll&&(ne+="width: "+z.display.wrapper.clientWidth+"px;"),ft(z.display.measure,pt("div",[x.node],null,ne))}return x.height=x.node.parentNode.offsetHeight}function Bi(x,z){for(var ne=Ri(z);ne!=x.wrapper;ne=ne.parentNode)if(!ne||ne.nodeType==1&&ne.getAttribute("cm-ignore-events")=="true"||ne.parentNode==x.sizer&&ne!=x.mover)return!0}function Oi(x){return x.lineSpace.offsetTop}function qr(x){return x.mover.offsetHeight-x.lineSpace.offsetHeight}function gi(x){if(x.cachedPaddingH)return x.cachedPaddingH;var z=ft(x.measure,pt("pre","x","CodeMirror-line-like")),ne=window.getComputedStyle?window.getComputedStyle(z):z.currentStyle,te={left:parseInt(ne.paddingLeft),right:parseInt(ne.paddingRight)};return!isNaN(te.left)&&!isNaN(te.right)&&(x.cachedPaddingH=te),te}function Pr(x){return Sn-x.display.nativeBarWidth}function Ur(x){return x.display.scroller.clientWidth-Pr(x)-x.display.barWidth}function si(x){return x.display.scroller.clientHeight-Pr(x)-x.display.barHeight}function Ii(x,z,ne){var te=x.options.lineWrapping,ie=te&&Ur(x);if(!z.measure.heights||te&&z.measure.width!=ie){var ue=z.measure.heights=[];if(te){z.measure.width=ie;for(var ve=z.text.firstChild.getClientRects(),Ce=0;Ce<ve.length-1;Ce++){var De=ve[Ce],Ne=ve[Ce+1];Math.abs(De.bottom-Ne.bottom)>2&&ue.push((De.bottom+Ne.top)/2-ne.top)}}ue.push(ne.bottom-ne.top)}}function Ra(x,z,ne){if(x.line==z)return{map:x.measure.map,cache:x.measure.cache};for(var te=0;te<x.rest.length;te++)if(x.rest[te]==z)return{map:x.measure.maps[te],cache:x.measure.caches[te]};for(var ie=0;ie<x.rest.length;ie++)if(Un(x.rest[ie])>ne)return{map:x.measure.maps[ie],cache:x.measure.caches[ie],before:!0}}function Fa(x,z){z=dt(z);var ne=Un(z),te=x.display.externalMeasured=new ln(x.doc,z,ne);te.lineN=ne;var ie=te.built=or(x,te);return te.text=ie.pre,ft(x.display.lineMeasure,ie.pre),te}function La(x,z,ne,te){return ri(x,Ni(x,z),ne,te)}function qi(x,z){if(z>=x.display.viewFrom&&z<x.display.viewTo)return x.display.view[Ki(x,z)];var ne=x.display.externalMeasured;if(ne&&z>=ne.lineN&&z<ne.lineN+ne.size)return ne}function Ni(x,z){var ne=Un(z),te=qi(x,ne);te&&!te.text?te=null:te&&te.changes&&(Br(x,te,ne,ho(x)),x.curOp.forceUpdate=!0),te||(te=Fa(x,z));var ie=Ra(te,z,ne);return{line:z,view:te,rect:null,map:ie.map,cache:ie.cache,before:ie.before,hasHeights:!1}}function ri(x,z,ne,te,ie){z.before&&(ne=-1);var ue=ne+(te||""),ve;return z.cache.hasOwnProperty(ue)?ve=z.cache[ue]:(z.rect||(z.rect=z.view.text.getBoundingClientRect()),z.hasHeights||(Ii(x,z.view,z.rect),z.hasHeights=!0),ve=yi(x,z,ne,te),ve.bogus||(z.cache[ue]=ve)),{left:ve.left,right:ve.right,top:ie?ve.rtop:ve.top,bottom:ie?ve.rbottom:ve.bottom}}var Pa={left:0,right:0,top:0,bottom:0};function ii(x,z,ne){for(var te,ie,ue,ve,Ce,De,Ne=0;Ne<x.length;Ne+=3)if(Ce=x[Ne],De=x[Ne+1],z<Ce?(ie=0,ue=1,ve="left"):z<De?(ie=z-Ce,ue=ie+1):(Ne==x.length-3||z==De&&x[Ne+3]>z)&&(ue=De-Ce,ie=ue-1,z>=De&&(ve="right")),ie!=null){if(te=x[Ne+2],Ce==De&&ne==(te.insertLeft?"left":"right")&&(ve=ne),ne=="left"&&ie==0)for(;Ne&&x[Ne-2]==x[Ne-3]&&x[Ne-1].insertLeft;)te=x[(Ne-=3)+2],ve="left";if(ne=="right"&&ie==De-Ce)for(;Ne<x.length-3&&x[Ne+3]==x[Ne+4]&&!x[Ne+5].insertLeft;)te=x[(Ne+=3)+2],ve="right";break}return{node:te,start:ie,end:ue,collapse:ve,coverStart:Ce,coverEnd:De}}function Rr(x,z){var ne=Pa;if(z=="left")for(var te=0;te<x.length&&(ne=x[te]).left==ne.right;te++);else for(var ie=x.length-1;ie>=0&&(ne=x[ie]).left==ne.right;ie--);return ne}function yi(x,z,ne,te){var ie=ii(z.map,ne,te),ue=ie.node,ve=ie.start,Ce=ie.end,De=ie.collapse,Ne;if(ue.nodeType==3){for(var ut=0;ut<4;ut++){for(;ve&&je(z.line.text.charAt(ie.coverStart+ve));)--ve;for(;ie.coverStart+Ce<ie.coverEnd&&je(z.line.text.charAt(ie.coverStart+Ce));)++Ce;if(be&&Ae<9&&ve==0&&Ce==ie.coverEnd-ie.coverStart?Ne=ue.parentNode.getBoundingClientRect():Ne=Rr(Qe(ue,ve,Ce).getClientRects(),te),Ne.left||Ne.right||ve==0)break;Ce=ve,ve=ve-1,De="right"}be&&Ae<11&&(Ne=Qi(x.display.measure,Ne))}else{ve>0&&(De=te="right");var St;x.options.lineWrapping&&(St=ue.getClientRects()).length>1?Ne=St[te=="right"?St.length-1:0]:Ne=ue.getBoundingClientRect()}if(be&&Ae<9&&!ve&&(!Ne||!Ne.left&&!Ne.right)){var en=ue.parentNode.getClientRects()[0];en?Ne={left:en.left,right:en.left+io(x.display),top:en.top,bottom:en.bottom}:Ne=Pa}for(var jt=Ne.top-z.rect.top,Rn=Ne.bottom-z.rect.top,Qn=(jt+Rn)/2,yr=z.view.measure.heights,Ir=0;Ir<yr.length-1&&!(Qn<yr[Ir]);Ir++);var zr=Ir?yr[Ir-1]:0,Lr=yr[Ir],Hr={left:(De=="right"?Ne.right:Ne.left)-z.rect.left,right:(De=="left"?Ne.left:Ne.right)-z.rect.left,top:zr,bottom:Lr};return!Ne.left&&!Ne.right&&(Hr.bogus=!0),x.options.singleCursorHeightPerLine||(Hr.rtop=jt,Hr.rbottom=Rn),Hr}function Qi(x,z){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!kr(x))return z;var ne=screen.logicalXDPI/screen.deviceXDPI,te=screen.logicalYDPI/screen.deviceYDPI;return{left:z.left*ne,right:z.right*ne,top:z.top*te,bottom:z.bottom*te}}function Mi(x){if(x.measure&&(x.measure.cache={},x.measure.heights=null,x.rest))for(var z=0;z<x.rest.length;z++)x.measure.caches[z]={}}function Vi(x){x.display.externalMeasure=null,Ue(x.display.lineMeasure);for(var z=0;z<x.display.view.length;z++)Mi(x.display.view[z])}function jr(x){Vi(x),x.display.cachedCharWidth=x.display.cachedTextHeight=x.display.cachedPaddingH=null,x.options.lineWrapping||(x.display.maxLineChanged=!0),x.display.lineNumChars=null}function aa(){return pe&&tt?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function pa(){return pe&&tt?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function ra(x){var z=0;if(x.widgets)for(var ne=0;ne<x.widgets.length;++ne)x.widgets[ne].above&&(z+=mi(x.widgets[ne]));return z}function ma(x,z,ne,te,ie){if(!ie){var ue=ra(z);ne.top+=ue,ne.bottom+=ue}if(te=="line")return ne;te||(te="local");var ve=sn(z);if(te=="local"?ve+=Oi(x.display):ve-=x.display.viewOffset,te=="page"||te=="window"){var Ce=x.display.lineSpace.getBoundingClientRect();ve+=Ce.top+(te=="window"?0:pa());var De=Ce.left+(te=="window"?0:aa());ne.left+=De,ne.right+=De}return ne.top+=ve,ne.bottom+=ve,ne}function Sa(x,z,ne){if(ne=="div")return z;var te=z.left,ie=z.top;if(ne=="page")te-=aa(),ie-=pa();else if(ne=="local"||!ne){var ue=x.display.sizer.getBoundingClientRect();te+=ue.left,ie+=ue.top}var ve=x.display.lineSpace.getBoundingClientRect();return{left:te-ve.left,top:ie-ve.top}}function Ua(x,z,ne,te,ie){return te||(te=Vt(x.doc,z.line)),ma(x,te,La(x,te,z.ch,ie),ne)}function ia(x,z,ne,te,ie,ue){te=te||Vt(x.doc,z.line),ie||(ie=Ni(x,te));function ve(Rn,Qn){var yr=ri(x,ie,Rn,Qn?"right":"left",ue);return Qn?yr.left=yr.right:yr.right=yr.left,ma(x,te,yr,ne)}var Ce=Gn(te,x.doc.direction),De=z.ch,Ne=z.sticky;if(De>=te.text.length?(De=te.text.length,Ne="before"):De<=0&&(De=0,Ne="after"),!Ce)return ve(Ne=="before"?De-1:De,Ne=="before");function ut(Rn,Qn,yr){var Ir=Ce[Qn],zr=Ir.level==1;return ve(yr?Rn-1:Rn,zr!=yr)}var St=Nt(Ce,De,Ne),en=Bt,jt=ut(De,St,Ne=="before");return en!=null&&(jt.other=ut(De,en,Ne!="before")),jt}function Ca(x,z){var ne=0;z=dr(x.doc,z),x.options.lineWrapping||(ne=io(x.display)*z.ch);var te=Vt(x.doc,z.line),ie=sn(te)+Oi(x.display);return{left:ne,right:ne,top:ie,bottom:ie+te.height}}function Qa(x,z,ne,te,ie){var ue=dn(x,z,ne);return ue.xRel=ie,te&&(ue.outside=te),ue}function ja(x,z,ne){var te=x.doc;if(ne+=x.display.viewOffset,ne<0)return Qa(te.first,0,null,-1,-1);var ie=er(te,ne),ue=te.first+te.size-1;if(ie>ue)return Qa(te.first+te.size-1,Vt(te,ue).text.length,null,1,1);z<0&&(z=0);for(var ve=Vt(te,ie);;){var Ce=ai(x,ve,ie,z,ne),De=Ze(ve,Ce.ch+(Ce.xRel>0||Ce.outside>0?1:0));if(!De)return Ce;var Ne=De.find(1);if(Ne.line==ie)return Ne;ve=Vt(te,ie=Ne.line)}}function so(x,z,ne,te){te-=ra(z);var ie=z.text.length,ue=At(function(ve){return ri(x,ne,ve-1).bottom<=te},ie,0);return ie=At(function(ve){return ri(x,ne,ve).top>te},ue,ie),{begin:ue,end:ie}}function za(x,z,ne,te){ne||(ne=Ni(x,z));var ie=ma(x,z,ri(x,ne,te),"line").top;return so(x,z,ne,ie)}function ba(x,z,ne,te){return x.bottom<=ne?!1:x.top>ne?!0:(te?x.left:x.right)>z}function ai(x,z,ne,te,ie){ie-=sn(z);var ue=Ni(x,z),ve=ra(z),Ce=0,De=z.text.length,Ne=!0,ut=Gn(z,x.doc.direction);if(ut){var St=(x.options.lineWrapping?Ji:bi)(x,z,ne,ue,ut,te,ie);Ne=St.level!=1,Ce=Ne?St.from:St.to-1,De=Ne?St.to:St.from-1}var en=null,jt=null,Rn=At(function(vi){var Si=ri(x,ue,vi);return Si.top+=ve,Si.bottom+=ve,ba(Si,te,ie,!1)?(Si.top<=ie&&Si.left<=te&&(en=vi,jt=Si),!0):!1},Ce,De),Qn,yr,Ir=!1;if(jt){var zr=te-jt.left<jt.right-te,Lr=zr==Ne;Rn=en+(Lr?0:1),yr=Lr?"after":"before",Qn=zr?jt.left:jt.right}else{!Ne&&(Rn==De||Rn==Ce)&&Rn++,yr=Rn==0?"after":Rn==z.text.length?"before":ri(x,ue,Rn-(Ne?1:0)).bottom+ve<=ie==Ne?"after":"before";var Hr=ia(x,dn(ne,Rn,yr),"line",z,ue);Qn=Hr.left,Ir=ie<Hr.top?-1:ie>=Hr.bottom?1:0}return Rn=Et(z.text,Rn,1),Qa(ne,Rn,yr,Ir,te-Qn)}function bi(x,z,ne,te,ie,ue,ve){var Ce=At(function(St){var en=ie[St],jt=en.level!=1;return ba(ia(x,dn(ne,jt?en.to:en.from,jt?"before":"after"),"line",z,te),ue,ve,!0)},0,ie.length-1),De=ie[Ce];if(Ce>0){var Ne=De.level!=1,ut=ia(x,dn(ne,Ne?De.from:De.to,Ne?"after":"before"),"line",z,te);ba(ut,ue,ve,!0)&&ut.top>ve&&(De=ie[Ce-1])}return De}function Ji(x,z,ne,te,ie,ue,ve){var Ce=so(x,z,te,ve),De=Ce.begin,Ne=Ce.end;/\s/.test(z.text.charAt(Ne-1))&&Ne--;for(var ut=null,St=null,en=0;en<ie.length;en++){var jt=ie[en];if(!(jt.from>=Ne||jt.to<=De)){var Rn=jt.level!=1,Qn=ri(x,te,Rn?Math.min(Ne,jt.to)-1:Math.max(De,jt.from)).right,yr=Qn<ue?ue-Qn+1e9:Qn-ue;(!ut||St>yr)&&(ut=jt,St=yr)}}return ut||(ut=ie[ie.length-1]),ut.from<De&&(ut={from:De,to:ut.to,level:ut.level}),ut.to>Ne&&(ut={from:ut.from,to:Ne,level:ut.level}),ut}var ga;function Ka(x){if(x.cachedTextHeight!=null)return x.cachedTextHeight;if(ga==null){ga=pt("pre",null,"CodeMirror-line-like");for(var z=0;z<49;++z)ga.appendChild(document.createTextNode("x")),ga.appendChild(pt("br"));ga.appendChild(document.createTextNode("x"))}ft(x.measure,ga);var ne=ga.offsetHeight/50;return ne>3&&(x.cachedTextHeight=ne),Ue(x.measure),ne||1}function io(x){if(x.cachedCharWidth!=null)return x.cachedCharWidth;var z=pt("span","xxxxxxxxxx"),ne=pt("pre",[z],"CodeMirror-line-like");ft(x.measure,ne);var te=z.getBoundingClientRect(),ie=(te.right-te.left)/10;return ie>2&&(x.cachedCharWidth=ie),ie||10}function ho(x){for(var z=x.display,ne={},te={},ie=z.gutters.clientLeft,ue=z.gutters.firstChild,ve=0;ue;ue=ue.nextSibling,++ve){var Ce=x.display.gutterSpecs[ve].className;ne[Ce]=ue.offsetLeft+ue.clientLeft+ie,te[Ce]=ue.clientWidth}return{fixedPos:Po(z),gutterTotalWidth:z.gutters.offsetWidth,gutterLeft:ne,gutterWidth:te,wrapperWidth:z.wrapper.clientWidth}}function Po(x){return x.scroller.getBoundingClientRect().left-x.sizer.getBoundingClientRect().left}function Oo(x){var z=Ka(x.display),ne=x.options.lineWrapping,te=ne&&Math.max(5,x.display.scroller.clientWidth/io(x.display)-3);return function(ie){if(ir(x.doc,ie))return 0;var ue=0;if(ie.widgets)for(var ve=0;ve<ie.widgets.length;ve++)ie.widgets[ve].height&&(ue+=ie.widgets[ve].height);return ne?ue+(Math.ceil(ie.text.length/te)||1)*z:ue+z}}function lo(x){var z=x.doc,ne=Oo(x);z.iter(function(te){var ie=ne(te);ie!=te.height&&Vn(te,ie)})}function Do(x,z,ne,te){var ie=x.display;if(!ne&&Ri(z).getAttribute("cm-not-content")=="true")return null;var ue,ve,Ce=ie.lineSpace.getBoundingClientRect();try{ue=z.clientX-Ce.left,ve=z.clientY-Ce.top}catch(St){return null}var De=ja(x,ue,ve),Ne;if(te&&De.xRel>0&&(Ne=Vt(x.doc,De.line).text).length==De.ch){var ut=Je(Ne,Ne.length,x.options.tabSize)-Ne.length;De=dn(De.line,Math.max(0,Math.round((ue-gi(x.display).left)/io(x.display))-ut))}return De}function Ki(x,z){if(z>=x.display.viewTo||(z-=x.display.viewFrom,z<0))return null;for(var ne=x.display.view,te=0;te<ne.length;te++)if(z-=ne[te].size,z<0)return te}function hi(x,z,ne,te){z==null&&(z=x.doc.first),ne==null&&(ne=x.doc.first+x.doc.size),te||(te=0);var ie=x.display;if(te&&ne<ie.viewTo&&(ie.updateLineNumbers==null||ie.updateLineNumbers>z)&&(ie.updateLineNumbers=z),x.curOp.viewChanged=!0,z>=ie.viewTo)oi&&Jt(x.doc,z)<ie.viewTo&&Ea(x);else if(ne<=ie.viewFrom)oi&&Fn(x.doc,ne+te)>ie.viewFrom?Ea(x):(ie.viewFrom+=te,ie.viewTo+=te);else if(z<=ie.viewFrom&&ne>=ie.viewTo)Ea(x);else if(z<=ie.viewFrom){var ue=uo(x,ne,ne+te,1);ue?(ie.view=ie.view.slice(ue.index),ie.viewFrom=ue.lineN,ie.viewTo+=te):Ea(x)}else if(ne>=ie.viewTo){var ve=uo(x,z,z,-1);ve?(ie.view=ie.view.slice(0,ve.index),ie.viewTo=ve.lineN):Ea(x)}else{var Ce=uo(x,z,z,-1),De=uo(x,ne,ne+te,1);Ce&&De?(ie.view=ie.view.slice(0,Ce.index).concat(Ln(x,Ce.lineN,De.lineN)).concat(ie.view.slice(De.index)),ie.viewTo+=te):Ea(x)}var Ne=ie.externalMeasured;Ne&&(ne<Ne.lineN?Ne.lineN+=te:z<Ne.lineN+Ne.size&&(ie.externalMeasured=null))}function Da(x,z,ne){x.curOp.viewChanged=!0;var te=x.display,ie=x.display.externalMeasured;if(ie&&z>=ie.lineN&&z<ie.lineN+ie.size&&(te.externalMeasured=null),!(z<te.viewFrom||z>=te.viewTo)){var ue=te.view[Ki(x,z)];if(ue.node!=null){var ve=ue.changes||(ue.changes=[]);Ft(ve,ne)==-1&&ve.push(ne)}}}function Ea(x){x.display.viewFrom=x.display.viewTo=x.doc.first,x.display.view=[],x.display.viewOffset=0}function uo(x,z,ne,te){var ie=Ki(x,z),ue,ve=x.display.view;if(!oi||ne==x.doc.first+x.doc.size)return{index:ie,lineN:ne};for(var Ce=x.display.viewFrom,De=0;De<ie;De++)Ce+=ve[De].size;if(Ce!=z){if(te>0){if(ie==ve.length-1)return null;ue=Ce+ve[ie].size-z,ie++}else ue=Ce-z;z+=ue,ne+=ue}for(;Jt(x.doc,ne)!=ne;){if(ie==(te<0?0:ve.length-1))return null;ne+=te*ve[ie-(te<0?1:0)].size,ie+=te}return{index:ie,lineN:ne}}function ao(x,z,ne){var te=x.display,ie=te.view;ie.length==0||z>=te.viewTo||ne<=te.viewFrom?(te.view=Ln(x,z,ne),te.viewFrom=z):(te.viewFrom>z?te.view=Ln(x,z,te.viewFrom).concat(te.view):te.viewFrom<z&&(te.view=te.view.slice(Ki(x,z))),te.viewFrom=z,te.viewTo<ne?te.view=te.view.concat(Ln(x,te.viewTo,ne)):te.viewTo>ne&&(te.view=te.view.slice(0,Ki(x,ne)))),te.viewTo=ne}function hs(x){for(var z=x.display.view,ne=0,te=0;te<z.length;te++){var ie=z[te];!ie.hidden&&(!ie.node||ie.changes)&&++ne}return ne}function Jo(x){x.display.input.showSelection(x.display.input.prepareSelection())}function ps(x,z){z===void 0&&(z=!0);for(var ne=x.doc,te={},ie=te.cursors=document.createDocumentFragment(),ue=te.selection=document.createDocumentFragment(),ve=0;ve<ne.sel.ranges.length;ve++)if(!(!z&&ve==ne.sel.primIndex)){var Ce=ne.sel.ranges[ve];if(!(Ce.from().line>=x.display.viewTo||Ce.to().line<x.display.viewFrom)){var De=Ce.empty();(De||x.options.showCursorWhenSelecting)&&Zi(x,Ce.head,ie),De||Qr(x,Ce,ue)}}return te}function Zi(x,z,ne){var te=ia(x,z,"div",null,null,!x.options.singleCursorHeightPerLine),ie=ne.appendChild(pt("div","\xA0","CodeMirror-cursor"));if(ie.style.left=te.left+"px",ie.style.top=te.top+"px",ie.style.height=Math.max(0,te.bottom-te.top)*x.options.cursorHeight+"px",te.other){var ue=ne.appendChild(pt("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));ue.style.display="",ue.style.left=te.other.left+"px",ue.style.top=te.other.top+"px",ue.style.height=(te.other.bottom-te.other.top)*.85+"px"}}function vr(x,z){return x.top-z.top||x.left-z.left}function Qr(x,z,ne){var te=x.display,ie=x.doc,ue=document.createDocumentFragment(),ve=gi(x.display),Ce=ve.left,De=Math.max(te.sizerWidth,Ur(x)-te.sizer.offsetLeft)-ve.right,Ne=ie.direction=="ltr";function ut(Lr,Hr,vi,Si){Hr<0&&(Hr=0),Hr=Math.round(Hr),Si=Math.round(Si),ue.appendChild(pt("div",null,"CodeMirror-selected","position: absolute; left: "+Lr+`px;
top: `+Hr+"px; width: "+(vi==null?De-Lr:vi)+`px;
height: `+(Si-Hr)+"px"))}function St(Lr,Hr,vi){var Si=Vt(ie,Lr),ca=Si.text.length,to,$o;function bo(_o,fs){return Ua(x,dn(Lr,_o),"div",Si,fs)}function cs(_o,fs,Ui){var So=za(x,Si,null,_o),xo=fs=="ltr"==(Ui=="after")?"left":"right",Co=Ui=="after"?So.begin:So.end-(/\s/.test(Si.text.charAt(So.end-1))?2:1);return bo(Co,xo)[xo]}var ds=Gn(Si,ie.direction);return Ot(ds,Hr||0,vi==null?ca:vi,function(_o,fs,Ui,So){var xo=Ui=="ltr",Co=bo(_o,xo?"left":"right"),ko=bo(fs-1,xo?"right":"left"),$l=Hr==null&&_o==0,ys=vi==null&&fs==ca,jo=So==0,$a=!ds||So==ds.length-1;if(ko.top-Co.top<=3){var Ro=(Ne?$l:ys)&&jo,Mc=(Ne?ys:$l)&&$a,sl=Ro?Ce:(xo?Co:ko).left,xl=Mc?De:(xo?ko:Co).right;ut(sl,Co.top,xl-sl,Co.bottom)}else{var Us,Bo,Vl,Xo;xo?(Us=Ne&&$l&&jo?Ce:Co.left,Bo=Ne?De:cs(_o,Ui,"before"),Vl=Ne?Ce:cs(fs,Ui,"after"),Xo=Ne&&ys&&$a?De:ko.right):(Us=Ne?cs(_o,Ui,"before"):Ce,Bo=!Ne&&$l&&jo?De:Co.right,Vl=!Ne&&ys&&$a?Ce:ko.left,Xo=Ne?cs(fs,Ui,"after"):De),ut(Us,Co.top,Bo-Us,Co.bottom),Co.bottom<ko.top&&ut(Ce,Co.bottom,null,ko.top),ut(Vl,ko.top,Xo-Vl,ko.bottom)}(!to||vr(Co,to)<0)&&(to=Co),vr(ko,to)<0&&(to=ko),(!$o||vr(Co,$o)<0)&&($o=Co),vr(ko,$o)<0&&($o=ko)}),{start:to,end:$o}}var en=z.from(),jt=z.to();if(en.line==jt.line)St(en.line,en.ch,jt.ch);else{var Rn=Vt(ie,en.line),Qn=Vt(ie,jt.line),yr=dt(Rn)==dt(Qn),Ir=St(en.line,en.ch,yr?Rn.text.length+1:null).end,zr=St(jt.line,yr?0:null,jt.ch).start;yr&&(Ir.top<zr.top-2?(ut(Ir.right,Ir.top,null,Ir.bottom),ut(Ce,zr.top,zr.left,zr.bottom)):ut(Ir.right,Ir.top,zr.left-Ir.right,Ir.bottom)),Ir.bottom<zr.top&&ut(Ce,Ir.bottom,null,zr.top)}ne.appendChild(ue)}function Jr(x){if(x.state.focused){var z=x.display;clearInterval(z.blinker);var ne=!0;z.cursorDiv.style.visibility="",x.options.cursorBlinkRate>0?z.blinker=setInterval(function(){x.hasFocus()||zo(x),z.cursorDiv.style.visibility=(ne=!ne)?"":"hidden"},x.options.cursorBlinkRate):x.options.cursorBlinkRate<0&&(z.cursorDiv.style.visibility="hidden")}}function li(x){x.state.focused||(x.display.input.focus(),Ga(x))}function Wa(x){x.state.delayingBlurEvent=!0,setTimeout(function(){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1,zo(x))},100)}function Ga(x,z){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1),x.options.readOnly!="nocursor"&&(x.state.focused||(En(x,"focus",x,z),x.state.focused=!0,on(x.display.wrapper,"CodeMirror-focused"),!x.curOp&&x.display.selForContextMenu!=x.doc.sel&&(x.display.input.reset(),ke&&setTimeout(function(){return x.display.input.reset(!0)},20)),x.display.input.receivedFocus()),Jr(x))}function zo(x,z){x.state.delayingBlurEvent||(x.state.focused&&(En(x,"blur",x,z),x.state.focused=!1,Ke(x.display.wrapper,"CodeMirror-focused")),clearInterval(x.display.blinker),setTimeout(function(){x.state.focused||(x.display.shift=!1)},150))}function Vo(x){for(var z=x.display,ne=z.lineDiv.offsetTop,te=0;te<z.view.length;te++){var ie=z.view[te],ue=x.options.lineWrapping,ve=void 0,Ce=0;if(!ie.hidden){if(be&&Ae<8){var De=ie.node.offsetTop+ie.node.offsetHeight;ve=De-ne,ne=De}else{var Ne=ie.node.getBoundingClientRect();ve=Ne.bottom-Ne.top,!ue&&ie.text.firstChild&&(Ce=ie.text.firstChild.getBoundingClientRect().right-Ne.left-1)}var ut=ie.line.height-ve;if((ut>.005||ut<-.005)&&(Vn(ie.line,ve),ls(ie.line),ie.rest))for(var St=0;St<ie.rest.length;St++)ls(ie.rest[St]);if(Ce>x.display.sizerWidth){var en=Math.ceil(Ce/io(x.display));en>x.display.maxLineLength&&(x.display.maxLineLength=en,x.display.maxLine=ie.line,x.display.maxLineChanged=!0)}}}}function ls(x){if(x.widgets)for(var z=0;z<x.widgets.length;++z){var ne=x.widgets[z],te=ne.node.parentNode;te&&(ne.height=te.offsetHeight)}}function la(x,z,ne){var te=ne&&ne.top!=null?Math.max(0,ne.top):x.scroller.scrollTop;te=Math.floor(te-Oi(x));var ie=ne&&ne.bottom!=null?ne.bottom:te+x.wrapper.clientHeight,ue=er(z,te),ve=er(z,ie);if(ne&&ne.ensure){var Ce=ne.ensure.from.line,De=ne.ensure.to.line;Ce<ue?(ue=Ce,ve=er(z,sn(Vt(z,Ce))+x.wrapper.clientHeight)):Math.min(De,z.lastLine())>=ve&&(ue=er(z,sn(Vt(z,De))-x.wrapper.clientHeight),ve=De)}return{from:ue,to:Math.max(ve,ue+1)}}function No(x,z){if(!wr(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&&!wt){var ue=pt("div","\u200B",null,`position: absolute;
top: `+(z.top-ne.viewOffset-Oi(x.display))+`px;
height: `+(z.bottom-z.top+Pr(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 us(x,z,ne,te){te==null&&(te=0);var ie;!x.options.lineWrapping&&z==ne&&(z=z.ch?dn(z.line,z.sticky=="before"?z.ch-1:z.ch,"after"):z,ne=z.sticky=="before"?dn(z.line,z.ch+1,"before"):z);for(var ue=0;ue<5;ue++){var ve=!1,Ce=ia(x,z),De=!ne||ne==z?Ce:ia(x,ne);ie={left:Math.min(Ce.left,De.left),top:Math.min(Ce.top,De.top)-te,right:Math.max(Ce.left,De.left),bottom:Math.max(Ce.bottom,De.bottom)+te};var Ne=Ds(x,ie),ut=x.doc.scrollTop,St=x.doc.scrollLeft;if(Ne.scrollTop!=null&&(Ta(x,Ne.scrollTop),Math.abs(x.doc.scrollTop-ut)>1&&(ve=!0)),Ne.scrollLeft!=null&&(go(x,Ne.scrollLeft),Math.abs(x.doc.scrollLeft-St)>1&&(ve=!0)),!ve)break}return ie}function cl(x,z){var ne=Ds(x,z);ne.scrollTop!=null&&Ta(x,ne.scrollTop),ne.scrollLeft!=null&&go(x,ne.scrollLeft)}function Ds(x,z){var ne=x.display,te=Ka(x.display);z.top<0&&(z.top=0);var ie=x.curOp&&x.curOp.scrollTop!=null?x.curOp.scrollTop:ne.scroller.scrollTop,ue=si(x),ve={};z.bottom-z.top>ue&&(z.bottom=z.top+ue);var Ce=x.doc.height+qr(ne),De=z.top<te,Ne=z.bottom>Ce-te;if(z.top<ie)ve.scrollTop=De?0:z.top;else if(z.bottom>ie+ue){var ut=Math.min(z.top,(Ne?Ce:z.bottom)-ue);ut!=ie&&(ve.scrollTop=ut)}var St=x.options.fixedGutter?0:ne.gutters.offsetWidth,en=x.curOp&&x.curOp.scrollLeft!=null?x.curOp.scrollLeft:ne.scroller.scrollLeft-St,jt=Ur(x)-ne.gutters.offsetWidth,Rn=z.right-z.left>jt;return Rn&&(z.right=z.left+jt),z.left<10?ve.scrollLeft=0:z.left<en?ve.scrollLeft=Math.max(0,z.left+St-(Rn?0:10)):z.right>jt+en-3&&(ve.scrollLeft=z.right+(Rn?0:10)-jt),ve}function ms(x,z){z!=null&&(qs(x),x.curOp.scrollTop=(x.curOp.scrollTop==null?x.doc.scrollTop:x.curOp.scrollTop)+z)}function Ho(x){qs(x);var z=x.getCursor();x.curOp.scrollToPos={from:z,to:z,margin:x.options.cursorScrollMargin}}function Ts(x,z,ne){(z!=null||ne!=null)&&qs(x),z!=null&&(x.curOp.scrollLeft=z),ne!=null&&(x.curOp.scrollTop=ne)}function Is(x,z){qs(x),x.curOp.scrollToPos=z}function qs(x){var z=x.curOp.scrollToPos;if(z){x.curOp.scrollToPos=null;var ne=Ca(x,z.from),te=Ca(x,z.to);oo(x,ne,te,z.margin)}}function oo(x,z,ne,te){var ie=Ds(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});Ts(x,ie.scrollLeft,ie.scrollTop)}function Ta(x,z){Math.abs(x.doc.scrollTop-z)<2||(ge||qu(x,{top:z}),Xa(x,z,!0),ge&&qu(x),is(x,100))}function Xa(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 go(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,Uc(x),x.display.scroller.scrollLeft!=z&&(x.display.scroller.scrollLeft=z),x.display.scrollbars.setScrollLeft(z))}function yo(x){var z=x.display,ne=z.gutters.offsetWidth,te=Math.round(x.doc.height+qr(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+Pr(x)+z.barHeight,nativeBarWidth:z.nativeBarWidth,gutterWidth:ne}}var Ko=function(x,z,ne){this.cm=ne;var te=this.vert=pt("div",[pt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ie=this.horiz=pt("div",[pt("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");te.tabIndex=ie.tabIndex=-1,x(te),x(ie),cn(te,"scroll",function(){te.clientHeight&&z(te.scrollTop,"vertical")}),cn(ie,"scroll",function(){ie.clientWidth&&z(ie.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,be&&Ae<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ko.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}},Ko.prototype.setScrollLeft=function(x){this.horiz.scrollLeft!=x&&(this.horiz.scrollLeft=x),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ko.prototype.setScrollTop=function(x){this.vert.scrollTop!=x&&(this.vert.scrollTop=x),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ko.prototype.zeroWidthHack=function(){var x=Me&&!Oe?"12px":"18px";this.horiz.style.height=this.vert.style.width=x,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new _e,this.disableVert=new _e},Ko.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)},Ko.prototype.clear=function(){var x=this.horiz.parentNode;x.removeChild(this.horiz),x.removeChild(this.vert)};var wo=function(){};wo.prototype.update=function(){return{bottom:0,right:0}},wo.prototype.setScrollLeft=function(){},wo.prototype.setScrollTop=function(){},wo.prototype.clear=function(){};function xs(x,z){z||(z=yo(x));var ne=x.display.barWidth,te=x.display.barHeight;Xl(x,z);for(var ie=0;ie<4&&ne!=x.display.barWidth||te!=x.display.barHeight;ie++)ne!=x.display.barWidth&&x.options.lineWrapping&&Vo(x),Xl(x,yo(x)),ne=x.display.barWidth,te=x.display.barHeight}function Xl(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 Yl={native:Ko,null:wo};function vu(x){x.display.scrollbars&&(x.display.scrollbars.clear(),x.display.scrollbars.addClass&&Ke(x.display.wrapper,x.display.scrollbars.addClass)),x.display.scrollbars=new Yl[x.options.scrollbarStyle](function(z){x.display.wrapper.insertBefore(z,x.display.scrollbarFiller),cn(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"?go(x,z):Ta(x,z)},x),x.display.scrollbars.addClass&&on(x.display.wrapper,x.display.scrollbars.addClass)}var Xu=0;function Ks(x){x.curOp={cm:x,viewChanged:!1,startHeight:x.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Xu},Qt(x.curOp)}function _s(x){var z=x.curOp;z&&Dn(z,function(ne){for(var te=0;te<ne.ops.length;te++)ne.ops[te].cm.curOp=null;yu(ne)})}function yu(x){for(var z=x.ops,ne=0;ne<z.length;ne++)ql(z[ne]);for(var te=0;te<z.length;te++)Ia(z[te]);for(var ie=0;ie<z.length;ie++)oa(z[ie]);for(var ue=0;ue<z.length;ue++)Wo(z[ue]);for(var ve=0;ve<z.length;ve++)es(z[ve])}function ql(x){var z=x.cm,ne=z.display;Ql(z),x.updateMaxLine&&gn(z),x.mustUpdate=x.viewChanged||x.forceUpdate||x.scrollTop!=null||x.scrollToPos&&(x.scrollToPos.from.line<ne.viewFrom||x.scrollToPos.to.line>=ne.viewTo)||ne.maxLineChanged&&z.options.lineWrapping,x.update=x.mustUpdate&&new gs(z,x.mustUpdate&&{top:x.scrollTop,ensure:x.scrollToPos},x.forceUpdate)}function Ia(x){x.updatedDisplay=x.mustUpdate&&Yu(x.cm,x.update)}function oa(x){var z=x.cm,ne=z.display;x.updatedDisplay&&Vo(z),x.barMeasure=yo(z),ne.maxLineChanged&&!z.options.lineWrapping&&(x.adjustWidthTo=La(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+Pr(z)+z.display.barWidth),x.maxScrollLeft=Math.max(0,ne.sizer.offsetLeft+x.adjustWidthTo-Ur(z))),(x.updatedDisplay||x.selectionChanged)&&(x.preparedSelection=ne.input.prepareSelection())}function Wo(x){var z=x.cm;x.adjustWidthTo!=null&&(z.display.sizer.style.minWidth=x.adjustWidthTo+"px",x.maxScrollLeft<z.doc.scrollLeft&&go(z,Math.min(z.display.scroller.scrollLeft,x.maxScrollLeft),!0),z.display.maxLineChanged=!1);var ne=x.focus&&x.focus==Dt();x.preparedSelection&&z.display.input.showSelection(x.preparedSelection,ne),(x.updatedDisplay||x.startHeight!=z.doc.height)&&xs(z,x.barMeasure),x.updatedDisplay&&Ju(z,x.barMeasure),x.selectionChanged&&Jr(z),z.state.focused&&x.updateInput&&z.display.input.reset(x.typing),ne&&li(x.cm)}function es(x){var z=x.cm,ne=z.display,te=z.doc;if(x.updatedDisplay&&Zc(z,x.update),ne.wheelStartX!=null&&(x.scrollTop!=null||x.scrollLeft!=null||x.scrollToPos)&&(ne.wheelStartX=ne.wheelStartY=null),x.scrollTop!=null&&Xa(z,x.scrollTop,x.forceScroll),x.scrollLeft!=null&&go(z,x.scrollLeft,!0,!0),x.scrollToPos){var ie=us(z,dr(te,x.scrollToPos.from),dr(te,x.scrollToPos.to),x.scrollToPos.margin);No(z,ie)}var ue=x.maybeHiddenMarkers,ve=x.maybeUnhiddenMarkers;if(ue)for(var Ce=0;Ce<ue.length;++Ce)ue[Ce].lines.length||En(ue[Ce],"hide");if(ve)for(var De=0;De<ve.length;++De)ve[De].lines.length&&En(ve[De],"unhide");ne.wrapper.offsetHeight&&(te.scrollTop=z.display.scroller.scrollTop),x.changeObjs&&En(z,"changes",z,x.changeObjs),x.update&&x.update.finish()}function sa(x,z){if(x.curOp)return z();Ks(x);try{return z()}finally{_s(x)}}function Ha(x,z){return function(){if(x.curOp)return z.apply(x,arguments);Ks(x);try{return z.apply(x,arguments)}finally{_s(x)}}}function Oa(x){return function(){if(this.curOp)return x.apply(this,arguments);Ks(this);try{return x.apply(this,arguments)}finally{_s(this)}}}function po(x){return function(){var z=this.cm;if(!z||z.curOp)return x.apply(this,arguments);Ks(z);try{return x.apply(this,arguments)}finally{_s(z)}}}function is(x,z){x.doc.highlightFrontier<x.display.viewTo&&x.state.highlight.set(z,Xn(Ws,x))}function Ws(x){var z=x.doc;if(!(z.highlightFrontier>=x.display.viewTo)){var ne=+new Date+x.options.workTime,te=_i(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 ve=ue.styles,Ce=ue.text.length>x.options.maxHighlightLength?gt(z.mode,te.state):null,De=wa(x,ue,te,!0);Ce&&(te.state=Ce),ue.styles=De.styles;var Ne=ue.styleClasses,ut=De.classes;ut?ue.styleClasses=ut:Ne&&(ue.styleClasses=null);for(var St=!ve||ve.length!=ue.styles.length||Ne!=ut&&(!Ne||!ut||Ne.bgClass!=ut.bgClass||Ne.textClass!=ut.textClass),en=0;!St&&en<ve.length;++en)St=ve[en]!=ue.styles[en];St&&ie.push(te.line),ue.stateAfter=te.save(),te.nextLine()}else ue.text.length<=x.options.maxHighlightLength&&fa(x,ue.text,te),ue.stateAfter=te.line%5==0?te.save():null,te.nextLine();if(+new Date>ne)return is(x,x.options.workDelay),!0}),z.highlightFrontier=te.line,z.modeFrontier=Math.max(z.modeFrontier,te.line),ie.length&&sa(x,function(){for(var ue=0;ue<ie.length;ue++)Da(x,ie[ue],"text")})}}var gs=function(x,z,ne){var te=x.display;this.viewport=z,this.visible=la(te,x.doc,z),this.editorIsHidden=!te.wrapper.offsetWidth,this.wrapperHeight=te.wrapper.clientHeight,this.wrapperWidth=te.wrapper.clientWidth,this.oldDisplayWidth=Ur(x),this.force=ne,this.dims=ho(x),this.events=[]};gs.prototype.signal=function(x,z){ei(x,z)&&this.events.push(arguments)},gs.prototype.finish=function(){for(var x=0;x<this.events.length;x++)En.apply(null,this.events[x])};function Ql(x){var z=x.display;!z.scrollbarsClipped&&z.scroller.offsetWidth&&(z.nativeBarWidth=z.scroller.offsetWidth-z.scroller.clientWidth,z.heightForcer.style.height=Pr(x)+"px",z.sizer.style.marginBottom=-z.nativeBarWidth+"px",z.sizer.style.borderRightWidth=Pr(x)+"px",z.scrollbarsClipped=!0)}function Zd(x){if(x.hasFocus())return null;var z=Dt();if(!z||!Rt(x.display.lineDiv,z))return null;var ne={activeElt:z};if(window.getSelection){var te=window.getSelection();te.anchorNode&&te.extend&&Rt(x.display.lineDiv,te.anchorNode)&&(ne.anchorNode=te.anchorNode,ne.anchorOffset=te.anchorOffset,ne.focusNode=te.focusNode,ne.focusOffset=te.focusOffset)}return ne}function Ud(x){if(!(!x||!x.activeElt||x.activeElt==Dt())&&(x.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(x.activeElt.nodeName)&&x.anchorNode&&Rt(document.body,x.anchorNode)&&Rt(document.body,x.focusNode))){var z=window.getSelection(),ne=document.createRange();ne.setEnd(x.anchorNode,x.anchorOffset),ne.collapse(!1),z.removeAllRanges(),z.addRange(ne),z.extend(x.focusNode,x.focusOffset)}}function Yu(x,z){var ne=x.display,te=x.doc;if(z.editorIsHidden)return Ea(x),!1;if(!z.force&&z.visible.from>=ne.viewFrom&&z.visible.to<=ne.viewTo&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo)&&ne.renderedView==ne.view&&hs(x)==0)return!1;bu(x)&&(Ea(x),z.dims=ho(x));var ie=te.first+te.size,ue=Math.max(z.visible.from-x.options.viewportMargin,te.first),ve=Math.min(ie,z.visible.to+x.options.viewportMargin);ne.viewFrom<ue&&ue-ne.viewFrom<20&&(ue=Math.max(te.first,ne.viewFrom)),ne.viewTo>ve&&ne.viewTo-ve<20&&(ve=Math.min(ie,ne.viewTo)),oi&&(ue=Jt(x.doc,ue),ve=Fn(x.doc,ve));var Ce=ue!=ne.viewFrom||ve!=ne.viewTo||ne.lastWrapHeight!=z.wrapperHeight||ne.lastWrapWidth!=z.wrapperWidth;ao(x,ue,ve),ne.viewOffset=sn(Vt(x.doc,ne.viewFrom)),x.display.mover.style.top=ne.viewOffset+"px";var De=hs(x);if(!Ce&&De==0&&!z.force&&ne.renderedView==ne.view&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo))return!1;var Ne=Zd(x);return De>4&&(ne.lineDiv.style.display="none"),Gd(x,ne.updateLineNumbers,z.dims),De>4&&(ne.lineDiv.style.display=""),ne.renderedView=ne.view,Ud(Ne),Ue(ne.cursorDiv),Ue(ne.selectionDiv),ne.gutters.style.height=ne.sizer.style.minHeight=0,Ce&&(ne.lastWrapHeight=z.wrapperHeight,ne.lastWrapWidth=z.wrapperWidth,is(x,400)),ne.updateLineNumbers=null,!0}function Zc(x,z){for(var ne=z.viewport,te=!0;;te=!1){if(!te||!x.options.lineWrapping||z.oldDisplayWidth==Ur(x)){if(ne&&ne.top!=null&&(ne={top:Math.min(x.doc.height+qr(x.display)-si(x),ne.top)}),z.visible=la(x.display,x.doc,ne),z.visible.from>=x.display.viewFrom&&z.visible.to<=x.display.viewTo)break}else te&&(z.visible=la(x.display,x.doc,ne));if(!Yu(x,z))break;Vo(x);var ie=yo(x);Jo(x),xs(x,ie),Ju(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 qu(x,z){var ne=new gs(x,z);if(Yu(x,ne)){Vo(x),Zc(x,ne);var te=yo(x);Jo(x),xs(x,te),Ju(x,te),ne.finish()}}function Gd(x,z,ne){var te=x.display,ie=x.options.lineNumbers,ue=te.lineDiv,ve=ue.firstChild;function Ce(Rn){var Qn=Rn.nextSibling;return ke&&Me&&x.display.currentWheelTarget==Rn?Rn.style.display="none":Rn.parentNode.removeChild(Rn),Qn}for(var De=te.view,Ne=te.viewFrom,ut=0;ut<De.length;ut++){var St=De[ut];if(!St.hidden)if(!St.node||St.node.parentNode!=ue){var en=Vr(x,St,Ne,ne);ue.insertBefore(en,ve)}else{for(;ve!=St.node;)ve=Ce(ve);var jt=ie&&z!=null&&z<=Ne&&St.lineNumber;St.changes&&(Ft(St.changes,"gutter")>-1&&(jt=!1),Br(x,St,Ne,ne)),jt&&(Ue(St.lineNumber),St.lineNumber.appendChild(document.createTextNode(Dr(x.options,Ne)))),ve=St.node.nextSibling}Ne+=St.size}for(;ve;)ve=Ce(ve)}function Qu(x){var z=x.gutters.offsetWidth;x.sizer.style.marginLeft=z+"px"}function Ju(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+Pr(x)+"px"}function Uc(x){var z=x.display,ne=z.view;if(!(!z.alignWidgets&&(!z.gutters.firstChild||!x.options.fixedGutter))){for(var te=Po(z)-z.scroller.scrollLeft+x.doc.scrollLeft,ie=z.gutters.offsetWidth,ue=te+"px",ve=0;ve<ne.length;ve++)if(!ne[ve].hidden){x.options.fixedGutter&&(ne[ve].gutter&&(ne[ve].gutter.style.left=ue),ne[ve].gutterBackground&&(ne[ve].gutterBackground.style.left=ue));var Ce=ne[ve].alignable;if(Ce)for(var De=0;De<Ce.length;De++)Ce[De].style.left=ue}x.options.fixedGutter&&(z.gutters.style.left=te+ie+"px")}}function bu(x){if(!x.options.lineNumbers)return!1;var z=x.doc,ne=Dr(x.options,z.first+z.size-1),te=x.display;if(ne.length!=te.lineNumChars){var ie=te.measure.appendChild(pt("div",[pt("div",ne)],"CodeMirror-linenumber CodeMirror-gutter-elt")),ue=ie.firstChild.offsetWidth,ve=ie.offsetWidth-ue;return te.lineGutter.style.width="",te.lineNumInnerWidth=Math.max(ue,te.lineGutter.offsetWidth-ve)+1,te.lineNumWidth=te.lineNumInnerWidth+ve,te.lineNumChars=te.lineNumInnerWidth?ne.length:-1,te.lineGutter.style.width=te.lineNumWidth+"px",Qu(x.display),!0}return!1}function ec(x,z){for(var ne=[],te=!1,ie=0;ie<x.length;ie++){var ue=x[ie],ve=null;if(typeof ue!="string"&&(ve=ue.style,ue=ue.className),ue=="CodeMirror-linenumbers")if(z)te=!0;else continue;ne.push({className:ue,style:ve})}return z&&!te&&ne.push({className:"CodeMirror-linenumbers",style:null}),ne}function Gc(x){var z=x.gutters,ne=x.gutterSpecs;Ue(z),x.lineGutter=null;for(var te=0;te<ne.length;++te){var ie=ne[te],ue=ie.className,ve=ie.style,Ce=z.appendChild(pt("div",null,"CodeMirror-gutter "+ue));ve&&(Ce.style.cssText=ve),ue=="CodeMirror-linenumbers"&&(x.lineGutter=Ce,Ce.style.width=(x.lineNumWidth||1)+"px")}z.style.display=ne.length?"":"none",Qu(x)}function Jl(x){Gc(x.display),hi(x),Uc(x)}function jd(x,z,ne,te){var ie=this;this.input=ne,ie.scrollbarFiller=pt("div",null,"CodeMirror-scrollbar-filler"),ie.scrollbarFiller.setAttribute("cm-not-content","true"),ie.gutterFiller=pt("div",null,"CodeMirror-gutter-filler"),ie.gutterFiller.setAttribute("cm-not-content","true"),ie.lineDiv=Mt("div",null,"CodeMirror-code"),ie.selectionDiv=pt("div",null,null,"position: relative; z-index: 1"),ie.cursorDiv=pt("div",null,"CodeMirror-cursors"),ie.measure=pt("div",null,"CodeMirror-measure"),ie.lineMeasure=pt("div",null,"CodeMirror-measure"),ie.lineSpace=Mt("div",[ie.measure,ie.lineMeasure,ie.selectionDiv,ie.cursorDiv,ie.lineDiv],null,"position: relative; outline: none");var ue=Mt("div",[ie.lineSpace],"CodeMirror-lines");ie.mover=pt("div",[ue],null,"position: relative"),ie.sizer=pt("div",[ie.mover],"CodeMirror-sizer"),ie.sizerWidth=null,ie.heightForcer=pt("div",null,null,"position: absolute; height: "+Sn+"px; width: 1px;"),ie.gutters=pt("div",null,"CodeMirror-gutters"),ie.lineGutter=null,ie.scroller=pt("div",[ie.sizer,ie.heightForcer,ie.gutters],"CodeMirror-scroll"),ie.scroller.setAttribute("tabIndex","-1"),ie.wrapper=pt("div",[ie.scrollbarFiller,ie.gutterFiller,ie.scroller],"CodeMirror"),be&&Ae<8&&(ie.gutters.style.zIndex=-1,ie.scroller.style.paddingRight=0),!ke&&!(ge&&Ge)&&(ie.scroller.draggable=!0),x&&(x.appendChild?x.appendChild(ie.wrapper):x(ie.wrapper)),ie.viewFrom=ie.viewTo=z.first,ie.reportedViewFrom=ie.reportedViewTo=z.first,ie.view=[],ie.renderedView=null,ie.externalMeasured=null,ie.viewOffset=0,ie.lastWrapHeight=ie.lastWrapWidth=0,ie.updateLineNumbers=null,ie.nativeBarWidth=ie.barHeight=ie.barWidth=0,ie.scrollbarsClipped=!1,ie.lineNumWidth=ie.lineNumInnerWidth=ie.lineNumChars=null,ie.alignWidgets=!1,ie.cachedCharWidth=ie.cachedTextHeight=ie.cachedPaddingH=null,ie.maxLine=null,ie.maxLineLength=0,ie.maxLineChanged=!1,ie.wheelDX=ie.wheelDY=ie.wheelStartX=ie.wheelStartY=null,ie.shift=!1,ie.selForContextMenu=null,ie.activeTouch=null,ie.gutterSpecs=ec(te.gutters,te.lineNumbers),Gc(ie),ne.init(ie)}var xu=0,Zo=null;be?Zo=-.53:ge?Zo=15:pe?Zo=-.7:ot&&(Zo=-1/3);function Bl(x){var z=x.wheelDeltaX,ne=x.wheelDeltaY;return z==null&&x.detail&&x.axis==x.HORIZONTAL_AXIS&&(z=x.detail),ne==null&&x.detail&&x.axis==x.VERTICAL_AXIS?ne=x.detail:ne==null&&(ne=x.wheelDelta),{x:z,y:ne}}function jc(x){var z=Bl(x);return z.x*=Zo,z.y*=Zo,z}function Xc(x,z){var ne=Bl(z),te=ne.x,ie=ne.y,ue=x.display,ve=ue.scroller,Ce=ve.scrollWidth>ve.clientWidth,De=ve.scrollHeight>ve.clientHeight;if(te&&Ce||ie&&De){if(ie&&Me&&ke){e:for(var Ne=z.target,ut=ue.view;Ne!=ve;Ne=Ne.parentNode)for(var St=0;St<ut.length;St++)if(ut[St].node==Ne){x.display.currentWheelTarget=Ne;break e}}if(te&&!ge&&!Ie&&Zo!=null){ie&&De&&Ta(x,Math.max(0,ve.scrollTop+ie*Zo)),go(x,Math.max(0,ve.scrollLeft+te*Zo)),(!ie||ie&&De)&&Gr(z),ue.wheelStartX=null;return}if(ie&&Zo!=null){var en=ie*Zo,jt=x.doc.scrollTop,Rn=jt+ue.wrapper.clientHeight;en<0?jt=Math.max(0,jt+en-50):Rn=Math.min(x.doc.height,Rn+en+50),qu(x,{top:jt,bottom:Rn})}xu<20&&(ue.wheelStartX==null?(ue.wheelStartX=ve.scrollLeft,ue.wheelStartY=ve.scrollTop,ue.wheelDX=te,ue.wheelDY=ie,setTimeout(function(){if(ue.wheelStartX!=null){var Qn=ve.scrollLeft-ue.wheelStartX,yr=ve.scrollTop-ue.wheelStartY,Ir=yr&&ue.wheelDY&&yr/ue.wheelDY||Qn&&ue.wheelDX&&Qn/ue.wheelDX;ue.wheelStartX=ue.wheelStartY=null,Ir&&(Zo=(Zo*xu+Ir)/(xu+1),++xu)}},200)):(ue.wheelDX+=te,ue.wheelDY+=ie))}}var vs=function(x,z){this.ranges=x,this.primIndex=z};vs.prototype.primary=function(){return this.ranges[this.primIndex]},vs.prototype.equals=function(x){if(x==this)return!0;if(x.primIndex!=this.primIndex||x.ranges.length!=this.ranges.length)return!1;for(var z=0;z<this.ranges.length;z++){var ne=this.ranges[z],te=x.ranges[z];if(!pi(ne.anchor,te.anchor)||!pi(ne.head,te.head))return!1}return!0},vs.prototype.deepCopy=function(){for(var x=[],z=0;z<this.ranges.length;z++)x[z]=new Za(wi(this.ranges[z].anchor),wi(this.ranges[z].head));return new vs(x,this.primIndex)},vs.prototype.somethingSelected=function(){for(var x=0;x<this.ranges.length;x++)if(!this.ranges[x].empty())return!0;return!1},vs.prototype.contains=function(x,z){z||(z=x);for(var ne=0;ne<this.ranges.length;ne++){var te=this.ranges[ne];if(Hn(z,te.from())>=0&&Hn(x,te.to())<=0)return ne}return-1};var Za=function(x,z){this.anchor=x,this.head=z};Za.prototype.from=function(){return Or(this.anchor,this.head)},Za.prototype.to=function(){return Zr(this.anchor,this.head)},Za.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ms(x,z,ne){var te=x&&x.options.selectionsMayTouch,ie=z[ne];z.sort(function(en,jt){return Hn(en.from(),jt.from())}),ne=Ft(z,ie);for(var ue=1;ue<z.length;ue++){var ve=z[ue],Ce=z[ue-1],De=Hn(Ce.to(),ve.from());if(te&&!ve.empty()?De>0:De>=0){var Ne=Or(Ce.from(),ve.from()),ut=Zr(Ce.to(),ve.to()),St=Ce.empty()?ve.from()==ve.head:Ce.from()==Ce.head;ue<=ne&&--ne,z.splice(--ue,2,new Za(St?ut:Ne,St?Ne:ut))}}return new vs(z,ne)}function Bs(x,z){return new vs([new Za(x,z||x)],0)}function Qs(x){return x.text?dn(x.from.line+x.text.length-1,Ct(x.text).length+(x.text.length==1?x.from.ch:0)):x.to}function Yc(x,z){if(Hn(x,z.from)<0)return x;if(Hn(x,z.to)<=0)return Qs(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+=Qs(z).ch-z.to.ch),dn(ne,te)}function tc(x,z){for(var ne=[],te=0;te<x.sel.ranges.length;te++){var ie=x.sel.ranges[te];ne.push(new Za(Yc(ie.anchor,z),Yc(ie.head,z)))}return Ms(x.cm,ne,x.sel.primIndex)}function Pl(x,z,ne){return x.line==z.line?dn(ne.line,x.ch-z.ch+ne.ch):dn(ne.line+(x.line-z.line),x.ch)}function nc(x,z,ne){for(var te=[],ie=dn(x.first,0),ue=ie,ve=0;ve<z.length;ve++){var Ce=z[ve],De=Pl(Ce.from,ie,ue),Ne=Pl(Qs(Ce),ie,ue);if(ie=Ce.to,ue=Ne,ne=="around"){var ut=x.sel.ranges[ve],St=Hn(ut.head,ut.anchor)<0;te[ve]=new Za(St?Ne:De,St?De:Ne)}else te[ve]=new Za(De,De)}return new vs(te,x.sel.primIndex)}function rc(x){x.doc.mode=Lt(x.options,x.doc.modeOption),Ol(x)}function Ol(x){x.doc.iter(function(z){z.stateAfter&&(z.stateAfter=null),z.styles&&(z.styles=null)}),x.doc.modeFrontier=x.doc.highlightFrontier=x.doc.first,is(x,100),x.state.modeGen++,x.curOp&&hi(x)}function qc(x,z){return z.from.ch==0&&z.to.ch==0&&Ct(z.text)==""&&(!x.cm||x.cm.options.wholeLineUpdateBefore)}function ic(x,z,ne,te){function ie(zr){return ne?ne[zr]:null}function ue(zr,Lr,Hr){tr(zr,Lr,Hr,te),An(zr,"change",zr,z)}function ve(zr,Lr){for(var Hr=[],vi=zr;vi<Lr;++vi)Hr.push(new xn(Ne[vi],ie(vi),te));return Hr}var Ce=z.from,De=z.to,Ne=z.text,ut=Vt(x,Ce.line),St=Vt(x,De.line),en=Ct(Ne),jt=ie(Ne.length-1),Rn=De.line-Ce.line;if(z.full)x.insert(0,ve(0,Ne.length)),x.remove(Ne.length,x.size-Ne.length);else if(qc(x,z)){var Qn=ve(0,Ne.length-1);ue(St,St.text,jt),Rn&&x.remove(Ce.line,Rn),Qn.length&&x.insert(Ce.line,Qn)}else if(ut==St)if(Ne.length==1)ue(ut,ut.text.slice(0,Ce.ch)+en+ut.text.slice(De.ch),jt);else{var yr=ve(1,Ne.length-1);yr.push(new xn(en+ut.text.slice(De.ch),jt,te)),ue(ut,ut.text.slice(0,Ce.ch)+Ne[0],ie(0)),x.insert(Ce.line+1,yr)}else if(Ne.length==1)ue(ut,ut.text.slice(0,Ce.ch)+Ne[0]+St.text.slice(De.ch),ie(0)),x.remove(Ce.line+1,Rn);else{ue(ut,ut.text.slice(0,Ce.ch)+Ne[0],ie(0)),ue(St,en+St.text.slice(De.ch),jt);var Ir=ve(1,Ne.length-1);Rn>1&&x.remove(Ce.line+1,Rn-1),x.insert(Ce.line+1,Ir)}An(x,"change",x,z)}function Js(x,z,ne){function te(ie,ue,ve){if(ie.linked)for(var Ce=0;Ce<ie.linked.length;++Ce){var De=ie.linked[Ce];if(De.doc!=ue){var Ne=ve&&De.sharedHist;ne&&!Ne||(z(De.doc,Ne),te(De.doc,ie,Ne))}}}te(x,null,!0)}function wu(x,z){if(z.cm)throw new Error("This document is already in use.");x.doc=z,z.cm=x,lo(x),rc(x),Su(x),x.options.lineWrapping||gn(x),x.options.mode=z.modeOption,hi(x)}function Su(x){(x.doc.direction=="rtl"?on:Ke)(x.display.lineDiv,"CodeMirror-rtl")}function ac(x){sa(x,function(){Su(x),hi(x)})}function Cu(x){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=x||1}function oc(x,z){var ne={from:wi(z.from),to:Qs(z),text:Pn(x,z.from,z.to)};return cc(x,ne,z.from.line,z.to.line+1),Js(x,function(te){return cc(te,ne,z.from.line,z.to.line+1)},!0),ne}function Qc(x){for(;x.length;){var z=Ct(x);if(z.ranges)x.pop();else break}}function sc(x,z){if(z)return Qc(x.done),Ct(x.done);if(x.done.length&&!Ct(x.done).ranges)return Ct(x.done);if(x.done.length>1&&!x.done[x.done.length-2].ranges)return x.done.pop(),Ct(x.done)}function Eu(x,z,ne,te){var ie=x.history;ie.undone.length=0;var ue=+new Date,ve,Ce;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)=="*"))&&(ve=sc(ie,ie.lastOp==te)))Ce=Ct(ve.changes),Hn(z.from,z.to)==0&&Hn(z.from,Ce.to)==0?Ce.to=Qs(z):ve.changes.push(oc(x,z));else{var De=Ct(ie.done);for((!De||!De.ranges)&&Mu(x.sel,ie.done),ve={changes:[oc(x,z)],generation:ie.generation},ie.done.push(ve);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,Ce||En(x,"historyAdded")}function lc(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 uc(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||lc(x,ue,Ct(ie.done),z))?ie.done[ie.done.length-1]=z:Mu(z,ie.done),ie.lastSelTime=+new Date,ie.lastSelOrigin=ue,ie.lastSelOp=ne,te&&te.clearRedo!==!1&&Qc(ie.undone)}function Mu(x,z){var ne=Ct(z);ne&&ne.ranges&&ne.equals(x)||z.push(x)}function cc(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(ve){ve.markedSpans&&((ie||(ie=z["spans_"+x.id]={}))[ue]=ve.markedSpans),++ue})}function dc(x){if(!x)return null;for(var z,ne=0;ne<x.length;++ne)x[ne].marker.explicitlyCleared?z||(z=x.slice(0,ne)):z&&z.push(x[ne]);return z?z.length?z:null:x}function Xd(x,z){var ne=z["spans_"+x.id];if(!ne)return null;for(var te=[],ie=0;ie<z.text.length;++ie)te.push(dc(ne[ie]));return te}function Jc(x,z){var ne=Xd(x,z),te=Fr(x,z);if(!ne)return te;if(!te)return ne;for(var ie=0;ie<ne.length;++ie){var ue=ne[ie],ve=te[ie];if(ue&&ve)e:for(var Ce=0;Ce<ve.length;++Ce){for(var De=ve[Ce],Ne=0;Ne<ue.length;++Ne)if(ue[Ne].marker==De.marker)continue e;ue.push(De)}else ve&&(ne[ie]=ve)}return ne}function Nl(x,z,ne){for(var te=[],ie=0;ie<x.length;++ie){var ue=x[ie];if(ue.ranges){te.push(ne?vs.prototype.deepCopy.call(ue):ue);continue}var ve=ue.changes,Ce=[];te.push({changes:Ce});for(var De=0;De<ve.length;++De){var Ne=ve[De],ut=void 0;if(Ce.push({from:Ne.from,to:Ne.to,text:Ne.text}),z)for(var St in Ne)(ut=St.match(/^spans_(\d+)$/))&&Ft(z,Number(ut[1]))>-1&&(Ct(Ce)[St]=Ne[St],delete Ne[St])}}return te}function fc(x,z,ne,te){if(te){var ie=x.anchor;if(ne){var ue=Hn(z,ie)<0;ue!=Hn(ne,ie)<0?(ie=z,z=ne):ue!=Hn(z,ne)<0&&(z=ne)}return new Za(ie,z)}else return new Za(ne||z,z)}function Rl(x,z,ne,te,ie){ie==null&&(ie=x.cm&&(x.cm.display.shift||x.extend)),To(x,new vs([fc(x.sel.primary(),z,ne,ie)],0),te)}function Wr(x,z,ne){for(var te=[],ie=x.cm&&(x.cm.display.shift||x.extend),ue=0;ue<x.sel.ranges.length;ue++)te[ue]=fc(x.sel.ranges[ue],z[ue],null,ie);var ve=Ms(x.cm,te,x.sel.primIndex);To(x,ve,ne)}function ws(x,z,ne,te){var ie=x.sel.ranges.slice(0);ie[z]=ne,To(x,Ms(x.cm,ie,x.sel.primIndex),te)}function ed(x,z,ne,te){To(x,Bs(z,ne),te)}function Yd(x,z,ne){var te={ranges:z.ranges,update:function(ie){this.ranges=[];for(var ue=0;ue<ie.length;ue++)this.ranges[ue]=new Za(dr(x,ie[ue].anchor),dr(x,ie[ue].head))},origin:ne&&ne.origin};return En(x,"beforeSelectionChange",x,te),x.cm&&En(x.cm,"beforeSelectionChange",x.cm,te),te.ranges!=z.ranges?Ms(x.cm,te.ranges,te.ranges.length-1):z}function as(x,z,ne){var te=x.history.done,ie=Ct(te);ie&&ie.ranges?(te[te.length-1]=z,ku(x,z,ne)):To(x,z,ne)}function To(x,z,ne){ku(x,z,ne),uc(x,x.sel,x.cm?x.cm.curOp.id:NaN,ne)}function ku(x,z,ne){(ei(x,"beforeSelectionChange")||x.cm&&ei(x.cm,"beforeSelectionChange"))&&(z=Yd(x,z,ne));var te=ne&&ne.bias||(Hn(z.primary().head,x.sel.primary().head)<0?-1:1);qd(x,Fl(x,z,te,!0)),!(ne&&ne.scroll===!1)&&x.cm&&Ho(x.cm)}function qd(x,z){z.equals(x.sel)||(x.sel=z,x.cm&&(x.cm.curOp.updateInput=1,x.cm.curOp.selectionChanged=!0,xi(x.cm)),An(x,"cursorActivity",x))}function Qd(x){qd(x,Fl(x,x.sel,null,!1))}function Fl(x,z,ne,te){for(var ie,ue=0;ue<z.ranges.length;ue++){var ve=z.ranges[ue],Ce=z.ranges.length==x.sel.ranges.length&&x.sel.ranges[ue],De=hc(x,ve.anchor,Ce&&Ce.anchor,ne,te),Ne=hc(x,ve.head,Ce&&Ce.head,ne,te);(ie||De!=ve.anchor||Ne!=ve.head)&&(ie||(ie=z.ranges.slice(0,ue)),ie[ue]=new Za(De,Ne))}return ie?Ms(x.cm,ie,z.primIndex):z}function os(x,z,ne,te,ie){var ue=Vt(x,z.line);if(ue.markedSpans)for(var ve=0;ve<ue.markedSpans.length;++ve){var Ce=ue.markedSpans[ve],De=Ce.marker,Ne="selectLeft"in De?!De.selectLeft:De.inclusiveLeft,ut="selectRight"in De?!De.selectRight:De.inclusiveRight;if((Ce.from==null||(Ne?Ce.from<=z.ch:Ce.from<z.ch))&&(Ce.to==null||(ut?Ce.to>=z.ch:Ce.to>z.ch))){if(ie&&(En(De,"beforeCursorEnter"),De.explicitlyCleared))if(ue.markedSpans){--ve;continue}else break;if(!De.atomic)continue;if(ne){var St=De.find(te<0?1:-1),en=void 0;if((te<0?ut:Ne)&&(St=el(x,St,-te,St&&St.line==z.line?ue:null)),St&&St.line==z.line&&(en=Hn(St,ne))&&(te<0?en<0:en>0))return os(x,St,z,te,ie)}var jt=De.find(te<0?-1:1);return(te<0?Ne:ut)&&(jt=el(x,jt,te,jt.line==z.line?ue:null)),jt?os(x,jt,z,te,ie):null}}return z}function hc(x,z,ne,te,ie){var ue=te||1,ve=os(x,z,ne,ue,ie)||!ie&&os(x,z,ne,ue,!0)||os(x,z,ne,-ue,ie)||!ie&&os(x,z,ne,-ue,!0);return ve||(x.cantEdit=!0,dn(x.first,0))}function el(x,z,ne,te){return ne<0&&z.ch==0?z.line>x.first?dr(x,dn(z.line-1)):null:ne>0&&z.ch==(te||Vt(x,z.line)).text.length?z.line<x.first+x.size-1?dn(z.line+1,0):null:new dn(z.line,z.ch+ne)}function td(x){x.setSelection(dn(x.firstLine(),0),dn(x.lastLine()),nt)}function pc(x,z,ne){var te={canceled:!1,from:z.from,to:z.to,text:z.text,origin:z.origin,cancel:function(){return te.canceled=!0}};return ne&&(te.update=function(ie,ue,ve,Ce){ie&&(te.from=dr(x,ie)),ue&&(te.to=dr(x,ue)),ve&&(te.text=ve),Ce!==void 0&&(te.origin=Ce)}),En(x,"beforeChange",x,te),x.cm&&En(x.cm,"beforeChange",x.cm,te),te.canceled?(x.cm&&(x.cm.curOp.updateInput=2),null):{from:te.from,to:te.to,text:te.text,origin:te.origin}}function dl(x,z,ne){if(x.cm){if(!x.cm.curOp)return Ha(x.cm,dl)(x,z,ne);if(x.cm.state.suppressEdits)return}if(!((ei(x,"beforeChange")||x.cm&&ei(x.cm,"beforeChange"))&&(z=pc(x,z,!0),!z))){var te=ha&&!ne&&ni(x,z.from,z.to);if(te)for(var ie=te.length-1;ie>=0;--ie)nd(x,{from:te[ie].from,to:te[ie].to,text:ie?[""]:z.text,origin:z.origin});else nd(x,z)}}function nd(x,z){if(!(z.text.length==1&&z.text[0]==""&&Hn(z.from,z.to)==0)){var ne=tc(x,z);Eu(x,z,ne,x.cm?x.cm.curOp.id:NaN),zl(x,z,ne,Fr(x,z));var te=[];Js(x,function(ie,ue){!ue&&Ft(te,ie.history)==-1&&(Au(ie.history,z),te.push(ie.history)),zl(ie,z,null,Fr(ie,z))})}}function tl(x,z,ne){var te=x.cm&&x.cm.state.suppressEdits;if(!(te&&!ne)){for(var ie=x.history,ue,ve=x.sel,Ce=z=="undo"?ie.done:ie.undone,De=z=="undo"?ie.undone:ie.done,Ne=0;Ne<Ce.length&&(ue=Ce[Ne],!(ne?ue.ranges&&!ue.equals(x.sel):!ue.ranges));Ne++);if(Ne!=Ce.length){for(ie.lastOrigin=ie.lastSelOrigin=null;;)if(ue=Ce.pop(),ue.ranges){if(Mu(ue,De),ne&&!ue.equals(x.sel)){To(x,ue,{clearRedo:!1});return}ve=ue}else if(te){Ce.push(ue);return}else break;var ut=[];Mu(ve,De),De.push({changes:ut,generation:ie.generation}),ie.generation=ue.generation||++ie.maxGeneration;for(var St=ei(x,"beforeChange")||x.cm&&ei(x.cm,"beforeChange"),en=function(Qn){var yr=ue.changes[Qn];if(yr.origin=z,St&&!pc(x,yr,!1))return Ce.length=0,{};ut.push(oc(x,yr));var Ir=Qn?tc(x,yr):Ct(Ce);zl(x,yr,Ir,Jc(x,yr)),!Qn&&x.cm&&x.cm.scrollIntoView({from:yr.from,to:Qs(yr)});var zr=[];Js(x,function(Lr,Hr){!Hr&&Ft(zr,Lr.history)==-1&&(Au(Lr.history,yr),zr.push(Lr.history)),zl(Lr,yr,null,Jc(Lr,yr))})},jt=ue.changes.length-1;jt>=0;--jt){var Rn=en(jt);if(Rn)return Rn.v}}}}function mc(x,z){if(z!=0&&(x.first+=z,x.sel=new vs(tn(x.sel.ranges,function(ie){return new Za(dn(ie.anchor.line+z,ie.anchor.ch),dn(ie.head.line+z,ie.head.ch))}),x.sel.primIndex),x.cm)){hi(x.cm,x.first,x.first-z,z);for(var ne=x.cm.display,te=ne.viewFrom;te<ne.viewTo;te++)Da(x.cm,te,"gutter")}}function zl(x,z,ne,te){if(x.cm&&!x.cm.curOp)return Ha(x.cm,zl)(x,z,ne,te);if(z.to.line<x.first){mc(x,z.text.length-1-(z.to.line-z.from.line));return}if(!(z.from.line>x.lastLine())){if(z.from.line<x.first){var ie=z.text.length-1-(x.first-z.from.line);mc(x,ie),z={from:dn(x.first,0),to:dn(z.to.line+ie,z.to.ch),text:[Ct(z.text)],origin:z.origin}}var ue=x.lastLine();z.to.line>ue&&(z={from:z.from,to:dn(ue,Vt(x,ue).text.length),text:[z.text[0]],origin:z.origin}),z.removed=Pn(x,z.from,z.to),ne||(ne=tc(x,z)),x.cm?Jd(x.cm,z,te):ic(x,z,te),ku(x,ne,nt),x.cantEdit&&hc(x,dn(x.firstLine(),0))&&(x.cantEdit=!1)}}function Jd(x,z,ne){var te=x.doc,ie=x.display,ue=z.from,ve=z.to,Ce=!1,De=ue.line;x.options.lineWrapping||(De=Un(dt(Vt(te,ue.line))),te.iter(De,ve.line+1,function(jt){if(jt==ie.maxLine)return Ce=!0,!0})),te.sel.contains(z.from,z.to)>-1&&xi(x),ic(te,z,ne,Oo(x)),x.options.lineWrapping||(te.iter(De,ue.line+z.text.length,function(jt){var Rn=nn(jt);Rn>ie.maxLineLength&&(ie.maxLine=jt,ie.maxLineLength=Rn,ie.maxLineChanged=!0,Ce=!1)}),Ce&&(x.curOp.updateMaxLine=!0)),Ba(te,ue.line),is(x,400);var Ne=z.text.length-(ve.line-ue.line)-1;z.full?hi(x):ue.line==ve.line&&z.text.length==1&&!qc(x.doc,z)?Da(x,ue.line,"text"):hi(x,ue.line,ve.line+1,Ne);var ut=ei(x,"changes"),St=ei(x,"change");if(St||ut){var en={from:ue,to:ve,text:z.text,removed:z.removed,origin:z.origin};St&&An(x,"change",x,en),ut&&(x.curOp.changeObjs||(x.curOp.changeObjs=[])).push(en)}x.display.selForContextMenu=null}function eu(x,z,ne,te,ie){var ue;te||(te=ne),Hn(te,ne)<0&&(ue=[te,ne],ne=ue[0],te=ue[1]),typeof z=="string"&&(z=x.splitLines(z)),dl(x,{from:ne,to:te,text:z,origin:ie})}function ef(x,z,ne,te){ne<x.line?x.line+=te:z<x.line&&(x.line=z,x.ch=0)}function tf(x,z,ne,te){for(var ie=0;ie<x.length;++ie){var ue=x[ie],ve=!0;if(ue.ranges){ue.copied||(ue=x[ie]=ue.deepCopy(),ue.copied=!0);for(var Ce=0;Ce<ue.ranges.length;Ce++)ef(ue.ranges[Ce].anchor,z,ne,te),ef(ue.ranges[Ce].head,z,ne,te);continue}for(var De=0;De<ue.changes.length;++De){var Ne=ue.changes[De];if(ne<Ne.from.line)Ne.from=dn(Ne.from.line+te,Ne.from.ch),Ne.to=dn(Ne.to.line+te,Ne.to.ch);else if(z<=Ne.to.line){ve=!1;break}}ve||(x.splice(0,ie+1),ie=0)}}function Au(x,z){var ne=z.from.line,te=z.to.line,ie=z.text.length-(te-ne)-1;tf(x.done,ne,te,ie),tf(x.undone,ne,te,ie)}function Lu(x,z,ne,te){var ie=z,ue=z;return typeof z=="number"?ue=Vt(x,Li(x,z)):ie=Un(z),ie==null?null:(te(ue,ie)&&x.cm&&Da(x.cm,ie,ne),ue)}function fl(x){this.lines=x,this.parent=null;for(var z=0,ne=0;ne<x.length;++ne)x[ne].parent=this,z+=x[ne].height;this.height=z}fl.prototype={chunkSize:function(){return this.lines.length},removeInner:function(x,z){for(var ne=x,te=x+z;ne<te;++ne){var ie=this.lines[ne];this.height-=ie.height,Kn(ie),An(ie,"delete")}this.lines.splice(x,z)},collapse:function(x){x.push.apply(x,this.lines)},insertInner:function(x,z,ne){this.height+=ne,this.lines=this.lines.slice(0,x).concat(z).concat(this.lines.slice(x));for(var te=0;te<z.length;++te)z[te].parent=this},iterN:function(x,z,ne){for(var te=x+z;x<te;++x)if(ne(this.lines[x]))return!0}};function tu(x){this.children=x;for(var z=0,ne=0,te=0;te<x.length;++te){var ie=x[te];z+=ie.chunkSize(),ne+=ie.height,ie.parent=this}this.size=z,this.height=ne,this.parent=null}tu.prototype={chunkSize:function(){return this.size},removeInner:function(x,z){this.size-=z;for(var ne=0;ne<this.children.length;++ne){var te=this.children[ne],ie=te.chunkSize();if(x<ie){var ue=Math.min(z,ie-x),ve=te.height;if(te.removeInner(x,ue),this.height-=ve-te.height,ie==ue&&(this.children.splice(ne--,1),te.parent=null),(z-=ue)==0)break;x=0}else x-=ie}if(this.size-z<25&&(this.children.length>1||!(this.children[0]instanceof fl))){var Ce=[];this.collapse(Ce),this.children=[new fl(Ce)],this.children[0].parent=this}},collapse:function(x){for(var z=0;z<this.children.length;++z)this.children[z].collapse(x)},insertInner:function(x,z,ne){this.size+=z.length,this.height+=ne;for(var te=0;te<this.children.length;++te){var ie=this.children[te],ue=ie.chunkSize();if(x<=ue){if(ie.insertInner(x,z,ne),ie.lines&&ie.lines.length>50){for(var ve=ie.lines.length%25+25,Ce=ve;Ce<ie.lines.length;){var De=new fl(ie.lines.slice(Ce,Ce+=25));ie.height-=De.height,this.children.splice(++te,0,De),De.parent=this}ie.lines=ie.lines.slice(0,ve),this.maybeSpill()}break}x-=ue}},maybeSpill:function(){if(!(this.children.length<=10)){var x=this;do{var z=x.children.splice(x.children.length-5,5),ne=new tu(z);if(x.parent){x.size-=ne.size,x.height-=ne.height;var ie=Ft(x.parent.children,x);x.parent.children.splice(ie+1,0,ne)}else{var te=new tu(x.children);te.parent=x,x.children=[te,ne],x=te}ne.parent=x.parent}while(x.children.length>10);x.parent.maybeSpill()}},iterN:function(x,z,ne){for(var te=0;te<this.children.length;++te){var ie=this.children[te],ue=ie.chunkSize();if(x<ue){var ve=Math.min(z,ue-x);if(ie.iterN(x,ve,ne))return!0;if((z-=ve)==0)break;x=0}else x-=ue}}};var nu=function(x,z,ne){if(ne)for(var te in ne)ne.hasOwnProperty(te)&&(this[te]=ne[te]);this.doc=x,this.node=z};nu.prototype.clear=function(){var x=this.doc.cm,z=this.line.widgets,ne=this.line,te=Un(ne);if(!(te==null||!z)){for(var ie=0;ie<z.length;++ie)z[ie]==this&&z.splice(ie--,1);z.length||(ne.widgets=null);var ue=mi(this);Vn(ne,Math.max(0,ne.height-ue)),x&&(sa(x,function(){nf(x,ne,-ue),Da(x,te,"widget")}),An(x,"lineWidgetCleared",x,this,te))}},nu.prototype.changed=function(){var x=this,z=this.height,ne=this.doc.cm,te=this.line;this.height=null;var ie=mi(this)-z;ie&&(ir(this.doc,te)||Vn(te,te.height+ie),ne&&sa(ne,function(){ne.curOp.forceUpdate=!0,nf(ne,te,ie),An(ne,"lineWidgetChanged",ne,x,Un(te))}))},Yr(nu);function nf(x,z,ne){sn(z)<(x.curOp&&x.curOp.scrollTop||x.doc.scrollTop)&&ms(x,ne)}function rf(x,z,ne,te){var ie=new nu(x,ne,te),ue=x.cm;return ue&&ie.noHScroll&&(ue.display.alignWidgets=!0),Lu(x,z,"widget",function(ve){var Ce=ve.widgets||(ve.widgets=[]);if(ie.insertAt==null?Ce.push(ie):Ce.splice(Math.min(Ce.length-1,Math.max(0,ie.insertAt)),0,ie),ie.line=ve,ue&&!ir(x,ve)){var De=sn(ve)<x.scrollTop;Vn(ve,ve.height+mi(ie)),De&&ms(ue,ie.height),ue.curOp.forceUpdate=!0}return!0}),ue&&An(ue,"lineWidgetAdded",ue,ie,typeof z=="number"?z:Un(z)),ie}var af=0,hl=function(x,z){this.lines=[],this.type=z,this.doc=x,this.id=++af};hl.prototype.clear=function(){if(!this.explicitlyCleared){var x=this.doc.cm,z=x&&!x.curOp;if(z&&Ks(x),ei(this,"clear")){var ne=this.find();ne&&An(this,"clear",ne.from,ne.to)}for(var te=null,ie=null,ue=0;ue<this.lines.length;++ue){var ve=this.lines[ue],Ce=rn(ve.markedSpans,this);x&&!this.collapsed?Da(x,Un(ve),"text"):x&&(Ce.to!=null&&(ie=Un(ve)),Ce.from!=null&&(te=Un(ve))),ve.markedSpans=Mn(ve.markedSpans,Ce),Ce.from==null&&this.collapsed&&!ir(this.doc,ve)&&x&&Vn(ve,Ka(x.display))}if(x&&this.collapsed&&!x.options.lineWrapping)for(var De=0;De<this.lines.length;++De){var Ne=dt(this.lines[De]),ut=nn(Ne);ut>x.display.maxLineLength&&(x.display.maxLine=Ne,x.display.maxLineLength=ut,x.display.maxLineChanged=!0)}te!=null&&x&&this.collapsed&&hi(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&&An(x,"markerCleared",x,this,te,ie),z&&_s(x),this.parent&&this.parent.clear()}},hl.prototype.find=function(x,z){x==null&&this.type=="bookmark"&&(x=1);for(var ne,te,ie=0;ie<this.lines.length;++ie){var ue=this.lines[ie],ve=rn(ue.markedSpans,this);if(ve.from!=null&&(ne=dn(z?ue:Un(ue),ve.from),x==-1))return ne;if(ve.to!=null&&(te=dn(z?ue:Un(ue),ve.to),x==1))return te}return ne&&{from:ne,to:te}},hl.prototype.changed=function(){var x=this,z=this.find(-1,!0),ne=this,te=this.doc.cm;!z||!te||sa(te,function(){var ie=z.line,ue=Un(z.line),ve=qi(te,ue);if(ve&&(Mi(ve),te.curOp.selectionChanged=te.curOp.forceUpdate=!0),te.curOp.updateMaxLine=!0,!ir(ne.doc,ie)&&ne.height!=null){var Ce=ne.height;ne.height=null;var De=mi(ne)-Ce;De&&Vn(ie,ie.height+De)}An(te,"markerChanged",te,x)})},hl.prototype.attachLine=function(x){if(!this.lines.length&&this.doc.cm){var z=this.doc.cm.curOp;(!z.maybeHiddenMarkers||Ft(z.maybeHiddenMarkers,this)==-1)&&(z.maybeUnhiddenMarkers||(z.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(x)},hl.prototype.detachLine=function(x){if(this.lines.splice(Ft(this.lines,x),1),!this.lines.length&&this.doc.cm){var z=this.doc.cm.curOp;(z.maybeHiddenMarkers||(z.maybeHiddenMarkers=[])).push(this)}},Yr(hl);function nl(x,z,ne,te,ie){if(te&&te.shared)return co(x,z,ne,te,ie);if(x.cm&&!x.cm.curOp)return Ha(x.cm,nl)(x,z,ne,te,ie);var ue=new hl(x,ie),ve=Hn(z,ne);if(te&&nr(te,ue,!1),ve>0||ve==0&&ue.clearWhenEmpty!==!1)return ue;if(ue.replacedWith&&(ue.collapsed=!0,ue.widgetNode=Mt("span",[ue.replacedWith],"CodeMirror-widget"),te.handleMouseEvents||ue.widgetNode.setAttribute("cm-ignore-events","true"),te.insertLeft&&(ue.widgetNode.insertLeft=!0)),ue.collapsed){if(rt(x,z.line,z,ne,ue)||z.line!=ne.line&&rt(x,ne.line,z,ne,ue))throw new Error("Inserting collapsed marker partially overlapping an existing one");ht()}ue.addToHistory&&Eu(x,{from:z,to:ne,origin:"markText"},x.sel,NaN);var Ce=z.line,De=x.cm,Ne;if(x.iter(Ce,ne.line+1,function(St){De&&ue.collapsed&&!De.options.lineWrapping&&dt(St)==De.display.maxLine&&(Ne=!0),ue.collapsed&&Ce!=z.line&&Vn(St,0),Cr(St,new Wt(ue,Ce==z.line?z.ch:null,Ce==ne.line?ne.ch:null)),++Ce}),ue.collapsed&&x.iter(z.line,ne.line+1,function(St){ir(x,St)&&Vn(St,0)}),ue.clearOnEnter&&cn(ue,"beforeCursorEnter",function(){return ue.clear()}),ue.readOnly&&(vt(),(x.history.done.length||x.history.undone.length)&&x.clearHistory()),ue.collapsed&&(ue.id=++af,ue.atomic=!0),De){if(Ne&&(De.curOp.updateMaxLine=!0),ue.collapsed)hi(De,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++)Da(De,ut,"text");ue.atomic&&Qd(De.doc),An(De,"markerAdded",De,ue)}return ue}var ua=function(x,z){this.markers=x,this.primary=z;for(var ne=0;ne<x.length;++ne)x[ne].parent=this};ua.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var x=0;x<this.markers.length;++x)this.markers[x].clear();An(this,"clear")}},ua.prototype.find=function(x,z){return this.primary.find(x,z)},Yr(ua);function co(x,z,ne,te,ie){te=nr(te),te.shared=!1;var ue=[nl(x,z,ne,te,ie)],ve=ue[0],Ce=te.widgetNode;return Js(x,function(De){Ce&&(te.widgetNode=Ce.cloneNode(!0)),ue.push(nl(De,dr(De,z),dr(De,ne),te,ie));for(var Ne=0;Ne<De.linked.length;++Ne)if(De.linked[Ne].isParent)return;ve=Ct(ue)}),new ua(ue,ve)}function pl(x){return x.findMarks(dn(x.first,0),x.clipPos(dn(x.lastLine())),function(z){return z.parent})}function of(x,z){for(var ne=0;ne<z.length;ne++){var te=z[ne],ie=te.find(),ue=x.clipPos(ie.from),ve=x.clipPos(ie.to);if(Hn(ue,ve)){var Ce=nl(x,ue,ve,te.primary,te.primary.type);te.markers.push(Ce),Ce.parent=te}}}function Ss(x){for(var z=function(te){var ie=x[te],ue=[ie.primary.doc];Js(ie.primary.doc,function(De){return ue.push(De)});for(var ve=0;ve<ie.markers.length;ve++){var Ce=ie.markers[ve];Ft(ue,Ce.doc)==-1&&(Ce.parent=null,ie.markers.splice(ve--,1))}},ne=0;ne<x.length;ne++)z(ne)}var sf=0,Mo=function(x,z,ne,te,ie){if(!(this instanceof Mo))return new Mo(x,z,ne,te,ie);ne==null&&(ne=0),tu.call(this,[new fl([new xn("",null)])]),this.first=ne,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ne;var ue=dn(ne,0);this.sel=Bs(ue),this.history=new Cu(null),this.id=++sf,this.modeOption=z,this.lineSep=te,this.direction=ie=="rtl"?"rtl":"ltr",this.extend=!1,typeof x=="string"&&(x=this.splitLines(x)),ic(this,{from:ue,to:ue,text:x}),To(this,Bs(ue),nt)};Mo.prototype=ce(tu.prototype,{constructor:Mo,iter:function(x,z,ne){ne?this.iterN(x-this.first,z-x,ne):this.iterN(this.first,this.first+this.size,x)},insert:function(x,z){for(var ne=0,te=0;te<z.length;++te)ne+=z[te].height;this.insertInner(x-this.first,z,ne)},remove:function(x,z){this.removeInner(x-this.first,z)},getValue:function(x){var z=mr(this,this.first,this.first+this.size);return x===!1?z:z.join(x||this.lineSeparator())},setValue:po(function(x){var z=dn(this.first,0),ne=this.first+this.size-1;dl(this,{from:z,to:dn(ne,Vt(this,ne).text.length),text:this.splitLines(x),origin:"setValue",full:!0},!0),this.cm&&Ts(this.cm,0,0),To(this,Bs(z),nt)}),replaceRange:function(x,z,ne,te){z=dr(this,z),ne=ne?dr(this,ne):z,eu(this,x,z,ne,te)},getRange:function(x,z,ne){var te=Pn(this,dr(this,x),dr(this,z));return ne===!1?te:te.join(ne||this.lineSeparator())},getLine:function(x){var z=this.getLineHandle(x);return z&&z.text},getLineHandle:function(x){if(rr(this,x))return Vt(this,x)},getLineNumber:function(x){return Un(x)},getLineHandleVisualStart:function(x){return typeof x=="number"&&(x=Vt(this,x)),dt(x)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(x){return dr(this,x)},getCursor:function(x){var z=this.sel.primary(),ne;return x==null||x=="head"?ne=z.head:x=="anchor"?ne=z.anchor:x=="end"||x=="to"||x===!1?ne=z.to():ne=z.from(),ne},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:po(function(x,z,ne){ed(this,dr(this,typeof x=="number"?dn(x,z||0):x),null,ne)}),setSelection:po(function(x,z,ne){ed(this,dr(this,x),dr(this,z||x),ne)}),extendSelection:po(function(x,z,ne){Rl(this,dr(this,x),z&&dr(this,z),ne)}),extendSelections:po(function(x,z){Wr(this,vn(this,x),z)}),extendSelectionsBy:po(function(x,z){var ne=tn(this.sel.ranges,x);Wr(this,vn(this,ne),z)}),setSelections:po(function(x,z,ne){if(x.length){for(var te=[],ie=0;ie<x.length;ie++)te[ie]=new Za(dr(this,x[ie].anchor),dr(this,x[ie].head));z==null&&(z=Math.min(x.length-1,this.sel.primIndex)),To(this,Ms(this.cm,te,z),ne)}}),addSelection:po(function(x,z,ne){var te=this.sel.ranges.slice(0);te.push(new Za(dr(this,x),dr(this,z||x))),To(this,Ms(this.cm,te,te.length-1),ne)}),getSelection:function(x){for(var z=this.sel.ranges,ne,te=0;te<z.length;te++){var ie=Pn(this,z[te].from(),z[te].to());ne=ne?ne.concat(ie):ie}return x===!1?ne:ne.join(x||this.lineSeparator())},getSelections:function(x){for(var z=[],ne=this.sel.ranges,te=0;te<ne.length;te++){var ie=Pn(this,ne[te].from(),ne[te].to());x!==!1&&(ie=ie.join(x||this.lineSeparator())),z[te]=ie}return z},replaceSelection:function(x,z,ne){for(var te=[],ie=0;ie<this.sel.ranges.length;ie++)te[ie]=x;this.replaceSelections(te,z,ne||"+input")},replaceSelections:po(function(x,z,ne){for(var te=[],ie=this.sel,ue=0;ue<ie.ranges.length;ue++){var ve=ie.ranges[ue];te[ue]={from:ve.from(),to:ve.to(),text:this.splitLines(x[ue]),origin:ne}}for(var Ce=z&&z!="end"&&nc(this,te,z),De=te.length-1;De>=0;De--)dl(this,te[De]);Ce?as(this,Ce):this.cm&&Ho(this.cm)}),undo:po(function(){tl(this,"undo")}),redo:po(function(){tl(this,"redo")}),undoSelection:po(function(){tl(this,"undo",!0)}),redoSelection:po(function(){tl(this,"redo",!0)}),setExtending:function(x){this.extend=x},getExtending:function(){return this.extend},historySize:function(){for(var x=this.history,z=0,ne=0,te=0;te<x.done.length;te++)x.done[te].ranges||++z;for(var ie=0;ie<x.undone.length;ie++)x.undone[ie].ranges||++ne;return{undo:z,redo:ne}},clearHistory:function(){var x=this;this.history=new Cu(this.history.maxGeneration),Js(this,function(z){return z.history=x.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(x){return x&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(x){return this.history.generation==(x||this.cleanGeneration)},getHistory:function(){return{done:Nl(this.history.done),undone:Nl(this.history.undone)}},setHistory:function(x){var z=this.history=new Cu(this.history.maxGeneration);z.done=Nl(x.done.slice(0),null,!0),z.undone=Nl(x.undone.slice(0),null,!0)},setGutterMarker:po(function(x,z,ne){return Lu(this,x,"gutter",function(te){var ie=te.gutterMarkers||(te.gutterMarkers={});return ie[z]=ne,!ne&&oe(ie)&&(te.gutterMarkers=null),!0})}),clearGutter:po(function(x){var z=this;this.iter(function(ne){ne.gutterMarkers&&ne.gutterMarkers[x]&&Lu(z,ne,"gutter",function(){return ne.gutterMarkers[x]=null,oe(ne.gutterMarkers)&&(ne.gutterMarkers=null),!0})})}),lineInfo:function(x){var z;if(typeof x=="number"){if(!rr(this,x)||(z=x,x=Vt(this,x),!x))return null}else if(z=Un(x),z==null)return null;return{line:z,handle:x,text:x.text,gutterMarkers:x.gutterMarkers,textClass:x.textClass,bgClass:x.bgClass,wrapClass:x.wrapClass,widgets:x.widgets}},addLineClass:po(function(x,z,ne){return Lu(this,x,z=="gutter"?"gutter":"class",function(te){var ie=z=="text"?"textClass":z=="background"?"bgClass":z=="gutter"?"gutterClass":"wrapClass";if(!te[ie])te[ie]=ne;else{if(xe(ne).test(te[ie]))return!1;te[ie]+=" "+ne}return!0})}),removeLineClass:po(function(x,z,ne){return Lu(this,x,z=="gutter"?"gutter":"class",function(te){var ie=z=="text"?"textClass":z=="background"?"bgClass":z=="gutter"?"gutterClass":"wrapClass",ue=te[ie];if(ue)if(ne==null)te[ie]=null;else{var ve=ue.match(xe(ne));if(!ve)return!1;var Ce=ve.index+ve[0].length;te[ie]=ue.slice(0,ve.index)+(!ve.index||Ce==ue.length?"":" ")+ue.slice(Ce)||null}else return!1;return!0})}),addLineWidget:po(function(x,z,ne){return rf(this,x,z,ne)}),removeLineWidget:function(x){x.clear()},markText:function(x,z,ne){return nl(this,dr(this,x),dr(this,z),ne,ne&&ne.type||"range")},setBookmark:function(x,z){var ne={replacedWith:z&&(z.nodeType==null?z.widget:z),insertLeft:z&&z.insertLeft,clearWhenEmpty:!1,shared:z&&z.shared,handleMouseEvents:z&&z.handleMouseEvents};return x=dr(this,x),nl(this,x,x,ne,"bookmark")},findMarksAt:function(x){x=dr(this,x);var z=[],ne=Vt(this,x.line).markedSpans;if(ne)for(var te=0;te<ne.length;++te){var ie=ne[te];(ie.from==null||ie.from<=x.ch)&&(ie.to==null||ie.to>=x.ch)&&z.push(ie.marker.parent||ie.marker)}return z},findMarks:function(x,z,ne){x=dr(this,x),z=dr(this,z);var te=[],ie=x.line;return this.iter(x.line,z.line+1,function(ue){var ve=ue.markedSpans;if(ve)for(var Ce=0;Ce<ve.length;Ce++){var De=ve[Ce];!(De.to!=null&&ie==x.line&&x.ch>=De.to||De.from==null&&ie!=x.line||De.from!=null&&ie==z.line&&De.from>=z.ch)&&(!ne||ne(De.marker))&&te.push(De.marker.parent||De.marker)}++ie}),te},getAllMarks:function(){var x=[];return this.iter(function(z){var ne=z.markedSpans;if(ne)for(var te=0;te<ne.length;++te)ne[te].from!=null&&x.push(ne[te].marker)}),x},posFromIndex:function(x){var z,ne=this.first,te=this.lineSeparator().length;return this.iter(function(ie){var ue=ie.text.length+te;if(ue>x)return z=x,!0;x-=ue,++ne}),dr(this,dn(ne,z))},indexFromPos:function(x){x=dr(this,x);var z=x.ch;if(x.line<this.first||x.ch<0)return 0;var ne=this.lineSeparator().length;return this.iter(this.first,x.line,function(te){z+=te.text.length+ne}),z},copy:function(x){var z=new Mo(mr(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return z.scrollTop=this.scrollTop,z.scrollLeft=this.scrollLeft,z.sel=this.sel,z.extend=!1,x&&(z.history.undoDepth=this.history.undoDepth,z.setHistory(this.getHistory())),z},linkedDoc:function(x){x||(x={});var z=this.first,ne=this.first+this.size;x.from!=null&&x.from>z&&(z=x.from),x.to!=null&&x.to<ne&&(ne=x.to);var te=new Mo(mr(this,z,ne),x.mode||this.modeOption,z,this.lineSep,this.direction);return x.sharedHist&&(te.history=this.history),(this.linked||(this.linked=[])).push({doc:te,sharedHist:x.sharedHist}),te.linked=[{doc:this,isParent:!0,sharedHist:x.sharedHist}],of(te,pl(this)),te},unlinkDoc:function(x){if(x instanceof Wi&&(x=x.doc),this.linked)for(var z=0;z<this.linked.length;++z){var ne=this.linked[z];if(ne.doc==x){this.linked.splice(z,1),x.unlinkDoc(this),Ss(pl(this));break}}if(x.history==this.history){var te=[x.id];Js(x,function(ie){return te.push(ie.id)},!0),x.history=new Cu(null),x.history.done=Nl(this.history.done,te),x.history.undone=Nl(this.history.undone,te)}},iterLinkedDocs:function(x){Js(this,x)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(x){return this.lineSep?x.split(this.lineSep):kt(x)},lineSeparator:function(){return this.lineSep||`
`},setDirection:po(function(x){x!="rtl"&&(x="ltr"),x!=this.direction&&(this.direction=x,this.iter(function(z){return z.order=null}),this.cm&&ac(this.cm))})}),Mo.prototype.eachLine=Mo.prototype.iter;var rd=0;function eh(x){var z=this;if(ru(z),!(wr(z,x)||Bi(z.display,x))){Gr(x),be&&(rd=+new Date);var ne=Do(z,x,!0),te=x.dataTransfer.files;if(!(!ne||z.isReadOnly()))if(te&&te.length&&window.FileReader&&window.File)for(var ie=te.length,ue=Array(ie),ve=0,Ce=function(){++ve==ie&&Ha(z,function(){ne=dr(z.doc,ne);var jt={from:ne,to:ne,text:z.doc.splitLines(ue.filter(function(Rn){return Rn!=null}).join(z.doc.lineSeparator())),origin:"paste"};dl(z.doc,jt),as(z.doc,Bs(dr(z.doc,ne),dr(z.doc,Qs(jt))))})()},De=function(jt,Rn){if(z.options.allowDropFileTypes&&Ft(z.options.allowDropFileTypes,jt.type)==-1){Ce();return}var Qn=new FileReader;Qn.onerror=function(){return Ce()},Qn.onload=function(){var yr=Qn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(yr)){Ce();return}ue[Rn]=yr,Ce()},Qn.readAsText(jt)},Ne=0;Ne<te.length;Ne++)De(te[Ne],Ne);else{if(z.state.draggingText&&z.doc.sel.contains(ne)>-1){z.state.draggingText(x),setTimeout(function(){return z.display.input.focus()},20);return}try{var ut=x.dataTransfer.getData("Text");if(ut){var St;if(z.state.draggingText&&!z.state.draggingText.copy&&(St=z.listSelections()),ku(z.doc,Bs(ne,ne)),St)for(var en=0;en<St.length;++en)eu(z.doc,"",St[en].anchor,St[en].head,"drag");z.replaceSelection(ut,"around","paste"),z.display.input.focus()}}catch(jt){}}}}function th(x,z){if(be&&(!x.state.draggingText||+new Date-rd<100)){ki(z);return}if(!(wr(x,z)||Bi(x.display,z))&&(z.dataTransfer.setData("Text",x.getSelection()),z.dataTransfer.effectAllowed="copyMove",z.dataTransfer.setDragImage&&!ot)){var ne=pt("img",null,null,"position: fixed; left: 0; top: 0;");ne.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Ie&&(ne.width=ne.height=1,x.display.wrapper.appendChild(ne),ne._top=ne.offsetTop),z.dataTransfer.setDragImage(ne,0,0),Ie&&ne.parentNode.removeChild(ne)}}function id(x,z){var ne=Do(x,z);if(ne){var te=document.createDocumentFragment();Zi(x,ne,te),x.display.dragCursor||(x.display.dragCursor=pt("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),x.display.lineSpace.insertBefore(x.display.dragCursor,x.display.cursorDiv)),ft(x.display.dragCursor,te)}}function ru(x){x.display.dragCursor&&(x.display.lineSpace.removeChild(x.display.dragCursor),x.display.dragCursor=null)}function iu(x){if(document.getElementsByClassName){for(var z=document.getElementsByClassName("CodeMirror"),ne=[],te=0;te<z.length;te++){var ie=z[te].CodeMirror;ie&&ne.push(ie)}ne.length&&ne[0].operation(function(){for(var ue=0;ue<ne.length;ue++)x(ne[ue])})}}var fr=!1;function ad(){fr||(gc(),fr=!0)}function gc(){var x;cn(window,"resize",function(){x==null&&(x=setTimeout(function(){x=null,iu(vc)},100))}),cn(window,"blur",function(){return iu(zo)})}function vc(x){var z=x.display;z.cachedCharWidth=z.cachedTextHeight=z.cachedPaddingH=null,z.scrollbarsClipped=!1,x.setSize()}for(var Ps={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Du=0;Du<10;Du++)Ps[Du+48]=Ps[Du+96]=String(Du);for(var yc=65;yc<=90;yc++)Ps[yc]=String.fromCharCode(yc);for(var Tu=1;Tu<=12;Tu++)Ps[Tu+111]=Ps[Tu+63235]="F"+Tu;var Ja={};Ja.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ja.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ja.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ja.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ja.default=Me?Ja.macDefault:Ja.pcDefault;function nh(x){var z=x.split(/-(?!$)/);x=z[z.length-1];for(var ne,te,ie,ue,ve=0;ve<z.length-1;ve++){var Ce=z[ve];if(/^(cmd|meta|m)$/i.test(Ce))ue=!0;else if(/^a(lt)?$/i.test(Ce))ne=!0;else if(/^(c|ctrl|control)$/i.test(Ce))te=!0;else if(/^s(hift)?$/i.test(Ce))ie=!0;else throw new Error("Unrecognized modifier name: "+Ce)}return ne&&(x="Alt-"+x),te&&(x="Ctrl-"+x),ue&&(x="Cmd-"+x),ie&&(x="Shift-"+x),x}function od(x){var z={};for(var ne in x)if(x.hasOwnProperty(ne)){var te=x[ne];if(/^(name|fallthrough|(de|at)tach)$/.test(ne))continue;if(te=="..."){delete x[ne];continue}for(var ie=tn(ne.split(" "),nh),ue=0;ue<ie.length;ue++){var ve=void 0,Ce=void 0;ue==ie.length-1?(Ce=ie.join(" "),ve=te):(Ce=ie.slice(0,ue+1).join(" "),ve="...");var De=z[Ce];if(!De)z[Ce]=ve;else if(De!=ve)throw new Error("Inconsistent bindings for "+Ce)}delete x[ne]}for(var Ne in z)x[Ne]=z[Ne];return x}function rl(x,z,ne,te){z=ss(z);var ie=z.call?z.call(x,te):z[x];if(ie===!1)return"nothing";if(ie==="...")return"multi";if(ie!=null&&ne(ie))return"handled";if(z.fallthrough){if(Object.prototype.toString.call(z.fallthrough)!="[object Array]")return rl(x,z.fallthrough,ne,te);for(var ue=0;ue<z.fallthrough.length;ue++){var ve=rl(x,z.fallthrough[ue],ne,te);if(ve)return ve}}}function Iu(x){var z=typeof x=="string"?x:Ps[x.keyCode];return z=="Ctrl"||z=="Alt"||z=="Shift"||z=="Mod"}function ml(x,z,ne){var te=x;return z.altKey&&te!="Alt"&&(x="Alt-"+x),(it?z.metaKey:z.ctrlKey)&&te!="Ctrl"&&(x="Ctrl-"+x),(it?z.ctrlKey:z.metaKey)&&te!="Mod"&&(x="Cmd-"+x),!ne&&z.shiftKey&&te!="Shift"&&(x="Shift-"+x),x}function Hl(x,z){if(Ie&&x.keyCode==34&&x.char)return!1;var ne=Ps[x.keyCode];return ne==null||x.altGraphKey?!1:(x.keyCode==3&&x.code&&(ne=x.code),ml(ne,x,z))}function ss(x){return typeof x=="string"?Ja[x]:x}function ks(x,z){for(var ne=x.doc.sel.ranges,te=[],ie=0;ie<ne.length;ie++){for(var ue=z(ne[ie]);te.length&&Hn(ue.from,Ct(te).to)<=0;){var ve=te.pop();if(Hn(ve.from,ue.from)<0){ue.from=ve.from;break}}te.push(ue)}sa(x,function(){for(var Ce=te.length-1;Ce>=0;Ce--)eu(x.doc,"",te[Ce].from,te[Ce].to,"+delete");Ho(x)})}function Uo(x,z,ne){var te=Et(x.text,z+ne,ne);return te<0||te>x.text.length?null:te}function $s(x,z,ne){var te=Uo(x,z.ch,ne);return te==null?null:new dn(z.line,te,ne<0?"after":"before")}function Kl(x,z,ne,te,ie){if(x){z.doc.direction=="rtl"&&(ie=-ie);var ue=Gn(ne,z.doc.direction);if(ue){var ve=ie<0?Ct(ue):ue[0],Ce=ie<0==(ve.level==1),De=Ce?"after":"before",Ne;if(ve.level>0||z.doc.direction=="rtl"){var ut=Ni(z,ne);Ne=ie<0?ne.text.length-1:0;var St=ri(z,ut,Ne).top;Ne=At(function(en){return ri(z,ut,en).top==St},ie<0==(ve.level==1)?ve.from:ve.to-1,Ne),De=="before"&&(Ne=Uo(ne,Ne,1))}else Ne=ie<0?ve.to:ve.from;return new dn(te,Ne,De)}}return new dn(te,ie<0?ne.text.length:0,ie<0?"before":"after")}function Vs(x,z,ne,te){var ie=Gn(z,x.doc.direction);if(!ie)return $s(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=Nt(ie,ne.ch,ne.sticky),ve=ie[ue];if(x.doc.direction=="ltr"&&ve.level%2==0&&(te>0?ve.to>ne.ch:ve.from<ne.ch))return $s(z,ne,te);var Ce=function(Ir,zr){return Uo(z,Ir instanceof dn?Ir.ch:Ir,zr)},De,Ne=function(Ir){return x.options.lineWrapping?(De=De||Ni(x,z),za(x,z,De,Ir)):{begin:0,end:z.text.length}},ut=Ne(ne.sticky=="before"?Ce(ne,-1):ne.ch);if(x.doc.direction=="rtl"||ve.level==1){var St=ve.level==1==te<0,en=Ce(ne,St?1:-1);if(en!=null&&(St?en<=ve.to&&en<=ut.end:en>=ve.from&&en>=ut.begin)){var jt=St?"before":"after";return new dn(ne.line,en,jt)}}var Rn=function(Ir,zr,Lr){for(var Hr=function(to,$o){return $o?new dn(ne.line,Ce(to,1),"before"):new dn(ne.line,to,"after")};Ir>=0&&Ir<ie.length;Ir+=zr){var vi=ie[Ir],Si=zr>0==(vi.level!=1),ca=Si?Lr.begin:Ce(Lr.end,-1);if(vi.from<=ca&&ca<vi.to||(ca=Si?vi.from:Ce(vi.to,-1),Lr.begin<=ca&&ca<Lr.end))return Hr(ca,Si)}},Qn=Rn(ue+te,te,ut);if(Qn)return Qn;var yr=te>0?ut.end:Ce(ut.begin,-1);return yr!=null&&!(te>0&&yr==z.text.length)&&(Qn=Rn(te>0?0:ie.length-1,te,Ne(yr)),Qn)?Qn:null}var au={selectAll:td,singleSelection:function(x){return x.setSelection(x.getCursor("anchor"),x.getCursor("head"),nt)},killLine:function(x){return ks(x,function(z){if(z.empty()){var ne=Vt(x.doc,z.head.line).text.length;return z.head.ch==ne&&z.head.line<x.lastLine()?{from:z.head,to:dn(z.head.line+1,0)}:{from:z.head,to:dn(z.head.line,ne)}}else return{from:z.from(),to:z.to()}})},deleteLine:function(x){return ks(x,function(z){return{from:dn(z.from().line,0),to:dr(x.doc,dn(z.to().line+1,0))}})},delLineLeft:function(x){return ks(x,function(z){return{from:dn(z.from().line,0),to:z.from()}})},delWrappedLineLeft:function(x){return ks(x,function(z){var ne=x.charCoords(z.head,"div").top+5,te=x.coordsChar({left:0,top:ne},"div");return{from:te,to:z.from()}})},delWrappedLineRight:function(x){return ks(x,function(z){var ne=x.charCoords(z.head,"div").top+5,te=x.coordsChar({left:x.display.lineDiv.offsetWidth+100,top:ne},"div");return{from:z.from(),to:te}})},undo:function(x){return x.undo()},redo:function(x){return x.redo()},undoSelection:function(x){return x.undoSelection()},redoSelection:function(x){return x.redoSelection()},goDocStart:function(x){return x.extendSelection(dn(x.firstLine(),0))},goDocEnd:function(x){return x.extendSelection(dn(x.lastLine()))},goLineStart:function(x){return x.extendSelectionsBy(function(z){return sd(x,z.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(x){return x.extendSelectionsBy(function(z){return lf(x,z.head)},{origin:"+move",bias:1})},goLineEnd:function(x){return x.extendSelectionsBy(function(z){return ld(x,z.head.line)},{origin:"+move",bias:-1})},goLineRight:function(x){return x.extendSelectionsBy(function(z){var ne=x.cursorCoords(z.head,"div").top+5;return x.coordsChar({left:x.display.lineDiv.offsetWidth+100,top:ne},"div")},$t)},goLineLeft:function(x){return x.extendSelectionsBy(function(z){var ne=x.cursorCoords(z.head,"div").top+5;return x.coordsChar({left:0,top:ne},"div")},$t)},goLineLeftSmart:function(x){return x.extendSelectionsBy(function(z){var ne=x.cursorCoords(z.head,"div").top+5,te=x.coordsChar({left:0,top:ne},"div");return te.ch<x.getLine(te.line).search(/\S/)?lf(x,z.head):te},$t)},goLineUp:function(x){return x.moveV(-1,"line")},goLineDown:function(x){return x.moveV(1,"line")},goPageUp:function(x){return x.moveV(-1,"page")},goPageDown:function(x){return x.moveV(1,"page")},goCharLeft:function(x){return x.moveH(-1,"char")},goCharRight:function(x){return x.moveH(1,"char")},goColumnLeft:function(x){return x.moveH(-1,"column")},goColumnRight:function(x){return x.moveH(1,"column")},goWordLeft:function(x){return x.moveH(-1,"word")},goGroupRight:function(x){return x.moveH(1,"group")},goGroupLeft:function(x){return x.moveH(-1,"group")},goWordRight:function(x){return x.moveH(1,"word")},delCharBefore:function(x){return x.deleteH(-1,"codepoint")},delCharAfter:function(x){return x.deleteH(1,"char")},delWordBefore:function(x){return x.deleteH(-1,"word")},delWordAfter:function(x){return x.deleteH(1,"word")},delGroupBefore:function(x){return x.deleteH(-1,"group")},delGroupAfter:function(x){return x.deleteH(1,"group")},indentAuto:function(x){return x.indentSelection("smart")},indentMore:function(x){return x.indentSelection("add")},indentLess:function(x){return x.indentSelection("subtract")},insertTab:function(x){return x.replaceSelection(" ")},insertSoftTab:function(x){for(var z=[],ne=x.listSelections(),te=x.options.tabSize,ie=0;ie<ne.length;ie++){var ue=ne[ie].from(),ve=Je(x.getLine(ue.line),ue.ch,te);z.push(It(te-ve%te))}x.replaceSelections(z)},defaultTab:function(x){x.somethingSelected()?x.indentSelection("add"):x.execCommand("insertTab")},transposeChars:function(x){return sa(x,function(){for(var z=x.listSelections(),ne=[],te=0;te<z.length;te++)if(z[te].empty()){var ie=z[te].head,ue=Vt(x.doc,ie.line).text;if(ue){if(ie.ch==ue.length&&(ie=new dn(ie.line,ie.ch-1)),ie.ch>0)ie=new dn(ie.line,ie.ch+1),x.replaceRange(ue.charAt(ie.ch-1)+ue.charAt(ie.ch-2),dn(ie.line,ie.ch-2),ie,"+transpose");else if(ie.line>x.doc.first){var ve=Vt(x.doc,ie.line-1).text;ve&&(ie=new dn(ie.line,1),x.replaceRange(ue.charAt(0)+x.doc.lineSeparator()+ve.charAt(ve.length-1),dn(ie.line-1,ve.length-1),ie,"+transpose"))}}ne.push(new Za(ie,ie))}x.setSelections(ne)})},newlineAndIndent:function(x){return sa(x,function(){for(var z=x.listSelections(),ne=z.length-1;ne>=0;ne--)x.replaceRange(x.doc.lineSeparator(),z[ne].anchor,z[ne].head,"+input");z=x.listSelections();for(var te=0;te<z.length;te++)x.indentLine(z[te].from().line,null,!0);Ho(x)})},openLine:function(x){return x.replaceSelection(`
`,"start")},toggleOverwrite:function(x){return x.toggleOverwrite()}};function sd(x,z){var ne=Vt(x.doc,z),te=dt(ne);return te!=ne&&(z=Un(te)),Kl(!0,x,te,z,1)}function ld(x,z){var ne=Vt(x.doc,z),te=yt(ne);return te!=ne&&(z=Un(te)),Kl(!0,x,ne,z,-1)}function lf(x,z){var ne=sd(x,z.line),te=Vt(x.doc,ne.line),ie=Gn(te,x.doc.direction);if(!ie||ie[0].level==0){var ue=Math.max(ne.ch,te.text.search(/\S/)),ve=z.line==ne.line&&z.ch<=ue&&z.ch;return dn(ne.line,ve?0:ue,ne.sticky)}return ne}function Io(x,z,ne){if(typeof z=="string"&&(z=au[z],!z))return!1;x.display.input.ensurePolled();var te=x.display.shift,ie=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),ne&&(x.display.shift=!1),ie=z(x)!=an}finally{x.display.shift=te,x.state.suppressEdits=!1}return ie}function Zs(x,z,ne){for(var te=0;te<x.state.keyMaps.length;te++){var ie=rl(z,x.state.keyMaps[te],ne,x);if(ie)return ie}return x.options.extraKeys&&rl(z,x.options.extraKeys,ne,x)||rl(z,x.options.keyMap,ne,x)}var rh=new _e;function ou(x,z,ne,te){var ie=x.state.keySeq;if(ie){if(Iu(z))return"handled";if(/\'$/.test(z)?x.state.keySeq=null:rh.set(50,function(){x.state.keySeq==ie&&(x.state.keySeq=null,x.display.input.reset())}),bc(x,ie+" "+z,ne,te))return!0}return bc(x,z,ne,te)}function bc(x,z,ne,te){var ie=Zs(x,z,te);return ie=="multi"&&(x.state.keySeq=z),ie=="handled"&&An(x,"keyHandled",x,z,ne),(ie=="handled"||ie=="multi")&&(Gr(ne),Jr(x)),!!ie}function Ma(x,z){var ne=Hl(z,!0);return ne?z.shiftKey&&!x.state.keySeq?ou(x,"Shift-"+ne,z,function(te){return Io(x,te,!0)})||ou(x,ne,z,function(te){if(typeof te=="string"?/^go[A-Z]/.test(te):te.motion)return Io(x,te)}):ou(x,ne,z,function(te){return Io(x,te)}):!1}function su(x,z,ne){return ou(x,"'"+ne+"'",z,function(te){return Io(x,te,!0)})}var il=null;function _u(x){var z=this;if(!(x.target&&x.target!=z.display.input.getField())&&(z.curOp.focus=Dt(),!wr(z,x))){be&&Ae<11&&x.keyCode==27&&(x.returnValue=!1);var ne=x.keyCode;z.display.shift=ne==16||x.shiftKey;var te=Ma(z,x);Ie&&(il=te?ne:null,!te&&ne==88&&!Tn&&(Me?x.metaKey:x.ctrlKey)&&z.replaceSelection("",null,"cut")),ge&&!Me&&!te&&ne==46&&x.shiftKey&&!x.ctrlKey&&document.execCommand&&document.execCommand("cut"),ne==18&&!/\bCodeMirror-crosshair\b/.test(z.display.lineDiv.className)&&Bn(z)}}function Bn(x){var z=x.display.lineDiv;on(z,"CodeMirror-crosshair");function ne(te){(te.keyCode==18||!te.altKey)&&(Ke(z,"CodeMirror-crosshair"),lr(document,"keyup",ne),lr(document,"mouseover",ne))}cn(document,"keyup",ne),cn(document,"mouseover",ne)}function uf(x){x.keyCode==16&&(this.doc.sel.shift=!1),wr(this,x)}function cf(x){var z=this;if(!(x.target&&x.target!=z.display.input.getField())&&!(Bi(z.display,x)||wr(z,x)||x.ctrlKey&&!x.altKey||Me&&x.metaKey)){var ne=x.keyCode,te=x.charCode;if(Ie&&ne==il){il=null,Gr(x);return}if(!(Ie&&(!x.which||x.which<10)&&Ma(z,x))){var ie=String.fromCharCode(te==null?ne:te);ie!="\b"&&(su(z,x,ie)||z.display.input.onKeyPress(x))}}}var ud=400,cd=function(x,z,ne){this.time=x,this.pos=z,this.button=ne};cd.prototype.compare=function(x,z,ne){return this.time+ud>x&&Hn(z,this.pos)==0&&ne==this.button};var al,Bu;function ih(x,z){var ne=+new Date;return Bu&&Bu.compare(ne,x,z)?(al=Bu=null,"triple"):al&&al.compare(ne,x,z)?(Bu=new cd(ne,x,z),al=null,"double"):(al=new cd(ne,x,z),Bu=null,"single")}function Go(x){var z=this,ne=z.display;if(!(wr(z,x)||ne.activeTouch&&ne.input.supportsTouch())){if(ne.input.ensurePolled(),ne.shift=x.shiftKey,Bi(ne,x)){ke||(ne.scroller.draggable=!1,setTimeout(function(){return ne.scroller.draggable=!0},100));return}if(!ts(z,x)){var te=Do(z,x),ie=jn(x),ue=te?ih(te,ie):"single";window.focus(),ie==1&&z.state.selectingText&&z.state.selectingText(x),!(te&&gl(z,ie,te,ue,x))&&(ie==1?te?wc(z,te,ue,x):Ri(x)==ne.scroller&&Gr(x):ie==2?(te&&Rl(z.doc,te),setTimeout(function(){return ne.input.focus()},20)):ie==3&&(Be?z.display.input.onContextMenu(x):Wa(z)))}}}function gl(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,ou(x,ml(ue,ie),ie,function(ve){if(typeof ve=="string"&&(ve=au[ve]),!ve)return!1;var Ce=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),Ce=ve(x,ne)!=an}finally{x.state.suppressEdits=!1}return Ce})}function xc(x,z,ne){var te=x.getOption("configureMouse"),ie=te?te(x,z,ne):{};if(ie.unit==null){var ue=bt?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=Me?ne.metaKey:ne.ctrlKey),ie.moveOnDrag==null&&(ie.moveOnDrag=!(Me?ne.altKey:ne.ctrlKey)),ie}function wc(x,z,ne,te){be?setTimeout(Xn(li,x),0):x.curOp.focus=Dt();var ie=xc(x,ne,te),ue=x.doc.sel,ve;x.options.dragDrop&&Pi&&!x.isReadOnly()&&ne=="single"&&(ve=ue.contains(z))>-1&&(Hn((ve=ue.ranges[ve]).from(),z)<0||z.xRel>0)&&(Hn(ve.to(),z)>0||z.xRel<0)?ah(x,te,z,ie):dd(x,te,z,ie)}function ah(x,z,ne,te){var ie=x.display,ue=!1,ve=Ha(x,function(Ne){ke&&(ie.scroller.draggable=!1),x.state.draggingText=!1,lr(ie.wrapper.ownerDocument,"mouseup",ve),lr(ie.wrapper.ownerDocument,"mousemove",Ce),lr(ie.scroller,"dragstart",De),lr(ie.scroller,"drop",ve),ue||(Gr(Ne),te.addNew||Rl(x.doc,ne,null,null,te.extend),ke&&!ot||be&&Ae==9?setTimeout(function(){ie.wrapper.ownerDocument.body.focus({preventScroll:!0}),ie.input.focus()},20):ie.input.focus())}),Ce=function(Ne){ue=ue||Math.abs(z.clientX-Ne.clientX)+Math.abs(z.clientY-Ne.clientY)>=10},De=function(){return ue=!0};ke&&(ie.scroller.draggable=!0),x.state.draggingText=ve,ve.copy=!te.moveOnDrag,ie.scroller.dragDrop&&ie.scroller.dragDrop(),cn(ie.wrapper.ownerDocument,"mouseup",ve),cn(ie.wrapper.ownerDocument,"mousemove",Ce),cn(ie.scroller,"dragstart",De),cn(ie.scroller,"drop",ve),Wa(x),setTimeout(function(){return ie.input.focus()},20)}function df(x,z,ne){if(ne=="char")return new Za(z,z);if(ne=="word")return x.findWordAt(z);if(ne=="line")return new Za(dn(z.line,0),dr(x.doc,dn(z.line+1,0)));var te=ne(x,z);return new Za(te.from,te.to)}function dd(x,z,ne,te){var ie=x.display,ue=x.doc;Gr(z);var ve,Ce,De=ue.sel,Ne=De.ranges;if(te.addNew&&!te.extend?(Ce=ue.sel.contains(ne),Ce>-1?ve=Ne[Ce]:ve=new Za(ne,ne)):(ve=ue.sel.primary(),Ce=ue.sel.primIndex),te.unit=="rectangle")te.addNew||(ve=new Za(ne,ne)),ne=Do(x,z,!0,!0),Ce=-1;else{var ut=df(x,ne,te.unit);te.extend?ve=fc(ve,ut.anchor,ut.head,te.extend):ve=ut}te.addNew?Ce==-1?(Ce=Ne.length,To(ue,Ms(x,Ne.concat([ve]),Ce),{scroll:!1,origin:"*mouse"})):Ne.length>1&&Ne[Ce].empty()&&te.unit=="char"&&!te.extend?(To(ue,Ms(x,Ne.slice(0,Ce).concat(Ne.slice(Ce+1)),0),{scroll:!1,origin:"*mouse"}),De=ue.sel):ws(ue,Ce,ve,at):(Ce=0,To(ue,new vs([ve],0),at),De=ue.sel);var St=ne;function en(Lr){if(Hn(St,Lr)!=0)if(St=Lr,te.unit=="rectangle"){for(var Hr=[],vi=x.options.tabSize,Si=Je(Vt(ue,ne.line).text,ne.ch,vi),ca=Je(Vt(ue,Lr.line).text,Lr.ch,vi),to=Math.min(Si,ca),$o=Math.max(Si,ca),bo=Math.min(ne.line,Lr.line),cs=Math.min(x.lastLine(),Math.max(ne.line,Lr.line));bo<=cs;bo++){var ds=Vt(ue,bo).text,_o=kn(ds,to,vi);to==$o?Hr.push(new Za(dn(bo,_o),dn(bo,_o))):ds.length>_o&&Hr.push(new Za(dn(bo,_o),dn(bo,kn(ds,$o,vi))))}Hr.length||Hr.push(new Za(ne,ne)),To(ue,Ms(x,De.ranges.slice(0,Ce).concat(Hr),Ce),{origin:"*mouse",scroll:!1}),x.scrollIntoView(Lr)}else{var fs=ve,Ui=df(x,Lr,te.unit),So=fs.anchor,xo;Hn(Ui.anchor,So)>0?(xo=Ui.head,So=Or(fs.from(),Ui.anchor)):(xo=Ui.anchor,So=Zr(fs.to(),Ui.head));var Co=De.ranges.slice(0);Co[Ce]=ff(x,new Za(dr(ue,So),xo)),To(ue,Ms(x,Co,Ce),at)}}var jt=ie.wrapper.getBoundingClientRect(),Rn=0;function Qn(Lr){var Hr=++Rn,vi=Do(x,Lr,!0,te.unit=="rectangle");if(vi)if(Hn(vi,St)!=0){x.curOp.focus=Dt(),en(vi);var Si=la(ie,ue);(vi.line>=Si.to||vi.line<Si.from)&&setTimeout(Ha(x,function(){Rn==Hr&&Qn(Lr)}),150)}else{var ca=Lr.clientY<jt.top?-20:Lr.clientY>jt.bottom?20:0;ca&&setTimeout(Ha(x,function(){Rn==Hr&&(ie.scroller.scrollTop+=ca,Qn(Lr))}),50)}}function yr(Lr){x.state.selectingText=!1,Rn=1/0,Lr&&(Gr(Lr),ie.input.focus()),lr(ie.wrapper.ownerDocument,"mousemove",Ir),lr(ie.wrapper.ownerDocument,"mouseup",zr),ue.history.lastSelOrigin=null}var Ir=Ha(x,function(Lr){Lr.buttons===0||!jn(Lr)?yr(Lr):Qn(Lr)}),zr=Ha(x,yr);x.state.selectingText=zr,cn(ie.wrapper.ownerDocument,"mousemove",Ir),cn(ie.wrapper.ownerDocument,"mouseup",zr)}function ff(x,z){var ne=z.anchor,te=z.head,ie=Vt(x.doc,ne.line);if(Hn(ne,te)==0&&ne.sticky==te.sticky)return z;var ue=Gn(ie);if(!ue)return z;var ve=Nt(ue,ne.ch,ne.sticky),Ce=ue[ve];if(Ce.from!=ne.ch&&Ce.to!=ne.ch)return z;var De=ve+(Ce.from==ne.ch==(Ce.level!=1)?0:1);if(De==0||De==ue.length)return z;var Ne;if(te.line!=ne.line)Ne=(te.line-ne.line)*(x.doc.direction=="ltr"?1:-1)>0;else{var ut=Nt(ue,te.ch,te.sticky),St=ut-ve||(te.ch-ne.ch)*(Ce.level==1?-1:1);ut==De-1||ut==De?Ne=St<0:Ne=St>0}var en=ue[De+(Ne?-1:0)],jt=Ne==(en.level==1),Rn=jt?en.from:en.to,Qn=jt?"after":"before";return ne.ch==Rn&&ne.sticky==Qn?z:new Za(new dn(ne.line,Rn,Qn),te)}function Pu(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&&Gr(z);var ve=x.display,Ce=ve.lineDiv.getBoundingClientRect();if(ue>Ce.bottom||!ei(x,ne))return ti(z);ue-=Ce.top-ve.viewOffset;for(var De=0;De<x.display.gutterSpecs.length;++De){var Ne=ve.gutters.childNodes[De];if(Ne&&Ne.getBoundingClientRect().right>=ie){var ut=er(x.doc,ue),St=x.display.gutterSpecs[De];return En(x,ne,x,ut,St.className,z),ti(z)}}}function ts(x,z){return Pu(x,z,"gutterClick",!0)}function vl(x,z){Bi(x.display,z)||hf(x,z)||wr(x,z,"contextmenu")||Be||x.display.input.onContextMenu(z)}function hf(x,z){return ei(x,"gutterContextMenu")?Pu(x,z,"gutterContextMenu",!1):!1}function fd(x){x.display.wrapper.className=x.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+x.options.theme.replace(/(^|\s)\s*/g," cm-s-"),jr(x)}var yl={toString:function(){return"CodeMirror.Init"}},pf={},Sc={};function oh(x){var z=x.optionHandlers;function ne(te,ie,ue,ve){x.defaults[te]=ie,ue&&(z[te]=ve?function(Ce,De,Ne){Ne!=yl&&ue(Ce,De,Ne)}:ue)}x.defineOption=ne,x.Init=yl,ne("value","",function(te,ie){return te.setValue(ie)},!0),ne("mode",null,function(te,ie){te.doc.modeOption=ie,rc(te)},!0),ne("indentUnit",2,rc,!0),ne("indentWithTabs",!1),ne("smartIndent",!0),ne("tabSize",4,function(te){Ol(te),jr(te),hi(te)},!0),ne("lineSeparator",null,function(te,ie){if(te.doc.lineSep=ie,!!ie){var ue=[],ve=te.doc.first;te.doc.iter(function(De){for(var Ne=0;;){var ut=De.text.indexOf(ie,Ne);if(ut==-1)break;Ne=ut+ie.length,ue.push(dn(ve,ut))}ve++});for(var Ce=ue.length-1;Ce>=0;Ce--)eu(te.doc,ie,ue[Ce],dn(ue[Ce].line,ue[Ce].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!=yl&&te.refresh()}),ne("specialCharPlaceholder",He,function(te){return te.refresh()},!0),ne("electricChars",!0),ne("inputStyle",Ge?"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",!zt),ne("wholeLineUpdateBefore",!0),ne("theme","default",function(te){fd(te),Jl(te)},!0),ne("keyMap","default",function(te,ie,ue){var ve=ss(ie),Ce=ue!=yl&&ss(ue);Ce&&Ce.detach&&Ce.detach(te,ve),ve.attach&&ve.attach(te,Ce||null)}),ne("extraKeys",null),ne("configureMouse",null),ne("lineWrapping",!1,mf,!0),ne("gutters",[],function(te,ie){te.display.gutterSpecs=ec(ie,te.options.lineNumbers),Jl(te)},!0),ne("fixedGutter",!0,function(te,ie){te.display.gutters.style.left=ie?Po(te.display)+"px":"0",te.refresh()},!0),ne("coverGutterNextToScrollbar",!1,function(te){return xs(te)},!0),ne("scrollbarStyle","native",function(te){vu(te),xs(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=ec(te.options.gutters,ie),Jl(te)},!0),ne("firstLineNumber",1,Jl,!0),ne("lineNumberFormatter",function(te){return te},Jl,!0),ne("showCursorWhenSelecting",!1,Jo,!0),ne("resetSelectionOnContextMenu",!0),ne("lineWiseCopyCut",!0),ne("pasteLinesPerSelection",!0),ne("selectionsMayTouch",!1),ne("readOnly",!1,function(te,ie){ie=="nocursor"&&(zo(te),te.display.input.blur()),te.display.input.readOnlyChanged(ie)}),ne("screenReaderLabel",null,function(te,ie){ie=ie===""?null:ie,te.display.input.screenReaderLabelChanged(ie)}),ne("disableInput",!1,function(te,ie){ie||te.display.input.reset()},!0),ne("dragDrop",!0,sh),ne("allowDropFileTypes",null),ne("cursorBlinkRate",530),ne("cursorScrollMargin",0),ne("cursorHeight",1,Jo,!0),ne("singleCursorHeightPerLine",!0,Jo,!0),ne("workTime",100),ne("workDelay",100),ne("flattenSpans",!0,Ol,!0),ne("addModeClass",!1,Ol,!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,Ol,!0),ne("moveInputWithCursor",!0,function(te,ie){ie||te.display.input.resetPosition()}),ne("tabindex",null,function(te,ie){return te.display.input.getField().tabIndex=ie||""}),ne("autofocus",null),ne("direction","ltr",function(te,ie){return te.doc.setDirection(ie)},!0),ne("phrases",null)}function sh(x,z,ne){var te=ne&&ne!=yl;if(!z!=!te){var ie=x.display.dragFunctions,ue=z?cn:lr;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 mf(x){x.options.lineWrapping?(on(x.display.wrapper,"CodeMirror-wrap"),x.display.sizer.style.minWidth="",x.display.sizerWidth=null):(Ke(x.display.wrapper,"CodeMirror-wrap"),gn(x)),lo(x),hi(x),jr(x),setTimeout(function(){return xs(x)},100)}function Wi(x,z){var ne=this;if(!(this instanceof Wi))return new Wi(x,z);this.options=z=z?nr(z):{},nr(pf,z,!1);var te=z.value;typeof te=="string"?te=new Mo(te,z.mode,null,z.lineSeparator,z.direction):z.mode&&(te.modeOption=z.mode),this.doc=te;var ie=new Wi.inputStyles[z.inputStyle](this),ue=this.display=new jd(x,te,ie,z);ue.wrapper.CodeMirror=this,fd(this),z.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),vu(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 _e,keySeq:null,specialChars:null},z.autofocus&&!Ge&&ue.input.focus(),be&&Ae<11&&setTimeout(function(){return ne.display.input.reset(!0)},20),lh(this),ad(),Ks(this),this.curOp.forceUpdate=!0,wu(this,te),z.autofocus&&!Ge||this.hasFocus()?setTimeout(function(){ne.hasFocus()&&!ne.state.focused&&Ga(ne)},20):zo(this);for(var ve in Sc)Sc.hasOwnProperty(ve)&&Sc[ve](this,z[ve],yl);bu(this),z.finishInit&&z.finishInit(this);for(var Ce=0;Ce<hd.length;++Ce)hd[Ce](this);_s(this),ke&&z.lineWrapping&&getComputedStyle(ue.lineDiv).textRendering=="optimizelegibility"&&(ue.lineDiv.style.textRendering="auto")}Wi.defaults=pf,Wi.optionHandlers=Sc;function lh(x){var z=x.display;cn(z.scroller,"mousedown",Ha(x,Go)),be&&Ae<11?cn(z.scroller,"dblclick",Ha(x,function(De){if(!wr(x,De)){var Ne=Do(x,De);if(!(!Ne||ts(x,De)||Bi(x.display,De))){Gr(De);var ut=x.findWordAt(Ne);Rl(x.doc,ut.anchor,ut.head)}}})):cn(z.scroller,"dblclick",function(De){return wr(x,De)||Gr(De)}),cn(z.scroller,"contextmenu",function(De){return vl(x,De)}),cn(z.input.getField(),"contextmenu",function(De){z.scroller.contains(De.target)||vl(x,De)});var ne,te={end:0};function ie(){z.activeTouch&&(ne=setTimeout(function(){return z.activeTouch=null},1e3),te=z.activeTouch,te.end=+new Date)}function ue(De){if(De.touches.length!=1)return!1;var Ne=De.touches[0];return Ne.radiusX<=1&&Ne.radiusY<=1}function ve(De,Ne){if(Ne.left==null)return!0;var ut=Ne.left-De.left,St=Ne.top-De.top;return ut*ut+St*St>20*20}cn(z.scroller,"touchstart",function(De){if(!wr(x,De)&&!ue(De)&&!ts(x,De)){z.input.ensurePolled(),clearTimeout(ne);var Ne=+new Date;z.activeTouch={start:Ne,moved:!1,prev:Ne-te.end<=300?te:null},De.touches.length==1&&(z.activeTouch.left=De.touches[0].pageX,z.activeTouch.top=De.touches[0].pageY)}}),cn(z.scroller,"touchmove",function(){z.activeTouch&&(z.activeTouch.moved=!0)}),cn(z.scroller,"touchend",function(De){var Ne=z.activeTouch;if(Ne&&!Bi(z,De)&&Ne.left!=null&&!Ne.moved&&new Date-Ne.start<300){var ut=x.coordsChar(z.activeTouch,"page"),St;!Ne.prev||ve(Ne,Ne.prev)?St=new Za(ut,ut):!Ne.prev.prev||ve(Ne,Ne.prev.prev)?St=x.findWordAt(ut):St=new Za(dn(ut.line,0),dr(x.doc,dn(ut.line+1,0))),x.setSelection(St.anchor,St.head),x.focus(),Gr(De)}ie()}),cn(z.scroller,"touchcancel",ie),cn(z.scroller,"scroll",function(){z.scroller.clientHeight&&(Ta(x,z.scroller.scrollTop),go(x,z.scroller.scrollLeft,!0),En(x,"scroll",x))}),cn(z.scroller,"mousewheel",function(De){return Xc(x,De)}),cn(z.scroller,"DOMMouseScroll",function(De){return Xc(x,De)}),cn(z.wrapper,"scroll",function(){return z.wrapper.scrollTop=z.wrapper.scrollLeft=0}),z.dragFunctions={enter:function(De){wr(x,De)||ki(De)},over:function(De){wr(x,De)||(id(x,De),ki(De))},start:function(De){return th(x,De)},drop:Ha(x,eh),leave:function(De){wr(x,De)||ru(x)}};var Ce=z.input.getField();cn(Ce,"keyup",function(De){return uf.call(x,De)}),cn(Ce,"keydown",Ha(x,_u)),cn(Ce,"keypress",Ha(x,cf)),cn(Ce,"focus",function(De){return Ga(x,De)}),cn(Ce,"blur",function(De){return zo(x,De)})}var hd=[];Wi.defineInitHook=function(x){return hd.push(x)};function Os(x,z,ne,te){var ie=x.doc,ue;ne==null&&(ne="add"),ne=="smart"&&(ie.mode.indent?ue=_i(x,z).state:ne="prev");var ve=x.options.tabSize,Ce=Vt(ie,z),De=Je(Ce.text,null,ve);Ce.stateAfter&&(Ce.stateAfter=null);var Ne=Ce.text.match(/^\s*/)[0],ut;if(!te&&!/\S/.test(Ce.text))ut=0,ne="not";else if(ne=="smart"&&(ut=ie.mode.indent(ue,Ce.text.slice(Ne.length),Ce.text),ut==an||ut>150)){if(!te)return;ne="prev"}ne=="prev"?z>ie.first?ut=Je(Vt(ie,z-1).text,null,ve):ut=0:ne=="add"?ut=De+x.options.indentUnit:ne=="subtract"?ut=De-x.options.indentUnit:typeof ne=="number"&&(ut=De+ne),ut=Math.max(0,ut);var St="",en=0;if(x.options.indentWithTabs)for(var jt=Math.floor(ut/ve);jt;--jt)en+=ve,St+=" ";if(en<ut&&(St+=It(ut-en)),St!=Ne)return eu(ie,St,dn(z,0),dn(z,Ne.length),"+input"),Ce.stateAfter=null,!0;for(var Rn=0;Rn<ie.sel.ranges.length;Rn++){var Qn=ie.sel.ranges[Rn];if(Qn.head.line==z&&Qn.head.ch<Ne.length){var yr=dn(z,Ne.length);ws(ie,Rn,new Za(yr,yr));break}}}var Ns=null;function bl(x){Ns=x}function pd(x,z,ne,te,ie){var ue=x.doc;x.display.shift=!1,te||(te=ue.sel);var ve=+new Date-200,Ce=ie=="paste"||x.state.pasteIncoming>ve,De=kt(z),Ne=null;if(Ce&&te.ranges.length>1)if(Ns&&Ns.text.join(`
`)==z){if(te.ranges.length%Ns.text.length==0){Ne=[];for(var ut=0;ut<Ns.text.length;ut++)Ne.push(ue.splitLines(Ns.text[ut]))}}else De.length==te.ranges.length&&x.options.pasteLinesPerSelection&&(Ne=tn(De,function(Ir){return[Ir]}));for(var St=x.curOp.updateInput,en=te.ranges.length-1;en>=0;en--){var jt=te.ranges[en],Rn=jt.from(),Qn=jt.to();jt.empty()&&(ne&&ne>0?Rn=dn(Rn.line,Rn.ch-ne):x.state.overwrite&&!Ce?Qn=dn(Qn.line,Math.min(Vt(ue,Qn.line).text.length,Qn.ch+Ct(De).length)):Ce&&Ns&&Ns.lineWise&&Ns.text.join(`
`)==De.join(`
`)&&(Rn=Qn=dn(Rn.line,0)));var yr={from:Rn,to:Qn,text:Ne?Ne[en%Ne.length]:De,origin:ie||(Ce?"paste":x.state.cutIncoming>ve?"cut":"+input")};dl(x.doc,yr),An(x,"inputRead",x,yr)}z&&!Ce&&gd(x,z),Ho(x),x.curOp.updateInput<2&&(x.curOp.updateInput=St),x.curOp.typing=!0,x.state.pasteIncoming=x.state.cutIncoming=-1}function md(x,z){var ne=x.clipboardData&&x.clipboardData.getData("Text");if(ne)return x.preventDefault(),!z.isReadOnly()&&!z.options.disableInput&&sa(z,function(){return pd(z,ne,0,null,"paste")}),!0}function gd(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),ve=!1;if(ue.electricChars){for(var Ce=0;Ce<ue.electricChars.length;Ce++)if(z.indexOf(ue.electricChars.charAt(Ce))>-1){ve=Os(x,ie.head.line,"smart");break}}else ue.electricInput&&ue.electricInput.test(Vt(x.doc,ie.head.line).text.slice(0,ie.head.ch))&&(ve=Os(x,ie.head.line,"smart"));ve&&An(x,"electricInput",x,ie.head.line)}}}function lu(x){for(var z=[],ne=[],te=0;te<x.doc.sel.ranges.length;te++){var ie=x.doc.sel.ranges[te].head.line,ue={anchor:dn(ie,0),head:dn(ie+1,0)};ne.push(ue),z.push(x.getRange(ue.anchor,ue.head))}return{text:z,ranges:ne}}function gf(x,z,ne,te){x.setAttribute("autocorrect",ne?"":"off"),x.setAttribute("autocapitalize",te?"":"off"),x.setAttribute("spellcheck",!!z)}function vd(){var x=pt("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),z=pt("div",[x],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return ke?x.style.width="1000px":x.setAttribute("wrap","off"),lt&&(x.style.border="1px solid black"),gf(x),z}function yd(x){var z=x.optionHandlers,ne=x.helpers={};x.prototype={constructor:x,focus:function(){window.focus(),this.display.input.focus()},setOption:function(te,ie){var ue=this.options,ve=ue[te];ue[te]==ie&&te!="mode"||(ue[te]=ie,z.hasOwnProperty(te)&&Ha(this,z[te])(this,ie,ve),En(this,"optionChange",this,te))},getOption:function(te){return this.options[te]},getDoc:function(){return this.doc},addKeyMap:function(te,ie){this.state.keyMaps[ie?"push":"unshift"](ss(te))},removeKeyMap:function(te){for(var ie=this.state.keyMaps,ue=0;ue<ie.length;++ue)if(ie[ue]==te||ie[ue].name==te)return ie.splice(ue,1),!0},addOverlay:Oa(function(te,ie){var ue=te.token?te:x.getMode(this.options,te);if(ue.startState)throw new Error("Overlays may not be stateful.");pn(this.state.overlays,{mode:ue,modeSpec:te,opaque:ie&&ie.opaque,priority:ie&&ie.priority||0},function(ve){return ve.priority}),this.state.modeGen++,hi(this)}),removeOverlay:Oa(function(te){for(var ie=this.state.overlays,ue=0;ue<ie.length;++ue){var ve=ie[ue].modeSpec;if(ve==te||typeof te=="string"&&ve.name==te){ie.splice(ue,1),this.state.modeGen++,hi(this);return}}}),indentLine:Oa(function(te,ie,ue){typeof ie!="string"&&typeof ie!="number"&&(ie==null?ie=this.options.smartIndent?"smart":"prev":ie=ie?"add":"subtract"),rr(this.doc,te)&&Os(this,te,ie,ue)}),indentSelection:Oa(function(te){for(var ie=this.doc.sel.ranges,ue=-1,ve=0;ve<ie.length;ve++){var Ce=ie[ve];if(Ce.empty())Ce.head.line>ue&&(Os(this,Ce.head.line,te,!0),ue=Ce.head.line,ve==this.doc.sel.primIndex&&Ho(this));else{var De=Ce.from(),Ne=Ce.to(),ut=Math.max(ue,De.line);ue=Math.min(this.lastLine(),Ne.line-(Ne.ch?0:1))+1;for(var St=ut;St<ue;++St)Os(this,St,te);var en=this.doc.sel.ranges;De.ch==0&&ie.length==en.length&&en[ve].from().ch>0&&ws(this.doc,ve,new Za(De,en[ve].to()),nt)}}}),getTokenAt:function(te,ie){return ka(this,te,ie)},getLineTokens:function(te,ie){return ka(this,dn(te),ie,!0)},getTokenTypeAt:function(te){te=dr(this.doc,te);var ie=Xi(this,Vt(this.doc,te.line)),ue=0,ve=(ie.length-1)/2,Ce=te.ch,De;if(Ce==0)De=ie[2];else for(;;){var Ne=ue+ve>>1;if((Ne?ie[Ne*2-1]:0)>=Ce)ve=Ne;else if(ie[Ne*2+1]<Ce)ue=Ne+1;else{De=ie[Ne*2+2];break}}var ut=De?De.indexOf("overlay "):-1;return ut<0?De:ut==0?null:De.slice(0,ut-1)},getModeAt:function(te){var ie=this.doc.mode;return ie.innerMode?x.innerMode(ie,this.getTokenAt(te).state).mode:ie},getHelper:function(te,ie){return this.getHelpers(te,ie)[0]},getHelpers:function(te,ie){var ue=[];if(!ne.hasOwnProperty(ie))return ue;var ve=ne[ie],Ce=this.getModeAt(te);if(typeof Ce[ie]=="string")ve[Ce[ie]]&&ue.push(ve[Ce[ie]]);else if(Ce[ie])for(var De=0;De<Ce[ie].length;De++){var Ne=ve[Ce[ie][De]];Ne&&ue.push(Ne)}else Ce.helperType&&ve[Ce.helperType]?ue.push(ve[Ce.helperType]):ve[Ce.name]&&ue.push(ve[Ce.name]);for(var ut=0;ut<ve._global.length;ut++){var St=ve._global[ut];St.pred(Ce,this)&&Ft(ue,St.val)==-1&&ue.push(St.val)}return ue},getStateAfter:function(te,ie){var ue=this.doc;return te=Li(ue,te==null?ue.first+ue.size-1:te),_i(this,te+1,ie).state},cursorCoords:function(te,ie){var ue,ve=this.doc.sel.primary();return te==null?ue=ve.head:typeof te=="object"?ue=dr(this.doc,te):ue=te?ve.from():ve.to(),ia(this,ue,ie||"page")},charCoords:function(te,ie){return Ua(this,dr(this.doc,te),ie||"page")},coordsChar:function(te,ie){return te=Sa(this,te,ie||"page"),ja(this,te.left,te.top)},lineAtHeight:function(te,ie){return te=Sa(this,{top:te,left:0},ie||"page").top,er(this.doc,te+this.display.viewOffset)},heightAtLine:function(te,ie,ue){var ve=!1,Ce;if(typeof te=="number"){var De=this.doc.first+this.doc.size-1;te<this.doc.first?te=this.doc.first:te>De&&(te=De,ve=!0),Ce=Vt(this.doc,te)}else Ce=te;return ma(this,Ce,{top:0,left:0},ie||"page",ue||ve).top+(ve?this.doc.height-sn(Ce):0)},defaultTextHeight:function(){return Ka(this.display)},defaultCharWidth:function(){return io(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(te,ie,ue,ve,Ce){var De=this.display;te=ia(this,dr(this.doc,te));var Ne=te.bottom,ut=te.left;if(ie.style.position="absolute",ie.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ie),De.sizer.appendChild(ie),ve=="over")Ne=te.top;else if(ve=="above"||ve=="near"){var St=Math.max(De.wrapper.clientHeight,this.doc.height),en=Math.max(De.sizer.clientWidth,De.lineSpace.clientWidth);(ve=="above"||te.bottom+ie.offsetHeight>St)&&te.top>ie.offsetHeight?Ne=te.top-ie.offsetHeight:te.bottom+ie.offsetHeight<=St&&(Ne=te.bottom),ut+ie.offsetWidth>en&&(ut=en-ie.offsetWidth)}ie.style.top=Ne+"px",ie.style.left=ie.style.right="",Ce=="right"?(ut=De.sizer.clientWidth-ie.offsetWidth,ie.style.right="0px"):(Ce=="left"?ut=0:Ce=="middle"&&(ut=(De.sizer.clientWidth-ie.offsetWidth)/2),ie.style.left=ut+"px"),ue&&cl(this,{left:ut,top:Ne,right:ut+ie.offsetWidth,bottom:Ne+ie.offsetHeight})},triggerOnKeyDown:Oa(_u),triggerOnKeyPress:Oa(cf),triggerOnKeyUp:uf,triggerOnMouseDown:Oa(Go),execCommand:function(te){if(au.hasOwnProperty(te))return au[te].call(null,this)},triggerElectric:Oa(function(te){gd(this,te)}),findPosH:function(te,ie,ue,ve){var Ce=1;ie<0&&(Ce=-1,ie=-ie);for(var De=dr(this.doc,te),Ne=0;Ne<ie&&(De=Cc(this.doc,De,Ce,ue,ve),!De.hitSide);++Ne);return De},moveH:Oa(function(te,ie){var ue=this;this.extendSelectionsBy(function(ve){return ue.display.shift||ue.doc.extend||ve.empty()?Cc(ue.doc,ve.head,te,ie,ue.options.rtlMoveVisually):te<0?ve.from():ve.to()},$t)}),deleteH:Oa(function(te,ie){var ue=this.doc.sel,ve=this.doc;ue.somethingSelected()?ve.replaceSelection("",null,"+delete"):ks(this,function(Ce){var De=Cc(ve,Ce.head,te,ie,!1);return te<0?{from:De,to:Ce.head}:{from:Ce.head,to:De}})}),findPosV:function(te,ie,ue,ve){var Ce=1,De=ve;ie<0&&(Ce=-1,ie=-ie);for(var Ne=dr(this.doc,te),ut=0;ut<ie;++ut){var St=ia(this,Ne,"div");if(De==null?De=St.left:St.left=De,Ne=vf(this,St,Ce,ue),Ne.hitSide)break}return Ne},moveV:Oa(function(te,ie){var ue=this,ve=this.doc,Ce=[],De=!this.display.shift&&!ve.extend&&ve.sel.somethingSelected();if(ve.extendSelectionsBy(function(ut){if(De)return te<0?ut.from():ut.to();var St=ia(ue,ut.head,"div");ut.goalColumn!=null&&(St.left=ut.goalColumn),Ce.push(St.left);var en=vf(ue,St,te,ie);return ie=="page"&&ut==ve.sel.primary()&&ms(ue,Ua(ue,en,"div").top-St.top),en},$t),Ce.length)for(var Ne=0;Ne<ve.sel.ranges.length;Ne++)ve.sel.ranges[Ne].goalColumn=Ce[Ne]}),findWordAt:function(te){var ie=this.doc,ue=Vt(ie,te.line).text,ve=te.ch,Ce=te.ch;if(ue){var De=this.getHelper(te,"wordChars");(te.sticky=="before"||Ce==ue.length)&&ve?--ve:++Ce;for(var Ne=ue.charAt(ve),ut=de(Ne,De)?function(St){return de(St,De)}:/\s/.test(Ne)?function(St){return/\s/.test(St)}:function(St){return!/\s/.test(St)&&!de(St)};ve>0&&ut(ue.charAt(ve-1));)--ve;for(;Ce<ue.length&&ut(ue.charAt(Ce));)++Ce}return new Za(dn(te.line,ve),dn(te.line,Ce))},toggleOverwrite:function(te){te!=null&&te==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?on(this.display.cursorDiv,"CodeMirror-overwrite"):Ke(this.display.cursorDiv,"CodeMirror-overwrite"),En(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Dt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Oa(function(te,ie){Ts(this,te,ie)}),getScrollInfo:function(){var te=this.display.scroller;return{left:te.scrollLeft,top:te.scrollTop,height:te.scrollHeight-Pr(this)-this.display.barHeight,width:te.scrollWidth-Pr(this)-this.display.barWidth,clientHeight:si(this),clientWidth:Ur(this)}},scrollIntoView:Oa(function(te,ie){te==null?(te={from:this.doc.sel.primary().head,to:null},ie==null&&(ie=this.options.cursorScrollMargin)):typeof te=="number"?te={from:dn(te,0),to:null}:te.from==null&&(te={from:te,to:null}),te.to||(te.to=te.from),te.margin=ie||0,te.from.line!=null?Is(this,te):oo(this,te.from,te.to,te.margin)}),setSize:Oa(function(te,ie){var ue=this,ve=function(De){return typeof De=="number"||/^\d+$/.test(String(De))?De+"px":De};te!=null&&(this.display.wrapper.style.width=ve(te)),ie!=null&&(this.display.wrapper.style.height=ve(ie)),this.options.lineWrapping&&Vi(this);var Ce=this.display.viewFrom;this.doc.iter(Ce,this.display.viewTo,function(De){if(De.widgets){for(var Ne=0;Ne<De.widgets.length;Ne++)if(De.widgets[Ne].noHScroll){Da(ue,Ce,"widget");break}}++Ce}),this.curOp.forceUpdate=!0,En(this,"refresh",this)}),operation:function(te){return sa(this,te)},startOperation:function(){return Ks(this)},endOperation:function(){return _s(this)},refresh:Oa(function(){var te=this.display.cachedTextHeight;hi(this),this.curOp.forceUpdate=!0,jr(this),Ts(this,this.doc.scrollLeft,this.doc.scrollTop),Qu(this.display),(te==null||Math.abs(te-Ka(this.display))>.5||this.options.lineWrapping)&&lo(this),En(this,"refresh",this)}),swapDoc:Oa(function(te){var ie=this.doc;return ie.cm=null,this.state.selectingText&&this.state.selectingText(),wu(this,te),jr(this),this.display.input.reset(),Ts(this,te.scrollLeft,te.scrollTop),this.curOp.forceScroll=!0,An(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}},Yr(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,ve){x.registerHelper(te,ie,ve),ne[te]._global.push({pred:ue,val:ve})}}function Cc(x,z,ne,te,ie){var ue=z,ve=ne,Ce=Vt(x,z.line),De=ie&&x.direction=="rtl"?-ne:ne;function Ne(){var zr=z.line+De;return zr<x.first||zr>=x.first+x.size?!1:(z=new dn(zr,z.ch,z.sticky),Ce=Vt(x,zr))}function ut(zr){var Lr;if(te=="codepoint"){var Hr=Ce.text.charCodeAt(z.ch+(te>0?0:-1));isNaN(Hr)?Lr=null:Lr=new dn(z.line,Math.max(0,Math.min(Ce.text.length,z.ch+ne*(Hr>=55296&&Hr<56320?2:1))),-ne)}else ie?Lr=Vs(x.cm,Ce,z,ne):Lr=$s(Ce,z,ne);if(Lr==null)if(!zr&&Ne())z=Kl(ie,x.cm,Ce,z.line,De);else return!1;else z=Lr;return!0}if(te=="char"||te=="codepoint")ut();else if(te=="column")ut(!0);else if(te=="word"||te=="group")for(var St=null,en=te=="group",jt=x.cm&&x.cm.getHelper(z,"wordChars"),Rn=!0;!(ne<0&&!ut(!Rn));Rn=!1){var Qn=Ce.text.charAt(z.ch)||`
`,yr=de(Qn,jt)?"w":en&&Qn==`
`?"n":!en||/\s/.test(Qn)?null:"p";if(en&&!Rn&&!yr&&(yr="s"),St&&St!=yr){ne<0&&(ne=1,ut(),z.sticky="after");break}if(yr&&(St=yr),ne>0&&!ut(!Rn))break}var Ir=hc(x,z,ue,ve,!0);return pi(ue,Ir)&&(Ir.hitSide=!0),Ir}function vf(x,z,ne,te){var ie=x.doc,ue=z.left,ve;if(te=="page"){var Ce=Math.min(x.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),De=Math.max(Ce-.5*Ka(x.display),3);ve=(ne>0?z.bottom:z.top)+ne*De}else te=="line"&&(ve=ne>0?z.bottom+3:z.top-3);for(var Ne;Ne=ja(x,ue,ve),!!Ne.outside;){if(ne<0?ve<=0:ve>=ie.height){Ne.hitSide=!0;break}ve+=ne*5}return Ne}var Ya=function(x){this.cm=x,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new _e,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ya.prototype.init=function(x){var z=this,ne=this,te=ne.cm,ie=ne.div=x.lineDiv;gf(ie,te.options.spellcheck,te.options.autocorrect,te.options.autocapitalize);function ue(Ce){for(var De=Ce.target;De;De=De.parentNode){if(De==ie)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(De.className))break}return!1}cn(ie,"paste",function(Ce){!ue(Ce)||wr(te,Ce)||md(Ce,te)||Ae<=11&&setTimeout(Ha(te,function(){return z.updateFromDOM()}),20)}),cn(ie,"compositionstart",function(Ce){z.composing={data:Ce.data,done:!1}}),cn(ie,"compositionupdate",function(Ce){z.composing||(z.composing={data:Ce.data,done:!1})}),cn(ie,"compositionend",function(Ce){z.composing&&(Ce.data!=z.composing.data&&z.readFromDOMSoon(),z.composing.done=!0)}),cn(ie,"touchstart",function(){return ne.forceCompositionEnd()}),cn(ie,"input",function(){z.composing||z.readFromDOMSoon()});function ve(Ce){if(!(!ue(Ce)||wr(te,Ce))){if(te.somethingSelected())bl({lineWise:!1,text:te.getSelections()}),Ce.type=="cut"&&te.replaceSelection("",null,"cut");else if(te.options.lineWiseCopyCut){var De=lu(te);bl({lineWise:!0,text:De.text}),Ce.type=="cut"&&te.operation(function(){te.setSelections(De.ranges,0,nt),te.replaceSelection("",null,"cut")})}else return;if(Ce.clipboardData){Ce.clipboardData.clearData();var Ne=Ns.text.join(`
`);if(Ce.clipboardData.setData("Text",Ne),Ce.clipboardData.getData("Text")==Ne){Ce.preventDefault();return}}var ut=vd(),St=ut.firstChild;te.display.lineSpace.insertBefore(ut,te.display.lineSpace.firstChild),St.value=Ns.text.join(`
`);var en=document.activeElement;wn(St),setTimeout(function(){te.display.lineSpace.removeChild(ut),en.focus(),en==ie&&ne.showPrimarySelection()},50)}}cn(ie,"copy",ve),cn(ie,"cut",ve)},Ya.prototype.screenReaderLabelChanged=function(x){x?this.div.setAttribute("aria-label",x):this.div.removeAttribute("aria-label")},Ya.prototype.prepareSelection=function(){var x=ps(this.cm,!1);return x.focus=document.activeElement==this.div,x},Ya.prototype.showSelection=function(x,z){!x||!this.cm.display.view.length||((x.focus||z)&&this.showPrimarySelection(),this.showMultipleSelections(x))},Ya.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ya.prototype.showPrimarySelection=function(){var x=this.getSelection(),z=this.cm,ne=z.doc.sel.primary(),te=ne.from(),ie=ne.to();if(z.display.viewTo==z.display.viewFrom||te.line>=z.display.viewTo||ie.line<z.display.viewFrom){x.removeAllRanges();return}var ue=Ec(z,x.anchorNode,x.anchorOffset),ve=Ec(z,x.focusNode,x.focusOffset);if(!(ue&&!ue.bad&&ve&&!ve.bad&&Hn(Or(ue,ve),te)==0&&Hn(Zr(ue,ve),ie)==0)){var Ce=z.display.view,De=te.line>=z.display.viewFrom&&yf(z,te)||{node:Ce[0].measure.map[2],offset:0},Ne=ie.line<z.display.viewTo&&yf(z,ie);if(!Ne){var ut=Ce[Ce.length-1].measure,St=ut.maps?ut.maps[ut.maps.length-1]:ut.map;Ne={node:St[St.length-1],offset:St[St.length-2]-St[St.length-3]}}if(!De||!Ne){x.removeAllRanges();return}var en=x.rangeCount&&x.getRangeAt(0),jt;try{jt=Qe(De.node,De.offset,Ne.offset,Ne.node)}catch(Rn){}jt&&(!ge&&z.state.focused?(x.collapse(De.node,De.offset),jt.collapsed||(x.removeAllRanges(),x.addRange(jt))):(x.removeAllRanges(),x.addRange(jt)),en&&x.anchorNode==null?x.addRange(en):ge&&this.startGracePeriod()),this.rememberSelection()}},Ya.prototype.startGracePeriod=function(){var x=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){x.gracePeriod=!1,x.selectionChanged()&&x.cm.operation(function(){return x.cm.curOp.selectionChanged=!0})},20)},Ya.prototype.showMultipleSelections=function(x){ft(this.cm.display.cursorDiv,x.cursors),ft(this.cm.display.selectionDiv,x.selection)},Ya.prototype.rememberSelection=function(){var x=this.getSelection();this.lastAnchorNode=x.anchorNode,this.lastAnchorOffset=x.anchorOffset,this.lastFocusNode=x.focusNode,this.lastFocusOffset=x.focusOffset},Ya.prototype.selectionInEditor=function(){var x=this.getSelection();if(!x.rangeCount)return!1;var z=x.getRangeAt(0).commonAncestorContainer;return Rt(this.div,z)},Ya.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ya.prototype.blur=function(){this.div.blur()},Ya.prototype.getField=function(){return this.div},Ya.prototype.supportsTouch=function(){return!0},Ya.prototype.receivedFocus=function(){var x=this;this.selectionInEditor()?this.pollSelection():sa(this.cm,function(){return x.cm.curOp.selectionChanged=!0});function z(){x.cm.state.focused&&(x.pollSelection(),x.polling.set(x.cm.options.pollInterval,z))}this.polling.set(this.cm.options.pollInterval,z)},Ya.prototype.selectionChanged=function(){var x=this.getSelection();return x.anchorNode!=this.lastAnchorNode||x.anchorOffset!=this.lastAnchorOffset||x.focusNode!=this.lastFocusNode||x.focusOffset!=this.lastFocusOffset},Ya.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var x=this.getSelection(),z=this.cm;if(tt&&pe&&this.cm.display.gutterSpecs.length&&uh(x.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ne=Ec(z,x.anchorNode,x.anchorOffset),te=Ec(z,x.focusNode,x.focusOffset);ne&&te&&sa(z,function(){To(z.doc,Bs(ne,te),nt),(ne.bad||te.bad)&&(z.curOp.selectionChanged=!0)})}}},Ya.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var x=this.cm,z=x.display,ne=x.doc.sel.primary(),te=ne.from(),ie=ne.to();if(te.ch==0&&te.line>x.firstLine()&&(te=dn(te.line-1,Vt(x.doc,te.line-1).length)),ie.ch==Vt(x.doc,ie.line).text.length&&ie.line<x.lastLine()&&(ie=dn(ie.line+1,0)),te.line<z.viewFrom||ie.line>z.viewTo-1)return!1;var ue,ve,Ce;te.line==z.viewFrom||(ue=Ki(x,te.line))==0?(ve=Un(z.view[0].line),Ce=z.view[0].node):(ve=Un(z.view[ue].line),Ce=z.view[ue-1].node.nextSibling);var De=Ki(x,ie.line),Ne,ut;if(De==z.view.length-1?(Ne=z.viewTo-1,ut=z.lineDiv.lastChild):(Ne=Un(z.view[De+1].line)-1,ut=z.view[De+1].node.previousSibling),!Ce)return!1;for(var St=x.doc.splitLines(ch(x,Ce,ut,ve,Ne)),en=Pn(x.doc,dn(ve,0),dn(Ne,Vt(x.doc,Ne).text.length));St.length>1&&en.length>1;)if(Ct(St)==Ct(en))St.pop(),en.pop(),Ne--;else if(St[0]==en[0])St.shift(),en.shift(),ve++;else break;for(var jt=0,Rn=0,Qn=St[0],yr=en[0],Ir=Math.min(Qn.length,yr.length);jt<Ir&&Qn.charCodeAt(jt)==yr.charCodeAt(jt);)++jt;for(var zr=Ct(St),Lr=Ct(en),Hr=Math.min(zr.length-(St.length==1?jt:0),Lr.length-(en.length==1?jt:0));Rn<Hr&&zr.charCodeAt(zr.length-Rn-1)==Lr.charCodeAt(Lr.length-Rn-1);)++Rn;if(St.length==1&&en.length==1&&ve==te.line)for(;jt&&jt>te.ch&&zr.charCodeAt(zr.length-Rn-1)==Lr.charCodeAt(Lr.length-Rn-1);)jt--,Rn++;St[St.length-1]=zr.slice(0,zr.length-Rn).replace(/^\u200b+/,""),St[0]=St[0].slice(jt).replace(/\u200b+$/,"");var vi=dn(ve,jt),Si=dn(Ne,en.length?Ct(en).length-Rn:0);if(St.length>1||St[0]||Hn(vi,Si))return eu(x.doc,St,vi,Si,"+input"),!0},Ya.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ya.prototype.reset=function(){this.forceCompositionEnd()},Ya.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ya.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))},Ya.prototype.updateFromDOM=function(){var x=this;(this.cm.isReadOnly()||!this.pollContent())&&sa(this.cm,function(){return hi(x.cm)})},Ya.prototype.setUneditable=function(x){x.contentEditable="false"},Ya.prototype.onKeyPress=function(x){x.charCode==0||this.composing||(x.preventDefault(),this.cm.isReadOnly()||Ha(this.cm,pd)(this.cm,String.fromCharCode(x.charCode==null?x.keyCode:x.charCode),0))},Ya.prototype.readOnlyChanged=function(x){this.div.contentEditable=String(x!="nocursor")},Ya.prototype.onContextMenu=function(){},Ya.prototype.resetPosition=function(){},Ya.prototype.needsContentAttribute=!0;function yf(x,z){var ne=qi(x,z.line);if(!ne||ne.hidden)return null;var te=Vt(x.doc,z.line),ie=Ra(ne,te,z.line),ue=Gn(te,x.doc.direction),ve="left";if(ue){var Ce=Nt(ue,z.ch);ve=Ce%2?"right":"left"}var De=ii(ie.map,z.ch,ve);return De.offset=De.collapse=="right"?De.end:De.start,De}function uh(x){for(var z=x;z;z=z.parentNode)if(/CodeMirror-gutter-wrapper/.test(z.className))return!0;return!1}function uu(x,z){return z&&(x.bad=!0),x}function ch(x,z,ne,te,ie){var ue="",ve=!1,Ce=x.doc.lineSeparator(),De=!1;function Ne(jt){return function(Rn){return Rn.id==jt}}function ut(){ve&&(ue+=Ce,De&&(ue+=Ce),ve=De=!1)}function St(jt){jt&&(ut(),ue+=jt)}function en(jt){if(jt.nodeType==1){var Rn=jt.getAttribute("cm-text");if(Rn){St(Rn);return}var Qn=jt.getAttribute("cm-marker"),yr;if(Qn){var Ir=x.findMarks(dn(te,0),dn(ie+1,0),Ne(+Qn));Ir.length&&(yr=Ir[0].find(0))&&St(Pn(x.doc,yr.from,yr.to).join(Ce));return}if(jt.getAttribute("contenteditable")=="false")return;var zr=/^(pre|div|p|li|table|br)$/i.test(jt.nodeName);if(!/^br$/i.test(jt.nodeName)&&jt.textContent.length==0)return;zr&&ut();for(var Lr=0;Lr<jt.childNodes.length;Lr++)en(jt.childNodes[Lr]);/^(pre|p)$/i.test(jt.nodeName)&&(De=!0),zr&&(ve=!0)}else jt.nodeType==3&&St(jt.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;en(z),z!=ne;)z=z.nextSibling,De=!1;return ue}function Ec(x,z,ne){var te;if(z==x.display.lineDiv){if(te=x.display.lineDiv.childNodes[ne],!te)return uu(x.clipPos(dn(x.display.viewTo-1)),!0);z=null,ne=0}else for(te=z;;te=te.parentNode){if(!te||te==x.display.lineDiv)return null;if(te.parentNode&&te.parentNode==x.display.lineDiv)break}for(var ie=0;ie<x.display.view.length;ie++){var ue=x.display.view[ie];if(ue.node==te)return dh(ue,z,ne)}}function dh(x,z,ne){var te=x.text.firstChild,ie=!1;if(!z||!Rt(te,z))return uu(dn(Un(x.line),0),!0);if(z==te&&(ie=!0,z=te.childNodes[ne],ne=0,!z)){var ue=x.rest?Ct(x.rest):x.line;return uu(dn(Un(ue),ue.text.length),ie)}var ve=z.nodeType==3?z:null,Ce=z;for(!ve&&z.childNodes.length==1&&z.firstChild.nodeType==3&&(ve=z.firstChild,ne&&(ne=ve.nodeValue.length));Ce.parentNode!=te;)Ce=Ce.parentNode;var De=x.measure,Ne=De.maps;function ut(yr,Ir,zr){for(var Lr=-1;Lr<(Ne?Ne.length:0);Lr++)for(var Hr=Lr<0?De.map:Ne[Lr],vi=0;vi<Hr.length;vi+=3){var Si=Hr[vi+2];if(Si==yr||Si==Ir){var ca=Un(Lr<0?x.line:x.rest[Lr]),to=Hr[vi]+zr;return(zr<0||Si!=yr)&&(to=Hr[vi+(zr?1:0)]),dn(ca,to)}}}var St=ut(ve,Ce,ne);if(St)return uu(St,ie);for(var en=Ce.nextSibling,jt=ve?ve.nodeValue.length-ne:0;en;en=en.nextSibling){if(St=ut(en,en.firstChild,0),St)return uu(dn(St.line,St.ch-jt),ie);jt+=en.textContent.length}for(var Rn=Ce.previousSibling,Qn=ne;Rn;Rn=Rn.previousSibling){if(St=ut(Rn,Rn.firstChild,-1),St)return uu(dn(St.line,St.ch+Qn),ie);Qn+=Rn.textContent.length}}var eo=function(x){this.cm=x,this.prevInput="",this.pollingFast=!1,this.polling=new _e,this.hasSelection=!1,this.composing=null};eo.prototype.init=function(x){var z=this,ne=this,te=this.cm;this.createField(x);var ie=this.textarea;x.wrapper.insertBefore(this.wrapper,x.wrapper.firstChild),lt&&(ie.style.width="0px"),cn(ie,"input",function(){be&&Ae>=9&&z.hasSelection&&(z.hasSelection=null),ne.poll()}),cn(ie,"paste",function(ve){wr(te,ve)||md(ve,te)||(te.state.pasteIncoming=+new Date,ne.fastPoll())});function ue(ve){if(!wr(te,ve)){if(te.somethingSelected())bl({lineWise:!1,text:te.getSelections()});else if(te.options.lineWiseCopyCut){var Ce=lu(te);bl({lineWise:!0,text:Ce.text}),ve.type=="cut"?te.setSelections(Ce.ranges,null,nt):(ne.prevInput="",ie.value=Ce.text.join(`
`),wn(ie))}else return;ve.type=="cut"&&(te.state.cutIncoming=+new Date)}}cn(ie,"cut",ue),cn(ie,"copy",ue),cn(x.scroller,"paste",function(ve){if(!(Bi(x,ve)||wr(te,ve))){if(!ie.dispatchEvent){te.state.pasteIncoming=+new Date,ne.focus();return}var Ce=new Event("paste");Ce.clipboardData=ve.clipboardData,ie.dispatchEvent(Ce)}}),cn(x.lineSpace,"selectstart",function(ve){Bi(x,ve)||Gr(ve)}),cn(ie,"compositionstart",function(){var ve=te.getCursor("from");ne.composing&&ne.composing.range.clear(),ne.composing={start:ve,range:te.markText(ve,te.getCursor("to"),{className:"CodeMirror-composing"})}}),cn(ie,"compositionend",function(){ne.composing&&(ne.poll(),ne.composing.range.clear(),ne.composing=null)})},eo.prototype.createField=function(x){this.wrapper=vd(),this.textarea=this.wrapper.firstChild},eo.prototype.screenReaderLabelChanged=function(x){x?this.textarea.setAttribute("aria-label",x):this.textarea.removeAttribute("aria-label")},eo.prototype.prepareSelection=function(){var x=this.cm,z=x.display,ne=x.doc,te=ps(x);if(x.options.moveInputWithCursor){var ie=ia(x,ne.sel.primary().head,"div"),ue=z.wrapper.getBoundingClientRect(),ve=z.lineDiv.getBoundingClientRect();te.teTop=Math.max(0,Math.min(z.wrapper.clientHeight-10,ie.top+ve.top-ue.top)),te.teLeft=Math.max(0,Math.min(z.wrapper.clientWidth-10,ie.left+ve.left-ue.left))}return te},eo.prototype.showSelection=function(x){var z=this.cm,ne=z.display;ft(ne.cursorDiv,x.cursors),ft(ne.selectionDiv,x.selection),x.teTop!=null&&(this.wrapper.style.top=x.teTop+"px",this.wrapper.style.left=x.teLeft+"px")},eo.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&&wn(this.textarea),be&&Ae>=9&&(this.hasSelection=ne)}else x||(this.prevInput=this.textarea.value="",be&&Ae>=9&&(this.hasSelection=null))}},eo.prototype.getField=function(){return this.textarea},eo.prototype.supportsTouch=function(){return!1},eo.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Ge||Dt()!=this.textarea))try{this.textarea.focus()}catch(x){}},eo.prototype.blur=function(){this.textarea.blur()},eo.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},eo.prototype.receivedFocus=function(){this.slowPoll()},eo.prototype.slowPoll=function(){var x=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){x.poll(),x.cm.state.focused&&x.slowPoll()})},eo.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)},eo.prototype.poll=function(){var x=this,z=this.cm,ne=this.textarea,te=this.prevInput;if(this.contextMenuPending||!z.state.focused||bn(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&&Ae>=9&&this.hasSelection===ie||Me&&/[\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 ve=0,Ce=Math.min(te.length,ie.length);ve<Ce&&te.charCodeAt(ve)==ie.charCodeAt(ve);)++ve;return sa(z,function(){pd(z,ie.slice(ve),te.length-ve,null,x.composing?"*compose":null),ie.length>1e3||ie.indexOf(`
`)>-1?ne.value=x.prevInput="":x.prevInput=ie,x.composing&&(x.composing.range.clear(),x.composing.range=z.markText(x.composing.start,z.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},eo.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},eo.prototype.onKeyPress=function(){be&&Ae>=9&&(this.hasSelection=null),this.fastPoll()},eo.prototype.onContextMenu=function(x){var z=this,ne=z.cm,te=ne.display,ie=z.textarea;z.contextMenuPending&&z.contextMenuPending();var ue=Do(ne,x),ve=te.scroller.scrollTop;if(!ue||Ie)return;var Ce=ne.options.resetSelectionOnContextMenu;Ce&&ne.doc.sel.contains(ue)==-1&&Ha(ne,To)(ne.doc,Bs(ue),nt);var De=ie.style.cssText,Ne=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 St;ke&&(St=window.scrollY),te.input.focus(),ke&&window.scrollTo(null,St),te.input.reset(),ne.somethingSelected()||(ie.value=z.prevInput=" "),z.contextMenuPending=jt,te.selForContextMenu=ne.doc.sel,clearTimeout(te.detectingSelectAll);function en(){if(ie.selectionStart!=null){var Qn=ne.somethingSelected(),yr="\u200B"+(Qn?ie.value:"");ie.value="\u21DA",ie.value=yr,z.prevInput=Qn?"":"\u200B",ie.selectionStart=1,ie.selectionEnd=yr.length,te.selForContextMenu=ne.doc.sel}}function jt(){if(z.contextMenuPending==jt&&(z.contextMenuPending=!1,z.wrapper.style.cssText=Ne,ie.style.cssText=De,be&&Ae<9&&te.scrollbars.setScrollTop(te.scroller.scrollTop=ve),ie.selectionStart!=null)){(!be||be&&Ae<9)&&en();var Qn=0,yr=function(){te.selForContextMenu==ne.doc.sel&&ie.selectionStart==0&&ie.selectionEnd>0&&z.prevInput=="\u200B"?Ha(ne,td)(ne):Qn++<10?te.detectingSelectAll=setTimeout(yr,500):(te.selForContextMenu=null,te.input.reset())};te.detectingSelectAll=setTimeout(yr,200)}}if(be&&Ae>=9&&en(),Be){ki(x);var Rn=function(){lr(window,"mouseup",Rn),setTimeout(jt,20)};cn(window,"mouseup",Rn)}else setTimeout(jt,50)},eo.prototype.readOnlyChanged=function(x){x||this.reset(),this.textarea.disabled=x=="nocursor",this.textarea.readOnly=!!x},eo.prototype.setUneditable=function(){},eo.prototype.needsContentAttribute=!1;function Wl(x,z){if(z=z?nr(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=Dt();z.autofocus=ne==x||x.getAttribute("autofocus")!=null&&ne==document.body}function te(){x.value=Ce.getValue()}var ie;if(x.form&&(cn(x.form,"submit",te),!z.leaveSubmitMethodAlone)){var ue=x.form;ie=ue.submit;try{var ve=ue.submit=function(){te(),ue.submit=ie,ue.submit(),ue.submit=ve}}catch(De){}}z.finishInit=function(De){De.save=te,De.getTextArea=function(){return x},De.toTextArea=function(){De.toTextArea=isNaN,te(),x.parentNode.removeChild(De.getWrapperElement()),x.style.display="",x.form&&(lr(x.form,"submit",te),!z.leaveSubmitMethodAlone&&typeof x.form.submit=="function"&&(x.form.submit=ie))}},x.style.display="none";var Ce=Wi(function(De){return x.parentNode.insertBefore(De,x.nextSibling)},z);return Ce}function cu(x){x.off=lr,x.on=cn,x.wheelEventPixels=jc,x.Doc=Mo,x.splitLines=kt,x.countColumn=Je,x.findColumn=kn,x.isWordChar=fe,x.Pass=an,x.signal=En,x.Line=xn,x.changeEnd=Qs,x.scrollbarModel=Yl,x.Pos=dn,x.cmpPos=Hn,x.modes=qn,x.mimeModes=hr,x.resolveMode=st,x.getMode=Lt,x.modeExtensions=qt,x.extendMode=Ve,x.copyState=gt,x.startState=Pt,x.innerMode=Kt,x.commands=au,x.keyMap=Ja,x.keyName=Hl,x.isModifierKey=Iu,x.lookupKey=rl,x.normalizeKeyMap=od,x.StringStream=Gt,x.SharedTextMarker=ua,x.TextMarker=hl,x.LineWidget=nu,x.e_preventDefault=Gr,x.e_stopPropagation=Ai,x.e_stop=ki,x.addClass=on,x.contains=Rt,x.rmClass=Ke,x.keyNames=Ps}oh(Wi),yd(Wi);var ol="iter insert remove copy getEditor constructor".split(" ");for(var As in Mo.prototype)Mo.prototype.hasOwnProperty(As)&&Ft(ol,As)<0&&(Wi.prototype[As]=function(x){return function(){return x.apply(this.doc,arguments)}}(Mo.prototype[As]));return Yr(Mo),Wi.inputStyles={textarea:eo,contenteditable:Ya},Wi.defineMode=function(x){!Wi.defaults.mode&&x!="null"&&(Wi.defaults.mode=x),On.apply(this,arguments)},Wi.defineMIME=qe,Wi.defineMode("null",function(){return{token:function(x){return x.skipToEnd()}}}),Wi.defineMIME("text/plain","null"),Wi.defineExtension=function(x,z){Wi.prototype[x]=z},Wi.defineDocExtension=function(x,z){Mo.prototype[x]=z},Wi.fromTextArea=Wl,cu(Wi),Wi.version="5.58.2",Wi})},49047:function(hn,Zt,le){(function(ge){ge(le(4631),le(29589),le(52539))})(function(ge){"use strict";ge.defineMode("markdown",function(We,Pe){var et=ge.getMode(We,"text/html"),be=et.name=="null";function Ae(Je){if(ge.findModeByName){var _e=ge.findModeByName(Je);_e&&(Je=_e.mime||_e.mimes[0])}var Ft=ge.getMode(We,Je);return Ft.name=="null"?null:Ft}Pe.highlightFormatting===void 0&&(Pe.highlightFormatting=!1),Pe.maxBlockquoteDepth===void 0&&(Pe.maxBlockquoteDepth=0),Pe.taskLists===void 0&&(Pe.taskLists=!1),Pe.strikethrough===void 0&&(Pe.strikethrough=!1),Pe.emoji===void 0&&(Pe.emoji=!1),Pe.fencedCodeBlockHighlighting===void 0&&(Pe.fencedCodeBlockHighlighting=!0),Pe.fencedCodeBlockDefaultMode===void 0&&(Pe.fencedCodeBlockDefaultMode="text/plain"),Pe.xml===void 0&&(Pe.xml=!0),Pe.tokenTypeOverrides===void 0&&(Pe.tokenTypeOverrides={});var ke={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 Se in ke)ke.hasOwnProperty(Se)&&Pe.tokenTypeOverrides[Se]&&(ke[Se]=Pe.tokenTypeOverrides[Se]);var pe=/^([*\-_])(?:\s*\1){2,}\s*$/,Ie=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,ot=/^\[(x| )\](?=\s)/i,Oe=Pe.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,wt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,lt=/^[^#!\[\]*_\\<>` "'(~:]+/,tt=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Ge=/^\s*\[[^\]]+?\]:.*$/,Me=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,bt=" ";function zt(Je,_e,Ft){return _e.f=_e.inline=Ft,Ft(Je,_e)}function Ye(Je,_e,Ft){return _e.f=_e.block=Ft,Ft(Je,_e)}function it(Je){return!Je||!/\S/.test(Je.string)}function Be(Je){if(Je.linkTitle=!1,Je.linkHref=!1,Je.linkText=!1,Je.em=!1,Je.strong=!1,Je.strikethrough=!1,Je.quote=0,Je.indentedCode=!1,Je.f==Ke){var _e=be;if(!_e){var Ft=ge.innerMode(et,Je.htmlState);_e=Ft.mode.name=="xml"&&Ft.state.tagStart===null&&!Ft.state.context&&Ft.state.tokenize.isInText}_e&&(Je.f=Mt,Je.block=xe,Je.htmlState=null)}return Je.trailingSpace=0,Je.trailingSpaceNewLine=!1,Je.prevLine=Je.thisLine,Je.thisLine={stream:null},null}function xe(Je,_e){var Ft=Je.column()===_e.indentation,Sn=it(_e.prevLine.stream),an=_e.indentedCode,nt=_e.prevLine.hr,at=_e.list!==!1,$t=(_e.listStack[_e.listStack.length-1]||0)+3;_e.indentedCode=!1;var kn=_e.indentation;if(_e.indentationDiff===null&&(_e.indentationDiff=_e.indentation,at)){for(_e.list=null;kn<_e.listStack[_e.listStack.length-1];)_e.listStack.pop(),_e.listStack.length?_e.indentation=_e.listStack[_e.listStack.length-1]:_e.list=!1;_e.list!==!1&&(_e.indentationDiff=kn-_e.listStack[_e.listStack.length-1])}var Ht=!Sn&&!nt&&!_e.prevLine.header&&(!at||!an)&&!_e.prevLine.fencedCodeEnd,It=(_e.list===!1||nt||Sn)&&_e.indentation<=$t&&Je.match(pe),Ct=null;if(_e.indentationDiff>=4&&(an||_e.prevLine.fencedCodeEnd||_e.prevLine.header||Sn))return Je.skipToEnd(),_e.indentedCode=!0,ke.code;if(Je.eatSpace())return null;if(Ft&&_e.indentation<=$t&&(Ct=Je.match(Oe))&&Ct[1].length<=6)return _e.quote=0,_e.header=Ct[1].length,_e.thisLine.header=!0,Pe.highlightFormatting&&(_e.formatting="header"),_e.f=_e.inline,ft(_e);if(_e.indentation<=$t&&Je.eat(">"))return _e.quote=Ft?1:_e.quote+1,Pe.highlightFormatting&&(_e.formatting="quote"),Je.eatSpace(),ft(_e);if(!It&&!_e.setext&&Ft&&_e.indentation<=$t&&(Ct=Je.match(Ie))){var tn=Ct[1]?"ol":"ul";return _e.indentation=kn+Je.current().length,_e.list=!0,_e.quote=0,_e.listStack.push(_e.indentation),_e.em=!1,_e.strong=!1,_e.code=!1,_e.strikethrough=!1,Pe.taskLists&&Je.match(ot,!1)&&(_e.taskList=!0),_e.f=_e.inline,Pe.highlightFormatting&&(_e.formatting=["list","list-"+tn]),ft(_e)}else{if(Ft&&_e.indentation<=$t&&(Ct=Je.match(tt,!0)))return _e.quote=0,_e.fencedEndRE=new RegExp(Ct[1]+"+ *$"),_e.localMode=Pe.fencedCodeBlockHighlighting&&Ae(Ct[2]||Pe.fencedCodeBlockDefaultMode),_e.localMode&&(_e.localState=ge.startState(_e.localMode)),_e.f=_e.block=Ue,Pe.highlightFormatting&&(_e.formatting="code-block"),_e.code=-1,ft(_e);if(_e.setext||(!Ht||!at)&&!_e.quote&&_e.list===!1&&!_e.code&&!It&&!Ge.test(Je.string)&&(Ct=Je.lookAhead(1))&&(Ct=Ct.match(wt)))return _e.setext?(_e.header=_e.setext,_e.setext=0,Je.skipToEnd(),Pe.highlightFormatting&&(_e.formatting="header")):(_e.header=Ct[0].charAt(0)=="="?1:2,_e.setext=_e.header),_e.thisLine.header=!0,_e.f=_e.inline,ft(_e);if(It)return Je.skipToEnd(),_e.hr=!0,_e.thisLine.hr=!0,ke.hr;if(Je.peek()==="[")return zt(Je,_e,Ut)}return zt(Je,_e,_e.inline)}function Ke(Je,_e){var Ft=et.token(Je,_e.htmlState);if(!be){var Sn=ge.innerMode(et,_e.htmlState);(Sn.mode.name=="xml"&&Sn.state.tagStart===null&&!Sn.state.context&&Sn.state.tokenize.isInText||_e.md_inside&&Je.current().indexOf(">")>-1)&&(_e.f=Mt,_e.block=xe,_e.htmlState=null)}return Ft}function Ue(Je,_e){var Ft=_e.listStack[_e.listStack.length-1]||0,Sn=_e.indentation<Ft,an=Ft+3;if(_e.fencedEndRE&&_e.indentation<=an&&(Sn||Je.match(_e.fencedEndRE))){Pe.highlightFormatting&&(_e.formatting="code-block");var nt;return Sn||(nt=ft(_e)),_e.localMode=_e.localState=null,_e.block=xe,_e.f=Mt,_e.fencedEndRE=null,_e.code=0,_e.thisLine.fencedCodeEnd=!0,Sn?Ye(Je,_e,_e.block):nt}else return _e.localMode?_e.localMode.token(Je,_e.localState):(Je.skipToEnd(),ke.code)}function ft(Je){var _e=[];if(Je.formatting){_e.push(ke.formatting),typeof Je.formatting=="string"&&(Je.formatting=[Je.formatting]);for(var Ft=0;Ft<Je.formatting.length;Ft++)_e.push(ke.formatting+"-"+Je.formatting[Ft]),Je.formatting[Ft]==="header"&&_e.push(ke.formatting+"-"+Je.formatting[Ft]+"-"+Je.header),Je.formatting[Ft]==="quote"&&(!Pe.maxBlockquoteDepth||Pe.maxBlockquoteDepth>=Je.quote?_e.push(ke.formatting+"-"+Je.formatting[Ft]+"-"+Je.quote):_e.push("error"))}if(Je.taskOpen)return _e.push("meta"),_e.length?_e.join(" "):null;if(Je.taskClosed)return _e.push("property"),_e.length?_e.join(" "):null;if(Je.linkHref?_e.push(ke.linkHref,"url"):(Je.strong&&_e.push(ke.strong),Je.em&&_e.push(ke.em),Je.strikethrough&&_e.push(ke.strikethrough),Je.emoji&&_e.push(ke.emoji),Je.linkText&&_e.push(ke.linkText),Je.code&&_e.push(ke.code),Je.image&&_e.push(ke.image),Je.imageAltText&&_e.push(ke.imageAltText,"link"),Je.imageMarker&&_e.push(ke.imageMarker)),Je.header&&_e.push(ke.header,ke.header+"-"+Je.header),Je.quote&&(_e.push(ke.quote),!Pe.maxBlockquoteDepth||Pe.maxBlockquoteDepth>=Je.quote?_e.push(ke.quote+"-"+Je.quote):_e.push(ke.quote+"-"+Pe.maxBlockquoteDepth)),Je.list!==!1){var Sn=(Je.listStack.length-1)%3;Sn?Sn===1?_e.push(ke.list2):_e.push(ke.list3):_e.push(ke.list1)}return Je.trailingSpaceNewLine?_e.push("trailing-space-new-line"):Je.trailingSpace&&_e.push("trailing-space-"+(Je.trailingSpace%2?"a":"b")),_e.length?_e.join(" "):null}function pt(Je,_e){if(Je.match(lt,!0))return ft(_e)}function Mt(Je,_e){var Ft=_e.text(Je,_e);if(typeof Ft!="undefined")return Ft;if(_e.list)return _e.list=null,ft(_e);if(_e.taskList){var Sn=Je.match(ot,!0)[1]===" ";return Sn?_e.taskOpen=!0:_e.taskClosed=!0,Pe.highlightFormatting&&(_e.formatting="task"),_e.taskList=!1,ft(_e)}if(_e.taskOpen=!1,_e.taskClosed=!1,_e.header&&Je.match(/^#+$/,!0))return Pe.highlightFormatting&&(_e.formatting="header"),ft(_e);var an=Je.next();if(_e.linkTitle){_e.linkTitle=!1;var nt=an;an==="("&&(nt=")"),nt=(nt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var at="^\\s*(?:[^"+nt+"\\\\]+|\\\\\\\\|\\\\.)"+nt;if(Je.match(new RegExp(at),!0))return ke.linkHref}if(an==="`"){var $t=_e.formatting;Pe.highlightFormatting&&(_e.formatting="code"),Je.eatWhile("`");var kn=Je.current().length;if(_e.code==0&&(!_e.quote||kn==1))return _e.code=kn,ft(_e);if(kn==_e.code){var Ht=ft(_e);return _e.code=0,Ht}else return _e.formatting=$t,ft(_e)}else if(_e.code)return ft(_e);if(an==="\\"&&(Je.next(),Pe.highlightFormatting)){var It=ft(_e),Ct=ke.formatting+"-escape";return It?It+" "+Ct:Ct}if(an==="!"&&Je.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return _e.imageMarker=!0,_e.image=!0,Pe.highlightFormatting&&(_e.formatting="image"),ft(_e);if(an==="["&&_e.imageMarker&&Je.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return _e.imageMarker=!1,_e.imageAltText=!0,Pe.highlightFormatting&&(_e.formatting="image"),ft(_e);if(an==="]"&&_e.imageAltText){Pe.highlightFormatting&&(_e.formatting="image");var It=ft(_e);return _e.imageAltText=!1,_e.image=!1,_e.inline=_e.f=Rt,It}if(an==="["&&!_e.image)return _e.linkText&&Je.match(/^.*?\]/)||(_e.linkText=!0,Pe.highlightFormatting&&(_e.formatting="link")),ft(_e);if(an==="]"&&_e.linkText){Pe.highlightFormatting&&(_e.formatting="link");var It=ft(_e);return _e.linkText=!1,_e.inline=_e.f=Je.match(/\(.*?\)| ?\[.*?\]/,!1)?Rt:Mt,It}if(an==="<"&&Je.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){_e.f=_e.inline=Qe,Pe.highlightFormatting&&(_e.formatting="link");var It=ft(_e);return It?It+=" ":It="",It+ke.linkInline}if(an==="<"&&Je.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){_e.f=_e.inline=Qe,Pe.highlightFormatting&&(_e.formatting="link");var It=ft(_e);return It?It+=" ":It="",It+ke.linkEmail}if(Pe.xml&&an==="<"&&Je.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var tn=Je.string.indexOf(">",Je.pos);if(tn!=-1){var pn=Je.string.substring(Je.start,tn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(pn)&&(_e.md_inside=!0)}return Je.backUp(1),_e.htmlState=ge.startState(et),Ye(Je,_e,Ke)}if(Pe.xml&&an==="<"&&Je.match(/^\/\w*?>/))return _e.md_inside=!1,"tag";if(an==="*"||an==="_"){for(var Ee=1,ce=Je.pos==1?" ":Je.string.charAt(Je.pos-2);Ee<3&&Je.eat(an);)Ee++;var se=Je.peek()||" ",fe=!/\s/.test(se)&&(!Me.test(se)||/\s/.test(ce)||Me.test(ce)),de=!/\s/.test(ce)&&(!Me.test(ce)||/\s/.test(se)||Me.test(se)),oe=null,Te=null;if(Ee%2&&(!_e.em&&fe&&(an==="*"||!de||Me.test(ce))?oe=!0:_e.em==an&&de&&(an==="*"||!fe||Me.test(se))&&(oe=!1)),Ee>1&&(!_e.strong&&fe&&(an==="*"||!de||Me.test(ce))?Te=!0:_e.strong==an&&de&&(an==="*"||!fe||Me.test(se))&&(Te=!1)),Te!=null||oe!=null){Pe.highlightFormatting&&(_e.formatting=oe==null?"strong":Te==null?"em":"strong em"),oe===!0&&(_e.em=an),Te===!0&&(_e.strong=an);var Ht=ft(_e);return oe===!1&&(_e.em=!1),Te===!1&&(_e.strong=!1),Ht}}else if(an===" "&&(Je.eat("*")||Je.eat("_"))){if(Je.peek()===" ")return ft(_e);Je.backUp(1)}if(Pe.strikethrough){if(an==="~"&&Je.eatWhile(an)){if(_e.strikethrough){Pe.highlightFormatting&&(_e.formatting="strikethrough");var Ht=ft(_e);return _e.strikethrough=!1,Ht}else if(Je.match(/^[^\s]/,!1))return _e.strikethrough=!0,Pe.highlightFormatting&&(_e.formatting="strikethrough"),ft(_e)}else if(an===" "&&Je.match(/^~~/,!0)){if(Je.peek()===" ")return ft(_e);Je.backUp(2)}}if(Pe.emoji&&an===":"&&Je.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){_e.emoji=!0,Pe.highlightFormatting&&(_e.formatting="emoji");var je=ft(_e);return _e.emoji=!1,je}return an===" "&&(Je.match(/^ +$/,!1)?_e.trailingSpace++:_e.trailingSpace&&(_e.trailingSpaceNewLine=!0)),ft(_e)}function Qe(Je,_e){var Ft=Je.next();if(Ft===">"){_e.f=_e.inline=Mt,Pe.highlightFormatting&&(_e.formatting="link");var Sn=ft(_e);return Sn?Sn+=" ":Sn="",Sn+ke.linkInline}return Je.match(/^[^>]+/,!0),ke.linkInline}function Rt(Je,_e){if(Je.eatSpace())return null;var Ft=Je.next();return Ft==="("||Ft==="["?(_e.f=_e.inline=on(Ft==="("?")":"]"),Pe.highlightFormatting&&(_e.formatting="link-string"),_e.linkHref=!0,ft(_e)):"error"}var Dt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function on(Je){return function(_e,Ft){var Sn=_e.next();if(Sn===Je){Ft.f=Ft.inline=Mt,Pe.highlightFormatting&&(Ft.formatting="link-string");var an=ft(Ft);return Ft.linkHref=!1,an}return _e.match(Dt[Je]),Ft.linkHref=!0,ft(Ft)}}function Ut(Je,_e){return Je.match(/^([^\]\\]|\\.)*\]:/,!1)?(_e.f=wn,Je.next(),Pe.highlightFormatting&&(_e.formatting="link"),_e.linkText=!0,ft(_e)):zt(Je,_e,Mt)}function wn(Je,_e){if(Je.match(/^\]:/,!0)){_e.f=_e.inline=Xn,Pe.highlightFormatting&&(_e.formatting="link");var Ft=ft(_e);return _e.linkText=!1,Ft}return Je.match(/^([^\]\\]|\\.)+/,!0),ke.linkText}function Xn(Je,_e){return Je.eatSpace()?null:(Je.match(/^[^\s]+/,!0),Je.peek()===void 0?_e.linkTitle=!0:Je.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),_e.f=_e.inline=Mt,ke.linkHref+" url")}var nr={startState:function(){return{f:xe,prevLine:{stream:null},thisLine:{stream:null},block:xe,htmlState:null,indentation:0,inline:Mt,text:pt,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(Je){return{f:Je.f,prevLine:Je.prevLine,thisLine:Je.thisLine,block:Je.block,htmlState:Je.htmlState&&ge.copyState(et,Je.htmlState),indentation:Je.indentation,localMode:Je.localMode,localState:Je.localMode?ge.copyState(Je.localMode,Je.localState):null,inline:Je.inline,text:Je.text,formatting:!1,linkText:Je.linkText,linkTitle:Je.linkTitle,linkHref:Je.linkHref,code:Je.code,em:Je.em,strong:Je.strong,strikethrough:Je.strikethrough,emoji:Je.emoji,header:Je.header,setext:Je.setext,hr:Je.hr,taskList:Je.taskList,list:Je.list,listStack:Je.listStack.slice(0),quote:Je.quote,indentedCode:Je.indentedCode,trailingSpace:Je.trailingSpace,trailingSpaceNewLine:Je.trailingSpaceNewLine,md_inside:Je.md_inside,fencedEndRE:Je.fencedEndRE}},token:function(Je,_e){if(_e.formatting=!1,Je!=_e.thisLine.stream){if(_e.header=0,_e.hr=!1,Je.match(/^\s*$/,!0))return Be(_e),null;if(_e.prevLine=_e.thisLine,_e.thisLine={stream:Je},_e.taskList=!1,_e.trailingSpace=0,_e.trailingSpaceNewLine=!1,!_e.localState&&(_e.f=_e.block,_e.f!=Ke)){var Ft=Je.match(/^\s*/,!0)[0].replace(/\t/g,bt).length;if(_e.indentation=Ft,_e.indentationDiff=null,Ft>0)return null}}return _e.f(Je,_e)},innerMode:function(Je){return Je.block==Ke?{state:Je.htmlState,mode:et}:Je.localState?{state:Je.localState,mode:Je.localMode}:{state:Je,mode:nr}},indent:function(Je,_e,Ft){return Je.block==Ke&&et.indent?et.indent(Je.htmlState,_e,Ft):Je.localState&&Je.localMode.indent?Je.localMode.indent(Je.localState,_e,Ft):ge.Pass},blankLine:Be,getType:ft,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return nr},"xml"),ge.defineMIME("text/markdown","markdown"),ge.defineMIME("text/x-markdown","markdown")})},52539:function(hn,Zt,le){(function(ge){ge(le(4631))})(function(ge){"use strict";ge.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<ge.modeInfo.length;We++){var Pe=ge.modeInfo[We];Pe.mimes&&(Pe.mime=Pe.mimes[0])}ge.findModeByMIME=function(et){et=et.toLowerCase();for(var be=0;be<ge.modeInfo.length;be++){var Ae=ge.modeInfo[be];if(Ae.mime==et)return Ae;if(Ae.mimes){for(var ke=0;ke<Ae.mimes.length;ke++)if(Ae.mimes[ke]==et)return Ae}}if(/\+xml$/.test(et))return ge.findModeByMIME("application/xml");if(/\+json$/.test(et))return ge.findModeByMIME("application/json")},ge.findModeByExtension=function(et){et=et.toLowerCase();for(var be=0;be<ge.modeInfo.length;be++){var Ae=ge.modeInfo[be];if(Ae.ext){for(var ke=0;ke<Ae.ext.length;ke++)if(Ae.ext[ke]==et)return Ae}}},ge.findModeByFileName=function(et){for(var be=0;be<ge.modeInfo.length;be++){var Ae=ge.modeInfo[be];if(Ae.file&&Ae.file.test(et))return Ae}var ke=et.lastIndexOf("."),Se=ke>-1&&et.substring(ke+1,et.length);if(Se)return ge.findModeByExtension(Se)},ge.findModeByName=function(et){et=et.toLowerCase();for(var be=0;be<ge.modeInfo.length;be++){var Ae=ge.modeInfo[be];if(Ae.name.toLowerCase()==et)return Ae;if(Ae.alias){for(var ke=0;ke<Ae.alias.length;ke++)if(Ae.alias[ke].toLowerCase()==et)return Ae}}}})},80785:function(hn,Zt,le){(function(ge){ge(le(4631))})(function(ge){"use strict";ge.defineMode("stex",function(We,Pe){"use strict";function et(lt,tt){lt.cmdState.push(tt)}function be(lt){return lt.cmdState.length>0?lt.cmdState[lt.cmdState.length-1]:null}function Ae(lt){var tt=lt.cmdState.pop();tt&&tt.closeBracket()}function ke(lt){for(var tt=lt.cmdState,Ge=tt.length-1;Ge>=0;Ge--){var Me=tt[Ge];if(Me.name!="DEFAULT")return Me}return{styleIdentifier:function(){return null}}}function Se(lt,tt,Ge){return function(){this.name=lt,this.bracketNo=0,this.style=tt,this.styles=Ge,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var pe={};pe.importmodule=Se("importmodule","tag",["string","builtin"]),pe.documentclass=Se("documentclass","tag",["","atom"]),pe.usepackage=Se("usepackage","tag",["atom"]),pe.begin=Se("begin","tag",["atom"]),pe.end=Se("end","tag",["atom"]),pe.label=Se("label","tag",["atom"]),pe.ref=Se("ref","tag",["atom"]),pe.eqref=Se("eqref","tag",["atom"]),pe.cite=Se("cite","tag",["atom"]),pe.bibitem=Se("bibitem","tag",["atom"]),pe.Bibitem=Se("Bibitem","tag",["atom"]),pe.RBibitem=Se("RBibitem","tag",["atom"]),pe.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Ie(lt,tt){lt.f=tt}function ot(lt,tt){var Ge;if(lt.match(/^\\[a-zA-Z@]+/)){var Me=lt.current().slice(1);return Ge=pe.hasOwnProperty(Me)?pe[Me]:pe.DEFAULT,Ge=new Ge,et(tt,Ge),Ie(tt,wt),Ge.style}if(lt.match(/^\\[$&%#{}_]/)||lt.match(/^\\[,;!\/\\]/))return"tag";if(lt.match("\\["))return Ie(tt,function(zt,Ye){return Oe(zt,Ye,"\\]")}),"keyword";if(lt.match("\\("))return Ie(tt,function(zt,Ye){return Oe(zt,Ye,"\\)")}),"keyword";if(lt.match("$$"))return Ie(tt,function(zt,Ye){return Oe(zt,Ye,"$$")}),"keyword";if(lt.match("$"))return Ie(tt,function(zt,Ye){return Oe(zt,Ye,"$")}),"keyword";var bt=lt.next();if(bt=="%")return lt.skipToEnd(),"comment";if(bt=="}"||bt=="]"){if(Ge=be(tt),Ge)Ge.closeBracket(bt),Ie(tt,wt);else return"error";return"bracket"}else return bt=="{"||bt=="["?(Ge=pe.DEFAULT,Ge=new Ge,et(tt,Ge),"bracket"):/\d/.test(bt)?(lt.eatWhile(/[\w.%]/),"atom"):(lt.eatWhile(/[\w\-_]/),Ge=ke(tt),Ge.name=="begin"&&(Ge.argument=lt.current()),Ge.styleIdentifier())}function Oe(lt,tt,Ge){if(lt.eatSpace())return null;if(Ge&&lt.match(Ge))return Ie(tt,ot),"keyword";if(lt.match(/^\\[a-zA-Z@]+/))return"tag";if(lt.match(/^[a-zA-Z]+/))return"variable-2";if(lt.match(/^\\[$&%#{}_]/)||lt.match(/^\\[,;!\/]/)||lt.match(/^[\^_&]/))return"tag";if(lt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(lt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Me=lt.next();return Me=="{"||Me=="}"||Me=="["||Me=="]"||Me=="("||Me==")"?"bracket":Me=="%"?(lt.skipToEnd(),"comment"):"error"}function wt(lt,tt){var Ge=lt.peek(),Me;return Ge=="{"||Ge=="["?(Me=be(tt),Me.openBracket(Ge),lt.eat(Ge),Ie(tt,ot),"bracket"):/[ \t\r]/.test(Ge)?(lt.eat(Ge),null):(Ie(tt,ot),Ae(tt),ot(lt,tt))}return{startState:function(){var lt=Pe.inMathMode?function(tt,Ge){return Oe(tt,Ge)}:ot;return{cmdState:[],f:lt}},copyState:function(lt){return{cmdState:lt.cmdState.slice(),f:lt.f}},token:function(lt,tt){return tt.f(lt,tt)},blankLine:function(lt){lt.f=ot,lt.cmdState.length=0},lineComment:"%"}}),ge.defineMIME("text/x-stex","stex"),ge.defineMIME("text/x-latex","stex")})},29589:function(hn,Zt,le){(function(ge){ge(le(4631))})(function(ge){"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},Pe={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ge.defineMode("xml",function(et,be){var Ae=et.indentUnit,ke={},Se=be.htmlMode?We:Pe;for(var pe in Se)ke[pe]=Se[pe];for(var pe in be)ke[pe]=be[pe];var Ie,ot;function Oe(Qe,Rt){function Dt(wn){return Rt.tokenize=wn,wn(Qe,Rt)}var on=Qe.next();if(on=="<")return Qe.eat("!")?Qe.eat("[")?Qe.match("CDATA[")?Dt(tt("atom","]]>")):null:Qe.match("--")?Dt(tt("comment","-->")):Qe.match("DOCTYPE",!0,!0)?(Qe.eatWhile(/[\w\._\-]/),Dt(Ge(1))):null:Qe.eat("?")?(Qe.eatWhile(/[\w\._\-]/),Rt.tokenize=tt("meta","?>"),"meta"):(Ie=Qe.eat("/")?"closeTag":"openTag",Rt.tokenize=wt,"tag bracket");if(on=="&"){var Ut;return Qe.eat("#")?Qe.eat("x")?Ut=Qe.eatWhile(/[a-fA-F\d]/)&&Qe.eat(";"):Ut=Qe.eatWhile(/[\d]/)&&Qe.eat(";"):Ut=Qe.eatWhile(/[\w\.\-:]/)&&Qe.eat(";"),Ut?"atom":"error"}else return Qe.eatWhile(/[^&<]/),null}Oe.isInText=!0;function wt(Qe,Rt){var Dt=Qe.next();if(Dt==">"||Dt=="/"&&Qe.eat(">"))return Rt.tokenize=Oe,Ie=Dt==">"?"endTag":"selfcloseTag","tag bracket";if(Dt=="=")return Ie="equals",null;if(Dt=="<"){Rt.tokenize=Oe,Rt.state=Ye,Rt.tagName=Rt.tagStart=null;var on=Rt.tokenize(Qe,Rt);return on?on+" tag error":"tag error"}else return/[\'\"]/.test(Dt)?(Rt.tokenize=lt(Dt),Rt.stringStartCol=Qe.column(),Rt.tokenize(Qe,Rt)):(Qe.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function lt(Qe){var Rt=function(Dt,on){for(;!Dt.eol();)if(Dt.next()==Qe){on.tokenize=wt;break}return"string"};return Rt.isInAttribute=!0,Rt}function tt(Qe,Rt){return function(Dt,on){for(;!Dt.eol();){if(Dt.match(Rt)){on.tokenize=Oe;break}Dt.next()}return Qe}}function Ge(Qe){return function(Rt,Dt){for(var on;(on=Rt.next())!=null;){if(on=="<")return Dt.tokenize=Ge(Qe+1),Dt.tokenize(Rt,Dt);if(on==">")if(Qe==1){Dt.tokenize=Oe;break}else return Dt.tokenize=Ge(Qe-1),Dt.tokenize(Rt,Dt)}return"meta"}}function Me(Qe,Rt,Dt){this.prev=Qe.context,this.tagName=Rt,this.indent=Qe.indented,this.startOfLine=Dt,(ke.doNotIndent.hasOwnProperty(Rt)||Qe.context&&Qe.context.noIndent)&&(this.noIndent=!0)}function bt(Qe){Qe.context&&(Qe.context=Qe.context.prev)}function zt(Qe,Rt){for(var Dt;;){if(!Qe.context||(Dt=Qe.context.tagName,!ke.contextGrabbers.hasOwnProperty(Dt)||!ke.contextGrabbers[Dt].hasOwnProperty(Rt)))return;bt(Qe)}}function Ye(Qe,Rt,Dt){return Qe=="openTag"?(Dt.tagStart=Rt.column(),it):Qe=="closeTag"?Be:Ye}function it(Qe,Rt,Dt){return Qe=="word"?(Dt.tagName=Rt.current(),ot="tag",Ue):ke.allowMissingTagName&&Qe=="endTag"?(ot="tag bracket",Ue(Qe,Rt,Dt)):(ot="error",it)}function Be(Qe,Rt,Dt){if(Qe=="word"){var on=Rt.current();return Dt.context&&Dt.context.tagName!=on&&ke.implicitlyClosed.hasOwnProperty(Dt.context.tagName)&&bt(Dt),Dt.context&&Dt.context.tagName==on||ke.matchClosing===!1?(ot="tag",xe):(ot="tag error",Ke)}else return ke.allowMissingTagName&&Qe=="endTag"?(ot="tag bracket",xe(Qe,Rt,Dt)):(ot="error",Ke)}function xe(Qe,Rt,Dt){return Qe!="endTag"?(ot="error",xe):(bt(Dt),Ye)}function Ke(Qe,Rt,Dt){return ot="error",xe(Qe,Rt,Dt)}function Ue(Qe,Rt,Dt){if(Qe=="word")return ot="attribute",ft;if(Qe=="endTag"||Qe=="selfcloseTag"){var on=Dt.tagName,Ut=Dt.tagStart;return Dt.tagName=Dt.tagStart=null,Qe=="selfcloseTag"||ke.autoSelfClosers.hasOwnProperty(on)?zt(Dt,on):(zt(Dt,on),Dt.context=new Me(Dt,on,Ut==Dt.indented)),Ye}return ot="error",Ue}function ft(Qe,Rt,Dt){return Qe=="equals"?pt:(ke.allowMissing||(ot="error"),Ue(Qe,Rt,Dt))}function pt(Qe,Rt,Dt){return Qe=="string"?Mt:Qe=="word"&&ke.allowUnquoted?(ot="string",Ue):(ot="error",Ue(Qe,Rt,Dt))}function Mt(Qe,Rt,Dt){return Qe=="string"?Mt:Ue(Qe,Rt,Dt)}return{startState:function(Qe){var Rt={tokenize:Oe,state:Ye,indented:Qe||0,tagName:null,tagStart:null,context:null};return Qe!=null&&(Rt.baseIndent=Qe),Rt},token:function(Qe,Rt){if(!Rt.tagName&&Qe.sol()&&(Rt.indented=Qe.indentation()),Qe.eatSpace())return null;Ie=null;var Dt=Rt.tokenize(Qe,Rt);return(Dt||Ie)&&Dt!="comment"&&(ot=null,Rt.state=Rt.state(Ie||Dt,Qe,Rt),ot&&(Dt=ot=="error"?Dt+" error":ot)),Dt},indent:function(Qe,Rt,Dt){var on=Qe.context;if(Qe.tokenize.isInAttribute)return Qe.tagStart==Qe.indented?Qe.stringStartCol+1:Qe.indented+Ae;if(on&&on.noIndent)return ge.Pass;if(Qe.tokenize!=wt&&Qe.tokenize!=Oe)return Dt?Dt.match(/^(\s*)/)[0].length:0;if(Qe.tagName)return ke.multilineTagIndentPastTag!==!1?Qe.tagStart+Qe.tagName.length+2:Qe.tagStart+Ae*(ke.multilineTagIndentFactor||1);if(ke.alignCDATA&&/<!\[CDATA\[/.test(Rt))return 0;var Ut=Rt&&/^<(\/)?([\w_:\.-]*)/.exec(Rt);if(Ut&&Ut[1])for(;on;)if(on.tagName==Ut[2]){on=on.prev;break}else if(ke.implicitlyClosed.hasOwnProperty(on.tagName))on=on.prev;else break;else if(Ut)for(;on;){var wn=ke.contextGrabbers[on.tagName];if(wn&&wn.hasOwnProperty(Ut[2]))on=on.prev;else break}for(;on&&on.prev&&!on.startOfLine;)on=on.prev;return on?on.indent+Ae:Qe.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:ke.htmlMode?"html":"xml",helperType:ke.htmlMode?"html":"xml",skipAttribute:function(Qe){Qe.state==pt&&(Qe.state=Ue)},xmlCurrentTag:function(Qe){return Qe.tagName?{name:Qe.tagName,close:Qe.type=="closeTag"}:null},xmlCurrentContext:function(Qe){for(var Rt=[],Dt=Qe.context;Dt;Dt=Dt.prev)Dt.tagName&&Rt.push(Dt.tagName);return Rt.reverse()}}}),ge.defineMIME("text/xml","xml"),ge.defineMIME("application/xml","xml"),ge.mimeModes.hasOwnProperty("text/html")||ge.defineMIME("text/html",{name:"xml",htmlMode:!0})})},15979:function(hn,Zt,le){"use strict";le.d(Zt,{hP:function(){return pn}});var ge=function(Ee,ce){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,fe){se.__proto__=fe}||function(se,fe){for(var de in fe)Object.prototype.hasOwnProperty.call(fe,de)&&(se[de]=fe[de])})(Ee,ce)};function We(Ee,ce){function se(){this.constructor=Ee}ge(Ee,ce),Ee.prototype=ce===null?Object.create(ce):(se.prototype=ce.prototype,new se)}function Pe(Ee,ce,se,fe){return new(se||(se=Promise))(function(de,oe){function Te(At){try{Et(fe.next(At))}catch(Ot){oe(Ot)}}function je(At){try{Et(fe.throw(At))}catch(Ot){oe(Ot)}}function Et(At){var Ot;At.done?de(At.value):(Ot=At.value,Ot instanceof se?Ot:new se(function(Bt){Bt(Ot)})).then(Te,je)}Et((fe=fe.apply(Ee,ce||[])).next())})}function et(Ee,ce){var se,fe,de,oe,Te={label:0,sent:function(){if(1&de[0])throw de[1];return de[1]},trys:[],ops:[]};return oe={next:je(0),throw:je(1),return:je(2)},typeof Symbol=="function"&&(oe[Symbol.iterator]=function(){return this}),oe;function je(Et){return function(At){return function(Ot){if(se)throw new TypeError("Generator is already executing.");for(;Te;)try{if(se=1,fe&&(de=2&Ot[0]?fe.return:Ot[0]?fe.throw||((de=fe.return)&&de.call(fe),0):fe.next)&&!(de=de.call(fe,Ot[1])).done)return de;switch(fe=0,de&&(Ot=[2&Ot[0],de.value]),Ot[0]){case 0:case 1:de=Ot;break;case 4:return Te.label++,{value:Ot[1],done:!1};case 5:Te.label++,fe=Ot[1],Ot=[0];continue;case 7:Ot=Te.ops.pop(),Te.trys.pop();continue;default:if(de=Te.trys,!((de=de.length>0&&de[de.length-1])||Ot[0]!==6&&Ot[0]!==2)){Te=0;continue}if(Ot[0]===3&&(!de||Ot[1]>de[0]&&Ot[1]<de[3])){Te.label=Ot[1];break}if(Ot[0]===6&&Te.label<de[1]){Te.label=de[1],de=Ot;break}if(de&&Te.label<de[2]){Te.label=de[2],Te.ops.push(Ot);break}de[2]&&Te.ops.pop(),Te.trys.pop();continue}Ot=ce.call(Ee,Te)}catch(Bt){Ot=[6,Bt],fe=0}finally{se=de=0}if(5&Ot[0])throw Ot[1];return{value:Ot[0]?Ot[1]:void 0,done:!0}}([Et,At])}}}function be(){for(var Ee=0,ce=0,se=arguments.length;ce<se;ce++)Ee+=arguments[ce].length;var fe=Array(Ee),de=0;for(ce=0;ce<se;ce++)for(var oe=arguments[ce],Te=0,je=oe.length;Te<je;Te++,de++)fe[de]=oe[Te];return fe}var Ae=function(){function Ee(){}return Ee.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Ee.setAttributes=function(ce,se){for(var fe=0,de=se;fe<de.length;fe++){var oe=de[fe],Te=oe[0],je=oe[1];ce.setAttribute(Te,je)}},Ee.createRect=function(ce,se,fe){var de=document.createElementNS("http://www.w3.org/2000/svg","rect");return de.setAttribute("width",ce.toString()),de.setAttribute("height",se.toString()),fe&&Ee.setAttributes(de,fe),de},Ee.createLine=function(ce,se,fe,de,oe){var Te=document.createElementNS("http://www.w3.org/2000/svg","line");return Te.setAttribute("x1",ce.toString()),Te.setAttribute("y1",se.toString()),Te.setAttribute("x2",fe.toString()),Te.setAttribute("y2",de.toString()),oe&&Ee.setAttributes(Te,oe),Te},Ee.createPolygon=function(ce,se){var fe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return fe.setAttribute("points",ce),se&&Ee.setAttributes(fe,se),fe},Ee.createCircle=function(ce,se){var fe=document.createElementNS("http://www.w3.org/2000/svg","circle");return fe.setAttribute("cx",(ce/2).toString()),fe.setAttribute("cy",(ce/2).toString()),fe.setAttribute("r",ce.toString()),se&&Ee.setAttributes(fe,se),fe},Ee.createEllipse=function(ce,se,fe){var de=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return de.setAttribute("cx",(ce/2).toString()),de.setAttribute("cy",(se/2).toString()),de.setAttribute("rx",(ce/2).toString()),de.setAttribute("ry",(se/2).toString()),fe&&Ee.setAttributes(de,fe),de},Ee.createGroup=function(ce){var se=document.createElementNS("http://www.w3.org/2000/svg","g");return ce&&Ee.setAttributes(se,ce),se},Ee.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Ee.createMarker=function(ce,se,fe,de,oe,Te,je){var Et=document.createElementNS("http://www.w3.org/2000/svg","marker");return Ee.setAttributes(Et,[["id",ce],["orient",se],["markerWidth",fe.toString()],["markerHeight",de.toString()],["refX",oe.toString()],["refY",Te.toString()]]),Et.appendChild(je),Et},Ee.createText=function(ce){var se=document.createElementNS("http://www.w3.org/2000/svg","text");return se.setAttribute("x","0"),se.setAttribute("y","0"),ce&&Ee.setAttributes(se,ce),se},Ee.createTSpan=function(ce,se){var fe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return fe.textContent=ce,se&&Ee.setAttributes(fe,se),fe},Ee.createImage=function(ce){var se=document.createElementNS("http://www.w3.org/2000/svg","image");return ce&&Ee.setAttributes(se,ce),se},Ee.createPoint=function(ce,se){var fe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return fe.x=ce,fe.y=se,fe},Ee.createPath=function(ce,se){var fe=document.createElementNS("http://www.w3.org/2000/svg","path");return fe.setAttribute("d",ce),se&&Ee.setAttributes(fe,se),fe},Ee}(),ke=function(){function Ee(){}return Ee.addKey=function(ce){Ee.key=ce},Object.defineProperty(Ee,"isLicensed",{get:function(){return!!Ee.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Ee.key)},enumerable:!1,configurable:!0}),Ee}(),Se=function(){function Ee(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Ee.prototype.rasterize=function(ce,se,fe){var de=this;return new Promise(function(oe){var Te=fe!==void 0?fe:document.createElement("canvas");ce===null&&(de.markersOnly=!0,de.naturalSize=!1);var je=document.createElementNS("http://www.w3.org/2000/svg","svg");je.setAttribute("xmlns","http://www.w3.org/2000/svg"),je.setAttribute("width",se.width.baseVal.valueAsString),je.setAttribute("height",se.height.baseVal.valueAsString),je.setAttribute("viewBox","0 0 "+se.viewBox.baseVal.width.toString()+" "+se.viewBox.baseVal.height.toString()),je.innerHTML=se.innerHTML,de.naturalSize===!0?(je.width.baseVal.value=ce.naturalWidth,je.height.baseVal.value=ce.naturalHeight):de.width!==void 0&&de.height!==void 0&&(je.width.baseVal.value=de.width,je.height.baseVal.value=de.height),Te.width=je.width.baseVal.value,Te.height=je.height.baseVal.value;var Et=je.outerHTML,At=Te.getContext("2d");de.markersOnly!==!0&&At.drawImage(ce,0,0,Te.width,Te.height);var Ot=window.URL,Bt=new Image(Te.width,Te.height);Bt.setAttribute("crossOrigin","anonymous");var Nt=new Blob([Et],{type:"image/svg+xml"}),zn=Ot.createObjectURL(Nt);Bt.onload=function(){At.drawImage(Bt,0,0),Ot.revokeObjectURL(zn);var Gn=Te.toDataURL(de.imageType,de.imageQuality);oe(Gn)},Bt.src=zn})},Ee}(),pe=function(){},Ie=function(){function Ee(ce){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+ce+"_"}return Object.defineProperty(Ee.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Ee.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Ee.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(Ee.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Ee.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Ee.prototype.addClass=function(ce){return this.styleSheet===void 0&&this.addStyleSheet(),ce.name=""+this.classNamePrefix+ce.localName,this.classes.push(ce),this.styleSheet.sheet.insertRule("."+ce.name+" {"+ce.style+"}",this.styleSheet.sheet.cssRules.length),ce},Ee.prototype.addRule=function(ce){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(ce),this.styleSheet.sheet.insertRule(ce.selector+" {"+ce.style+"}",this.styleSheet.sheet.cssRules.length)},Ee.prototype.addStyleSheet=function(){var ce;this.styleSheet=document.createElement("style"),((ce=this.styleSheetRoot)!==null&&ce!==void 0?ce:document.head).appendChild(this.styleSheet),this.addRule(new ot("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new ot("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new ot("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new Oe("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new Oe("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},Ee.prototype.removeStyleSheet=function(){var ce;this.styleSheet&&(((ce=this.styleSheetRoot)!==null&&ce!==void 0?ce:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Ee}(),ot=function(Ee,ce){this.selector=Ee,this.style=ce},Oe=function(Ee,ce){this.localName=Ee,this.style=ce},wt=function(){function Ee(ce,se,fe,de,oe){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=ce,this.displayMode=se,this.markerItems=fe,this.uiStyleSettings=de,this.styles=oe,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Ee.prototype.show=function(ce){var se=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ce,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var fe=document.createElement("div");fe.className=this.toolbarBlockStyleClass.name,fe.style.whiteSpace="nowrap",this.uiContainer.appendChild(fe),this.addActionButton(fe,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(fe,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(fe,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(fe,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(fe,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(fe,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(fe,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(fe,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(oe){var Te=document.createElement("div");Te.className=""+se.toolbarButtonStyleClass.name,Te.setAttribute("data-type-name",oe.typeName),Te.innerHTML=oe.icon,Te.addEventListener("click",function(){se.markerToolbarButtonClicked(Te,oe)}),se.buttons.push(Te),se.markerButtons.push(Te)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var 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,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(de,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},Ee.prototype.addButtonClickListener=function(ce){this.buttonClickListeners.push(ce)},Ee.prototype.removeButtonClickListener=function(ce){this.buttonClickListeners.indexOf(ce)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(ce),1)},Ee.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Ee.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var ce=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var se=0;se<this.markerButtons.length;se++)se<ce||se===ce&&this.markerButtons.length-1===ce?this.markerButtonBlock.appendChild(this.markerButtons[se]):(se===ce&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[se]))}},Ee.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},Ee.prototype.resetButtonStyles=function(){var ce=this;this.buttons.forEach(function(se){se.className=se.className.replace(ce.uiStyleSettings.toolbarButtonStyleColorsClassName?ce.uiStyleSettings.toolbarButtonStyleColorsClassName:ce.toolbarButtonStyleColorsClass.name,"").trim(),se.className=se.className.replace(ce.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?ce.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:ce.toolbarActiveButtonStyleColorsClass.name,"").trim(),se.className+=" "+(ce.uiStyleSettings.toolbarButtonStyleColorsClassName?ce.uiStyleSettings.toolbarButtonStyleColorsClassName:ce.toolbarButtonStyleColorsClass.name)})},Ee.prototype.addActionButton=function(ce,se,fe){var de=this,oe=document.createElement("div");switch(oe.className=""+this.toolbarButtonStyleClass.name,oe.innerHTML=se,oe.setAttribute("data-action",fe),oe.addEventListener("click",function(){de.actionToolbarButtonClicked(oe,fe)}),fe){case"select":oe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":oe.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":oe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":oe.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":oe.style.fill=this.uiStyleSettings.closeButtonColor}ce.appendChild(oe),this.buttons.push(oe)},Ee.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Oe("toolbar",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.uiStyleSettings.toolbarHeight+`px;
box-sizing: content-box;
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new Oe("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Oe("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Oe("toolbar-overflow-block",`
position: absolute;
top: `+this.uiStyleSettings.toolbarHeight+`px;
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
z-index: 10;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new Oe("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var ce=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Oe("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*ce)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*ce)+`px;
padding: `+ce+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Oe("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Oe("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new ot("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new ot("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},Ee.prototype.markerToolbarButtonClicked=function(ce,se){this.setActiveButton(ce),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(fe){return fe("marker",se)}),this.markerButtonOverflowBlock.style.display="none"},Ee.prototype.actionToolbarButtonClicked=function(ce,se){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(fe){return fe("action",se)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Ee.prototype.setActiveButton=function(ce){this.resetButtonStyles(),ce.className=ce.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),ce.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Ee.prototype.setActiveMarkerButton=function(ce){var se=this.markerButtons.find(function(fe){return fe.getAttribute("data-type-name")===ce});se&&this.setActiveButton(se)},Ee.prototype.setCurrentMarker=function(ce){var se=this;this.currentMarker=ce,this.buttons.filter(function(fe){return/delete|notes/.test(fe.getAttribute("data-action"))}).forEach(function(fe){se.currentMarker===void 0?(fe.style.fillOpacity="0.4",fe.style.pointerEvents="none"):(fe.style.fillOpacity="1",fe.style.pointerEvents="all")})},Ee}(),lt=function(){function Ee(ce,se,fe,de){this.panels=[],this.panelButtons=[],this.markerjsContainer=ce,this.displayMode=se,this.uiStyleSettings=fe,this.styles=de,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Ee.prototype.addStyles=function(){var ce;this.toolboxStyleClass=this.styles.addClass(new Oe("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 Oe("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var se=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Oe("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Oe("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Oe("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 Oe("toolbox-panel-row_colors",`
background-color: `+((ce=this.uiStyleSettings.toolboxBackgroundColor)!==null&&ce!==void 0?ce:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Oe("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*se)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*se)+`px;
padding: `+se+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Oe("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Oe("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new ot("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new ot("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},Ee.prototype.show=function(ce){var se;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ce,this.uiContainer.className=this.toolboxStyleClass.name+" "+((se=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&se!==void 0?se:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Ee.prototype.setPanelButtons=function(ce){var se,fe,de=this;this.panels=ce,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((se=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&se!==void 0?se:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((fe=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&fe!==void 0?fe:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(oe){var Te;oe.uiStyleSettings=de.uiStyleSettings;var je=document.createElement("div");je.className=de.toolboxButtonStyleClass.name+" "+((Te=de.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Te!==void 0?Te:de.toolboxButtonStyleColorsClass.name),je.innerHTML=oe.icon,je.title=oe.title,je.addEventListener("click",function(){de.panelButtonClick(oe)}),de.panelButtons.push(je),de.buttonRow.appendChild(je)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Ee.prototype.panelButtonClick=function(ce){var se=this,fe=-1;if(ce!==this.activePanel){fe=this.panels.indexOf(ce),this.panelRow.innerHTML="";var de=ce.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=ce}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){se.displayMode==="inline"?se.panelRow.style.display="none":se.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(oe,Te){var je,Et;oe.className=se.toolboxButtonStyleClass.name+" "+(Te===fe?""+((je=se.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&je!==void 0?je:se.toolboxActiveButtonStyleColorsClass.name):""+((Et=se.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Et!==void 0?Et:se.toolboxButtonStyleColorsClass.name))})},Ee}(),tt=function(Ee,ce){this.title=Ee,this.icon=ce},Ge=function(Ee){function ce(se,fe,de,oe){var Te=Ee.call(this,se,oe||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return Te.colors=[],Te.addTransparent=!1,Te.colorBoxes=[],Te.colors=fe,Te.currentColor=de,Te.setCurrentColor=Te.setCurrentColor.bind(Te),Te.getColorBox=Te.getColorBox.bind(Te),Te}return We(ce,Ee),ce.prototype.getUi=function(){var se=this,fe=document.createElement("div");return fe.style.overflow="hidden",fe.style.whiteSpace="nowrap",this.colors.forEach(function(de){var oe=se.getColorBox(de);fe.appendChild(oe),se.colorBoxes.push(oe)}),fe},ce.prototype.getColorBox=function(se){var fe=this,de=this.uiStyleSettings.toolbarHeight/4,oe=this.uiStyleSettings.toolbarHeight-de,Te=document.createElement("div");Te.style.display="inline-block",Te.style.boxSizing="content-box",Te.style.width=oe-2+"px",Te.style.height=oe-2+"px",Te.style.padding="1px",Te.style.marginRight="2px",Te.style.marginBottom="2px",Te.style.borderWidth="2px",Te.style.borderStyle="solid",Te.style.borderRadius=(oe+2)/2+"px",Te.style.borderColor=se===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Te.addEventListener("click",function(){fe.setCurrentColor(se,Te)});var je=document.createElement("div");return je.style.display="inline-block",je.style.width=oe-2+"px",je.style.height=oe-2+"px",je.style.backgroundColor=se,je.style.borderRadius=oe/2+"px",se==="transparent"&&(je.style.fill=this.uiStyleSettings.toolboxAccentColor,je.innerHTML=`<svg viewBox="0 0 24 24">
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
</svg>`),Te.appendChild(je),Te},ce.prototype.setCurrentColor=function(se,fe){var de=this;this.currentColor=se,this.colorBoxes.forEach(function(oe){oe.style.borderColor=oe===fe?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(se)},ce}(tt),Me=function(){function Ee(ce,se,fe){this._state="new",this._isSelected=!1,this._container=ce,this._overlayContainer=se,this.globalSettings=fe,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Ee.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Ee.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Ee.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Ee.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Ee.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Ee.prototype.ownsTarget=function(ce){return!1},Object.defineProperty(Ee.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Ee.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Ee.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Ee.prototype.pointerDown=function(ce,se){},Ee.prototype.dblClick=function(ce,se){},Ee.prototype.manipulate=function(ce){},Ee.prototype.pointerUp=function(ce){this.stateChanged()},Ee.prototype.dispose=function(){},Ee.prototype.addMarkerVisualToContainer=function(ce){this.container.childNodes.length>0?this.container.insertBefore(ce,this.container.childNodes[0]):this.container.appendChild(ce)},Ee.prototype.getState=function(){return{typeName:Ee.typeName,state:this.state,notes:this.notes}},Ee.prototype.restoreState=function(ce){this._state=ce.state,this.notes=ce.notes},Ee.prototype.scale=function(ce,se){},Ee.prototype.colorChanged=function(ce){this.onColorChanged&&this.onColorChanged(ce),this.stateChanged()},Ee.prototype.fillColorChanged=function(ce){this.onFillColorChanged&&this.onFillColorChanged(ce),this.stateChanged()},Ee.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var ce=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),ce.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(ce)&&this.onStateChanged(this)}},Ee.typeName="MarkerBase",Ee}(),bt=function(){function Ee(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Ee.prototype.findGripByVisual=function(ce){return this.topLeft.ownsTarget(ce)?this.topLeft:this.topCenter.ownsTarget(ce)?this.topCenter:this.topRight.ownsTarget(ce)?this.topRight:this.centerLeft.ownsTarget(ce)?this.centerLeft:this.centerRight.ownsTarget(ce)?this.centerRight:this.bottomLeft.ownsTarget(ce)?this.bottomLeft:this.bottomCenter.ownsTarget(ce)?this.bottomCenter:this.bottomRight.ownsTarget(ce)?this.bottomRight:void 0},Ee}(),zt=function(){function Ee(){this.GRIP_SIZE=10,this.visual=Ae.createGroup(),this.visual.appendChild(Ae.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Ae.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Ee.prototype.ownsTarget=function(ce){return ce===this.visual||ce===this.visual.childNodes[0]||ce===this.visual.childNodes[1]},Ee}(),Ye=function(){function Ee(){}return Ee.toITransformMatrix=function(ce){return{a:ce.a,b:ce.b,c:ce.c,d:ce.d,e:ce.e,f:ce.f}},Ee.toSVGMatrix=function(ce,se){return ce.a=se.a,ce.b=se.b,ce.c=se.c,ce.d=se.d,ce.e=se.e,ce.f=se.f,ce},Ee}(),it=function(Ee){function ce(se,fe,de){var oe=Ee.call(this,se,fe,de)||this;return oe.left=0,oe.top=0,oe.width=0,oe.height=0,oe.defaultSize={x:50,y:20},oe.offsetX=0,oe.offsetY=0,oe.rotationAngle=0,oe.CB_DISTANCE=10,oe._suppressMarkerCreateEvent=!1,oe.container.transform.baseVal.appendItem(Ae.createTransform()),oe.setupControlBox(),oe}return We(ce,Ee),Object.defineProperty(ce.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"visual",{get:function(){return this._visual},set:function(se){this._visual=se;var fe=Ae.createTransform();this._visual.transform.baseVal.appendItem(fe)},enumerable:!1,configurable:!0}),ce.prototype.ownsTarget=function(se){return!!Ee.prototype.ownsTarget.call(this,se)||!!(this.controlGrips.findGripByVisual(se)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(se))},ce.prototype.pointerDown=function(se,fe){Ee.prototype.pointerDown.call(this,se,fe),this.state==="new"&&(this.left=se.x,this.top=se.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var de=this.unrotatePoint(se);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(fe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(fe)){this.activeGrip=this.rotatorGrip;var oe=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=oe.x-this.width/2,this.top=oe.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Te=this.container.transform.baseVal.getItem(0);Te.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Te,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},ce.prototype.pointerUp=function(se){var fe=this.state;Ee.prototype.pointerUp.call(this,se),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(se),this._state="select",fe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},ce.prototype.moveVisual=function(se){this.visual.style.transform="translate("+se.x+"px, "+se.y+"px)"},ce.prototype.manipulate=function(se){var fe=this.unrotatePoint(se);this.state==="creating"?this.resize(se):this.state==="move"?(this.left=this.manipulationStartLeft+(fe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(fe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(fe):this.state==="rotate"&&this.rotate(se)},ce.prototype.resize=function(se){var fe=this.manipulationStartLeft,de=this.manipulationStartWidth,oe=this.manipulationStartTop,Te=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:fe=this.manipulationStartLeft+se.x-this.manipulationStartX,de=this.manipulationStartWidth+this.manipulationStartLeft-fe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:de=this.manipulationStartWidth+se.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:oe=this.manipulationStartTop+se.y-this.manipulationStartY,Te=this.manipulationStartHeight+this.manipulationStartTop-oe;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Te=this.manipulationStartHeight+se.y-this.manipulationStartY}de>=0?(this.left=fe,this.width=de):(this.left=fe+de,this.width=-de),Te>=0?(this.top=oe,this.height=Te):(this.top=oe+Te,this.height=-Te),this.setSize()},ce.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},ce.prototype.rotate=function(se){if(Math.abs(se.x-this.centerX)>.1){var fe=Math.sign(se.x-this.centerX);this.rotationAngle=180*Math.atan((se.y-this.centerY)/(se.x-this.centerX))/Math.PI+90*fe,this.applyRotation()}},ce.prototype.applyRotation=function(){var se=this.container.transform.baseVal.getItem(0);se.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(se,0)},ce.prototype.rotatePoint=function(se){if(this.rotationAngle===0)return se;var fe=this.container.getCTM(),de=Ae.createPoint(se.x,se.y);return{x:(de=de.matrixTransform(fe)).x,y:de.y}},ce.prototype.unrotatePoint=function(se){if(this.rotationAngle===0)return se;var fe=this.container.getCTM();fe=fe.inverse();var de=Ae.createPoint(se.x,se.y);return{x:(de=de.matrixTransform(fe)).x,y:de.y}},ce.prototype.select=function(){Ee.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ce.prototype.deselect=function(){Ee.prototype.deselect.call(this),this.controlBox.style.display="none"},ce.prototype.setupControlBox=function(){this.controlBox=Ae.createGroup();var se=Ae.createTransform();se.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(se),this.container.appendChild(this.controlBox),this.controlRect=Ae.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=Ae.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 bt,this.addControlGrips(),this.controlBox.style.display="none"},ce.prototype.adjustControlBox=function(){var se=this.controlBox.transform.baseVal.getItem(0);se.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(se,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},ce.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},ce.prototype.createGrip=function(){var se=new zt;return se.visual.transform.baseVal.appendItem(Ae.createTransform()),this.controlBox.appendChild(se.visual),se},ce.prototype.positionGrips=function(){var se=this.controlGrips.topLeft.GRIP_SIZE,fe=-se/2,de=fe,oe=(this.width+this.CB_DISTANCE)/2-se/2,Te=(this.height+this.CB_DISTANCE)/2-se/2,je=this.height+this.CB_DISTANCE-se/2,Et=this.width+this.CB_DISTANCE-se/2;this.positionGrip(this.controlGrips.topLeft.visual,fe,de),this.positionGrip(this.controlGrips.topCenter.visual,oe,de),this.positionGrip(this.controlGrips.topRight.visual,Et,de),this.positionGrip(this.controlGrips.centerLeft.visual,fe,Te),this.positionGrip(this.controlGrips.centerRight.visual,Et,Te),this.positionGrip(this.controlGrips.bottomLeft.visual,fe,je),this.positionGrip(this.controlGrips.bottomCenter.visual,oe,je),this.positionGrip(this.controlGrips.bottomRight.visual,Et,je),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,oe,de-3*this.CB_DISTANCE)},ce.prototype.positionGrip=function(se,fe,de){var oe=se.transform.baseVal.getItem(0);oe.setTranslate(fe,de),se.transform.baseVal.replaceItem(oe,0)},ce.prototype.hideControlBox=function(){this.controlBox.style.display="none"},ce.prototype.showControlBox=function(){this.controlBox.style.display=""},ce.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Ye.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Ye.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Ee.prototype.getState.call(this))},ce.prototype.restoreState=function(se){Ee.prototype.restoreState.call(this,se);var fe=se;this.left=fe.left,this.top=fe.top,this.width=fe.width,this.height=fe.height,this.rotationAngle=fe.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Ye.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,fe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Ye.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,fe.containerTransformMatrix))},ce.prototype.scale=function(se,fe){Ee.prototype.scale.call(this,se,fe);var de=this.rotatePoint({x:this.left,y:this.top}),oe=this.unrotatePoint({x:de.x*se,y:de.y*fe});this.left=oe.x,this.top=oe.y,this.width=this.width*se,this.height=this.height*fe,this.adjustControlBox()},ce}(Me),Be=function(Ee){function ce(se,fe,de){var oe=Ee.call(this,se,fe,de)||this;return oe.fillColor="transparent",oe.strokeColor="transparent",oe.strokeWidth=0,oe.strokeDasharray="",oe.opacity=1,oe.setStrokeColor=oe.setStrokeColor.bind(oe),oe.setFillColor=oe.setFillColor.bind(oe),oe.setStrokeWidth=oe.setStrokeWidth.bind(oe),oe.setStrokeDasharray=oe.setStrokeDasharray.bind(oe),oe.createVisual=oe.createVisual.bind(oe),oe}return We(ce,Ee),ce.prototype.ownsTarget=function(se){return!(!Ee.prototype.ownsTarget.call(this,se)&&se!==this.visual)},ce.prototype.createVisual=function(){this.visual=Ae.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},ce.prototype.pointerDown=function(se,fe){Ee.prototype.pointerDown.call(this,se,fe),this.state==="new"&&(this.createVisual(),this.moveVisual(se),this._state="creating")},ce.prototype.manipulate=function(se){Ee.prototype.manipulate.call(this,se)},ce.prototype.resize=function(se){Ee.prototype.resize.call(this,se),this.setSize()},ce.prototype.setSize=function(){Ee.prototype.setSize.call(this),Ae.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},ce.prototype.pointerUp=function(se){Ee.prototype.pointerUp.call(this,se),this.setSize()},ce.prototype.setStrokeColor=function(se){this.strokeColor=se,this.visual&&Ae.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(se),this.stateChanged()},ce.prototype.setFillColor=function(se){this.fillColor=se,this.visual&&Ae.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},ce.prototype.setStrokeWidth=function(se){this.strokeWidth=se,this.visual&&Ae.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ce.prototype.setStrokeDasharray=function(se){this.strokeDasharray=se,this.visual&&Ae.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ce.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Ee.prototype.getState.call(this))},ce.prototype.restoreState=function(se){var fe=se;this.fillColor=fe.fillColor,this.strokeColor=fe.strokeColor,this.strokeWidth=fe.strokeWidth,this.strokeDasharray=fe.strokeDasharray,this.opacity=fe.opacity,this.createVisual(),Ee.prototype.restoreState.call(this,se),this.setSize()},ce.prototype.scale=function(se,fe){Ee.prototype.scale.call(this,se,fe),this.setSize()},ce.title="Rectangle marker",ce}(it),xe=function(Ee){function ce(se,fe,de,oe){var Te=Ee.call(this,se,oe||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Te.widths=[],Te.widthBoxes=[],Te.widths=fe,Te.currentWidth=de,Te.setCurrentWidth=Te.setCurrentWidth.bind(Te),Te}return We(ce,Ee),ce.prototype.getUi=function(){var se=this,fe=document.createElement("div");return fe.style.display="flex",fe.style.overflow="hidden",fe.style.flexGrow="2",this.widths.forEach(function(de){var oe=document.createElement("div");oe.style.display="flex",oe.style.flexGrow="2",oe.style.alignItems="center",oe.style.justifyContent="space-between",oe.style.padding="5px",oe.style.borderWidth="2px",oe.style.borderStyle="solid",oe.style.borderColor=de===se.currentWidth?se.uiStyleSettings.toolboxAccentColor:"transparent",oe.addEventListener("click",function(){se.setCurrentWidth(de,oe)}),fe.appendChild(oe);var Te=document.createElement("div");Te.innerText=de.toString(),Te.style.marginRight="5px",oe.appendChild(Te);var je=document.createElement("div");je.style.minHeight="20px",je.style.flexGrow="2",je.style.display="flex",je.style.alignItems="center";var Et=document.createElement("hr");Et.style.minWidth="20px",Et.style.border="0px",Et.style.borderTop=de+"px solid "+se.uiStyleSettings.toolboxColor,Et.style.flexGrow="2",je.appendChild(Et),oe.appendChild(je),se.widthBoxes.push(oe)}),fe},ce.prototype.setCurrentWidth=function(se,fe){var de=this;this.currentWidth=se,this.widthBoxes.forEach(function(oe){oe.style.borderColor=oe===fe?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},ce}(tt),Ke=function(Ee){function ce(se,fe,de,oe){var Te=Ee.call(this,se,oe||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return Te.styles=[],Te.styleBoxes=[],Te.styles=fe,Te.currentStyle=de,Te.setCurrentStyle=Te.setCurrentStyle.bind(Te),Te}return We(ce,Ee),ce.prototype.getUi=function(){var se=this,fe=document.createElement("div");return fe.style.display="flex",fe.style.overflow="hidden",fe.style.flexGrow="2",this.styles.forEach(function(de){var oe=document.createElement("div");oe.style.display="flex",oe.style.alignItems="center",oe.style.justifyContent="space-between",oe.style.padding="5px",oe.style.borderWidth="2px",oe.style.borderStyle="solid",oe.style.overflow="hidden",oe.style.maxWidth=100/se.styles.length-5+"%",oe.style.borderColor=de===se.currentStyle?se.uiStyleSettings.toolboxAccentColor:"transparent",oe.addEventListener("click",function(){se.setCurrentStyle(de,oe)}),fe.appendChild(oe);var Te=document.createElement("div");Te.style.minHeight="20px",Te.style.flexGrow="2",Te.style.overflow="hidden";var je=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+se.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(de!==""?'stroke-dasharray="'+de+'"':"")+` />
</svg>`;Te.innerHTML=je,oe.appendChild(Te),se.styleBoxes.push(oe)}),fe},ce.prototype.setCurrentStyle=function(se,fe){var de=this;this.currentStyle=se,this.styleBoxes.forEach(function(oe){oe.style.borderColor=oe===fe?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},ce}(tt),Ue=function(Ee){function ce(se,fe,de){var oe=Ee.call(this,se,fe,de)||this;return oe.strokeColor=de.defaultColor,oe.strokeWidth=de.defaultStrokeWidth,oe.strokeDasharray=de.defaultStrokeDasharray,oe.strokePanel=new Ge("Line color",de.defaultColorSet,de.defaultColor),oe.strokePanel.onColorChanged=oe.setStrokeColor,oe.strokeWidthPanel=new xe("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),oe.strokeWidthPanel.onWidthChanged=oe.setStrokeWidth,oe.strokeStylePanel=new Ke("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),oe.strokeStylePanel.onStyleChanged=oe.setStrokeDasharray,oe}return We(ce,Ee),Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var se=Ee.prototype.getState.call(this);return se.typeName=ce.typeName,se},ce.typeName="FrameMarker",ce.title="Frame marker",ce.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',ce}(Be),ft=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"},pt=function(Ee){function ce(se,fe,de){var oe=Ee.call(this,se,fe,de)||this;return oe.x1=0,oe.y1=0,oe.x2=0,oe.y2=0,oe.defaultLength=50,oe.manipulationStartX=0,oe.manipulationStartY=0,oe.manipulationStartX1=0,oe.manipulationStartY1=0,oe.manipulationStartX2=0,oe.manipulationStartY2=0,oe.setupControlBox(),oe}return We(ce,Ee),ce.prototype.ownsTarget=function(se){return!!Ee.prototype.ownsTarget.call(this,se)||!(!this.grip1.ownsTarget(se)&&!this.grip2.ownsTarget(se))},ce.prototype.pointerDown=function(se,fe){Ee.prototype.pointerDown.call(this,se,fe),this.manipulationStartX=se.x,this.manipulationStartY=se.y,this.state==="new"&&(this.x1=se.x,this.y1=se.y,this.x2=se.x,this.y2=se.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(fe)?this.activeGrip=this.grip1:this.grip2.ownsTarget(fe)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},ce.prototype.pointerUp=function(se){var fe=this.state;Ee.prototype.pointerUp.call(this,se),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(se),this._state="select",fe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},ce.prototype.adjustVisual=function(){},ce.prototype.manipulate=function(se){this.state==="creating"?this.resize(se):this.state==="move"?(this.x1=this.manipulationStartX1+se.x-this.manipulationStartX,this.y1=this.manipulationStartY1+se.y-this.manipulationStartY,this.x2=this.manipulationStartX2+se.x-this.manipulationStartX,this.y2=this.manipulationStartY2+se.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(se)},ce.prototype.resize=function(se){switch(this.activeGrip){case this.grip1:this.x1=se.x,this.y1=se.y;break;case this.grip2:case void 0:this.x2=se.x,this.y2=se.y}this.adjustVisual(),this.adjustControlBox()},ce.prototype.select=function(){Ee.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ce.prototype.deselect=function(){Ee.prototype.deselect.call(this),this.controlBox.style.display="none"},ce.prototype.setupControlBox=function(){this.controlBox=Ae.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},ce.prototype.adjustControlBox=function(){this.positionGrips()},ce.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},ce.prototype.createGrip=function(){var se=new zt;return se.visual.transform.baseVal.appendItem(Ae.createTransform()),this.controlBox.appendChild(se.visual),se},ce.prototype.positionGrips=function(){var se=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-se/2,this.y1-se/2),this.positionGrip(this.grip2.visual,this.x2-se/2,this.y2-se/2)},ce.prototype.positionGrip=function(se,fe,de){var oe=se.transform.baseVal.getItem(0);oe.setTranslate(fe,de),se.transform.baseVal.replaceItem(oe,0)},ce.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Ee.prototype.getState.call(this))},ce.prototype.restoreState=function(se){Ee.prototype.restoreState.call(this,se);var fe=se;this.x1=fe.x1,this.y1=fe.y1,this.x2=fe.x2,this.y2=fe.y2},ce.prototype.scale=function(se,fe){Ee.prototype.scale.call(this,se,fe),this.x1=this.x1*se,this.y1=this.y1*fe,this.x2=this.x2*se,this.y2=this.y2*fe,this.adjustVisual(),this.adjustControlBox()},ce}(Me),Mt=function(Ee){function ce(se,fe,de){var oe=Ee.call(this,se,fe,de)||this;return oe.strokeColor="transparent",oe.strokeWidth=0,oe.strokeDasharray="",oe.setStrokeColor=oe.setStrokeColor.bind(oe),oe.setStrokeWidth=oe.setStrokeWidth.bind(oe),oe.setStrokeDasharray=oe.setStrokeDasharray.bind(oe),oe.strokeColor=de.defaultColor,oe.strokeWidth=de.defaultStrokeWidth,oe.strokeDasharray=de.defaultStrokeDasharray,oe.strokePanel=new Ge("Line color",de.defaultColorSet,de.defaultColor),oe.strokePanel.onColorChanged=oe.setStrokeColor,oe.strokeWidthPanel=new xe("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),oe.strokeWidthPanel.onWidthChanged=oe.setStrokeWidth,oe.strokeStylePanel=new Ke("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),oe.strokeStylePanel.onStyleChanged=oe.setStrokeDasharray,oe}return We(ce,Ee),ce.prototype.ownsTarget=function(se){return!(!Ee.prototype.ownsTarget.call(this,se)&&se!==this.visual&&se!==this.selectorLine&&se!==this.visibleLine)},ce.prototype.createVisual=function(){this.visual=Ae.createGroup(),this.selectorLine=Ae.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Ae.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},ce.prototype.pointerDown=function(se,fe){Ee.prototype.pointerDown.call(this,se,fe),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},ce.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),Ae.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Ae.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Ae.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ce.prototype.setStrokeColor=function(se){this.strokeColor=se,this.adjustVisual(),this.colorChanged(se)},ce.prototype.setStrokeWidth=function(se){this.strokeWidth=se,this.adjustVisual()},ce.prototype.setStrokeDasharray=function(se){this.strokeDasharray=se,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var se=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Ee.prototype.getState.call(this));return se.typeName=ce.typeName,se},ce.prototype.restoreState=function(se){Ee.prototype.restoreState.call(this,se);var fe=se;this.strokeColor=fe.strokeColor,this.strokeWidth=fe.strokeWidth,this.strokeDasharray=fe.strokeDasharray,this.createVisual(),this.adjustVisual()},ce.typeName="LineMarker",ce.title="Line marker",ce.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',ce}(pt),Qe=function(Ee){function ce(se,fe,de,oe){var Te=Ee.call(this,se,oe||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return Te.fonts=[],Te.fontBoxes=[],Te.fonts=fe,Te.currentFont=de,Te.setCurrentFont=Te.setCurrentFont.bind(Te),Te}return We(ce,Ee),ce.prototype.getUi=function(){var se=this,fe=document.createElement("div");return fe.style.overflow="hidden",fe.style.flexGrow="2",this.fonts.forEach(function(de){var oe=document.createElement("div");oe.style.display="inline-block",oe.style.alignItems="center",oe.style.justifyContent="space-between",oe.style.padding="5px",oe.style.borderWidth="2px",oe.style.borderStyle="solid",oe.style.overflow="hidden",oe.style.maxWidth=100/se.fonts.length-5+"%",oe.style.borderColor=de===se.currentFont?se.uiStyleSettings.toolboxAccentColor:"transparent",oe.addEventListener("click",function(){se.setCurrentFont(de,oe)}),fe.appendChild(oe);var Te=document.createElement("div");Te.style.display="flex",Te.style.minHeight="20px",Te.style.flexGrow="2",Te.style.fontFamily=de,Te.style.overflow="hidden";var je=document.createElement("div");je.style.whiteSpace="nowrap",je.style.overflow="hidden",je.style.textOverflow="ellipsis",je.innerHTML="The quick brown fox jumps over the lazy dog",Te.appendChild(je),oe.appendChild(Te),se.fontBoxes.push(oe)}),fe},ce.prototype.setCurrentFont=function(se,fe){var de=this;this.currentFont=se,this.fontBoxes.forEach(function(oe){oe.style.borderColor=oe===fe?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},ce}(tt),Rt=function(Ee){function ce(se,fe,de){var oe=Ee.call(this,se,fe,de)||this;return oe.color="transparent",oe.padding=5,oe.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",oe.text=oe.DEFAULT_TEXT,oe.isMoved=!1,oe.color=de.defaultColor,oe.fontFamily=de.defaultFontFamily,oe.defaultSize={x:100,y:30},oe.setColor=oe.setColor.bind(oe),oe.setFont=oe.setFont.bind(oe),oe.renderText=oe.renderText.bind(oe),oe.sizeText=oe.sizeText.bind(oe),oe.textEditDivClicked=oe.textEditDivClicked.bind(oe),oe.showTextEditor=oe.showTextEditor.bind(oe),oe.setSize=oe.setSize.bind(oe),oe.positionTextEditor=oe.positionTextEditor.bind(oe),oe.colorPanel=new Ge("Color",de.defaultColorSet,de.defaultColor),oe.colorPanel.onColorChanged=oe.setColor,oe.fontFamilyPanel=new Qe("Font",de.defaultFontFamilies,de.defaultFontFamily),oe.fontFamilyPanel.onFontChanged=oe.setFont,oe}return We(ce,Ee),ce.prototype.ownsTarget=function(se){if(Ee.prototype.ownsTarget.call(this,se)||se===this.visual||se===this.textElement||se===this.bgRectangle)return!0;var fe=!1;return this.textElement.childNodes.forEach(function(de){de===se&&(fe=!0)}),fe},ce.prototype.createVisual=function(){this.visual=Ae.createGroup(),this.bgRectangle=Ae.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Ae.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Ae.createTransform()),this.textElement.transform.baseVal.appendItem(Ae.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},ce.prototype.pointerDown=function(se,fe){Ee.prototype.pointerDown.call(this,se,fe),this.isMoved=!1,this.pointerDownPoint=se,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(se),this._state="creating")},ce.prototype.renderText=function(){var se=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(fe){se.textElement.appendChild(Ae.createTSpan(fe.trim()===""?" ":fe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},ce.prototype.getTextScale=function(){var se=this.textElement.getBBox(),fe=1;if(se.width>0&&se.height>0){var de=(1*this.width-this.width*this.padding*2/100)/se.width,oe=(1*this.height-this.height*this.padding*2/100)/se.height;fe=Math.min(de,oe)}return fe},ce.prototype.getTextPosition=function(se){var fe=this.textElement.getBBox(),de=0,oe=0;return fe.width>0&&fe.height>0&&(de=(this.width-fe.width*se)/2,oe=this.height/2-fe.height*se/2),{x:de,y:oe}},ce.prototype.sizeText=function(){var se=this.textElement.getBBox(),fe=this.getTextScale(),de=this.getTextPosition(fe);de.y-=se.y*fe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+de.x+"px, "+de.y+"px) scale("+fe+", "+fe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(de.x,de.y),this.textElement.transform.baseVal.getItem(1).setScale(fe,fe))},ce.prototype.manipulate=function(se){Ee.prototype.manipulate.call(this,se),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(se.x-this.pointerDownPoint.x)>5||Math.abs(se.y-this.pointerDownPoint.y)>5)},ce.prototype.resize=function(se){Ee.prototype.resize.call(this,se),this.isMoved=!0,this.setSize(),this.sizeText()},ce.prototype.setSize=function(){Ee.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Ae.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ae.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},ce.prototype.pointerUp=function(se){var fe=this.state;fe==="creating"&&(this._suppressMarkerCreateEvent=!0),Ee.prototype.pointerUp.call(this,se),this.setSize(),(fe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},ce.prototype.showTextEditor=function(){var se=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(fe){fe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var fe=Number.parseFloat(se.textEditor.style.fontSize);se.textEditor.clientWidth>=Number.parseInt(se.textEditor.style.maxWidth)&&fe>.9;)fe-=.1,se.textEditor.style.fontSize=Math.max(fe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(fe){fe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(fe){if(fe.clipboardData){var de=fe.clipboardData.getData("text"),oe=window.getSelection();if(!oe.rangeCount)return!1;oe.deleteFromDocument(),oe.getRangeAt(0).insertNode(document.createTextNode(de)),fe.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){se.textEditDivClicked(se.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},ce.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var se=this.getTextScale(),fe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),de=this.textElement.getBBox(),oe={x:de.width*se,y:de.height*se};fe.x-=oe.x/2,fe.y-=oe.y/2,this.textEditor.style.top=fe.y+"px",this.textEditor.style.left=fe.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-fe.x+"px",this.textEditor.style.fontSize=Math.max(16*se,12)+"px",this.textElement.style.display="none"}},ce.prototype.textEditDivClicked=function(se){this.text=se.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},ce.prototype.select=function(){Ee.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},ce.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Ee.prototype.deselect.call(this)},ce.prototype.dblClick=function(se,fe){Ee.prototype.dblClick.call(this,se,fe),this.showTextEditor()},ce.prototype.setColor=function(se){this.textElement&&Ae.setAttributes(this.textElement,[["fill",se]]),this.color=se,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(se)},ce.prototype.setFont=function(se){this.textElement&&Ae.setAttributes(this.textElement,[["font-family",se]]),this.fontFamily=se,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},ce.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},ce.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var se=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Ee.prototype.getState.call(this));return se.typeName=ce.typeName,se},ce.prototype.restoreState=function(se){var fe=se;this.color=fe.color,this.fontFamily=fe.fontFamily,this.padding=fe.padding,this.text=fe.text,this.createVisual(),Ee.prototype.restoreState.call(this,se),this.setSize()},ce.prototype.scale=function(se,fe){Ee.prototype.scale.call(this,se,fe),this.setSize(),this.sizeText(),this.positionTextEditor()},ce.typeName="TextMarker",ce.title="Text marker",ce.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',ce}(it),Dt=function(Ee){function ce(se,fe,de){var oe=Ee.call(this,se,fe,de)||this;return oe.color="transparent",oe.lineWidth=3,oe.drawing=!1,oe.pixelRatio=1,oe.color=de.defaultColor,oe.lineWidth=de.defaultStrokeWidth,oe.pixelRatio=de.freehandPixelRatio,oe.setColor=oe.setColor.bind(oe),oe.addCanvas=oe.addCanvas.bind(oe),oe.finishCreation=oe.finishCreation.bind(oe),oe.setLineWidth=oe.setLineWidth.bind(oe),oe.colorPanel=new Ge("Color",de.defaultColorSet,de.defaultColor),oe.colorPanel.onColorChanged=oe.setColor,oe.lineWidthPanel=new xe("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),oe.lineWidthPanel.onWidthChanged=oe.setLineWidth,oe}return We(ce,Ee),ce.prototype.ownsTarget=function(se){return!(!Ee.prototype.ownsTarget.call(this,se)&&se!==this.visual&&se!==this.drawingImage)},ce.prototype.createVisual=function(){this.visual=Ae.createGroup(),this.drawingImage=Ae.createImage(),this.visual.appendChild(this.drawingImage);var se=Ae.createTransform();this.visual.transform.baseVal.appendItem(se),this.addMarkerVisualToContainer(this.visual)},ce.prototype.pointerDown=function(se,fe){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(se.x,se.y),this.drawing=!0):Ee.prototype.pointerDown.call(this,se,fe)},ce.prototype.manipulate=function(se){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(se.x,se.y),this.canvasContext.stroke()):Ee.prototype.manipulate.call(this,se)},ce.prototype.resize=function(se){Ee.prototype.resize.call(this,se),Ae.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ae.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},ce.prototype.pointerUp=function(se){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Ee.prototype.pointerUp.call(this,se)},ce.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},ce.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Ee.prototype.select.call(this)},ce.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Ee.prototype.deselect.call(this)},ce.prototype.finishCreation=function(){for(var se=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),fe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],de=fe[0],oe=fe[1],Te=fe[2],je=fe[3],Et=!1,At=0;At<this.canvasElement.height;At++)for(var Ot=0;Ot<this.canvasElement.width;Ot++)se.data[At*this.canvasElement.width*4+4*Ot+3]>0&&(Et=!0,At<oe&&(oe=At),Ot<de&&(de=Ot),At>je&&(je=At),Ot>Te&&(Te=Ot));if(Et){this.left=de/this.pixelRatio,this.top=oe/this.pixelRatio,this.width=(Te-de)/this.pixelRatio,this.height=(je-oe)/this.pixelRatio;var Bt=document.createElement("canvas");Bt.width=Te-de,Bt.height=je-oe,Bt.getContext("2d").putImageData(this.canvasContext.getImageData(de,oe,Te-de,je-oe),0,0),this.drawingImgUrl=Bt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},ce.prototype.setDrawingImage=function(){Ae.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Ae.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},ce.prototype.setColor=function(se){this.color=se,this.colorChanged(se)},ce.prototype.setLineWidth=function(se){this.lineWidth=se},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var se=Object.assign({drawingImgUrl:this.drawingImgUrl},Ee.prototype.getState.call(this));return se.typeName=ce.typeName,se},ce.prototype.restoreState=function(se){this.createVisual(),Ee.prototype.restoreState.call(this,se),this.drawingImgUrl=se.drawingImgUrl,this.setDrawingImage()},ce.prototype.scale=function(se,fe){Ee.prototype.scale.call(this,se,fe),this.setDrawingImage()},ce.typeName="FreehandMarker",ce.title="Freehand marker",ce.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',ce}(it),on=function(Ee){function ce(se,fe,de){var oe=Ee.call(this,se,de||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return oe.typeBoxes=[],oe.currentType=fe,oe.setCurrentType=oe.setCurrentType.bind(oe),oe}return We(ce,Ee),ce.prototype.getUi=function(){var se=this,fe=document.createElement("div");fe.style.display="flex",fe.style.overflow="hidden",fe.style.flexGrow="2";for(var de=function(je){var Et="both";switch(je){case 0:Et="both";break;case 1:Et="start";break;case 2:Et="end";break;case 3:Et="none"}var At=document.createElement("div");if(At.style.display="flex",At.style.flexGrow="2",At.style.alignItems="center",At.style.justifyContent="space-between",At.style.padding="5px",At.style.borderWidth="2px",At.style.borderStyle="solid",At.style.borderColor=Et===oe.currentType?oe.uiStyleSettings.toolboxAccentColor:"transparent",At.addEventListener("click",function(){se.setCurrentType(Et,At)}),fe.appendChild(At),Et==="both"||Et==="start"){var Ot=document.createElement("div");Ot.style.display="flex",Ot.style.alignItems="center",Ot.style.minHeight="20px",Ot.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,5 10,0 10,10" fill="`+(oe.uiStyleSettings!==void 0?oe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Ot.style.marginLeft="5px",At.appendChild(Ot)}var Bt=document.createElement("div");Bt.style.display="flex",Bt.style.alignItems="center",Bt.style.minHeight="20px",Bt.style.flexGrow="2";var Nt=document.createElement("hr");if(Nt.style.minWidth="20px",Nt.style.border="0px",Nt.style.borderTop="3px solid "+(oe.uiStyleSettings!==void 0?oe.uiStyleSettings.toolboxColor:"#eeeeee"),Nt.style.flexGrow="2",Bt.appendChild(Nt),At.appendChild(Bt),Et==="both"||Et==="end"){var zn=document.createElement("div");zn.style.display="flex",zn.style.alignItems="center",zn.style.minHeight="20px",zn.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,0 10,5 0,10" fill="`+(oe.uiStyleSettings!==void 0?oe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,zn.style.marginRight="5px",At.appendChild(zn)}oe.typeBoxes.push(At)},oe=this,Te=0;Te<4;Te++)de(Te);return fe},ce.prototype.setCurrentType=function(se,fe){var de=this;this.currentType=se,this.typeBoxes.forEach(function(oe){oe.style.borderColor=oe===fe?de.uiStyleSettings!==void 0?de.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},ce}(tt),Ut=function(Ee){function ce(se,fe,de){var oe=Ee.call(this,se,fe,de)||this;return oe.arrowType="end",oe.arrowBaseHeight=10,oe.arrowBaseWidth=10,oe.getArrowPoints=oe.getArrowPoints.bind(oe),oe.setArrowType=oe.setArrowType.bind(oe),oe.arrowTypePanel=new on("Arrow type","end"),oe.arrowTypePanel.onArrowTypeChanged=oe.setArrowType,oe}return We(ce,Ee),ce.prototype.ownsTarget=function(se){return!(!Ee.prototype.ownsTarget.call(this,se)&&se!==this.arrow1&&se!==this.arrow2)},ce.prototype.getArrowPoints=function(se,fe){var de=this.arrowBaseWidth+2*this.strokeWidth,oe=this.arrowBaseHeight+2*this.strokeWidth;return se-de/2+","+(fe+oe/2)+" "+se+","+(fe-oe/2)+" "+(se+de/2)+","+(fe+oe/2)},ce.prototype.createTips=function(){this.arrow1=Ae.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Ae.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Ae.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Ae.createTransform()),this.visual.appendChild(this.arrow2)},ce.prototype.pointerDown=function(se,fe){Ee.prototype.pointerDown.call(this,se,fe),this.state==="creating"&&this.createTips()},ce.prototype.adjustVisual=function(){if(Ee.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",Ae.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Ae.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var se=0;Math.abs(this.x1-this.x2)>.1&&(se=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var fe=this.arrow1.transform.baseVal.getItem(0);fe.setRotate(se,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(fe,0);var de=this.arrow2.transform.baseVal.getItem(0);de.setRotate(se+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(de,0)}},ce.prototype.setArrowType=function(se){this.arrowType=se,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var se=Object.assign({arrowType:this.arrowType},Ee.prototype.getState.call(this));return se.typeName=ce.typeName,se},ce.prototype.restoreState=function(se){Ee.prototype.restoreState.call(this,se);var fe=se;this.arrowType=fe.arrowType,this.createTips(),this.adjustVisual()},ce.typeName="ArrowMarker",ce.title="Arrow marker",ce.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',ce}(Mt),wn=function(Ee){function ce(se,fe,de){var oe=Ee.call(this,se,fe,de)||this;return oe.fillColor=de.defaultFillColor,oe.strokeWidth=0,oe.fillPanel=new Ge("Color",de.defaultColorSet,de.defaultFillColor),oe.fillPanel.onColorChanged=oe.setFillColor,oe}return We(ce,Ee),Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var se=Ee.prototype.getState.call(this);return se.typeName=ce.typeName,se},ce.typeName="CoverMarker",ce.title="Cover marker",ce.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',ce}(Be),Xn=function(Ee){function ce(se,fe,de,oe){var Te=Ee.call(this,se,oe||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return Te.opacities=[],Te.opacityBoxes=[],Te.opacities=fe,Te.currentOpacity=de,Te.setCurrentOpacity=Te.setCurrentOpacity.bind(Te),Te}return We(ce,Ee),ce.prototype.getUi=function(){var se=this,fe=document.createElement("div");return fe.style.display="flex",fe.style.overflow="hidden",fe.style.flexGrow="2",fe.style.justifyContent="space-between",this.opacities.forEach(function(de){var oe=document.createElement("div");oe.style.display="flex",oe.style.alignItems="center",oe.style.justifyContent="center",oe.style.padding="5px",oe.style.borderWidth="2px",oe.style.borderStyle="solid",oe.style.borderColor=de===se.currentOpacity?se.uiStyleSettings.toolboxAccentColor:"transparent",oe.addEventListener("click",function(){se.setCurrentOpacity(de,oe)}),fe.appendChild(oe);var Te=document.createElement("div");Te.innerText=100*de+"%",oe.appendChild(Te),se.opacityBoxes.push(oe)}),fe},ce.prototype.setCurrentOpacity=function(se,fe){var de=this;this.currentOpacity=se,this.opacityBoxes.forEach(function(oe){oe.style.borderColor=oe===fe?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},ce}(tt),nr=function(Ee){function ce(se,fe,de){var oe=Ee.call(this,se,fe,de)||this;return oe.setOpacity=oe.setOpacity.bind(oe),oe.fillColor=de.defaultHighlightColor,oe.strokeWidth=0,oe.opacity=de.defaultHighlightOpacity,oe.fillPanel=new Ge("Color",de.defaultColorSet,oe.fillColor),oe.fillPanel.onColorChanged=oe.setFillColor,oe.opacityPanel=new Xn("Opacity",de.defaultOpacitySteps,oe.opacity),oe.opacityPanel.onOpacityChanged=oe.setOpacity,oe}return We(ce,Ee),ce.prototype.setOpacity=function(se){this.opacity=se,this.visual&&Ae.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var se=Ee.prototype.getState.call(this);return se.typeName=ce.typeName,se},ce.typeName="HighlightMarker",ce.title="Highlight marker",ce.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',ce}(wn),Je='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',_e='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',Ft=function(Ee){function ce(se,fe,de){var oe=Ee.call(this,se,fe,de)||this;return oe.bgColor="transparent",oe.tipPosition={x:0,y:0},oe.tipBase1Position={x:0,y:0},oe.tipBase2Position={x:0,y:0},oe.tipMoving=!1,oe.color=de.defaultStrokeColor,oe.bgColor=de.defaultFillColor,oe.fontFamily=de.defaultFontFamily,oe.defaultSize={x:100,y:30},oe.setBgColor=oe.setBgColor.bind(oe),oe.getTipPoints=oe.getTipPoints.bind(oe),oe.positionTip=oe.positionTip.bind(oe),oe.setTipPoints=oe.setTipPoints.bind(oe),oe.colorPanel=new Ge("Text color",de.defaultColorSet,oe.color,Je),oe.colorPanel.onColorChanged=oe.setColor,oe.bgColorPanel=new Ge("Fill color",de.defaultColorSet,oe.bgColor,_e),oe.bgColorPanel.onColorChanged=oe.setBgColor,oe.fontFamilyPanel=new Qe("Font",de.defaultFontFamilies,de.defaultFontFamily),oe.fontFamilyPanel.onFontChanged=oe.setFont,oe.tipGrip=new zt,oe.tipGrip.visual.transform.baseVal.appendItem(Ae.createTransform()),oe.controlBox.appendChild(oe.tipGrip.visual),oe}return We(ce,Ee),ce.prototype.ownsTarget=function(se){return Ee.prototype.ownsTarget.call(this,se)||this.tipGrip.ownsTarget(se)||this.tip===se},ce.prototype.createTip=function(){Ae.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Ae.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},ce.prototype.pointerDown=function(se,fe){this.state==="new"&&Ee.prototype.pointerDown.call(this,se,fe),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(fe)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Ee.prototype.pointerDown.call(this,se,fe)},ce.prototype.pointerUp=function(se){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Ee.prototype.pointerUp.call(this,se);else{var fe=this.state==="creating";Ee.prototype.pointerUp.call(this,se),this.setTipPoints(fe),this.positionTip()}},ce.prototype.manipulate=function(se){if(this.tipMoving){var fe=this.unrotatePoint(se);this.tipPosition={x:fe.x-this.manipulationStartLeft,y:fe.y-this.manipulationStartTop},this.positionTip()}else Ee.prototype.manipulate.call(this,se)},ce.prototype.setBgColor=function(se){this.bgRectangle&&this.tip&&(Ae.setAttributes(this.bgRectangle,[["fill",se]]),Ae.setAttributes(this.tip,[["fill",se]])),this.bgColor=se,this.fillColorChanged(se)},ce.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},ce.prototype.setTipPoints=function(se){se===void 0&&(se=!1);var fe=Math.min(this.height/2,15),de=this.height/5;se&&(this.tipPosition={x:fe+de/2,y:this.height+20});var oe=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?oe<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(de=this.width/5,fe=Math.min(this.width/2,15),this.tipBase1Position={x:fe,y:0},this.tipBase2Position={x:fe+de,y:0}):(this.tipBase1Position={x:0,y:fe},this.tipBase2Position={x:0,y:fe+de}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?oe<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(de=this.width/5,fe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-fe-de,y:0},this.tipBase2Position={x:this.width-fe,y:0}):(this.tipBase1Position={x:this.width,y:fe},this.tipBase2Position={x:this.width,y:fe+de}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?oe<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(de=this.width/5,fe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-fe-de,y:this.height},this.tipBase2Position={x:this.width-fe,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-fe-de},this.tipBase2Position={x:this.width,y:this.height-fe}):oe<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(de=this.width/5,fe=Math.min(this.width/2,15),this.tipBase1Position={x:fe,y:this.height},this.tipBase2Position={x:fe+de,y:this.height}):(this.tipBase1Position={x:0,y:this.height-fe},this.tipBase2Position={x:0,y:this.height-fe-de})},ce.prototype.resize=function(se){Ee.prototype.resize.call(this,se),this.positionTip()},ce.prototype.positionTip=function(){Ae.setAttributes(this.tip,[["points",this.getTipPoints()]]);var se=this.tipGrip.visual.transform.baseVal.getItem(0);se.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(se,0)},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ce.prototype.select=function(){this.positionTip(),Ee.prototype.select.call(this)},ce.prototype.getState=function(){var se=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Ee.prototype.getState.call(this));return se.typeName=ce.typeName,se},ce.prototype.restoreState=function(se){var fe=se;this.bgColor=fe.bgColor,this.tipPosition=fe.tipPosition,Ee.prototype.restoreState.call(this,se),this.createTip(),this.setTipPoints()},ce.prototype.scale=function(se,fe){Ee.prototype.scale.call(this,se,fe),this.tipPosition={x:this.tipPosition.x*se,y:this.tipPosition.y*fe},this.positionTip()},ce.typeName="CalloutMarker",ce.title="Callout marker",ce.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',ce}(Rt),Sn=function(Ee){function ce(se,fe,de){var oe=Ee.call(this,se,fe,de)||this;return oe.fillColor="transparent",oe.strokeColor="transparent",oe.strokeWidth=0,oe.strokeDasharray="",oe.opacity=1,oe.strokeColor=de.defaultColor,oe.strokeWidth=de.defaultStrokeWidth,oe.strokeDasharray=de.defaultStrokeDasharray,oe.fillColor=de.defaultFillColor,oe.setStrokeColor=oe.setStrokeColor.bind(oe),oe.setFillColor=oe.setFillColor.bind(oe),oe.setStrokeWidth=oe.setStrokeWidth.bind(oe),oe.setStrokeDasharray=oe.setStrokeDasharray.bind(oe),oe.setOpacity=oe.setOpacity.bind(oe),oe.createVisual=oe.createVisual.bind(oe),oe.strokePanel=new Ge("Line color",be(de.defaultColorSet,["transparent"]),de.defaultColor),oe.strokePanel.onColorChanged=oe.setStrokeColor,oe.fillPanel=new Ge("Fill color",be(de.defaultColorSet,["transparent"]),oe.fillColor,_e),oe.fillPanel.onColorChanged=oe.setFillColor,oe.strokeWidthPanel=new xe("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),oe.strokeWidthPanel.onWidthChanged=oe.setStrokeWidth,oe.strokeStylePanel=new Ke("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),oe.strokeStylePanel.onStyleChanged=oe.setStrokeDasharray,oe.opacityPanel=new Xn("Opacity",de.defaultOpacitySteps,oe.opacity),oe.opacityPanel.onOpacityChanged=oe.setOpacity,oe}return We(ce,Ee),ce.prototype.ownsTarget=function(se){return!(!Ee.prototype.ownsTarget.call(this,se)&&se!==this.visual)},ce.prototype.createVisual=function(){this.visual=Ae.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},ce.prototype.pointerDown=function(se,fe){Ee.prototype.pointerDown.call(this,se,fe),this.state==="new"&&(this.createVisual(),this.moveVisual(se),this._state="creating")},ce.prototype.manipulate=function(se){Ee.prototype.manipulate.call(this,se)},ce.prototype.resize=function(se){Ee.prototype.resize.call(this,se),this.setSize()},ce.prototype.setSize=function(){Ee.prototype.setSize.call(this),Ae.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},ce.prototype.pointerUp=function(se){Ee.prototype.pointerUp.call(this,se),this.setSize()},ce.prototype.setStrokeColor=function(se){this.strokeColor=se,this.visual&&Ae.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(se),this.stateChanged()},ce.prototype.setFillColor=function(se){this.fillColor=se,this.visual&&Ae.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(se),this.stateChanged()},ce.prototype.setStrokeWidth=function(se){this.strokeWidth=se,this.visual&&Ae.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ce.prototype.setStrokeDasharray=function(se){this.strokeDasharray=se,this.visual&&Ae.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ce.prototype.setOpacity=function(se){this.opacity=se,this.visual&&Ae.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var se=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Ee.prototype.getState.call(this));return se.typeName=ce.typeName,se},ce.prototype.restoreState=function(se){var fe=se;this.fillColor=fe.fillColor,this.strokeColor=fe.strokeColor,this.strokeWidth=fe.strokeWidth,this.strokeDasharray=fe.strokeDasharray,this.opacity=fe.opacity,this.createVisual(),Ee.prototype.restoreState.call(this,se),this.setSize()},ce.prototype.scale=function(se,fe){Ee.prototype.scale.call(this,se,fe),this.setSize()},ce.typeName="EllipseMarker",ce.title="Ellipse marker",ce.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',ce}(it),an=function(Ee){function ce(se,fe,de){return Ee.call(this,se,fe,de)||this}return We(ce,Ee),Object.defineProperty(ce.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),ce.prototype.ownsTarget=function(se){return!(!Ee.prototype.ownsTarget.call(this,se)&&se!==this.tip1&&se!==this.tip2)},ce.prototype.createTips=function(){this.tip1=Ae.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(Ae.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Ae.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(Ae.createTransform()),this.visual.appendChild(this.tip2)},ce.prototype.pointerDown=function(se,fe){Ee.prototype.pointerDown.call(this,se,fe),this.state==="creating"&&this.createTips()},ce.prototype.adjustVisual=function(){if(Ee.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Ae.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Ae.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var se=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),fe=this.tip1.transform.baseVal.getItem(0);fe.setRotate(se,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(fe,0);var de=this.tip2.transform.baseVal.getItem(0);de.setRotate(se+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(de,0)}},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var se=Ee.prototype.getState.call(this);return se.typeName=ce.typeName,se},ce.prototype.restoreState=function(se){Ee.prototype.restoreState.call(this,se),this.createTips(),this.adjustVisual()},ce.typeName="MeasurementMarker",ce.title="Measurement marker",ce.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',ce}(Mt),nt=function(Ee){function ce(se,fe,de){var oe=Ee.call(this,se,fe,de)||this;return oe.strokePanel.colors=de.defaultColorSet,oe.fillColor="transparent",oe}return We(ce,Ee),Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var se=Ee.prototype.getState.call(this);return se.typeName=ce.typeName,se},ce.typeName="EllipseFrameMarker",ce.title="Ellipse frame marker",ce.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',ce}(Sn),at=function(){function Ee(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Ee.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ee.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ee.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Ee.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Ee.prototype.addUndoStep=function(ce){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(ce)||(this.undoStack.push(ce),JSON.stringify(this.lastRedoStep)!==JSON.stringify(ce)&&this.redoStack.splice(0,this.redoStack.length))},Ee.prototype.replaceLastUndoStep=function(ce){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=ce)},Ee.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Ee.prototype.undo=function(){if(this.undoStack.length>1){var ce=this.undoStack.pop();return ce!==void 0&&this.redoStack.push(ce),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Ee.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Ee}(),$t=function(Ee){function ce(se,fe,de){var oe=Ee.call(this,se,fe,de)||this;return oe.strokeColor="transparent",oe.strokeWidth=0,oe.strokeDasharray="",oe.curveX=0,oe.curveY=0,oe.manipulationStartCurveX=0,oe.manipulationStartCurveY=0,oe.setStrokeColor=oe.setStrokeColor.bind(oe),oe.setStrokeWidth=oe.setStrokeWidth.bind(oe),oe.setStrokeDasharray=oe.setStrokeDasharray.bind(oe),oe.positionGrips=oe.positionGrips.bind(oe),oe.addControlGrips=oe.addControlGrips.bind(oe),oe.adjustVisual=oe.adjustVisual.bind(oe),oe.setupControlBox=oe.setupControlBox.bind(oe),oe.resize=oe.resize.bind(oe),oe.strokeColor=de.defaultColor,oe.strokeWidth=de.defaultStrokeWidth,oe.strokeDasharray=de.defaultStrokeDasharray,oe.strokePanel=new Ge("Line color",de.defaultColorSet,de.defaultColor),oe.strokePanel.onColorChanged=oe.setStrokeColor,oe.strokeWidthPanel=new xe("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),oe.strokeWidthPanel.onWidthChanged=oe.setStrokeWidth,oe.strokeStylePanel=new Ke("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),oe.strokeStylePanel.onStyleChanged=oe.setStrokeDasharray,oe}return We(ce,Ee),ce.prototype.ownsTarget=function(se){return!(!Ee.prototype.ownsTarget.call(this,se)&&se!==this.visual&&se!==this.selectorCurve&&se!==this.visibleCurve&&!this.curveGrip.ownsTarget(se))},ce.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},ce.prototype.createVisual=function(){this.visual=Ae.createGroup(),this.selectorCurve=Ae.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Ae.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},ce.prototype.pointerDown=function(se,fe){Ee.prototype.pointerDown.call(this,se,fe),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=se.x,this.curveY=se.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(fe)&&(this.activeGrip=this.curveGrip,this._state="resize")},ce.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Ae.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Ae.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Ae.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ce.prototype.setupControlBox=function(){Ee.prototype.setupControlBox.call(this),this.curveControlLine1=Ae.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Ae.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},ce.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Ee.prototype.addControlGrips.call(this)},ce.prototype.positionGrips=function(){Ee.prototype.positionGrips.call(this);var se=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-se/2,this.curveY-se/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},ce.prototype.manipulate=function(se){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+se.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+se.y-this.manipulationStartY),Ee.prototype.manipulate.call(this,se)},ce.prototype.resize=function(se){this.activeGrip===this.curveGrip&&(this.curveX=se.x,this.curveY=se.y),Ee.prototype.resize.call(this,se),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},ce.prototype.setStrokeColor=function(se){this.strokeColor=se,this.adjustVisual(),this.colorChanged(se)},ce.prototype.setStrokeWidth=function(se){this.strokeWidth=se,this.adjustVisual()},ce.prototype.setStrokeDasharray=function(se){this.strokeDasharray=se,this.adjustVisual()},ce.prototype.scale=function(se,fe){this.curveX=this.curveX*se,this.curveY=this.curveY*fe,Ee.prototype.scale.call(this,se,fe)},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var se=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Ee.prototype.getState.call(this));return se.typeName=ce.typeName,se},ce.prototype.restoreState=function(se){Ee.prototype.restoreState.call(this,se);var fe=se;this.strokeColor=fe.strokeColor,this.strokeWidth=fe.strokeWidth,this.strokeDasharray=fe.strokeDasharray,this.curveX=fe.curveX,this.curveY=fe.curveY,this.createVisual(),this.adjustVisual()},ce.typeName="CurveMarker",ce.title="Curve marker",ce.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',ce}(pt),kn=function(Ee){function ce(se,fe,de){var oe=Ee.call(this,se,fe,de)||this;return oe.fillColor="transparent",oe.strokeColor="transparent",oe.strokeWidth=0,oe.strokeDasharray="",oe.textColor="transparent",oe.fontSize="1rem",oe.isMoved=!1,oe.captionText="Caption",oe.PADDING=5,oe.captionBoxWidth=0,oe.captionBoxHeight=0,oe.strokeColor=de.defaultColor,oe.strokeWidth=de.defaultStrokeWidth,oe.strokeDasharray=de.defaultStrokeDasharray,oe.fillColor=de.defaultFillColor,oe.textColor=de.defaultStrokeColor,oe.fontFamily=de.defaultFontFamily,oe.fontSize=de.defaultCaptionFontSize,oe.captionText=de.defaultCaptionText,oe.setStrokeColor=oe.setStrokeColor.bind(oe),oe.setFillColor=oe.setFillColor.bind(oe),oe.setStrokeWidth=oe.setStrokeWidth.bind(oe),oe.setStrokeDasharray=oe.setStrokeDasharray.bind(oe),oe.createVisual=oe.createVisual.bind(oe),oe.sizeCaption=oe.sizeCaption.bind(oe),oe.setCaptionText=oe.setCaptionText.bind(oe),oe.showTextEditor=oe.showTextEditor.bind(oe),oe.positionTextEditor=oe.positionTextEditor.bind(oe),oe.finishTextEditing=oe.finishTextEditing.bind(oe),oe.setFont=oe.setFont.bind(oe),oe.setTextColor=oe.setTextColor.bind(oe),oe.strokePanel=new Ge("Line color",be(de.defaultColorSet,["transparent"]),oe.strokeColor),oe.strokePanel.onColorChanged=oe.setStrokeColor,oe.fillPanel=new Ge("Fill color",be(de.defaultColorSet,["transparent"]),oe.fillColor,_e),oe.fillPanel.onColorChanged=oe.setFillColor,oe.strokeWidthPanel=new xe("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),oe.strokeWidthPanel.onWidthChanged=oe.setStrokeWidth,oe.strokeStylePanel=new Ke("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),oe.strokeStylePanel.onStyleChanged=oe.setStrokeDasharray,oe.fontFamilyPanel=new Qe("Font",de.defaultFontFamilies,de.defaultFontFamily),oe.fontFamilyPanel.onFontChanged=oe.setFont,oe.textColorPanel=new Ge("Text color",de.defaultColorSet,oe.textColor,Je),oe.textColorPanel.onColorChanged=oe.setTextColor,oe}return We(ce,Ee),ce.prototype.ownsTarget=function(se){return!(!Ee.prototype.ownsTarget.call(this,se)&&se!==this.visual&&se!==this.frame&&se!==this.captionBg&&se!==this.captionElement)},ce.prototype.createVisual=function(){this.visual=Ae.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Ae.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Ae.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=Ae.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},ce.prototype.setCaptionText=function(se){this.captionText=se,this.captionElement.textContent=this.captionText,this.sizeCaption()},ce.prototype.pointerDown=function(se,fe){Ee.prototype.pointerDown.call(this,se,fe),this.isMoved=!1,this.pointerDownPoint=se,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(se),this._state="creating")},ce.prototype.manipulate=function(se){Ee.prototype.manipulate.call(this,se),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(se.x-this.pointerDownPoint.x)>5||Math.abs(se.y-this.pointerDownPoint.y)>5)},ce.prototype.resize=function(se){Ee.prototype.resize.call(this,se),this.setSize()},ce.prototype.sizeCaption=function(){var se=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=se.width+2*this.PADDING,this.captionBoxHeight=se.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Ae.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')"]]),Ae.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},ce.prototype.showTextEditor=function(){var se=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(fe){fe.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(fe){fe.key==="Enter"&&se.finishTextEditing(se.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(fe){fe.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){se.finishTextEditing(se.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){se.finishTextEditing(se.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},ce.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},ce.prototype.finishTextEditing=function(se){this.setCaptionText(se.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},ce.prototype.setFont=function(se){this.captionElement&&Ae.setAttributes(this.captionElement,[["font-family",se]]),this.fontFamily=se,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},ce.prototype.setTextColor=function(se){this.captionElement&&Ae.setAttributes(this.captionElement,[["fill",se]]),this.textColor=se,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},ce.prototype.setSize=function(){Ee.prototype.setSize.call(this),Ae.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},ce.prototype.pointerUp=function(se){Ee.prototype.pointerUp.call(this,se),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},ce.prototype.dblClick=function(se,fe){Ee.prototype.dblClick.call(this,se,fe),this.showTextEditor()},ce.prototype.setStrokeColor=function(se){this.strokeColor=se,this.frame&&Ae.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(se),this.stateChanged()},ce.prototype.setFillColor=function(se){this.fillColor=se,this.captionBg&&Ae.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(se),this.stateChanged()},ce.prototype.setStrokeWidth=function(se){this.strokeWidth=se,this.frame&&Ae.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ce.prototype.setStrokeDasharray=function(se){this.strokeDasharray=se,this.frame&&Ae.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(ce.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),ce.prototype.getState=function(){var se=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},Ee.prototype.getState.call(this));return se.typeName=this.typeName,se},ce.prototype.restoreState=function(se){var fe=se;this.fillColor=fe.fillColor,this.strokeColor=fe.strokeColor,this.strokeWidth=fe.strokeWidth,this.strokeDasharray=fe.strokeDasharray,this.textColor=fe.textColor,this.fontFamily=fe.fontFamily,this.captionText=fe.captionText,this.fontSize=fe.fontSize,this.createVisual(),Ee.prototype.restoreState.call(this,se),this.setSize()},ce.prototype.scale=function(se,fe){Ee.prototype.scale.call(this,se,fe),this.setSize()},ce.typeName="CaptionFrameMarker",ce.title="Caption frame marker",ce.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',ce}(it),Ht=function(){function Ee(ce,se){se===void 0&&(se=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=ce,this.cancelable=se}return Object.defineProperty(Ee.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Ee.prototype.preventDefault=function(){this._defaultPrevented=!0},Ee}(),It=function(Ee){function ce(se,fe,de){var oe=Ee.call(this,se,!1)||this;return oe.dataUrl=fe,oe.state=de,oe}return We(ce,Ee),ce}(Ht),Ct=function(Ee){function ce(se,fe,de){de===void 0&&(de=!1);var oe=Ee.call(this,se,de)||this;return oe.marker=fe,oe}return We(ce,Ee),ce}(Ht),tn=function(){function Ee(){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 Ee.prototype.addEventListener=function(ce,se){this[ce].push(se)},Ee.prototype.removeEventListener=function(ce,se){var fe=this[ce].indexOf(se);fe>-1&&this[ce].splice(fe,1)},Ee}(),pn=function(){function Ee(ce){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new ft,this._isOpen=!1,this.undoRedoManager=new at,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 tn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Ee.instanceCounter++,this.styles=new Ie(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=ce,this.targetRoot=document.body,this.width=ce.clientWidth,this.height=ce.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(Ee.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ue,Dt,Ut,Rt,nt,Sn,nr,Ft,an,wn,Mt,$t,kn]},enumerable:!1,configurable:!0}),Object.defineProperty(Ee.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ue,Dt,Ut,Rt,Sn,nr,Ft]},enumerable:!1,configurable:!0}),Object.defineProperty(Ee.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ue,Dt,Ut,Rt,nr]},enumerable:!1,configurable:!0}),Object.defineProperty(Ee.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(ce){var se=this;this._availableMarkerTypes.splice(0),ce.forEach(function(fe){if(typeof fe=="string"){var de=se.ALL_MARKER_TYPES.find(function(oe){return oe.typeName===fe});de!==void 0&&se._availableMarkerTypes.push(de)}else se._availableMarkerTypes.push(fe)})},enumerable:!1,configurable:!0}),Object.defineProperty(Ee.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Ee.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Ee.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ee.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ee.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(ce){this._zoomLevel=ce,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(Ee.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Ee.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),ke.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Ee.prototype.show=function(){var ce=this;this.styles.styleSheetRoot===void 0&&pe.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=pe.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(se){return se(new Ht(ce))})},Ee.prototype.render=function(){return Pe(this,void 0,void 0,function(){var ce;return et(this,function(se){switch(se.label){case 0:return this.setCurrentMarker(),(ce=new Se).naturalSize=this.renderAtNaturalSize,ce.imageType=this.renderImageType,ce.imageQuality=this.renderImageQuality,ce.markersOnly=this.renderMarkersOnly,ce.width=this.renderWidth,ce.height=this.renderHeight,[4,ce.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return se.sent(),[4,ce.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,se.sent()]}})})},Ee.prototype.close=function(ce){var se=this;if(ce===void 0&&(ce=!1),this.isOpen){var fe=!1;ce||this.eventListeners.beforeclose.forEach(function(de){var oe=new Ht(se,!0);de(oe),oe.defaultPrevented&&(fe=!0)}),fe||(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 Ht(se))}),this.detachEvents(),this._isOpen=!1)}},Ee.prototype.addMarkersToToolbar=function(){for(var ce,se=[],fe=0;fe<arguments.length;fe++)se[fe]=arguments[fe];(ce=this._availableMarkerTypes).push.apply(ce,se)},Ee.prototype.addRenderEventListener=function(ce){this.addEventListener("render",function(se){ce(se.dataUrl,se.state)})},Ee.prototype.removeRenderEventListener=function(ce){},Ee.prototype.addCloseEventListener=function(ce){this.addEventListener("close",function(){ce()})},Ee.prototype.removeCloseEventListener=function(ce){},Ee.prototype.setupResizeObserver=function(){var ce=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){ce.resize(ce.target.clientWidth,ce.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return ce.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Ee.prototype.onPopupTargetResize=function(){var ce=1*this.target.clientWidth/this.target.clientHeight,se=this.editorCanvas.clientWidth/ce>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*ce:this.editorCanvas.clientWidth,fe=se<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/ce;this.resize(se,fe)},Ee.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Ee.prototype.resize=function(ce,se){this._isResizing=!0;var fe=ce/this.imageWidth,de=se/this.imageHeight;this.imageWidth=Math.round(ce),this.imageHeight=Math.round(se),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(fe,de),this._isResizing=!1},Ee.prototype.scaleMarkers=function(ce,se){var fe,de=this;this._currentMarker&&this._currentMarker instanceof Rt?this._currentMarker.scale(ce,se):(fe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(oe){oe!==de._currentMarker&&oe.scale(ce,se)}),fe!==void 0&&this.setCurrentMarker(fe)},Ee.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},Ee.prototype.setTopLeft=function(){var ce=this.editingTarget.getBoundingClientRect(),se=this.editorCanvas.getBoundingClientRect();this.left=ce.left-se.left,this.top=ce.top-se.top},Ee.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},Ee.prototype.addDefs=function(){for(var ce,se=[],fe=0;fe<arguments.length;fe++)se[fe]=arguments[fe];this.defs=Ae.createDefs(),this.addDefsToImage(),(ce=this.defs).append.apply(ce,se)},Ee.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Ee.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},Ee.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Ee.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Ee.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},Ee.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Ee.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},Ee.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var ce=document.createElement("a");ce.href="https://markerjs.com/",ce.target="_blank",ce.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',ce.title="Powered by marker.js",ce.style.display="grid",ce.style.alignItems="center",ce.style.justifyItems="center",ce.style.padding="3px",ce.style.width="20px",ce.style.height="20px",this.logoUI.appendChild(ce),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Ee.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")},Ee.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"},Ee.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Ee.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var ce=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=ce+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new wt(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new lt(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Ee.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Ee.prototype.removeMarker=function(ce){this.markerImage.removeChild(ce.container),this.markers.indexOf(ce)>-1&&this.markers.splice(this.markers.indexOf(ce),1),ce.dispose()},Ee.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())},Ee.prototype.toolbarButtonClicked=function(ce,se){if(ce==="marker"&&se!==void 0)this.createNewMarker(se);else if(ce==="action")switch(se){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()}},Ee.prototype.deleteSelectedMarker=function(){var ce=this;if(this._currentMarker!==void 0){var se=!1;if(this.eventListeners.markerbeforedelete.forEach(function(de){var oe=new Ct(ce,ce._currentMarker,!0);de(oe),oe.defaultPrevented&&(se=!0)}),!se){var fe=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 Ct(ce,fe))})}}},Ee.prototype.clear=function(){var ce=this,se=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Te){var je=new Ct(ce,void 0,!0);Te(je),je.defaultPrevented&&(se=!0)}),!se)){this.setCurrentMarker();for(var fe=function(Te){var je=de.markers[Te];de.setCurrentMarker(de.markers[Te]),de._currentMarker.dispose(),de.markerImage.removeChild(de._currentMarker.container),de.markers.splice(de.markers.indexOf(de._currentMarker),1),de.eventListeners.markerdelete.forEach(function(Et){return Et(new Ct(ce,je))})},de=this,oe=this.markers.length-1;oe>=0;oe--)fe(oe);this.addUndoStep()}},Object.defineProperty(Ee.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Ee.prototype.showNotesEditor=function(){var ce;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(ce=this._currentMarker.notes)!==null&&ce!==void 0?ce:"",this.overlayContainer.appendChild(this.notesArea))},Ee.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)},Ee.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Ee.prototype.addUndoStep=function(){var ce=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var se=this.getState(),fe=this.undoRedoManager.getLastUndoStep();if(!fe||fe.width===se.width&&fe.height===se.height){var de=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(se),de<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(oe){return oe(new Ht(ce))})}else this.undoRedoManager.replaceLastUndoStep(se),this.eventListeners.statechange.forEach(function(oe){return oe(new Ht(ce))})}},Ee.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Ee.prototype.undoStep=function(){var ce=this,se=this.undoRedoManager.undo();se!==void 0&&(this.restoreState(se),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(fe){return fe(new Ht(ce))}))},Ee.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Ee.prototype.redoStep=function(){var ce=this,se=this.undoRedoManager.redo();se!==void 0&&(this.restoreState(se),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(fe){return fe(new Ht(ce))}))},Ee.prototype.stepZoom=function(){var ce=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=ce<this.zoomSteps.length-1?this.zoomSteps[ce+1]:this.zoomSteps[0]},Ee.prototype.panTo=function(ce){this.contentDiv.scrollBy({left:this.prevPanPoint.x-ce.x,top:this.prevPanPoint.y-ce.y}),this.prevPanPoint=ce},Ee.prototype.startRenderAndClose=function(){return Pe(this,void 0,void 0,function(){var ce,se,fe=this;return et(this,function(de){switch(de.label){case 0:return[4,this.render()];case 1:return ce=de.sent(),se=this.getState(),this.eventListeners.render.forEach(function(oe){return oe(new It(fe,ce,se))}),this.close(!0),[2]}})})},Ee.prototype.getState=function(ce){ce===!0&&this.setCurrentMarker();var se={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(fe){return se.markers.push(fe.getState())}),se},Ee.prototype.restoreState=function(ce){var se=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);ce.markers.forEach(function(fe){var de=se._availableMarkerTypes.find(function(Te){return Te.typeName===fe.typeName});if(de!==void 0){var oe=se.addNewMarker(de);oe.restoreState(fe),se.markers.push(oe)}}),ce.width&&ce.height&&(ce.width!==this.imageWidth||ce.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/ce.width,this.imageHeight/ce.height),this.eventListeners.restorestate.forEach(function(fe){return fe(new Ht(se))})},Ee.prototype.addNewMarker=function(ce){var se=Ae.createGroup();return this.markerImage.appendChild(se),new ce(se,this.overlayContainer,this.settings)},Ee.prototype.createNewMarker=function(ce){var se,fe=this;(se=typeof ce=="string"?this._availableMarkerTypes.find(function(de){return de.typeName===ce}):ce)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(se),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(se.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(de){return de(new Ct(fe,fe._currentMarker))}))},Ee.prototype.markerCreated=function(ce){var se=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(ce),this.setCurrentMarker(ce),ce instanceof Dt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Dt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(fe){return fe(new Ct(se,se._currentMarker))})},Ee.prototype.colorChanged=function(ce){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=ce,this.settings.defaultStrokeColor=ce)},Ee.prototype.fillColorChanged=function(ce){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=ce)},Ee.prototype.markerStateChanged=function(ce){var se=this;this.eventListeners.markerchange.forEach(function(fe){return fe(new Ct(se,ce))})},Ee.prototype.setCurrentMarker=function(ce){var se=this;this._currentMarker!==ce&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(fe){return fe(new Ct(se,se._currentMarker))})),this._currentMarker=ce,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(fe){return fe(new Ct(se,se._currentMarker))}))},Ee.prototype.onPointerDown=function(ce){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||ce.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var se=this.markers.find(function(fe){return fe.ownsTarget(ce.target)});se!==void 0?(this.setCurrentMarker(se),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ce.clientX,ce.clientY),ce.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:ce.clientX,y:ce.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ce.clientX,ce.clientY))},Ee.prototype.onDblClick=function(ce){if(this._isFocused||this.focus(),this.mode==="select"){var se=this.markers.find(function(fe){return fe.ownsTarget(ce.target)});se!==void 0&&se!==this._currentMarker&&this.setCurrentMarker(se),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(ce.clientX,ce.clientY),ce.target):this.setCurrentMarker()}},Ee.prototype.onPointerMove=function(ce){this.touchPoints!==1&&ce.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||ce.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(ce.clientX,ce.clientY)):this.zoomLevel>1&&this.panTo({x:ce.clientX,y:ce.clientY}))},Ee.prototype.onPointerUp=function(ce){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(ce.clientX,ce.clientY)),this.isDragging=!1,this.addUndoStep()},Ee.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Ee.prototype.onKeyUp=function(ce){this._currentMarker===void 0||this.notesArea!==void 0||ce.key!=="Delete"&&ce.key!=="Backspace"||this.deleteSelectedMarker()},Ee.prototype.clientToLocalCoordinates=function(ce,se){var fe=this.markerImage.getBoundingClientRect();return{x:(ce-fe.left)/this.zoomLevel,y:(se-fe.top)/this.zoomLevel}},Ee.prototype.onWindowResize=function(){this.positionUI()},Ee.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var ce=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=ce+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},Ee.prototype.addLicenseKey=function(ce){ke.addKey(ce)},Ee.prototype.addEventListener=function(ce,se){this.eventListeners.addEventListener(ce,se)},Ee.prototype.removeEventListener=function(ce,se){this.eventListeners.removeEventListener(ce,se)},Ee.prototype.renderState=function(ce){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(ce),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Ee.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Ee.prototype.focus=function(){var ce=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(se){return se(new Ht(ce))}))},Ee.prototype.blur=function(){var ce=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(se){return se(new Ht(ce))}))},Ee.instanceCounter=0,Ee}()},95860:function(hn,Zt,le){"use strict";le.d(Zt,{Z:function(){return Ye}});var ge=le(87462),We=le(1413),Pe=le(4942),et=le(97685),be=le(45987),Ae=le(94184),ke=le.n(Ae),Se=le(67294);function pe(it){var Be=Se.useRef();Be.current=it;var xe=Se.useCallback(function(){for(var Ke,Ue=arguments.length,ft=new Array(Ue),pt=0;pt<Ue;pt++)ft[pt]=arguments[pt];return(Ke=Be.current)===null||Ke===void 0?void 0:Ke.call.apply(Ke,[Be].concat(ft))},[]);return xe}function Ie(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ot=Ie()?Se.useLayoutEffect:Se.useEffect,Oe=function(Be,xe){var Ke=Se.useRef(!0);ot(function(){return Be(Ke.current)},xe),ot(function(){return Ke.current=!1,function(){Ke.current=!0}},[])},wt=function(Be,xe){Oe(function(Ke){if(!Ke)return Be()},xe)},lt=null;function tt(it){var Be=Se.useRef(!1),xe=Se.useState(it),Ke=(0,et.Z)(xe,2),Ue=Ke[0],ft=Ke[1];Se.useEffect(function(){return Be.current=!1,function(){Be.current=!0}},[]);function pt(Mt,Qe){Qe&&Be.current||ft(Mt)}return[Ue,pt]}function Ge(it){return it!==void 0}function Me(it,Be){var xe=Be||{},Ke=xe.defaultValue,Ue=xe.value,ft=xe.onChange,pt=xe.postState,Mt=tt(function(){return Ge(Ue)?Ue:Ge(Ke)?typeof Ke=="function"?Ke():Ke:typeof it=="function"?it():it}),Qe=(0,et.Z)(Mt,2),Rt=Qe[0],Dt=Qe[1],on=Ue!==void 0?Ue:Rt,Ut=pt?pt(on):on,wn=pe(ft),Xn=tt([on]),nr=(0,et.Z)(Xn,2),Je=nr[0],_e=nr[1];wt(function(){var Sn=Je[0];Rt!==Sn&&wn(Rt,Sn)},[Je]),wt(function(){Ge(Ue)||Dt(Ue)},[Ue]);var Ft=pe(function(Sn,an){Dt(Sn,an),_e([on],an)});return[Ut,Ft]}var bt=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],zt=(0,Se.forwardRef)(function(it,Be){var xe,Ke=it.prefixCls,Ue=Ke===void 0?"rc-checkbox":Ke,ft=it.className,pt=it.style,Mt=it.checked,Qe=it.disabled,Rt=it.defaultChecked,Dt=Rt===void 0?!1:Rt,on=it.type,Ut=on===void 0?"checkbox":on,wn=it.title,Xn=it.onChange,nr=(0,be.Z)(it,bt),Je=(0,Se.useRef)(null),_e=Me(Dt,{value:Mt}),Ft=(0,et.Z)(_e,2),Sn=Ft[0],an=Ft[1];(0,Se.useImperativeHandle)(Be,function(){return{focus:function(){var kn;(kn=Je.current)===null||kn===void 0||kn.focus()},blur:function(){var kn;(kn=Je.current)===null||kn===void 0||kn.blur()},input:Je.current}});var nt=ke()(Ue,ft,(xe={},(0,Pe.Z)(xe,"".concat(Ue,"-checked"),Sn),(0,Pe.Z)(xe,"".concat(Ue,"-disabled"),Qe),xe)),at=function(kn){Qe||("checked"in it||an(kn.target.checked),Xn==null||Xn({target:(0,We.Z)((0,We.Z)({},it),{},{type:Ut,checked:kn.target.checked}),stopPropagation:function(){kn.stopPropagation()},preventDefault:function(){kn.preventDefault()},nativeEvent:kn.nativeEvent}))};return Se.createElement("span",{className:nt,title:wn,style:pt},Se.createElement("input",(0,ge.Z)({},nr,{className:"".concat(Ue,"-input"),ref:Je,onChange:at,disabled:Qe,checked:!!Sn,type:Ut})),Se.createElement("span",{className:"".concat(Ue,"-inner")}))}),Ye=zt},26819:function(hn,Zt){"use strict";var le;var ge=typeof Symbol=="function"&&Symbol.for,We=ge?Symbol.for("react.element"):60103,Pe=ge?Symbol.for("react.portal"):60106,et=ge?Symbol.for("react.fragment"):60107,be=ge?Symbol.for("react.strict_mode"):60108,Ae=ge?Symbol.for("react.profiler"):60114,ke=ge?Symbol.for("react.provider"):60109,Se=ge?Symbol.for("react.context"):60110,pe=ge?Symbol.for("react.async_mode"):60111,Ie=ge?Symbol.for("react.concurrent_mode"):60111,ot=ge?Symbol.for("react.forward_ref"):60112,Oe=ge?Symbol.for("react.suspense"):60113,wt=ge?Symbol.for("react.suspense_list"):60120,lt=ge?Symbol.for("react.memo"):60115,tt=ge?Symbol.for("react.lazy"):60116,Ge=ge?Symbol.for("react.block"):60121,Me=ge?Symbol.for("react.fundamental"):60117,bt=ge?Symbol.for("react.responder"):60118,zt=ge?Symbol.for("react.scope"):60119;function Ye(Be){if(typeof Be=="object"&&Be!==null){var xe=Be.$$typeof;switch(xe){case We:switch(Be=Be.type,Be){case pe:case Ie:case et:case Ae:case be:case Oe:return Be;default:switch(Be=Be&&Be.$$typeof,Be){case Se:case ot:case tt:case lt:case ke:return Be;default:return xe}}case Pe:return xe}}}function it(Be){return Ye(Be)===Ie}le=pe,le=Ie,le=Se,le=ke,le=We,le=ot,le=et,le=tt,le=lt,le=Pe,le=Ae,le=be,le=Oe,le=function(Be){return it(Be)||Ye(Be)===pe},le=it,le=function(Be){return Ye(Be)===Se},le=function(Be){return Ye(Be)===ke},le=function(Be){return typeof Be=="object"&&Be!==null&&Be.$$typeof===We},le=function(Be){return Ye(Be)===ot},le=function(Be){return Ye(Be)===et},le=function(Be){return Ye(Be)===tt},Zt.isMemo=function(Be){return Ye(Be)===lt},le=function(Be){return Ye(Be)===Pe},le=function(Be){return Ye(Be)===Ae},le=function(Be){return Ye(Be)===be},le=function(Be){return Ye(Be)===Oe},le=function(Be){return typeof Be=="string"||typeof Be=="function"||Be===et||Be===Ie||Be===Ae||Be===be||Be===Oe||Be===wt||typeof Be=="object"&&Be!==null&&(Be.$$typeof===tt||Be.$$typeof===lt||Be.$$typeof===ke||Be.$$typeof===Se||Be.$$typeof===ot||Be.$$typeof===Me||Be.$$typeof===bt||Be.$$typeof===zt||Be.$$typeof===Ge)},le=Ye},18459:function(hn,Zt,le){"use strict";hn.exports=le(26819)},16651:function(hn,Zt){"use strict";var le;var ge=Symbol.for("react.element"),We=Symbol.for("react.portal"),Pe=Symbol.for("react.fragment"),et=Symbol.for("react.strict_mode"),be=Symbol.for("react.profiler"),Ae=Symbol.for("react.provider"),ke=Symbol.for("react.context"),Se=Symbol.for("react.server_context"),pe=Symbol.for("react.forward_ref"),Ie=Symbol.for("react.suspense"),ot=Symbol.for("react.suspense_list"),Oe=Symbol.for("react.memo"),wt=Symbol.for("react.lazy"),lt=Symbol.for("react.offscreen"),tt;tt=Symbol.for("react.module.reference");function Ge(Me){if(typeof Me=="object"&&Me!==null){var bt=Me.$$typeof;switch(bt){case ge:switch(Me=Me.type,Me){case Pe:case be:case et:case Ie:case ot:return Me;default:switch(Me=Me&&Me.$$typeof,Me){case Se:case ke:case pe:case wt:case Oe:case Ae:return Me;default:return bt}}case We:return bt}}}le=ke,le=Ae,le=ge,le=pe,le=Pe,le=wt,le=Oe,le=We,le=be,le=et,le=Ie,le=ot,le=function(){return!1},le=function(){return!1},le=function(Me){return Ge(Me)===ke},le=function(Me){return Ge(Me)===Ae},le=function(Me){return typeof Me=="object"&&Me!==null&&Me.$$typeof===ge},le=function(Me){return Ge(Me)===pe},le=function(Me){return Ge(Me)===Pe},le=function(Me){return Ge(Me)===wt},le=function(Me){return Ge(Me)===Oe},le=function(Me){return Ge(Me)===We},le=function(Me){return Ge(Me)===be},le=function(Me){return Ge(Me)===et},le=function(Me){return Ge(Me)===Ie},le=function(Me){return Ge(Me)===ot},le=function(Me){return typeof Me=="string"||typeof Me=="function"||Me===Pe||Me===be||Me===et||Me===Ie||Me===ot||Me===lt||typeof Me=="object"&&Me!==null&&(Me.$$typeof===wt||Me.$$typeof===Oe||Me.$$typeof===Ae||Me.$$typeof===ke||Me.$$typeof===pe||Me.$$typeof===tt||Me.getModuleId!==void 0)},le=Ge},33993:function(hn,Zt,le){"use strict";le(16651)},82523:function(hn,Zt){"use strict";var le;var ge=Symbol.for("react.element"),We=Symbol.for("react.portal"),Pe=Symbol.for("react.fragment"),et=Symbol.for("react.strict_mode"),be=Symbol.for("react.profiler"),Ae=Symbol.for("react.provider"),ke=Symbol.for("react.context"),Se=Symbol.for("react.server_context"),pe=Symbol.for("react.forward_ref"),Ie=Symbol.for("react.suspense"),ot=Symbol.for("react.suspense_list"),Oe=Symbol.for("react.memo"),wt=Symbol.for("react.lazy"),lt=Symbol.for("react.offscreen"),tt;tt=Symbol.for("react.module.reference");function Ge(Me){if(typeof Me=="object"&&Me!==null){var bt=Me.$$typeof;switch(bt){case ge:switch(Me=Me.type,Me){case Pe:case be:case et:case Ie:case ot:return Me;default:switch(Me=Me&&Me.$$typeof,Me){case Se:case ke:case pe:case wt:case Oe:case Ae:return Me;default:return bt}}case We:return bt}}}le=ke,le=Ae,le=ge,le=pe,le=Pe,le=wt,le=Oe,le=We,le=be,le=et,le=Ie,le=ot,le=function(){return!1},le=function(){return!1},le=function(Me){return Ge(Me)===ke},le=function(Me){return Ge(Me)===Ae},le=function(Me){return typeof Me=="object"&&Me!==null&&Me.$$typeof===ge},le=function(Me){return Ge(Me)===pe},le=function(Me){return Ge(Me)===Pe},le=function(Me){return Ge(Me)===wt},le=function(Me){return Ge(Me)===Oe},le=function(Me){return Ge(Me)===We},le=function(Me){return Ge(Me)===be},le=function(Me){return Ge(Me)===et},le=function(Me){return Ge(Me)===Ie},le=function(Me){return Ge(Me)===ot},le=function(Me){return typeof Me=="string"||typeof Me=="function"||Me===Pe||Me===be||Me===et||Me===Ie||Me===ot||Me===lt||typeof Me=="object"&&Me!==null&&(Me.$$typeof===wt||Me.$$typeof===Oe||Me.$$typeof===Ae||Me.$$typeof===ke||Me.$$typeof===pe||Me.$$typeof===tt||Me.getModuleId!==void 0)},le=Ge},27183:function(hn,Zt,le){"use strict";le(82523)},67656:function(hn,Zt,le){"use strict";le.r(Zt),le.d(Zt,{BaseInput:function(){return Ie},default:function(){return zt}});var ge=le(87462),We=le(1413),Pe=le(4942),et=le(71002),be=le(94184),Ae=le.n(be),ke=le(67294),Se=le(87887),pe=function(it){var Be,xe,Ke=it.inputElement,Ue=it.prefixCls,ft=it.prefix,pt=it.suffix,Mt=it.addonBefore,Qe=it.addonAfter,Rt=it.className,Dt=it.style,on=it.disabled,Ut=it.readOnly,wn=it.focused,Xn=it.triggerFocus,nr=it.allowClear,Je=it.value,_e=it.handleReset,Ft=it.hidden,Sn=it.classes,an=it.classNames,nt=it.dataAttrs,at=it.styles,$t=it.components,kn=($t==null?void 0:$t.affixWrapper)||"span",Ht=($t==null?void 0:$t.groupWrapper)||"span",It=($t==null?void 0:$t.wrapper)||"span",Ct=($t==null?void 0:$t.groupAddon)||"span",tn=(0,ke.useRef)(null),pn=function(Bt){var Nt;(Nt=tn.current)!==null&&Nt!==void 0&&Nt.contains(Bt.target)&&(Xn==null||Xn())},Ee=function(){var Bt;if(!nr)return null;var Nt=!on&&!Ut&&Je,zn="".concat(Ue,"-clear-icon"),Gn=(0,et.Z)(nr)==="object"&&nr!==null&&nr!==void 0&&nr.clearIcon?nr.clearIcon:"\u2716";return ke.createElement("span",{onClick:_e,onMouseDown:function(cn){return cn.preventDefault()},className:Ae()(zn,(Bt={},(0,Pe.Z)(Bt,"".concat(zn,"-hidden"),!Nt),(0,Pe.Z)(Bt,"".concat(zn,"-has-suffix"),!!pt),Bt)),role:"button",tabIndex:-1},Gn)},ce=(0,ke.cloneElement)(Ke,{value:Je,hidden:Ft,className:Ae()((Be=Ke.props)===null||Be===void 0?void 0:Be.className,!(0,Se.X3)(it)&&!(0,Se.He)(it)&&Rt)||null,style:(0,We.Z)((0,We.Z)({},(xe=Ke.props)===null||xe===void 0?void 0:xe.style),!(0,Se.X3)(it)&&!(0,Se.He)(it)?Dt:{})});if((0,Se.X3)(it)){var se,fe="".concat(Ue,"-affix-wrapper"),de=Ae()(fe,(se={},(0,Pe.Z)(se,"".concat(fe,"-disabled"),on),(0,Pe.Z)(se,"".concat(fe,"-focused"),wn),(0,Pe.Z)(se,"".concat(fe,"-readonly"),Ut),(0,Pe.Z)(se,"".concat(fe,"-input-with-clear-btn"),pt&&nr&&Je),se),!(0,Se.He)(it)&&Rt,Sn==null?void 0:Sn.affixWrapper,an==null?void 0:an.affixWrapper),oe=(pt||nr)&&ke.createElement("span",{className:Ae()("".concat(Ue,"-suffix"),an==null?void 0:an.suffix),style:at==null?void 0:at.suffix},Ee(),pt);ce=ke.createElement(kn,(0,ge.Z)({className:de,style:(0,We.Z)((0,We.Z)({},(0,Se.He)(it)?void 0:Dt),at==null?void 0:at.affixWrapper),hidden:!(0,Se.He)(it)&&Ft,onClick:pn},nt==null?void 0:nt.affixWrapper,{ref:tn}),ft&&ke.createElement("span",{className:Ae()("".concat(Ue,"-prefix"),an==null?void 0:an.prefix),style:at==null?void 0:at.prefix},ft),(0,ke.cloneElement)(Ke,{value:Je,hidden:null}),oe)}if((0,Se.He)(it)){var Te="".concat(Ue,"-group"),je="".concat(Te,"-addon"),Et=Ae()("".concat(Ue,"-wrapper"),Te,Sn==null?void 0:Sn.wrapper),At=Ae()("".concat(Ue,"-group-wrapper"),Rt,Sn==null?void 0:Sn.group);return ke.createElement(Ht,{className:At,style:Dt,hidden:Ft},ke.createElement(It,{className:Et},Mt&&ke.createElement(Ct,{className:je},Mt),(0,ke.cloneElement)(ce,{hidden:null}),Qe&&ke.createElement(Ct,{className:je},Qe)))}return ce},Ie=pe,ot=le(74902),Oe=le(97685),wt=le(45987),lt=le(21770),tt=le(98423),Ge=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],Me=(0,ke.forwardRef)(function(Ye,it){var Be=Ye.autoComplete,xe=Ye.onChange,Ke=Ye.onFocus,Ue=Ye.onBlur,ft=Ye.onPressEnter,pt=Ye.onKeyDown,Mt=Ye.prefixCls,Qe=Mt===void 0?"rc-input":Mt,Rt=Ye.disabled,Dt=Ye.htmlSize,on=Ye.className,Ut=Ye.maxLength,wn=Ye.suffix,Xn=Ye.showCount,nr=Ye.type,Je=nr===void 0?"text":nr,_e=Ye.classes,Ft=Ye.classNames,Sn=Ye.styles,an=(0,wt.Z)(Ye,Ge),nt=(0,lt.Z)(Ye.defaultValue,{value:Ye.value}),at=(0,Oe.Z)(nt,2),$t=at[0],kn=at[1],Ht=(0,ke.useState)(!1),It=(0,Oe.Z)(Ht,2),Ct=It[0],tn=It[1],pn=(0,ke.useRef)(null),Ee=function(At){pn.current&&(0,Se.nH)(pn.current,At)};(0,ke.useImperativeHandle)(it,function(){return{focus:Ee,blur:function(){var At;(At=pn.current)===null||At===void 0||At.blur()},setSelectionRange:function(At,Ot,Bt){var Nt;(Nt=pn.current)===null||Nt===void 0||Nt.setSelectionRange(At,Ot,Bt)},select:function(){var At;(At=pn.current)===null||At===void 0||At.select()},input:pn.current}}),(0,ke.useEffect)(function(){tn(function(Et){return Et&&Rt?!1:Et})},[Rt]);var ce=function(At){Ye.value===void 0&&kn(At.target.value),pn.current&&(0,Se.rJ)(pn.current,At,xe)},se=function(At){ft&&At.key==="Enter"&&ft(At),pt==null||pt(At)},fe=function(At){tn(!0),Ke==null||Ke(At)},de=function(At){tn(!1),Ue==null||Ue(At)},oe=function(At){kn(""),Ee(),pn.current&&(0,Se.rJ)(pn.current,At,xe)},Te=function(){var At=(0,tt.Z)(Ye,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return ke.createElement("input",(0,ge.Z)({autoComplete:Be},At,{onChange:ce,onFocus:fe,onBlur:de,onKeyDown:se,className:Ae()(Qe,(0,Pe.Z)({},"".concat(Qe,"-disabled"),Rt),Ft==null?void 0:Ft.input),style:Sn==null?void 0:Sn.input,ref:pn,size:Dt,type:Je}))},je=function(){var At=Number(Ut)>0;if(wn||Xn){var Ot=(0,Se.D7)($t),Bt=(0,ot.Z)(Ot).length,Nt=(0,et.Z)(Xn)==="object"?Xn.formatter({value:Ot,count:Bt,maxLength:Ut}):"".concat(Bt).concat(At?" / ".concat(Ut):"");return ke.createElement(ke.Fragment,null,!!Xn&&ke.createElement("span",{className:Ae()("".concat(Qe,"-show-count-suffix"),(0,Pe.Z)({},"".concat(Qe,"-show-count-has-suffix"),!!wn),Ft==null?void 0:Ft.count),style:(0,We.Z)({},Sn==null?void 0:Sn.count)},Nt),wn)}return null};return ke.createElement(Ie,(0,ge.Z)({},an,{prefixCls:Qe,className:on,inputElement:Te(),handleReset:oe,value:(0,Se.D7)($t),focused:Ct,triggerFocus:Ee,suffix:je(),disabled:Rt,classes:_e,classNames:Ft,styles:Sn}))}),bt=Me,zt=bt},87887:function(hn,Zt,le){"use strict";le.d(Zt,{D7:function(){return be},He:function(){return ge},X3:function(){return We},nH:function(){return et},rJ:function(){return Pe}});function ge(Ae){return!!(Ae.addonBefore||Ae.addonAfter)}function We(Ae){return!!(Ae.prefix||Ae.suffix||Ae.allowClear)}function Pe(Ae,ke,Se,pe){if(Se){var Ie=ke;if(ke.type==="click"){var ot=Ae.cloneNode(!0);Ie=Object.create(ke,{target:{value:ot},currentTarget:{value:ot}}),ot.value="",Se(Ie);return}if(pe!==void 0){Ie=Object.create(ke,{target:{value:Ae},currentTarget:{value:Ae}}),Ae.value=pe,Se(Ie);return}Se(Ie)}}function et(Ae,ke){if(Ae){Ae.focus(ke);var Se=ke||{},pe=Se.cursor;if(pe){var Ie=Ae.value.length;switch(pe){case"start":Ae.setSelectionRange(0,0);break;case"end":Ae.setSelectionRange(Ie,Ie);break;default:Ae.setSelectionRange(0,Ie)}}}}function be(Ae){return typeof Ae=="undefined"||Ae===null?"":String(Ae)}},78595:function(hn,Zt,le){"use strict";le.d(Zt,{iz:function(){return Fr},ck:function(){return ci},BW:function(){return Tr},sN:function(){return ci},Wd:function(){return Wt},ZP:function(){return ze},Xl:function(){return Nt}});var ge=le(87462),We=le(4942),Pe=le(1413),et=le(74902),be=le(97685),Ae=le(45987),ke=le(94184),Se=le.n(ke),pe=le(67294),Ie=le(48555);function ot(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Oe=ot()?pe.useLayoutEffect:pe.useEffect,wt=function(Ze,rt){var dt=pe.useRef(!0);Oe(function(){return Ze(dt.current)},rt),Oe(function(){return dt.current=!1,function(){dt.current=!0}},[])},lt=function(Ze,rt){wt(function(dt){if(!dt)return Ze()},rt)},tt=wt,Ge=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Me=void 0;function bt(Fe,Ze){var rt=Fe.prefixCls,dt=Fe.invalidate,yt=Fe.item,Xt=Fe.renderItem,Jt=Fe.responsive,Fn=Fe.responsiveDisabled,ir=Fe.registerSize,_n=Fe.itemKey,sn=Fe.className,nn=Fe.style,gn=Fe.children,xn=Fe.display,tr=Fe.order,Kn=Fe.component,Nn=Kn===void 0?"div":Kn,$n=(0,Ae.Z)(Fe,Ge),Wn=Jt&&!xn;function or(Yt){ir(_n,Yt)}pe.useEffect(function(){return function(){or(null)}},[]);var He=Xt&&yt!==Me?Xt(yt):gn,$e;dt||($e={opacity:Wn?0:1,height:Wn?0:Me,overflowY:Wn?"hidden":Me,order:Jt?tr:Me,pointerEvents:Wn?"none":Me,position:Wn?"absolute":Me});var Tt={};Wn&&(Tt["aria-hidden"]=!0);var mt=pe.createElement(Nn,(0,ge.Z)({className:Se()(!dt&&rt,sn),style:(0,Pe.Z)((0,Pe.Z)({},$e),nn)},Tt,$n,{ref:Ze}),He);return Jt&&(mt=pe.createElement(Ie.Z,{onResize:function(fn){var ln=fn.offsetWidth;or(ln)},disabled:Fn},mt)),mt}var zt=pe.forwardRef(bt);zt.displayName="Item";var Ye=zt;function it(Fe){var Ze=pe.useRef();Ze.current=Fe;var rt=pe.useCallback(function(){for(var dt,yt=arguments.length,Xt=new Array(yt),Jt=0;Jt<yt;Jt++)Xt[Jt]=arguments[Jt];return(dt=Ze.current)===null||dt===void 0?void 0:dt.call.apply(dt,[Ze].concat(Xt))},[]);return rt}var Be=le(73935),xe=function(Ze){return+setTimeout(Ze,16)},Ke=function(Ze){return clearTimeout(Ze)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(xe=function(Ze){return window.requestAnimationFrame(Ze)},Ke=function(Ze){return window.cancelAnimationFrame(Ze)});var Ue=0,ft=new Map;function pt(Fe){ft.delete(Fe)}var Mt=function(Ze){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Ue+=1;var dt=Ue;function yt(Xt){if(Xt===0)pt(dt),Ze();else{var Jt=xe(function(){yt(Xt-1)});ft.set(dt,Jt)}}return yt(rt),dt};Mt.cancel=function(Fe){var Ze=ft.get(Fe);return pt(Ze),Ke(Ze)};var Qe=Mt;function Rt(Fe){if(typeof MessageChannel=="undefined")Qe(Fe);else{var Ze=new MessageChannel;Ze.port1.onmessage=function(){return Fe()},Ze.port2.postMessage(void 0)}}function Dt(){var Fe=pe.useRef(null),Ze=function(dt){Fe.current||(Fe.current=[],Rt(function(){(0,Be.unstable_batchedUpdates)(function(){Fe.current.forEach(function(yt){yt()}),Fe.current=null})})),Fe.current.push(dt)};return Ze}function on(Fe,Ze){var rt=pe.useState(Ze),dt=(0,be.Z)(rt,2),yt=dt[0],Xt=dt[1],Jt=it(function(Fn){Fe(function(){Xt(Fn)})});return[yt,Jt]}var Ut=pe.createContext(null),wn=["component"],Xn=["className"],nr=["className"],Je=function(Ze,rt){var dt=pe.useContext(Ut);if(!dt){var yt=Ze.component,Xt=yt===void 0?"div":yt,Jt=(0,Ae.Z)(Ze,wn);return pe.createElement(Xt,(0,ge.Z)({},Jt,{ref:rt}))}var Fn=dt.className,ir=(0,Ae.Z)(dt,Xn),_n=Ze.className,sn=(0,Ae.Z)(Ze,nr);return pe.createElement(Ut.Provider,{value:null},pe.createElement(Ye,(0,ge.Z)({ref:rt,className:Se()(Fn,_n)},ir,sn)))},_e=pe.forwardRef(Je);_e.displayName="RawItem";var Ft=_e,Sn=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],an="responsive",nt="invalidate";function at(Fe){return"+ ".concat(Fe.length," ...")}function $t(Fe,Ze){var rt=Fe.prefixCls,dt=rt===void 0?"rc-overflow":rt,yt=Fe.data,Xt=yt===void 0?[]:yt,Jt=Fe.renderItem,Fn=Fe.renderRawItem,ir=Fe.itemKey,_n=Fe.itemWidth,sn=_n===void 0?10:_n,nn=Fe.ssr,gn=Fe.style,xn=Fe.className,tr=Fe.maxCount,Kn=Fe.renderRest,Nn=Fe.renderRawRest,$n=Fe.suffix,Wn=Fe.component,or=Wn===void 0?"div":Wn,He=Fe.itemComponent,$e=Fe.onVisibleChange,Tt=(0,Ae.Z)(Fe,Sn),mt=nn==="full",Yt=Dt(),fn=on(Yt,null),ln=(0,be.Z)(fn,2),Ln=ln[0],yn=ln[1],Qt=Ln||0,Cn=on(Yt,new Map),Dn=(0,be.Z)(Cn,2),ar=Dn[0],An=Dn[1],gr=on(Yt,0),Br=(0,be.Z)(gr,2),br=Br[0],Ar=Br[1],ur=on(Yt,0),Er=(0,be.Z)(ur,2),Nr=Er[0],Kr=Er[1],xr=on(Yt,0),Vr=(0,be.Z)(xr,2),fi=Vr[0],Hi=Vr[1],Ti=(0,pe.useState)(null),mi=(0,be.Z)(Ti,2),Bi=mi[0],Oi=mi[1],qr=(0,pe.useState)(null),gi=(0,be.Z)(qr,2),Pr=gi[0],Ur=gi[1],si=pe.useMemo(function(){return Pr===null&&mt?Number.MAX_SAFE_INTEGER:Pr||0},[Pr,Ln]),Ii=(0,pe.useState)(!1),Ra=(0,be.Z)(Ii,2),Fa=Ra[0],La=Ra[1],qi="".concat(dt,"-item"),Ni=Math.max(br,Nr),ri=tr===an,Pa=Xt.length&&ri,ii=tr===nt,Rr=Pa||typeof tr=="number"&&Xt.length>tr,yi=(0,pe.useMemo)(function(){var ai=Xt;return Pa?Ln===null&&mt?ai=Xt:ai=Xt.slice(0,Math.min(Xt.length,Qt/sn)):typeof tr=="number"&&(ai=Xt.slice(0,tr)),ai},[Xt,sn,Ln,tr,Pa]),Qi=(0,pe.useMemo)(function(){return Pa?Xt.slice(si+1):Xt.slice(yi.length)},[Xt,yi,Pa,si]),Mi=(0,pe.useCallback)(function(ai,bi){var Ji;return typeof ir=="function"?ir(ai):(Ji=ir&&(ai==null?void 0:ai[ir]))!==null&&Ji!==void 0?Ji:bi},[ir]),Vi=(0,pe.useCallback)(Jt||function(ai){return ai},[Jt]);function jr(ai,bi,Ji){Pr===ai&&(bi===void 0||bi===Bi)||(Ur(ai),Ji||(La(ai<Xt.length-1),$e==null||$e(ai)),bi!==void 0&&Oi(bi))}function aa(ai,bi){yn(bi.clientWidth)}function pa(ai,bi){An(function(Ji){var ga=new Map(Ji);return bi===null?ga.delete(ai):ga.set(ai,bi),ga})}function ra(ai,bi){Kr(bi),Ar(Nr)}function ma(ai,bi){Hi(bi)}function Sa(ai){return ar.get(Mi(yi[ai],ai))}tt(function(){if(Qt&&typeof Ni=="number"&&yi){var ai=fi,bi=yi.length,Ji=bi-1;if(!bi){jr(0,null);return}for(var ga=0;ga<bi;ga+=1){var Ka=Sa(ga);if(mt&&(Ka=Ka||0),Ka===void 0){jr(ga-1,void 0,!0);break}if(ai+=Ka,Ji===0&&ai<=Qt||ga===Ji-1&&ai+Sa(Ji)<=Qt){jr(Ji,null);break}else if(ai+Ni>Qt){jr(ga-1,ai-Ka-fi+Nr);break}}$n&&Sa(0)+fi>Qt&&Oi(null)}},[Qt,ar,Nr,fi,Mi,yi]);var Ua=Fa&&!!Qi.length,ia={};Bi!==null&&Pa&&(ia={position:"absolute",left:Bi,top:0});var Ca={prefixCls:qi,responsive:Pa,component:He,invalidate:ii},Qa=Fn?function(ai,bi){var Ji=Mi(ai,bi);return pe.createElement(Ut.Provider,{key:Ji,value:(0,Pe.Z)((0,Pe.Z)({},Ca),{},{order:bi,item:ai,itemKey:Ji,registerSize:pa,display:bi<=si})},Fn(ai,bi))}:function(ai,bi){var Ji=Mi(ai,bi);return pe.createElement(Ye,(0,ge.Z)({},Ca,{order:bi,key:Ji,item:ai,renderItem:Vi,itemKey:Ji,registerSize:pa,display:bi<=si}))},ja,so={order:Ua?si:Number.MAX_SAFE_INTEGER,className:"".concat(qi,"-rest"),registerSize:ra,display:Ua};if(Nn)Nn&&(ja=pe.createElement(Ut.Provider,{value:(0,Pe.Z)((0,Pe.Z)({},Ca),so)},Nn(Qi)));else{var za=Kn||at;ja=pe.createElement(Ye,(0,ge.Z)({},Ca,so),typeof za=="function"?za(Qi):za)}var ba=pe.createElement(or,(0,ge.Z)({className:Se()(!ii&&dt,xn),style:gn,ref:Ze},Tt),yi.map(Qa),Rr?ja:null,$n&&pe.createElement(Ye,(0,ge.Z)({},Ca,{responsive:ri,responsiveDisabled:!Pa,order:si,className:"".concat(qi,"-suffix"),registerSize:ma,display:!0,style:ia}),$n));return ri&&(ba=pe.createElement(Ie.Z,{onResize:aa,disabled:!Pa},ba)),ba}var kn=pe.forwardRef($t);kn.displayName="Overflow",kn.Item=Ft,kn.RESPONSIVE=an,kn.INVALIDATE=nt;var Ht=kn,It=Ht,Ct=le(21770),tn=le(80334),pn=le(91881),Ee=pe.createContext(null);function ce(Fe,Ze){return Fe===void 0?null:"".concat(Fe,"-").concat(Ze)}function se(Fe){var Ze=pe.useContext(Ee);return ce(Ze,Fe)}var fe=le(56982),de=["children","locked"],oe=pe.createContext(null);function Te(Fe,Ze){var rt=(0,Pe.Z)({},Fe);return Object.keys(Ze).forEach(function(dt){var yt=Ze[dt];yt!==void 0&&(rt[dt]=yt)}),rt}function je(Fe){var Ze=Fe.children,rt=Fe.locked,dt=(0,Ae.Z)(Fe,de),yt=pe.useContext(oe),Xt=(0,fe.Z)(function(){return Te(yt,dt)},[yt,dt],function(Jt,Fn){return!rt&&(Jt[0]!==Fn[0]||!(0,pn.Z)(Jt[1],Fn[1],!0))});return pe.createElement(oe.Provider,{value:Xt},Ze)}var Et=[],At=pe.createContext(null);function Ot(){return pe.useContext(At)}var Bt=pe.createContext(Et);function Nt(Fe){var Ze=pe.useContext(Bt);return pe.useMemo(function(){return Fe!==void 0?[].concat((0,et.Z)(Ze),[Fe]):Ze},[Ze,Fe])}var zn=pe.createContext(null),Gn=pe.createContext({}),_t=Gn,cn=le(15105),Jn=le(75164),lr=function(Fe){if(!Fe)return!1;if(Fe instanceof Element){if(Fe.offsetParent)return!0;if(Fe.getBBox){var Ze=Fe.getBBox(),rt=Ze.width,dt=Ze.height;if(rt||dt)return!0}if(Fe.getBoundingClientRect){var yt=Fe.getBoundingClientRect(),Xt=yt.width,Jt=yt.height;if(Xt||Jt)return!0}}return!1};function En(Fe){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(lr(Fe)){var rt=Fe.nodeName.toLowerCase(),dt=["input","select","textarea","button"].includes(rt)||Fe.isContentEditable||rt==="a"&&!!Fe.getAttribute("href"),yt=Fe.getAttribute("tabindex"),Xt=Number(yt),Jt=null;return yt&&!Number.isNaN(Xt)?Jt=Xt:dt&&Jt===null&&(Jt=0),dt&&Fe.disabled&&(Jt=null),Jt!==null&&(Jt>=0||Ze&&Jt<0)}return!1}function wr(Fe){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,rt=(0,et.Z)(Fe.querySelectorAll("*")).filter(function(dt){return En(dt,Ze)});return En(Fe,Ze)&&rt.unshift(Fe),rt}var xi=null;function ei(){xi=document.activeElement}function Yr(){xi=null}function Gr(){if(xi)try{xi.focus()}catch(Fe){}}function Ai(Fe,Ze){if(Ze.keyCode===9){var rt=wr(Fe),dt=rt[Ze.shiftKey?0:rt.length-1],yt=dt===document.activeElement||Fe===document.activeElement;if(yt){var Xt=rt[Ze.shiftKey?rt.length-1:0];Xt.focus(),Ze.preventDefault()}}}var ti=cn.Z.LEFT,ki=cn.Z.RIGHT,Ri=cn.Z.UP,jn=cn.Z.DOWN,Pi=cn.Z.ENTER,va=cn.Z.ESC,da=cn.Z.HOME,ya=cn.Z.END,ea=[Ri,jn,ti,ki];function kt(Fe,Ze,rt,dt){var yt,Xt,Jt,Fn,ir="prev",_n="next",sn="children",nn="parent";if(Fe==="inline"&&dt===Pi)return{inlineTrigger:!0};var gn=(yt={},(0,We.Z)(yt,Ri,ir),(0,We.Z)(yt,jn,_n),yt),xn=(Xt={},(0,We.Z)(Xt,ti,rt?_n:ir),(0,We.Z)(Xt,ki,rt?ir:_n),(0,We.Z)(Xt,jn,sn),(0,We.Z)(Xt,Pi,sn),Xt),tr=(Jt={},(0,We.Z)(Jt,Ri,ir),(0,We.Z)(Jt,jn,_n),(0,We.Z)(Jt,Pi,sn),(0,We.Z)(Jt,va,nn),(0,We.Z)(Jt,ti,rt?sn:nn),(0,We.Z)(Jt,ki,rt?nn:sn),Jt),Kn={inline:gn,horizontal:xn,vertical:tr,inlineSub:gn,horizontalSub:tr,verticalSub:tr},Nn=(Fn=Kn["".concat(Fe).concat(Ze?"":"Sub")])===null||Fn===void 0?void 0:Fn[dt];switch(Nn){case ir:return{offset:-1,sibling:!0};case _n:return{offset:1,sibling:!0};case nn:return{offset:-1,sibling:!1};case sn:return{offset:1,sibling:!1};default:return null}}function bn(Fe){for(var Ze=Fe;Ze;){if(Ze.getAttribute("data-menu-list"))return Ze;Ze=Ze.parentElement}return null}function Tn(Fe,Ze){for(var rt=Fe||document.activeElement;rt;){if(Ze.has(rt))return rt;rt=rt.parentElement}return null}function In(Fe,Ze){var rt=wr(Fe,!0);return rt.filter(function(dt){return Ze.has(dt)})}function kr(Fe,Ze,rt){var dt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Fe)return null;var yt=In(Fe,Ze),Xt=yt.length,Jt=yt.findIndex(function(Fn){return rt===Fn});return dt<0?Jt===-1?Jt=Xt-1:Jt-=1:dt>0&&(Jt+=1),Jt=(Jt+Xt)%Xt,yt[Jt]}function qn(Fe,Ze,rt,dt,yt,Xt,Jt,Fn,ir,_n){var sn=pe.useRef(),nn=pe.useRef();nn.current=Ze;var gn=function(){Jn.Z.cancel(sn.current)};return pe.useEffect(function(){return function(){gn()}},[]),function(xn){var tr=xn.which;if([].concat(ea,[Pi,va,da,ya]).includes(tr)){var Kn,Nn,$n,Wn=function(){Kn=new Set,Nn=new Map,$n=new Map;var Dn=Xt();return Dn.forEach(function(ar){var An=document.querySelector("[data-menu-id='".concat(ce(dt,ar),"']"));An&&(Kn.add(An),$n.set(An,ar),Nn.set(ar,An))}),Kn};Wn();var or=Nn.get(Ze),He=Tn(or,Kn),$e=$n.get(He),Tt=kt(Fe,Jt($e,!0).length===1,rt,tr);if(!Tt&&tr!==da&&tr!==ya)return;(ea.includes(tr)||[da,ya].includes(tr))&&xn.preventDefault();var mt=function(Dn){if(Dn){var ar=Dn,An=Dn.querySelector("a");An!=null&&An.getAttribute("href")&&(ar=An);var gr=$n.get(Dn);Fn(gr),gn(),sn.current=(0,Jn.Z)(function(){nn.current===gr&&ar.focus()})}};if([da,ya].includes(tr)||Tt.sibling||!He){var Yt;!He||Fe==="inline"?Yt=yt.current:Yt=bn(He);var fn,ln=In(Yt,Kn);tr===da?fn=ln[0]:tr===ya?fn=ln[ln.length-1]:fn=kr(Yt,Kn,He,Tt.offset),mt(fn)}else if(Tt.inlineTrigger)ir($e);else if(Tt.offset>0)ir($e,!0),gn(),sn.current=(0,Jn.Z)(function(){Wn();var Cn=He.getAttribute("aria-controls"),Dn=document.getElementById(Cn),ar=kr(Dn,Kn);mt(ar)},5);else if(Tt.offset<0){var Ln=Jt($e,!0),yn=Ln[Ln.length-2],Qt=Nn.get(yn);ir(yn,!1),mt(Qt)}}_n==null||_n(xn)}}function hr(Fe){Promise.resolve().then(Fe)}var On="__RC_UTIL_PATH_SPLIT__",qe=function(Ze){return Ze.join(On)},st=function(Ze){return Ze.split(On)},Lt="rc-menu-more";function qt(){var Fe=pe.useState({}),Ze=(0,be.Z)(Fe,2),rt=Ze[1],dt=(0,pe.useRef)(new Map),yt=(0,pe.useRef)(new Map),Xt=pe.useState([]),Jt=(0,be.Z)(Xt,2),Fn=Jt[0],ir=Jt[1],_n=(0,pe.useRef)(0),sn=(0,pe.useRef)(!1),nn=function(){sn.current||rt({})},gn=(0,pe.useCallback)(function(or,He){var $e=qe(He);yt.current.set($e,or),dt.current.set(or,$e),_n.current+=1;var Tt=_n.current;hr(function(){Tt===_n.current&&nn()})},[]),xn=(0,pe.useCallback)(function(or,He){var $e=qe(He);yt.current.delete($e),dt.current.delete(or)},[]),tr=(0,pe.useCallback)(function(or){ir(or)},[]),Kn=(0,pe.useCallback)(function(or,He){var $e=dt.current.get(or)||"",Tt=st($e);return He&&Fn.includes(Tt[0])&&Tt.unshift(Lt),Tt},[Fn]),Nn=(0,pe.useCallback)(function(or,He){return or.some(function($e){var Tt=Kn($e,!0);return Tt.includes(He)})},[Kn]),$n=function(){var He=(0,et.Z)(dt.current.keys());return Fn.length&&He.push(Lt),He},Wn=(0,pe.useCallback)(function(or){var He="".concat(dt.current.get(or)).concat(On),$e=new Set;return(0,et.Z)(yt.current.keys()).forEach(function(Tt){Tt.startsWith(He)&&$e.add(yt.current.get(Tt))}),$e},[]);return pe.useEffect(function(){return function(){sn.current=!0}},[]),{registerPath:gn,unregisterPath:xn,refreshOverflowKeys:tr,isSubPathKey:Nn,getKeyPath:Kn,getKeys:$n,getSubPathKeys:Wn}}function Ve(Fe){var Ze=pe.useRef(Fe);Ze.current=Fe;var rt=pe.useCallback(function(){for(var dt,yt=arguments.length,Xt=new Array(yt),Jt=0;Jt<yt;Jt++)Xt[Jt]=arguments[Jt];return(dt=Ze.current)===null||dt===void 0?void 0:dt.call.apply(dt,[Ze].concat(Xt))},[]);return Fe?rt:void 0}var gt=Math.random().toFixed(5).toString().slice(2),Kt=0;function Pt(Fe){var Ze=(0,Ct.Z)(Fe,{value:Fe}),rt=(0,be.Z)(Ze,2),dt=rt[0],yt=rt[1];return pe.useEffect(function(){Kt+=1;var Xt="".concat(gt,"-").concat(Kt);yt("rc-menu-uuid-".concat(Xt))},[]),dt}var Gt=le(15671),Vt=le(43144),Pn=le(60136),mr=le(51630),Vn=le(98423),Un=le(42550);function er(Fe,Ze,rt,dt){var yt=pe.useContext(oe),Xt=yt.activeKey,Jt=yt.onActive,Fn=yt.onInactive,ir={active:Xt===Fe};return Ze||(ir.onMouseEnter=function(_n){rt==null||rt({key:Fe,domEvent:_n}),Jt(Fe)},ir.onMouseLeave=function(_n){dt==null||dt({key:Fe,domEvent:_n}),Fn(Fe)}),ir}function rr(Fe){var Ze=pe.useContext(oe),rt=Ze.mode,dt=Ze.rtl,yt=Ze.inlineIndent;if(rt!=="inline")return null;var Xt=Fe;return dt?{paddingRight:Xt*yt}:{paddingLeft:Xt*yt}}function Dr(Fe){var Ze=Fe.icon,rt=Fe.props,dt=Fe.children,yt;return Ze===null||Ze===!1?null:(typeof Ze=="function"?yt=pe.createElement(Ze,(0,Pe.Z)({},rt)):typeof Ze!="boolean"&&(yt=Ze),yt||dt||null)}var dn=["item"];function Hn(Fe){var Ze=Fe.item,rt=(0,Ae.Z)(Fe,dn);return Object.defineProperty(rt,"item",{get:function(){return(0,tn.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),Ze}}),rt}var pi=["title","attribute","elementRef"],wi=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Zr=["active"],Or=function(Fe){(0,Pn.Z)(rt,Fe);var Ze=(0,mr.Z)(rt);function rt(){return(0,Gt.Z)(this,rt),Ze.apply(this,arguments)}return(0,Vt.Z)(rt,[{key:"render",value:function(){var yt=this.props,Xt=yt.title,Jt=yt.attribute,Fn=yt.elementRef,ir=(0,Ae.Z)(yt,pi),_n=(0,Vn.Z)(ir,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,tn.ZP)(!Jt,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),pe.createElement(It.Item,(0,ge.Z)({},Jt,{title:typeof Xt=="string"?Xt:void 0},_n,{ref:Fn}))}}]),rt}(pe.Component),Li=pe.forwardRef(function(Fe,Ze){var rt,dt=Fe.style,yt=Fe.className,Xt=Fe.eventKey,Jt=Fe.warnKey,Fn=Fe.disabled,ir=Fe.itemIcon,_n=Fe.children,sn=Fe.role,nn=Fe.onMouseEnter,gn=Fe.onMouseLeave,xn=Fe.onClick,tr=Fe.onKeyDown,Kn=Fe.onFocus,Nn=(0,Ae.Z)(Fe,wi),$n=se(Xt),Wn=pe.useContext(oe),or=Wn.prefixCls,He=Wn.onItemClick,$e=Wn.disabled,Tt=Wn.overflowDisabled,mt=Wn.itemIcon,Yt=Wn.selectedKeys,fn=Wn.onActive,ln=pe.useContext(_t),Ln=ln._internalRenderMenuItem,yn="".concat(or,"-item"),Qt=pe.useRef(),Cn=pe.useRef(),Dn=$e||Fn,ar=(0,Un.x1)(Ze,Cn),An=Nt(Xt),gr=function(mi){return{key:Xt,keyPath:(0,et.Z)(An).reverse(),item:Qt.current,domEvent:mi}},Br=ir||mt,br=er(Xt,Dn,nn,gn),Ar=br.active,ur=(0,Ae.Z)(br,Zr),Er=Yt.includes(Xt),Nr=rr(An.length),Kr=function(mi){if(!Dn){var Bi=gr(mi);xn==null||xn(Hn(Bi)),He(Bi)}},xr=function(mi){if(tr==null||tr(mi),mi.which===cn.Z.ENTER){var Bi=gr(mi);xn==null||xn(Hn(Bi)),He(Bi)}},Vr=function(mi){fn(Xt),Kn==null||Kn(mi)},fi={};Fe.role==="option"&&(fi["aria-selected"]=Er);var Hi=pe.createElement(Or,(0,ge.Z)({ref:Qt,elementRef:ar,role:sn===null?"none":sn||"menuitem",tabIndex:Fn?null:-1,"data-menu-id":Tt&&$n?null:$n},Nn,ur,fi,{component:"li","aria-disabled":Fn,style:(0,Pe.Z)((0,Pe.Z)({},Nr),dt),className:Se()(yn,(rt={},(0,We.Z)(rt,"".concat(yn,"-active"),Ar),(0,We.Z)(rt,"".concat(yn,"-selected"),Er),(0,We.Z)(rt,"".concat(yn,"-disabled"),Dn),rt),yt),onClick:Kr,onKeyDown:xr,onFocus:Vr}),_n,pe.createElement(Dr,{props:(0,Pe.Z)((0,Pe.Z)({},Fe),{},{isSelected:Er}),icon:Br}));return Ln&&(Hi=Ln(Hi,Fe,{selected:Er})),Hi});function dr(Fe,Ze){var rt=Fe.eventKey,dt=Ot(),yt=Nt(rt);return pe.useEffect(function(){if(dt)return dt.registerPath(rt,yt),function(){dt.unregisterPath(rt,yt)}},[yt]),dt?null:pe.createElement(Li,(0,ge.Z)({},Fe,{ref:Ze}))}var ci=pe.forwardRef(dr),vn=["className","children"],Yi=function(Ze,rt){var dt=Ze.className,yt=Ze.children,Xt=(0,Ae.Z)(Ze,vn),Jt=pe.useContext(oe),Fn=Jt.prefixCls,ir=Jt.mode,_n=Jt.rtl;return pe.createElement("ul",(0,ge.Z)({className:Se()(Fn,_n&&"".concat(Fn,"-rtl"),"".concat(Fn,"-sub"),"".concat(Fn,"-").concat(ir==="inline"?"inline":"vertical"),dt),role:"menu"},Xt,{"data-menu-list":!0,ref:rt}),yt)},Di=pe.forwardRef(Yi);Di.displayName="SubMenuList";var wa=Di,Xi=le(50344);function _i(Fe,Ze){return(0,Xi.Z)(Fe).map(function(rt,dt){if(pe.isValidElement(rt)){var yt,Xt,Jt=rt.key,Fn=(yt=(Xt=rt.props)===null||Xt===void 0?void 0:Xt.eventKey)!==null&&yt!==void 0?yt:Jt,ir=Fn==null;ir&&(Fn="tmp_key-".concat([].concat((0,et.Z)(Ze),[dt]).join("-")));var _n={key:Fn,eventKey:Fn};return pe.cloneElement(rt,_n)}return rt})}var fa=le(62709),Gi={adjustX:1,adjustY:1},Ci={topLeft:{points:["bl","tl"],overflow:Gi},topRight:{points:["br","tr"],overflow:Gi},bottomLeft:{points:["tl","bl"],overflow:Gi},bottomRight:{points:["tr","br"],overflow:Gi},leftTop:{points:["tr","tl"],overflow:Gi},leftBottom:{points:["br","bl"],overflow:Gi},rightTop:{points:["tl","tr"],overflow:Gi},rightBottom:{points:["bl","br"],overflow:Gi}},ta={topLeft:{points:["bl","tl"],overflow:Gi},topRight:{points:["br","tr"],overflow:Gi},bottomLeft:{points:["tl","bl"],overflow:Gi},bottomRight:{points:["tr","br"],overflow:Gi},rightTop:{points:["tr","tl"],overflow:Gi},rightBottom:{points:["br","bl"],overflow:Gi},leftTop:{points:["tl","tr"],overflow:Gi},leftBottom:{points:["bl","br"],overflow:Gi}},ka=null;function na(Fe,Ze,rt){if(Ze)return Ze;if(rt)return rt[Fe]||rt.other}var Fi={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Aa(Fe){var Ze=Fe.prefixCls,rt=Fe.visible,dt=Fe.children,yt=Fe.popup,Xt=Fe.popupStyle,Jt=Fe.popupClassName,Fn=Fe.popupOffset,ir=Fe.disabled,_n=Fe.mode,sn=Fe.onVisibleChange,nn=pe.useContext(oe),gn=nn.getPopupContainer,xn=nn.rtl,tr=nn.subMenuOpenDelay,Kn=nn.subMenuCloseDelay,Nn=nn.builtinPlacements,$n=nn.triggerSubMenuAction,Wn=nn.forceSubMenuRender,or=nn.rootClassName,He=nn.motion,$e=nn.defaultMotions,Tt=pe.useState(!1),mt=(0,be.Z)(Tt,2),Yt=mt[0],fn=mt[1],ln=xn?(0,Pe.Z)((0,Pe.Z)({},ta),Nn):(0,Pe.Z)((0,Pe.Z)({},Ci),Nn),Ln=Fi[_n],yn=na(_n,He,$e),Qt=pe.useRef(yn);_n!=="inline"&&(Qt.current=yn);var Cn=(0,Pe.Z)((0,Pe.Z)({},Qt.current),{},{leavedClassName:"".concat(Ze,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Dn=pe.useRef();return pe.useEffect(function(){return Dn.current=(0,Jn.Z)(function(){fn(rt)}),function(){Jn.Z.cancel(Dn.current)}},[rt]),pe.createElement(fa.Z,{prefixCls:Ze,popupClassName:Se()("".concat(Ze,"-popup"),(0,We.Z)({},"".concat(Ze,"-rtl"),xn),Jt,or),stretch:_n==="horizontal"?"minWidth":null,getPopupContainer:gn,builtinPlacements:ln,popupPlacement:Ln,popupVisible:Yt,popup:yt,popupStyle:Xt,popupAlign:Fn&&{offset:Fn},action:ir?[]:[$n],mouseEnterDelay:tr,mouseLeaveDelay:Kn,onPopupVisibleChange:sn,forceRender:Wn,popupMotion:Cn,fresh:!0},dt)}var Ba=le(62874);function ha(Fe){var Ze=Fe.id,rt=Fe.open,dt=Fe.keyPath,yt=Fe.children,Xt="inline",Jt=pe.useContext(oe),Fn=Jt.prefixCls,ir=Jt.forceSubMenuRender,_n=Jt.motion,sn=Jt.defaultMotions,nn=Jt.mode,gn=pe.useRef(!1);gn.current=nn===Xt;var xn=pe.useState(!gn.current),tr=(0,be.Z)(xn,2),Kn=tr[0],Nn=tr[1],$n=gn.current?rt:!1;pe.useEffect(function(){gn.current&&Nn(!1)},[nn]);var Wn=(0,Pe.Z)({},na(Xt,_n,sn));dt.length>1&&(Wn.motionAppear=!1);var or=Wn.onVisibleChanged;return Wn.onVisibleChanged=function(He){return!gn.current&&!He&&Nn(!0),or==null?void 0:or(He)},Kn?null:pe.createElement(je,{mode:Xt,locked:!gn.current},pe.createElement(Ba.Z,(0,ge.Z)({visible:$n},Wn,{forceRender:ir,removeOnLeave:!1,leavedClassName:"".concat(Fn,"-hidden")}),function(He){var $e=He.className,Tt=He.style;return pe.createElement(wa,{id:Ze,className:$e,style:Tt},yt)}))}var oi=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],vt=["active"],ht=function(Ze){var rt,dt=Ze.style,yt=Ze.className,Xt=Ze.title,Jt=Ze.eventKey,Fn=Ze.warnKey,ir=Ze.disabled,_n=Ze.internalPopupClose,sn=Ze.children,nn=Ze.itemIcon,gn=Ze.expandIcon,xn=Ze.popupClassName,tr=Ze.popupOffset,Kn=Ze.popupStyle,Nn=Ze.onClick,$n=Ze.onMouseEnter,Wn=Ze.onMouseLeave,or=Ze.onTitleClick,He=Ze.onTitleMouseEnter,$e=Ze.onTitleMouseLeave,Tt=(0,Ae.Z)(Ze,oi),mt=se(Jt),Yt=pe.useContext(oe),fn=Yt.prefixCls,ln=Yt.mode,Ln=Yt.openKeys,yn=Yt.disabled,Qt=Yt.overflowDisabled,Cn=Yt.activeKey,Dn=Yt.selectedKeys,ar=Yt.itemIcon,An=Yt.expandIcon,gr=Yt.onItemClick,Br=Yt.onOpenChange,br=Yt.onActive,Ar=pe.useContext(_t),ur=Ar._internalRenderSubMenuItem,Er=pe.useContext(zn),Nr=Er.isSubPathKey,Kr=Nt(),xr="".concat(fn,"-submenu"),Vr=yn||ir,fi=pe.useRef(),Hi=pe.useRef(),Ti=nn!=null?nn:ar,mi=gn!=null?gn:An,Bi=Ln.includes(Jt),Oi=!Qt&&Bi,qr=Nr(Dn,Jt),gi=er(Jt,Vr,He,$e),Pr=gi.active,Ur=(0,Ae.Z)(gi,vt),si=pe.useState(!1),Ii=(0,be.Z)(si,2),Ra=Ii[0],Fa=Ii[1],La=function(ma){Vr||Fa(ma)},qi=function(ma){La(!0),$n==null||$n({key:Jt,domEvent:ma})},Ni=function(ma){La(!1),Wn==null||Wn({key:Jt,domEvent:ma})},ri=pe.useMemo(function(){return Pr||(ln!=="inline"?Ra||Nr([Cn],Jt):!1)},[ln,Pr,Cn,Ra,Jt,Nr]),Pa=rr(Kr.length),ii=function(ma){Vr||(or==null||or({key:Jt,domEvent:ma}),ln==="inline"&&Br(Jt,!Bi))},Rr=Ve(function(ra){Nn==null||Nn(Hn(ra)),gr(ra)}),yi=function(ma){ln!=="inline"&&Br(Jt,ma)},Qi=function(){br(Jt)},Mi=mt&&"".concat(mt,"-popup"),Vi=pe.createElement("div",(0,ge.Z)({role:"menuitem",style:Pa,className:"".concat(xr,"-title"),tabIndex:Vr?null:-1,ref:fi,title:typeof Xt=="string"?Xt:null,"data-menu-id":Qt&&mt?null:mt,"aria-expanded":Oi,"aria-haspopup":!0,"aria-controls":Mi,"aria-disabled":Vr,onClick:ii,onFocus:Qi},Ur),Xt,pe.createElement(Dr,{icon:ln!=="horizontal"?mi:void 0,props:(0,Pe.Z)((0,Pe.Z)({},Ze),{},{isOpen:Oi,isSubMenu:!0})},pe.createElement("i",{className:"".concat(xr,"-arrow")}))),jr=pe.useRef(ln);if(ln!=="inline"&&Kr.length>1?jr.current="vertical":jr.current=ln,!Qt){var aa=jr.current;Vi=pe.createElement(Aa,{mode:aa,prefixCls:xr,visible:!_n&&Oi&&ln!=="inline",popupClassName:xn,popupOffset:tr,popupStyle:Kn,popup:pe.createElement(je,{mode:aa==="horizontal"?"vertical":aa},pe.createElement(wa,{id:Mi,ref:Hi},sn)),disabled:Vr,onVisibleChange:yi},Vi)}var pa=pe.createElement(It.Item,(0,ge.Z)({role:"none"},Tt,{component:"li",style:dt,className:Se()(xr,"".concat(xr,"-").concat(ln),yt,(rt={},(0,We.Z)(rt,"".concat(xr,"-open"),Oi),(0,We.Z)(rt,"".concat(xr,"-active"),ri),(0,We.Z)(rt,"".concat(xr,"-selected"),qr),(0,We.Z)(rt,"".concat(xr,"-disabled"),Vr),rt)),onMouseEnter:qi,onMouseLeave:Ni}),Vi,!Qt&&pe.createElement(ha,{id:Mi,open:Oi,keyPath:Kr},sn));return ur&&(pa=ur(pa,Ze,{selected:qr,active:ri,open:Oi,disabled:Vr})),pe.createElement(je,{onItemClick:Rr,mode:ln==="horizontal"?"vertical":ln,itemIcon:Ti,expandIcon:mi},pa)};function Wt(Fe){var Ze=Fe.eventKey,rt=Fe.children,dt=Nt(Ze),yt=_i(rt,dt),Xt=Ot();pe.useEffect(function(){if(Xt)return Xt.registerPath(Ze,dt),function(){Xt.unregisterPath(Ze,dt)}},[dt]);var Jt;return Xt?Jt=yt:Jt=pe.createElement(ht,Fe,yt),pe.createElement(Bt.Provider,{value:dt},Jt)}var rn=le(71002),Mn=["className","title","eventKey","children"],Cr=["children"],Sr=function(Ze){var rt=Ze.className,dt=Ze.title,yt=Ze.eventKey,Xt=Ze.children,Jt=(0,Ae.Z)(Ze,Mn),Fn=pe.useContext(oe),ir=Fn.prefixCls,_n="".concat(ir,"-item-group");return pe.createElement("li",(0,ge.Z)({role:"presentation"},Jt,{onClick:function(nn){return nn.stopPropagation()},className:Se()(_n,rt)}),pe.createElement("div",{role:"presentation",className:"".concat(_n,"-title"),title:typeof dt=="string"?dt:void 0},dt),pe.createElement("ul",{role:"group",className:"".concat(_n,"-list")},Xt))};function Tr(Fe){var Ze=Fe.children,rt=(0,Ae.Z)(Fe,Cr),dt=Nt(rt.eventKey),yt=_i(Ze,dt),Xt=Ot();return Xt?yt:pe.createElement(Sr,(0,Vn.Z)(rt,["warnKey"]),yt)}function Fr(Fe){var Ze=Fe.className,rt=Fe.style,dt=pe.useContext(oe),yt=dt.prefixCls,Xt=Ot();return Xt?null:pe.createElement("li",{role:"separator",className:Se()("".concat(yt,"-item-divider"),Ze),style:rt})}var _r=["label","children","key","type"];function ni(Fe){return(Fe||[]).map(function(Ze,rt){if(Ze&&(0,rn.Z)(Ze)==="object"){var dt=Ze,yt=dt.label,Xt=dt.children,Jt=dt.key,Fn=dt.type,ir=(0,Ae.Z)(dt,_r),_n=Jt!=null?Jt:"tmp-".concat(rt);return Xt||Fn==="group"?Fn==="group"?pe.createElement(Tr,(0,ge.Z)({key:_n},ir,{title:yt}),ni(Xt)):pe.createElement(Wt,(0,ge.Z)({key:_n},ir,{title:yt}),ni(Xt)):Fn==="divider"?pe.createElement(Fr,(0,ge.Z)({key:_n},ir)):pe.createElement(ci,(0,ge.Z)({key:_n},ir),yt)}return null}).filter(function(Ze){return Ze})}function di(Fe,Ze,rt){var dt=Fe;return Ze&&(dt=ni(Ze)),_i(dt,rt)}var Ei=["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"],ji=[],$i=pe.forwardRef(function(Fe,Ze){var rt,dt,yt=Fe,Xt=yt.prefixCls,Jt=Xt===void 0?"rc-menu":Xt,Fn=yt.rootClassName,ir=yt.style,_n=yt.className,sn=yt.tabIndex,nn=sn===void 0?0:sn,gn=yt.items,xn=yt.children,tr=yt.direction,Kn=yt.id,Nn=yt.mode,$n=Nn===void 0?"vertical":Nn,Wn=yt.inlineCollapsed,or=yt.disabled,He=yt.disabledOverflow,$e=yt.subMenuOpenDelay,Tt=$e===void 0?.1:$e,mt=yt.subMenuCloseDelay,Yt=mt===void 0?.1:mt,fn=yt.forceSubMenuRender,ln=yt.defaultOpenKeys,Ln=yt.openKeys,yn=yt.activeKey,Qt=yt.defaultActiveFirst,Cn=yt.selectable,Dn=Cn===void 0?!0:Cn,ar=yt.multiple,An=ar===void 0?!1:ar,gr=yt.defaultSelectedKeys,Br=yt.selectedKeys,br=yt.onSelect,Ar=yt.onDeselect,ur=yt.inlineIndent,Er=ur===void 0?24:ur,Nr=yt.motion,Kr=yt.defaultMotions,xr=yt.triggerSubMenuAction,Vr=xr===void 0?"hover":xr,fi=yt.builtinPlacements,Hi=yt.itemIcon,Ti=yt.expandIcon,mi=yt.overflowedIndicator,Bi=mi===void 0?"...":mi,Oi=yt.overflowedIndicatorPopupClassName,qr=yt.getPopupContainer,gi=yt.onClick,Pr=yt.onOpenChange,Ur=yt.onKeyDown,si=yt.openAnimation,Ii=yt.openTransitionName,Ra=yt._internalRenderMenuItem,Fa=yt._internalRenderSubMenuItem,La=(0,Ae.Z)(yt,Ei),qi=pe.useMemo(function(){return di(xn,gn,ji)},[xn,gn]),Ni=pe.useState(!1),ri=(0,be.Z)(Ni,2),Pa=ri[0],ii=ri[1],Rr=pe.useRef(),yi=Pt(Kn),Qi=tr==="rtl",Mi=(0,Ct.Z)(ln,{value:Ln,postState:function(Ta){return Ta||ji}}),Vi=(0,be.Z)(Mi,2),jr=Vi[0],aa=Vi[1],pa=function(Ta){var Xa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function go(){aa(Ta),Pr==null||Pr(Ta)}Xa?(0,Be.flushSync)(go):go()},ra=pe.useState(jr),ma=(0,be.Z)(ra,2),Sa=ma[0],Ua=ma[1],ia=pe.useRef(!1),Ca=pe.useMemo(function(){return($n==="inline"||$n==="vertical")&&Wn?["vertical",Wn]:[$n,!1]},[$n,Wn]),Qa=(0,be.Z)(Ca,2),ja=Qa[0],so=Qa[1],za=ja==="inline",ba=pe.useState(ja),ai=(0,be.Z)(ba,2),bi=ai[0],Ji=ai[1],ga=pe.useState(so),Ka=(0,be.Z)(ga,2),io=Ka[0],ho=Ka[1];pe.useEffect(function(){Ji(ja),ho(so),ia.current&&(za?aa(Sa):pa(ji))},[ja,so]);var Po=pe.useState(0),Oo=(0,be.Z)(Po,2),lo=Oo[0],Do=Oo[1],Ki=lo>=qi.length-1||bi!=="horizontal"||He;pe.useEffect(function(){za&&Ua(jr)},[jr]),pe.useEffect(function(){return ia.current=!0,function(){ia.current=!1}},[]);var hi=qt(),Da=hi.registerPath,Ea=hi.unregisterPath,uo=hi.refreshOverflowKeys,ao=hi.isSubPathKey,hs=hi.getKeyPath,Jo=hi.getKeys,ps=hi.getSubPathKeys,Zi=pe.useMemo(function(){return{registerPath:Da,unregisterPath:Ea}},[Da,Ea]),vr=pe.useMemo(function(){return{isSubPathKey:ao}},[ao]);pe.useEffect(function(){uo(Ki?ji:qi.slice(lo+1).map(function(oo){return oo.key}))},[lo,Ki]);var Qr=(0,Ct.Z)(yn||Qt&&((rt=qi[0])===null||rt===void 0?void 0:rt.key),{value:yn}),Jr=(0,be.Z)(Qr,2),li=Jr[0],Wa=Jr[1],Ga=Ve(function(oo){Wa(oo)}),zo=Ve(function(){Wa(void 0)});(0,pe.useImperativeHandle)(Ze,function(){return{list:Rr.current,focus:function(Ta){var Xa,go=li!=null?li:(Xa=qi.find(function(xs){return!xs.props.disabled}))===null||Xa===void 0?void 0:Xa.key;if(go){var yo,Ko,wo;(yo=Rr.current)===null||yo===void 0||(Ko=yo.querySelector("li[data-menu-id='".concat(ce(yi,go),"']")))===null||Ko===void 0||(wo=Ko.focus)===null||wo===void 0||wo.call(Ko,Ta)}}}});var Vo=(0,Ct.Z)(gr||[],{value:Br,postState:function(Ta){return Array.isArray(Ta)?Ta:Ta==null?ji:[Ta]}}),ls=(0,be.Z)(Vo,2),la=ls[0],No=ls[1],us=function(Ta){if(Dn){var Xa=Ta.key,go=la.includes(Xa),yo;An?go?yo=la.filter(function(wo){return wo!==Xa}):yo=[].concat((0,et.Z)(la),[Xa]):yo=[Xa],No(yo);var Ko=(0,Pe.Z)((0,Pe.Z)({},Ta),{},{selectedKeys:yo});go?Ar==null||Ar(Ko):br==null||br(Ko)}!An&&jr.length&&bi!=="inline"&&pa(ji)},cl=Ve(function(oo){gi==null||gi(Hn(oo)),us(oo)}),Ds=Ve(function(oo,Ta){var Xa=jr.filter(function(yo){return yo!==oo});if(Ta)Xa.push(oo);else if(bi!=="inline"){var go=ps(oo);Xa=Xa.filter(function(yo){return!go.has(yo)})}(0,pn.Z)(jr,Xa,!0)||pa(Xa,!0)}),ms=function(Ta,Xa){var go=Xa!=null?Xa:!jr.includes(Ta);Ds(Ta,go)},Ho=qn(bi,li,Qi,yi,Rr,Jo,hs,Wa,ms,Ur);pe.useEffect(function(){ii(!0)},[]);var Ts=pe.useMemo(function(){return{_internalRenderMenuItem:Ra,_internalRenderSubMenuItem:Fa}},[Ra,Fa]),Is=bi!=="horizontal"||He?qi:qi.map(function(oo,Ta){return pe.createElement(je,{key:oo.key,overflowDisabled:Ta>lo},oo)}),qs=pe.createElement(It,(0,ge.Z)({id:Kn,ref:Rr,prefixCls:"".concat(Jt,"-overflow"),component:"ul",itemComponent:ci,className:Se()(Jt,"".concat(Jt,"-root"),"".concat(Jt,"-").concat(bi),_n,(dt={},(0,We.Z)(dt,"".concat(Jt,"-inline-collapsed"),io),(0,We.Z)(dt,"".concat(Jt,"-rtl"),Qi),dt),Fn),dir:tr,style:ir,role:"menu",tabIndex:nn,data:Is,renderRawItem:function(Ta){return Ta},renderRawRest:function(Ta){var Xa=Ta.length,go=Xa?qi.slice(-Xa):null;return pe.createElement(Wt,{eventKey:Lt,title:Bi,disabled:Ki,internalPopupClose:Xa===0,popupClassName:Oi},go)},maxCount:bi!=="horizontal"||He?It.INVALIDATE:It.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Ta){Do(Ta)},onKeyDown:Ho},La));return pe.createElement(_t.Provider,{value:Ts},pe.createElement(Ee.Provider,{value:yi},pe.createElement(je,{prefixCls:Jt,rootClassName:Fn,mode:bi,openKeys:jr,rtl:Qi,disabled:or,motion:Pa?Nr:null,defaultMotions:Pa?Kr:null,activeKey:li,onActive:Ga,onInactive:zo,selectedKeys:la,inlineIndent:Er,subMenuOpenDelay:Tt,subMenuCloseDelay:Yt,forceSubMenuRender:fn,builtinPlacements:fi,triggerSubMenuAction:Vr,getPopupContainer:qr,itemIcon:Hi,expandIcon:Ti,onItemClick:cl,onOpenChange:Ds},pe.createElement(zn.Provider,{value:vr},qs),pe.createElement("div",{style:{display:"none"},"aria-hidden":!0},pe.createElement(At.Provider,{value:Zi},qi)))))}),zi=$i,Le=zi;Le.Item=ci,Le.SubMenu=Wt,Le.ItemGroup=Tr,Le.Divider=Fr;var ze=Le},66680:function(hn,Zt,le){"use strict";le.d(Zt,{Z:function(){return We}});var ge=le(67294);function We(Pe){var et=ge.useRef();et.current=Pe;var be=ge.useCallback(function(){for(var Ae,ke=arguments.length,Se=new Array(ke),pe=0;pe<ke;pe++)Se[pe]=arguments[pe];return(Ae=et.current)===null||Ae===void 0?void 0:Ae.call.apply(Ae,[et].concat(Se))},[]);return be}},21770:function(hn,Zt,le){"use strict";le.d(Zt,{Z:function(){return Ae}});var ge=le(97685),We=le(66680),Pe=le(8410),et=le(63896);function be(ke){return ke!==void 0}function Ae(ke,Se){var pe=Se||{},Ie=pe.defaultValue,ot=pe.value,Oe=pe.onChange,wt=pe.postState,lt=(0,et.Z)(function(){return be(ot)?ot:be(Ie)?typeof Ie=="function"?Ie():Ie:typeof ke=="function"?ke():ke}),tt=(0,ge.Z)(lt,2),Ge=tt[0],Me=tt[1],bt=ot!==void 0?ot:Ge,zt=wt?wt(bt):bt,Ye=(0,We.Z)(Oe),it=(0,et.Z)([bt]),Be=(0,ge.Z)(it,2),xe=Be[0],Ke=Be[1];(0,Pe.o)(function(){var ft=xe[0];Ge!==ft&&Ye(Ge,ft)},[xe]),(0,Pe.o)(function(){be(ot)||Me(ot)},[ot]);var Ue=(0,We.Z)(function(ft,pt){Me(ft,pt),Ke([bt],pt)});return[zt,Ue]}},91881:function(hn,Zt,le){"use strict";var ge=le(71002),We=le(80334);function Pe(et,be){var Ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ke=new Set;function Se(pe,Ie){var ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Oe=ke.has(pe);if((0,We.ZP)(!Oe,"Warning: There may be circular references"),Oe)return!1;if(pe===Ie)return!0;if(Ae&&ot>1)return!1;ke.add(pe);var wt=ot+1;if(Array.isArray(pe)){if(!Array.isArray(Ie)||pe.length!==Ie.length)return!1;for(var lt=0;lt<pe.length;lt++)if(!Se(pe[lt],Ie[lt],wt))return!1;return!0}if(pe&&Ie&&(0,ge.Z)(pe)==="object"&&(0,ge.Z)(Ie)==="object"){var tt=Object.keys(pe);return tt.length!==Object.keys(Ie).length?!1:tt.every(function(Ge){return Se(pe[Ge],Ie[Ge],wt)})}return!1}return Se(et,be)}Zt.Z=Pe},98423:function(hn,Zt,le){"use strict";le.d(Zt,{Z:function(){return We}});var ge=le(1413);function We(Pe,et){var be=(0,ge.Z)({},Pe);return Array.isArray(et)&&et.forEach(function(Ae){delete be[Ae]}),be}},73299:function(hn,Zt,le){"use strict";le.d(Zt,{Z:function(){return ea}});var ge=le(87462),We=le(1413),Pe=le(71002),et=le(97685),be=le(4942),Ae=le(45987),ke=le(67294),Se=le(73935),pe=le(94184),Ie=le.n(pe),ot=le(48555),Oe=ke.forwardRef(function(kt,bn){var Tn=kt.height,In=kt.offsetY,kr=kt.offsetX,qn=kt.children,hr=kt.prefixCls,On=kt.onInnerResize,qe=kt.innerProps,st=kt.rtl,Lt=kt.extra,qt={},Ve={display:"flex",flexDirection:"column"};if(In!==void 0){var gt;qt={height:Tn,position:"relative",overflow:"hidden"},Ve=(0,We.Z)((0,We.Z)({},Ve),{},(gt={transform:"translateY(".concat(In,"px)")},(0,be.Z)(gt,st?"marginRight":"marginLeft",-kr),(0,be.Z)(gt,"position","absolute"),(0,be.Z)(gt,"left",0),(0,be.Z)(gt,"right",0),(0,be.Z)(gt,"top",0),gt))}return ke.createElement("div",{style:qt},ke.createElement(ot.Z,{onResize:function(Pt){var Gt=Pt.offsetHeight;Gt&&On&&On()}},ke.createElement("div",(0,ge.Z)({style:Ve,className:Ie()((0,be.Z)({},"".concat(hr,"-holder-inner"),hr)),ref:bn},qe),qn,Lt)))});Oe.displayName="Filler";var wt=Oe,lt=function(bn){return+setTimeout(bn,16)},tt=function(bn){return clearTimeout(bn)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(lt=function(bn){return window.requestAnimationFrame(bn)},tt=function(bn){return window.cancelAnimationFrame(bn)});var Ge=0,Me=new Map;function bt(kt){Me.delete(kt)}var zt=function(bn){var Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Ge+=1;var In=Ge;function kr(qn){if(qn===0)bt(In),bn();else{var hr=lt(function(){kr(qn-1)});Me.set(In,hr)}}return kr(Tn),In};zt.cancel=function(kt){var bn=Me.get(kt);return bt(bn),tt(bn)};var Ye=zt;function it(kt,bn){var Tn="touches"in kt?kt.touches[0]:kt;return Tn[bn?"pageX":"pageY"]}var Be=ke.forwardRef(function(kt,bn){var Tn,In=kt.prefixCls,kr=kt.rtl,qn=kt.scrollOffset,hr=kt.scrollRange,On=kt.onStartMove,qe=kt.onStopMove,st=kt.onScroll,Lt=kt.horizontal,qt=kt.spinSize,Ve=kt.containerSize,gt=kt.style,Kt=kt.thumbStyle,Pt=ke.useState(!1),Gt=(0,et.Z)(Pt,2),Vt=Gt[0],Pn=Gt[1],mr=ke.useState(null),Vn=(0,et.Z)(mr,2),Un=Vn[0],er=Vn[1],rr=ke.useState(null),Dr=(0,et.Z)(rr,2),dn=Dr[0],Hn=Dr[1],pi=!kr,wi=ke.useRef(),Zr=ke.useRef(),Or=ke.useState(!1),Li=(0,et.Z)(Or,2),dr=Li[0],ci=Li[1],vn=ke.useRef(),Yi=function(){clearTimeout(vn.current),ci(!0),vn.current=setTimeout(function(){ci(!1)},3e3)},Di=hr-Ve||0,wa=Ve-qt||0,Xi=Di>0,_i=ke.useMemo(function(){if(qn===0||Di===0)return 0;var Ba=qn/Di;return Ba*wa},[qn,Di,wa]),fa=function(ha){ha.stopPropagation(),ha.preventDefault()},Gi=ke.useRef({top:_i,dragging:Vt,pageY:Un,startTop:dn});Gi.current={top:_i,dragging:Vt,pageY:Un,startTop:dn};var Ci=function(ha){Pn(!0),er(it(ha,Lt)),Hn(Gi.current.top),On(),ha.stopPropagation(),ha.preventDefault()};ke.useEffect(function(){var Ba=function(ht){ht.preventDefault()},ha=wi.current,oi=Zr.current;return ha.addEventListener("touchstart",Ba),oi.addEventListener("touchstart",Ci),function(){ha.removeEventListener("touchstart",Ba),oi.removeEventListener("touchstart",Ci)}},[]);var ta=ke.useRef();ta.current=Di;var ka=ke.useRef();ka.current=wa,ke.useEffect(function(){if(Vt){var Ba,ha=function(ht){var Wt=Gi.current,rn=Wt.dragging,Mn=Wt.pageY,Cr=Wt.startTop;if(Ye.cancel(Ba),rn){var Sr=it(ht,Lt)-Mn,Tr=Cr;!pi&&Lt?Tr-=Sr:Tr+=Sr;var Fr=ta.current,_r=ka.current,ni=_r?Tr/_r:0,di=Math.ceil(ni*Fr);di=Math.max(di,0),di=Math.min(di,Fr),Ba=Ye(function(){st(di,Lt)})}},oi=function(){Pn(!1),qe()};return window.addEventListener("mousemove",ha),window.addEventListener("touchmove",ha),window.addEventListener("mouseup",oi),window.addEventListener("touchend",oi),function(){window.removeEventListener("mousemove",ha),window.removeEventListener("touchmove",ha),window.removeEventListener("mouseup",oi),window.removeEventListener("touchend",oi),Ye.cancel(Ba)}}},[Vt]),ke.useEffect(function(){Yi()},[qn]),ke.useImperativeHandle(bn,function(){return{delayHidden:Yi}});var na="".concat(In,"-scrollbar"),Fi={position:"absolute",visibility:dr&&Xi?null:"hidden"},Aa={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Lt?(Fi.height=8,Fi.left=0,Fi.right=0,Fi.bottom=0,Aa.height="100%",Aa.width=qt,pi?Aa.left=_i:Aa.right=_i):(Fi.width=8,Fi.top=0,Fi.bottom=0,pi?Fi.right=0:Fi.left=0,Aa.width="100%",Aa.height=qt,Aa.top=_i),ke.createElement("div",{ref:wi,className:Ie()(na,(Tn={},(0,be.Z)(Tn,"".concat(na,"-horizontal"),Lt),(0,be.Z)(Tn,"".concat(na,"-vertical"),!Lt),(0,be.Z)(Tn,"".concat(na,"-visible"),dr),Tn)),style:(0,We.Z)((0,We.Z)({},Fi),gt),onMouseDown:fa,onMouseMove:Yi},ke.createElement("div",{ref:Zr,className:Ie()("".concat(na,"-thumb"),(0,be.Z)({},"".concat(na,"-thumb-moving"),Vt)),style:(0,We.Z)((0,We.Z)({},Aa),Kt),onMouseDown:Ci}))}),xe=Be;function Ke(kt){var bn=kt.children,Tn=kt.setRef,In=ke.useCallback(function(kr){Tn(kr)},[]);return ke.cloneElement(bn,{ref:In})}function Ue(kt,bn,Tn,In,kr,qn,hr){var On=hr.getKey;return kt.slice(bn,Tn+1).map(function(qe,st){var Lt=bn+st,qt=qn(qe,Lt,{style:{width:In}}),Ve=On(qe);return ke.createElement(Ke,{key:Ve,setRef:function(Kt){return kr(qe,Kt)}},qt)})}function ft(kt){return kt instanceof HTMLElement||kt instanceof SVGElement}function pt(kt){return ft(kt)?kt:kt instanceof ke.Component?Se.findDOMNode(kt):null}var Mt=le(15671),Qe=le(43144),Rt=function(){function kt(){(0,Mt.Z)(this,kt),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,Qe.Z)(kt,[{key:"set",value:function(Tn,In){this.maps[Tn]=In,this.id+=1}},{key:"get",value:function(Tn){return this.maps[Tn]}}]),kt}(),Dt=Rt;function on(kt,bn,Tn){var In=ke.useState(0),kr=(0,et.Z)(In,2),qn=kr[0],hr=kr[1],On=(0,ke.useRef)(new Map),qe=(0,ke.useRef)(new Dt),st=(0,ke.useRef)();function Lt(){Ye.cancel(st.current)}function qt(){var gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Lt();var Kt=function(){On.current.forEach(function(Gt,Vt){if(Gt&&Gt.offsetParent){var Pn=pt(Gt),mr=Pn.offsetHeight;qe.current.get(Vt)!==mr&&qe.current.set(Vt,Pn.offsetHeight)}}),hr(function(Gt){return Gt+1})};gt?Kt():st.current=Ye(Kt)}function Ve(gt,Kt){var Pt=kt(gt),Gt=On.current.get(Pt);Kt?(On.current.set(Pt,Kt),qt()):On.current.delete(Pt),!Gt!=!Kt&&(Kt?bn==null||bn(gt):Tn==null||Tn(gt))}return(0,ke.useEffect)(function(){return Lt},[]),[Ve,qt,qe.current,qn]}function Ut(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var wn=Ut()?ke.useLayoutEffect:ke.useEffect,Xn=function(bn,Tn){var In=ke.useRef(!0);wn(function(){return bn(In.current)},Tn),wn(function(){return In.current=!1,function(){In.current=!0}},[])},nr=function(bn,Tn){Xn(function(In){if(!In)return bn()},Tn)},Je=Xn;function _e(kt){var bn=ke.useRef();bn.current=kt;var Tn=ke.useCallback(function(){for(var In,kr=arguments.length,qn=new Array(kr),hr=0;hr<kr;hr++)qn[hr]=arguments[hr];return(In=bn.current)===null||In===void 0?void 0:In.call.apply(In,[bn].concat(qn))},[]);return Tn}function Ft(kt){var bn=React.useRef(!1),Tn=React.useState(kt),In=_slicedToArray(Tn,2),kr=In[0],qn=In[1];React.useEffect(function(){return bn.current=!1,function(){bn.current=!0}},[]);function hr(On,qe){qe&&bn.current||qn(On)}return[kr,hr]}function Sn(kt){return kt!==void 0}function an(kt,bn){var Tn=bn||{},In=Tn.defaultValue,kr=Tn.value,qn=Tn.onChange,hr=Tn.postState,On=useState(function(){return Sn(kr)?kr:Sn(In)?typeof In=="function"?In():In:typeof kt=="function"?kt():kt}),qe=_slicedToArray(On,2),st=qe[0],Lt=qe[1],qt=kr!==void 0?kr:st,Ve=hr?hr(qt):qt,gt=useEvent(qn),Kt=useState([qt]),Pt=_slicedToArray(Kt,2),Gt=Pt[0],Vt=Pt[1];useLayoutUpdateEffect(function(){var mr=Gt[0];st!==mr&&gt(st,mr)},[Gt]),useLayoutUpdateEffect(function(){Sn(kr)||Lt(kr)},[kr]);var Pn=useEvent(function(mr,Vn){Lt(mr,Vn),Vt([qt],Vn)});return[Ve,Pn]}var nt=le(31461);function at(kt,bn,Tn){var In=React.useRef({});return(!("value"in In.current)||Tn(In.current.condition,bn))&&(In.current.value=kt(),In.current.condition=bn),In.current.value}function $t(kt,bn){typeof kt=="function"?kt(bn):_typeof(kt)==="object"&&kt&&"current"in kt&&(kt.current=bn)}function kn(){for(var kt=arguments.length,bn=new Array(kt),Tn=0;Tn<kt;Tn++)bn[Tn]=arguments[Tn];var In=bn.filter(function(kr){return kr});return In.length<=1?In[0]:function(kr){bn.forEach(function(qn){$t(qn,kr)})}}function Ht(){for(var kt=arguments.length,bn=new Array(kt),Tn=0;Tn<kt;Tn++)bn[Tn]=arguments[Tn];return useMemo(function(){return kn.apply(void 0,bn)},bn,function(In,kr){return In.length!==kr.length||In.every(function(qn,hr){return qn!==kr[hr]})})}function It(kt){var bn,Tn,In=isMemo(kt)?kt.type.type:kt.type;return!(typeof In=="function"&&!((bn=In.prototype)!==null&&bn!==void 0&&bn.render)||typeof kt=="function"&&!((Tn=kt.prototype)!==null&&Tn!==void 0&&Tn.render))}function Ct(kt){return!isValidElement(kt)||isFragment(kt)?!1:It(kt)}function tn(kt,bn,Tn,In){if(!bn.length)return Tn;var kr=_toArray(bn),qn=kr[0],hr=kr.slice(1),On;return!kt&&typeof qn=="number"?On=[]:Array.isArray(kt)?On=_toConsumableArray(kt):On=_objectSpread({},kt),In&&Tn===void 0&&hr.length===1?delete On[qn][hr[0]]:On[qn]=tn(On[qn],hr,Tn,In),On}function pn(kt,bn,Tn){var In=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return bn.length&&In&&Tn===void 0&&!get(kt,bn.slice(0,-1))?kt:tn(kt,bn,Tn,In)}function Ee(kt){return _typeof(kt)==="object"&&kt!==null&&Object.getPrototypeOf(kt)===Object.prototype}function ce(kt){return Array.isArray(kt)?[]:{}}var se=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function fe(){for(var kt=arguments.length,bn=new Array(kt),Tn=0;Tn<kt;Tn++)bn[Tn]=arguments[Tn];var In=ce(bn[0]);return bn.forEach(function(kr){function qn(hr,On){var qe=new Set(On),st=get(kr,hr),Lt=Array.isArray(st);if(Lt||Ee(st)){if(!qe.has(st)){qe.add(st);var qt=get(In,hr);Lt?In=pn(In,hr,[]):(!qt||_typeof(qt)!=="object")&&(In=pn(In,hr,ce(st))),se(st).forEach(function(Ve){qn([].concat(_toConsumableArray(hr),[Ve]),qe)})}}else In=pn(In,hr,st)}qn([])}),In}var de={},oe=[],Te=function(bn){oe.push(bn)};function je(kt,bn){if(0)var Tn}function Et(kt,bn){if(0)var Tn}function At(){de={}}function Ot(kt,bn,Tn){!bn&&!de[Tn]&&(kt(!1,Tn),de[Tn]=!0)}function Bt(kt,bn){Ot(je,kt,bn)}function Nt(kt,bn){Ot(Et,kt,bn)}Bt.preMessage=Te,Bt.resetWarned=At,Bt.noteOnce=Nt;var zn=null,Gn=10;function _t(kt,bn,Tn,In,kr,qn,hr,On){var qe=ke.useRef(),st=ke.useState(null),Lt=(0,et.Z)(st,2),qt=Lt[0],Ve=Lt[1];return Je(function(){if(qt&&qt.times<Gn){if(!kt.current){Ve(function(Yi){return(0,We.Z)({},Yi)});return}qn();var gt=qt.targetAlign,Kt=qt.originAlign,Pt=qt.index,Gt=qt.offset,Vt=kt.current.clientHeight,Pn=!1,mr=gt,Vn=null;if(Vt){for(var Un=gt||Kt,er=0,rr=0,Dr=0,dn=Math.min(bn.length-1,Pt),Hn=0;Hn<=dn;Hn+=1){var pi=kr(bn[Hn]);rr=er;var wi=Tn.get(pi);Dr=rr+(wi===void 0?In:wi),er=Dr}for(var Zr=Un==="top"?Gt:Vt-Gt,Or=dn;Or>=0;Or-=1){var Li=kr(bn[Or]),dr=Tn.get(Li);if(dr===void 0){Pn=!0;break}if(Zr-=dr,Zr<=0)break}switch(Un){case"top":Vn=rr-Gt;break;case"bottom":Vn=Dr-Vt+Gt;break;default:{var ci=kt.current.scrollTop,vn=ci+Vt;rr<ci?mr="top":Dr>vn&&(mr="bottom")}}Vn!==null&&hr(Vn),Vn!==qt.lastTop&&(Pn=!0)}Pn&&Ve(function(Yi){return(0,We.Z)((0,We.Z)({},Yi),{},{times:Yi.times+1,targetAlign:mr,lastTop:Vn})})}},[qt,kt.current]),function(gt){if(gt==null){On();return}if(Ye.cancel(qe.current),typeof gt=="number")hr(gt);else if(gt&&(0,Pe.Z)(gt)==="object"){var Kt,Pt=gt.align;"index"in gt?Kt=gt.index:Kt=bn.findIndex(function(Pn){return kr(Pn)===gt.key});var Gt=gt.offset,Vt=Gt===void 0?0:Gt;Ve({times:0,index:Kt,offset:Vt,originAlign:Pt})}}}function cn(kt,bn,Tn,In){var kr=Tn-kt,qn=bn-Tn,hr=Math.min(kr,qn)*2;if(In<=hr){var On=Math.floor(In/2);return In%2?Tn+On+1:Tn-On}return kr>qn?Tn-(In-qn):Tn+(In-kr)}function Jn(kt,bn,Tn){var In=kt.length,kr=bn.length,qn,hr;if(In===0&&kr===0)return null;In<kr?(qn=kt,hr=bn):(qn=bn,hr=kt);var On={__EMPTY_ITEM__:!0};function qe(Kt){return Kt!==void 0?Tn(Kt):On}for(var st=null,Lt=Math.abs(In-kr)!==1,qt=0;qt<hr.length;qt+=1){var Ve=qe(qn[qt]),gt=qe(hr[qt]);if(Ve!==gt){st=qt,Lt=Lt||Ve!==qe(hr[qt+1]);break}}return st===null?null:{index:st,multiple:Lt}}function lr(kt,bn,Tn){var In=ke.useState(kt),kr=(0,et.Z)(In,2),qn=kr[0],hr=kr[1],On=ke.useState(null),qe=(0,et.Z)(On,2),st=qe[0],Lt=qe[1];return ke.useEffect(function(){var qt=Jn(qn||[],kt||[],bn);(qt==null?void 0:qt.index)!==void 0&&(Tn==null||Tn(qt.index),Lt(kt[qt.index])),hr(kt)},[kt]),[st]}var En=(typeof navigator=="undefined"?"undefined":(0,Pe.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),wr=En,xi=function(kt,bn){var Tn=(0,ke.useRef)(!1),In=(0,ke.useRef)(null);function kr(){clearTimeout(In.current),Tn.current=!0,In.current=setTimeout(function(){Tn.current=!1},50)}var qn=(0,ke.useRef)({top:kt,bottom:bn});return qn.current.top=kt,qn.current.bottom=bn,function(hr){var On=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qe=hr<0&&qn.current.top||hr>0&&qn.current.bottom;return On&&qe?(clearTimeout(In.current),Tn.current=!1):(!qe||Tn.current)&&kr(),!Tn.current&&qe}};function ei(kt,bn,Tn,In,kr){var qn=(0,ke.useRef)(0),hr=(0,ke.useRef)(null),On=(0,ke.useRef)(null),qe=(0,ke.useRef)(!1),st=xi(bn,Tn);function Lt(Gt,Vt){Ye.cancel(hr.current),qn.current+=Vt,On.current=Vt,!st(Vt)&&(wr||Gt.preventDefault(),hr.current=Ye(function(){var Pn=qe.current?10:1;kr(qn.current*Pn),qn.current=0}))}function qt(Gt,Vt){kr(Vt,!0),wr||Gt.preventDefault()}var Ve=(0,ke.useRef)(null),gt=(0,ke.useRef)(null);function Kt(Gt){if(kt){Ye.cancel(gt.current),gt.current=Ye(function(){Ve.current=null},2);var Vt=Gt.deltaX,Pn=Gt.deltaY,mr=Gt.shiftKey,Vn=Vt,Un=Pn;(Ve.current==="sx"||!Ve.current&&mr&&Pn&&!Vt)&&(Vn=Pn,Un=0,Ve.current="sx");var er=Math.abs(Vn),rr=Math.abs(Un);Ve.current===null&&(Ve.current=In&&er>rr?"x":"y"),Ve.current==="y"?Lt(Gt,Un):qt(Gt,Vn)}}function Pt(Gt){kt&&(qe.current=Gt.detail===On.current)}return[Kt,Pt]}var Yr=14/15;function Gr(kt,bn,Tn){var In=(0,ke.useRef)(!1),kr=(0,ke.useRef)(0),qn=(0,ke.useRef)(null),hr=(0,ke.useRef)(null),On,qe=function(Ve){if(In.current){var gt=Math.ceil(Ve.touches[0].pageY),Kt=kr.current-gt;kr.current=gt,Tn(Kt)&&Ve.preventDefault(),clearInterval(hr.current),hr.current=setInterval(function(){Kt*=Yr,(!Tn(Kt,!0)||Math.abs(Kt)<=.1)&&clearInterval(hr.current)},16)}},st=function(){In.current=!1,On()},Lt=function(Ve){On(),Ve.touches.length===1&&!In.current&&(In.current=!0,kr.current=Math.ceil(Ve.touches[0].pageY),qn.current=Ve.target,qn.current.addEventListener("touchmove",qe),qn.current.addEventListener("touchend",st))};On=function(){qn.current&&(qn.current.removeEventListener("touchmove",qe),qn.current.removeEventListener("touchend",st))},Je(function(){return kt&&bn.current.addEventListener("touchstart",Lt),function(){var qt;(qt=bn.current)===null||qt===void 0||qt.removeEventListener("touchstart",Lt),On(),clearInterval(hr.current)}},[kt])}var Ai=20;function ti(){var kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,bn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Tn=kt/bn*100;return isNaN(Tn)&&(Tn=0),Tn=Math.max(Tn,Ai),Tn=Math.min(Tn,kt/2),Math.floor(Tn)}function ki(kt,bn,Tn,In){var kr=ke.useMemo(function(){return[new Map,[]]},[kt,Tn.id,In]),qn=(0,et.Z)(kr,2),hr=qn[0],On=qn[1],qe=function(Lt){var qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Lt,Ve=hr.get(Lt),gt=hr.get(qt);if(Ve===void 0||gt===void 0)for(var Kt=kt.length,Pt=On.length;Pt<Kt;Pt+=1){var Gt,Vt=kt[Pt],Pn=bn(Vt);hr.set(Pn,Pt);var mr=(Gt=Tn.get(Pn))!==null&&Gt!==void 0?Gt:In;if(On[Pt]=(On[Pt-1]||0)+mr,Pn===Lt&&(Ve=Pt),Pn===qt&&(gt=Pt),Ve!==void 0&&gt!==void 0)break}return{top:On[Ve-1]||0,bottom:On[gt]}};return qe}var Ri=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],jn=[],Pi={overflowY:"auto",overflowAnchor:"none"};function va(kt,bn){var Tn=kt.prefixCls,In=Tn===void 0?"rc-virtual-list":Tn,kr=kt.className,qn=kt.height,hr=kt.itemHeight,On=kt.fullHeight,qe=On===void 0?!0:On,st=kt.style,Lt=kt.data,qt=kt.children,Ve=kt.itemKey,gt=kt.virtual,Kt=kt.direction,Pt=kt.scrollWidth,Gt=kt.component,Vt=Gt===void 0?"div":Gt,Pn=kt.onScroll,mr=kt.onVirtualScroll,Vn=kt.onVisibleChange,Un=kt.innerProps,er=kt.extraRender,rr=kt.styles,Dr=(0,Ae.Z)(kt,Ri),dn=!!(gt!==!1&&qn&&hr),Hn=dn&&Lt&&(hr*Lt.length>qn||!!Pt),pi=Kt==="rtl",wi=Ie()(In,(0,be.Z)({},"".concat(In,"-rtl"),pi),kr),Zr=Lt||jn,Or=(0,ke.useRef)(),Li=(0,ke.useRef)(),dr=(0,ke.useState)(0),ci=(0,et.Z)(dr,2),vn=ci[0],Yi=ci[1],Di=(0,ke.useState)(0),wa=(0,et.Z)(Di,2),Xi=wa[0],_i=wa[1],fa=(0,ke.useState)(!1),Gi=(0,et.Z)(fa,2),Ci=Gi[0],ta=Gi[1],ka=function(){ta(!0)},na=function(){ta(!1)},Fi=ke.useCallback(function(Qt){return typeof Ve=="function"?Ve(Qt):Qt==null?void 0:Qt[Ve]},[Ve]),Aa={getKey:Fi};function Ba(Qt){Yi(function(Cn){var Dn;typeof Qt=="function"?Dn=Qt(Cn):Dn=Qt;var ar=Fn(Dn);return Or.current.scrollTop=ar,ar})}var ha=(0,ke.useRef)({start:0,end:Zr.length}),oi=(0,ke.useRef)(),vt=lr(Zr,Fi),ht=(0,et.Z)(vt,1),Wt=ht[0];oi.current=Wt;var rn=on(Fi,null,null),Mn=(0,et.Z)(rn,4),Cr=Mn[0],Sr=Mn[1],Tr=Mn[2],Fr=Mn[3],_r=ke.useMemo(function(){if(!dn)return{scrollHeight:void 0,start:0,end:Zr.length-1,offset:void 0};if(!Hn){var Qt;return{scrollHeight:((Qt=Li.current)===null||Qt===void 0?void 0:Qt.offsetHeight)||0,start:0,end:Zr.length-1,offset:void 0}}for(var Cn=0,Dn,ar,An,gr=Zr.length,Br=0;Br<gr;Br+=1){var br=Zr[Br],Ar=Fi(br),ur=Tr.get(Ar),Er=Cn+(ur===void 0?hr:ur);Er>=vn&&Dn===void 0&&(Dn=Br,ar=Cn),Er>vn+qn&&An===void 0&&(An=Br),Cn=Er}return Dn===void 0&&(Dn=0,ar=0,An=Math.ceil(qn/hr)),An===void 0&&(An=Zr.length-1),An=Math.min(An+1,Zr.length-1),{scrollHeight:Cn,start:Dn,end:An,offset:ar}},[Hn,dn,vn,Zr,Fr,qn]),ni=_r.scrollHeight,di=_r.start,Ei=_r.end,ji=_r.offset;ha.current.start=di,ha.current.end=Ei;var $i=ke.useState({width:0,height:qn}),zi=(0,et.Z)($i,2),Le=zi[0],ze=zi[1],Fe=function(Cn){ze({width:Cn.width||Cn.offsetWidth,height:Cn.height||Cn.offsetHeight})},Ze=(0,ke.useRef)(),rt=(0,ke.useRef)(),dt=ke.useMemo(function(){return ti(Le.width,Pt)},[Le.width,Pt]),yt=ke.useMemo(function(){return ti(Le.height,ni)},[Le.height,ni]),Xt=ni-qn,Jt=(0,ke.useRef)(Xt);Jt.current=Xt;function Fn(Qt){var Cn=Qt;return Number.isNaN(Jt.current)||(Cn=Math.min(Cn,Jt.current)),Cn=Math.max(Cn,0),Cn}var ir=vn<=0,_n=vn>=Xt,sn=xi(ir,_n),nn=function(){return{x:pi?-Xi:Xi,y:vn}},gn=(0,ke.useRef)(nn()),xn=_e(function(){if(mr){var Qt=nn();(gn.current.x!==Qt.x||gn.current.y!==Qt.y)&&(mr(Qt),gn.current=Qt)}});function tr(Qt,Cn){var Dn=Qt;Cn?((0,Se.flushSync)(function(){_i(Dn)}),xn()):Ba(Dn)}function Kn(Qt){var Cn=Qt.currentTarget.scrollTop;Cn!==vn&&Ba(Cn),Pn==null||Pn(Qt),xn()}var Nn=function(Cn){var Dn=Cn,ar=Pt-Le.width;return Dn=Math.max(Dn,0),Dn=Math.min(Dn,ar),Dn},$n=_e(function(Qt,Cn){Cn?((0,Se.flushSync)(function(){_i(function(Dn){var ar=Dn+(pi?-Qt:Qt);return Nn(ar)})}),xn()):Ba(function(Dn){var ar=Dn+Qt;return ar})}),Wn=ei(dn,ir,_n,!!Pt,$n),or=(0,et.Z)(Wn,2),He=or[0],$e=or[1];Gr(dn,Or,function(Qt,Cn){return sn(Qt,Cn)?!1:(He({preventDefault:function(){},deltaY:Qt}),!0)}),Je(function(){function Qt(Dn){dn&&Dn.preventDefault()}var Cn=Or.current;return Cn.addEventListener("wheel",He),Cn.addEventListener("DOMMouseScroll",$e),Cn.addEventListener("MozMousePixelScroll",Qt),function(){Cn.removeEventListener("wheel",He),Cn.removeEventListener("DOMMouseScroll",$e),Cn.removeEventListener("MozMousePixelScroll",Qt)}},[dn]),Je(function(){Pt&&_i(function(Qt){return Nn(Qt)})},[Le.width,Pt]);var Tt=function(){var Cn,Dn;(Cn=Ze.current)===null||Cn===void 0||Cn.delayHidden(),(Dn=rt.current)===null||Dn===void 0||Dn.delayHidden()},mt=_t(Or,Zr,Tr,hr,Fi,function(){return Sr(!0)},Ba,Tt);ke.useImperativeHandle(bn,function(){return{getScrollInfo:nn,scrollTo:function(Cn){function Dn(ar){return ar&&(0,Pe.Z)(ar)==="object"&&("left"in ar||"top"in ar)}Dn(Cn)?(Cn.left!==void 0&&_i(Nn(Cn.left)),mt(Cn.top)):mt(Cn)}}}),Je(function(){if(Vn){var Qt=Zr.slice(di,Ei+1);Vn(Qt,Zr)}},[di,Ei,Zr]);var Yt=ki(Zr,Fi,Tr,hr),fn=er==null?void 0:er({start:di,end:Ei,virtual:Hn,offsetX:Xi,offsetY:ji,rtl:pi,getSize:Yt}),ln=Ue(Zr,di,Ei,Pt,Cr,qt,Aa),Ln=null;qn&&(Ln=(0,We.Z)((0,be.Z)({},qe?"height":"maxHeight",qn),Pi),dn&&(Ln.overflowY="hidden",Pt&&(Ln.overflowX="hidden"),Ci&&(Ln.pointerEvents="none")));var yn={};return pi&&(yn.dir="rtl"),ke.createElement("div",(0,ge.Z)({style:(0,We.Z)((0,We.Z)({},st),{},{position:"relative"}),className:wi},yn,Dr),ke.createElement(ot.Z,{onResize:Fe},ke.createElement(Vt,{className:"".concat(In,"-holder"),style:Ln,ref:Or,onScroll:Kn,onMouseEnter:Tt},ke.createElement(wt,{prefixCls:In,height:ni,offsetX:Xi,offsetY:ji,scrollWidth:Pt,onInnerResize:Sr,ref:Li,innerProps:Un,rtl:pi,extra:fn},ln))),Hn&&ni>qn&&ke.createElement(xe,{ref:Ze,prefixCls:In,scrollOffset:vn,scrollRange:ni,rtl:pi,onScroll:tr,onStartMove:ka,onStopMove:na,spinSize:yt,containerSize:Le.height,style:rr==null?void 0:rr.verticalScrollBar,thumbStyle:rr==null?void 0:rr.verticalScrollBarThumb}),Hn&&Pt&&ke.createElement(xe,{ref:rt,prefixCls:In,scrollOffset:Xi,scrollRange:Pt,rtl:pi,onScroll:tr,onStartMove:ka,onStopMove:na,spinSize:dt,containerSize:Le.width,horizontal:!0,style:rr==null?void 0:rr.horizontalScrollBar,thumbStyle:rr==null?void 0:rr.horizontalScrollBarThumb}))}var da=ke.forwardRef(va);da.displayName="List";var ya=da,ea=ya},66392:function(hn,Zt){"use strict";var le;var ge=Symbol.for("react.element"),We=Symbol.for("react.portal"),Pe=Symbol.for("react.fragment"),et=Symbol.for("react.strict_mode"),be=Symbol.for("react.profiler"),Ae=Symbol.for("react.provider"),ke=Symbol.for("react.context"),Se=Symbol.for("react.server_context"),pe=Symbol.for("react.forward_ref"),Ie=Symbol.for("react.suspense"),ot=Symbol.for("react.suspense_list"),Oe=Symbol.for("react.memo"),wt=Symbol.for("react.lazy"),lt=Symbol.for("react.offscreen"),tt;tt=Symbol.for("react.module.reference");function Ge(Me){if(typeof Me=="object"&&Me!==null){var bt=Me.$$typeof;switch(bt){case ge:switch(Me=Me.type,Me){case Pe:case be:case et:case Ie:case ot:return Me;default:switch(Me=Me&&Me.$$typeof,Me){case Se:case ke:case pe:case wt:case Oe:case Ae:return Me;default:return bt}}case We:return bt}}}le=ke,le=Ae,le=ge,le=pe,le=Pe,le=wt,le=Oe,le=We,le=be,le=et,le=Ie,le=ot,le=function(){return!1},le=function(){return!1},le=function(Me){return Ge(Me)===ke},le=function(Me){return Ge(Me)===Ae},le=function(Me){return typeof Me=="object"&&Me!==null&&Me.$$typeof===ge},le=function(Me){return Ge(Me)===pe},le=function(Me){return Ge(Me)===Pe},le=function(Me){return Ge(Me)===wt},le=function(Me){return Ge(Me)===Oe},le=function(Me){return Ge(Me)===We},le=function(Me){return Ge(Me)===be},le=function(Me){return Ge(Me)===et},le=function(Me){return Ge(Me)===Ie},le=function(Me){return Ge(Me)===ot},le=function(Me){return typeof Me=="string"||typeof Me=="function"||Me===Pe||Me===be||Me===et||Me===Ie||Me===ot||Me===lt||typeof Me=="object"&&Me!==null&&(Me.$$typeof===wt||Me.$$typeof===Oe||Me.$$typeof===Ae||Me.$$typeof===ke||Me.$$typeof===pe||Me.$$typeof===tt||Me.getModuleId!==void 0)},le=Ge},31461:function(hn,Zt,le){"use strict";le(66392)},25510:function(hn){"use strict";hn.exports="data:image/png;base64,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"},32637:function(hn){"use strict";hn.exports="data:image/jpeg;base64,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"},84279:function(hn,Zt,le){"use strict";var ge=Object.defineProperty,We=Object.defineProperties,Pe=Object.getOwnPropertyDescriptors,et=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,ke=(a,y,b)=>y in a?ge(a,y,{enumerable:!0,configurable:!0,writable:!0,value:b}):a[y]=b,Se=(a,y)=>{for(var b in y||(y={}))be.call(y,b)&&ke(a,b,y[b]);if(et)for(var b of et(y))Ae.call(y,b)&&ke(a,b,y[b]);return a},pe=(a,y)=>We(a,Pe(y)),Ie=a=>typeof a=="symbol"?a:a+"",ot=(a,y)=>{var b={};for(var E in a)be.call(a,E)&&y.indexOf(E)<0&&(b[E]=a[E]);if(a!=null&&et)for(var E of et(a))y.indexOf(E)<0&&Ae.call(a,E)&&(b[E]=a[E]);return b};function Oe(a){return Array.isArray(a)}var wt={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 lt(){return"window"in globalThis&&"document"in globalThis}function tt(){return"matchMedia"in window?window.matchMedia("(pointer: coarse)").matches:"ontouchstart"in window||navigator.maxTouchPoints>0}function Ge(){return typeof navigator.vibrate=="function"}function Me(){var a,y;if(!lt())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 bt(){if(!lt())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 zt(){return HTMLElement.prototype.hasOwnProperty("popover")}var Ye={strings:wt,_locale:"",_dirty:!1,_subscribers:[],_numberFormatter:void 0,get locale(){return Ye._locale||(Ye._locale=lt()?navigator.language.slice(0,5):"en-US"),Ye._locale},set locale(a){Ye._locale=a,Ye._numberFormatter=void 0,Ye.dirty=!0},get numberFormatter(){return Ye._numberFormatter||(Ye._numberFormatter=new Intl.NumberFormat(Ye.locale)),Ye._numberFormatter},merge(a,y){if(typeof a=="string"&&y)Ye.strings[a]=Se(Se({},Ye.strings[a]),y),Ye.dirty=!0;else for(const b of Object.keys(a))Ye.merge(b,a[b])},get dirty(){return Ye._dirty},set dirty(a){Ye._dirty||Ye._dirty===a||(Ye._dirty=!0,setTimeout(()=>{Ye._dirty=!1,this._subscribers.forEach(y=>y==null?void 0:y())},0))},subscribe(a){return Ye._subscribers.push(a),Ye._subscribers.length-1},unsubscribe(a){a<0||a>=Ye._subscribers.length||(Ye._subscribers[a]=void 0)},update(a){let y=a.querySelectorAll("[data-l10n-tooltip]");for(const b of y){const E=b.getAttribute("data-l10n-tooltip");if(E){const ee=it(E);ee&&b.setAttribute("data-tooltip",ee)}}y=a.querySelectorAll("[data-l10n-arial-label]");for(const b of y){const E=b.getAttribute("data-l10n-arial-label");if(E){const ee=it(E);ee&&b.setAttribute("aria-label",ee)}}}};function it(a,...y){if(a===void 0)return;let b="";const E=Ye.locale;Ye.strings[E]&&(b=Ye.strings[E][a]);const ee=E.slice(0,2);if(!b&&Ye.strings[ee]&&(b=Ye.strings[ee][a]),b||(b=Ye.strings.en[a]),!b)return;const re=/(%@|%([0-9]+)\$@)/g;let ae=re.exec(b),he=0;for(;ae;){if(y[he++]){const ye=ae[2]?parseInt(ae[2],10)-1:he-1;let we=y[ye];typeof we=="number"&&(we=Ye.numberFormatter.format(we)),b=b.replace(ae[1],we)}ae=re.exec(b)}return b=b.replace(/%%/g,"%"),b}var Be={m0:"#3F3D99",m1:"#993D71",m2:"#998B3D",m3:"#3D9956",m4:"#3D5A99",m5:"#993D90",m6:"#996D3D",m7:"#43993D",m8:"#3D7999",m9:"#843D99"},xe={blue:"#0072BD",orange:"#D95319",yellow:"#EDB120",purple:"#7E2F8E",green:"#77AC30",cyan:"#4DBEEE",red:"#A2142F"},Ke={red:"#fbbbb6",orange:"#ffe0c2",yellow:"#fff1c2",lime:"#d0e8b9",green:"#bceac4",teal:"#b9f1f1",cyan:"#b8e5c9",blue:"#b6d9fb",indigo:"#d1c2f0",purple:"#e3baf8",magenta:"#f9c8e0",black:"#353535","dark-grey":"#8C8C8C",grey:"#D0D0D0","light-grey":"#F0F0F0",white:"#ffffff"},Ue={red:"#d7170b",orange:"#fe8a2b",yellow:"#ffc02b",lime:"#63b215",green:"#21ba3a",teal:"#17cfcf",cyan:"#13a7ec",blue:"#0d80f2",indigo:"#63c",purple:"#a219e6",magenta:"#eb4799",black:"#000","dark-grey":"#666",grey:"#A6A6A6","light-grey":"#d4d5d2",white:"#ffffff"},ft={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"},pt={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 Mt(a){var y,b,E,ee,re,ae;const he=a.split("!");let me,ye,we,Re=255,Xe=255,ct=255,xt=-1;const mn=he.length>0&&he[0].startsWith("-");mn&&(he[0]=he[0].slice(1));for(let cr=0;cr<he.length;cr++){me=Re,ye=Xe,we=ct;const un=(y=he[cr].trim().match(/^([A-Za-z\d-]+)/))==null?void 0:y[1],Zn=un==null?void 0:un.toLowerCase(),pr=un&&(ae=(re=(ee=(E=(b=Ue[Zn])!=null?b:Ue[ft[un]])!=null?E:xe[un])!=null?ee:pt[un])!=null?re:Be[un])!=null?ae:he[cr].trim();let Yn=pr.match(/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);if(Yn!=null&&Yn[1]&&Yn[2]&&Yn[3])Re=Math.max(0,Math.min(255,Number.parseInt(Yn[1],16))),Xe=Math.max(0,Math.min(255,Number.parseInt(Yn[2],16))),ct=Math.max(0,Math.min(255,Number.parseInt(Yn[3],16)));else if(Yn=pr.match(/^#([\da-f]{3})$/i),Yn!=null&&Yn[1]){const $r=Number.parseInt(Yn[1][0],16),ui=Number.parseInt(Yn[1][1],16),Xr=Number.parseInt(Yn[1][2],16);Re=Math.max(0,Math.min(255,$r*16+$r)),Xe=Math.max(0,Math.min(255,ui*16+ui)),ct=Math.max(0,Math.min(255,Xr*16+Xr))}else if(Yn=pr.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i),Yn!=null&&Yn[1]&&Yn[2]&&Yn[3])Re=Math.max(0,Math.min(255,Number.parseInt(Yn[1]))),Xe=Math.max(0,Math.min(255,Number.parseInt(Yn[2]))),ct=Math.max(0,Math.min(255,Number.parseInt(Yn[3])));else return;xt>=0&&(Re=(1-xt)*Re+xt*me,Xe=(1-xt)*Xe+xt*ye,ct=(1-xt)*ct+xt*we,xt=-1),cr+1<he.length&&(xt=Math.max(0,Math.min(100,Number.parseInt(he[++cr])))/100)}return xt>=0&&(Re=xt*Re+(1-xt)*me,Xe=xt*Xe+(1-xt)*ye,ct=xt*ct+(1-xt)*we),mn&&(Re=255-Re,Xe=255-Xe,ct=255-ct),"#"+("00"+Math.round(Re).toString(16)).slice(-2)+("00"+Math.round(Xe).toString(16)).slice(-2)+("00"+Math.round(ct).toString(16)).slice(-2)}function Qe(a){var y,b;return a=a.trim(),(b=(y=Ke[a.toLowerCase()])!=null?y:Ke[ft[a]])!=null?b:Mt(a)}function Rt(a){if(!a||a[0]!=="#")return;a=a.slice(1);let y;return a.length<=4?(y={r:parseInt(a[0]+a[0],16),g:parseInt(a[1]+a[1],16),b:parseInt(a[2]+a[2],16)},a.length===4&&(y.a=parseInt(a[3]+a[3],16)/255)):(y={r:parseInt(a[0]+a[1],16),g:parseInt(a[2]+a[3],16),b:parseInt(a[4]+a[5],16)},a.length===8&&(y.a=parseInt(a[6]+a[7],16)/255)),y&&y.a===void 0&&(y.a=1),y}function Dt(a,y,b){return b<0&&(b+=6),b>=6&&(b-=6),b<1?(y-a)*b+a:b<3?y:b<4?(y-a)*(4-b)+a:a}function on(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*Dt(re,ee,y+2)),g:Math.round(255*Dt(re,ee,y)),b:Math.round(255*Dt(re,ee,y-2))}}function Ut(a){return a<0?0:a>255?255:Math.round(a)}function wn(a){const{r:y,g:b,b:E}=a;let ee=((1<<24)+(Ut(y)<<16)+(Ut(b)<<8)+Ut(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 Xn(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,me;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 ye=(ee+re)/2;return re===ee?me=0:ye<=.5?me=ae/(re+ee):me=ae/(2-re-ee),{h:he,s:me,l:ye}}function nr(a){let y=Rt(a);if(!y)return a;let{h:b,s:E,l:ee}=Xn(y);return E+=.1,ee-=.1,wn(on({h:b,s:E,l:ee}))}var Je={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"},_e={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},Ft=[{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 Sn(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 Ft)if((!y||ee.variant===y)&&(!b||ee.style===b)&&E>=ee.offset&&E<ee.offset+ee.len){const re=ee.start+E-ee.offset;return String.fromCodePoint(_e[re]||re)}return a}function an(a){var y;if((a<119808||a>120831)&&(a<8448||a>8527))return{char:String.fromCodePoint(a)};for(const b in _e)if(_e[b]===a){a=(y=b.codePointAt(0))!=null?y:0;break}for(const b of Ft)if(a>=b.start&&a<b.start+b.len)return{char:String.fromCodePoint(a-b.start+b.offset),variant:b.variant,style:b.style};return{char:String.fromCodePoint(a)}}function nt(a){var y;let b="";for(const E of a){if("{}<>[]$&#^_%:'\u02DC".includes(E)){b+=E;continue}const ee=(y=E.codePointAt(0))!=null?y:0;let re=Je[ee];if(re)re.startsWith("\\")?b+=re+" ":b+=re;else{const{char:ae,variant:he,style:me}=an(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(me){case"bold":re=`\\mathbf{${re}}`;break;case"italic":re=`\\mathit{${re}}`;break;case"bolditalic":re=`\\mathbfit{${re}}`;break}b+=re}}return b}function at(a){return a?Array.isArray(a)?a:typeof a=="object"&&"group"in a?a.group:[]:[]}var $t={},kn=Se({},Je),Ht={},It={},Ct={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}"},tn={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}},pn={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}},Ee={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:pn},"amsmath.sty":{package:tn,primitive:!0},"texvc.sty":{package:Ct,primitive:!1}},ce={" ":32,"\\!":33,"\\#":35,"\\$":36,"\\%":37,"\\&":38,"-":45,"\\textunderscore":95,"\\euro":8364,"\\maltese":10016,"\\{":123,"\\}":125,"\\textbraceleft":123,"\\textbraceright":125,"\\lbrace":123,"\\rbrace":125,"\\lbrack":91,"\\rbrack":93,"\\nobreakspace":160,"\\ldots":8230,"\\textellipsis":8230,"\\backslash":92,"`":8216,"'":8217,"``":8220,"''":8221,"\\degree":176,"\\textasciicircum":94,"\\textasciitilde":126,"\\textasteriskcentered":42,"\\textbackslash":92,"\\textbullet":8226,"\\textdollar":36,"\\textsterling":163,"\\textdagger":8224,"\\textdaggerdbl":8225,"\u2013":8211,"\u2014":8212,"\u2018":8216,"\u2019":8217,"\u201C":8220,"\u201D":8221,'"':8221,"\\ss":223,"\\ae":230,"\\oe":339,"\\AE":198,"\\OE":338,"\\O":216,"\\i":305,"\\j":567,"\\aa":229,"\\AA":197},se=/[\w!@*()-=+{}\[\]\\';:?/.,~<>`|$%#&^" ]/,fe,de;bt()?(fe=new RegExp("\\p{Letter}","u"),de=new RegExp("[0-9\\p{Letter}]","u")):(fe=/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/,de=/[\da-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/);function oe(a,y,b="mord",E){y!==void 0&&($t[a]={definitionType:"symbol",type:b,variant:E,codepoint:y},kn[y]||(kn[y]=a))}function Te(a,y,b){if(typeof a=="string"){for(let E=0;E<a.length;E++){const ee=a.charAt(E);oe(ee,ee.codePointAt(0))}return}for(const[E,ee,re,ae]of a)oe(E,ee,re!=null?re:y,ae!=null?ae:b)}function je(a,y){for(let b=a;b<=y;b++)oe(String.fromCodePoint(b),b)}function Et(a){var y;return(y=It[a])!=null?y:null}function At(a,y){var b,E;if(y.length===0||y==="\\"||!y.startsWith("\\"))return[];const ee=[];for(const ae in Ht)ae.startsWith(y)&&!Ht[ae].infix&&ee.push({match:ae,frequency:(b=Ht[ae].frequency)!=null?b:0});for(const ae in $t)ae.startsWith(y)&&ee.push({match:ae,frequency:(E=$t[ae].frequency)!=null?E:0});const re=y.substring(1);for(const ae of Object.keys(a.options.macros))ae.startsWith(re)&&ee.push({match:"\\"+ae,frequency:0});return ee.sort((ae,he)=>{var me,ye;return ae.frequency===he.frequency?ae.match.length===he.match.length?ae.match<he.match?-1:1:ae.match.length-he.match.length:((me=he.frequency)!=null?me:0)-((ye=ae.frequency)!=null?ye:0)}),ee.map(ae=>ae.match)}function Ot(a){let y="auto";const b=a.match(/:([^=]+)/);return b&&(y=b[1].trim()),y}function Bt(a){if(!a)return[];const y=[];let b=a.split("]");if(b[0].startsWith("[")){y.push({isOptional:!0,type:Ot(b[0].slice(1))});for(let E=1;E<=b.length;E++)y.push(...Bt(b[E]))}else if(b=a.split("}"),b[0].startsWith("{")){y.push({isOptional:!1,type:Ot(b[0].slice(1))});for(let E=1;E<=b.length;E++)y.push(...Bt(b[E]))}return y}function Nt(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 zn(a,y){typeof a=="string"&&(a=[a]);const b={tabular:!1,params:[],createAtom:y};for(const E of a)It[E]=b}function Gn(a,y,b){typeof a=="string"&&(a=[a]);const ee={tabular:!0,params:Bt(y),createAtom:b};for(const re of a)It[re]=ee}function _t(a,y,b){var E,ee;b||(b={});const re={definitionType:"function",params:Bt(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")Ht["\\"+a]=re;else for(const ae of a)Ht["\\"+ae]=re}var cn;function Jn(a){return cn||(cn=En(Ee)),a?En(Se(Se({},cn),a)):cn}function lr(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 Se({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 En(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]=lr(E.package[ee],{expand:!E.primitive,captureSelection:E.captureSelection});else y[b]=lr(E)}return y}function wr(a,y="math"){if(!a||a.length===0)return null;let b=null;if(a.startsWith("\\")){if(b=Ht[a],b)return!b.ifMode||b.ifMode===y?b:null;y==="math"?b=$t[a]:ce[a]&&(b={definitionType:"symbol",type:"mord",codepoint:ce[a]})}else if(y==="math"){if(b=$t[a],!b&&a.length===1){const E=ei("math",a.codePointAt(0));return E.startsWith("\\")?pe(Se({},wr(E,"math")),{command:E}):null}}else ce[a]?b={definitionType:"symbol",type:"mord",codepoint:ce[a]}:y==="text"&&(b={definitionType:"symbol",type:"mord",codepoint:a.codePointAt(0)});return b!=null?b:null}function xi(a,y){if(!a.startsWith("\\"))return null;const b=a.slice(1);return y[b]}function ei(a,y){if(y===void 0)return"";if(a==="math"&&kn[y])return kn[y];if(a==="text"){const b=Object.keys(ce).find(E=>ce[E]===y);return b||String.fromCodePoint(y)}return String.fromCodePoint(y)}var Yr=[0,.68889,0,0,.72222],Gr=[0,.68889,0,0,.66667],Ai=[0,.68889,0,0,.77778],ti=[0,.68889,0,0,.61111],ki=[.16667,.68889,0,0,.77778],Ri=[0,.68889,0,0,.55556],jn=[0,0,0,0,.25],Pi=[0,.825,0,0,2.33334],va=[0,.9,0,0,2.33334],da=[0,.68889,0,0,.54028],ya=[-.03598,.46402,0,0,.5],ea=[-.13313,.36687,0,0,1],kt=[.01354,.52239,0,0,1],bn=[.01354,.52239,0,0,1.11111],Tn=[0,.54986,0,0,1],In=[0,.69224,0,0,.5],kr=[0,.43056,0,0,1],qn=[.08198,.58198,0,0,.77778],hr=[.19444,.69224,0,0,.41667],On=[.1808,.675,0,0,1],qe=[.19444,.69224,0,0,.83334],st=[.13667,.63667,0,0,1],Lt=[-.064,.437,0,0,1.334],qt=[.08167,.58167,0,0,.77778],Ve=[0,.69224,0,0,.72222],gt=[0,.69224,0,0,.66667],Kt=[-.13313,.36687,0,0,.77778],Pt=[.06062,.54986,0,0,.77778],Gt=[0,.69224,0,0,.77778],Vt=[.25583,.75583,0,0,.77778],Pn=[.25142,.75726,0,0,.77778],mr=[.20576,.70576,0,0,.77778],Vn=[.30274,.79383,0,0,.77778],Un=[.22958,.72958,0,0,.77778],er=[.1808,.675,0,0,.77778],rr=[.13667,.63667,0,0,.77778],Dr=[.13597,.63597,0,0,.77778],dn=[.03517,.54986,0,0,.77778],Hn=[0,.675,0,0,.77778],pi=[.19444,.69224,0,0,.61111],wi=[0,.54986,0,0,.76042],Zr=[0,.54986,0,0,.66667],Or=[.0391,.5391,0,0,.77778],Li=[.03517,.54986,0,0,1.33334],dr=[.38569,.88569,0,0,.77778],ci=[.23222,.74111,0,0,.77778],vn=[.19444,.69224,0,0,.77778],Yi=[0,.37788,0,0,.5],Di=[0,.54986,0,0,.72222],wa=[0,.69224,0,0,.83334],Xi=[.11111,.69224,0,0,.66667],_i=[.26167,.75726,0,0,.77778],fa=[.48256,.98256,0,0,.77778],Gi=[.28481,.79383,0,0,.77778],Ci=[.08167,.58167,0,0,.22222],ta=[.08167,.58167,0,0,.38889],ka=[0,.43056,.04028,0,.66667],na=[.41951,.91951,0,0,.77778],Fi=[.24982,.74947,0,0,.38865],Aa=[.08319,.58283,0,0,.75623],Ba=[0,.10803,0,0,.27764],ha=[0,.47534,0,0,.50181],oi=[.18906,.47534,0,0,.50181],vt=[0,.69141,0,0,.50181],ht=[.24982,.74947,0,0,.27764],Wt=[0,.69141,0,0,.21471],rn=[.25,.75,0,0,.44722],Mn=[0,.64444,0,0,.575],Cr=[.08556,.58556,0,0,.89444],Sr=[0,.69444,0,0,.89444],Tr=[0,.68611,0,0,.9],Fr=[0,.68611,0,0,.86944],_r=[.25,.75,0,0,.575],ni=[.25,.75,0,0,.31944],di=[0,.69444,0,0,.63889],Ei=[0,.69444,0,0,.31944],ji=[0,.44444,0,0,.63889],$i=[0,.44444,0,0,.51111],zi=[0,.69444,0,0,.575],Le=[.13333,.63333,0,0,.89444],ze=[0,.44444,0,0,.31944],Fe=[0,.69444,0,0,.86944],Ze=[0,.68611,0,0,.69166],rt=[0,.68611,0,0,.83055],dt=[0,.68611,0,0,.89444],yt=[0,.69444,0,0,.60278],Xt=[.19444,.69444,0,0,.51111],Jt=[0,.69444,0,0,.83055],Fn=[-.10889,.39111,0,0,1.14999],ir=[.19444,.69444,0,0,.575],_n=[.19444,.69444,0,0,1.14999],sn=[.19444,.69444,0,0,.70277],nn=[.05556,.75,0,0,.575],gn=[0,.68611,0,0,.95833],xn=[.08556,.58556,0,0,.76666],tr=[-.02639,.47361,0,0,.575],Kn=[0,.44444,0,0,.89444],Nn=[0,.55556,0,0,.76666],$n=[-.10889,.39111,0,0,.89444],Wn=[.00222,.50222,0,0,.89444],or=[.19667,.69667,0,0,.89444],He=[.08556,.58556,0,0,1.14999],$e=[0,.69444,0,0,.70277],Tt=[-.02778,.47222,0,0,.575],mt=[.25,.75,0,0,.51111],Yt=[-.13889,.36111,0,0,1.14999],fn=[.19444,.69444,0,0,1.02222],ln=[.12963,.69444,0,0,.89444],Ln=[.19444,.69444,0,0,.44722],yn=[0,.64444,.13167,0,.59111],Qt=[.19444,.64444,.13167,0,.59111],Cn=[0,.68611,.17208,0,.8961],Dn=[.19444,.44444,.105,0,.53222],ar=[0,.44444,.085,0,.82666],An=[0,.69444,.06709,0,.59111],gr=[0,.69444,.12945,0,.35555],Br=[0,.69444,0,0,.94888],br=[0,.69444,.11472,0,.59111],Ar=[0,.68611,.10778,0,.88555],ur=[0,.69444,.07939,0,.62055],Er=[0,.69444,.12417,0,.30667],Nr=[0,.64444,.13556,0,.51111],Kr=[.19444,.64444,.13556,0,.51111],xr=[0,.68333,.16389,0,.74333],Vr=[.19444,.43056,.08847,0,.46],fi=[0,.43056,.07514,0,.71555],Hi=[0,.69444,.06646,0,.51111],Ti=[0,.69444,0,0,.83129],mi=[0,.69444,.1225,0,.51111],Bi=[0,.68333,.09403,0,.76666],Oi=[0,.68333,.11111,0,.76666],qr=[0,.69444,.06961,0,.51444],gi=[0,.69444,0,0,.27778],Pr=[.25,.75,0,0,.38889],Ur=[0,.64444,0,0,.5],si=[0,.69444,0,0,.77778],Ii=[0,.68333,0,0,.75],Ra=[0,.68333,0,0,.77778],Fa=[0,.68333,0,0,.68056],La=[0,.68333,0,0,.72222],qi=[.25,.75,0,0,.5],Ni=[.25,.75,0,0,.27778],ri=[0,.69444,0,0,.5],Pa=[0,.69444,0,0,.55556],ii=[0,.43056,0,0,.44445],Rr=[0,.43056,0,0,.5],yi=[.19444,.43056,0,0,.55556],Qi=[0,.43056,0,0,.55556],Mi=[.08333,.58333,0,0,.77778],Vi=[0,.43056,0,0,.27778],jr=[0,.66786,0,0,.27778],aa=[0,.69444,0,0,.75],pa=[0,.66786,0,0,.5],ra=[0,.68333,0,0,.625],ma=[.19444,.69444,0,0,.44445],Sa=[0,.69444,0,0,.72222],Ua=[.19444,.69444,0,0,.5],ia=[.19444,.69444,0,0,1],Ca=[.011,.511,0,0,1.126],Qa=[.19444,.69444,0,0,.61111],ja=[.05556,.75,0,0,.5],so=[0,.68333,0,0,.83334],za=[.0391,.5391,0,0,.66667],ba=[-.05555,.44445,0,0,.5],ai=[0,.43056,0,0,.77778],bi=[0,.55556,0,0,.66667],Ji=[-.03625,.46375,0,0,.77778],ga=[-.01688,.48312,0,0,.77778],Ka=[.0391,.5391,0,0,1],io=[0,.69444,0,0,.61111],ho=[-.03472,.46528,0,0,.5],Po=[.25,.75,0,0,.44445],Oo=[-.14236,.35764,0,0,1],lo=[.244,.744,0,0,.412],Do=[.19444,.69444,0,0,.88889],Ki=[.12963,.69444,0,0,.77778],hi=[.19444,.69444,0,0,.38889],Da=[.011,.511,0,0,1.638],Ea=[.19444,.69444,0,0,0],uo=[0,.44444,0,0,.575],ao=[.19444,.44444,0,0,.575],hs=[0,.68611,0,0,.75555],Jo=[0,.69444,0,0,.66759],ps=[0,.68611,0,0,.80555],Zi=[0,.68611,.08229,0,.98229],vr=[0,.68611,0,0,.76666],Qr=[0,.44444,0,0,.58472],Jr=[.19444,.44444,0,0,.6118],li=[.19444,.43056,0,0,.5],Wa=[0,.68333,.02778,.08334,.76278],Ga=[0,.68333,.08125,.05556,.83125],zo=[0,.43056,0,.05556,.48472],Vo=[.19444,.43056,0,.08334,.51702],ls=[.25,.75,0,0,.42778],la=[0,.69444,0,0,.55],No=[0,.69444,0,0,.73334],us=[0,.69444,0,0,.79445],cl=[0,.69444,0,0,.51945],Ds=[0,.69444,0,0,.70278],ms=[0,.69444,0,0,.76389],Ho=[.25,.75,0,0,.34306],Ts=[0,.69444,0,0,.56111],Is=[0,.69444,0,0,.25556],qs=[.19444,.45833,0,0,.56111],oo=[0,.45833,0,0,.56111],Ta=[0,.69444,0,0,.30556],Xa=[0,.69444,0,0,.58056],go=[0,.69444,0,0,.67223],yo=[0,.69444,0,0,.85556],Ko=[0,.69444,0,0,.55834],wo=[0,.65556,.11156,0,.5],xs=[0,.69444,.08094,0,.70834],Xl=[.17014,0,0,0,.44445],Yl=[0,.69444,.0799,0,.5],vu=[0,.69444,0,0,.73752],Xu=[0,.69444,.09205,0,.5],Ks=[0,.69444,.09031,0,.77778],_s=[0,.69444,.07816,0,.27778],yu=[0,.69444,.00316,0,.5],ql=[.19444,.69444,0,0,.83334],Ia=[.05556,.75,0,0,.83334],oa=[0,.75,0,0,.5],Wo=[.125,.08333,0,0,.27778],es=[0,.08333,0,0,.27778],sa=[0,.65556,0,0,.5],Ha=[0,.69444,0,0,.47222],Oa=[0,.69444,0,0,.66667],po=[0,.69444,0,0,.59722],is=[0,.69444,0,0,.54167],Ws=[0,.69444,0,0,.70834],gs=[.25,.75,0,0,.28889],Ql=[0,.69444,0,0,.51667],Zd=[0,.44444,0,0,.44445],Ud=[.19444,.44444,0,0,.51667],Yu=[0,.44444,0,0,.38333],Zc=[0,.44444,0,0,.51667],qu=[0,.69444,0,0,.83334],Gd=[.35001,.85,0,0,.45834],Qu=[.35001,.85,0,0,.57778],Ju=[.35001,.85,0,0,.41667],Uc=[.35001,.85,0,0,.58334],bu=[0,.72222,0,0,.55556],ec=[1e-5,.6,0,0,.66667],Gc=[1e-5,.6,0,0,.77778],Jl=[.25001,.75,0,0,.94445],jd=[.306,.805,.19445,0,.47222],xu=[.30612,.805,.19445,0,.47222],Zo=[.25001,.75,0,0,.83334],Bl=[.35001,.85,0,0,.47222],jc=[.25001,.75,0,0,1.11111],Xc=[.65002,1.15,0,0,.59722],vs=[.65002,1.15,0,0,.81111],Za=[.65002,1.15,0,0,.47222],Ms=[.65002,1.15,0,0,.66667],Bs=[0,.75,0,0,1],Qs=[.55001,1.05,0,0,1.27778],Yc=[.862,1.36,.44445,0,.55556],tc=[.86225,1.36,.44445,0,.55556],Pl=[.55001,1.05,0,0,1.11111],nc=[.65002,1.15,0,0,.52778],rc=[.65002,1.15,0,0,.61111],Ol=[.55001,1.05,0,0,1.51112],qc=[.95003,1.45,0,0,.73611],ic=[.95003,1.45,0,0,1.04445],Js=[.95003,1.45,0,0,.52778],wu=[.95003,1.45,0,0,.75],Su=[0,.75,0,0,1.44445],ac=[.95003,1.45,0,0,.58334],Cu=[1.25003,1.75,0,0,.79167],oc=[1.25003,1.75,0,0,1.27778],Qc=[1.25003,1.75,0,0,.58334],sc=[1.25003,1.75,0,0,.80556],Eu=[0,.825,0,0,1.8889],lc=[1.25003,1.75,0,0,.63889],uc=[.64502,1.155,0,0,.875],Mu=[1e-5,.6,0,0,.875],cc=[-99e-5,.601,0,0,.66667],dc=[.64502,1.155,0,0,.66667],Xd=[1e-5,.9,0,0,.88889],Jc=[.65002,1.15,0,0,.88889],Nl=[.90001,0,0,0,.88889],fc=[-.00499,.605,0,0,1.05556],Rl=[0,.12,0,0,.45],Wr=[0,.61111,0,0,.525],ws=[.08333,.69444,0,0,.525],ed=[-.08056,.53055,0,0,.525],Yd=[-.05556,.55556,0,0,.525],as=[0,.43056,0,0,.525],To=[.22222,.43056,0,0,.525],ku=[0,0,0,0,.525],qd={"AMS-Regular":{32:jn,65:Yr,66:Gr,67:Yr,68:Yr,69:Gr,70:ti,71:Ai,72:Ai,73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:Ai,76:Gr,77:[0,.68889,0,0,.94445],78:Yr,79:ki,80:ti,81:ki,82:Yr,83:Ri,84:Gr,85:Yr,86:Yr,87:[0,.68889,0,0,1],88:Yr,89:Yr,90:Gr,107:Ri,160:jn,165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:Ri,295:da,710:Pi,732:va,770:Pi,771:va,989:qt,1008:ka,8245:[0,.54986,0,0,.275],8463:da,8487:Yr,8498:Ri,8502:Gr,8503:[0,.68889,0,0,.44445],8504:Gr,8513:[0,.68889,0,0,.63889],8592:ya,8594:ya,8602:ea,8603:ea,8606:kt,8608:kt,8610:bn,8611:bn,8619:Tn,8620:Tn,8621:[-.13313,.37788,0,0,1.38889],8622:ea,8624:In,8625:In,8630:kr,8631:kr,8634:qn,8635:qn,8638:hr,8639:hr,8642:hr,8643:hr,8644:On,8646:On,8647:On,8648:qe,8649:On,8650:qe,8651:kt,8652:kt,8653:ea,8654:ea,8655:ea,8666:st,8667:st,8669:[-.13313,.37788,0,0,1],8672:Lt,8674:Lt,8705:[0,.825,0,0,.5],8708:Ri,8709:qt,8717:[0,.43056,0,0,.42917],8722:ya,8724:[.08198,.69224,0,0,.77778],8726:qt,8733:Gt,8736:Ve,8737:Ve,8738:[.03517,.52239,0,0,.72222],8739:Ci,8740:[.25142,.74111,0,0,.27778],8741:ta,8742:[.25142,.74111,0,0,.5],8756:gt,8757:gt,8764:Kt,8765:[-.13313,.37788,0,0,.77778],8769:Kt,8770:Ji,8774:Vn,8776:ga,8778:qt,8782:Pt,8783:Pt,8785:qn,8786:qn,8787:qn,8790:Gt,8791:Un,8796:[.08198,.91667,0,0,.77778],8806:Vt,8807:Vt,8808:Pn,8809:Pn,8812:[.25583,.75583,0,0,.5],8814:mr,8815:mr,8816:Vn,8817:Vn,8818:Un,8819:Un,8822:er,8823:er,8828:rr,8829:rr,8830:Un,8831:Un,8832:mr,8833:mr,8840:Vn,8841:Vn,8842:Dr,8843:Dr,8847:dn,8848:dn,8858:qn,8859:qn,8861:qn,8862:Hn,8863:Hn,8864:Hn,8865:Hn,8872:[0,.69224,0,0,.61111],8873:Ve,8874:[0,.69224,0,0,.88889],8876:ti,8877:ti,8878:Yr,8879:Yr,8882:dn,8883:dn,8884:rr,8885:rr,8888:[0,.54986,0,0,1.11111],8890:yi,8891:pi,8892:pi,8901:[0,.54986,0,0,.27778],8903:qt,8905:qt,8906:qt,8907:Gt,8908:Gt,8909:[-.03598,.46402,0,0,.77778],8910:wi,8911:wi,8912:dn,8913:dn,8914:Zr,8915:Zr,8916:gt,8918:Or,8919:Or,8920:Li,8921:Li,8922:dr,8923:dr,8926:rr,8927:rr,8928:Vn,8929:Vn,8934:ci,8935:ci,8936:ci,8937:ci,8938:mr,8939:mr,8940:Vn,8941:Vn,8994:vn,8995:vn,9416:[.15559,.69224,0,0,.90222],9484:In,9488:In,9492:Yi,9496:Yi,9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:Hn,9633:Hn,9650:Di,9651:Di,9654:dn,9660:Di,9661:Di,9664:dn,9674:Xi,9733:[.19444,.69224,0,0,.94445],10003:wa,10016:wa,10731:Xi,10846:[.19444,.75583,0,0,.61111],10877:rr,10878:rr,10885:Vt,10886:Vt,10887:Dr,10888:Dr,10889:_i,10890:_i,10891:fa,10892:fa,10901:rr,10902:rr,10933:Pn,10934:Pn,10935:_i,10936:_i,10937:_i,10938:_i,10949:Vt,10950:Vt,10955:Gi,10956:Gi,57350:Ci,57351:ta,57352:qt,57353:ka,57356:Pn,57357:Pn,57358:na,57359:Vn,57360:Vn,57361:na,57366:Pn,57367:Pn,57368:Pn,57369:Pn,57370:Dr,57371:Dr},"Caligraphic-Regular":{32:jn,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:jn},"Fraktur-Regular":{32:jn,33:[0,.69141,0,0,.29574],34:Wt,38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:Fi,41:Fi,42:[0,.62119,0,0,.27764],43:Aa,44:Ba,45:Aa,46:Ba,47:[.24982,.74947,0,0,.50181],48:ha,49:ha,50:ha,51:oi,52:oi,53:oi,54:vt,55:oi,56:vt,57:oi,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:ht,93:ht,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:jn,8216:Wt,8217:Wt,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:jn,33:[0,.69444,0,0,.35],34:yt,35:[.19444,.69444,0,0,.95833],36:nn,37:[.05556,.75,0,0,.95833],38:Sr,39:Ei,40:rn,41:rn,42:[0,.75,0,0,.575],43:Le,44:[.19444,.15556,0,0,.31944],45:Yu,46:[0,.15556,0,0,.31944],47:_r,48:Mn,49:Mn,50:Mn,51:Mn,52:Mn,53:Mn,54:Mn,55:Mn,56:Mn,57:Mn,58:ze,59:[.19444,.44444,0,0,.31944],60:Cr,61:$n,62:Cr,63:[0,.69444,0,0,.54305],64:Sr,65:Fr,66:[0,.68611,0,0,.81805],67:rt,68:[0,.68611,0,0,.88194],69:hs,70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:Tr,73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:Ze,77:[0,.68611,0,0,1.09166],78:Tr,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:Fr,89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:ni,92:_r,93:ni,94:zi,95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:di,99:$i,100:di,101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:di,105:Ei,106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:Ei,109:[0,.44444,0,0,.95833],110:ji,111:uo,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:ji,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:$i,123:_r,124:ni,125:_r,126:[.35,.34444,0,0,.575],160:jn,163:[0,.69444,0,0,.86853],168:zi,172:[0,.44444,0,0,.76666],176:Fe,177:Le,184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:Le,216:[.04861,.73472,0,0,.89444],223:po,230:[0,.44444,0,0,.83055],247:Le,248:[.09722,.54167,0,0,.575],305:ze,338:[0,.68611,0,0,1.16944],339:Kn,567:[.19444,.44444,0,0,.35139],710:zi,711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:zi,715:zi,728:zi,729:Ei,730:Fe,732:zi,733:zi,915:Ze,916:gn,920:dt,923:ps,926:vr,928:Tr,931:rt,933:dt,934:rt,936:dt,937:rt,8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:Ei,8217:Ei,8220:yt,8221:yt,8224:Xt,8225:Xt,8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:Jo,8465:Jt,8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:Jt,8501:$e,8592:Fn,8593:ir,8594:Fn,8595:ir,8596:Fn,8597:_r,8598:_n,8599:_n,8600:_n,8601:_n,8636:Fn,8637:Fn,8640:Fn,8641:Fn,8656:Fn,8657:sn,8658:Fn,8659:sn,8660:Fn,8661:[.25,.75,0,0,.70277],8704:di,8706:[0,.69444,.06389,0,.62847],8707:di,8709:nn,8711:gn,8712:xn,8715:xn,8722:Le,8723:Le,8725:_r,8726:_r,8727:Tt,8728:tr,8729:tr,8730:[.18,.82,0,0,.95833],8733:Kn,8734:[0,.44444,0,0,1.14999],8736:Ve,8739:ni,8741:_r,8743:Nn,8744:Nn,8745:Nn,8746:Nn,8747:[.19444,.69444,.12778,0,.56875],8764:$n,8768:[.19444,.69444,0,0,.31944],8771:Wn,8776:[.02444,.52444,0,0,.89444],8781:Wn,8801:Wn,8804:or,8805:or,8810:He,8811:He,8826:Cr,8827:Cr,8834:Cr,8835:Cr,8838:or,8839:or,8846:Nn,8849:or,8850:or,8851:Nn,8852:Nn,8853:Le,8854:Le,8855:Le,8856:Le,8857:Le,8866:$e,8867:$e,8868:Sr,8869:Sr,8900:tr,8901:[-.02639,.47361,0,0,.31944],8902:Tt,8968:mt,8969:mt,8970:mt,8971:mt,8994:Yt,8995:Yt,9651:fn,9657:Tt,9661:fn,9667:Tt,9711:_n,9824:ln,9825:ln,9826:ln,9827:ln,9837:[0,.75,0,0,.44722],9838:Ln,9839:Ln,10216:rn,10217:rn,10815:Tr,10927:or,10928:or,57376:Ea},"Main-BoldItalic":{32:jn,33:[0,.69444,.11417,0,.38611],34:ur,35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:gr,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:yn,49:yn,50:yn,51:yn,52:Qt,53:yn,54:yn,55:Qt,56:yn,57:yn,58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:br,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:Cn,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:Cn,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:An,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:Dn,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:Dn,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:jn,168:[0,.69444,.11473,0,.59111],176:Br,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:ar,248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:ar,567:[.19444,.44444,.04611,0,.385],710:An,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:gr,730:Br,732:br,733:br,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:Cn,931:[0,.68611,.11431,0,.82666],933:Ar,934:[0,.68611,.05632,0,.82666],936:Ar,937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:gr,8217:gr,8220:[0,.69444,.16772,0,.62055],8221:ur},"Main-Italic":{32:jn,33:Er,34:qr,35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:Er,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:Nr,49:Nr,50:Nr,51:Nr,52:Kr,53:Nr,54:Nr,55:Kr,56:Nr,57:Nr,58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:mi,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:xr,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:xr,79:Bi,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:xr,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:Hi,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:Vr,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:Vr,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:jn,168:[0,.66786,.10474,0,.51111],176:Ti,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:fi,248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:fi,710:Hi,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:Ti,732:[0,.66786,.11585,0,.51111],733:mi,915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:Bi,923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:xr,931:[0,.68333,.12028,0,.71555],933:Oi,934:[0,.68333,.05986,0,.71555],936:Oi,937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:Er,8217:Er,8220:[0,.69444,.1685,0,.51444],8221:qr,8463:da},"Main-Regular":{32:jn,33:gi,34:ri,35:ql,36:ja,37:Ia,38:si,39:gi,40:Pr,41:Pr,42:oa,43:Mi,44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:qi,48:Ur,49:Ur,50:Ur,51:Ur,52:Ur,53:Ur,54:Ur,55:Ur,56:Ur,57:Ur,58:Vi,59:[.19444,.43056,0,0,.27778],60:Or,61:Kt,62:Or,63:Ha,64:si,65:Ii,66:[0,.68333,0,0,.70834],67:La,68:[0,.68333,0,0,.76389],69:Fa,70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:Ii,73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:Ra,76:ra,77:[0,.68333,0,0,.91667],78:Ii,79:Ra,80:Fa,81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:La,85:Ii,86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:Ii,89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:Ni,92:qi,93:Ni,94:ri,95:[.31,.12056,.02778,0,.5],97:Rr,98:Pa,99:ii,100:Pa,101:ii,102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:Pa,105:jr,106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:gi,109:[0,.43056,0,0,.83334],110:Qi,111:Rr,112:yi,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:Qi,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:ii,123:qi,124:Ni,125:qi,126:[.35,.31786,0,0,.5],160:jn,163:[0,.69444,0,0,.76909],167:ma,168:pa,172:[0,.43056,0,0,.66667],176:aa,177:Mi,182:Qa,184:Xl,198:[0,.68333,0,0,.90278],215:Mi,216:[.04861,.73194,0,0,.77778],223:ri,230:[0,.43056,0,0,.72222],247:Mi,248:[.09722,.52778,0,0,.5],305:Vi,338:[0,.68333,0,0,1.01389],339:ai,567:[.19444,.43056,0,0,.30556],710:ri,711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:ri,715:ri,728:ri,729:jr,730:aa,732:pa,733:ri,915:ra,916:so,920:Ra,923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:Ii,931:La,933:Ra,934:La,936:Ra,937:La,8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:gi,8217:gi,8220:ri,8221:ri,8224:ma,8225:ma,8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:da,8465:Sa,8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:Sa,8501:io,8592:ea,8593:Ua,8594:ea,8595:Ua,8596:ea,8597:qi,8598:ia,8599:ia,8600:ia,8601:ia,8614:[.011,.511,0,0,1],8617:Ca,8618:Ca,8636:ea,8637:ea,8640:ea,8641:ea,8652:[.011,.671,0,0,1],8656:ea,8657:Qa,8658:ea,8659:Qa,8660:ea,8661:[.25,.75,0,0,.61111],8704:Pa,8706:[0,.69444,.05556,.08334,.5309],8707:Pa,8709:ja,8711:so,8712:za,8715:za,8722:Mi,8723:Mi,8725:qi,8726:qi,8727:ho,8728:ba,8729:ba,8730:[.2,.8,0,0,.83334],8733:ai,8734:kr,8736:Ve,8739:Ni,8741:qi,8743:bi,8744:bi,8745:bi,8746:bi,8747:[.19444,.69444,.11111,0,.41667],8764:Kt,8768:[.19444,.69444,0,0,.27778],8771:Ji,8773:[-.022,.589,0,0,1],8776:ga,8781:Ji,8784:[-.133,.67,0,0,.778],8801:Ji,8804:Dr,8805:Dr,8810:Ka,8811:Ka,8826:Or,8827:Or,8834:Or,8835:Or,8838:Dr,8839:Dr,8846:bi,8849:Dr,8850:Dr,8851:bi,8852:bi,8853:Mi,8854:Mi,8855:Mi,8856:Mi,8857:Mi,8866:io,8867:io,8868:si,8869:si,8872:[.249,.75,0,0,.867],8900:ba,8901:[-.05555,.44445,0,0,.27778],8902:ho,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:Po,8969:Po,8970:Po,8971:Po,8994:Oo,8995:Oo,9136:lo,9137:lo,9651:Do,9657:ho,9661:Do,9667:ho,9711:ia,9824:Ki,9825:Ki,9826:Ki,9827:Ki,9837:[0,.75,0,0,.38889],9838:hi,9839:hi,10216:Pr,10217:Pr,10222:lo,10223:lo,10229:[.011,.511,0,0,1.609],10230:Da,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:Da,10815:Ii,10927:Dr,10928:Dr,57376:Ea},"Math-BoldItalic":{32:jn,48:uo,49:uo,50:uo,51:ao,52:ao,53:ao,54:Mn,55:ao,56:Mn,57:ao,65:Fr,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:Zi,73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:hs,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:Jo,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:Qr,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:jn,915:[0,.68611,.15972,0,.65694],916:gn,920:[0,.68611,.03194,0,.86722],923:ps,926:[0,.68611,.07458,0,.84125],928:Zi,931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:vr,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:Qr,960:[0,.44444,.03704,0,.68241],961:Jr,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:Jr,1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:jn,48:Rr,49:Rr,50:Rr,51:li,52:li,53:li,54:Ur,55:li,56:Ur,57:li,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:Ga,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:Wa,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:zo,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:jn,915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:Wa,923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:Ga,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:zo,960:[0,.43056,.03588,0,.57003],961:Vo,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:Vo,1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:jn,33:[0,.69444,0,0,.36667],34:Ko,35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:Ta,40:ls,41:ls,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:la,49:la,50:la,51:la,52:la,53:la,54:la,55:la,56:la,57:la,58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:cl,64:No,65:No,66:No,67:Ds,68:us,69:[0,.69444,0,0,.64167],70:io,71:No,72:us,73:[0,.69444,0,0,.33056],74:cl,75:ms,76:Xa,77:[0,.69444,0,0,.97778],78:us,79:us,80:Ds,81:[.10556,.69444,0,0,.79445],82:Ds,83:io,84:No,85:ms,86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:No,89:[0,.69444,.0275,0,.73334],90:go,91:Ho,93:Ho,94:la,95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:Ts,99:[0,.45833,0,0,.48889],100:Ts,101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:Ts,105:Is,106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:Is,109:[0,.45833,0,0,.86667],110:oo,111:[0,.45833,0,0,.55],112:qs,113:qs,114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:oo,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:jn,168:la,176:No,180:la,184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:la,711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:la,729:Ta,730:No,732:la,733:la,915:Xa,916:[0,.69444,0,0,.91667],920:yo,923:go,926:No,928:us,931:us,933:yo,934:us,936:yo,937:us,8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:Ta,8217:Ta,8220:Ko,8221:Ko},"SansSerif-Italic":{32:jn,33:[0,.69444,.05733,0,.31945],34:yu,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:_s,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:Wo,45:[0,.44444,.01946,0,.33333],46:es,47:[.25,.75,.13164,0,.5],48:wo,49:wo,50:wo,51:wo,52:wo,53:wo,54:wo,55:wo,56:wo,57:wo,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:xs,73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:is,77:[0,.69444,.08094,0,.875],78:xs,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:Yl,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:jn,168:[0,.67937,.06385,0,.5],176:vu,184:Xl,305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:Yl,711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:Xu,715:ri,728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:vu,732:[0,.67659,.08826,0,.5],733:Xu,915:[0,.69444,.13372,0,.54167],916:qu,920:[0,.69444,.07555,0,.77778],923:io,926:[0,.69444,.12816,0,.66667],928:xs,931:[0,.69444,.11983,0,.72222],933:Ks,934:[0,.69444,.04603,0,.72222],936:Ks,937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:_s,8217:_s,8220:[0,.69444,.14205,0,.5],8221:yu},"SansSerif-Regular":{32:jn,33:[0,.69444,0,0,.31945],34:ri,35:ql,36:ja,37:Ia,38:[0,.69444,0,0,.75834],39:gi,40:Pr,41:Pr,42:oa,43:Mi,44:Wo,45:[0,.44444,0,0,.33333],46:es,47:qi,48:sa,49:sa,50:sa,51:sa,52:sa,53:sa,54:sa,55:sa,56:sa,57:sa,58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:Ha,64:Oa,65:Oa,66:Oa,67:di,68:[0,.69444,0,0,.72223],69:po,70:[0,.69444,0,0,.56945],71:Oa,72:Ws,73:gi,74:Ha,75:[0,.69444,0,0,.69445],76:is,77:[0,.69444,0,0,.875],78:Ws,79:[0,.69444,0,0,.73611],80:di,81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:Pa,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:io,91:gs,93:gs,94:ri,95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:Ql,99:Zd,100:Ql,101:Zd,102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:Ql,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:Zc,111:[0,.44444,0,0,.5],112:Ud,113:Ud,114:[0,.44444,.01389,0,.34167],115:Yu,116:[0,.57143,0,0,.36111],117:Zc,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:jn,168:[0,.67937,0,0,.5],176:Oa,184:Xl,305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:ri,711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:ri,715:ri,728:ri,729:[0,.67937,0,0,.27778],730:Oa,732:[0,.67659,0,0,.5],733:ri,915:is,916:qu,920:si,923:io,926:Oa,928:Ws,931:Sa,933:si,934:Sa,936:si,937:Sa,8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:gi,8217:gi,8220:ri,8221:ri},"Script-Regular":{32:jn,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:jn},"Size1-Regular":{32:jn,40:Gd,41:Gd,47:Qu,91:Ju,92:Qu,93:Ju,123:Uc,125:Uc,160:jn,710:bu,732:bu,770:bu,771:bu,8214:[-99e-5,.601,0,0,.77778],8593:ec,8595:ec,8657:Gc,8659:Gc,8719:Jl,8720:Jl,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:xu,8748:jd,8749:jd,8750:xu,8896:Zo,8897:Zo,8898:Zo,8899:Zo,8968:Bl,8969:Bl,8970:Bl,8971:Bl,9168:cc,10216:Bl,10217:Bl,10752:jc,10753:jc,10754:jc,10756:Zo,10758:Zo},"Size2-Regular":{32:jn,40:Xc,41:Xc,47:vs,91:Za,92:vs,93:Za,123:Ms,125:Ms,160:jn,710:Bs,732:Bs,770:Bs,771:Bs,8719:Qs,8720:Qs,8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:tc,8748:Yc,8749:Yc,8750:tc,8896:Pl,8897:Pl,8898:Pl,8899:Pl,8968:nc,8969:nc,8970:nc,8971:nc,10216:rc,10217:rc,10752:Ol,10753:Ol,10754:Ol,10756:Pl,10758:Pl},"Size3-Regular":{32:jn,40:qc,41:qc,47:ic,91:Js,92:ic,93:Js,123:wu,125:wu,160:jn,710:Su,732:Su,770:Su,771:Su,8730:[.95003,1.45,0,0,1],8968:ac,8969:ac,8970:ac,8971:ac,10216:wu,10217:wu},"Size4-Regular":{32:jn,40:Cu,41:Cu,47:oc,91:Qc,92:oc,93:Qc,123:sc,125:sc,160:jn,710:Eu,732:Eu,770:Eu,771:Eu,8730:[1.25003,1.75,0,0,1],8968:lc,8969:lc,8970:lc,8971:lc,9115:uc,9116:Mu,9117:uc,9118:uc,9119:Mu,9120:uc,9121:dc,9122:cc,9123:dc,9124:dc,9125:cc,9126:dc,9127:Xd,9128:Jc,9129:Nl,9130:[0,.3,0,0,.88889],9131:Xd,9132:Jc,9133:Nl,9143:[.88502,.915,0,0,1.05556],10216:sc,10217:sc,57344:fc,57345:fc,57680:Rl,57681:Rl,57682:Rl,57683:Rl},"Typewriter-Regular":{32:ku,33:Wr,34:Wr,35:Wr,36:ws,37:ws,38:Wr,39:Wr,40:ws,41:ws,42:[0,.52083,0,0,.525],43:ed,44:[.13889,.125,0,0,.525],45:ed,46:[0,.125,0,0,.525],47:ws,48:Wr,49:Wr,50:Wr,51:Wr,52:Wr,53:Wr,54:Wr,55:Wr,56:Wr,57:Wr,58:as,59:[.13889,.43056,0,0,.525],60:Yd,61:[-.19549,.41562,0,0,.525],62:Yd,63:Wr,64:Wr,65:Wr,66:Wr,67:Wr,68:Wr,69:Wr,70:Wr,71:Wr,72:Wr,73:Wr,74:Wr,75:Wr,76:Wr,77:Wr,78:Wr,79:Wr,80:Wr,81:[.13889,.61111,0,0,.525],82:Wr,83:Wr,84:Wr,85:Wr,86:Wr,87:Wr,88:Wr,89:Wr,90:Wr,91:ws,92:ws,93:ws,94:Wr,95:[.09514,0,0,0,.525],96:Wr,97:as,98:Wr,99:as,100:Wr,101:as,102:Wr,103:To,104:Wr,105:Wr,106:[.22222,.61111,0,0,.525],107:Wr,108:Wr,109:as,110:as,111:as,112:To,113:To,114:as,115:as,116:[0,.55358,0,0,.525],117:as,118:as,119:as,120:as,121:To,122:as,123:ws,124:ws,125:ws,126:Wr,127:Wr,160:ku,176:Wr,184:[.19445,0,0,0,.525],305:as,567:To,711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:Wr,715:Wr,728:Wr,730:Wr,770:Wr,771:Wr,776:Wr,915:Wr,916:Wr,920:Wr,923:Wr,926:Wr,928:Wr,931:Wr,933:Wr,934:Wr,936:Wr,937:Wr,8216:Wr,8217:Wr,8242:Wr,9251:[.11111,.21944,0,0,.525]}},Qd=/[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FAF]|[\uAC00-\uD7AF]/,Fl=10,os=.25,hc=1.2,el=.431,td={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[el,el,el],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:[os,os,os],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]},pc=[0,.5,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],dl=5,nd={"\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 tl(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 nd)a=nd[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 mc={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],longrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],longleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],longleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],longrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],longleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xleftrightarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],longleftrightarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xRightleftharpoons:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],longRightleftharpoons:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xLeftrightharpoons:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716],longLeftrightharpoons:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},zl={widehat1:[1062,239,.24],widehat2:[2364,300,.3],widehat3:[2364,360,.36],widehat4:[2364,420,.42],widecheck1:[1062,239,.24],widecheck2:[2364,300,.3],widecheck3:[2364,360,.36],widecheck4:[2364,420,.42],widetilde1:[600,260,.26],widetilde2:[1033,286,.286],widetilde3:[2339,306,.306],widetilde4:[2340,312,.34],overarc:[1061,159,.3],underarc:[1061,159,.3]},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 eu(a){if(zl[a]){const[ye,we,Re]=zl[a],Xe=`<span class="stretchy" style="height:${Re}em"><svg width="100%" height="${Re}em" viewBox="0 0 ${ye} ${we}" preserveAspectRatio="none" ><path fill="currentcolor" d="${Jd[a]}"></path></svg></span>`;return`<span style="display:inline-block;height:${Math.floor(100*Re/2)/100}em;min-width:0">${Xe}</span>`}const[y,b,E,ee]=mc[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 me=y.map((ye,we)=>`<span class="${re[we]}" style=height:${he}em><svg width=400em height=${he}em viewBox="0 0 400000 ${E}" preserveAspectRatio="${ae[we]} slice"><path fill="currentcolor" d="${Jd[ye]}"></path></svg></span>`).join("");return`<span style="display:inline-block;height:${he}em;min-width:${b}em;">${me}</span>`}function ef(a){return mc[a]?mc[a][2]/1e3:zl[a][2]}function tf(a){const y=[];for(let b=0;b<a.length;b++){let E=a.charCodeAt(b);if(E===13&&a.charCodeAt(b+1)===10&&(E=10,b++),(E===13||E===12)&&(E=10),E===0&&(E=65533),E>=55296&&E<=56319){const ee=a.charCodeAt(b+1);if(ee>=56320&&ee<=57343){const re=E-55296,ae=ee-56320;E=_l(2,16)+re*_l(2,10)+ae,b++}}y.push(E)}return y}var Au=8205,Lu=[[Au,1],[65038,2],[127995,5],[129456,4],[917536,96]],fl,tu=[127462,127487];function nu(a){var y;if(fl===void 0){fl={};for(const b of Lu)for(let E=b[0];E<=b[0]+b[1]-1;E++)fl[E]=!0}return(y=fl[a])!=null?y:!1}function nf(a){return a>=tu[0]&&a<=tu[1]}function rf(a){if(/^[\u0020-\u00FF]*$/.test(a))return a;const y=[],b=tf(a);let E=0;for(;E<b.length;){const ee=b[E++],re=b[E];if(re===Au){const ae=E-1;for(E+=2;b[E]===Au;)E+=2;y.push(String.fromCodePoint(...b.slice(ae,E-ae+1)))}else if(nu(re)){const ae=E-1;for(;nu(b[E]);)E+=b[E]===Au?2:1;y.push(String.fromCodePoint(...b.slice(ae,2*E-ae-1)))}else nf(ee)?(E+=1,y.push(String.fromCodePoint(...b.slice(E-2,2)))):y.push(String.fromCodePoint(ee))}return y}var af=class{constructor(a){this.obeyspaces=!1,this.pos=0,this.s=rf(a)}end(){return this.pos>=this.s.length}get(){return this.pos<this.s.length?this.s[this.pos++]:""}peek(){return this.s[this.pos]}match(a){const y=typeof this.s=="string"?a.exec(this.s.slice(this.pos)):a.exec(this.s.slice(this.pos).join(""));return y!=null&&y[0]?(this.pos+=y[0].length,y[0]):""}next(){if(this.end())return null;if(!this.obeyspaces&&this.match(/^[ \f\n\r\t\v\u00A0\u2028\u2029]+/)||this.obeyspaces&&this.match(/^[ \f\n\r\t\v\u00A0\u2028\u2029]/))return"<space>";const a=this.get();if(a==="\\"){if(!this.end()){let y=this.match(/^[a-zA-Z\*]+/);return y?this.match(/^[ \f\n\r\t\v\u00A0\u2028\u2029]*/):y=this.get(),"\\"+y}}else{if(a==="{")return"<{>";if(a==="}")return"<}>";if(a==="^"){if(this.peek()==="^"){this.get();const y=this.match(/^(\^(\^(\^(\^[\da-f])?[\da-f])?[\da-f])?[\da-f])?[\da-f]{2}/);if(y)return String.fromCodePoint(Number.parseInt(y.slice(y.lastIndexOf("^")+1),16))}return a}else if(a==="#"){if(!this.end()){let y=!1;if(/[\d?@]/.test(this.peek())&&(y=!0,this.pos+1<this.s.length)){const b=this.s[this.pos+1];y=/[^\dA-Za-z]/.test(b)}return y?"#"+this.get():"#"}}else if(a==="$")return this.peek()==="$"?(this.get(),"<$$>"):"<$>"}return a}};function hl(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 me of he)ae.push(me==="\\"?"\\backslash":me);else he==="<{>"?ae.push("\\{"):he==="<space>"?ae.push("~"):he==="<}>"&&ae.push("\\}")}else if(he==="\\csname"){for(;a.peek()==="<space>";)a.next();let me="",ye=!1,we=[];do{if(we.length===0)if(/^#[\d?@]$/.test(a.peek())){const Re=a.get().slice(1);we=nl((E=(b=y==null?void 0:y(Re))!=null?b:y==null?void 0:y("?"))!=null?E:"\\placeholder{}",y),he=we[0]}else he=a.next(),we=he?[he]:[];ye=we.length===0,!ye&&he==="\\endcsname"&&(ye=!0,we.shift()),ye||(ye=he==="<$>"||he==="<$$>"||he==="<{>"||he==="<}>"||typeof he=="string"&&he.length>1&&he.startsWith("\\")),ye||(me+=we.shift())}while(!ye);me&&ae.push("\\"+me),ae.push(...we)}else if(he!=="\\endcsname")if(he.length>1&&he.startsWith("#")){const me=he.slice(1);ae.push(...nl((re=(ee=y==null?void 0:y(me))!=null?ee:y==null?void 0:y("?"))!=null?re:"\\placeholder{}",y))}else ae.push(he)}return ae}function nl(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 af(nt(b.join(""))),re=[];do re.push(...hl(ee,y));while(!ee.end());return re}function ua(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 co(a,...y){return console.assert(a.startsWith("\\")),y.length===0?a:ua([a,...y.map(b=>`{${b}}`)])}function pl(a){return ua(a.map(y=>{var b;return(b={"<space>":" ","<$$>":"$$","<$>":"$","<{>":"{","<}>":"}"}[y])!=null?b:y}))}var of=class Vd{constructor(y){Vd._registry[y]=this}static createAtom(y,b,E){return Vd._registry[y].createAtom(b,wr(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 sf(y)){const ae=Vd._registry[re[0].mode];ee.push(...ae.serialize(re,b))}return ua(ee)}return ua(th(y,b))}static getFont(y,b,E){return Vd._registry[y].getFont(b,E)}};of._registry={};var Ss=of;function sf(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 Mo(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 rd(a,y){var b;const{parent:E}=a[0],ee=E==null?void 0:E.computedStyle.color,re=[];for(const ae of sf(a)){const he=y.defaultMode;for(const me of Mo(ae,"color")){const ye=me[0].computedStyle,we=Ss._registry[me[0].mode].serialize(me,pe(Se({},y),{defaultMode:he==="text"?"text":"math"}));!y.skipStyles&&ye.color&&ye.color!=="none"&&(!E||ee!==ye.color)?re.push(co("\\textcolor",(b=ye.verbatimColor)!=null?b:ye.color,ua(we))):re.push(ua(we))}}return re}function eh(a,y){const{parent:b}=a[0],E=b==null?void 0:b.computedStyle.backgroundColor;return Mo(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 co("\\colorbox",(re=ae.verbatimBackgroundColor)!=null?re:ae.backgroundColor,ua(rd(ee,pe(Se({},y),{defaultMode:"text"}))))}return ua(rd(ee,y))})}function th(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 Mo(a,"fontSize")){const ae=re[0].computedStyle.fontSize,he=eh(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 id(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 ru(a){if(a.length===0)return"ord";const y=id(a[0].type),b=id(a[a.length-1].type);return y&&y===b?y:"ord"}function iu(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 fr=class Ep{constructor(y,b){var E,ee,re,ae,he;if(typeof y=="number"?this.value=String.fromCodePoint(y):typeof y=="string"?this.value=y:Oe(y)?this.children=y.filter(ye=>ye!==null):y&&y instanceof Ep&&(this.children=[y]),this.children)for(const ye of this.children)ye.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 me=b==null?void 0:b.fontFamily;b!=null&&b.style&&this.value&&(me=(he=Ss.getFont((ae=b.mode)!=null?ae:"math",this,pe(Se({variant:"normal"},b.style),{letterShapeStyle:b.letterShapeStyle})))!=null?he:void 0),me||(me="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),Du(this,me)}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=iu(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=iu(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"]=iu(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"]=iu(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"]=iu(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=nr(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=eu(this.svgBody);else if(this.svgOverlay){ae='<span style="',ae+="display: inline-block;",ae+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`,ae+=`vertical-align:${Math.floor(100*this.depth)/100}em;`,ae+='">',ae+=re,ae+="</span>",ae+='<svg style="position:absolute;overflow:visible;',ae+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`;const ct=(b=this.cssProperties)==null?void 0:b.padding;ct?(ae+=`top:${ct};`,ae+=`left:${ct};`,ae+=`width:calc(100% - 2 * ${ct} );`):ae+="top:0;left:0;width:100%;",ae+="z-index:2;",ae+='"',this.svgStyle&&(ae+=this.svgStyle),ae+=` viewBox="0 0 ${Math.floor(100*this.width)/100} ${Math.floor(100*(this.height+this.depth))/100}"`,ae+=`>${this.svgOverlay}</svg>`}let he="";const me=this.classes.split(" ");me.push((E={latex:"ML__raw-latex",placeholder:"ML__placeholder",error:"ML__error"}[this.type])!=null?E:""),this.caret==="latex"&&me.push("ML__latex-caret"),this.isSelected&&me.push("ML__selected");const ye=me.length===1?me[0]:me.filter((ct,xt,mn)=>ct.length>0&&mn.indexOf(ct)===xt).join(" ");if(ye.length>0&&(he+=` class="${ye}"`),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 xt of ct){const mn=xt.match(/([^=]+)=(.+$)/);if(mn){const cr=mn[1].trim().replace(/ /g,"-");cr&&(he+=` data-${cr}="${mn[2]}" `)}else{const cr=xt.trim().replace(/ /g,"-");cr&&(he+=` data-${cr} `)}}}const we=(ee=this.cssProperties)!=null?ee:{};this.hasExplicitWidth&&we.width===void 0&&(we.width=`${Math.ceil(this._width*100)/100}em`);const Re=Object.keys(we).map(ct=>`${ct}:${we[ct]}`);if(this.scale!==void 0&&this.scale!==1&&(re.length>0||ae.length>0)&&Re.push(`font-size: ${Math.ceil(this.scale*1e4)/100}%`),this.htmlStyle){const ct=this.htmlStyle.split(";");let xt="";for(const mn of ct){const cr=mn.match(/([^=]+):(.+$)/);if(cr){const un=cr[1].trim().replace(/ /g,"-");un&&(xt+=`${un}:${cr[2]};`)}}xt&&(he+=` style="${xt}"`)}Re.length>0&&(he+=` style="${Re.join(";")}"`);let Xe="";return he.length>0||ae.length>0?Xe=`<span${he}>${re}${ae}</span>`:Xe=re,this.caret==="text"?Xe+='<span class="ML__text-caret"></span>':this.caret==="math"&&(Xe+='<span class="ML__caret"></span>'),Xe}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 me of["border","border-left","border-right","border-right-width","left","margin","margin-left","margin-right","padding","position","width"])if(y.cssProperties&&me in y.cssProperties||this.cssProperties&&me 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 me of Object.keys(this.cssProperties))if(this.cssProperties[me]!==y.cssProperties[me])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[me,ye]of ae.entries())if(ye==="vertical-separator"||ye!==he[me])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 ad(a){if(!a||a.length===0)return[];a[0].children=ad(a[0].children);const y=[a[0]];for(let b=1;b<a.length;b++)y[y.length-1].tryCoalesceWith(a[b])||(a[b].children=ad(a[b].children),y.push(a[b]));return y}function gc(a){return a.children&&(a.children=ad(a.children)),a}function vc(a,y){if(!a)return new fr(null,y);const b=new fr(null,{classes:"ML__strut",type:"ignore"});b.setStyle("height",Math.max(0,a.height),"em");const E=[b];if(a.depth!==0){const ee=new fr(null,{classes:"ML__strut--bottom",type:"ignore"});ee.setStyle("height",a.height+a.depth,"em"),ee.setStyle("vertical-align",-a.depth,"em"),E.push(ee)}return E.push(a),new fr(E,pe(Se({},y),{type:"lift"}))}function Ps(a){const y=ef(a)/2,b=new fr(null,{maxFontSize:0});return b.height=y+.166,b.depth=y-.166,b.svgBody=a,b}function Du(a,y){var b;if(a.type==="latex"){a.height=.9,a.depth=.2,a._width=1;return}if(a.value){a.height=-1/0,a.depth=-1/0,a._width=0,a.skew=-1/0,a.italic=-1/0;for(let E=0;E<a.value.length;E++){const ee=tl(a.value.codePointAt(E),y);a.height=Math.max(a.height,ee.height),a.depth=Math.max(a.depth,ee.depth),a._width+=ee.width,a.skew=ee.skew,a.italic=ee.italic}return}if(a.children&&a.children.length>0){let E=-1/0,ee=-1/0,re=0;for(const 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 yc(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<y.length;ae++){const he=y[ae],me=-he.shift-re-he.box.depth,ye=me-(b.box.height+b.box.depth);re=re+me,E.push(ye),E.push(he),b=he}return[E,ee]}if("top"in a){let y=a.top;for(const b of a.children)y-=typeof b=="number"?b:b.box.height+b.box.depth;return[a.children,y]}else{if("bottom"in a)return[a.children,-a.bottom];if("firstBaseline"in a){const y=a.firstBaseline[0];if(typeof y=="number")throw new Error("First child must be an element.");return[a.firstBaseline,-y.box.depth]}else if("shift"in a){const y=a.children[0];if(typeof y=="number")throw new Error("First child must be an element.");return[a.children,-y.box.depth-a.shift]}}return[null,0]}function Tu(a){var y;const[b,E]=yc(a);if(!b)return[[],0,0];const ee=new fr(null,{classes:"pstrut"});let re=0;for(const xt of b)if(typeof xt!="number"){const mn=xt.box;re=Math.max(re,mn.maxFontSize,mn.height)}re+=2,ee.height=re,ee.setStyle("height",re,"em");const ae=[];let he=E,me=E,ye=E,we=0;for(const xt of b){if(typeof xt=="number")ye+=xt;else{const mn=xt.box,cr=(y=xt.classes)!=null?y:[],un=new fr([ee,mn],{classes:cr.join(" "),style:xt.style});mn.setStyle("height",mn.height+mn.depth,"em"),mn.setStyle("display","inline-block"),un.setStyle("top",-re-ye-mn.depth,"em"),xt.marginLeft&&un.setStyle("margin-left",xt.marginLeft,"em"),xt.marginRight&&un.setStyle("margin-right",xt.marginRight,"em"),ae.push(un),ye+=mn.height+mn.depth,we=Math.max(we,un.width)}he=Math.min(he,ye),me=Math.max(me,ye)}ae.forEach(xt=>{xt.softWidth=we});const Re=new fr(ae,{classes:"vlist"});if(Re.softWidth=we,Re.height=me,Re.setStyle("height",me,"em"),he>=0)return[[new fr(Re,{classes:"vlist-r"})],me,-he];const Xe=new fr(new fr(null),{classes:"vlist"});Xe.height=-he,Xe.setStyle("height",-he,"em");const ct=new fr(8203,{classes:"vlist-s",maxFontSize:0});return ct.softWidth=0,ct.height=0,ct.depth=0,[[new fr([Re,ct],{classes:"vlist-r"}),new fr(Xe,{classes:"vlist-r"})],me,-he]}var Ja=class extends fr{constructor(a,y){var b;const[E,ee,re]=Tu(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 nh(a,y){var b,E,ee,re,ae;const he=a.metrics,me=new fr(y.base),ye=(b=y.baseShift)!=null?b:0,we=(E=y.slant)!=null?E:0;let Re=0,Xe=0;y.above&&(Re=(ee=y.aboveShift)!=null?ee:Math.max(he.bigOpSpacing1,he.bigOpSpacing3-y.above.depth)),y.below&&(Xe=(re=y.belowShift)!=null?re:Math.max(he.bigOpSpacing2,he.bigOpSpacing4-y.below.height));let ct=null;if(y.below&&y.above){const xt=he.bigOpSpacing5+y.below.height+y.below.depth+Xe+me.depth+ye;ct=new Ja({bottom:xt,children:[he.bigOpSpacing5,{box:y.below,marginLeft:-we,classes:["ML__center"]},Xe,{box:me,classes:["ML__center"]},Re,{box:y.above,marginLeft:we,classes:["ML__center"]},he.bigOpSpacing5]}).wrap(a)}else if(y.below&&!y.above)ct=new Ja({top:me.height-ye,children:[he.bigOpSpacing5,{box:y.below,marginLeft:-we,classes:["ML__center"]},Xe,{box:me,classes:["ML__center"]}]}).wrap(a);else if(!y.below&&y.above){const xt=me.depth+ye;ct=new Ja({bottom:xt,children:[{box:me,classes:["ML__center"]},Re,{box:y.above,marginLeft:we,classes:["ML__center"]},he.bigOpSpacing5]}).wrap(a)}else{const xt=me.depth+ye;ct=new Ja({bottom:xt,children:[{box:me},he.bigOpSpacing5]}).wrap(a)}return new fr(ct,{type:(ae=y.type)!=null?ae:"op"})}var od=7,rl=6,Iu=5,ml=4,Hl=3,ss=2,ks=1,Uo=0,$s=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(td).reduce((ee,re)=>pe(Se({},ee),{[re]:td[re][E]}),{})}getFontSize(a){return Math.max(1,a+this.sizeDelta)}get sup(){return Vs[[Uo,ks,Uo,ks,ss,Hl,ss,Hl][this.id]]}get sub(){return Vs[[Uo,Uo,Uo,Uo,ss,ss,ss,ss][this.id]]}get fracNum(){return Vs[[Uo,ks,Uo,ks,ss,Hl,ml,Iu][this.id]]}get fracDen(){return Vs[[Uo,Uo,Uo,Uo,ss,ss,ml,ml][this.id]]}get cramp(){return Vs[[Uo,Uo,ss,ss,ml,ml,rl,rl][this.id]]}get isTight(){return this.sizeDelta<0}},Kl={7:new $s(od,0,!1),6:new $s(rl,0,!0),5:new $s(Iu,0,!1),4:new $s(ml,0,!0),3:new $s(Hl,-3,!1),2:new $s(ss,-3,!0),1:new $s(ks,-4,!1),0:new $s(Uo,-4,!0)},Vs=pe(Se({},Kl),{displaystyle:Kl[od],textstyle:Kl[Iu],scriptstyle:Kl[Hl],scriptscriptstyle:Kl[ks]});function au(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:Fl,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=_l(10,y);return Math.round(a.dimension/Fl*E*ee)/ee}return a.dimension*E}function sd(a,y){if(a===null)return 0;const b=au(a)/Fl;if(Number.isFinite(y)){const E=_l(10,y);return Math.round(b*E)/E}return b}function ld(a){var y;return`${a.dimension}${(y=a.unit)!=null?y:"pt"}`}function lf(a){let y=ld(a.glue);return a.grow&&a.grow.dimension!==0&&(y+=` plus ${ld(a.grow)}`),a.shrink&&a.shrink.dimension!==0&&(y+=` minus ${ld(a.shrink)}`),y}function Io(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=lf(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 Zs(a,y){return a==null?null:"number"in a?pe(Se({},a),{number:a.number*y}):"register"in a?"factor"in a&&a.factor?pe(Se({},a),{factor:a.factor*y}):pe(Se({},a),{factor:y}):"dimension"in a?pe(Se({},a),{dimension:a.dimension*y}):"glue"in a?a.shrink&&a.grow?{glue:Zs(a.glue,y),shrink:Zs(a.shrink,y),grow:Zs(a.grow,y)}:a.shrink?{glue:Zs(a.glue,y),shrink:Zs(a.shrink,y)}:a.grow?{glue:Zs(a.glue,y),grow:Zs(a.grow,y)}:{glue:Zs(a.glue,y)}:null}var rh={"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 ou(){return Se({},rh)}function bc(){return{registers:ou(),smartFence:!1,renderPlaceholder:void 0,placeholderSymbol:"\u25A2",letterShapeStyle:Ye.locale.startsWith("fr")?"french":"tex",minFontScale:0,colorMap:Mt,backgroundColorMap:Qe,getMacro:a=>xi(a,Jn())}}var Ma=class Mp{constructor(y,b){var E,ee,re,ae,he,me,ye,we,Re,Xe,ct,xt,mn,cr,un;let Zn;y!=null&&y.parent?(this.parent=y.parent,Zn=y.parent,this.registers={}):(Zn=Se(Se({},bc()),(E=y==null?void 0:y.from)!=null?E:{}),this.registers=Zn.registers),Zn.atomIdsSettings&&(this.atomIdsSettings=Se({},Zn.atomIdsSettings)),this.renderPlaceholder=Zn.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=Zn.letterShapeStyle,this.minFontScale=Zn.minFontScale,b!=null&&b.color&&b.color!=="none"?this.color=b.color:this.color=(me=(he=this.parent)==null?void 0:he.color)!=null?me:"",b!=null&&b.backgroundColor&&b.backgroundColor!=="none"?this.backgroundColor=b.backgroundColor:this.backgroundColor=(we=(ye=this.parent)==null?void 0:ye.backgroundColor)!=null?we:"",b!=null&&b.fontSize&&b.fontSize!=="auto"&&b.fontSize!==((Re=this.parent)==null?void 0:Re.size)?this.size=b.fontSize:this.size=(ct=(Xe=this.parent)==null?void 0:Xe.size)!=null?ct:dl;let pr=(mn=(xt=this.parent)==null?void 0:xt.mathstyle)!=null?mn:Vs.displaystyle;if(typeof(y==null?void 0:y.mathstyle)=="string"){if(Zn instanceof Mp)switch(y.mathstyle){case"cramp":pr=pr.cramp;break;case"superscript":pr=pr.sup;break;case"subscript":pr=pr.sub;break;case"numerator":pr=pr.fracNum;break;case"denominator":pr=pr.fracDen;break}switch(y.mathstyle){case"textstyle":pr=Vs.textstyle;break;case"displaystyle":pr=Vs.displaystyle;break;case"scriptstyle":pr=Vs.scriptstyle;break;case"scriptscriptstyle":pr=Vs.scriptscriptstyle;break;case"":case"auto":break}}this.mathstyle=pr,this.smartFence=Zn.smartFence,this.placeholderSymbol=Zn.placeholderSymbol,this.colorMap=(cr=Zn.colorMap)!=null?cr:Yn=>Yn,this.backgroundColorMap=(un=Zn.backgroundColorMap)!=null?un:Yn=>Yn,this.getMacro=Zn.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===od||this.mathstyle.id===rl}get isCramped(){return this.mathstyle.cramped}get isTight(){return this.mathstyle.isTight}get metrics(){return this.mathstyle.metrics}get effectiveFontSize(){return Math.max(pc[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 sd(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?pe(Se({},re),{dimension:E*re.dimension}):"glue"in re?pe(Se({},re),{glue:pe(Se({},re.glue),{dimension:E*re.glue.dimension}),shrink:re.shrink?pe(Se({},re.shrink),{dimension:E*re.shrink.dimension}):void 0,grow:re.grow?pe(Se({},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:au(E,b)/Fl}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}},su=["body","above","below","superscript","subscript"];function il(a){return typeof a=="string"&&su.includes(a)}function _u(a){return a!==void 0&&Array.isArray(a)&&a.length===2}var Bn=class Gl{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=Se({},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=uf(b),ae=[];for(const me of re){const ye=me[0].style,we=cf(y,me,{style:{color:ye.color,backgroundColor:ye.backgroundColor,fontSize:ye.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 fr(ae,{classes:he,type:E==null?void 0:E.type}).wrap(y)}static serialize(y,b){return Ss.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 Gl({type:"mord",value:y,mode:"math"}):new Gl(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=Se({},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=cd(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=wr(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):this.body&&this.command?ua([co(this.command,this.bodyToLatex(y)),this.supsubToLatex(y)]):this.body?ua([this.bodyToLatex(y),this.supsubToLatex(y)]):!this.value||this.value==="\u200B"?"":this.command}bodyToLatex(y){var b;return Ss.serialize(this.body,pe(Se({},y),{defaultMode:(b=y.defaultMode)!=null?b:this.latexMode}))}aboveToLatex(y){return Ss.serialize(this.above,y)}belowToLatex(y){return Ss.serialize(this.below,y)}supsubToLatex(y){let b="";if(y=pe(Se({},y),{defaultMode:"math"}),this.branch("subscript")!==void 0){const E=Ss.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=Ss.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(il(y)&&this._branches)return this._branches[y]}get branches(){if(!this._branches)return[];const y=[];for(const b of su)this._branches[b]&&y.push(b);return y}createBranch(y){return console.assert(il(y)),il(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 _u(this.parentBranch)?this.parentBranch[0]:-1}get col(){return _u(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=Se(Se({},(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=Se(Se({},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(il(b)),!il(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 Gl({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(il(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 su)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=wr(this.command,this.mode);if(b!=null&&b.render)return b.render(this,y);const E=new Ma({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,me=null;const ye=(E=b.isCharacterBox)!=null?E:this.isCharacterBox();let we=0;if(re){const mn=new Ma({parent:y,mathstyle:"superscript"});he=Gl.createBox(mn,re),ye||(we=ee.height-y.metrics.supDrop*mn.scalingFactor)}let Re=0;if(ae){const mn=new Ma({parent:y,mathstyle:"subscript"});me=Gl.createBox(mn,ae),ye||(Re=ee.depth+y.metrics.subDrop*mn.scalingFactor)}let Xe;y.isDisplayStyle?Xe=y.metrics.sup1:y.isCramped?Xe=y.metrics.sup3:Xe=y.metrics.sup2;const ct=.5/Fl/y.scalingFactor;let xt=null;if(me&&he){we=Math.max(we,Xe,he.depth+.25*y.metrics.xHeight),Re=Math.max(Re,y.metrics.sub2);const mn=y.metrics.defaultRuleThickness;if(we-he.depth-(me.height-Re)<4*mn){Re=4*mn-(we-he.depth)+me.height;const un=.8*y.metrics.xHeight-(we-he.depth);un>0&&(we+=un,Re-=un)}const cr=this.isExtensibleSymbol&&ee.italic?-ee.italic:0;xt=new Ja({individualShift:[{box:me,shift:Re,marginLeft:cr},{box:he,shift:-we}]}).wrap(y)}else me&&!he?(Re=Math.max(Re,y.metrics.sub1,me.height-.8*el),xt=new Ja({shift:Re,children:[{box:me,marginRight:ct,marginLeft:this.isCharacterBox()?-ee.italic:0}]})):!me&&he&&(we=Math.max(we,Xe,he.depth+.25*el),xt=new Ja({shift:-we,children:[{box:he,marginRight:ct}]}));return new fr([ee,new fr(xt,{caret:this.caret,isSelected:this.isSelected,classes:"msubsup"})],{type:b.type})}attachLimits(y,b){const E=this.superscript?Gl.createBox(new Ma({parent:y,mathstyle:"superscript"},this.style),this.superscript):null,ee=this.subscript?Gl.createBox(new Ma({parent:y,mathstyle:"subscript"},this.style),this.subscript):null;return!E&&!ee?b.base.wrap(y):nh(y,pe(Se({},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,me=(ee=b==null?void 0:b.boxType)!=null?ee:id(this.type);let ye=(re=b==null?void 0:b.classes)!=null?re:"";this.mode==="text"&&(ye+=" ML__text");const we=typeof he=="string"||he===void 0?new fr(he!=null?he:null,{type:me,isSelected:this.isSelected,mode:this.mode,maxFontSize:y.scalingFactor,style:pe(Se({variant:"normal"},this.style),{fontSize:Math.max(1,y.size+y.mathstyle.sizeDelta)}),letterShapeStyle:y.letterShapeStyle,classes:ye}):(ae=Gl.createBox(y,he,{type:me,classes:ye}))!=null?ae:new fr(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 uf(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 cf(a,y,b){var E,ee,re,ae,he;if(!y||y.length===0)return null;const me=new Ma({parent:a},b.style),ye=!((E=me.atomIdsSettings)!=null&&E.groupNumbers);let we=[];if(y.length===1){const Xe=y[0],ct=Xe.render(me);ct&&(ye&&Xe.isSelected&&ct.selected(!0),we=[ct])}else{let Xe="",ct=!0;for(const xt of y){(ee=me.atomIdsSettings)!=null&&ee.groupNumbers&&Xe&&(ct&&xt.isDigit()||!ct&&ud(xt))&&(me.atomIdsSettings.overrideID=Xe);const mn=xt.render(me);me.atomIdsSettings&&(me.atomIdsSettings.overrideID=void 0),mn&&((re=me.atomIdsSettings)!=null&&re.groupNumbers&&((xt.isDigit()||ud(xt))&&(!Xe||ct!==xt.isDigit())&&(ct=xt.isDigit(),Xe=(ae=xt.id)!=null?ae:""),Xe&&(!(xt.isDigit()||ud(xt))||!xt.hasEmptyBranch("superscript")||!xt.hasEmptyBranch("subscript"))&&(Xe="")),ye&&xt.isSelected&&mn.selected(!0),we.push(mn))}}if(we.length===0)return null;const Re=new fr(we,pe(Se({isTight:me.isTight},b),{type:(he=b.type)!=null?he:"lift"}));return Re.isSelected=we.every(Xe=>Xe.isSelected),Re.wrap(me)}function ud(a){return a.mode==="text"}function cd(a){return a.map(y=>y===null?"<null>":Array.isArray(y)&&y[0]instanceof Bn?{atoms:y.map(b=>b.toJson())}:typeof y=="object"&&"group"in y?{group:y.group.map(b=>b.toJson())}:y)}var al=class kp extends Bn{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:ei("text",this.value.codePointAt(0))}};function Bu(a,y){if(a.direction===y.direction){const b=a.ranges.length;if(y.ranges.length===b){let E=0;for(;E<b&&ih(a.ranges[E],y.ranges[E])==="equal";)E++;return E===b?"equal":"different"}}return"different"}function ih(a,y){return a[0]===y[0]&&a[1]===y[1]?"equal":"different"}function Go(a){let y=1/0,b=-1/0;for(const E of a.ranges)y=Math.min(y,E[0],E[1]),b=Math.max(b,E[0],E[1]);return[y,b]}function gl(a){return typeof a=="number"&&!Number.isNaN(a)}function xc(a){return Array.isArray(a)&&a.length===2}function wc(a){return a!=null&&typeof a=="object"&&"ranges"in a&&Array.isArray(a.ranges)}function ah(a,y){const b=a.at(y);let E;if(b){E=b.mode;let ee=b.parent;for(;!E&&ee;)ee&&(E=ee.mode),ee=ee.parent}return E}function df(a,y){if(!y)return"";if(typeof y=="string")return y;if(!a||y.after===void 0)return y.value;let b=!1,E=!1,ee=!1,re=!1,ae=!1,he=!1,me=!1,ye=!1,we=!1,Re=!1,Xe=!1,ct=!1,xt=!1,mn=!1,cr=!1,un=a[0],Zn=0;for(;un!=null&&un.type&&/^(subsup|placeholder)$/.test(un.type);)Zn+=1,un=a[Zn];return b=!un||un.type==="first",un&&(mn=un.mode==="text",E=!mn&&un.type==="mord"&&fe.test(un.value),ee=!mn&&un.type==="mord"&&/\d+$/.test(un.value),re=!mn&&un.isFunction,ae=un.type==="genfrac",he=un.type==="surd",me=un.type==="mbin",ye=un.type==="mrel",we=un.type==="mop"||un.type==="operator"||un.type==="extensible-symbol",Re=un.type==="mpunct"||un.type==="minner",Xe=un.type==="array",ct=un.type==="mopen",xt=un.type==="mclose"||un.type==="leftright",cr=un.type==="space"),y.after.includes("nothing")&&b||y.after.includes("letter")&&E||y.after.includes("digit")&&ee||y.after.includes("function")&&re||y.after.includes("frac")&&ae||y.after.includes("surd")&&he||y.after.includes("binop")&&me||y.after.includes("relop")&&ye||y.after.includes("operator")&&we||y.after.includes("punct")&&Re||y.after.includes("array")&&Xe||y.after.includes("openfence")&&ct||y.after.includes("closefence")&&xt||y.after.includes("text")&&mn||y.after.includes("space")&&cr?y.value:""}function dd(a,y,b){return b?df(a,b[y]):""}var ff={"&":"\\&","%":"\\%",$:"\\$","''":"^{\\doubleprime}","'''":"^{\\prime\\prime\\prime}","''''":"^{\\prime\\prime\\prime\\prime}",alpha:"\\alpha",delta:"\\delta",Delta:"\\Delta",pi:"\\pi",Pi:"\\Pi",theta:"\\theta",Theta:"\\Theta",ii:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\imaginaryI"},jj:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\imaginaryJ"},ee:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\exponentialE"},nabla:"\\nabla",grad:"\\nabla",del:"\\partial",deg:{after:"digit+space",value:"\\degree"},infty:"\\infty","\u221E":"\\infty",oo:{after:"nothing+digit+frac+surd+binop+relop+punct+array+openfence+closefence+space",value:"\\infty"},"\u2211":"\\sum",sum:"\\sum_{#?}^{#?}",int:"\\int_{#?}^{#?}",prod:"\\prod_{#?}^{#?}",sqrt:"\\sqrt{#?}","\u2206":"\\differentialD","\u2202":"\\differentialD",arcsin:"\\arcsin",arccos:"\\arccos",arctan:"\\arctan",arcsec:"\\arcsec",arccsc:"\\arccsc",arsinh:"\\arsinh",arcosh:"\\arcosh",artanh:"\\artanh",arcsech:"\\arcsech",arccsch:"\\arccsch",arg:"\\arg",ch:"\\ch",cosec:"\\cosec",cosh:"\\cosh",cot:"\\cot",cotg:"\\cotg",coth:"\\coth",csc:"\\csc",ctg:"\\ctg",cth:"\\cth",sec:"\\sec",sinh:"\\sinh",sh:"\\sh",tanh:"\\tanh",tg:"\\tg",th:"\\th",sin:"\\sin",cos:"\\cos",tan:"\\tan",lg:"\\lg",lb:"\\lb",log:"\\log",ln:"\\ln",exp:"\\exp",lim:"\\lim_{#?}",dx:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD x"},dy:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD y"},dt:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD t"},AA:"\\forall",EE:"\\exists","!EE":"\\nexists","&&":"\\land",xin:{after:"nothing+text+relop+punct+openfence+space",value:"x \\in"},sint:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\sin t"},in:{after:"nothing+letter+closefence",value:"\\in"},"!in":"\\notin",NN:"\\mathbb{N}",ZZ:"\\Z",QQ:"\\Q",RR:"\\R",CC:"\\C",xx:"\\times","+-":"\\pm","\u2260":"\\ne","!=":"\\ne","\u2265":"\\ge",">=":"\\ge","\u2264":"\\le","<=":"\\le","<<":"\\ll",">>":"\\gg","~~":"\\approx","\u2248":"\\approx","?=":"\\questeq","\xF7":"\\div","\xAC":"\\neg",":=":"\\coloneq","::":"\\Colon","(:":"\\langle",":)":"\\rangle",beta:"\\beta",chi:"\\chi",epsilon:"\\epsilon",varepsilon:"\\varepsilon",eta:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\eta"},gamma:"\\gamma",Gamma:"\\Gamma",iota:"\\iota",kappa:"\\kappa",lambda:"\\lambda",Lambda:"\\Lambda",mu:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\mu"},nu:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\nu"},\u00B5:"\\mu",phi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\phi"},Phi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Phi"},varphi:"\\varphi",psi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\psi"},Psi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Psi"},rho:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\rho"},sigma:"\\sigma",Sigma:"\\Sigma",tau:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\tau"},vartheta:"\\vartheta",upsilon:"\\upsilon",xi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space",value:"\\xi"},Xi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Xi"},zeta:"\\zeta",omega:"\\omega",Omega:"\\Omega",\u03A9:"\\omega",forall:"\\forall",exists:"\\exists","!exists":"\\nexists",":.":"\\therefore",liminf:"\\liminf_{#?}",limsup:"\\limsup_{#?}",argmin:"\\operatorname*{arg~min}_{#?}",argmax:"\\operatorname*{arg~max}_{#?}",det:"\\det",mod:"\\bmod{#?}","(mod":"\\pmod{#?}",max:"\\max",min:"\\min",erf:"\\operatorname{erf}",erfc:"\\operatorname{erfc}",bessel:"\\operatorname{bessel}",mean:"\\operatorname{mean}",median:"\\operatorname{median}",fft:"\\operatorname{fft}",lcm:"\\operatorname{lcm}",gcd:"\\operatorname{gcd}",randomReal:"\\operatorname{randomReal}",randomInteger:"\\operatorname{randomInteger}",Re:"\\operatorname{Re}",Im:"\\operatorname{Im}",mm:{after:"nothing+digit+operator",value:"\\operatorname{mm}"},cm:{after:"nothing+digit+operator",value:"\\operatorname{cm}"},km:{after:"nothing+digit+operator",value:"\\operatorname{km}"},kg:{after:"nothing+digit+operator",value:"\\operatorname{kg}"},"...":"\\ldots","+...":"+\\cdots","-...":"-\\cdots","->...":"\\to\\cdots","-->...":"\\longrightarrow\\cdots","->":"\\to","|->":"\\mapsto","-->":"\\longrightarrow","<--":"\\longleftarrow","=>":"\\Rightarrow","==>":"\\Longrightarrow","<=>":"\\Leftrightarrow","<->":"\\leftrightarrow","(.)":"\\odot","(+)":"\\oplus","(/)":"\\oslash","(*)":"\\otimes","(-)":"\\ominus","||":"\\Vert","*":"\\cdot","**":"\\star","***":"\\ast","//":"\\slash","\\\\":"\\backslash",setminus:"\\backslash","|><":"\\ltimes","><|":"\\rtimes","|><|":"\\bowtie","-:":"\\div",divide:"\\div","@":"\\circ","^^":"\\wedge","^^^":"\\bigwedge",vv:"\\vee",vvv:"\\bigvee",nn:"\\cap",nnn:"\\bigcap",uu:"\\cup",uuu:"\\bigcup","-=":"\\equiv","~=":"\\cong",lt:"<","lt=":"\\leq",gt:">","gt=":"\\geq","-<":"\\prec","-lt":"\\prec","-<=":"\\preceq",">-=":"\\succeq",prop:"\\propto",diamond:"\\diamond",square:"\\square",iff:"\\iff",sub:"\\subset",sup:"\\supset",sube:"\\subseteq",supe:"\\supseteq",uarr:"\\uparrow",darr:"\\downarrow",rarr:"\\rightarrow",rArr:"\\Rightarrow",larr:"\\leftarrow",lArr:"\\Leftarrow",harr:"\\leftrightarrow",hArr:"\\Leftrightarrow",aleph:"\\aleph",and:"\\land",or:"\\lor",not:"\\neg","_|_":"\\bot",TT:"\\top","|--":"\\vdash","|==":"\\models","|__":"\\lfloor","__|":"\\rfloor","|~":"\\lceil","~|":"\\rceil",">->":"\\rightarrowtail","->>":"\\twoheadrightarrow",">->>":"\\twoheadrightarrowtail",frac:"\\frac{#?}{#?}",cbrt:"\\sqrt[3]{#?}",nthroot:"\\sqrt[#?]{#?}"};function Pu(a,y){var b;let E=(b=y==null?void 0:y.format)!=null?b:"auto";return E==="auto"&&([E,a]=pf(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",ts(a,{inlineShortcuts:y==null?void 0:y.inlineShortcuts})]):["latex",a]}function ts(a,y){var b,E,ee;if(!a)return"";let re=!1,ae;const he=(b=y.inlineShortcuts)!=null?b:ff;if(!re&&(a.startsWith("^")||a.startsWith("_"))&&(ae=vl(a.slice(1),{inlineShortcuts:he,noWrap:!0}),a=a[0]+"{"+ae.match+"}",a+=ts(ae.rest,y),re=!0),re||(ae=a.match(/^(sqrt|\u221A)(.*)/),ae&&(ae=vl(ae[2],{inlineShortcuts:he,noWrap:!0}),a="\\sqrt{"+((E=ae.match)!=null?E:"\\placeholder{}")+"}",a+=ts(ae.rest,y),re=!0)),re||(ae=a.match(/^(\\cbrt|\u221B)(.*)/),ae&&(ae=vl(ae[2],{inlineShortcuts:he,noWrap:!0}),a="\\sqrt[3]{"+((ee=ae.match)!=null?ee:"\\placeholder{}")+"}",a+=ts(ae.rest,y),re=!0)),re||(ae=a.match(/^abs(.*)/),ae&&(ae=vl(ae[1],{inlineShortcuts:he,noWrap:!0}),a="\\left|"+ae.match+"\\right|",a+=ts(ae.rest,y),re=!0)),re||(ae=a.match(/^["”“](.*?)["”“](.*)/),ae&&(a="\\text{"+ae[1]+"}",a+=ts(ae[2],y),re=!0)),re||(ae=a.match(/^([^a-zA-Z\(\{\[\_\^\\\s"]+)(.*)/),ae&&(a=hf(ae[1],he),a+=ts(ae[2],y),re=!0)),!re&&/^([fgh])[^a-zA-Z]/.test(a)&&(ae=vl(a.slice(1),{inlineShortcuts:he,noWrap:!0}),a=a[1]==="("?a[0]+"\\left("+ae.match+"\\right)":a[0]+ae.match,a+=ts(ae.rest,y),re=!0),re||(ae=a.match(/^([a-zA-Z]+)(.*)/),ae&&(a=hf(ae[1],he),a+=ts(ae[2],y),re=!0)),!re)if(ae=vl(a,{inlineShortcuts:he,noWrap:!0}),ae.match&&ae.rest[0]==="/"){const me=vl(ae.rest.slice(1),{inlineShortcuts:he,noWrap:!0});me.match&&(a="\\frac{"+ae.match+"}{"+me.match+"}"+ts(me.rest,y)),re=!0}else ae.match&&(a=a.startsWith("(")?"\\left("+ae.match+"\\right)"+ts(ae.rest,y):ae.match+ts(ae.rest,y),re=!0);return re||(ae=a.match(/^(\s+)(.*)$/),ae&&(a=" "+ts(ae[2],y),re=!0)),a}function vl(a,y){let b="";a=a.trim();let E=a,ee=a.charAt(0),re={"(":")","{":"}","[":"]"}[ee];if(re){let ae=1,he=1;for(;he<a.length&&ae>0;)a[he]===ee&&ae++,a[he]===re&&ae--,he++;ae===0?(y.noWrap&&ee==="("?b=ts(a.substring(1,he-1),y):(ee==="{"&&re==="}"&&(ee="\\{",re="\\}"),b="\\left"+ee+ts(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=dd(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 hf(a,y){let b=dd(null,a,y);return b?(b=b.replace("_{#?}",""),b=b.replace("^{#?}",""),b+=" "):b=a,b}var fd=[["\\[","\\]"],["\\(","\\)"],["$$","$$"],["$","$"],["\\begin{math}","\\end{math}"],["\\begin{displaymath}","\\end{displaymath}"],["\\begin{equation}","\\end{equation}"],["\\begin{equation*}","\\end{equation*}"]];function yl(a){const y=a.trim();for(const b of fd)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 pf(a){if(a=a.trim(),a.length<=1)return["latex",a];let y;return[y,a]=yl(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 Sc="$$",oh="$$",sh=(a,y,b)=>(fd.some(E=>y.startsWith(E[0])&&y.endsWith(E[1]))||(y=`${Sc} ${y} ${oh}`),y),mf=class Jf{constructor(y){Jf._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)?Jf._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]:Go(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]:Go(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 al).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 me;return(me=he.value)!=null?me:""}).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(me){}if(ae.length===1){const me=ae[0];(me.type==="root"||me.type==="group")&&(ae=me.body.filter(ye=>ye.type!=="first"))}try{b.clipboardData.setData("application/json+mathlive",JSON.stringify(ae.map(me=>me.toJson())))}catch(me){}if((E=window[Symbol.for("io.cortexjs.compute-engine")])!=null&&E.ComputeEngine){const me=window.MathfieldElement.computeEngine;if(me)try{const ye=me.jsonSerializationOptions;me.jsonSerializationOptions={metadata:["latex"]};const we=me.parse(ee.getValue(re,"latex-unstyled"));me.jsonSerializationOptions=ye;const Re=JSON.stringify(we.json);Re&&b.clipboardData.setData("application/json",Re)}catch(ye){}}}b.preventDefault()}static insert(y,b,E={}){var ee;const re=E.mode==="auto"?y.mode:(ee=E.mode)!=null?ee:y.mode;return Jf._modes[re].insert(y,b,E)}onPaste(y,b){return!1}insert(y,b,E){return!1}};mf._modes={};var Wi=mf,lh=[{key:"left",command:"moveToPreviousChar"},{key:"right",command:"moveToNextChar"},{key:"up",command:"moveUp"},{key:"down",command:"moveDown"},{key:"shift+[ArrowLeft]",command:"extendSelectionBackward"},{key:"shift+[ArrowRight]",command:"extendSelectionForward"},{key:"shift+[ArrowUp]",command:"extendSelectionUpward"},{key:"shift+[ArrowDown]",command:"extendSelectionDownward"},{key:"[Backspace]",command:"deleteBackward"},{key:"alt+[Delete]",command:"deleteBackward"},{key:"[Delete]",command:"deleteForward"},{key:"alt+[Backspace]",command:"deleteForward"},{key:"alt+[ArrowLeft]",command:"moveToPreviousWord"},{key:"alt+[ArrowRight]",command:"moveToNextWord"},{key:"shift+alt+[ArrowLeft]",command:"extendToPreviousWord"},{key:"shift+alt+[ArrowRight]",command:"extendToNextWord"},{key:"ctrl+[ArrowLeft]",command:"moveToGroupStart"},{key:"ctrl+[ArrowRight]",command:"moveToGroupEnd"},{key:"shift+ctrl+[ArrowLeft]",command:"extendToGroupStart"},{key:"shift+ctrl+[ArrowRight]",command:"extendToGroupEnd"},{key:"[Home]",command:"moveToMathfieldStart"},{key:"cmd+[ArrowLeft]",command:"moveToMathfieldStart"},{key:"shift+[Home]",command:"extendToMathFieldStart"},{key:"shift+cmd+[ArrowLeft]",command:"extendToMathFieldStart"},{key:"[End]",command:"moveToMathfieldEnd"},{key:"cmd+[ArrowRight]",command:"moveToMathfieldEnd"},{key:"shift+[End]",command:"extendToMathFieldEnd"},{key:"shift+cmd+[ArrowRight]",command:"extendToMathFieldEnd"},{key:"[Pageup]",command:"moveToGroupStart"},{key:"[Pagedown]",command:"moveToGroupEnd"},{key:"[Tab]",command:"moveToNextGroup"},{key:"shift+[Tab]",command:"moveToPreviousGroup"},{key:"[Escape]",ifMode:"math",command:["switchMode","latex"]},{key:"[Escape]",ifMode:"text",command:["switchMode","latex"]},{key:"[Escape]",ifMode:"latex",command:["complete","complete",{selectItem:"true"}]},{key:"\\",ifMode:"math",command:["switchMode","latex","\\"]},{key:"[IntlBackslash]",ifMode:"math",command:["switchMode","latex","\\"]},{key:"[Tab]",ifMode:"latex",command:["complete","accept-suggestion"]},{key:"[Return]",ifMode:"latex",command:"complete"},{key:"[Enter]",ifMode:"latex",command:"complete"},{key:"shift+[Escape]",ifMode:"latex",command:["complete","reject"]},{key:"[ArrowDown]",ifMode:"latex",command:"nextSuggestion"},{key:"[ArrowUp]",ifMode:"latex",command:"previousSuggestion"},{key:"ctrl+a",ifPlatform:"!macos",command:"selectAll"},{key:"cmd+a",command:"selectAll"},{key:"[Cut]",command:"cutToClipboard"},{key:"[Copy]",command:"copyToClipboard"},{key:"[Paste]",command:"pasteFromClipboard"},{key:"[Clear]",command:"deleteBackward"},{key:"[Undo]",command:"undo"},{key:"[Redo]",command:"redo"},{key:"[EraseEof]",command:"deleteToGroupEnd"},{key:"ctrl+x",ifPlatform:"ios",command:"cutToClipboard"},{key:"cmd+x",ifPlatform:"ios",command:"cutToClipboard"},{key:"ctrl+c",ifPlatform:"ios",command:"copyToClipboard"},{key:"cmd+c",ifPlatform:"ios",command:"copyToClipboard"},{key:"ctrl+v",ifPlatform:"ios",command:"pasteFromClipboard"},{key:"cmd+v",ifPlatform:"ios",command:"pasteFromClipboard"},{key:"ctrl+z",ifPlatform:"!macos",command:"undo"},{key:"cmd+z",command:"undo"},{key:"ctrl+y",ifPlatform:"!macos",command:"redo"},{key:"shift+cmd+y",command:"redo"},{key:"shift+ctrl+z",ifPlatform:"!macos",command:"redo"},{key:"shift+cmd+z",command:"redo"},{key:"ctrl+b",ifPlatform:"macos",command:"moveToPreviousChar"},{key:"ctrl+f",ifPlatform:"macos",command:"moveToNextChar"},{key:"ctrl+p",ifPlatform:"macos",command:"moveUp"},{key:"ctrl+n",ifPlatform:"macos",command:"moveDown"},{key:"ctrl+a",ifPlatform:"macos",command:"moveToMathfieldStart"},{key:"ctrl+e",ifPlatform:"macos",command:"moveToMathfieldEnd"},{key:"shift+ctrl+b",ifPlatform:"macos",command:"extendSelectionBackward"},{key:"shift+ctrl+f",ifPlatform:"macos",command:"extendSelectionForward"},{key:"shift+ctrl+p",ifPlatform:"macos",command:"extendSelectionUpward"},{key:"shift+ctrl+n",ifPlatform:"macos",command:"extendSelectionDownward"},{key:"shift+ctrl+a",ifPlatform:"macos",command:"extendToMathFieldStart"},{key:"shift+ctrl+e",ifPlatform:"macos",command:"extendToMathFieldEnd"},{key:"alt+ctrl+b",ifPlatform:"macos",command:"moveToPreviousWord"},{key:"alt+ctrl+f",ifPlatform:"macos",command:"moveToNextWord"},{key:"shift+alt+ctrl+b",ifPlatform:"macos",command:"extendToPreviousWord"},{key:"shift+alt+ctrl+f",ifPlatform:"macos",command:"extendToNextWord"},{key:"ctrl+h",ifPlatform:"macos",command:"deleteBackward"},{key:"ctrl+d",ifPlatform:"macos",command:"deleteForward"},{key:"ctrl+l",ifPlatform:"macos",command:"scrollIntoView"},{key:"ctrl+[Digit2]",ifMode:"math",command:["insert","\\sqrt{#0}"]},{key:"ctrl+[Digit5]",ifMode:"math",command:"moveToOpposite"},{key:"ctrl+[Digit6]",ifMode:"math",command:"moveToSuperscript"},{key:"ctrl+[Return]",ifMode:"math",command:"addRowAfter"},{key:"ctrl+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Return]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"alt+p",ifMode:"math",command:["insert","\\pi"]},{key:"alt+v",ifMode:"math",command:["insert","\\sqrt{#0}"]},{key:"alt+o",ifMode:"math",command:["insert","\\emptyset"]},{key:"alt+d",ifMode:"math",command:["insert","\\differentialD"]},{key:"shift+alt+o",ifMode:"math",command:["insert","\\varnothing"]},{key:"shift+alt+d",ifMode:"math",command:["insert","\\partial"]},{key:"alt+[Backslash]",ifMode:"math",command:["insert","\\backslash"]},{key:"[NumpadDivide]",ifMode:"math",command:["insert","\\frac{#@}{#?}"]},{key:"alt+[NumpadDivide]",ifMode:"math",command:["insert","\\frac{#?}{#@}"]},{key:"shift+alt+k",command:"toggleKeystrokeCaption"},{key:"alt+[Space]",command:"toggleContextMenu"},{key:"alt+shift+[Space]",command:"toggleVirtualKeyboard"},{key:"alt+ctrl+[ArrowUp]",command:["speak","all",{withHighlighting:!1}]},{key:"alt+ctrl+[ArrowDown]",command:["speak","selection",{withHighlighting:!1}]},{key:"shift+[Quote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["switchMode","text","",""]},{key:"shift+alt+[KeyT]",ifMode:"math",command:["switchMode","text","",""]},{key:"shift+[Quote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"text",command:["switchMode","math","",""]},{key:"shift+alt+[KeyT]",ifMode:"text",command:["switchMode","math","",""]},{key:"/",ifMode:"math",command:["insert","\\frac{#@}{#?}"]},{key:"alt+/",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","/"]},{key:"alt+shift+/",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","/"]},{key:"alt+[BracketLeft]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\left\\lbrack #0 \\right\\rbrack"]},{key:"ctrl+[Minus]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"moveToSubscript"},{key:"shift+alt+[BracketLeft]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\left\\lbrace #0 \\right\\rbrace"]},{key:"ctrl+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowAfter"},{key:"cmd+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowAfter"},{key:"shift+ctrl+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowBefore"},{key:"shift+cmd+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowBefore"},{key:"ctrl+[Backspace]",ifMode:"math",command:"removeRow"},{key:"cmd+[Backspace]",ifMode:"math",command:"removeRow"},{key:"alt+[Tab]",ifMode:"math",command:"addColumnAfter"},{key:"shift+alt+[Tab]",ifMode:"math",command:"addColumnBefore"},{key:"alt+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"shift+alt+[Enter]",ifMode:"math",command:"addRowBefore"},{key:"alt+[Return]",ifMode:"math",command:"addRowAfter"},{key:"shift+alt+[Return]",ifMode:"math",command:"addRowBefore"},{key:"shift+[Backspace]",ifMode:"math",command:"removeColumn"},{key:"alt+[Digit5]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","$\\infty"]},{key:"alt+[Digit9]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","("]},{key:"alt+[Digit0]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert",")"]},{key:"alt+|",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","|"]},{key:"shift+[Backquote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\~"]},{key:"[Backquote]",ifLayout:["windows.french","linux.french"],ifMode:"math",command:["insert","^2"]},{key:"[Backquote]",ifLayout:["windows.german","linux.german"],ifMode:"math",command:["insert","^"]},{key:"[IntlBackslash]",ifLayout:["apple.german"],ifMode:"math",command:["insert","^"]}],hd={"\\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 Os(a){var y;return((y=a.element)==null?void 0:y.mathfield)===a}function Ns(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 bl(a){const y=Ns(a);if(!y)return null;const b=y.getBoundingClientRect();return{x:b.right,y:b.bottom,height:b.height}}function pd(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 md(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 gd(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=gd(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 lu(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?gd(re):null,a.atomBoundsCache&&(ee?a.atomBoundsCache.set(y.id,ee):a.atomBoundsCache.delete(y.id)),ee!=null?ee:null}function gf(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 me=Math.floor(re.getBoundingClientRect().width)/ae;me=isNaN(me)?1:me;const ye=md(a,lu(a,ee),me);if(ye){const we=pd(ee);if(E.has(we)){const Re=E.get(we);E.set(we,{left:Math.min(Re.left,ye.left),right:Math.max(Re.right,ye.right),top:Math.min(Re.top,ye.top),bottom:Math.max(Re.bottom,ye.bottom)})}else E.set(we,ye)}}return[...E.values()]}function vd(a,y){return a.model.selection.ranges.reduce((b,E)=>b.concat(...gf(a,E,y)),[])}function yd(a,y){return a==="*"||y==="none"?!0:y==="same-origin"?!window.origin||a===window.origin:typeof y=="function"?y(a):!1}function Cc(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 vf=`@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;
}
`,Ya=`.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);
}
`,yf=`#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);
}
`,uh=`/* 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;
}
`,uu=`/* 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);*/
}
`,ch=`.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));
}
`,Ec=`:host {
--primary-color: #5898ff;
--primary-color-dimmed: #c0c0f0;
--primary-color-dark: var(--blue-500);
--primary-color-light: var(--blue-100);
--primary-color-reverse: #ffffff;
--secondary-color: #ff8a65;
--secondary-color-dimmed: #f0d5c5;
--secondary-color-dark: var(--orange-500);
--secondary-color-light: var(--orange-100);
--secondary-color-reverse: #ffffff;
--link-color: #5898ff;
--link-color-dimmed: #c5c5c5;
--link-color-dark: #121212;
--link-color-light: #e2e2e2;
--link-color-reverse: #ffffff;
--semantic-blue: var(--blue-700);
--semantic-red: var(--red-400);
--semantic-orange: var(--orange-400);
--semantic-green: var(--green-700);
--neutral-100: #f5f5f5;
--neutral-200: #eeeeee;
--neutral-300: #e0e0e0;
--neutral-400: #bdbdbd;
--neutral-500: #9e9e9e;
--neutral-600: #757575;
--neutral-700: #616161;
--neutral-800: #424242;
--neutral-900: #212121;
--red-25: #fff8f7;
--red-50: #fff1ef;
--red-100: #ffeae6;
--red-200: #ffcac1;
--red-300: #ffa495;
--red-400: #ff7865;
--red-500: #f21c0d;
--red-600: #e50018;
--red-700: #d30024;
--red-800: #bd002c;
--red-900: #a1002f;
--orange-25: #fffbf8;
--orange-50: #fff7f1;
--orange-100: #fff3ea;
--orange-200: #ffe1c9;
--orange-300: #ffcca2;
--orange-400: #ffb677;
--orange-500: #fe9310;
--orange-600: #f58700;
--orange-700: #ea7c00;
--orange-800: #dc6d00;
--orange-900: #ca5b00;
--brown-25: #fff8ef;
--brown-50: #fff1df;
--brown-100: #ffe9ce;
--brown-200: #ebcca6;
--brown-300: #cdaf8a;
--brown-400: #af936f;
--brown-500: #856a47;
--brown-600: #7f5e34;
--brown-700: #78511f;
--brown-800: #6e4200;
--brown-900: #593200;
--yellow-25: #fffdf9;
--yellow-50: #fffcf2;
--yellow-100: #fffaec;
--yellow-200: #fff2ce;
--yellow-300: #ffe8ab;
--yellow-400: #ffdf85;
--yellow-500: #ffcf33;
--yellow-600: #f1c000;
--yellow-700: #dfb200;
--yellow-800: #c9a000;
--yellow-900: #ad8a00;
--lime-25: #f4ffee;
--lime-50: #e9ffdd;
--lime-100: #ddffca;
--lime-200: #a8fb6f;
--lime-300: #94e659;
--lime-400: #80d142;
--lime-500: #63b215;
--lime-600: #45a000;
--lime-700: #268e00;
--lime-800: #007417;
--lime-900: #005321;
--green-25: #f5fff5;
--green-50: #ebffea;
--green-100: #e0ffdf;
--green-200: #a7ffa7;
--green-300: #5afa65;
--green-400: #45e953;
--green-500: #17cf36;
--green-600: #00b944;
--green-700: #00a34a;
--green-800: #008749;
--green-900: #00653e;
--teal-25: #f3ffff;
--teal-50: #e6fffe;
--teal-100: #d9fffe;
--teal-200: #8dfffe;
--teal-300: #57f4f4;
--teal-400: #43e5e5;
--teal-500: #17cfcf;
--teal-600: #00c2c0;
--teal-700: #00b5b1;
--teal-800: #00a49e;
--teal-900: #009087;
--cyan-25: #f7fcff;
--cyan-50: #eff8ff;
--cyan-100: #e7f5ff;
--cyan-200: #c2e6ff;
--cyan-300: #95d5ff;
--cyan-400: #61c4ff;
--cyan-500: #13a7ec;
--cyan-600: #069eda;
--cyan-700: #0095c9;
--cyan-800: #0088b2;
--cyan-900: #0a7897;
--blue-25: #f7faff;
--blue-50: #eef5ff;
--blue-100: #e5f1ff;
--blue-200: #bfdbff;
--blue-300: #92c2ff;
--blue-400: #63a8ff;
--blue-500: #0d80f2;
--blue-600: #0077db;
--blue-700: #006dc4;
--blue-800: #0060a7;
--blue-900: #005086;
--indigo-25: #f8f7ff;
--indigo-50: #f1efff;
--indigo-100: #eae7ff;
--indigo-200: #ccc3ff;
--indigo-300: #ac99ff;
--indigo-400: #916aff;
--indigo-500: #63c;
--indigo-600: #5a21b2;
--indigo-700: #4e0b99;
--indigo-800: #3b0071;
--indigo-900: #220040;
--purple-25: #fbf7ff;
--purple-50: #f8f0ff;
--purple-100: #f4e8ff;
--purple-200: #e4c4ff;
--purple-300: #d49aff;
--purple-400: #c36aff;
--purple-500: #a219e6;
--purple-600: #9000c4;
--purple-700: #7c009f;
--purple-800: #600073;
--purple-900: #3d0043;
--magenta-25: #fff8fb;
--magenta-50: #fff2f6;
--magenta-100: #ffebf2;
--magenta-200: #ffcddf;
--magenta-300: #ffa8cb;
--magenta-400: #ff7fb7;
--magenta-500: #eb4799;
--magenta-600: #da3689;
--magenta-700: #c82179;
--magenta-800: #b00065;
--magenta-900: #8a004c;
}
@media (prefers-color-scheme: dark) {
:host {
--semantic-blue: var(--blue-700);
--semantic-red: var(--red-400);
--semantic-orange: var(--orange-400);
--semantic-green: var(--green-700);
--semantic-bg-blue: var(--blue-25);
--semantic-bg-red: var(--red-25);
--semantic-bg-orange: var(--orange-25);
--semantic-bg-green: var(--green-25);
--neutral-100: #121212;
--neutral-200: #424242;
--neutral-300: #616161;
--neutral-400: #757575;
--neutral-500: #9e9e9e;
--neutral-600: #bdbdbd;
--neutral-700: #e0e0e0;
--neutral-800: #eeeeee;
--neutral-900: #f5f5f5;
}
}
:host([theme='dark']) {
--semantic-blue: var(--blue-700);
--semantic-red: var(--red-400);
--semantic-orange: var(--orange-400);
--semantic-green: var(--green-700);
--semantic-bg-blue: var(--blue-25);
--semantic-bg-red: var(--red-25);
--semantic-bg-orange: var(--orange-25);
--semantic-bg-green: var(--green-25);
--neutral-100: #121212;
--neutral-200: #424242;
--neutral-300: #616161;
--neutral-400: #757575;
--neutral-500: #9e9e9e;
--neutral-600: #bdbdbd;
--neutral-700: #e0e0e0;
--neutral-800: #eeeeee;
--neutral-900: #f5f5f5;
}
/* @media (prefers-color-scheme: dark) {
:host {
--label-color: #fff;
--active-label-color: #000;
--menu-bg: #525252;
--active-bg: #5898ff;
--active-bg-dimmed: #5c5c5c;
}
} */
:host {
--ui-font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji',
'Segoe UI Emoji', 'Segoe UI Symbol';
--ui-font-size: 14px;
--ui-line-height: 1.5;
--ui-letter-spacing: 0.007em;
--mono-font-family: 'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono',
'Source Code Pro', Menlo, Monaco, 'Courier New', monospace;
--ui-layer-1: var(--neutral-100);
--ui-layer-2: var(--neutral-200);
--ui-layer-3: var(--neutral-300);
--ui-layer-4: var(--neutral-400);
--ui-layer-5: var(--neutral-500);
--ui-layer-6: var(--neutral-600);
--ui-border-color: var(--primary-color);
--ui-border-radius: 4px;
--ui-text: var(--neutral-900);
--ui-text-secondary: var(--neutral-700);
--ui-text-placeholder: var(--neutral-500);
--ui-text-muted: var(--neutral-300);
/** A field is a UI element in which a user can type data, for
* example an input or textarea element.
*/
--ui-field-bg: var(--neutral-100);
--ui-field-bg-hover: var(--neutral-100);
--ui-field-bg-disabled: var(--neutral-300);
--ui-field-bg-invalid: var(--red-100);
--ui-field-bg-focus: var(--neutral-100);
--ui-field-border: 0.5px solid var(--border-color);
--ui-field-border-hover: 0.5px solid var(--border-color);
--ui-field-border-disabled: 0.5px solid var(--border-color);
--ui-field-border-invalid: 0.5px solid var(--border-color);
--ui-field-border-focus: 0.5px solid var(--border-color);
--ui-menu-bg: var(--neutral-100);
--ui-menu-text: var(--neutral-900);
--ui-menu-bg-hover: var(--neutral-200);
--ui-menu-text-hover: var(--neutral-900);
/** The \`active\` state is used for the state of menu items
* when they are selected.
*/
--ui-menu-bg-active: var(--primary-color);
--ui-menu-text-active: var(--primary-color-reverse);
/** The \`active-muted\` set is used for the state of
* submenus when they are open.
*/
--ui-menu-bg-active-muted: var(--neutral-300);
--ui-menu-text-active-muted: var(--neutral-900);
/* --ui-menu-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.302),
0 2px 6px 2px rgba(60, 64, 67, 0.149); */
--ui-menu-shadow: 0 0 2px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.2);
--ui-menu-divider: 0.5px solid #c7c7c7;
/* var(--neutral-300); */
--ui-menu-z-index: 10000;
--page-bg: var(--neutral-100);
--content-bg: var(--neutral-200);
}
@media (prefers-color-scheme: dark) {
:host {
--ui-menu-bg: var(--neutral-200);
}
}
:host([theme='dark']) {
--ui-menu-bg: var(--neutral-200);
}
/* PingFang SC is a macOS font. Microsoft Yahei is a Windows font.
Noto is a Linux/Android font.
*/
:lang(zh-cn),
:lang(zh-sg),
:lang(zh-my),
:lang(zh) {
--ui-font-family: -apple-system, system-ui, 'PingFang SC', 'Hiragino Sans GB',
'Noto Sans CJK SC', 'Noto Sans SC', 'Noto Sans', 'Microsoft Yahei UI',
'Microsoft YaHei New', 'Microsoft Yahei', '\u5FAE\u8F6F\u96C5\u9ED1', SimSun, '\u5B8B\u4F53',
STXihei, '\u534E\u6587\u7EC6\u9ED1', sans-serif;
}
:lang(zh-tw),
:lang(zh-hk),
:lang(zh-mo) {
--ui-font-family: -apple-system, system-ui, 'Noto Sans',
'Microsoft JhengHei UI', 'Microsoft JhengHei', '\u5FAE\u8EDF\u6B63\u9ED1\u9AD4', '\u65B0\u7D30\u660E\u9AD4',
'PMingLiU', '\u7D30\u660E\u9AD4', 'MingLiU', sans-serif;
}
:lang(ja),
:lang(ja-jp),
:lang(ja-jp-mac) {
--ui-font-family: -apple-system, system-ui, 'Hiragino Sans',
'Hiragino Kaku Gothic ProN', 'Noto Sans CJK JP', 'Noto Sans JP', 'Noto Sans',
'\u6E38\u30B4\u30B7\u30C3\u30AF', '\u6E38\u30B4\u30B7\u30C3\u30AF\u4F53', YuGothic, 'Yu Gothic', '\u30E1\u30A4\u30EA\u30AA', Meiryo,
'\uFF2D\uFF33 \uFF30\u30B4\u30B7\u30C3\u30AF', 'MS PGothic', sans-serif;
}
:lang(ko),
:lang(ko-kr),
:lang(ko-kr-std) {
--ui-font-family: -apple-system, system-ui, 'Noto Sans CJK KR', 'Noto Sans KR',
'Noto Sans', 'Malgun Gothic', '\uB9D1\uC740 \uACE0\uB515', 'Apple SD Gothic Neo',
'\uC560\uD50C SD \uC0B0\uB3CC\uACE0\uB515 Neo', 'Apple SD \uC0B0\uB3CC\uACE0\uB515 Neo', '\uB3CB\uC6C0', Dotum, sans-serif;
}
:lang(ko-kr-apple) {
--ui-font-family: -apple-system, system-ui, 'Noto Sans CJK KR', 'Noto Sans KR',
'Noto Sans', 'Apple SD Gothic Neo', '\uC560\uD50C SD \uC0B0\uB3CC\uACE0\uB515 Neo',
'Apple SD \uC0B0\uB3CC\uACE0\uB515 Neo', '\uB3CB\uC6C0', Dotum, sans-serif;
}
:lang(zh-cn),
:lang(zh-sg),
:lang(zh-my),
:lang(zh),
:lang(zh-tw),
:lang(zh-hk),
:lang(zh-mo),
:lang(ja),
:lang(ja-jp),
:lang(ja-jp-mac),
:lang(ko),
:lang(ko-kr),
:lang(ko-kr-std),
:lang(ko-kr-apple) {
--ui-font-size: 1rem;
--ui-line-height: 1.7;
--ui-letter-spacing: 0;
}
:dir(rtl) {
--ui-line-height: auto;
--ui-letter-spacing: 0;
}
`,dh=`.ui-menu *,
.ui-menu ::before,
.ui-menu ::after {
box-sizing: border-box;
}
.ui-menu {
display: none;
color-scheme: light dark;
-webkit-user-select: none;
/* Important: Safari iOS doesn't respect user-select */
user-select: none;
cursor: default;
-webkit-touch-callout: none;
-webkit-tap-highlight-color: rgba(0 0 0 0);
--active-label-color: #fff;
/* ui-menu-text-active */
--label-color: #121212;
/* ui-menu-text */
--menu-bg: #e2e2e2;
/* ui-menu-background */
--active-bg: #5898ff;
/* ui-menu-background-active */
--active-bg-dimmed: #c5c5c5;
/* ui-menu-background-active-muted */
}
/** Use the :where pseudo selector to make the specificity of the
* selector 0, so that it can be overridden by the user.
*/
:where(.ui-menu-container) {
position: absolute;
overflow: visible;
width: auto;
height: auto;
z-index: 10000;
border-radius: 8px;
background: var(--ui-menu-bg);
box-shadow: var(--ui-menu-shadow);
list-style: none;
padding: 6px 0 6px 0;
margin: 0;
user-select: none;
cursor: default;
color: var(--ui-menu-text);
font-weight: normal;
font-style: normal;
text-shadow: none;
text-transform: none;
letter-spacing: 0;
outline: none;
opacity: 1;
/* The [popover] elements have a 1px solid black border. Ugh. */
border: none;
width: fit-content;
height: fit-content;
}
:where(.ui-menu-container > li) {
display: flex;
flex-flow: row;
align-items: center;
padding: 1px 7px 1px 7px;
margin-top: 0;
margin-left: 6px;
margin-right: 6px;
border-radius: 4px;
white-space: nowrap;
position: relative;
outline: none;
fill: currentColor;
user-select: none;
cursor: default;
text-align: left;
color: inherit;
font-family: var(--ui-font-family);
font-size: var(--ui-font-size);
line-height: var(--ui-line-height);
letter-spacing: var(--ui-letter-spacing);
}
:where(.ui-menu-container > li > .label) {
appearance: none;
background: none;
outline: none;
width: 100%;
margin: 0;
padding: 1px 2px 1px 1px;
overflow: visible;
border: 1px solid transparent;
white-space: nowrap;
text-align: start;
}
:where(.ui-menu-container > li:has(.heading)) {
margin-top: 0.5em;
}
:where(.ui-menu-container > li > .label.heading) {
font-weight: bold;
opacity: 0.4;
}
:where(.ui-menu-container > li.indent > .label) {
margin-inline-start: 12px;
}
:where(.ui-menu-container > li > .label.indent) {
margin-inline-start: 12px;
}
:where(.ui-menu-container > li[role='divider']) {
border-bottom: 1px solid var(--ui-menu-divider);
border-radius: 0;
padding: 0;
margin-left: 15px;
margin-right: 15px;
padding-top: 5px;
margin-bottom: 5px;
width: calc(100% - 30px);
/** 100% - (margin-left + margin-right) */
}
:where(.ui-menu-container > li[aria-disabled='true']) {
opacity: 0.5;
}
:where(.ui-menu-container > li.active) {
background: var(--ui-menu-bg-active);
background: -apple-system-control-accent;
color: var(--ui-menu-text-active);
}
:where(.ui-menu-container > li.active.is-submenu-open) {
background: var(--ui-menu-bg-active-muted);
color: inherit;
}
:where(.ui-menu-container > li[aria-haspopup='true'] > .label) {
padding-inline-end: 0;
}
:where(.ui-menu-container > li[aria-haspopup='true'].active::after) {
color: var(--ui-menu-text-active);
}
/** Keyboard shortcut */
:where(.ui-menu-container > li > kbd) {
font-family: var(--ui-font-family);
margin-inline-start: 12px;
opacity: 0.4;
}
:where(.ui-menu-container > li.active > kbd) {
opacity: 0.85;
}
.ui-trailing-chevron {
display: flex;
margin-inline-start: 24px;
width: 10px;
height: 10px;
margin-bottom: 4px;
}
.ui-trailing-chevron:dir(rtl) {
transform: scaleX(-1);
}
.ui-checkmark {
display: flex;
margin-inline-end: -11px;
margin-inline-start: -4px;
margin-top: 2px;
width: 16px;
height: 16px;
}
.ui-mixedmark {
display: flex;
margin-inline-end: -11px;
margin-inline-start: -4px;
margin-top: 2px;
width: 16px;
height: 16px;
}
`,eo;function Wl(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=Ya;break;case"mathfield":y=vf;break;case"environment-popover":y=yf;break;case"suggestion-popover":y=uh;break;case"keystroke-caption":y=uu;break;case"virtual-keyboard":y=ch;break;case"ui":y=Ec;break;case"menu":y=dh;break;default:debugger}return y}function cu(a){return eo||(eo={}),eo[a]||(eo[a]=new CSSStyleSheet,eo[a].replaceSync(Wl(a))),eo[a]}var ol;function As(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(Wl(a))),window.document.head.appendChild(b);return}if(ol||(ol={}),((y=ol[a])!=null?y:0)!==0)ol[a]+=1;else{const b=cu(a);document.adoptedStyleSheets=[...document.adoptedStyleSheets,b],ol[a]=1}}function x(a){if("adoptedStyleSheets"in document&&ol!=null&&ol[a]&&(ol[a]-=1,ol[a]<=0)){const y=eo[a];document.adoptedStyleSheets=document.adoptedStyleSheets.filter(b=>b!==y)}}var z=class Ap extends Bn{constructor(y){var b;super(pe(Se({},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 pe(Se({},super.toJson()),{accentChar:this.accent,svgAccent:this.svgAccent})}render(y){var b;const E=new Ma({parent:y,mathstyle:"cramp"},this.style),ee=(b=Bn.createBox(E,this.body))!=null?b:new fr("\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,el),he;if(this.svgAccent)he=Ps(this.svgAccent),ae=E.metrics.bigOpSpacing1-ae;else if(this.accent){const ye=new fr(this.accent,{fontFamily:"Main-Regular"});ye.italic=0;const we=this.accent===8407?" ML__accent-vec":"";he=new fr(new fr(ye),{classes:"ML__accent-body"+we})}he=new Ja({shift:0,children:[{box:new fr(ee)},-ae,{box:he,marginLeft:ee.left+2*re,classes:["ML__center"]}]});const me=new fr(he,{type:"lift"});return this.caret&&(me.caret=this.caret),this.bind(E,me.wrap(E)),this.attachSupsub(E,{base:me})}},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 fr(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)*os),ae}function ve(a,y,b,E,ee){var re,ae;const he=new Ma({parent:E,mathstyle:"textstyle"},ee==null?void 0:ee.style),me=new fr(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&&me.setTop((1-he.scalingFactor)*os),me}function Ce(a,y,b,E,ee){var re;let ae,he,me,ye;ae=me=ye=ie(a),he=null;let we="Size1-Regular";a==="\\vert"||a==="\\lvert"||a==="\\rvert"||a==="\\mvert"||a==="\\mid"?me=ae=ye=8739:a==="\\Vert"||a==="\\lVert"||a==="\\rVert"||a==="\\mVert"||a==="\\|"?me=ae=ye=8741:a==="\\uparrow"?me=ye=9168:a==="\\Uparrow"?me=ye=8214:a==="\\downarrow"?ae=me=9168:a==="\\Downarrow"?ae=me=8214:a==="\\updownarrow"?(ae=8593,me=9168,ye=8595):a==="\\Updownarrow"?(ae=8657,me=8214,ye=8659):a==="["||a==="\\lbrack"?(ae=9121,me=9122,ye=9123,we="Size4-Regular"):a==="]"||a==="\\rbrack"?(ae=9124,me=9125,ye=9126,we="Size4-Regular"):a==="\\lfloor"||a==="\u230A"?(me=ae=9122,ye=9123,we="Size4-Regular"):a==="\\lceil"||a==="\u2308"?(ae=9121,me=ye=9122,we="Size4-Regular"):a==="\\rfloor"||a==="\u230B"?(me=ae=9125,ye=9126,we="Size4-Regular"):a==="\\rceil"||a==="\u2309"?(ae=9124,me=ye=9125,we="Size4-Regular"):a==="("||a==="\\lparen"?(ae=9115,me=9116,ye=9117,we="Size4-Regular"):a===")"||a==="\\rparen"?(ae=9118,me=9119,ye=9120,we="Size4-Regular"):a==="\\{"||a==="\\lbrace"?(ae=9127,he=9128,ye=9129,me=9130,we="Size4-Regular"):a==="\\}"||a==="\\rbrace"?(ae=9131,he=9132,ye=9133,me=9130,we="Size4-Regular"):a==="\\lgroup"||a==="\u27EE"?(ae=9127,ye=9129,me=9130,we="Size4-Regular"):a==="\\rgroup"||a==="\u27EF"?(ae=9131,ye=9133,me=9130,we="Size4-Regular"):a==="\\lmoustache"||a==="\u23B0"?(ae=9127,ye=9133,me=9130,we="Size4-Regular"):a==="\\rmoustache"||a==="\u23B1"?(ae=9131,ye=9129,me=9130,we="Size4-Regular"):a==="\\surd"?(ae=57345,ye=9143,me=57344,we="Size4-Regular"):a==="\\ulcorner"?(ae=9484,me=ye=32):a==="\\urcorner"?(ae=9488,me=ye=32):a==="\\llcorner"?(ye=9492,me=ae=32):a==="\\lrcorner"&&(ae=9496,me=ae=32);const Re=tl(ae,we),Xe=Re.height+Re.depth,ct=tl(me,we),xt=ct.height+ct.depth,mn=tl(ye,we),cr=mn.height+mn.depth;let un=0,Zn=1;if(he!==null){const qo=tl(he,we);un=qo.height+qo.depth,Zn=2}const pr=Xe+cr+un,Yn=Math.max(0,Math.ceil((y-pr)/(Zn*xt))),$r=pr+Yn*Zn*xt;let ui=os;b&&(ui=ui*E.scalingFactor);const Xr=$r/2-ui,_a=.008,qa=[];qa.push({box:new fr(ye,{fontFamily:we})}),qa.push(-_a);const Mr=new fr(me,{fontFamily:we});if(he===null)for(let qo=0;qo<Yn;qo++)qa.push({box:Mr});else{for(let qo=0;qo<Yn;qo++)qa.push({box:Mr});qa.push(-_a),qa.push({box:new fr(he,{fontFamily:we})}),qa.push(-_a);for(let qo=0;qo<Yn;qo++)qa.push({box:Mr})}qa.push(-_a),qa.push({box:new fr(ae,{fontFamily:we})});let zs="";we==="Size1-Regular"?zs=" delim-size1":we==="Size4-Regular"&&(zs=" delim-size4");const Al=new Ja({bottom:Xr,children:qa},{classes:zs});return new fr(Al,pe(Se({},ee!=null?ee:{}),{classes:((re=ee==null?void 0:ee.classes)!=null?re:"")+" ML__delim-mult"}))}var De=new Set(["(",")","\\lparen","\\rparen","[","]","\\lbrack","\\rbrack","\\{","\\}","\\lbrace","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","\\surd","\u230A","\u230B","\u2308","\u2309"]),Ne=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"]),St=[0,1.2,1.8,2.4,3];function en(a,y,b,E){return a===void 0||a==="."?Hr(b,E.classes):(a==="<"||a==="\\lt"||a==="\u27E8"?a="\\langle":(a===">"||a==="\\gt"||a==="\u27E9")&&(a="\\rangle"),De.has(a)||ut.has(a)?ve(a,y,!1,b,E):Ne.has(a)?Ce(a,St[y],!1,b,E):(console.assert(!1,"Unknown delimiter '"+a+"'"),null))}var jt=[{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}],Rn=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"stack"}],Qn=[{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 yr(a){return a.type==="small"?"Main-Regular":a.type==="large"?"Size"+a.size+"-Regular":(console.assert(a.type==="stack"),"Size4-Regular")}function Ir(a,y,b,E){const ee={"-4":0,"-3":1,0:2}[E.mathstyle.sizeDelta];for(let re=ee;re<b.length&&b[re].type!=="stack";re++){const ae=tl(a,yr(b[re]));if(ae.defaultMetrics)return{type:"small",mathstyle:"scriptstyle"};let he=ae.height+ae.depth;if(b[re].type==="small"&&(b[re].mathstyle==="scriptscriptstyle"?he*=Math.max(pc[Math.max(1,E.size-2)],E.minFontScale):b[re].mathstyle==="scriptstyle"&&(he*=Math.max(pc[Math.max(1,E.size-1)],E.minFontScale))),he>y)return b[re]}return b[b.length-1]}function zr(a,y,b,E,ee,re){if(!y||y.length===0||y===".")return Hr(ee);y==="<"||y==="\\lt"?y="\\langle":(y===">"||y==="\\gt")&&(y="\\rangle");let ae;ut.has(y)?ae=jt:De.has(y)?ae=Qn:ae=Rn;const he=Ir(ie(y),b,ae,ee),me=new Ma({parent:ee,mathstyle:he.mathstyle},re==null?void 0:re.style);return he.type==="small"?ue(y,me,E,pe(Se({},re),{type:a})):he.type==="large"?ve(y,he.size,E,me,pe(Se({},re),{type:a})):(console.assert(he.type==="stack"),Ce(y,b,E,me,pe(Se({},re),{type:a})))}function Lr(a,y,b,E,ee,re){if(y===".")return Hr(ee,re==null?void 0:re.classes);const ae=os*ee.scalingFactor,he=901,me=5/Fl,ye=Math.max(b-ae,E+ae),we=Math.max(ye/500*he,2*ye-me);return zr(a,y,we,!0,ee,re)}function Hr(a,y){const b=new fr(null,{classes:" nulldelimiter "+(y!=null?y:""),type:"ignore"});return b.width=a.getRegisterAsEm("nulldelimiterspace"),b.wrap(new Ma({parent:a,mathstyle:"textstyle"}))}var vi=class Lp extends Bn{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{}"}},Si=["matrix","matrix*","pmatrix","pmatrix*","bmatrix","bmatrix*","Bmatrix","Bmatrix*","vmatrix","vmatrix*","Vmatrix","Vmatrix*"],ca=["cases","dcases","rcases"],to=["align","align*","aligned","gather","gathered","split"],$o=["array","subequations","eqnarray"];function bo(a){return $o.concat(to).concat(ca).concat(Si).includes(a)}function cs(a){return Si.includes(a)}function ds(a){return ca.includes(a)}function _o(a){return to.includes(a)}function fs(a,y,b){let E=0;for(const ye of b)"align"in ye&&(E+=1);let ee=0;const re=[];for(const ye of y){let we=0;for(ee=Math.max(ee,Math.min(ye.length,E));we<ye.length;){const Re=[],Xe=Math.min(ye.length,we+E);for(;we<Xe;){const ct=ye[we];ct.length===0?Re.push([new Bn({type:"first",mode:a.mode})]):ct[0].type!=="first"?Re.push([new Bn({type:"first",mode:a.mode}),...ct]):(console.assert(!ct.slice(1).some(xt=>xt.type==="first")),Re.push(ct)),we+=1}re.push(Re)}}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 ye of re){if(ye.length!==ee)for(let we=ye.length;we<ee;we++)ye.push([new Bn({type:"first",mode:a.mode}),new vi]);ae.push(ye)}let he=0,me=0;for(const ye of ae){me=0;for(const we of ye){for(const Re of we)Re.parent=a,Re.parentBranch=[he,me];me+=1}he+=1}return a.isDirty=!0,ae}var Ui=class Dp extends Bn{constructor(y,b,E,ee={}){var re;super({type:"array"}),this.environmentName=y,this.rowGaps=E,ee.mathstyleName&&(this.mathstyleName=ee.mathstyleName),ee.columns&&(ee.columns.length===0?this.colFormat=[{align:"l"}]:this.colFormat=ee.columns),this.colFormat||(this.colFormat=[{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"}]),this.array=fs(this,b,this.colFormat),ee.leftDelim&&(this.leftDelim=ee.leftDelim),ee.rightDelim&&(this.rightDelim=ee.rightDelim),ee.arraycolsep!==void 0&&(this.arraycolsep=ee.arraycolsep),this.colSeparationType=ee.colSeparationType,ee.arraystretch!==void 0&&(this.arraystretch=ee.arraystretch),this.minColumns=(re=ee.minColumns)!=null?re:1}static fromJson(y){return new Dp(y.environmentName,y.array,y.rowGaps,y)}toJson(){const y=pe(Se({},super.toJson()),{environmentName:this.environmentName,array:this.array.map(b=>b.map(E=>E.map(ee=>ee.toJson()))),rowGaps:this.rowGaps,columns:this.colFormat,colSeparationType:this.colSeparationType});return this.arraystretch!==void 0&&(y.arraystretch=this.arraystretch),this.arraycolsep!==void 0&&(y.arraycolsep=this.arraycolsep),this.leftDelim&&(y.leftDelim=this.leftDelim),this.rightDelim&&(y.rightDelim=this.rightDelim),y}branch(y){var b;if(_u(y))return(b=this.array[y[0]][y[1]])!=null?b:void 0}createBranch(y){var b;return _u(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(il(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 me=new Ma({parent:y,mathstyle:this.mathstyleName},this.style),ye=me.getRegisterAsEm("arrayrulewidth"),we=me.getRegisterAsEm("arraycolsep"),Re=me.getRegisterAsEm("doublerulesep"),Xe=(E=(b=this.arraystretch)!=null?b:me.getRegisterAsNumber("arraystretch"))!=null?E:1;let ct=typeof this.arraycolsep=="number"?this.arraycolsep:we;this.colSeparationType==="small"&&(ct=.2778*(new Ma({parent:y,mathstyle:"scriptstyle"}).scalingFactor/y.scalingFactor));const xt=Xe*hc,mn=.7*xt,cr=.3*xt;let un=0;const Zn=[];let pr=0;const Yn=this.array.length;for(let ro=0;ro<Yn;++ro){const Lo=this.array[ro];pr=Math.max(pr,Lo.length);const Qo=new Ma({parent:me,mathstyle:this.mathstyleName},this.style);let Ll=mn/Qo.scalingFactor,Dl=cr/Qo.scalingFactor;const Tl={cells:[],height:0,depth:0,pos:0};for(const ul of Lo){const e0=(ee=Bn.createBox(Qo,ul,{type:"ignore"}))!=null?ee:new fr(null,{type:"ignore"});Dl=Math.max(Dl,e0.depth),Ll=Math.max(Ll,e0.height),Tl.cells.push(e0)}let Il=(re=sd(this.rowGaps[ro]))!=null?re:0;Il>0&&(Il+=cr,Dl=Math.max(Dl,Il),Il=0),ro<Yn-1&&!cs(this.environmentName)&&this.environmentName!=="cases"&&this.environmentName!=="array"&&(Dl+=me.getRegisterAsEm("jot")),Tl.height=Ll,Tl.depth=Dl,un+=Ll,Tl.pos=un,un+=Dl+Il,Zn.push(Tl)}const $r=un/2+os,ui=[];for(let ro=0;ro<pr;ro++){const Lo=[];for(const Qo of Zn){const Ll=Qo.cells[ro];Ll.depth=Qo.depth,Ll.height=Qo.height,Lo.push({box:Ll,shift:Qo.pos-$r})}Lo.length>0&&ui.push(new Ja({individualShift:Lo}))}const Xr=[];let _a=!1,qa=!1,Mr=0,zs=!this.leftDelim;const{colFormat:Al}=this;for(const ro of Al){if("align"in ro&&Mr>=ui.length)break;if("align"in ro)_a?Xr.push(xo(2*ct)):(qa||zs)&&Xr.push(xo(ct)),Xr.push(new fr(ui[Mr],{classes:"col-align-"+ro.align})),Mr++,_a=!0,qa=!1,zs=!1;else if("gap"in ro){if(typeof ro.gap=="number")Xr.push(xo(ro.gap));else{const Lo=Co(y,Zn,$r,ro.gap);Lo&&Xr.push(Lo)}_a=!1,qa=!1,zs=!1}else if("separator"in ro){const Lo=new fr(null,{classes:"vertical-separator"});Lo.height=un,Lo.setStyle("height",un,"em"),Lo.setStyle("border-right",`${ye}em ${ro.separator} currentColor`),Lo.setStyle("vertical-align",-(un-$r),"em");let Qo=0;qa?Qo=Re-ye:_a&&(Qo=ct-ye),Lo.left=Qo,Xr.push(Lo),_a=!1,qa=!0,zs=!1}}_a&&!this.rightDelim&&Xr.push(xo(ct));const Xs=new fr(Xr,{classes:"mtable"});if((!this.leftDelim||this.leftDelim===".")&&(!this.rightDelim||this.rightDelim==="."))return this.caret&&(Xs.caret=this.caret),this.bind(y,Xs);const qo=Xs.height,Hs=Xs.depth,Es=this.bind(y,new fr([this.bind(y,Lr("open",(ae=this.leftDelim)!=null?ae:".",qo,Hs,me,{isSelected:this.isSelected})),Xs,this.bind(y,Lr("close",(he=this.rightDelim)!=null?he:".",qo,Hs,me,{isSelected:this.isSelected}))],{type:"ord"}));return Es?(Es.setStyle("display","inline-block"),this.caret&&(Es.caret=this.caret),this.bind(y,this.attachSupsub(y,{base:Es}))):null}_serialize(y){var b;const E=[];if(this.environmentName==="lines"?E.push("{\\displaylines"):E.push(`\\begin{${this.environmentName}}`),this.environmentName==="array"){if(E.push("{"),this.colFormat!==void 0)for(const ee of this.colFormat)"align"in ee&&typeof ee.align=="string"?E.push(ee.align):"separator"in ee&&ee.separator==="solid"?E.push("|"):"separator"in ee&&ee.separator==="dashed"&&E.push(":");E.push("}")}for(let ee=0;ee<this.array.length;ee++){for(let re=0;re<this.array[ee].length;re++)re>0&&E.push(" & "),E.push(Bn.serialize(this.array[ee][re],y));if(ee<this.array.length-1){const re=this.rowGaps[ee];re!=null&&re.dimension?E.push(`\\\\[${re.dimension} ${(b=re.unit)!=null?b:"pt"}] `):E.push("\\\\ ")}}return this.environmentName==="lines"?E.push("}"):E.push(`\\end{${this.environmentName}}`),ua(E)}getCell(y,b){return this.array[y][b]}setCell(y,b,E){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.array[y][b]!==void 0);for(const re of this.array[y][b])re.parent=void 0,re.parentBranch=void 0;let ee=E;(E.length===0||E[0].type!=="first")&&(ee=[new Bn({type:"first",mode:this.mode}),...E]),this.array[y][b]=ee;for(const re of ee)re.parent=this,re.parentBranch=[y,b];this.isDirty=!0}addRowBefore(y){console.assert(this.type==="array"&&Array.isArray(this.array));const b=[];for(let E=0;E<this.colCount;E++)b.push(So(this));this.array.splice(y,0,b);for(let E=y;E<this.rowCount;E++)for(let ee=0;ee<this.colCount;ee++){const re=this.array[E][ee];if(re)for(const ae of re)ae.parentBranch=[E,ee]}this.isDirty=!0}addRowAfter(y){console.assert(this.type==="array"&&Array.isArray(this.array));const b=[];for(let E=0;E<this.colCount;E++)b.push(So(this));this.array.splice(y+1,0,b);for(let E=y+1;E<this.rowCount;E++)for(let ee=0;ee<this.colCount;ee++){const re=this.array[E][ee];if(re)for(const ae of re)ae.parentBranch=[E,ee]}this.isDirty=!0}removeRow(y){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.rowCount>y);const b=this.array.splice(y,1);for(const E of b)for(const ee of E)if(ee)for(const re of ee)re.parent=void 0,re.parentBranch=void 0;for(let E=y;E<this.rowCount;E++)for(let ee=0;ee<this.colCount;ee++){const re=this.array[E][ee];if(re)for(const ae of re)ae.parentBranch=[E,ee]}this.isDirty=!0}addColumnBefore(y){console.assert(this.type==="array"&&Array.isArray(this.array));for(const b of this.array)b.splice(y,0,So(this));for(let b=0;b<this.rowCount;b++)for(let E=y;E<this.colCount;E++){const ee=this.array[b][E];if(ee)for(const re of ee)re.parentBranch=[b,E]}this.isDirty=!0}addColumnAfter(y){console.assert(this.type==="array"&&Array.isArray(this.array));for(const b of this.array)b.splice(y+1,0,So(this));for(let b=0;b<this.rowCount;b++)for(let E=y+1;E<this.colCount;E++){const ee=this.array[b][E];if(ee)for(const re of ee)re.parentBranch=[b,E]}this.isDirty=!0}addColumn(){this.addColumnAfter(this.colCount-1)}removeColumn(y){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.colCount>y);for(const b of this.array){const E=b.splice(y,1);for(const ee of E)if(ee)for(const re of ee)re.parent=void 0,re.parentBranch=void 0}for(let b=0;b<this.rowCount;b++)for(let E=y;E<this.colCount;E++){const ee=this.array[b][E];if(ee)for(const re of ee)re.parentBranch=[b,E]}this.isDirty=!0}get cells(){const y=[];for(const b of this.array)for(const E of b)E&&y.push(E.filter(ee=>ee.type!=="first"));return y}};function So(a){const y=new Bn({type:"first",mode:a.mode});y.parent=a;const b=new vi;return b.parent=a,[y,b]}function xo(a){const y=new fr(null,{classes:"arraycolsep"});return y.width=a,y}function Co(a,y,b,E){if(!E)return null;const ee=[];for(const re of y){const ae=Bn.createBox(a,E,{type:"ignore"});ae&&(ae.depth=re.depth,ae.height=re.height,ee.push({box:ae,shift:re.pos-b}))}return new Ja({individualShift:ee}).wrap(a)}var ko=class Tp extends Bn{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 Tp(y)}toJson(){return pe(Se({},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=Bn.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 me=new Ma({parent:y},this.style),ye=me.toEm((E=this.padding)!=null?E:{register:"fboxsep"}),we=new fr(null,{classes:"ML__box"});we.height=ae.height+ye,we.depth=ae.depth+ye,we.setStyle("box-sizing","border-box"),we.setStyle("position","absolute"),we.setStyle("top",-ye+.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=me.toColor(this.backgroundcolor))!=null?ee:"transparent"),this.framecolor&&we.setStyle("border",`${me.getRegisterAsEm("fboxrule",2)}em solid ${(re=me.toColor(this.framecolor))!=null?re:"black"}`),this.border&&we.setStyle("border",this.border);const Re=new fr([we,ae],{type:"lift"});return Re.setStyle("display","inline-block"),Re.setStyle("position","relative"),Re.setStyle("line-height",0),Re.height=ae.height+ye+(he>0?he:0),Re.depth=ae.depth+ye+(he<0?-he:0),Re.setStyle("padding-left",ye,"em"),Re.setStyle("padding-right",ye,"em"),Re.setStyle("height",Math.floor(100*(ae.height+ae.depth+2*ye+Math.abs(he)))/100,"em"),Re.setStyle("margin-top",-ye,"em"),Re.setStyle("top",Math.floor(100*(ae.depth-ae.height+2*ye-he))/100,"em"),Re.setStyle("vertical-align",Math.floor(100*(ae.depth+2*ye))/100,"em"),this.caret&&(Re.caret=this.caret),this.attachSupsub(y,{base:Re})}_serialize(y){return y.skipStyles?ua([this.bodyToLatex(y),this.supsubToLatex(y)]):super._serialize(y)}},$l=class Ip extends Bn{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 Ip(y.value,y)}toJson(){return super.toJson()}get computedStyle(){return{}}render(y){const b=new fr(this.value,{classes:"ML__composition",type:"composition"});return this.bind(y,b),this.caret&&(b.caret=this.caret),b}_serialize(y){return""}},ys=class _p extends Bn{constructor(y){super({type:"error",value:y,command:y,mode:"math"}),this.verbatimLatex=y}static fromJson(y){return new _p(y.command)}toJson(){return super.toJson()}render(y){const b=this.createBox(y,{classes:"ML__error"});return this.caret&&(b.caret=this.caret),b}},jo=class Bp extends Bn{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 Bp(y.body,y.mode,y.style)}render(y){const b=Bn.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=wr(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):`{${this.bodyToLatex(y)}}`}},$a=class Pp extends Bn{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"?ua(["\\left",(b=this.leftDelim)!=null?b:".",this.bodyToLatex(y),"\\right",ee]):this.variant==="mleft...mright"?ua(["\\mleft",(E=this.leftDelim)!=null?E:".",this.bodyToLatex(y),"\\mright",ee]):ua([!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 Ma({parent:y},this.style);console.assert(this.body!==void 0);const re=new Ma({parent:y,mathstyle:"textstyle"},this.style),ae=(b=Bn.createBox(ee,this.body,{type:"inner"}))!=null?b:new fr(null,{type:"inner"}),he=ae.height/re.scalingFactor,me=ae.depth/re.scalingFactor,ye=[];if(this.leftDelim&&ye.push(this.bind(re,Lr("open",this.leftDelim,he,me,re,{isSelected:this.isSelected,classes:"ML__open"+(this.containsCaret?" ML__contains-caret":""),mode:this.mode,style:this.style}))),ae&&(Ro(ae.children,this,ee,he,me),ye.push(ae)),this.rightDelim){let ct=this.containsCaret?" ML__contains-caret":"",xt=this.rightDelim;xt==="?"&&(ee.smartFence?(xt=this.matchingRightDelim(),ct+=" ML__smart-fence__close"):xt="."),ye.push(this.bind(re,Lr("close",xt,he,me,re,{isSelected:this.isSelected,classes:ct+" ML__close",mode:this.mode,style:this.style})))}let we=this.variant==="mleft...mright";const Re=this.leftSibling;Re&&(!we&&Re.isFunction&&(we=!0),!we&&Re.type==="subsup"&&((E=Re.leftSibling)!=null&&E.isFunction)&&(we=!0));const Xe=new fr(ye,{type:we?"close":"inner",classes:"left-right"});return Xe.setStyle("margin-top",`${-ae.depth}em`),Xe.setStyle("height",`${ae.height+ae.depth}em`),this.caret&&(Xe.caret=this.caret),this.bind(ee,Xe.wrap(ee))}};function Ro(a,y,b,E,ee){if(a)for(let re=0;re<a.length;re++){const ae=a[re];ae.type==="middle"?(a[re]=y.bind(b,Lr("inner",ae.value,E,ee,b,{isSelected:y.isSelected})),a[re].caret=ae.caret,a[re].isSelected=ae.isSelected,a[re].cssId=ae.cssId,a[re].htmlData=ae.htmlData,a[re].htmlStyle=ae.htmlStyle,a[re].attributes=ae.attributes,a[re].cssProperties=ae.cssProperties):ae.children&&Ro(ae.children,y,b,E,ee)}}var Mc=class Op extends Bn{constructor(y,b){var E;super({type:"macro",command:y,style:b.style}),this.body=b.body,b.captureSelection===void 0?b.args?this.captureSelection=!1:this.captureSelection=!0:this.captureSelection=b.captureSelection,this.macroArgs=b.args,this.expand=(E=b.expand)!=null?E:!1}static fromJson(y){return new Op(y.command,y)}toJson(){const y=super.toJson();return this.expand&&(y.expand=!0),this.captureSelection!==void 0&&(y.captureSelection=this.captureSelection),this.macroArgs&&(y.args=this.macroArgs),y}_serialize(y){var b;return y.expandMacro&&this.expand?this.bodyToLatex(y):this.command+((b=this.macroArgs)!=null?b:"")}render(y){const b=Bn.createBox(y,this.body);return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}},sl=class Np extends Bn{constructor(){super({type:"macro-argument"})}static fromJson(y){return new Np}toJson(){return super.toJson()}_serialize(y){return""}render(y){return null}},xl=class Rp extends Bn{constructor(y,b,E=!1,ee,re){var ae;super({type:"prompt",mode:(ae=re==null?void 0:re.mode)!=null?ae:"math",style:re==null?void 0:re.style,command:"\\placeholder"}),this.body=ee,this.correctness=b,this.placeholderId=y,this.locked=E,this.captureSelection=this.locked}static fromJson(y){return new Rp(y.placeholderId,y.correctness,y.locked,y.body,y)}toJson(){const y=super.toJson();return this.placeholderId&&(y.placeholderId=this.placeholderId),this.body||delete y.body,this.body&&(y.body=this.body.filter(b=>b.type!=="first").map(b=>b.toJson())),this.correctness&&(y.correctness=this.correctness),y.locked=this.locked,y}render(y){const b=new Ma({parent:y}),E=b.getRegisterAsEm("fboxsep"),ee=E,re=E,ae=Bn.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 fr(ae,{type:"ord"});he.setStyle("display","inline-block"),he.setStyle("height",ae.height+ae.depth,"em"),he.setStyle("vertical-align",-re,"em");let me="ML__prompt ";this.locked?me+=" ML__lockedPromptBox ":me+=" ML__editablePromptBox ",this.correctness==="correct"?me+=" ML__correctPromptBox ":this.correctness==="incorrect"&&(me+=" ML__incorrectPromptBox "),this.containsCaret&&(me+=" ML__focusedPromptBox ");const ye=new fr(null,{classes:me,attributes:{part:"prompt"}});ye.height=he.height+re,ye.depth=he.depth+re,ye.width=he.width+2*ee,ye.setStyle("box-sizing","border-box"),ye.setStyle("position","absolute"),ye.setStyle("height",he.height+he.depth+2*re,"em"),ee===0&&ye.setStyle("width","100%"),ee!==0&&(ye.setStyle("width",`calc(100% + ${2*ee}em)`),ye.setStyle("top",E,"em"),ye.setStyle("left",-ee,"em")),(!this.body||this.body.length===1)&&(ye.width=3*ee,ye.setStyle("width",`calc(100% + ${3*ee}em)`),ye.setStyle("left",-1.5*ee,"em"));let we="";this.correctness==="incorrect"&&(we+='<line x1="3%" y1="97%" x2="97%" y2="3%" stroke-width="0.5" stroke="var(--incorrect-color, var(--ML__incorrect-color))" stroke-linecap="round" />'),we&&(ye.svgOverlay=we);const Re=new fr([ye,he],{classes:"ML__prompt-atom"});return Re.setStyle("position","relative"),Re.setStyle("display","inline-block"),Re.setStyle("line-height",0),Re.height=he.height+re+.2,Re.depth=he.depth+re,Re.left=ee,Re.right=ee,Re.setStyle("height",he.height+re,"em"),Re.setStyle("top",he.depth-he.height,"em"),Re.setStyle("vertical-align",he.depth+re,"em"),Re.setStyle("margin-left",.5,"em"),Re.setStyle("margin-right",.5,"em"),this.caret&&(Re.caret=this.caret),this.bind(b,this.attachSupsub(y,{base:Re}))}_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]"),co(ee,E)}},Us=class Fp extends Bn{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 su)y[E]&&b.setChildren(y[E],E);return b}render(y){var b;const E=new Ma({parent:y,isPhantom:!0}),ee=this.leftSibling,re=(b=ee.render(E))!=null?b:new fr(null),ae=new fr(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 Bo(a){return a?!/^(<$$>|<$>|<space>|<{>|<}>|#[0-9\?]|\\.+)$/.test(a):!1}var Vl=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 Ma&&!(b!=null&&b.parseMode)&&!b.mathstyle?y:new Ma({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:Se({},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(Se({before:pl(this.tokens.slice(this.index,this.index+10)),after:pl(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 Se({},a.style);a=a.parent}return{}}set style(a){this.parsingContext.style=a}end(){return this.endCount++,this.index>=this.tokens.length||this.endCount>1e3}next(){this.index+=1}get(){return this.endCount=0,this.index<this.tokens.length?this.tokens[this.index++]:""}peek(){return this.tokens[this.index]}match(a){return this.tokens[this.index]===a?(this.index++,!0):!1}lastSubsupAtom(){let a;return this.mathlist.length>0&&(a=this.mathlist[this.mathlist.length-1],a.type==="subsup"||a.subsupPlacement!==void 0)||(a=new Us({style:this.style}),this.mathlist.push(a)),a}hasPattern(a){return a.test(this.tokens[this.index])}hasInfixCommand(){var a;const{index:y}=this;if(y<this.tokens.length&&this.tokens[y].startsWith("\\")){const b=wr(this.tokens[y],this.parseMode);return!b||b.definitionType==="symbol"||b.ifMode&&!b.ifMode.includes(this.parseMode)?!1:(a=b.infix)!=null?a:!1}return!1}matchColumnSeparator(){return!this.tabularMode||this.peek()!=="&"?!1:(this.index++,!0)}matchRowSeparator(){if(!this.tabularMode)return!1;const a=this.peek();return a!=="\\\\"&&a!=="\\cr"&&a!=="\\tabularnewline"?!1:(this.index++,!0)}placeholder(){var a;const y=(a=this.args)==null?void 0:a.call(this,"?");return y?Xo(y,{parseMode:this.parseMode,mathstyle:"textstyle"}):[new vi({mode:this.parseMode,style:this.style})]}skipWhitespace(){for(;this.match("<space>"););}skipUntilToken(a){let y=this.tokens[this.index];for(;y&&y!==a;)y=this.tokens[++this.index];y===a&&this.index++}skipFiller(){for(;this.match("\\relax")||this.match("<space>"););}matchKeyword(a){const y=this.index;let b=this.end(),E="";for(;!b;){const re=this.get();Bo(re)?(E+=re,b=this.end()||E.length>=a.length):b=!0}const ee=a.toUpperCase()===E.toUpperCase();return ee||(this.index=y),ee}scanString(){let a="";for(;!this.end();){const y=this.peek();if(y==="]")return a;if(y==="<space>")a+=" ";else if(y.startsWith("\\"))this.onError({code:"unexpected-command-in-string"}),a+=y.substring(1);else if(Bo(y))a+=y;else return a;this.next()}return a}scanBalancedString(){let a="",y=this.end(),b=1;for(;!y;){const E=this.get();E==="<space>"?a+=" ":E==="<{>"?(a+="{",b+=1):E==="<}>"?(b-=1,b>0?a+="}":this.index-=1):E==="<$>"?a+="$":E==="<$$>"?a+="$$":a+=E,y=b===0||this.end()}return a}scanLiteralGroup(){var a;if(!this.match("<{>"))return"";let y="",b=1;for(;b>0&&!this.end();){const E=this.get();E==="<}>"?(b-=1,b>0&&(y+="}")):E==="<{>"?(b+=1,y+="{"):(/\\[a-zA-Z]+$/.test(y)&&/^[a-zA-Z]/.test(E)&&(y+=" "),y+=(a={"<space>":" ","<$$>":"$$","<$>":"$"}[E])!=null?a:E)}return y}scanNumber(a=!0){var y,b;let E=!1,ee=this.peek();for(;ee==="<space>"||ee==="+"||ee==="-";)this.get(),ee==="-"&&(E=!E),ee=this.peek();a=!!a;let re=10,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 me=a?Number.parseInt(he,re):Number.parseFloat(he);return Number.isNaN(me)?null:{number:E?-me:me,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()||!Bo(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=Et(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 me=this.scanArgument(he.type);me||this.onError({code:"missing-argument",arg:a}),b.push(me)}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=wr(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 jo(y,this.parseMode,this.style);return b.verbatimLatex=pl(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 $a("",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(!Bo(a)&&!a.startsWith("\\"))return null;this.next();const y=wr(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 ys("\\right");if(this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),new ys("\\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 ys(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 $a(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 Bn({type:"mord",command:"\\doubleprime",mode:"math",value:"\u2032\u2032"}),"superscript"):y.addChild(new Bn({type:"mord",command:"\\prime",mode:"math",value:"\u2032"}),"superscript"):(this.match("^")||this.match("_"))&&y.addChildren(at(this.scanArgument("expression")),a==="_"?"subscript":"superscript"),a=this.peek();return!0}parseLimits(){if(this.parseMode!=="math")return!1;const a=this.match("\\limits"),y=!a&&this.match("\\nolimits"),b=!y&&!a&&this.match("\\displaylimits");if(!a&&!y&&!b)return!1;const E=this.mathlist.length>0?this.mathlist[this.mathlist.length-1]:null;return E===null?!1:(E.explicitSubsupPlacement=!0,a&&(E.subsupPlacement="over-under"),y&&(E.subsupPlacement="adjacent"),b&&(E.subsupPlacement="auto"),!0)}scanArguments(a){if(!(a!=null&&a.params))return[void 0,[]];let y;const b=[];let E=a.infix?2:0;for(;E<a.params.length;){const ee=a.params[E];ee.type==="rest"?b.push(this.scan(re=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline","\\right"].includes(re))):ee.isOptional?b.push(this.scanOptionalArgument(ee.type)):ee.type.endsWith("*")?y=ee.type.slice(0,-1):b.push(this.scanArgument(ee.type)),E+=1}return[y,b]}scanSymbolOrLiteral(){const a=this.peek();if(!a)return null;this.next();let y;if(Bo(a)){const b=Ss.createAtom(this.parseMode,a,Se({},this.style));return b?[b]:null}if(y=this.scanMacro(a),y)return[y];if(a.startsWith("\\")){const b=wr(a,this.parseMode);if(!b)return this.onError({code:"unknown-command",arg:a}),[new ys(a)];if(b.definitionType==="symbol"){const E=Se({},this.style);b.variant&&(E.variant=b.variant),y=new Bn({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 ys(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"),me=this.scanOptionalArgument("math"),ye=Bn.serialize(me,{defaultMode:"math"});let we=[],Re;!Re&&ye==="correct"?Re="correct":!Re&&ye==="incorrect"?Re="incorrect":ye!==""&&(we=me);const Xe=this.scanOptionalArgument("string")==="locked",ct=this.scanArgument("auto");let xt;return ct&&Array.isArray(ct)&&ct.length>0?xt=ct:ct&&typeof ct=="object"&&"group"in ct?xt=ct.group:xt=we,he?[new xl(he,Re,Xe,xt!=null?xt:we,{mode:this.parseMode,style:this.style})]:[new vi({mode:this.parseMode,style:this.style})]}if(a==="\\renewcommand"||a==="\\newcommand"||a==="\\providecommand"||a==="\\def"){const he=this.index,me=this.scanLiteralGroup()||this.next();if(!me)return null;if(this.context.registers[me.substring(1)]){const ye=this.scanArgument("string");ye!==null&&(this.context.registers[me.substring(1)]=ye);const we=ua([a,pl(this.tokens.slice(he,this.index))]);return[new Bn({type:"text",value:"",verbatimLatex:we})]}}let ee=this.scanMacro(a);if(ee)return[ee];const re=wr(a,this.parseMode);if(!re)return this.parseMode==="text"?(/[a-zA-Z]/.test((y=this.peek())!=null?y:"")&&(a+=" "),[...a].map(he=>new Bn({type:"text",value:he,mode:"text",style:this.style}))):(this.onError({code:"unknown-command",arg:a}),[new ys(a)]);const ae=this.index;if(re.definitionType==="symbol"){const he=Se({},this.style);re.variant&&(he.variant=re.variant),ee=new Bn({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 me,ye=[];if(re.parse?ye=re.parse(this):[me,ye]=this.scanArguments(re),this.parseMode=he,re.applyMode&&!re.applyStyle&&!re.createAtom)return at(ye[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:ye,style:this.style,mode:this.parseMode}),me&&(ee.body=at(this.scanArgument(me)));else if(typeof re.applyStyle=="function"){const we=Se(Se({},this.style),re.applyStyle(a,ye,this.context)),Re=this.parseMode;if(re.applyMode&&(this.parseMode=re.applyMode),me){const Xe=this.style;this.style=we;const ct=this.scanArgument(me);return this.style=Xe,this.parseMode=Re,at(ct)}this.style=we}else ee=new Bn({type:"mord",command:(b=re.command)!=null?b:a,style:Se({},this.style),value:a,mode:(E=re.applyMode)!=null?E:this.parseMode})}if(!ee)return null;if(ee instanceof Bn&&ee.verbatimLatex===void 0&&!/^\\(llap|rlap|class|cssId|htmlData)$/.test(a)){const he=ua([a,pl(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(Bo(a)){const y=Ss.createAtom(this.parseMode,a,Se({},this.style));if(!y)return null;if(y.isFunction&&this.smartFence){const b=this.scanSmartFence();if(b)return[y,b]}return[y]}return a.startsWith("\\")?this.scanSymbolOrCommand(a):a==="<space>"?this.parseMode==="text"?[new al(" "," ",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 me=this.index;this.scanExpression(),he=pl(this.tokens.slice(me,this.index))}re[ae]=he}return new Mc(a,{expand:b.expand,captureSelection:b.captureSelection,args:E===this.index?null:pl(this.tokens.slice(E,this.index)),style:this.parsingContext.style,body:Xo(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 Xo(a,y){var b,E,ee,re;const ae=(b=y==null?void 0:y.args)!=null?b:void 0,he=new Vl(nl(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:{}}),me=[];for(;!he.end();)me.push(...he.scan(()=>!1));return me}function t0(a,y){var b;const E=new Vl(nl(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 Bn{constructor(y,b){super({type:"chem"},{command:y,mode:"math"});const E=vo.go(sr.go(b,y==="\\pu"?"pu":"ce"),!1);this.body=Xo(E),this._verbatimLatex=y+"{"+b+"}",this.arg=b,this.captureSelection=!0}static fromJson(y){return new zp(y.command,y.arg)}set verbatimLatex(y){}get verbatimLatex(){return this._verbatimLatex}toJson(){return pe(Se({},super.toJson()),{arg:this.arg})}render(y){const b=Bn.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}};_t(["ce","pu"],"{chemformula:balanced-string}",{createAtom:a=>{var y;return new n0(a.command,(y=a.args[0])!=null?y:"")}});var sr={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=sr.stateMachines[y],me=he.transitions[b]||he.transitions["*"];e:for(var ye=0;ye<me.length;ye++){var we=sr.patterns.match_(me[ye].pattern,a);if(we){for(var Re=me[ye].task,Xe=0;Xe<Re.action_.length;Xe++){var ct;if(he.actions[Re.action_[Xe].type_])ct=he.actions[Re.action_[Xe].type_](E,we.match_,Re.action_[Xe].option);else if(sr.actions[Re.action_[Xe].type_])ct=sr.actions[Re.action_[Xe].type_](E,we.match_,Re.action_[Xe].option);else throw["MhchemBugA","mhchem bug A. Please report. ("+Re.action_[Xe].type_+")"];sr.concatArray(ae,ct)}if(b=Re.nextState||b,a.length>0){if(Re.revisit||(a=we.remainder),!Re.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<y.length;b++)a.push(y[b]);else a.push(y)},patterns:{patterns:{empty:/^$/,else:/^./,else2:/^./,space:/^\s/,"space A":/^\s(?=[A-Z\\$])/,space$:/^\s$/,"a-z":/^[a-z]/,x:/^x/,x$:/^x$/,i$:/^i$/,letters:/^(?:[a-zA-Z\u03B1-\u03C9\u0391-\u03A9?@]|(?:\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))))+/,"\\greek":/^\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))/,"one lowercase latin letter $":/^(?:([a-z])(?:$|[^a-zA-Z]))$/,"$one lowercase latin letter$ $":/^\$(?:([a-z])(?:$|[^a-zA-Z]))\$$/,"one lowercase greek letter $":/^(?:\$?[\u03B1-\u03C9]\$?|\$?\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega)\s*\$?)(?:\s+|\{\}|(?![a-zA-Z]))$/,digits:/^[0-9]+/,"-9.,9":/^[+\-]?(?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))/,"-9.,9 no missing 0":/^[+\-]?[0-9]+(?:[.,][0-9]+)?/,"(-)(9.,9)(e)(99)":function(a){var y=a.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))?(\((?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))\))?(?:(?:([eE])|\s*(\*|x|\\times|\u00D7)\s*10\^)([+\-]?[0-9]+|\{[+\-]?[0-9]+\}))?/);return y&&y[0]?{match_:y.slice(1),remainder:a.substr(y[0].length)}:null},"(-)(9)^(-9)":function(a){var y=a.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+)?)\^([+\-]?[0-9]+|\{[+\-]?[0-9]+\})/);return y&&y[0]?{match_:y.slice(1),remainder:a.substr(y[0].length)}:null},"state of aggregation $":function(a){var y=sr.patterns.findObserveGroups(a,"",/^\([a-z]{1,3}(?=[\),])/,")","");if(y&&y.remainder.match(/^($|[\s,;\)\]\}])/))return y;var b=a.match(/^(?:\((?:\\ca\s?)?\$[amothc]\$\))/);return b?{match_:b[0],remainder:a.substr(b[0].length)}:null},"_{(state of aggregation)}$":/^_\{(\([a-z]{1,3}\))\}/,"{[(":/^(?:\\\{|\[|\()/,")]}":/^(?:\)|\]|\\\})/,", ":/^[,;]\s*/,",":/^[,;]/,".":/^[.]/,". ":/^([.\u22C5\u00B7\u2022])\s*/,"...":/^\.\.\.(?=$|[^.])/,"* ":/^([*])\s*/,"^{(...)}":function(a){return sr.patterns.findObserveGroups(a,"^{","","","}")},"^($...$)":function(a){return sr.patterns.findObserveGroups(a,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(a){return sr.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(a){return sr.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(a){return sr.patterns.findObserveGroups(a,"_{","","","}")},"_($...$)":function(a){return sr.patterns.findObserveGroups(a,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(a){return sr.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(a){return sr.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}":/^\{\}/,"{...}":function(a){return sr.patterns.findObserveGroups(a,"","{","}","")},"{(...)}":function(a){return sr.patterns.findObserveGroups(a,"{","","","}")},"$...$":function(a){return sr.patterns.findObserveGroups(a,"","$","$","")},"${(...)}$":function(a){return sr.patterns.findObserveGroups(a,"${","","","}$")},"$(...)$":function(a){return sr.patterns.findObserveGroups(a,"$","","","$")},"=<>":/^[=<>]/,"#":/^[#\u2261]/,"+":/^\+/,"-$":/^-(?=[\s_},;\]/]|$|\([a-z]+\))/,"-9":/^-(?=[0-9])/,"- orbital overlap":/^-(?=(?:[spd]|sp)(?:$|[\s,;\)\]\}]))/,"-":/^-/,"pm-operator":/^(?:\\pm|\$\\pm\$|\+-|\+\/-)/,operator:/^(?:\+|(?:[\-=<>]|<<|>>|\\approx|\$\\approx\$)(?=\s|$|-?[0-9]))/,arrowUpDown:/^(?:v|\(v\)|\^|\(\^\))(?=$|[\s,;\)\]\}])/,"\\bond{(...)}":function(a){return sr.patterns.findObserveGroups(a,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(a){return sr.patterns.findObserveGroups(a,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(a){return sr.patterns.findObserveGroups(a,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(a){return sr.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 sr.patterns.findObserveGroups(a,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(a){return sr.patterns.findObserveGroups(a,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(a){return sr.patterns.findObserveGroups(a,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(a){return sr.patterns.findObserveGroups(a,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(a){return sr.patterns.findObserveGroups(a,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(a){return sr.patterns.findObserveGroups(a,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(a){return sr.patterns.findObserveGroups(a,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(a){return sr.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=sr.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,me,ye){var we=function(un,Zn){if(typeof Zn=="string")return un.indexOf(Zn)!==0?null:Zn;var pr=un.match(Zn);return pr?pr[0]:null},Re=function(un,Zn,pr){for(var Yn=0;Zn<un.length;){var $r=un.charAt(Zn),ui=we(un.substr(Zn),pr);if(ui!==null&&Yn===0)return{endMatchBegin:Zn,endMatchEnd:Zn+ui.length};if($r==="{")Yn++;else if($r==="}"){if(Yn===0)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];Yn--}Zn++}return Yn>0,null},Xe=we(a,y);if(Xe===null||(a=a.substr(Xe.length),Xe=we(a,b),Xe===null))return null;var ct=Re(a,Xe.length,E||ee);if(ct===null)return null;var xt=a.substring(0,E?ct.endMatchEnd:ct.endMatchBegin);if(re||ae){var mn=this.findObserveGroups(a.substr(ct.endMatchEnd),re,ae,he,me);if(mn===null)return null;var cr=[xt,mn.match_];return{match_:ye?cr.join(""):cr,remainder:mn.remainder}}else return{match_:xt,remainder:a.substr(ct.endMatchEnd)}},match_:function(a,y){var b=sr.patterns.patterns[a];if(b===void 0)throw["MhchemBugP","mhchem bug P. Please report. ("+a+")"];if(typeof b=="function")return sr.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 sr.go(y,"text")},"{text}":function(a,y){var b=["{"];return sr.concatArray(b,sr.go(y,"text")),b.push("}"),b},"tex-math":function(a,y){return sr.go(y,"tex-math")},"tex-math tight":function(a,y){return sr.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 sr.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 sr.go(y,"9,9")}},createTransitions:function(a){var y,b,E,ee,re={};for(y in a)for(b in a[y])for(E=b.split("|"),a[y][b].stateArray=E,ee=0;ee<E.length;ee++)re[E[ee]]=[];for(y in a)for(b in a[y])for(E=a[y][b].stateArray||[],ee=0;ee<E.length;ee++){var ae=a[y][b];if(ae.action_){ae.action_=[].concat(ae.action_);for(var he=0;he<ae.action_.length;he++)typeof ae.action_[he]=="string"&&(ae.action_[he]={type_:ae.action_[he]})}else ae.action_=[];for(var me=y.split("|"),ye=0;ye<me.length;ye++)if(E[ee]==="*")for(var we in re)re[we].push({pattern:me[ye],task:ae});else re[E[ee]].push({pattern:me[ye],task:ae})}return re},stateMachines:{}};sr.stateMachines={ce:{transitions:sr.createTransitions({empty:{"*":{action_:"output"}},else:{"0|1|2":{action_:"beginsWithBond=false",revisit:!0,toContinue:!0}},oxidation$:{0:{action_:"oxidation-output"}},CMT:{r:{action_:"rdt=",nextState:"rt"},rd:{action_:"rqt=",nextState:"rdt"}},arrowUpDown:{"0|1|2|as":{action_:["sb=false","output","operator"],nextState:"1"}},uprightEntities:{"0|1|2":{action_:["o=","output"],nextState:"1"}},orbital:{"0|1|2|3":{action_:"o=",nextState:"o"}},"->":{"0|1|2|3":{action_:"r=",nextState:"r"},"a|as":{action_:["output","r="],nextState:"r"},"*":{action_:["output","r="],nextState:"r"}},"+":{o:{action_:"d= kv",nextState:"d"},"d|D":{action_:"d=",nextState:"d"},q:{action_:"d=",nextState:"qd"},"qd|qD":{action_:"d=",nextState:"qd"},dq:{action_:["output","d="],nextState:"d"},3:{action_:["sb=false","output","operator"],nextState:"0"}},amount:{"0|2":{action_:"a=",nextState:"a"}},"pm-operator":{"0|1|2|a|as":{action_:["sb=false","output",{type_:"operator",option:"\\pm"}],nextState:"0"}},operator:{"0|1|2|a|as":{action_:["sb=false","output","operator"],nextState:"0"}},"-$":{"o|q":{action_:["charge or bond","output"],nextState:"qd"},d:{action_:"d=",nextState:"d"},D:{action_:["output",{type_:"bond",option:"-"}],nextState:"3"},q:{action_:"d=",nextState:"qd"},qd:{action_:"d=",nextState:"qd"},"qD|dq":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},"-9":{"3|o":{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"3"}},"- orbital overlap":{o:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},d:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"}},"-":{"0|1|2":{action_:[{type_:"output",option:1},"beginsWithBond=true",{type_:"bond",option:"-"}],nextState:"3"},3:{action_:{type_:"bond",option:"-"}},a:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},as:{action_:[{type_:"output",option:2},{type_:"bond",option:"-"}],nextState:"3"},b:{action_:"b="},o:{action_:{type_:"- after o/d",option:!1},nextState:"2"},q:{action_:{type_:"- after o/d",option:!1},nextState:"2"},"d|qd|dq":{action_:{type_:"- after o/d",option:!0},nextState:"2"},"D|qD|p":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},amount2:{"1|3":{action_:"a=",nextState:"a"}},letters:{"0|1|2|3|a|as|b|p|bp|o":{action_:"o=",nextState:"o"},"q|dq":{action_:["output","o="],nextState:"o"},"d|D|qd|qD":{action_:"o after d",nextState:"o"}},digits:{o:{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},q:{action_:["output","o="],nextState:"o"},a:{action_:"o=",nextState:"o"}},"space A":{"b|p|bp":{}},space:{a:{nextState:"as"},0:{action_:"sb=false"},"1|2":{action_:"sb=true"},"r|rt|rd|rdt|rdq":{action_:"output",nextState:"0"},"*":{action_:["output","sb=true"],nextState:"1"}},"1st-level escape":{"1|2":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}]},"*":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}],nextState:"0"}},"[(...)]":{"r|rt":{action_:"rd=",nextState:"rd"},"rd|rdt":{action_:"rq=",nextState:"rdq"}},"...":{"o|d|D|dq|qd|qD":{action_:["output",{type_:"bond",option:"..."}],nextState:"3"},"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"ellipsis"}],nextState:"1"}},". |* ":{"*":{action_:["output",{type_:"insert",option:"addition compound"}],nextState:"1"}},"state of aggregation $":{"*":{action_:["output","state of aggregation"],nextState:"1"}},"{[(":{"a|as|o":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"0|1|2|3":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"*":{action_:["output","o=","output","parenthesisLevel++"],nextState:"2"}},")]}":{"0|1|2|3|b|p|bp|o":{action_:["o=","parenthesisLevel--"],nextState:"o"},"a|as|d|D|q|qd|qD|dq":{action_:["output","o=","parenthesisLevel--"],nextState:"o"}},", ":{"*":{action_:["output","comma"],nextState:"0"}},"^_":{"*":{}},"^{(...)}|^($...$)":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"D"},q:{action_:"d=",nextState:"qD"},"d|D|qd|qD|dq":{action_:["output","d="],nextState:"D"}},"^a|^\\x{}{}|^\\x{}|^\\x|'":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"d"},q:{action_:"d=",nextState:"qd"},"d|qd|D|qD":{action_:"d="},dq:{action_:["output","d="],nextState:"d"}},"_{(state of aggregation)}$":{"d|D|q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"_{(...)}|_($...$)|_9|_\\x{}{}|_\\x{}|_\\x":{"0|1|2|as":{action_:"p=",nextState:"p"},b:{action_:"p=",nextState:"bp"},"3|o":{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},"q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"=<>":{"0|1|2|3|a|as|o|q|d|D|qd|qD|dq":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"#":{"0|1|2|3|a|as|o":{action_:[{type_:"output",option:2},{type_:"bond",option:"#"}],nextState:"3"}},"{}":{"*":{action_:{type_:"output",option:1},nextState:"1"}},"{...}":{"0|1|2|3|a|as|b|p|bp":{action_:"o=",nextState:"o"},"o|d|D|q|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"$...$":{a:{action_:"a="},"0|1|2|3|as|b|p|bp|o":{action_:"o=",nextState:"o"},"as|o":{action_:"o="},"q|d|D|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"\\bond{(...)}":{"*":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"\\frac{(...)}":{"*":{action_:[{type_:"output",option:1},"frac-output"],nextState:"3"}},"\\overset{(...)}":{"*":{action_:[{type_:"output",option:2},"overset-output"],nextState:"3"}},"\\underset{(...)}":{"*":{action_:[{type_:"output",option:2},"underset-output"],nextState:"3"}},"\\underbrace{(...)}":{"*":{action_:[{type_:"output",option:2},"underbrace-output"],nextState:"3"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:[{type_:"output",option:2},"color-output"],nextState:"3"}},"\\color{(...)}0":{"*":{action_:[{type_:"output",option:2},"color0-output"]}},"\\ce{(...)}":{"*":{action_:[{type_:"output",option:2},"ce"],nextState:"3"}},"\\,":{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"1"}},"\\x{}{}|\\x{}|\\x":{"0|1|2|3|a|as|b|p|bp|o|c0":{action_:["o=","output"],nextState:"3"},"*":{action_:["output","o=","output"],nextState:"3"}},others:{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"3"}},else2:{a:{action_:"a to o",nextState:"o",revisit:!0},as:{action_:["output","sb=true"],nextState:"1",revisit:!0},"r|rt|rd|rdt|rdq":{action_:["output"],nextState:"0",revisit:!0},"*":{action_:["output","copy"],nextState:"3"}}}),actions:{"o after d":function(a,y){var b;if((a.d||"").match(/^[0-9]+$/)){var E=a.d;a.d=void 0,b=this.output(a),a.b=E}else b=this.output(a);return sr.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 sr.concatArray(b,this.output(a)),sr.concatArray(b,sr.actions.bond(a,y,"-")),b}else a.d=y},"- after o/d":function(a,y,b){var E=sr.patterns.match_("orbital",a.o||""),ee=sr.patterns.match_("one lowercase greek letter $",a.o||""),re=sr.patterns.match_("one lowercase latin letter $",a.o||""),ae=sr.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 me=[];return he?(sr.concatArray(me,this.output(a)),me.push({type_:"hyphen"})):(E=sr.patterns.match_("digits",a.d||""),b&&E&&E.remainder===""?(sr.concatArray(me,sr.actions["d="](a,y)),sr.concatArray(me,this.output(a))):(sr.concatArray(me,this.output(a)),sr.concatArray(me,sr.actions.bond(a,y,"-")))),me},"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:sr.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"&&sr.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:sr.go(a.a,"a"),b:sr.go(a.b,"bd"),p:sr.go(a.p,"pq"),o:sr.go(a.o,"o"),q:sr.go(a.q,"pq"),d:sr.go(a.d,a.dType==="oxidation"?"oxidation":"bd"),dType:a.dType}));else{var ee;a.rdt==="M"?ee=sr.go(a.rd,"tex-math"):a.rdt==="T"?ee=[{type_:"text",p1:a.rd||""}]:ee=sr.go(a.rd);var re;a.rqt==="M"?re=sr.go(a.rq,"tex-math"):a.rqt==="T"?re=[{type_:"text",p1:a.rq||""}]:re=sr.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 sr.concatArray(b,sr.go(y,"oxidation")),b.push("}"),b},"frac-output":function(a,y){return{type_:"frac-ce",p1:sr.go(y[0]),p2:sr.go(y[1])}},"overset-output":function(a,y){return{type_:"overset",p1:sr.go(y[0]),p2:sr.go(y[1])}},"underset-output":function(a,y){return{type_:"underset",p1:sr.go(y[0]),p2:sr.go(y[1])}},"underbrace-output":function(a,y){return{type_:"underbrace",p1:sr.go(y[0]),p2:sr.go(y[1])}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:sr.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:sr.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:sr.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:sr.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:sr.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:sr.go(y,"o")}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:sr.go(y[1],"pq")}}}},bd:{transitions:sr.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:sr.go(y[1],"bd")}}}},oxidation:{transitions:sr.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:sr.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:sr.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:sr.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:sr.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]&&(sr.concatArray(b,sr.go(y[1],"pu-9,9")),y[2]&&(y[2].match(/[,.]/)?sr.concatArray(b,sr.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]),sr.concatArray(b,sr.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=sr.patterns.match_("{(...)}",a.d||"");b&&b.remainder===""&&(a.d=b.match_);var E=sr.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:sr.go(a.d,"pu"),q:sr.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_:"/"}),sr.concatArray(y,ee.q))}else y=sr.go(a.d,"pu-2");for(var re in a)delete a[re];return y}}},"pu-2":{transitions:sr.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=sr.patterns.match_("{(...)}",a.rm||"");b&&b.remainder===""?y=sr.go(b.match_,"pu"):y={type_:"rm",p1:a.rm}}for(var E in a)delete a[E];return y}}},"pu-9,9":{transitions:sr.createTransitions({empty:{0:{action_:"output-0"},o:{action_:"output-o"}},",":{0:{action_:["output-0","comma"],nextState:"o"}},".":{0:{action_:["output-0","copy"],nextState:"o"}},else:{"*":{action_:"text="}}}),actions:{comma:function(){return{type_:"commaDecimal"}},"output-0":function(a){var y=[];if(a.text_=a.text_||"",a.text_.length>4){var b=a.text_.length%3;b===0&&(b=3);for(var E=a.text_.length-3;E>0;E-=3)y.push(a.text_.substr(E,3)),y.push({type_:"1000 separator"});y.push(a.text_.substr(0,b)),y.reverse()}else y.push(a.text_);for(var ee in a)delete a[ee];return y},"output-o":function(a){var y=[];if(a.text_=a.text_||"",a.text_.length>4){for(var b=a.text_.length-3,E=0;E<b;E+=3)y.push(a.text_.substr(E,3)),y.push({type_:"1000 separator"});y.push(a.text_.substr(E))}else y.push(a.text_);for(var ee in a)delete a[ee];return y}}}};var vo={go:function(a,y){if(!a)return"";for(var b="",E=!1,ee=0;ee<a.length;ee++){var re=a[ee];typeof re=="string"?b+=re:(b+=vo._go2(re),re.type_==="1st-level escape"&&(E=!0))}return!y&&!E&&b&&(b="{"+b+"}"),b},_goInner:function(a){return a&&vo.go(a,!0)},_go2:function(a){var y;switch(a.type_){case"chemfive":y="";var b={a:vo._goInner(a.a),b:vo._goInner(a.b),p:vo._goInner(a.p),o:vo._goInner(a.o),q:vo._goInner(a.q),d:vo._goInner(a.d)};b.a&&(b.a.match(/^[+\-]/)&&(b.a="{"+b.a+"}"),y+=b.a+"\\,"),(b.b||b.p)&&(y+="{\\vphantom{X}}",y+="^{\\hphantom{"+(b.b||"")+"}}_{\\hphantom{"+(b.p||"")+"}}",y+="{\\vphantom{X}}",y+="^{\\smash[t]{\\vphantom{2}}\\llap{"+(b.b||"")+"}}",y+="_{\\vphantom{2}\\llap{\\smash[t]{"+(b.p||"")+"}}}"),b.o&&(b.o.match(/^[+\-]/)&&(b.o="{"+b.o+"}"),y+=b.o),a.dType==="kv"?((b.d||b.q)&&(y+="{\\vphantom{X}}"),b.d&&(y+="^{"+b.d+"}"),b.q&&(y+="_{\\smash[t]{"+b.q+"}}")):a.dType==="oxidation"?(b.d&&(y+="{\\vphantom{X}}",y+="^{"+b.d+"}"),b.q&&(y+="{\\vphantom{X}}",y+="_{\\smash[t]{"+b.q+"}}")):(b.q&&(y+="{\\vphantom{X}}",y+="_{\\smash[t]{"+b.q+"}}"),b.d&&(y+="{\\vphantom{X}}",y+="^{"+b.d+"}"));break;case"rm":y="\\mathrm{"+a.p1+"}";break;case"text":a.p1.match(/[\^_]/)?(a.p1=a.p1.replace(" ","~").replace("-","\\text{-}"),y="\\mathrm{"+a.p1+"}"):y="\\text{"+a.p1+"}";break;case"roman numeral":y="\\mathrm{"+a.p1+"}";break;case"state of aggregation":y="\\mskip2mu "+vo._goInner(a.p1);break;case"state of aggregation subscript":y="\\mskip1mu "+vo._goInner(a.p1);break;case"bond":if(y=vo._getBond(a.kind_),!y)throw["MhchemErrorBond","mhchem Error. Unknown bond type ("+a.kind_+")"];break;case"frac":var E="\\frac{"+a.p1+"}{"+a.p2+"}";y="\\mathchoice{\\textstyle"+E+"}{"+E+"}{"+E+"}{"+E+"}";break;case"pu-frac":var ee="\\frac{"+vo._goInner(a.p1)+"}{"+vo._goInner(a.p2)+"}";y="\\mathchoice{\\textstyle"+ee+"}{"+ee+"}{"+ee+"}{"+ee+"}";break;case"tex-math":y=a.p1+" ";break;case"frac-ce":y="\\frac{"+vo._goInner(a.p1)+"}{"+vo._goInner(a.p2)+"}";break;case"overset":y="\\overset{"+vo._goInner(a.p1)+"}{"+vo._goInner(a.p2)+"}";break;case"underset":y="\\underset{"+vo._goInner(a.p1)+"}{"+vo._goInner(a.p2)+"}";break;case"underbrace":y="\\underbrace{"+vo._goInner(a.p1)+"}_{"+vo._goInner(a.p2)+"}";break;case"color":y="{\\color{"+a.color1+"}{"+vo._goInner(a.color2)+"}}";break;case"color0":y="\\color{"+a.color+"}";break;case"arrow":var re={rd:vo._goInner(a.rd),rq:vo._goInner(a.rq)},ae=vo._getArrow(a.r);re.rd||re.rq?a.r==="<=>"||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=vo._getOperator(a.kind_);break;case"1st-level escape":y=a.p1+" ";break;case"space":y=" ";break;case"entitySkip":y="~";break;case"pu-space-1":y="~";break;case"pu-space-2":y="\\mkern3mu ";break;case"1000 separator":y="\\mkern2mu ";break;case"commaDecimal":y="{,}";break;case"comma enumeration L":y="{"+a.p1+"}\\mkern6mu ";break;case"comma enumeration M":y="{"+a.p1+"}\\mkern3mu ";break;case"comma enumeration S":y="{"+a.p1+"}\\mkern1mu ";break;case"hyphen":y="\\text{-}";break;case"addition compound":y="\\,{\\cdot}\\,";break;case"electron dot":y="\\mkern1mu \\bullet\\mkern1mu ";break;case"KV x":y="{\\times}";break;case"prime":y="\\prime ";break;case"cdot":y="\\cdot ";break;case"tight cdot":y="\\mkern1mu{\\cdot}\\mkern1mu ";break;case"times":y="\\times ";break;case"circa":y="{\\sim}";break;case"^":y="uparrow";break;case"v":y="downarrow";break;case"ellipsis":y="\\ldots ";break;case"/":y="/";break;case" / ":y="\\,/\\,";break;default:throw["MhchemBugT","mhchem bug T. Please report."]}return y},_getArrow:function(a){switch(a){case"->":return"rightarrow";case"\u2192":return"rightarrow";case"\u27F6":return"rightarrow";case"<-":return"leftarrow";case"<->":return"leftrightarrow";case"<-->":return"leftrightarrows";case"<=>":return"rightleftharpoons";case"\u21CC":return"rightleftharpoons";case"<=>>":return"Rightleftharpoons";case"<<=>":return"Leftrightharpoons";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getBond:function(a){switch(a){case"-":return"{-}";case"1":return"{-}";case"=":return"{=}";case"2":return"{=}";case"#":return"{\\equiv}";case"3":return"{\\equiv}";case"~":return"{\\tripledash}";case"~-":return"{\\rlap{\\lower.1em{-}}\\raise.1em{\\tripledash}}";case"~=":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"~--":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"-~-":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{-}}\\tripledash}";case"...":return"{{\\cdot}{\\cdot}{\\cdot}}";case"....":return"{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}";case"->":return"{\\rightarrow}";case"<-":return"{\\leftarrow}";case"<":return"{<}";case">":return"{>}";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getOperator:function(a){switch(a){case"+":return" {}+{} ";case"-":return" {}-{} ";case"=":return" {}={} ";case"<":return" {}<{} ";case">":return" {}>{} ";case"<<":return" {}\\ll{} ";case">>":return" {}\\gg{} ";case"\\pm":return" {}\\pm{} ";case"\\approx":return" {}\\approx{} ";case"$\\approx$":return" {}\\approx{} ";case"v":return" \\downarrow{} ";case"(v)":return" \\downarrow{} ";case"^":return" \\uparrow{} ";case"(^)":return" \\uparrow{} ";default:throw["MhchemBugT","mhchem bug T. Please report."]}}};function M1(a){}function k1(a){}var r0=class Hp extends Bn{constructor(y){super(pe(Se({},y),{type:"delim"})),this.value=y.delim,this.size=y.size}static fromJson(y){return new Hp(y)}toJson(){return pe(Se({},super.toJson()),{delim:this.value,size:this.size})}render(y){return new fr(this.value,{type:"middle"})}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=wr(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):co(this.command,this.value)}},i0=class Kp extends Bn{constructor(y){super(pe(Se({},y),{type:"sizeddelim",value:y.delim})),this.delimType=y.delimType,this.size=y.size}static fromJson(y){return new Kp(y)}toJson(){return pe(Se({},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=wr(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):co(this.command,this.value)}},bd=class Wp extends Bn{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 pe(Se({},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=wr(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 co(ee,this.bodyToLatex(y))}render(y){const b=new Ma({parent:y},this.style),E=Bn.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 fr(null,{classes:"ML__notation"});let he=E.height+E.depth+2*re;const me=E.width+2*re;let ye="";if(this.notation.horizontalstrike&&(ye+=this.line(3,50,97,50)),this.notation.verticalstrike&&(ye+=this.line(50,3,50,97)),this.notation.updiagonalstrike&&(ye+=this.line(3,97,97,3)),this.notation.downdiagonalstrike&&(ye+=this.line(3,3,97,97)),this.notation.updiagonalarrow){ye+=this.line(re.toString(),(re+E.depth+E.height).toString(),(re+E.width).toString(),re.toString());const xt=.03*Math.sqrt(me*me+he*he)*1,mn=E.width*xt,cr=(E.depth+E.height)*xt,un=re+E.width;let Zn=re;Zn+cr-.4*mn<0&&(Zn=.4*mn-cr),ye+='<polygon points="',ye+=`${un},${Zn} ${un-mn-.4*cr},${Zn+cr-.4*mn} `,ye+=`${un-.7*mn},${Zn+.7*cr} ${un-mn+.4*cr},${Zn+cr+.4*mn} `,ye+=`${un},${Zn}`,ye+=`" stroke='none' fill="${this.strokeColor}"`,ye+="/>"}let we=0;if(this.notation.phasorangle){const Xe=a0(b),ct=(E.height+E.depth+2*Xe+re).toString(),xt=(E.height+E.depth)/2;ye+=this.line(re.toString(),ct,(re+xt+E.width).toString(),ct),ye+=this.line(re.toString(),ct,(re+xt).toString(),(re-Xe).toString()),he+=Xe,we=xt,E.left+=he/2-re}if(this.notation.longdiv){const Xe=a0(b);he+=Xe,ye+=this.line(re.toString(),re.toString(),(re+E.width).toString(),re.toString());const ct=.3;we=ct+Xe,E.left+=ct+Xe,E.setTop(re+Xe),ye+='<path d="',ye+=`M ${re} ${re} a${ct} ${(E.depth+E.height+2*Xe)/2}, 0, 1, 1, 0 ${E.depth+E.height+2*Xe} "`,ye+=` stroke-width="${am(b)}" stroke="${this.strokeColor}" fill="none"`,ye+="/>"}if(ae.width=E.width+2*re+we,ae.height=E.height+re,ae.depth=E.depth+re,ae.setStyle("box-sizing","border-box"),ae.setStyle("left",`calc(-${ee} / 2 )`),ae.setStyle("height",`${Math.floor(100*he)/100}em`),ae.setStyle("top",`calc(${ee} / 2 )`),this.backgroundcolor&&ae.setStyle("background-color",this.backgroundcolor),this.notation.box&&ae.setStyle("border","1px solid red"),this.notation.actuarial&&(ae.setStyle("border-top",this.borderStyle),ae.setStyle("border-right",this.borderStyle)),this.notation.madruwb&&(ae.setStyle("border-bottom",this.borderStyle),ae.setStyle("border-right",this.borderStyle)),this.notation.roundedbox&&(ae.setStyle("border-radius","8px"),ae.setStyle("border",this.borderStyle)),this.notation.circle&&(ae.setStyle("border-radius","50%"),ae.setStyle("border",this.borderStyle)),this.notation.top&&ae.setStyle("border-top",this.borderStyle),this.notation.left&&ae.setStyle("border-left",this.borderStyle),this.notation.right&&ae.setStyle("border-right",this.borderStyle),this.notation.bottom&&ae.setStyle("border-bottom",this.borderStyle),ye){let Xe="";this.shadow==="auto"&&(Xe+="filter: drop-shadow(0 0 .5px rgba(255, 255, 255, .7)) drop-shadow(1px 1px 2px #333)"),this.shadow!=="none"&&(Xe+=`filter: drop-shadow(${this.shadow})`),Xe+=` stroke-width="${this.strokeWidth}" stroke="${this.strokeColor}"`,Xe+=' stroke-linecap="round"',this.svgStrokeStyle&&(Xe+=` stroke-dasharray="${this.svgStrokeStyle}"`),ae.svgStyle=Xe,ae.svgOverlay=ye}const Re=new fr([ae,E]);return Re.setStyle("position","relative"),Re.setStyle("vertical-align",re,"em"),Re.setStyle("height",`${Math.floor(100*(E.height+E.depth+2*re))/100}em`),Re.setStyle("display","inline-block"),Re.height=ae.height,Re.depth=ae.depth,Re.width=ae.width-2*re,Re.left=re,Re.right=re,this.caret&&(Re.caret=this.caret),Re.wrap(b)}line(y,b,E,ee){return`<line x1="${bf(y)}" y1="${bf(b)}" x2="${bf(E)}" y2="${bf(ee)}" vector-effect="non-scaling-stroke"></line>`}};function bf(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?el:a.metrics.defaultRuleThickness;return a.metrics.defaultRuleThickness+a.scalingFactor*y/4}var kc=class $p extends Bn{constructor(y,b,E){var ee,re;super(pe(Se({},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 $p(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),Se(Se({},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 Ma({parent:y,mathstyle:this.mathstyleName},this.style),re=ee.metrics,ae=new Ma({parent:ee,mathstyle:this.continuousFraction?"":"numerator"},this.style),he=this.numerPrefix?new fr([new fr(this.numerPrefix),Bn.createBox(ae,this.above)],{isTight:ae.isTight,type:"ignore"}):(b=Bn.createBox(ae,this.above,{type:"ignore"}))!=null?b:new fr(null,{type:"ignore"}),me=new Ma({parent:ee,mathstyle:this.continuousFraction?"":"denominator"},this.style),ye=this.denomPrefix?new fr([new fr(this.denomPrefix),Bn.createBox(me,this.below,{type:"ignore"})]):(E=Bn.createBox(me,this.below,{type:"ignore"}))!=null?E:new fr(null,{type:"ignore"}),we=this.hasBarLine?re.defaultRuleThickness:0;let Re,Xe=0,ct;ee.isDisplayStyle?(Re=ae.metrics.num1,Xe=we>0?3*we:7*we,ct=me.metrics.denom1):(we>0?(Re=ae.metrics.num2,Xe=we):(Re=ae.metrics.num3,Xe=3*re.defaultRuleThickness),ct=me.metrics.denom2);const xt=[];this.isSelected&&xt.push("ML__selected");const mn=he.depth,cr=ye.height;let un;if(we<=0){const Xr=Re-mn-(cr-ct);Xr<Xe&&(Re+=(Xe-Xr)/2,ct+=(Xe-Xr)/2),un=new Ja({individualShift:[{box:he,shift:-Re,classes:[...xt,"ML__center"]},{box:ye,shift:ct,classes:[...xt,"ML__center"]}]}).wrap(ee)}else{const Xr=new fr(null,{classes:"ML__frac-line",mode:this.mode,style:this.style});Xr.softWidth=Math.max(he.width,ye.width),Xr.height=we/2,Xr.depth=we/2;const _a=os+we/2;Re<Xe+mn+_a&&(Re=Xe+mn+_a);const qa=os-we/2;ct<Xe+cr-qa&&(ct=Xe+cr-qa),un=new Ja({individualShift:[{box:ye,shift:ct,classes:[...xt,"ML__center"]},{box:Xr,shift:-qa,classes:xt},{box:he,shift:-Re,classes:[...xt,"ML__center"]}]}).wrap(ee)}const Zn=ee.isDisplayStyle?re.delim1:re.delim2,pr=this.leftDelim?this.bind(y,zr("open",this.leftDelim,Zn,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):Hr(ee,"open");let Yn=null;this.continuousFraction?Yn=new fr(null,{type:"close"}):this.rightDelim?Yn=this.bind(y,zr("close",this.rightDelim,Zn,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):Yn=Hr(ee,"close");const $r=new fr([pr,un,Yn],{isTight:ee.isTight,type:"inner",classes:"mfrac"}),ui=this.bind(y,$r);return this.caret&&(ui.caret=this.caret),this.attachSupsub(y,{base:ui})}},ns=class Vp extends Bn{constructor(y,b){var E;super({type:"latex",value:y,mode:"latex"}),this.isSuggestion=(E=b==null?void 0:b.isSuggestion)!=null?E:!1,this.isError=!1}static fromJson(y){const b=new Vp(y.value);return y.isSuggestion&&(b.isSuggestion=!0),y.isError&&(b.isError=!0),b}toJson(){const y={};return this.isSuggestion&&(y.isSuggestion=!0),this.isError&&(y.isError=!0),Se({type:"latex",value:this.value},y)}get computedStyle(){return{}}render(y){const b=new fr(this.value,{classes:this.isSuggestion?"ML__suggestion":this.isError?"ML__error":"",type:"latex",maxFontSize:1});return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}},xd=class Zp extends Bn{constructor(y){super({type:"latexgroup",mode:"latex"}),this.body=[...y].map(b=>new ns(b)),this.skipBoundary=!1}static fromJson(y){return new Zp("")}toJson(){return super.toJson()}render(y){const b=Bn.createBox(y,this.body);return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}_serialize(y){var b,E;return(E=(b=this.body)==null?void 0:b.map(ee=>ee.value).join(""))!=null?E:""}},fh=class Up extends Bn{constructor(y,b){super(pe(Se({},b),{type:"extensible-symbol",isFunction:b==null?void 0:b.isFunction})),this.value=y,this.variant=b==null?void 0:b.variant,this.subsupPlacement=b==null?void 0:b.limits}static fromJson(y){return new Up(y.symbol,y)}toJson(){const y=super.toJson();return this.variant&&(y.variant=this.variant),this.subsupPlacement&&(y.limits=this.subsupPlacement),this.isExtensibleSymbol&&(y.isExtensibleSymbol=!0),this.value&&(y.symbol=this.value),y}render(y){var b;const E=y.isDisplayStyle&&this.value!=="\\smallint",ee=new fr(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-os*y.scalingFactor,ae=ee.italic;ee.setTop(re);let he=ee;if(this.superscript||this.subscript){const me=(b=this.subsupPlacement)!=null?b:"auto";he=me==="over-under"||me==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:ee,baseShift:re,slant:ae}):this.attachSupsub(y,{base:ee})}return new fr(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=wr(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)),ua(E)}},Ou=class Gp extends Bn{constructor(y){const b=y.body;super(pe(Se({},y),{type:"overlap",body:typeof b=="string"?[new Bn({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),Se(Se({},super.toJson()),y)}render(y){const b=Bn.createBox(y,this.body,{classes:"inner"});return b?(this.caret&&(b.caret=this.caret),this.bind(y,new fr([b,new fr(null,{classes:"fix"})],{classes:this.align==="right"?"rlap":"llap",type:this.boxType}))):null}},Gs=class jp extends Bn{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 jp(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?Ps(this.svgBody):Bn.createBox(y,this.body,{type:"ignore"});const E=new Ma({parent:y,mathstyle:"scriptstyle"},this.style);let ee=null;this.svgAbove?ee=Ps(this.svgAbove):this.above&&(ee=Bn.createBox(E,this.above,{type:"ignore"}));let re=null;this.svgBelow?re=Ps(this.svgBelow):this.below&&(re=Bn.createBox(E,this.below,{type:"ignore"})),this.paddedBody&&(b=new fr([Hr(y,"open"),b,Hr(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 fr(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 Ja({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 Ja({top:ee.height-re,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:ae},{box:ee,classes:["ML__center"]}]}):y.above&&(E=new Ja({bottom:ee.depth+re,children:[{box:ee,classes:["ML__center"]},b,{box:y.above,classes:ae},a.metrics.bigOpSpacing5]}));return new fr(E,{type:y.type})}var wd=class Xp extends Bn{constructor(y){var b,E,ee,re;super(pe(Se({},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),Se(Se({},super.toJson()),y)}render(y){const b=new Ma({parent:y,isPhantom:!0});if(!this.smashDepth&&!this.smashHeight&&!this.smashWidth)return console.assert(this.isInvisible),Bn.createBox(b,this.body,{classes:"inner"});const E=Bn.createBox(this.isInvisible?b:y,this.body);if(!E)return null;if(this.smashWidth){const ee=new fr(null,{classes:"fix"});return new fr([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 Ja({firstBaseline:[{box:E}]},{type:E.type}).wrap(y)}},Sd=class Yp extends Bn{constructor(y){var b;super(Se({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 fr(this.mode==="math"?null:" ");let E;if(this.width!==void 0)E=new fr(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 fr(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=wr(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}{${Io(this.width)}}`:`${ee}${Io(this.width)}`}},o0=class qp extends Bn{constructor(y){var b;super(pe(Se({},y),{type:"surd",mode:(b=y.mode)!=null?b:"math",style:y.style,displayContainsHighlight:!0,body:y.body})),this.above=y.index}static fromJson(y){return new qp(pe(Se({},y),{index:y.above}))}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=wr(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")?co(`${E}[${this.aboveToLatex(y)}]`,ee):/^[0-9]$/.test(ee)?`${E}${ee}`:co(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 Ma({parent:y,mathstyle:"cramp"},this.style),ee=(b=Bn.createBox(E,this.body,{type:"inner"}))!=null?b:new fr(null),re=E.scalingFactor,ae=E.metrics.defaultRuleThickness/re,he=y.isDisplayStyle?el:ae,me=new fr(null,{classes:"ML__sqrt-line",style:this.style});me.height=ae,me.softWidth=ee.width;let ye=re*(ae+he/4);const Re=Math.max(re*2*he,ee.height+ee.depth)+ye+ae,Xe=new Ma({parent:y},this.style),ct=this.bind(Xe,new fr(zr("inner","\\surd",Re,!1,Xe,{isSelected:this.isSelected}),{isSelected:this.isSelected,classes:"ML__sqrt-sign",style:this.style}));if(!ct)return null;const xt=ct.height+ct.depth-ae;xt>ee.height+ee.depth+ye&&(ye=(ye+xt-(ee.height+ee.depth))/2),ct.setTop(ct.height-ee.height-ye);const mn=this.bind(y,new Ja({firstBaseline:[{box:new fr(ee)},ye-2*ae,{box:me},ae]})),cr=Bn.createBox(new Ma({parent:y,mathstyle:"scriptscriptstyle"}),this.above,{type:"ignore"});if(!cr){const pr=new fr([ct,mn],{classes:this.containsCaret?"ML__contains-caret":"",type:"inner"});return pr.setStyle("display","inline-block"),pr.setStyle("height",pr.height+pr.depth,"em"),this.caret&&(pr.caret=this.caret),this.bind(y,pr)}const un=new Ja({shift:-.6*(Math.max(ct.height,mn.height)-Math.max(ct.depth,mn.depth)),children:[{box:cr}]}),Zn=new fr([new fr(un,{classes:"ML__sqrt-index",type:"ignore"}),ct,mn],{type:"inner",classes:this.containsCaret?"ML__contains-caret":""});return Zn.height=ct.height,Zn.depth=ct.depth,this.caret&&(Zn.caret=this.caret),this.bind(y,Zn)}},sm=class extends fr{constructor(a){super(null,{type:"skip"}),this._width=a}toMarkup(){return`<span style="display:inline-block;width:${Math.ceil(this.width*100)/100}em"></span>`}};function xf(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"){xf(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){Ed(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 Cd(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 Ed(b,(ae,he)=>{var me,ye,we;if(!ae)return;const Re=ae.type,Xe=he.isTight?(me=um[Re])!=null?me:null:(ye=lm[Re])!=null?ye:null,ct=(we=Xe==null?void 0:Xe[he.type])!=null?we:null;ct===3&&xf(he,E),ct===4&&xf(he,ee),ct===5&&xf(he,re)}),a}function Ed(a,y,b=void 0){if(!a)return b;a=[...a];for(const E of a)E.type==="lift"?b=Ed(E.children,y,b):E.type==="ignore"?Ed(E.children,y):(y(b,E),Ed(E.children,y),b=E);return b}var hh=class Qp extends Bn{constructor(y){super({type:"tooltip",command:y.command,mode:y.mode,style:y.style,body:y.body,displayContainsHighlight:!0}),this.tooltip=new Bn({type:"root",mode:y.content,body:y.tooltip,style:{}}),this.skipBoundary=!0,this.captureSelection=!1}static fromJson(y){return new Qp(pe(Se({},y),{tooltip:du(y.tooltip)}))}toJson(){var y;const b=(y=this.tooltip.body)==null?void 0:y.filter(E=>E.type!=="first").map(E=>E.toJson());return pe(Se({},super.toJson()),{tooltip:b})}render(y){const b=Bn.createBox(new Ma,this.body);if(!b)return null;const E=new Ma({parent:y,mathstyle:"displaystyle"},{fontSize:dl}),ee=gc(Cd(new fr(this.tooltip.render(E),{classes:"ML__tooltip-content"}),E)),re=new fr([ee,b],{classes:"ML__tooltip-container"});return this.caret&&(re.caret=this.caret),this.bind(y,re)}},Nu=class Jp extends Bn{constructor(y,b){super(pe(Se({},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 fr(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 fr(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=wr(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)),ua(E)}};function du(a){if(Oe(a))return a.map(E=>du(E));if(typeof a=="string")return Bn.fromJson(a);a=Se({},a);for(const E of su)a[E]&&(a[E]=du(a[E]));a.args&&(a.args=dm(a.args)),a.array&&(a.array=du(a.array));const y=a.type;let b;y==="accent"&&(b=z.fromJson(a)),y==="array"&&(b=Ui.fromJson(a)),y==="box"&&(b=ko.fromJson(a)),y==="chem"&&(b=n0.fromJson(a)),y==="composition"&&(b=$l.fromJson(a)),y==="delim"&&(b=r0.fromJson(a)),y==="enclose"&&(b=bd.fromJson(a)),y==="error"&&(b=ys.fromJson(a)),y==="extensible-symbol"&&(b=fh.fromJson(a)),y==="genfrac"&&(b=kc.fromJson(a)),y==="group"&&(b=jo.fromJson(a)),y==="latex"&&(b=ns.fromJson(a)),y==="latexgroup"&&(b=xd.fromJson(a)),y==="leftright"&&(b=$a.fromJson(a)),y==="macro"&&(b=Mc.fromJson(a)),y==="macro-argument"&&(b=sl.fromJson(a)),y==="operator"&&(b=Nu.fromJson(a)),y==="overlap"&&(b=Ou.fromJson(a)),y==="overunder"&&(b=Gs.fromJson(a)),y==="placeholder"&&(b=vi.fromJson(a)),y==="prompt"&&(b=xl.fromJson(a)),y==="phantom"&&(b=wd.fromJson(a)),y==="sizeddelim"&&(b=i0.fromJson(a)),y==="spacing"&&(b=Sd.fromJson(a)),y==="subsup"&&(b=Us.fromJson(a)),y==="surd"&&(b=o0.fromJson(a)),y==="text"&&(b=al.fromJson(a)),y==="tooltip"&&(b=hh.fromJson(a)),b||(console.assert(!y||["first","mbin","mrel","mclose","minner","mop","mopen","mord","mpunct","root","space"].includes(y),`MathLive 0.98.5: an unexpected atom type "${y}" was encountered. Add new atom constructors to \`fromJson()\` in "atom.ts"`),b=Bn.fromJson(a));for(const E of su)a[E]&&b.setChildren(a[E],E);return a.verbatimLatex!==void 0&&(b.verbatimLatex=a.verbatimLatex),a.subsupPlacement&&(b.subsupPlacement=a.subsupPlacement),a.explicitSubsupPlacement&&(b.explicitSubsupPlacement=!0),a.isFunction&&(b.isFunction=!0),a.isExtensibleSymbol&&(b.isExtensibleSymbol=!0),a.skipBoundary&&(b.skipBoundary=!0),a.captureSelection&&(b.captureSelection=!0),b}function dm(a){if(a&&Array.isArray(a))return a.map(y=>y==="<null>"?null:typeof y=="object"&&"group"in y?{group:y.group.map(b=>du(b))}:typeof y=="object"&&"atoms"in y?y.atoms.map(b=>du(b)):y)}var s0={main:["Main-Regular","ML__cmr"],"main-italic":["Main-Italic","ML__cmr ML__it"],"main-bold":["Main-Bold","ML__cmr ML__bold"],"main-bolditalic":["Main-BoldItalic","ML__cmr ML__bold ML__it"],normal:["Main-Regular","ML__cmr"],"normal-bold":["Main-Bold","ML__mathbf"],"normal-italic":["Math-Italic","ML__mathit"],"normal-bolditalic":["Math-BoldItalic","ML__mathbfit"],ams:["AMS-Regular","ML__ams"],"ams-bold":["AMS-Regular","ML__ams"],"ams-italic":["AMS-Regular","ML__ams"],"ams-bolditalic":["AMS-Regular","ML__ams"],"sans-serif":["SansSerif-Regular","ML__sans"],"sans-serif-bold":["SansSerif-Regular","ML__sans ML__bold"],"sans-serif-italic":["SansSerif-Regular","ML__sans"],"sans-serif-bolditalic":["SansSerif-Regular","ML__sans"],calligraphic:["Caligraphic-Regular","ML__cal"],"calligraphic-bold":["Caligraphic-Regular","ML__cal ML__bold"],"calligraphic-italic":["Caligraphic-Regular","ML__cal ML__it"],"calligraphic-bolditalic":["Caligraphic-Regular","ML__cal ML__bold ML__it"],script:["Script-Regular","ML__script"],"script-bold":["Script-Regular","ML__script ML__bold"],"script-italic":["Script-Regular","ML__script ML__it"],"script-bolditalic":["Script-Regular","ML__script ML__bold ML__it"],fraktur:["Fraktur-Regular","ML__frak"],"fraktur-bold":["Fraktur-Regular","ML__frak"],"fraktur-italic":["Fraktur-Regular","ML__frak"],"fraktur-bolditalic":["Fraktur-Regular","ML__frak"],monospace:["Typewriter-Regular","ML__tt"],"monospace-bold":["Typewriter-Regular","ML__tt ML__bold"],"monospace-italic":["Typewriter-Regular","ML__tt ML__it"],"monospace-bolditalic":["Typewriter-Regular","ML__tt ML__bold ML__it"],"double-struck":["AMS-Regular","ML__bb"],"double-struck-bold":["AMS-Regular","ML__bb"],"double-struck-italic":["AMS-Regular","ML__bb"],"double-struck-bolditalic":["AMS-Regular","ML__bb"]},ph={"double-struck":/^[A-Z ]$/,script:/^[A-Z ]$/,calligraphic:/^[\dA-Z ]$/,fraktur:/^[\dA-Za-z ]$|^[!"#$%&'()*+,\-./:;=?[]^]$/,monospace:/^[\dA-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A8\u03A9]$/,"sans-serif":/^[\dA-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A8\u03A9]$/},l0=/^[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5]$/,fm=/^[\u0393|\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A6\u03A8\u03A9]$/,hm=[/^[a-z]$/,/^[A-Z]$/,l0,fm],pm={iso:["it","it","it","it"],tex:["it","it","it","up"],french:["it","up","up","up"],upright:["up","up","up","up"]},mm=class extends Ss{constructor(){super("math")}createAtom(a,y,b){var E,ee,re,ae;if(y===null)return new Bn({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 ye=new Bn({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&&(ye.isFunction=!0),a.startsWith("\\")&&(ye.verbatimLatex=a),ye}const me=new Bn({type:"mord",mode:"math",command:(ae=y.command)!=null?ae:a,value:a,style:b});return he&&(me.isFunction=!0),a.startsWith("\\")&&(me.verbatimLatex=a),me}serialize(a,y){const b=gm(a,pe(Se({},y),{defaultMode:"math"}));return b.length===0||y.defaultMode!=="text"?b:["$ ",...b," $"]}getFont(a,y){console.assert(y.variant!==void 0);let{variant:b}=y,{variantStyle:E}=y;b==="normal"&&!E&&/[\u00A3\u0131\u0237]/.test(a.value)&&(b="main",E="italic"),b==="normal"&&!E&&a.value.length===1&&hm.forEach((he,me)=>{var ye;he.test(a.value)&&pm[(ye=y.letterShapeStyle)!=null?ye:"tex"][me]==="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 ph[b]&&!ph[b].test(a.value)?(a.value=Sn(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 Mo(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=ua(ee.map(me=>me._serialize(y)));return ae?co(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 Mo(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?`{${co("\\fontshape",ee)}${ua(E)}}`:re?co(re,ua(E)):ua(E)})}function bm(a,y){return Mo(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?`{${co("\\fontseries",ee)}${ua(E)}}`:re?co(re,ua(E)):ua(E)})}function xm(a,y){return Mo(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} ${ua(re)}`:ua(re)})}function wm(a,y,b){return Mo(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}{${ua(ae)}}`:E[0].style.fontFamily?`{\\fontfamily{${E[0].style.fontFamily}} ${ua(ae)}}`:b?`\\text{${ua(ae)}}`:ua(ae)})}var c0={roman:"","sans-serif":"ML__sans",monospace:"ML__tt"},Sm=class extends Ss{constructor(){super("text")}createAtom(a,y,b){return y&&y.definitionType==="symbol"?new al(a,String.fromCodePoint(y.codepoint),b!=null?b:{}):null}serialize(a,y){return wm(a,pe(Se({},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 me=y.fontSeries.match(/(.?[lbm])?(.?[cx])?/);me&&(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=me[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=me[2])!=null?re:""])!=null?ae:"")}return"Main-Regular"}};new Sm;var Cm=class extends Ss{constructor(){super("latex")}createAtom(a){return new ns(a)}serialize(a,y){return a.filter(b=>b instanceof ns&&!b.isSuggestion).map(b=>b.value)}getFont(){return null}};new Cm;var Em={id:"dvorak",locale:"en",displayName:"Dvorak",virtualLayout:"dvorak",platform:"",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["x","X","\u2248","\u02DB"],KeyC:["j","J","\u2206","\xD4"],KeyD:["e","E","\xB4","\xB4"],KeyE:[".",">","\u2265","\u02D8"],KeyF:["u","U","\xA8","\xA8"],KeyG:["i","I","\u02C6","\u02C6"],KeyH:["d","D","\u2202","\xCE"],KeyI:["c","C","\xE7","\xC7"],KeyJ:["h","H","\u02D9","\xD3"],KeyK:["t","T","\u2020","\u02C7"],KeyL:["n","N","\u02DC","\u02DC"],KeyM:["m","M","\xB5","\xC2"],KeyN:["b","B","\u222B","\u0131"],KeyO:["r","R","\xAE","\u2030"],KeyP:["l","L","\xAC","\xD2"],KeyQ:["'",'"',"\xE6","\xC6"],KeyR:["p","P","\u03C0","\u220F"],KeyS:["o","O","\xF8","\xD8"],KeyT:["y","Y","\xA5","\xC1"],KeyU:["g","G","\xA9","\u02DD"],KeyV:["k","K","\u02DA","\uF8FF"],KeyW:[",","<","\u2264","\xAF"],KeyX:["q","Q","\u0153","\u0152"],KeyY:["f","F","\u0192","\xCF"],KeyZ:[";",":","\u2026","\xDA"],Digit1:["1","!","\xA1","\u2044"],Digit2:["2","@","\u2122","\u20AC"],Digit3:["3","#","\xA3","\u2039"],Digit4:["4","$","\xA2","\u203A"],Digit5:["5","%","\u221E","\uFB01"],Digit6:["6","^","\xA7","\uFB02"],Digit7:["7","&","\xB6","\u2021"],Digit8:["8","*","\u2022","\xB0"],Digit9:["9","(","\xAA","\xB7"],Digit0:["0",")","\xBA","\u201A"],Space:[" "," "," "," "],Minus:["[","{","\u201C","\u201D"],Equal:["]","}","\u2018","\u2019"],BracketLeft:["/","?","\xF7","\xBF"],BracketRight:["=","+","\u2260","\xB1"],Backslash:["\\","|","\xAB","\xBB"],Semicolon:["s","S","\xDF","\xCD"],Quote:["-","_","\u2013","\u2014"],Backquote:["`","~","`","`"],Comma:["w","W","\u2211","\u201E"],Period:["v","V","\u221A","\u25CA"],Slash:["z","Z","\u03A9","\xB8"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[".",".",".","."],IntlBackslash:["\xA7","\xB1","\xA7","\xB1"],NumpadEqual:["=","=","=","="],AudioVolumeUp:["","=","","="]}},mh={id:"apple.en-intl",displayName:"English (international)",virtualLayout:"qwerty",platform:"apple",locale:"en",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\u222B","\u0131"],KeyC:["c","C","\xE7","\xC7"],KeyD:["d","D","\u2202","\xCE"],KeyE:["e","E","\xB4","\xB4"],KeyF:["f","F","\u0192","\xCF"],KeyG:["g","G","\xA9","\u02DD"],KeyH:["h","H","\u02D9","\xD3"],KeyI:["i","I","\u02C6","\u02C6"],KeyJ:["j","J","\u2206","\xD4"],KeyK:["k","K","\u02DA","\uF8FF"],KeyL:["l","L","\xAC","\xD2"],KeyM:["m","M","\xB5","\xC2"],KeyN:["n","N","\u02DC","\u02DC"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\u0153","\u0152"],KeyR:["r","R","\xAE","\u2030"],KeyS:["s","S","\xDF","\xCD"],KeyT:["t","T","\u2020","\u02C7"],KeyU:["u","U","\xA8","\xA8"],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\u2211","\u201E"],KeyX:["x","X","\u2248","\u02DB"],KeyY:["y","Y","\xA5","\xC1"],KeyZ:["z","Z","\u03A9","\xB8"],Digit1:["1","!","\xA1","\u2044"],Digit2:["2","@","\u2122","\u20AC"],Digit3:["3","#","\xA3","\u2039"],Digit4:["4","$","\xA2","\u203A"],Digit5:["5","%","\u221E","\uFB01"],Digit6:["6","^","\xA7","\uFB02"],Digit7:["7","&","\xB6","\u2021"],Digit8:["8","*","\u2022","\xB0"],Digit9:["9","(","\xAA","\xB7"],Digit0:["0",")","\xBA","\u201A"],Space:[" "," "," "," "],Minus:["-","_","\u2013","\u2014"],Equal:["=","+","\u2260","\xB1"],BracketLeft:["[","{","\u201C","\u201D"],BracketRight:["]","}","\u2018","\u2019"],Backslash:["\\","|","\xAB","\xBB"],Semicolon:[";",":","\u2026","\xDA"],Quote:["'",'"',"\xE6","\xC6"],Backquote:["`","\u02DC","`","`"],Comma:[",","<","\u2264","\xAF"],Period:[".",">","\u2265","\u02D8"],Slash:["/","?","\xF7","\xBF"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[".",".",".","."],IntlBackslash:["\xA7","\xB1","\xA7","\xB1"],NumpadEqual:["=","=","=","="],AudioVolumeUp:["","=","","="]}},d0={id:"windows.en-intl",displayName:"English (international)",platform:"windows",virtualLayout:"qwerty",locale:"en",score:0,mapping:{KeyA:["a","A","\xE1","\xC1"],KeyB:["b","B","",""],KeyC:["c","C","\xA9","\xA2"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\xE9","\xC9"],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","\xED","\xCD"],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","\xF8","\xD8"],KeyM:["m","M","\xB5",""],KeyN:["n","N","\xF1","\xD1"],KeyO:["o","O","\xF3","\xD3"],KeyP:["p","P","\xF6","\xD6"],KeyQ:["q","Q","\xE4","\xC4"],KeyR:["r","R","\xAE",""],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\xFE","\xDE"],KeyU:["u","U","\xFA","\xDA"],KeyV:["v","V","",""],KeyW:["w","W","\xE5","\xC5"],KeyX:["x","X","",""],KeyY:["y","Y","\xFC","\xDC"],KeyZ:["z","Z","\xE6","\xC6"],Digit1:["1","!","\xA1","\xB9"],Digit2:["2","@","\xB2",""],Digit3:["3","#","\xB3",""],Digit4:["4","$","\xA4","\xA3"],Digit5:["5","%","\u20AC",""],Digit6:["6","^","\xBC",""],Digit7:["7","&","\xBD",""],Digit8:["8","*","\xBE",""],Digit9:["9","(","\u2018",""],Digit0:["0",")","\u2019",""],Space:[" "," ","",""],Minus:["-","_","\xA5",""],Equal:["=","+","\xD7","\xF7"],BracketLeft:["[","{","\xAB",""],BracketRight:["]","}","\xBB",""],Backslash:["\\","|","\xAC","\xA6"],Semicolon:[";",":","\xB6","\xB0"],Quote:["'",'"',"\xB4","\xA8"],Backquote:["`","~","",""],Comma:[",","<","\xE7","\xC7"],Period:[".",">","",""],Slash:["/","?","\xBF",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["\\","|","",""]}},f0={id:"linux.en",displayName:"English",platform:"linux",virtualLayout:"qwerty",locale:"en",score:0,mapping:{KeyA:["a","A","a","A"],KeyB:["b","B","b","B"],KeyC:["c","C","c","C"],KeyD:["d","D","d","D"],KeyE:["e","E","e","E"],KeyF:["f","F","f","F"],KeyG:["g","G","g","G"],KeyH:["h","H","h","H"],KeyI:["i","I","i","I"],KeyJ:["j","J","j","J"],KeyK:["k","K","k","K"],KeyL:["l","L","l","L"],KeyM:["m","M","m","M"],KeyN:["n","N","n","N"],KeyO:["o","O","o","O"],KeyP:["p","P","p","P"],KeyQ:["q","Q","q","Q"],KeyR:["r","R","r","R"],KeyS:["s","S","s","S"],KeyT:["t","T","t","T"],KeyU:["u","U","u","U"],KeyV:["v","V","v","V"],KeyW:["w","W","w","W"],KeyX:["x","X","x","X"],KeyY:["y","Y","y","Y"],KeyZ:["z","Z","z","Z"],Digit1:["1","!","1","!"],Digit2:["2","@","2","@"],Digit3:["3","#","3","#"],Digit4:["4","$","4","$"],Digit5:["5","%","5","%"],Digit6:["6","^","6","^"],Digit7:["7","&","7","&"],Digit8:["8","*","8","*"],Digit9:["9","(","9","("],Digit0:["0",")","0",")"],Space:[" "," "," "," "],Minus:["-","_","-","_"],Equal:["=","+","=","+"],BracketLeft:["[","{","[","{"],BracketRight:["]","}","]","}"],Backslash:["\\","|","\\","|"],Semicolon:[";",":",";",":"],Quote:["'",'"',"'",'"'],Backquote:["`","~","`","~"],Comma:[",","<",",","<"],Period:[".",">",".",">"],Slash:["/","?","/","?"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}},Mm={id:"apple.french",locale:"fr",displayName:"French",platform:"apple",virtualLayout:"azerty",score:0,mapping:{KeyA:["q","Q","\u2021","\u03A9"],KeyB:["b","B","\xDF","\u222B"],KeyC:["c","C","\xA9","\xA2"],KeyD:["d","D","\u2202","\u2206"],KeyE:["e","E","\xEA","\xCA"],KeyF:["f","F","\u0192","\xB7"],KeyG:["g","G","\uFB01","\uFB02"],KeyH:["h","H","\xCC","\xCE"],KeyI:["i","I","\xEE","\xEF"],KeyJ:["j","J","\xCF","\xCD"],KeyK:["k","K","\xC8","\xCB"],KeyL:["l","L","\xAC","|"],KeyM:[",","?","\u221E","\xBF"],KeyN:["n","N","~","\u0131"],KeyO:["o","O","\u0153","\u0152"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["a","A","\xE6","\xC6"],KeyR:["r","R","\xAE","\u201A"],KeyS:["s","S","\xD2","\u2211"],KeyT:["t","T","\u2020","\u2122"],KeyU:["u","U","\xBA","\xAA"],KeyV:["v","V","\u25CA","\u221A"],KeyW:["z","Z","\xC2","\xC5"],KeyX:["x","X","\u2248","\u2044"],KeyY:["y","Y","\xDA","\u0178"],KeyZ:["w","W","\u2039","\u203A"],Digit1:["&","1","\uF8FF","\xB4"],Digit2:["\xE9","2","\xEB","\u201E"],Digit3:['"',"3","\u201C","\u201D"],Digit4:["'","4","\u2018","\u2019"],Digit5:["(","5","{","["],Digit6:["\xA7","6","\xB6","\xE5"],Digit7:["\xE8","7","\xAB","\xBB"],Digit8:["!","8","\xA1","\xDB"],Digit9:["\xE7","9","\xC7","\xC1"],Digit0:["\xE0","0","\xF8","\xD8"],Space:[" "," "," "," "],Minus:[")","\xB0","}","]"],Equal:["-","_","\u2014","\u2013"],BracketLeft:["^","\xA8","\xF4","\xD4"],BracketRight:["$","*","\u20AC","\xA5"],Backslash:["`","\xA3","@","#"],Semicolon:["m","M","\xB5","\xD3"],Quote:["\xF9","%","\xD9","\u2030"],Backquote:["<",">","\u2264","\u2265"],Comma:[";",".","\u2026","\u2022"],Period:[":","/","\xF7","\\"],Slash:["=","+","\u2260","\xB1"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",".",",","."],IntlBackslash:["@","#","\u2022","\u0178"],NumpadEqual:["=","=","=","="]}},km={id:"windows.french",locale:"fr",displayName:"French",virtualLayout:"azerty",platform:"windows",score:0,mapping:{KeyA:["q","Q","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:[",","?","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["a","A","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["z","Z","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["w","W","",""],Digit1:["&","1","",""],Digit2:["\xE9","2","~",""],Digit3:['"',"3","#",""],Digit4:["'","4","{",""],Digit5:["(","5","[",""],Digit6:["-","6","|",""],Digit7:["\xE8","7","`",""],Digit8:["_","8","\\",""],Digit9:["\xE7","9","^",""],Digit0:["\xE0","0","@",""],Space:[" "," ","",""],Minus:[")","\xB0","]",""],Equal:["=","+","}",""],BracketLeft:["^","\xA8","",""],BracketRight:["$","\xA3","\xA4",""],Backslash:["*","\xB5","",""],Semicolon:["m","M","",""],Quote:["\xF9","%","",""],Backquote:["\xB2","","",""],Comma:[";",".","",""],Period:[":","/","",""],Slash:["!","\xA7","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}},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:["<",">","|",""]}},Tm={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:[".",".",".","."]}},Im={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"]}},_m={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:["<",">","",""]}},Bm={id:"linux.spanish",locale:"es",displayName:"Spanish",platform:"linux",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","\xE6","\xC6"],KeyB:["b","B","\u201D","\u2019"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\xA2"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0309","\u031B"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:["m","M","\xB5","\xBA"],KeyN:["n","N","n","N"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["q","Q","@","\u03A9"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201C","\u2018"],KeyW:["w","W","\u0142","\u0141"],KeyX:["x","X","\xBB",">"],KeyY:["y","Y","\u2190","\xA5"],KeyZ:["z","Z","\xAB","<"],Digit1:["1","!","|","\xA1"],Digit2:["2",'"',"@","\u215B"],Digit3:["3","\xB7","#","\xA3"],Digit4:["4","$","~","$"],Digit5:["5","%","\xBD","\u215C"],Digit6:["6","&","\xAC","\u215D"],Digit7:["7","/","{","\u215E"],Digit8:["8","(","[","\u2122"],Digit9:["9",")","]","\xB1"],Digit0:["0","=","}","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:["'","?","\\","\xBF"],Equal:["\xA1","\xBF","\u0303","~"],BracketLeft:["\u0300","\u0302","[","\u030A"],BracketRight:["+","*","]","\u0304"],Backslash:["\xE7","\xC7","}","\u0306"],Semicolon:["\xF1","\xD1","~","\u030B"],Quote:["\u0301","\u0308","{","{"],Backquote:["\xBA","\xAA","\\","\\"],Comma:[",",";","\u2500","\xD7"],Period:[".",":","\xB7","\xF7"],Slash:["-","_","\u0323","\u0307"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadEnter:["\r","\r","\r","\r"],Numpad1:["","1","","1"],Numpad2:["","2","","2"],Numpad3:["","3","","3"],Numpad4:["","4","","4"],Numpad5:["","5","","5"],Numpad6:["","6","","6"],Numpad7:["","7","","7"],Numpad8:["","8","","8"],Numpad9:["","9","","9"],Numpad0:["","0","","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}};function h0(a){const y=a.split("+"),b={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:y.pop()};return y.includes("shift")&&(b.shift=!0),y.includes("alt")&&(b.alt=!0),y.includes("ctrl")&&(b.ctrl=!0),y.includes("cmd")&&(b.cmd=!0),y.includes("win")&&(b.win=!0),y.includes("meta")&&(b.meta=!0),b}function Ac(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=[],kd;function gh(){switch(Me()){case"macos":case"ios":return"apple";case"windows":return"windows"}return"linux"}function Rs(a){(!a.platform||a.platform===gh())&&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 Nm(a){if(a.code)return a;const y=Object.entries(Ad().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,pe(Se({},a),{altKey:b,shiftKey:E,code:ee}))}function Rm(a){var y,b;if(!a||a.key==="Unidentified"||a.key==="Dead")return;const E=a.shiftKey&&a.altKey?3:a.altKey?2:a.shiftKey?1:0;for(const ee of 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){kd=Md.find(y=>a.startsWith(y.locale))}function Ad(){return kd!=null?kd:Md[0]}function zm(){switch(gh()){case"apple":return mh;case"windows":return d0;case"linux":return f0}return mh}switch(gh()){case"apple":Rs(mh),Rs(Mm),Rs(Im),Rs(Lm);break;case"windows":Rs(d0),Rs(km),Rs(_m),Rs(Dm);break;case"linux":Rs(f0),Rs(Am),Rs(Bm),Rs(Tm);break}Rs(Em);function vh(a){var y;const b=/macos|ios/.test(Me()),E=a.split("+");let ee="";for(const re of E)ee&&(ee+=b?"\u2009":'<span class="ML__shortcut-join">+</span>'),re.startsWith("[Key")?ee+=re.slice(4,5):re.startsWith("Key")?ee+=re.slice(3,4):re.startsWith("[Digit")?ee+=re.slice(6,7):re.startsWith("Digit")?ee+=re.slice(5,6):ee+=(y={cmd:"\u2318",meta:b?"\u2318":"Ctrl",shift:b?"\u21E7":"Shift",alt:b?"\u2325":"Alt",ctrl:b?"\u2303":"Ctrl","\n":b?"\u23CE":"Return","[return]":b?"\u23CE":"Return","[enter]":b?"\u2324":"Enter","[tab]":b?"\u21E5":"Tab","[escape]":"Esc","[backspace]":b?"\u232B":"Backspace","[delete]":b?"\u2326":"Del","[pageup]":b?"\u21DE":"Page Up","[pagedown]":b?"\u21DF":"Page Down","[home]":b?"\u2912":"Home","[end]":b?"\u2913":"End","[space]":"Space","[equal]":"=","[minus]":"-","[comma]":",","[slash]":"/","[backslash]":"\\","[bracketleft]":"[","[bracketright]":"]",semicolon:";",period:".",comma:",",minus:"-",equal:"=",quote:"'",backslash:"\\",intlbackslash:"\\",backquote:"`",slash:"/",numpadmultiply:"* &#128290;",numpaddivide:"/ &#128290;",numpadsubtract:"- &#128290;",numpadadd:"+ &#128290;",numpaddecimal:". &#128290;",numpadcomma:", &#128290;",help:"help",left:"\u21E0",up:"\u21E1",right:"\u21E2",down:"\u21E3","[arrowleft]":"\u21E0","[arrowup]":"\u21E1","[arrowright]":"\u21E2","[arrowdown]":"\u21E3"}[re.toLowerCase()])!=null?y:re.toUpperCase();return ee}function wf(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 Ru(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 Sf(a){return a.ctrlKey||a.metaKey||["Dead","Process"].includes(a.key)?!1:a.code===""?!0:Km.has(a.code)}function Cf(){var a;let y=document.activeElement;for(;(a=y==null?void 0:y.shadowRoot)!=null&&a.activeElement;)y=y.shadowRoot.activeElement;return y}var wl=class jl{static get scrim(){return jl._scrim||(jl._scrim=new jl),jl._scrim}static open(y){jl.scrim.open(y)}static close(){jl.scrim.close()}static get state(){return jl.scrim.state}static get element(){return jl.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=Cf();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:"",Cf()!==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 me=new AbortController,ye=me.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:ye}),a.addEventListener("keypress",we=>{re||(E&&ee&&b.onKeystroke(E),ee=we)},{capture:!0,signal:ye}),a.addEventListener("compositionstart",we=>{a.textContent="",re=!0,b.onCompositionStart(we.data)},{capture:!0,signal:ye}),a.addEventListener("compositionupdate",we=>{re&&b.onCompositionUpdate(we.data)},{capture:!0,signal:ye}),a.addEventListener("compositionend",we=>{a.textContent="",re&&(re=!1,b.onCompositionEnd(we.data))},{capture:!0,signal:ye}),a.addEventListener("beforeinput",we=>we.stopImmediatePropagation(),{signal:ye}),a.addEventListener("input",we=>{var Re;if(!re&&(a.textContent="",we.inputType!=="insertCompositionText")){if(we.inputType==="insertFromPaste"){we.preventDefault(),we.stopPropagation();return}b.onInput((Re=we.data)!=null?Re:""),we.preventDefault(),we.stopPropagation()}},{signal:ye}),a.addEventListener("paste",we=>{a.focus({preventScroll:!0}),a.textContent="",b.onPaste(we)||we.preventDefault(),we.stopImmediatePropagation()},{signal:ye}),a.addEventListener("cut",we=>b.onCut(we),{capture:!0,signal:ye}),a.addEventListener("copy",we=>b.onCopy(we),{capture:!0,signal:ye}),a.addEventListener("blur",we=>{var Re,Xe;if(((Xe=(Re=we.relatedTarget)==null?void 0:Re._mathfield)==null?void 0:Xe.element)===y){a.focus({preventScroll:!0}),we.preventDefault(),we.stopPropagation();return}const ct=wl.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:ye}),a.addEventListener("focus",we=>{he||ae||(ae=!0,b.onFocus(),ae=!1)},{capture:!0,signal:ye}),{dispose:()=>me.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:()=>Cf()===a,setAriaLabel:we=>a.setAttribute("aria-label",we),setValue:we=>{var Re;a.textContent=we,a.style.left="-1000px",(Re=window.getSelection())==null||Re.selectAllChildren(a)},moveTo:(we,Re)=>{a.style.top=`${Re}px`,a.style.left=`${we}px`}}}function Lc(a){var y;if(!a||!Sf(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=Nm(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 $m(a){if(lt()){const y=Me(),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=Ac(h0(p0(b))),ee=Ac({key:b.key,shift:b.shiftKey,alt:b.altKey,ctrl:b.ctrlKey,meta:b.metaKey||b.ctrlKey&&/macos|ios/.test(Me()),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 Oe(y)&&(y=y.length>0?y[0]+"("+y.slice(1).join("")+")":""),y}function Zm(a,y){let b=[];if(typeof y=="string"){const re=hd[y];Oe(re)?b=re.slice():re&&b.push(re)}const E=m0(y),ee=new RegExp("^"+E.replace("\\","\\\\").replace("|","\\|").replace("*","\\*").replace("$","\\$").replace("^","\\^")+"([^*a-zA-Z]|$)");for(const re of a)ee.test(m0(re.command))&&b.push(re.key);return b.map(vh)}function Um(a,y){if(a.ifPlatform&&!/^!?(macos|windows|android|ios|chromeos|other)$/.test(a.ifPlatform))throw new Error(`Unexpected platform "${a.ifPlatform}" for keybinding ${a.key}`);if(a.ifLayout!==void 0&&(y.score===0||!a.ifLayout.includes(y.id)))return;const b=h0(a.key);let E=a.ifPlatform;if(b.cmd){if(E&&E!=="macos"&&E!=="ios")throw new Error('Unexpected "cmd" modifier with platform "'+E+`"
"cmd" modifier can only be used with macOS or iOS platform.`);E||(E=Me()==="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&&!$m(E))return;if(/^\[.+\]$/.test(b.key))return pe(Se({},a),{key:Ac(b)});const ee=Om(b.key,y);if(!ee)return pe(Se({},a),{key:Ac(b)});if(ee.shift&&b.shift||ee.alt&&b.alt)throw new Error(`The keybinding ${a.key} (${yh(a.command)}) is conflicting with the key combination ${Ac(ee)} using the ${y.displayName} keyboard layout`);return ee.shift=ee.shift||b.shift,ee.alt=ee.alt||b.alt,ee.meta=b.meta,ee.ctrl=b.ctrl,pe(Se({},a),{key:Ac(ee)})}function yh(a){if(Array.isArray(a)){const y=[...a];return y.shift()+"("+y.map(b=>typeof b=="string"?`"${b}"`:b.toString()).join(", ")+")"}return a}function Gm(a,y){const b=[],E=[];for(const ee of a)try{const re=Um(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} (${yh(ee.command)}) matches ${ae.key} (${yh(ae.command)}) with the ${y.displayName} keyboard layout`);E.push(re)}catch(re){re instanceof Error&&b.push(re.message)}return[E,b]}var jm=class extends Wi{constructor(){super("latex")}createAtom(a){return new ns(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"}),Eo(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(Go(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 me of y)se.test(me)&&re.push(new ns(me));let ae=a.at(a.position);if(ae instanceof xd&&(ae=ae.lastChild),!(ae.parent instanceof xd)){const me=new xd("");ae.parent.addChildAfter(me,ae),ae=me.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 Ld(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 me=a.at(E);ee=me instanceof ns&&me.isSuggestion,ee||E++}if(!ee)return[void 0,void 0];let ae=E,he=!1;for(;ae<=re&&!he;){const me=a.at(ae);he=!(me instanceof ns&&me.isSuggestion),he||ae++}return[E-1,ae-1]}new jm;function Ef(a){const y=Ld(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 Dd(a,y){var b;const{model:E}=a;Ef(a);for(const we of Ld(E))we.isError=!1;if(!E.selectionIsCollapsed||a.options.popoverPolicy==="off"){Tc(a);return}const ee=[];let re=E.at(E.position);for(;re&&re instanceof ns&&/^[a-zA-Z\*]$/.test(re.value);)re=re.leftSibling;if(re&&re instanceof ns&&re.value==="\\")for(ee.push(re),re=re.rightSibling;re&&re instanceof ns&&/^[a-zA-Z\*]$/.test(re.value);)ee.push(re),re=re.rightSibling;const ae=ee.map(we=>we.value).join(""),he=At(a,ae);if(he.length===0){if(/^\\[a-zA-Z\*]+$/.test(ae))for(const we of ee)we.isError=!0;Tc(a);return}const me=(b=y==null?void 0:y.atIndex)!=null?b:0;a.suggestionIndex=me<0?he.length-1:me%he.length;const ye=he[a.suggestionIndex];if(ye!==ae){const we=ee[ee.length-1];we.parent.addChildrenAfter([...ye.slice(ae.length-ye.length)].map(Re=>new ns(Re,{isSuggestion:!0})),we),Fu(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 Dc(a,y="accept",b){var E,ee;Tc(a);const re=Xm(a.model);if(!re)return!1;if(y==="accept-suggestion"||y==="accept-all"){const ye=Ld(a.model).filter(we=>we.isSuggestion);if(ye.length!==0){for(const we of ye)we.isSuggestion=!1;a.model.position=a.model.offsetOf(ye[ye.length-1])}if(y==="accept-suggestion")return ye.length!==0}const he=Ld(a.model).filter(ye=>!ye.isSuggestion).map(ye=>ye.value).join(""),me=re.leftSibling;return re.parent.removeChild(re),a.model.position=a.model.offsetOf(me),a.switchMode((E=b==null?void 0:b.mode)!=null?E:"math"),y==="reject"||(Wi.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 Mf(a){var y;let b=document.getElementById(a);return b?b.dataset.refcount=Number(Number.parseInt((y=b.dataset.refcount)!=null?y:"0")+1).toString():(b=document.createElement("div"),b.setAttribute("aria-hidden","true"),b.dataset.refcount="1",b.id=a,document.body.append(b)),b}function bh(a){var y;const b=document.getElementById(a);if(!b)return;const E=Number.parseInt((y=b.getAttribute("data-refcount"))!=null?y:"0");E<=1?b.remove():b.dataset.refcount=Number(E-1).toString()}function Ym(a,y){const b=new Ma({from:a.context}),E=new Bn({mode:"math",type:"root",body:Xo(y,{context:b})}),ee=gc(Cd(new fr(E.render(b),{classes:"ML__base"}),b));return vc(ee,{classes:"ML__latex"}).toMarkup()}function qm(a,y){var b;if(y.length===0){Tc(a);return}let E="";for(const[re,ae]of y.entries()){const he=ae,me=Ym(a,ae),ye=Zm(a.keybindings,he).join("<br>");E+=`<li role="button" data-command="${he}" ${re===a.suggestionIndex?"class=ML__popover__current":""}><span class="ML__popover__latex">${he}</span><span class="ML__popover__command">${me}</span>`,ye&&(E+=`<span class="ML__popover__keybinding">${ye}</span>`),E+="</li>"}const ee=Qm(a,`<ul>${E}</ul>`);xh()&&((b=ee.querySelector(".ML__popover__current"))==null||b.scrollIntoView({block:"nearest",inline:"nearest"})),setTimeout(()=>{var re;ee&&!xh()&&(ee.classList.add("is-visible"),kf(a),(re=ee.querySelector(".ML__popover__current"))==null||re.scrollIntoView({block:"nearest",inline:"nearest"}))},32)}function xh(){const a=document.getElementById("mathlive-suggestion-popover");return a?a.classList.contains("is-visible"):!1}function kf(a,y){var b;if(!a.element||a.element.mathfield!==a||!xh())return;if(((b=a.model.at(a.model.position))==null?void 0:b.type)!=="latex"){Tc(a);return}if(y!=null&&y.deferred){setTimeout(()=>kf(a),32);return}const E=bl(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,me=window.mathVirtualKeyboard.boundingRect.height,ye=document.getElementById("mathlive-suggestion-popover");E.x+ye.offsetWidth/2>re-ae?ye.style.left=`${re-ye.offsetWidth-ae}px`:E.x-ye.offsetWidth/2<0?ye.style.left="0":ye.style.left=`${E.x-ye.offsetWidth/2}px`;const we=E.y-E.height;ee-he-me-E.y<we?(ye.classList.add("ML__popover--reverse-direction"),ye.classList.remove("top-tip"),ye.classList.add("bottom-tip"),ye.style.top=`${E.y-E.height-ye.offsetHeight-15}px`):(ye.classList.remove("ML__popover--reverse-direction"),ye.classList.add("top-tip"),ye.classList.remove("bottom-tip"),ye.style.top=`${E.y+15}px`)}function Tc(a){a.suggestionIndex=0;const y=document.getElementById("mathlive-suggestion-popover");y&&(y.classList.remove("is-visible"),y.innerHTML="")}function Qm(a,y){let b=document.getElementById("mathlive-suggestion-popover");return b||(b=Mf("mathlive-suggestion-popover"),As("suggestion-popover"),As("core"),b.addEventListener("pointerdown",E=>E.preventDefault()),b.addEventListener("click",E=>{let ee=E.target;for(;ee&&!ee.dataset.command;)ee=ee.parentElement;ee&&(Dc(a,"reject"),Wi.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")&&(bh("mathlive-suggestion-popover"),x("suggestion-popover"),x("core"))}function eg(){const a=String(new Error().stack).replace(/^Error.*\n/,"").split(`
`);if(a.length===0)return console.error(`Can't use relative paths to specify assets location because the sourcefile location could not be determined (unexpected stack trace format "${new Error().stack}").`),"";let y=a[1],b=y.match(/http.*\.ts[\?:]/);return b&&(y=a[2]),b=y.match(/(https?:.*):[0-9]+:[0-9]+/),b||(b=y.match(/at (.*(\.ts))[\?:]/),b||(b=y.match(/at (.*(\.mjs|\.js))[\?:]/))),b?b[1]:(console.error(a),console.error(`Can't use relative paths to specify assets location because the source file location could not be determined (unexpected location "${y}").`),"")}var Af=null,y0,b0,wh=((b0=(y0=globalThis==null?void 0:globalThis.document)==null?void 0:y0.currentScript)==null?void 0:b0.src)||eg();function x0(a){return gu(this,null,function*(){if(/^(?:[a-z+]+:)?\/\//i.test(a))return new URL(a).href;if(Af===null)try{const y=yield fetch(wh,{method:"HEAD"});y.status===200&&(Af=y.url)}catch(y){console.error(`Invalid URL "${a}" (relative to "${wh}")`)}return new URL(a,Af!=null?Af:wh).href})}function tg(a,y,b={}){return new FontFace(a,`url(${y}.woff2) format('woff2')`,b)}var Fs="not-loaded";function ng(){return gu(this,null,function*(){return Fs="not-loaded",Lf()})}function Lf(){return gu(this,null,function*(){var a;if(Fs!=="not-loaded")return;if(Fs="loading",(a=getComputedStyle(document.documentElement).getPropertyValue("--ML__static-fonts"))!=null?a:!1){Fs="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))){Fs="ready";return}if(!window.MathfieldElement.fontsDirectory){Fs="not-loaded";return}const ee=yield x0(window.MathfieldElement.fontsDirectory);if(!ee){document.body.classList.add("ML__fonts-did-not-load"),Fs="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(me){}}))).forEach(he=>document.fonts.add(he)),Fs="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")}Fs="error"}})}function rg(a){let y=0;for(let b=0;b<a.length;b++)y=y*31+a.charCodeAt(b),y=y|0;return Math.abs(y)}function Eo(a,y){a&&(a.dirty||(a.dirty=!0,requestAnimationFrame(()=>{Os(a)&&a.dirty&&(a.atomBoundsCache=new Map,Fu(a,y),a.atomBoundsCache=void 0)})))}function ig(a,y){var b;y=y!=null?y:{};const E=new Ma({from:pe(Se({},a.context),{atomIdsSettings:{seed:y.forHighlighting?rg(Bn.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 vc(Cd(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 Fu(a,y){if(!Os(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 me=a.options.contentPlaceholder;me&&(ae+=`<span part=placeholder class="ML__content-placeholder">${Yo(me)}</span>`)}E.innerHTML=window.MathfieldElement.createHTML(ae),Df(a,y.interactive),a.dirty=!1}function Df(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)&&Fs!=="error"&&Fs!=="ready"&&setTimeout(()=>{Fs==="ready"?Df(a):setTimeout(()=>Df(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){kf(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 me=md(a,lu(a,he),ae);if(me){me.left/=ae,me.right/=ae,me.top/=ae,me.bottom/=ae;const ye=document.createElement("div");ye.classList.add("ML__contains-highlight"),ye.style.position="absolute",ye.style.left=`${me.left+1}px`,ye.style.top=`${Math.ceil(me.top)}px`,ye.style.width=`${Math.ceil(me.right-me.left)}px`,ye.style.height=`${Math.ceil(me.bottom-me.top)}px`,b.insertBefore(ye,b.childNodes[0])}}return}for(const he of ag(vd(a,{excludeAtomsWithBackground:!0}))){he.left/=ae,he.right/=ae,he.top/=ae,he.bottom/=ae;const me=document.createElement("div");me.classList.add("ML__selection"),me.style.position="absolute",me.style.left=`${he.left}px`,me.style.top=`${he.top}px`,me.style.width=`${Math.ceil(he.right-he.left)}px`,me.style.height=`${Math.ceil(he.bottom-he.top-1)}px`,b.insertBefore(me,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,Sl;function Ls(a,y){y=Se({target:"mathfield",canUndo:!1,audioFeedback:void 0,changeContent:!1,changeSelection:!1},y!=null?y:{}),Sl||(Sl={});for(const b of Object.keys(a))console.assert(!Sl[b],"Selector already defined: ",b),Sl[b]=pe(Se({},y),{fn:a[b]})}function Sh(a){let y;if(Array.isArray(a)){if(a[0]==="performWithFeedback")return Sh(a[1]);y=a[0]}else y=a;return y=y.replace(/-\w/g,b=>b[1].toUpperCase()),Sl[y]}function Ic(a){var y;return(y=Sh(a))==null?void 0:y.target}function og(a,y){var b;if(!y)return!1;let E,ee=[],re=!1,ae=!1;Oe(y)?(E=y[0],ee=y.slice(1)):E=y,E=E.replace(/-\w/g,ye=>ye[1].toUpperCase());const he=Sl[E],me=he==null?void 0:he.target;if(me==="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)||Ef(a),Sl[E].fn(a.model,...ee),Dd(a),ae=!0,re=!0}else if(me==="virtual-keyboard")ae=(b=window.mathVirtualKeyboard.executeCommand(y))!=null?b:!1,re=!0;else if(Sl[E]){if(!a.isSelectionEditable&&(he!=null&&he.changeContent))return a.model.announce("plonk"),!1;/^(undo|redo)/.test(E)&&a.flushInlineShortcutBuffer(),ae=Sl[E].fn(a,...ee),re=!0}else throw new Error(`Unknown command "${E}"`);return me!=="virtual-keyboard"&&(!a.model.selectionIsCollapsed||he!=null&&he.changeSelection&&y!=="deleteBackward")&&(a.flushInlineShortcutBuffer(),he!=null&&he.changeContent||a.stopCoalescingUndo(),a.defaultStyle={}),ae&&Eo(a),re}function sg(a,y){var b;if(!a)return!1;a.focus(),vp.keypressVibration&&Ge()&&navigator.vibrate(S0);const E=Sh(y);window.MathfieldElement.playSound((b=E==null?void 0:E.audioFeedback)!=null?b:"keypress");const ee=a.executeCommand(y);return a.scrollIntoView(),ee}Ls({performWithFeedback:(a,y)=>sg(a,y)});function lg(a){return Dd(a,{atIndex:a.suggestionIndex+1}),!1}function ug(a){return Dd(a,{atIndex:a.suggestionIndex-1}),!1}Ls({complete:Dc},{target:"mathfield",audioFeedback:"return",canUndo:!0,changeContent:!0,changeSelection:!0}),Ls({nextSuggestion:lg,previousSuggestion:ug},{target:"mathfield",audioFeedback:"keypress",changeSelection:!0});var Tf="mathlive#virtual-keyboard-message";function Ch(a){var y;return a.type!=="message"?!1:((y=a.data)==null?void 0:y.type)===Tf}var cg=class em{constructor(){this.targetOrigin=window.origin,this.originValidator="none",this._boundingRect=new DOMRect(0,0,0,0),this._isShifted=!1,window.addEventListener("message",this),this.sendMessage("proxy-created"),this.listeners={}}static get singleton(){return this._singleton||(this._singleton=new em),this._singleton}set alphabeticLayout(y){this.sendMessage("update-setting",{alphabeticLayout:y})}set layouts(y){this.sendMessage("update-setting",{layouts:y})}get normalizedLayouts(){return[]}set editToolbar(y){this.sendMessage("update-setting",{editToolbar:y})}set actionKeycap(y){this.sendMessage("update-setting",{actionKeycap:y})}set shiftKeycap(y){this.sendMessage("update-setting",{shiftKeycap:y})}set backspaceKeycap(y){this.sendMessage("update-setting",{backspaceKeycap:y})}set tabKeycap(y){this.sendMessage("update-setting",{tabKeycap:y})}set container(y){throw new Error("Container inside an iframe cannot be changed")}show(y){this.sendMessage("show",y)}hide(y){this.sendMessage("hide",y)}get isShifted(){return this._isShifted}get visible(){return this._boundingRect.height>0}set visible(y){y?this.show():this.hide()}get boundingRect(){return this._boundingRect}executeCommand(y){return this.sendMessage("execute-command",{command:y}),!0}updateToolbar(y){this.sendMessage("update-toolbar",y)}update(y){this.sendMessage("update-setting",y)}connect(){this.sendMessage("connect")}disconnect(){this.sendMessage("disconnect")}addEventListener(y,b,E){this.listeners[y]||(this.listeners[y]=new Set),this.listeners[y].has(b)||this.listeners[y].add(b)}dispatchEvent(y){return!this.listeners[y.type]||this.listeners[y.type].size===0?!0:(this.listeners[y.type].forEach(b=>{typeof b=="function"?b(y):b==null||b.handleEvent(y)}),!y.defaultPrevented)}removeEventListener(y,b,E){this.listeners[y]&&this.listeners[y].delete(b)}handleEvent(y){if(Ch(y)){if(!yd(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;Ic(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(Se({type:Tf,action:y},b),this.targetOrigin)}},C0={numeric:{label:"123",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.numeric",rows:[[{latex:"x",shift:"y",variants:["y","z","t","r","x^2","x^n","x^{#?}","x_n","x_i","x_{#?}",{latex:"f(#?)",class:"small"},{latex:"g(#?)",class:"small"}]},{latex:"n",shift:"a",variants:["i","j","p","k","a","u"]},"[separator-5]","[7]","[8]","[9]","[/]","[separator-5]",{latex:"\\exponentialE",shift:"\\ln",variants:["\\exp","\\times 10^{#?}","\\ln","\\log_{10}","\\log"]},{latex:"\\imaginaryI",variants:["\\Re","\\Im","\\imaginaryJ","\\Vert #0 \\Vert"]},{latex:"\\pi",shift:"\\sin",variants:["\\prod",{latex:"\\theta",aside:"theta"},{latex:"\\rho",aside:"rho"},{latex:"\\tau",aside:"tau"},"\\sin","\\cos","\\tan"]}],[{label:"<",latex:"<",class:"hide-shift",shift:{latex:"\\le",label:"\u2264"}},{label:">",latex:">",class:"hide-shift",shift:{latex:"\\ge",label:"\u2265"}},"[separator-5]","[4]","[5]","[6]","[*]","[separator-5]",{class:"hide-shift",latex:"#@^2}",shift:"#@^{\\prime}}"},{latex:"#@^{#0}}",class:"hide-shift",shift:"#@_{#?}"},{class:"hide-shift",latex:"\\sqrt{#0}",shift:{latex:"\\sqrt[#0]{#?}}"}}],["[(]","[)]","[separator-5]","[1]","[2]","[3]","[-]","[separator-5]",{latex:"\\int^{\\infty}_{0}\\!#?\\,\\mathrm{d}x",class:"small hide-shift",shift:"\\int",variants:[{latex:"\\int_{#?}^{#?}",class:"small"},{latex:"\\int",class:"small"},{latex:"\\iint",class:"small"},{latex:"\\iiint",class:"small"},{latex:"\\oint",class:"small"},"\\mathrm{d}x",{latex:"\\dfrac{\\mathrm{d}}{\\mathrm{d} x}",class:"small"},{latex:"\\frac{\\partial}{\\partial x}",class:"small"},"\\partial"]},{class:"hide-shift",latex:"\\forall",shift:"\\exists"},{label:"[backspace]",width:1}],[{label:"[shift]",width:2},"[separator-5]","[0]","[.]","[=]","[+]","[separator-5]","[left]","[right]",{label:"[action]",width:1}]]},greek:{label:"&alpha;&beta;&gamma;",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.greek",rows:[[{label:"<i>&#x03c6;</i>",class:"MLK__tex hide-shift",insert:"\\varphi",aside:"phi var.",shift:"\\Phi"},{label:"<i>&#x03c2;</i>",class:"MLK__tex hide-shift",insert:"\\varsigma",aside:"sigma var.",shift:"\\Sigma"},{label:"<i>&#x03f5;</i>",class:"MLK__tex hide-shift",insert:"\\epsilon",aside:"espilon",shift:'\\char"0190'},{label:"<i>&rho;</i>",class:"MLK__tex hide-shift",insert:"\\rho",aside:"rho",shift:'\\char"3A1'},{label:"<i>&tau;</i>",class:"MLK__tex hide-shift",insert:"\\tau",aside:"tau",shift:'\\char"3A4'},{label:"<i>&upsilon;</i>",class:"MLK__tex hide-shift",insert:"\\upsilon",aside:"upsilon",shift:"\\Upsilon"},{label:"<i>&theta;</i>",class:"MLK__tex hide-shift",insert:"\\theta",aside:"theta",shift:"\\Theta"},{label:"<i>&iota;</i>",class:"MLK__tex hide-shift",insert:"\\iota",aside:"iota",shift:'\\char"399'},{label:"<i>&omicron;</i>",class:"MLK__tex hide-shift",insert:"\\omicron",aside:"omicron",shift:'\\char"39F'},{label:"<i>&pi;</i>",class:"MLK__tex hide-shift",insert:"\\pi",aside:"pi",shift:"\\Pi"}],["[separator-5]",{label:"<i>&alpha;</i>",class:"MLK__tex hide-shift",insert:"\\alpha",aside:"alpha",shift:'\\char"391'},{label:"<i>&sigma;</i>",class:"MLK__tex hide-shift",insert:"\\sigma",aside:"sigma",shift:"\\Sigma"},{label:"<i>&delta;</i>",class:"MLK__tex hide-shift",insert:"\\delta",aside:"delta",shift:"\\Delta"},{latex:"\\phi",class:"MLK__tex hide-shift",insert:"\\phi",aside:"phi",shift:"\\Phi"},{label:"<i>&gamma;</i>",class:"MLK__tex hide-shift",insert:"\\gamma",aside:"gamma",shift:"\\Gamma"},{label:"<i>&eta;</i>",class:"MLK__tex hide-shift",insert:"\\eta",aside:"eta",shift:'\\char"397'},{label:"<i>&xi;</i>",class:"MLK__tex hide-shift",insert:"\\xi",aside:"xi",shift:"\\Xi"},{label:"<i>&kappa;</i>",class:"MLK__tex hide-shift",insert:"\\kappa",aside:"kappa",shift:"\\Kappa"},{label:"<i>&lambda;</i>",class:"MLK__tex hide-shift",insert:"\\lambda",aside:"lambda",shift:"\\Lambda"},"[separator-5]"],["[shift]",{label:"<i>&zeta;</i>",class:"MLK__tex hide-shift",insert:"\\zeta",aside:"zeta",shift:'\\char"396'},{label:"<i>&chi;</i>",class:"MLK__tex hide-shift",insert:"\\chi",aside:"chi",shift:'\\char"3A7'},{label:"<i>&psi;</i>",class:"MLK__tex hide-shift",insert:"\\psi",aside:"zeta",shift:"\\Psi"},{label:"<i>&omega;</i>",class:"MLK__tex hide-shift",insert:"\\omega",aside:"omega",shift:"\\Omega"},{label:"<i>&beta;</i>",class:"MLK__tex hide-shift",insert:"\\beta",aside:"beta",shift:'\\char"392'},{label:"<i>&nu;</i>",class:"MLK__tex hide-shift",insert:"\\nu",aside:"nu",shift:'\\char"39D'},{label:"<i>&mu;</i>",class:"MLK__tex hide-shift",insert:"\\mu",aside:"mu",shift:'\\char"39C'},"[backspace]"],["[separator]",{label:"<i>&#x03b5;</i>",class:"MLK__tex",insert:"\\varepsilon",aside:"espilon var."},{label:"<i>&#x03d1;</i>",class:"MLK__tex",insert:"\\vartheta",aside:"theta var."},{label:"<i>&#x3f0;</i>",class:"MLK__tex",insert:"\\varkappa",aside:"kappa var."},{label:"<i>&#x03d6;</i>",class:"MLK__tex",insert:"\\varpi",aside:"pi var."},{label:"<i>&#x03f1;</i>",class:"MLK__tex",insert:"\\varrho",aside:"rho var."},"[left]","[right]","[action]"]]},symbols:{label:"&infin;\u2260\u2208",labelClass:"MLK__tex",tooltip:"keyboard.tooltip.symbols",rows:[[{latex:"\\sin",shift:"\\sin^{-1}",variants:[{class:"small",latex:"\\sinh"},{class:"small",latex:"\\sin^{-1}"},{class:"small",latex:"\\arsinh"}]},"\\ln",{latex:"\\mathrm{abs}",insert:"\\mathrm{abs}\\left(#0\\right)"},{latex:"\\rarr",shift:"\\rArr",variants:[{latex:"\\implies",aside:"implies"},{latex:"\\to",aside:"to"},"\\dashv",{latex:"\\roundimplies",aside:"round implies"}]},{latex:"\\exists",variants:["\\nexists"],shift:"\\nexists"},{latex:"\\in",shift:"\\notin",variants:["\\notin","\\owns"]},"\\cup",{latex:"\\overrightarrow{#@}",shift:"\\overleftarrow{#@}",variants:["\\overleftarrow{#@}","\\bar{#@}","\\vec{#@}","\\hat{#@}","\\check{#@}","\\dot{#@}","\\ddot{#@}","\\mathring{#@}","\\breve{#@}","\\acute{#@}","\\tilde{#@}","\\grave{#@}"]},{class:"small",latex:"\\lim_{#?}",shift:"\\lim_{x\\to\\infty}",variants:[{class:"small",latex:"\\liminf_{#?}"},{class:"small",latex:"\\limsup_{#?}"}]},"\\exponentialE"],[{latex:"\\cos",shift:"\\cos^{-1}",variants:[{class:"small",latex:"\\cosh"},{class:"small",latex:"\\cos^{-1}"},{class:"small",latex:"\\arcosh"}]},{latex:"\\log",shift:"\\log_{10}",variants:["\\log_{#0}","\\log_{10}"]},"\\left\\vert#0\\right\\vert",{latex:"\\larr",shift:"\\lArr",variants:[{latex:"\\impliedby",aside:"implied by"},{latex:"\\gets",aside:"gets"},"\\lArr","\\vdash",{latex:"\\models",aside:"models"}]},{latex:"\\forall",shift:"\\lnot",variants:[{latex:"\\land",aside:"and"},{latex:"\\lor",aside:"or"},{latex:"\\oplus",aside:"xor"},{latex:"\\lnot",aside:"not"},{latex:"\\downarrow",aside:"nor"},{latex:"\\uparrow",aside:"nand"},{latex:"\\curlywedge",aside:"nor"},{latex:"\\bar\\curlywedge",aside:"nand"}]},{latex:"\\ni",shift:"\\not\\owns"},"\\cap",{latex:"\\overline{#@}",shift:"\\underline{#@}",variants:["\\overbrace{#@}","\\overlinesegment{#@}","\\overleftrightarrow{#@}","\\overrightarrow{#@}","\\overleftarrow{#@}","\\overgroup{#@}","\\underbrace{#@}","\\underlinesegment{#@}","\\underleftrightarrow{#@}","\\underrightarrow{#@}","\\underleftarrow{#@}","\\undergroup{#@}"]},{class:"hide-shift",latex:"\\int",shift:"\\iint",variants:[{latex:"\\int_{#?}^{#?}",class:"small"},{latex:"\\int",class:"small"},{latex:"\\smallint",class:"small"},{latex:"\\iint",class:"small"},{latex:"\\iiint",class:"small"},{latex:"\\oint",class:"small"},"\\intop","\\iiint","\\oiint","\\oiiint","\\intclockwise","\\varointclockwise","\\ointctrclockwise","\\intctrclockwise"]},{latex:"\\pi",shift:"\\tau",variants:["\\tau"]}],[{latex:"\\tan",shift:"\\tan^{-1}",variants:[{class:"small",latex:"\\tanh"},{class:"small",latex:"\\tan^{-1}"},{class:"small",latex:"\\artanh"},{class:"small",latex:"\\arctan"},{class:"small",latex:"\\arctg"},{class:"small",latex:"\\tg"}]},{latex:"\\exp",insert:"\\exp\\left(#0\\right)",variants:["\\exponentialE^{#0}"]},"\\left\\Vert#0\\right\\Vert",{latex:"\\lrArr",shift:"\\leftrightarrow",variants:[{latex:"\\iff",aside:"if and only if"},"\\leftrightarrow","\\leftrightarrows","\\Leftrightarrow",{latex:"^\\biconditional",aside:"biconditional"}]},{latex:"\\vert",shift:"!"},{latex:"#@^{\\complement}",aside:"complement",variants:[{latex:"\\setminus",aside:"set minus"},{latex:"\\smallsetminus",aside:"small set minus"}]},{latex:"\\subset",shift:"\\subseteq",variants:["\\subset","\\subseteq","\\subsetneq","\\varsubsetneq","\\subsetneqq","\\nsubset","\\nsubseteq","\\supset","\\supseteq","\\supsetneq","\\supsetneqq","\\nsupset","\\nsupseteq"]},{latex:"#@^{\\prime}",shift:"#@^{\\doubleprime}",variants:["#@^{\\doubleprime}","#@\\degree"]},{latex:"\\mathrm{d}",shift:"\\partial",variants:["\\mathrm{d}x",{latex:"\\dfrac{\\mathrm{d}}{\\mathrm{d} x}",class:"small"},{latex:"\\frac{\\partial}{\\partial x}",class:"small"},"\\partial"]},{latex:"\\infty",variants:["\\aleph_0","\\aleph_1","\\omega","\\mathfrak{m}"]}],[{label:"[shift]",width:2},{class:"box",latex:",",shift:";",variants:[";","?"]},{class:"box",latex:"\\colon",shift:"\\Colon",variants:[{latex:"\\Colon",aside:"such that",class:"box"},{latex:":",aside:"ratio",class:"box"},{latex:"\\vdots",aside:"",class:"box"},{latex:"\\ddots",aside:"",class:"box"},{latex:"\\ldotp",aside:"low dot",class:"box"},{latex:"\\cdotp",aside:"center dot",class:"box"},{latex:"\\ldots",aside:"low ellipsis",class:"box"},{latex:"\\cdots",aside:"center ellipsis",class:"box"},{latex:"\\therefore",aside:"therefore",class:"box"},{latex:"\\because",aside:"because",class:"box"}]},{class:"box",latex:"\\cdot",aside:"centered dot",shift:"\\ast",variants:["\\circ","\\bigcirc","\\bullet","\\odot","\\oslash","\\circledcirc","\\ast","\\star","\\times","\\doteq","\\doteqdot"]},"[separator]","[left]","[right]",{label:"[backspace]",width:1,class:"action hide-shift"},{label:"[action]",width:1}]]},compact:{label:"compact",rows:[["[+]","[-]","[*]","[/]","[=]","[.]","[(]","[)]","\\sqrt{#0}","#@^{#?}"],["[1]","[2]","[3]","[4]","[5]","[6]","[7]","[8]","[9]","[0]"],["[hr]"],["[undo]","[redo]","[separator]","[separator]","[separator]","[left]","[right]",{label:"[backspace]",class:"action hide-shift"},"[hide-keyboard]"]]},minimalist:{label:"minimalist",layers:[{style:`
.minimalist-backdrop {
display: flex;
justify-content: center;
}
.minimalist-container {
--keycap-height: 40px;
--keycap-max-width: 53px;
--keycap-small-font-size: 12px;
background: var(--keyboard-background);
padding: 20px;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
border: 1px solid var(--keyboard-border);
box-shadow: 0 0 32px rgb(0 0 0 / 30%);
}
`,backdrop:"minimalist-backdrop",container:"minimalist-container",rows:[["+","-","\\times",{latex:"\\frac{#@}{#0}",class:"small"},"=","[.]","(",")",{latex:"\\sqrt{#0}",class:"small"},{latex:"#@^{#?}",class:"small"}],["1","2","3","4","5","6","7","8","9","0"],["[hr]"],["[undo]","[redo]","[separator]","[separator]","[separator]","[left]","[right]",{label:"[backspace]",class:"action hide-shift"},"[hide-keyboard]"]]}]},"numeric-only":{label:"123",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.numeric",id:"numeric-only",rows:[["7","8","9","[separator]",{label:"[backspace]",width:2}],["4","5","6","[separator]","[separator]","[separator]"],["1","2","3","[separator]","[separator]","[separator]"],["0",{label:"[.]",variants:[]},"-","[separator]","[left]","[right]"]]}},If={0:["\\varnothing","\\infty"],1:["\\frac{1}{#@}","#@^{-1}","\\times 10^{#?}","\\phi","\\imaginaryI"],2:["\\frac{1}{2}","#@^2","\\sqrt2","\\exponentialE"],3:["\\frac{1}{3}","#@^3","\\sqrt3","\\pi"],4:["\\frac{1}{4}","#@^4"],5:["\\frac{1}{5}","#@^5","\\sqrt5"],6:["\\frac{1}{6}","#@^6"],7:["\\frac{1}{7}","#@^7"],8:["\\frac{1}{8}","#@^8"],9:["\\frac{1}{9}","#@^9"],".":[".",",",";","\\colon"],",":["{,}",".",";","\\colon"],a:[{latex:"\\aleph",aside:"aleph"},{latex:"\\forall",aside:"for all"},"\xE0","\xE1","\xE2","\xE4","\xE6"],b:[{latex:"\\beth",aside:"beth"}],c:[{latex:"\\C",aside:"set of complex numbers"},"\xE7"],d:[{latex:"\\daleth",aside:"daleth"}],e:[{latex:"\\exponentialE",aside:"exponential e"},{latex:"\\exists",aside:"there is"},{latex:"\\nexists",aside:"there isn\u2019t"},"\xE8","\xE9","\xEA","\xEB"],g:[{latex:"\\gimel",aside:"gimel"}],h:[{latex:"\\hbar",aside:"h bar"},{latex:"\\hslash",aside:"h slash"}],i:[{latex:"\\imaginaryI",aside:"imaginary i"},"\xEC","\xED","\xEE","\xEF"],j:[{latex:"\\imaginaryJ",aside:"imaginary j"}],l:[{latex:"\\ell",aside:"ell"}],n:[{latex:"\\mathbb{N}",aside:"set of natural numbers"},"\xF1"],o:["\xF8","\u0153","\xF2","\xF3","\xF4","\xF6","\u0153"],p:[{latex:"\\mathbb{P}",aside:"set of primes"}],q:[{latex:"\\mathbb{Q}",aside:"set of rational numbers"}],r:[{latex:"\\mathbb{R}",aside:"set of real numbers"}],u:["\xF9","\xFA","\xFB","\xFC"],z:[{latex:"\\mathbb{Z}",aside:"set of integers"}],y:["\xFD","\xFF"],space:[{latex:'\\char"203A\\!\\char"2039',insert:"\\!",aside:"negative thin space<br>\u207B\xB3\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\,\\char"2039',insert:"\\,",aside:"thin space<br>\xB3\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\:\\char"2039',insert:"\\:",aside:"medium space<br>\u2074\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\;\\char"2039',insert:"\\;",aside:"thick space<br>\u2075\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\ \\char"2039',insert:"\\ ",aside:"\u2153 em"},{latex:'\\char"203A\\enspace\\char"2039',insert:"\\enspace",aside:"\xBD em"},{latex:'\\char"203A\\quad\\char"2039',insert:"\\quad",aside:"1 em"},{latex:'\\char"203A\\qquad\\char"2039',insert:"\\qquad",aside:"2 em"}]},Td;function E0(a,y){var b,E,ee;const re=fu.singleton;if(!re)return;const ae=_c(a),he=(E=(b=re.getKeycap(ae==null?void 0:ae.id))==null?void 0:b.variants)!=null?E:"";if(typeof he=="string"&&!M0(he)||Array.isArray(he)&&he.length===0){y==null||y();return}const me={};let ye="";for(const mn of fg(he)){const cr=A0(mn),un=Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);me[un]=cr;const[Zn,pr]=_f(cr);ye+=`<div id=${un} class="item ${pr}">${Zn}</div>`}const we=document.createElement("div");we.setAttribute("aria-hidden","true"),we.className="MLK__variant-panel",we.style.height="auto";const Re=Object.keys(me).length;let Xe=5;Re===1?Xe=1:Re===2||Re===4?Xe=2:Re===3||Re===5||Re===6?Xe=3:Re>=7&&Re<14&&(Xe=4),we.style.width=`calc(var(--variant-keycap-length) * ${Xe} + 12px)`,we.innerHTML=vp.createHTML(ye),wl.open({root:(ee=re==null?void 0:re.container)==null?void 0:ee.querySelector(".ML__keyboard"),child:we}),Td=new AbortController;const{signal:ct}=Td,xt=a==null?void 0:a.getBoundingClientRect();if(xt){xt.top-we.clientHeight<0&&(we.style.width="auto",Re<=6?we.style.height="56px":Re<=12?we.style.height="108px":Re<=18?we.style.height="205px":we.classList.add("compact"));const mn=Math.max(0,Math.min(window.innerWidth-we.offsetWidth,(xt.left+xt.right-we.offsetWidth)/2)),cr=xt.top-we.clientHeight+5;we.style.transform=`translate(${mn}px, ${cr}px)`,we.classList.add("is-visible"),requestAnimationFrame(()=>{we.addEventListener("pointerup",un=>{const Zn=_c(un.target);!(Zn!=null&&Zn.id)||!me[Zn.id]||(Eh(me[Zn.id]),Id(),y==null||y(),un.preventDefault())},{capture:!0,passive:!1,signal:ct}),we.addEventListener("pointerenter",un=>{const Zn=_c(un.target);!(Zn!=null&&Zn.id)||!me[Zn.id]||Zn.classList.add("is-active")},{capture:!0,signal:ct}),we.addEventListener("pointerleave",un=>{const Zn=_c(un.target);!(Zn!=null&&Zn.id)||!me[Zn.id]||Zn.classList.remove("is-active")},{capture:!0,signal:ct}),window.addEventListener("pointercancel",()=>{Id(),y==null||y()},{signal:ct}),window.addEventListener("pointerup",()=>{Id(),y==null||y()},{signal:ct})})}}function Id(){Td==null||Td.abort(),Td=null,wl.state==="open"&&wl.close()}function dg(a){if(a==="foreground-color"){const y=[];for(const b of Object.keys(Ue))y.push({class:"swatch-button",label:'<span style="border: 3px solid '+Ue[b]+'"></span>',command:["applyStyle",{color:b}]});return y}if(a==="background-color"){const y=[];for(const b of Object.keys(Ke))y.push({class:"swatch-button",label:'<span style="background:'+Ke[b]+'"></span>',command:["applyStyle",{backgroundColor:b}]});return y}}function M0(a){return If[a]!==void 0}function fg(a){var y;return typeof a!="string"?a:(If[a]||(If[a]=(y=dg(a))!=null?y:[]),If[a])}function hg(a){return typeof a=="string"?a:Object.entries(a).map(([y,b])=>`${y}:${b} !important`).join(";")}function pg(a){return Object.keys(a).map(y=>`${y} {${hg(a[y])}}`).join("")}function _d(a){if(!a)return"";const y=new Ma,b=new Bn({mode:"math",type:"root",body:Xo(a,{context:y,args:ee=>ee==="@"?"{\\class{ML__box-placeholder}{\\blacksquare}}":"\\placeholder{}"})}),E=gc(Cd(new fr(b.render(y),{classes:"ML__base"}),y));return vc(E,{classes:"ML__latex"}).toMarkup()}function Bd(a){var y;if(Array.isArray(a))return a.map(E=>Bd(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=Ad();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"}[Ye.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 me=[];for(const ye of he)/[a-z]/.test(ye)?me.push({label:ye,class:"hide-shift",shift:{label:ye.toUpperCase()},variants:M0(ye)?ye:void 0}):ye==="~"?E!=="dvorak"?me.push("[backspace]"):me.push({label:"[backspace]",width:1}):ye==="^"?me.push("[shift]"):ye===" "&&me.push("[separator-5]");ae.push(me)}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:Bd({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=ot(ee,["rows"]);y=pe(Se({},ae),{layers:Bd({rows:a.rows})})}else if("markup"in a&&typeof a.markup=="string"){const ee=a,{markup:re}=ee,ae=ot(ee,["markup"]);y=pe(Se({},ae),{layers:Bd(a.markup)})}else y=Se({},a),"layers"in a?y.layers=Bd(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()){Bc(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='<div class="left">';if(a.normalizedLayouts.length>1)for(const[re,ae]of a.normalizedLayouts.entries()){const he=ae,me=[re===y?"selected":"layer-switch"];he.tooltip&&me.push("MLK__tooltip"),he.labelClass&&me.push(...he.labelClass.split(" ")),ee+=`<div class="${me.join(" ")}"`,he.tooltip&&(ee+=" data-tooltip='"+((b=it(he.tooltip))!=null?b:he.tooltip)+"' "),re!==y&&(ee+=`data-layer="${he.layers[0].id}"`),ee+=`>${(E=he.label)!=null?E:"untitled"}</div>`}return ee+="</div>",ee}function vg(a,y){let b="";if(a.editToolbar==="none")return"";const ee=[];y.selectionIsCollapsed?ee.push("undo","redo","pasteFromClipboard"):ee.push("cutToClipboard","copyToClipboard","pasteFromClipboard");const re={undo:`<div class='action ${y.canUndo===!1?"disabled":""}'
data-command='"undo"'
data-tooltip='${it("tooltip.undo")}'>
<svg><use xlink:href='#svg-undo' /></svg>
</div>`,redo:`<div class='action ${y.canRedo===!1?"disabled":""}'
data-command='"redo"'
data-tooltip='${it("tooltip.redo")}'>
<svg><use xlink:href='#svg-redo' /></svg>
</div>`,cutToClipboard:`
<div class='action'
data-command='"cutToClipboard"'
data-tooltip='${it("tooltip.cut to clipboard")}'>
<svg><use xlink:href='#svg-cut' /></svg>
</div>
`,copyToClipboard:`
<div class='action'
data-command='"copyToClipboard"'
data-tooltip='${it("tooltip.copy to clipboard")}'>
<svg><use xlink:href='#svg-copy' /></svg>
</div>
`,pasteFromClipboard:`
<div class='action'
data-command='"pasteFromClipboard"'
data-tooltip='${it("tooltip.paste from clipboard")}'>
<svg><use xlink:href='#svg-paste' /></svg>
</div>
`};return b+=ee.map(ae=>re[ae]).join(""),b}function yg(a){for(const y of a)bg(y)}function bg(a){const y=fu.singleton;if(!y)return;const b={};if(!a.id){if(a.hasAttribute("data-label")&&(b.label=a.dataset.label),a.hasAttribute("data-latex")&&(b.latex=a.dataset.latex),a.hasAttribute("data-key")&&(b.key=a.dataset.key),a.hasAttribute("data-insert")&&(b.insert=a.dataset.insert),a.hasAttribute("data-variants")&&(b.variants=a.dataset.variants),a.hasAttribute("data-aside")&&(b.aside=a.dataset.aside),a.className&&(b.class=a.className),!b.label&&!b.latex&&!b.key&&!b.insert&&(b.latex=a.innerText,b.label=a.innerHTML),a.hasAttribute("data-command"))try{b.command=JSON.parse(a.dataset.command)}catch(E){}a.id=y.registerKeycap(b)}if(!a.innerHTML){const[E,ee]=_f(b);a.innerHTML=window.MathfieldElement.createHTML(E)}}function xg(){As("virtual-keyboard"),As("core"),Lf()}function wg(){x("core"),x("virtual-keyboard")}var Sg=`<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
<symbol id="svg-delete-backward" viewBox="0 0 576 512">
<path d="M432.1 208.1L385.9 256L432.1 303C442.3 312.4 442.3 327.6 432.1 336.1C423.6 346.3 408.4 346.3 399 336.1L352 289.9L304.1 336.1C295.6 346.3 280.4 346.3 271 336.1C261.7 327.6 261.7 312.4 271 303L318.1 256L271 208.1C261.7 199.6 261.7 184.4 271 175C280.4 165.7 295.6 165.7 304.1 175L352 222.1L399 175C408.4 165.7 423.6 165.7 432.1 175C442.3 184.4 442.3 199.6 432.1 208.1V208.1zM512 64C547.3 64 576 92.65 576 128V384C576 419.3 547.3 448 512 448H205.3C188.3 448 172 441.3 160 429.3L9.372 278.6C3.371 272.6 0 264.5 0 256C0 247.5 3.372 239.4 9.372 233.4L160 82.75C172 70.74 188.3 64 205.3 64L512 64zM528 128C528 119.2 520.8 112 512 112H205.3C201 112 196.9 113.7 193.9 116.7L54.63 256L193.9 395.3C196.9 398.3 201 400 205.3 400H512C520.8 400 528 392.8 528 384V128z"/>
</symbol>
<symbol id="svg-shift" viewBox="0 0 384 512">
<path d="M2.438 252.3C7.391 264.2 19.06 272 32 272h80v160c0 26.51 21.49 48 48 48h64C250.5 480 272 458.5 272 432v-160H352c12.94 0 24.61-7.797 29.56-19.75c4.953-11.97 2.219-25.72-6.938-34.88l-160-176C208.4 35.13 200.2 32 192 32S175.6 35.13 169.4 41.38l-160 176C.2188 226.5-2.516 240.3 2.438 252.3zM192 86.63L313.4 224H224v208H160V224H70.63L192 86.63z"/>
</symbol>
<symbol id="svg-commit" viewBox="0 0 512 512">
<path d="M135 432.1l-128-128C2.344 300.3 0 294.2 0 288s2.344-12.28 7.031-16.97l128-128c9.375-9.375 24.56-9.375 33.94 0s9.375 24.56 0 33.94L81.94 264H464v-208C464 42.75 474.8 32 488 32S512 42.75 512 56V288c0 13.25-10.75 24-24 24H81.94l87.03 87.03c9.375 9.375 9.375 24.56 0 33.94S144.4 442.3 135 432.1z"/>
</symbol>
<symbol id="circle-plus" viewBox="0 0 512 512"><path d="M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM232 344c0 13.3 10.7 24 24 24s24-10.7 24-24V280h64c13.3 0 24-10.7 24-24s-10.7-24-24-24H280V168c0-13.3-10.7-24-24-24s-24 10.7-24 24v64H168c-13.3 0-24 10.7-24 24s10.7 24 24 24h64v64z"/></symbol>
<symbol id="svg-command" viewBox="0 0 640 512">
<path d="M34.495 36.465l211.051 211.05c4.686 4.686 4.686 12.284 0 16.971L34.495 475.535c-4.686 4.686-12.284 4.686-16.97 0l-7.071-7.07c-4.686-4.686-4.686-12.284 0-16.971L205.947 256 10.454 60.506c-4.686-4.686-4.686-12.284 0-16.971l7.071-7.07c4.686-4.687 12.284-4.687 16.97 0zM640 468v-10c0-6.627-5.373-12-12-12H300c-6.627 0-12 5.373-12 12v10c0 6.627 5.373 12 12 12h328c6.627 0 12-5.373 12-12z"/>
</symbol>
<symbol id="svg-undo" viewBox="0 0 512 512">
<path d="M20 8h10c6.627 0 12 5.373 12 12v110.625C85.196 57.047 165.239 7.715 256.793 8.001 393.18 8.428 504.213 120.009 504 256.396 503.786 393.181 392.834 504 256 504c-63.926 0-122.202-24.187-166.178-63.908-5.113-4.618-5.354-12.561-.482-17.433l7.069-7.069c4.503-4.503 11.749-4.714 16.482-.454C150.782 449.238 200.935 470 256 470c117.744 0 214-95.331 214-214 0-117.744-95.331-214-214-214-82.862 0-154.737 47.077-190.289 116H180c6.627 0 12 5.373 12 12v10c0 6.627-5.373 12-12 12H20c-6.627 0-12-5.373-12-12V20c0-6.627 5.373-12 12-12z"/>
</symbol>
<symbol id="svg-redo" viewBox="0 0 512 512">
<path d="M492 8h-10c-6.627 0-12 5.373-12 12v110.625C426.804 57.047 346.761 7.715 255.207 8.001 118.82 8.428 7.787 120.009 8 256.396 8.214 393.181 119.166 504 256 504c63.926 0 122.202-24.187 166.178-63.908 5.113-4.618 5.354-12.561.482-17.433l-7.069-7.069c-4.503-4.503-11.749-4.714-16.482-.454C361.218 449.238 311.065 470 256 470c-117.744 0-214-95.331-214-214 0-117.744 95.331-214 214-214 82.862 0 154.737 47.077 190.289 116H332c-6.627 0-12 5.373-12 12v10c0 6.627 5.373 12 12 12h160c6.627 0 12-5.373 12-12V20c0-6.627-5.373-12-12-12z"/>
</symbol>
<symbol id="svg-arrow-left" viewBox="0 0 320 512">
<path d="M206.7 464.6l-183.1-191.1C18.22 267.1 16 261.1 16 256s2.219-11.97 6.688-16.59l183.1-191.1c9.152-9.594 24.34-9.906 33.9-.7187c9.625 9.125 9.938 24.37 .7187 33.91L73.24 256l168 175.4c9.219 9.5 8.906 24.78-.7187 33.91C231 474.5 215.8 474.2 206.7 464.6z"/>
</symbol>
<symbol id="svg-arrow-right" viewBox="0 0 320 512">
<path d="M113.3 47.41l183.1 191.1c4.469 4.625 6.688 10.62 6.688 16.59s-2.219 11.97-6.688 16.59l-183.1 191.1c-9.152 9.594-24.34 9.906-33.9 .7187c-9.625-9.125-9.938-24.38-.7187-33.91l168-175.4L78.71 80.6c-9.219-9.5-8.906-24.78 .7187-33.91C88.99 37.5 104.2 37.82 113.3 47.41z"/>
</symbol>
<symbol id="svg-tab" viewBox="0 0 448 512">
<path d="M32 217.1c0-8.8 7.2-16 16-16h144v-93.9c0-7.1 8.6-10.7 13.6-5.7l143.5 143.1c6.3 6.3 6.3 16.4 0 22.7L205.6 410.4c-5 5-13.6 1.5-13.6-5.7v-93.9H48c-8.8 0-16-7.2-16-16v-77.7m-32 0v77.7c0 26.5 21.5 48 48 48h112v61.9c0 35.5 43 53.5 68.2 28.3l143.6-143c18.8-18.8 18.8-49.2 0-68L228.2 78.9c-25.1-25.1-68.2-7.3-68.2 28.3v61.9H48c-26.5 0-48 21.6-48 48zM436 64h-8c-6.6 0-12 5.4-12 12v360c0 6.6 5.4 12 12 12h8c6.6 0 12-5.4 12-12V76c0-6.6-5.4-12-12-12z"/>
</symbol>
<symbol id="svg-paste" viewBox="0 0 512 512"><path d="M160 32c11.6 0 21.3 8.2 23.5 19.2C185 58.6 191.6 64 199.2 64H208c8.8 0 16 7.2 16 16V96H96V80c0-8.8 7.2-16 16-16h8.8c7.6 0 14.2-5.4 15.7-12.8C138.7 40.2 148.4 32 160 32zM64 64h2.7C65 69 64 74.4 64 80V96c0 17.7 14.3 32 32 32H224c17.7 0 32-14.3 32-32V80c0-5.6-1-11-2.7-16H256c17.7 0 32 14.3 32 32h32c0-35.3-28.7-64-64-64H210.6c-9-18.9-28.3-32-50.6-32s-41.6 13.1-50.6 32H64C28.7 32 0 60.7 0 96V384c0 35.3 28.7 64 64 64H192V416H64c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM288 480c-17.7 0-32-14.3-32-32V192c0-17.7 14.3-32 32-32h96v56c0 22.1 17.9 40 40 40h56V448c0 17.7-14.3 32-32 32H288zM416 165.3L474.7 224H424c-4.4 0-8-3.6-8-8V165.3zM448 512c35.3 0 64-28.7 64-64V235.9c0-12.7-5.1-24.9-14.1-33.9l-59.9-59.9c-9-9-21.2-14.1-33.9-14.1H288c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H448z"/></symbol>
<symbol id="svg-cut" viewBox="0 0 512 512"><path d="M485.6 444.2L333.6 314.9C326.9 309.2 326.1 299.1 331.8 292.4C337.5 285.6 347.6 284.8 354.4 290.5L506.4 419.8C513.1 425.5 513.9 435.6 508.2 442.4C502.5 449.1 492.4 449.9 485.6 444.2zM485.7 67.76C492.5 62.07 502.5 62.94 508.2 69.69C513.9 76.45 513.1 86.55 506.3 92.24L208.5 343.1C218.3 359.7 224 379.2 224 400C224 461.9 173.9 512 112 512C50.14 512 0 461.9 0 400C0 338.1 50.14 288 112 288C141.5 288 168.4 299.4 188.4 318.1L262.2 256L188.4 193.9C168.4 212.6 141.5 224 112 224C50.14 224 0 173.9 0 112C0 50.14 50.14 0 112 0C173.9 0 224 50.14 224 112C224 132.8 218.3 152.3 208.5 168.9L287 235.1L485.7 67.76zM32 112C32 156.2 67.82 192 112 192C156.2 192 192 156.2 192 112C192 67.82 156.2 32 112 32C67.82 32 32 67.82 32 112zM112 480C156.2 480 192 444.2 192 400C192 355.8 156.2 320 112 320C67.82 320 32 355.8 32 400C32 444.2 67.82 480 112 480z"/></symbol>
<symbol id="svg-copy" viewBox="0 0 512 512"><path d="M272 416C263.2 416 256 423.2 256 432V448c0 17.67-14.33 32-32 32H64c-17.67 0-32-14.33-32-32V192c0-17.67 14.33-32 32-32h112C184.8 160 192 152.8 192 144C192 135.2 184.8 128 176 128H63.99c-35.35 0-64 28.65-64 64l.0098 256C0 483.3 28.65 512 64 512h160c35.35 0 64-28.65 64-64v-16C288 423.2 280.8 416 272 416zM502.6 86.63l-77.25-77.25C419.4 3.371 411.2 0 402.7 0H288C252.7 0 224 28.65 224 64v256c0 35.35 28.65 64 64 64h160c35.35 0 64-28.65 64-64V109.3C512 100.8 508.6 92.63 502.6 86.63zM416 45.25L466.7 96H416V45.25zM480 320c0 17.67-14.33 32-32 32h-160c-17.67 0-32-14.33-32-32V64c0-17.67 14.33-32 32-32h96l.0026 64c0 17.67 14.33 32 32 32H480V320z"/>
</symbol>
<symbol id="svg-angle-double-right" viewBox="0 0 512 512"><path d="M470.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 256 265.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160zm-352 160l160-160c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L210.7 256 73.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0z"/>
</symbol>
<symbol id="svg-angle-double-left" viewBox="0 0 512 512"><path d="M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160zm352-160l-160 160c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L301.3 256 438.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0z"/>
</symbol>
<symbol id="svg-trash" viewBox="0 0 448 512">
<path d="M336 64l-33.6-44.8C293.3 7.1 279.1 0 264 0h-80c-15.1 0-29.3 7.1-38.4 19.2L112 64H24C10.7 64 0 74.7 0 88v2c0 3.3 2.7 6 6 6h26v368c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V96h26c3.3 0 6-2.7 6-6v-2c0-13.3-10.7-24-24-24h-88zM184 32h80c5 0 9.8 2.4 12.8 6.4L296 64H152l19.2-25.6c3-4 7.8-6.4 12.8-6.4zm200 432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V96h320v368zm-176-44V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12zm-80 0V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12zm160 0V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12z"/>
</symbol>
<symbol id="svg-keyboard-down" viewBox="0 0 576 512"><path d="M64 48c-8.8 0-16 7.2-16 16V240c0 8.8 7.2 16 16 16H512c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H64zM0 64C0 28.7 28.7 0 64 0H512c35.3 0 64 28.7 64 64V240c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64zM159 359c9.4-9.4 24.6-9.4 33.9 0l95 95 95-95c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L305 505c-4.5 4.5-10.6 7-17 7s-12.5-2.5-17-7L159 393c-9.4-9.4-9.4-24.6 0-33.9zm1-167c0-8.8 7.2-16 16-16H400c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V192zM120 88h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H120c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16zm64 16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H200c-8.8 0-16-7.2-16-16V104zm96-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H280c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16zm64 16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H360c-8.8 0-16-7.2-16-16V104zm96-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H440c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16z"/></symbol>
</svg>`;function Cg(a){a.resetKeycapRegistry(),xg();const y=document.createElement("div");y.className="ML__keyboard";const b=document.createElement("div");b.className="MLK__plate",b.innerHTML=window.MathfieldElement.createHTML(Sg+a.normalizedLayouts.map((ae,he)=>Eg(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 me,ye;let we=he.target,Re="";for(;we&&!Re;)Re=(me=we==null?void 0:we.getAttribute("data-command"))!=null?me:"",we=(ye=we==null?void 0:we.parentElement)!=null?ye:null;Re&&a.executeCommand(JSON.parse(Re))});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 Eg(a,y,b){const E=[];if(!("layers"in y))return"";for(const ee of y.layers)E.push(`<div tabindex="-1" class="MLK__layer" id="${ee.id}">`),(a.normalizedLayouts.length>1||y.displayEditToolbar)&&(E.push("<div class='MLK__toolbar' role='toolbar'>"),E.push(gg(a,b)),y.displayEditToolbar&&E.push('<div class="ML__edit-toolbar right"></div>'),E.push("</div>")),E.push(Mg(a,ee)),E.push("</div>");return E.join("")}function Mg(a,y){if(typeof y=="string")return y;let b="";if(typeof y.style=="string"?b+=`<style>${y.style}</style>`:typeof y.style=="object"&&(b+=`<style>${pg(y.style)}</style>`),y.backdrop&&(b+=`<div class='${y.backdrop}'>`),y.container&&(b+=`<div class='${y.container}'>`),y.rows){b+="<div class=MLK__rows>";for(const E of y.rows){b+="<div dir='ltr' class=MLK__row>";for(const ee of E)if(ee){const re=a.registerKeycap(ee),[ae,he]=_f(ee);/(^|\s)separator/.test(he)?b+=`<div class="${he}"`:b+=`<div tabindex="-1" id="${re}" class="${he}"`,ee.tooltip&&(b+=` data-tooltip="${ee.tooltip}"`),b+=`>${ae}</div>`}b+="</div>"}b+="</div>"}else y.markup&&(b+=y.markup);return y.container&&(b+="</div>"),y.backdrop&&(b+="</div>"),b}function _f(a,y={shifted:!1}){var b,E,ee,re,ae,he,me;let ye="",we=(b=a.class)!=null?b:"";if(y.shifted&&Bc(a)&&(we+=" is-active"),y.shifted&&"shift"in a)typeof a.shift=="string"?ye=_d(a.shift):typeof a.shift=="object"&&(ye=a.shift.label?a.shift.label:(E=_d(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(ye=a.label?a.label:(ae=_d(a.latex||a.insert||"")||a.key)!=null?ae:"",a.shift){let Re;typeof a.shift=="string"?Re=_d(a.shift):a.shift.label?Re=a.shift.label:Re=(he=_d(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?he:"",ye+=`<span class="MLK__shift">${Re}</span>`}a.aside&&(ye+=`<aside>${a.aside}</aside>`)}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+=(me={0:" w0",.5:" w5",1.5:" w15",2:" w20",5:" w50"}[a.width])!=null?me:""),[ye,we||"MLK__keycap"]}var zu={"[left]":{class:"action hide-shift",label:"<svg class=svg-glyph><use xlink:href=#svg-arrow-left /></svg>",command:["performWithFeedback","moveToPreviousChar"],shift:{label:"<svg class=svg-glyph><use xlink:href=#svg-angle-double-left /></svg>",command:["performWithFeedback","extendSelectionBackward"]}},"[right]":{class:"action hide-shift",label:"<svg class=svg-glyph><use xlink:href=#svg-arrow-right /></svg>",command:["performWithFeedback","moveToNextChar"],shift:{label:"<svg class=svg-glyph><use xlink:href=#svg-angle-double-right /></svg>",command:["performWithFeedback","extendSelectionForward"]}},"[up]":{class:"action hide-shift",label:"\u2191",command:["performWithFeedback","moveUp"],shift:{label:"\u219F",command:["performWithFeedback","extendSelectionUpward"]}},"[down]":{class:"action hide-shift",label:"\u2193",command:["performWithFeedback","moveDown"],shift:{label:"\u21A1",command:["performWithFeedback","extendSelectionDownward"]}},"[return]":{class:"action hide-shift",command:["performWithFeedback","commit"],shift:{command:["performWithFeedback","addRowAfter"]},width:1.5,label:"<svg class=svg-glyph><use xlink:href=#svg-commit /></svg>"},"[action]":{class:"action hide-shift",command:["performWithFeedback","commit"],shift:{label:"<svg class=svg-glyph><use xlink:href=#circle-plus /></svg>",command:["performWithFeedback","addRowAfter"]},width:1.5,label:"<svg class=svg-glyph><use xlink:href=#svg-commit /></svg>"},"[hr]":{class:"separator horizontal-rule"},"[hide-keyboard]":{class:"action",command:["hideVirtualKeyboard"],width:1.5,label:"<svg class=svg-glyph-lg><use xlink:href=#svg-keyboard-down /></svg>"},"[.]":{variants:".",command:["performWithFeedback","insertDecimalSeparator"],shift:",",class:"big-op hide-shift",label:"."},"[,]":{variants:",",command:["performWithFeedback","insertDecimalSeparator"],shift:".",class:"big-op hide-shift",label:","},"[+]":{variants:[{latex:"\\sum_{#0}^{#0}",class:"small"},"\\oplus"],latex:"+",label:"+",class:"big-op hide-shift",shift:{latex:"\\sum",insert:"\\sum",class:"small"}},"[-]":{variants:["\\pm","\\ominus"],latex:"-",label:"&#x2212;",shift:"\\pm",class:"big-op hide-shift"},"[/]":{class:"big-op hide-shift",shift:{class:"",latex:"\\frac{1}{#@}"},variants:["/","\\div","\\%","\\oslash"],latex:"\\frac{#@}{#?}",label:"&divide;"},"[*]":{variants:[{latex:"\\prod_{#0}^{#0}",class:"small"},"\\otimes","\\cdot"],latex:"\\cdot",label:"&times;",shift:{latex:"\\times"},class:"big-op hide-shift"},"[=]":{variants:["\\neq","\\equiv","\\varpropto","\\thickapprox","\\lt","\\gt","\\le","\\ge"],latex:"=",label:"=",shift:{label:"\u2260",latex:"\\ne"},class:"big-op hide-shift"},"[backspace]":{class:"action bottom right hide-shift",width:1.5,command:["performWithFeedback","deleteBackward"],label:"<svg class=svg-glyph><use xlink:href=#svg-delete-backward /></svg>",shift:{class:"action warning",label:"<svg class=svg-glyph><use xlink:href=#svg-trash /></svg>",command:"deleteAll"}},"[undo]":{class:"ghost if-can-undo",command:"undo",label:"<svg class=svg-glyph><use xlink:href=#svg-undo /></svg>",tooltip:"tooltip.undo"},"[redo]":{class:"ghost if-can-redo",command:"redo",label:"<svg class=svg-glyph><use xlink:href=#svg-redo /></svg>",tooltip:"tooltip.redo"},"[(]":{variants:[{latex:"\\lbrack",key:"["},"\\langle","\\lfloor","\\lceil",{latex:"\\lbrace",key:"{"}],key:"(",label:"(",shift:{label:"[",key:"["},class:"hide-shift"},"[)]":{variants:[{latex:"\\rbrack",key:"]"},"\\rangle","\\rfloor","\\rceil",{latex:"\\rbrace",key:"]"}],key:")",label:")",shift:{label:"]",latex:"\\rbrack"},class:"hide-shift"},"[0]":{variants:"0",latex:"0",label:"0",shift:"\\infty",class:"hide-shift"},"[1]":{variants:"1",latex:"1",label:"1",shift:"#@^{-1}",class:"hide-shift"},"[2]":{variants:"2",latex:"2",label:"2",shift:"#@^2",class:"hide-shift"},"[3]":{variants:"3",latex:"3",label:"3",shift:"#@^3",class:"hide-shift"},"[4]":{variants:"4",latex:"4",label:"4",shift:"#@^4",class:"hide-shift"},"[5]":{variants:"5",latex:"5",label:"5",shift:"#@^5",class:"hide-shift"},"[6]":{variants:"6",latex:"6",label:"6",shift:"#@^6",class:"hide-shift"},"[7]":{variants:"7",latex:"7",label:"7",shift:"#@^7",class:"hide-shift"},"[8]":{variants:"8",latex:"8",label:"8",shift:"#@^8",class:"hide-shift"},"[9]":{variants:"9",latex:"9",label:"9",shift:"#@^9",class:"hide-shift"},"[separator-5]":{class:"separator",width:.5},"[separator]":{class:"separator"},"[separator-10]":{class:"separator"},"[separator-15]":{class:"separator",width:1.5},"[separator-20]":{class:"separator",width:2},"[separator-50]":{class:"separator",width:5},"[shift]":{class:"shift bottom left",width:1.5,label:"<span class=caps-lock-indicator></span><svg class=svg-glyph><use xlink:href=#svg-shift /></svg>"},"[foreground-color]":{variants:"foreground-color",command:["applyStyle",{color:"red"}],label:"<span style='border-radius: 50%;width:22px;height:22px; border: 3px solid #cc2428; box-sizing: border-box'>"},"[background-color]":{variants:"background-color",command:["applyStyle",{backgroundColor:"yellow"}],label:"<span style='border-radius: 50%;width:22px;height:22px; background:#fff590; box-sizing: border-box'></span>"}};function A0(a){var y;if(typeof a=="string"){if(a==="[.]"&&window.MathfieldElement.decimalSeparator===","&&(a="[,]"),!zu[a])return{latex:a};a={label:a}}let b;return"label"in a&&a.label&&zu[a.label]&&(b=pe(Se(Se({},zu[a.label]),a),{label:zu[a.label].label})),"key"in a&&a.key&&zu[a.key]&&(b=pe(Se(Se({},zu[a.key]),a),{key:zu[a.key].key})),b?(b.command==="insertDecimalSeparator"&&(b.label=(y=window.MathfieldElement.decimalSeparator)!=null?y:"."),a.label==="[action]"&&(b=Se(Se({},b),window.mathVirtualKeyboard.actionKeycap)),a.label==="[shift]"&&(b=Se(Se({},b),window.mathVirtualKeyboard.shiftKeycap)),a.label==="[backspace]"&&(b=Se(Se({},b),window.mathVirtualKeyboard.backspaceKeycap)),a.label==="[tab]"&&(b=Se(Se({},b),window.mathVirtualKeyboard.tabKeycap)),b):a}var Pd;function kg(a){var y;if(a.button!==0)return;const b=fu.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=_c(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",Bf(ae),{capture:!0,signal:he}),ee.addEventListener("pointerleave",Bf(ae),{capture:!0,signal:he}),ee.addEventListener("pointercancel",Bf(ae),{signal:he}),ee.addEventListener("pointerup",Bf(ae),{signal:he}),Bc(re)&&(ee.classList.add("is-active"),b.shiftPressCount++),re.variants&&(Pd&&clearTimeout(Pd),Pd=setTimeout(()=>{ee.classList.contains("is-pressed")&&(ee.classList.remove("is-pressed"),ee.classList.add("is-active"),a.target&&"releasePointerCapture"in a.target&&a.target.releasePointerCapture(a.pointerId),E0(ee,()=>{ae.abort(),ee==null||ee.classList.remove("is-active")}))},300)),a.preventDefault()}function Bf(a){return y=>{const b=_c(y.target);if(!(b!=null&&b.id))return;const E=fu.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"),Bc(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"),Bc(ee)&&(E.shiftPressCount--,b.classList.toggle("is-active",E.isShifted));return}if(y.type==="pointerup"){Pd&&clearTimeout(Pd),Bc(ee)?b.classList.toggle("is-active",E.isShifted):b.classList.contains("is-pressed")&&(b.classList.remove("is-pressed"),E.isShifted&&ee.shift?typeof ee.shift=="string"?E.executeCommand(["insert",ee.shift,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]):Eh(ee.shift):Eh(ee),E.shiftPressCount===1&&!y.shiftKey&&(E.shiftPressCount=0)),a.abort(),y.preventDefault();return}}}}function Eh(a){var y;let b=a.command;!b&&a.insert&&(b=["insert",a.insert,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]),!b&&a.key&&(b=["typedText",a.key,{focus:!0,feedback:!0,simulateKeystroke:!0}]),!b&&a.latex&&(b=["insert",a.latex,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]),b||(b=["typedText",a.label,{focus:!0,feedback:!0,simulateKeystroke:!0}]),(y=fu.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 _c(a){if(!a)return;let y=a;for(;y&&!Ag(y);)y=y.parentElement;return y!=null?y:void 0}function Bc(a){return!!a.class&&/(^|\s)shift($|\s)/.test(a.class)}var fu=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"&&tt()&&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]=_f(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}),Id(),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)&&E0(b.target),b.preventDefault(),b.stopPropagation())},{capture:!0}),(y=this.container)==null||y.appendChild(this.element)}handleEvent(y){if(Ch(y)){if(!yd(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=Ic(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:Se({type:Tf,action:y},b)}));return}if(E)E.postMessage(Se({type:Tf,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=Ic(y);return Oe(y)?(b=y[0],b==="performWithFeedback"&&(y=y.slice(1),ee=Ic(y)),E=y.slice(1)):b=y,b=b.replace(/-\w/g,re=>re[1].toUpperCase()),ee==="virtual-keyboard"?Sl[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=Cf(),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(lt()&&!("mathVirtualKeyboard"in window))if(window===window.top){const a=fu.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>a})}else Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>cg.singleton,configurable:!0});function Pf(a){const y={};for(const b of Object.keys(a))switch(b){case"scriptDepth":const E=a.scriptDepth;if(Oe(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=fu.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>re})}ee="manual"}y.mathVirtualKeyboardPolicy=ee;break;case"letterShapeStyle":a.letterShapeStyle==="auto"?Ye.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=En(a.macros);break;default:Oe(a[b])?y[b]=[...a[b]]:typeof a[b]=="object"&&!(a[b]instanceof Element)&&b!=="computeEngine"?y[b]=Se({},a[b]):y[b]=a[b]}return y}function Hu(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:Oe(a[ee])?E[ee]=[...a[ee]]:typeof a[ee]=="object"&&!(a[ee]instanceof Element)&&ee!=="computeEngine"?E[ee]=Se({},a[ee]):E[ee]=a[ee];return typeof y=="string"?E[y]:E}function Of(){return{readOnly:!1,defaultMode:"math",macros:{},registers:{},colorMap:Mt,backgroundColorMap:Qe,letterShapeStyle:Ye.locale.startsWith("fr")?"french":"tex",minFontScale:0,smartMode:!1,smartFence:!0,smartSuperscript:!0,scriptDepth:[1/0,1/0],removeExtraneousParentheses:!0,isImplicitFunction:a=>["\\sin","\\cos","\\tan","\\arcsin","\\arccos","\\arctan","\\arcsec","\\arccsc","\\arsinh","\\arcosh","\\artanh","\\arcsech","\\arccsch","\\arg","\\ch","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\sec","\\sinh","\\sh","\\tanh","\\tg","\\th","\\lg","\\lb","\\log","\\ln"].includes(a),mathModeSpace:"",placeholderSymbol:"\u25A2",contentPlaceholder:"",popoverPolicy:"auto",environmentPopoverPolicy:"off",keybindings:lh,inlineShortcuts:ff,inlineShortcutTimeout:0,mathVirtualKeyboardPolicy:"auto",virtualKeyboardTargetOrigin:window==null?void 0:window.origin,originValidator:"none",onInlineShortcut:()=>"",onScrollIntoView:null,onExport:sh,value:""}}function D0(a){return a.defaultMode==="inline-math"?"math":a.defaultMode}function hu(a,y){!a||!y||(Oe(a)?a.forEach(b=>hu(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),hu(a.body,y),hu(a.above,y),hu(a.below,y),hu(a.subscript,y),hu(a.superscript,y)))}function Mh(a,y,b,E){function ee(ae,he){for(const me of re)if(me.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=dl),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 $l(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)}zn(["math","displaymath"],js),zn("center",js),_t("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 Ui("lines",a.args,[],{leftDelim:".",rightDelim:".",columns:[{align:"l"}]})}),Gn("array","{columns:colspec}",(a,y,b,E)=>new Ui(a,kh(y),b,{columns:E[0],mathstyleName:"textstyle"})),Gn(["equation","equation*","subequations"],"",(a,y,b)=>new Ui(a,kh(y),b,{columns:[{align:"c"}]})),Gn(["multline","multline*"],"",js),Gn(["align","align*","aligned","eqnarray"],"",js),Gn("split","",js),Gn(["gather","gathered"],"",js),Gn(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],"[columns:colspec]",js),Gn(["smallmatrix","smallmatrix*"],"[columns:colspec]",js),Gn(["cases","dcases","rcases"],"",js);function Tg(a){for(const y of a)for(const b of y)if(b.length>0)return!1;return!0}function kh(a,y=1){return Tg(a)?Array(y).fill([[new Bn({type:"first"}),new vi]]):a.map(b=>b.length===0?[[new Bn({type:"first"})]]:b.map(E=>E.length===0?[new Bn({type:"first"})]:(E[0].type!=="first"&&E.unshift(new Bn({type:"first"})),E)))}function js(a,y=[[[]]],b=[],E=[]){switch(y=kh(y,["split","align","align*","aligned","eqnarray"].includes(a)?2:1),a){case"math":return new Ui(a,y,b,{mathstyleName:"textstyle"});case"displaymath":return new Ui(a,y,b,{mathstyleName:"textstyle"});case"center":return new Ui(a,y,b,{columns:[{align:"c"}]});case"multline":case"multline*":return new Ui(a,y,b,{columns:[{align:"m"}],leftDelim:".",rightDelim:"."});case"split":return new Ui(a,y,b,{columns:[{align:"r"},{align:"l"}],minColumns:2});case"gather":case"gathered":return new Ui(a,y,b,{columns:[{gap:.25},{align:"c"},{gap:0}]});case"pmatrix":case"pmatrix*":return new Ui(a,y,b,{mathstyleName:"textstyle",leftDelim:"(",rightDelim:")",columns:Ku(E[0])});case"bmatrix":case"bmatrix*":return new Ui(a,y,b,{mathstyleName:"textstyle",leftDelim:"[",rightDelim:"]",columns:Ku(E[0])});case"Bmatrix":case"Bmatrix*":return new Ui(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\lbrace",rightDelim:"\\rbrace",columns:Ku(E[0])});case"vmatrix":case"vmatrix*":return new Ui(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\vert",rightDelim:"\\vert",columns:Ku(E[0])});case"Vmatrix":case"Vmatrix*":return new Ui(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\Vert",rightDelim:"\\Vert",columns:Ku(E[0])});case"matrix":case"matrix*":return new Ui(a,y,b,{mathstyleName:"textstyle",leftDelim:".",rightDelim:".",columns:Ku(E==null?void 0:E[0])});case"smallmatrix":case"smallmatrix*":return new Ui(a,y,b,{mathstyleName:"scriptstyle",columns:Ku(E==null?void 0:E[0]),colSeparationType:"small",arraystretch:.5});case"cases":case"dcases":return new Ui(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 Ui(a,y,b,{arraystretch:1.2,leftDelim:".",rightDelim:"\\rbrace",columns:[{align:"l"},{gap:1},{align:"l"}]});case"lines":return new Ui(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(;ae<ee;)re.push({gap:1},{align:"r"},{gap:.25},{align:"l"}),ae+=2;return re.push({gap:0}),new Ui(a,y,b,{arraycolsep:0,columns:re,minColumns:2})}}return new Ui(a,y,b,{mathstyleName:"textstyle"})}function Ku(a){return a!=null?a:[{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"}]}function Ig(a,y){let b=a.at(a.position);for(;b&&!(b.parent instanceof Ui);)b=b.parent;if(b&&b.type==="array"&&b.environmentName,!b||!(b.parent instanceof Ui)){const E=a.at(a.position);if(b=E,!b.parent.parent){let ee=a.extractAtoms([a.position,a.lastOffset]),re=a.extractAtoms([0,a.position]);re.length===0&&(re=Ff()),ee.length===0&&(ee=Ff());let ae;return y.endsWith("column")?(ae=js("split",[[re,ee]]),a.root=ae,Wu(ae,0,0)?$u(a,ae,0,0):Wu(ae,0,1)?$u(a,ae,0,1):a.position=a.offsetOf(E)):(ae=js("lines",[[re],[ee]]),a.root=ae,Wu(ae,0,0)?$u(a,ae,0,0):Wu(ae,1,0)?$u(a,ae,1,0):a.position=a.offsetOf(E)),[void 0,[0,0]]}if(b.parent instanceof $a){const ee=b.parent;let re=a.extractAtoms([a.position,a.offsetOf(ee.lastChild)]),ae=a.extractAtoms([a.offsetOf(ee.firstChild),a.position]);ae.length===0&&(ae=Ff()),re.length===0&&(re=Ff());let he="pmatrix";const me=ee.leftDelim,ye=ee.rightDelim;me==="("&&(ye===")"||ye==="?")?he="pmatrix":(me==="["||me==="\\lbrack")&&(ye==="]"||ye==="\\rbrack"||ye==="?")?he="bmatrix":me==="\\vert"&&ye==="\\vert"?he="vmatrix":me==="\\Vert"&&ye==="\\Vert"?he="Vmatrix":(me==="{"||me==="\\lbrace")&&(ye==="."||ye==="?")&&(he="cases");const we=js(he,y.endsWith("column")?[[ae,re]]:[[ae],[re]]);return ee.parent.addChildBefore(we,ee),ee.parent.removeChild(ee),Wu(we,0,0)?$u(a,we,0,0):y.endsWith("column")?Wu(we,0,1)?$u(a,we,0,1):a.position=a.offsetOf(b):Wu(we,1,0)?$u(a,we,1,0):a.position=a.offsetOf(b),[void 0,[0,0]]}}return b&&b.parent instanceof Ui?[b.parent,b.parentBranch]:[void 0,[0,0]]}function Wu(a,y,b){const E=a.getCell(y,b);return!E||E.length!==2?!1:E[1].type==="placeholder"}function _g(a,y,b,E){const ee=y.getCell(b,E);return ee?[a.offsetOf(ee[0]),a.offsetOf(ee[ee.length-1])]:-1}function $u(a,y,b,E){const ee=_g(a,y,b,E);typeof ee!="number"&&a.setSelection(ee)}function Nf(a,y,b,E,ee){const re=y.getCell(b,E);re&&a.setPositionHandlingPlaceholder(a.offsetOf(re[ee==="start"?0:re.length-1]))}function Rf(a,y){const[b,[E,ee]]=Ig(a,y);if(b)switch(y){case"after row":b.addRowAfter(E),Nf(a,b,E+1,0,"end");break;case"after column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnAfter(ee),Nf(a,b,E,ee+1,"end");break;case"before row":b.addRowBefore(E),Nf(a,b,E,0,"start");break;case"before column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnBefore(ee),Nf(a,b,E,ee,"start");break}}function T0(a){return a.contentWillChange({inputType:"insertText"})?(Rf(a,"after row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Bg(a){return a.contentWillChange({inputType:"insertText"})?(Rf(a,"before row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function I0(a){return a.contentWillChange({inputType:"insertText"})?(Rf(a,"after column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Pg(a){return a.contentWillChange({inputType:"insertText"})?(Rf(a,"before column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function _0(a,y){if(!a.contentWillChange({}))return!1;a.mathfield.snapshot();let b=".",E=".";switch(y){case"pmatrix":case"pmatrix*":b="(",E=")";break;case"bmatrix":case"bmatrix*":b="[",E="]";break;case"Bmatrix":case"Bmatrix*":b="\\lbrace",E="\\rbrace";break;case"vmatrix":case"vmatrix*":b="\\vert",E="\\vert";break;case"Vmatrix":case"Vmatrix*":b="\\Vert",E="\\Vert";break;case"matrix":case"matrix*":b=".",E=".";break;case"cases":case"dcases":b="\\lbrace";break;case"rcases":E="\\rbrace";break}const ee=a.at(a.position),re=ee.type==="array"?ee:a.parentEnvironment;return re.environmentName=y,re.leftDelim=b,re.rightDelim=E,a.contentDidChange({}),!0}function B0(a,y){let b=a.at(a.position);for(;b&&!(Array.isArray(b.parentBranch)&&b.parent instanceof Ui);)b=b.parent;if(Array.isArray(b==null?void 0:b.parentBranch)&&(b==null?void 0:b.parent)instanceof Ui){const E=b.parent,ee=b.parentBranch;let re;switch(y){case"row":if(E.rowCount>1){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"})?(B0(a,"row"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}function Ng(a){return a.contentWillChange({inputType:"deleteContent"})?(B0(a,"column"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}Ls({addRowAfter:T0,addColumnAfter:I0,addRowBefore:Bg,addColumnBefore:Pg,removeRow:Og,removeColumn:Ng,setEnvironment:_0},{target:"model",canUndo:!0,changeContent:!0,changeSelection:!0});function Ff(){return[new vi]}var P0=class nm{constructor(y){this.recording=!1,this.model=y,this.reset()}reset(){this.stack=[],this.index=-1,this.lastOp=""}startRecording(){this.recording=!0}stopRecording(){this.recording=!1}canUndo(){return this.index-1>=0}canRedo(){return this.stack.length-1>this.index}stopCoalescing(y){y&&this.index>=0&&(this.stack[this.index].selection=y),this.lastOp=""}undo(){return this.canUndo()?(this.model.setState(this.stack[this.index-1],{silenceNotifications:!1,type:"undo"}),this.index-=1,this.lastOp="",!0):!1}redo(){return this.canRedo()?(this.index+=1,this.model.setState(this.stack[this.index],{silenceNotifications:!1,type:"redo"}),this.lastOp="",!0):!1}pop(){this.canUndo()&&(this.stack.splice(this.index,this.stack.length-this.index),this.index-=1)}snapshot(y){return this.recording?(y&&y===this.lastOp&&this.pop(),this.stack.splice(this.index+1,this.stack.length-this.index-1),this.stack.push(this.model.getState()),this.index+=1,this.stack.length>nm.maximumDepth&&(this.stack.shift(),this.index-=1),this.lastOp=y!=null?y:"",!0):!1}};P0.maximumDepth=1e3;var Rg=P0;function Ah(a,y,b){if(a.at(y).mode!=="text")return y;const E=b==="backward"?-1:1;let ee;if(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,me,ye;const we=a.position;(E=b==null?void 0:b.extend)!=null&&E||a.collapseSelection(y);let Re=a.at(a.position);if(y==="forward"&&(Re.type==="subsup"?(Re=Re.rightSibling,Re||(Re=a.at(a.position+1))):Re=a.at(a.position+1)),!Re)return a.announce("plonk"),!1;let Xe=a.offsetOf(Re);if(Re instanceof al)Xe=Ah(a,Xe,y);else if(Re instanceof ns)if(Re.isSuggestion)for(console.assert(y==="forward");Re&&Re instanceof ns;)Re.isSuggestion=!1,Xe=a.offsetOf(Re),Re=Re.rightSibling;else if(y==="forward"){if(Re=Re.rightSibling,!Re||!(Re instanceof ns))return a.announce("plonk"),!1;for(;Re&&Re instanceof ns&&/[a-zA-Z\*]/.test(Re.value);)Xe=a.offsetOf(Re),Re=Re.rightSibling}else{if(Re=Re.leftSibling,!Re||!(Re instanceof ns))return a.announce("plonk"),!1;for(;Re&&Re instanceof ns&&/[a-zA-Z\*]/.test(Re.value);)Xe=a.offsetOf(Re),Re=Re.leftSibling}else if(y==="forward"&&Re.type==="mopen"){let ct=0;do Re.type==="mopen"?ct+=1:Re.type==="mclose"&&(ct-=1),Re=Re.rightSibling;while(!Re.isLastSibling&&ct!==0);Xe=a.offsetOf(Re.leftSibling)}else if(y==="backward"&&Re.type==="mclose"){let ct=0;do Re.type==="mopen"?ct+=1:Re.type==="mclose"&&(ct-=1),Re=Re.leftSibling;while(!Re.isFirstSibling&&ct!==0);Xe=a.offsetOf(Re)}else if(y==="backward")if(Re.type==="first")for(;Xe>0&&Re.type==="first";)Xe-=1,Re=a.at(Xe);else{const ct=Re.type;Re.type==="subsup"&&(Xe=a.offsetOf(a.at(Xe).leftSibling)),Xe-=1;let xt=(ee=a.at(Xe))==null?void 0:ee.type;for(;Xe>=0&&xt===ct;)((re=a.at(Xe))==null?void 0:re.type)==="subsup"?Xe=a.offsetOf(a.at(Xe).leftSibling):Xe-=1,xt=a.at(Xe).type}else{const{type:ct}=Re;let xt=(ae=a.at(Xe))==null?void 0:ae.type;const{lastOffset:mn}=a;for(;Xe<=mn&&(xt===ct||xt==="subsup");){for(;((he=a.at(Xe).rightSibling)==null?void 0:he.type)==="subsup";)Xe=a.offsetOf(a.at(Xe).rightSibling);Xe+=1,xt=(me=a.at(Xe))==null?void 0:me.type}Xe-=1}if((ye=b==null?void 0:b.extend)!=null&&ye){if(!a.setSelection(a.anchor,Xe))return a.announce("plonk"),!1}else{if(Xe===a.position)return a.announce("plonk"),!1;a.position=Xe}return a.announce("move",we),a.mathfield.stopCoalescingUndo(),!0}function Cl(a,y,b){var E,ee;if(b=b!=null?b:{extend:!1},a.mathfield.adoptStyle=y==="backward"?"right":"left",y!=="forward"){const[he,me]=g0(a);he!==void 0&&me!==void 0&&a.deleteAtoms([he,me])}if(y==="upward")return zg(a,b);if(y==="downward")return Hg(a,b);if(b.extend){let he=zf(a,a.position,y);he<0&&(he=0),he>a.lastOffset&&(he=a.lastOffset);const me=a.setSelection(a.anchor,he);return a.mathfield.stopCoalescingUndo(),me}if(a.selectionIsPlaceholder){a.collapseSelection(y);const he=Cl(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=zf(a,re,y))):re=zf(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 zf(a,y,b){return y=y+(b==="forward"?1:-1),y<0||y>a.lastOffset||O0(a,y)?y:zf(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(;ee<y.length;ee++){const re=Cc(a.getHTMLElement(y[ee])).right,ae=Math.abs(b-re);if(ae<=E)E=ae;else break}return y[ee-1]}function Hf(a,y,b,E,ee){const re=a.mathfield.hasEditablePrompts,ae=re?b.filter(ye=>ye.type==="prompt"&&!ye.captureSelection):b,he=Cc(a.mathfield.getHTMLElement(y)).right,me=a.offsetOf(Fg(a.mathfield,ae,he))-(re?1:0);if(E){const[ye,we]=a.selection.ranges[0];let Re;me<(ee==="up"?ye:we)?Re={ranges:[[me,we]],direction:"backward"}:Re={ranges:[[ye,me]],direction:"forward"},a.setSelection(Re)}else a.setPositionHandlingPlaceholder(me);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 me,ye;let we=!0;return a.silenceNotifications||(we=(ye=(me=a.mathfield.host)==null?void 0:me.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"upward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?ye:!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 Ui);)he=he.parent;if(Array.isArray(he==null?void 0:he.parentBranch)&&he.parent instanceof Ui){const me=he.parent;if(he.parentBranch[0]<1)return re();const ye=he.parentBranch[0]-1,we=me.array[ye][he.parentBranch[1]];if(!we.some(Xe=>Xe.type==="prompt"&&!Xe.captureSelection)&&a.mathfield.hasEditablePrompts)return re();Hf(a,ae,we,ee,"up")}else if(he){const me=(E=he.parent.branch("above"))!=null?E:he.parent.createBranch("above");if(!me.some(we=>we.type==="prompt"&&we.placeholderId)&&a.mathfield.hasEditablePrompts)return re();Hf(a,ae,me,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 me,ye;let we=!0;return a.silenceNotifications||(we=(ye=(me=a.mathfield.host)==null?void 0:me.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"downward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?ye:!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 Ui);)he=he.parent;if(Array.isArray(he==null?void 0:he.parentBranch)&&he.parent instanceof Ui){const me=he.parent;if(he.parentBranch[0]+1>me.array.length-1)return re();const ye=he.parentBranch[0]+1,we=me.array[ye][he.parentBranch[1]];if(!we.some(Xe=>Xe.type==="prompt"&&!Xe.captureSelection)&&a.mathfield.hasEditablePrompts)return re();Hf(a,ae,we,ee,"down")}else if(he){const me=(E=he.parent.branch("below"))!=null?E:he.parent.createBranch("below");if(!me.some(we=>we.type==="prompt")&&a.mathfield.hasEditablePrompts)return re();Hf(a,ae,me,ee,"down")}else return re();return!0}function N0(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 R0(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 Us({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 Us({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 $g(){function a(me){const ye=[],we=[];return[...me.querySelectorAll(`input, select, textarea, a[href], button,
[tabindex], audio[controls], video[controls],
[contenteditable]:not([contenteditable="false"]), details>summary`)].filter(y).forEach((Xe,ct)=>{const xt=E(Xe);xt===0?ye.push(Xe):we.push({documentOrder:ct,tabIndex:xt,node:Xe})}),we.sort((Xe,ct)=>Xe.tabIndex===ct.tabIndex?Xe.documentOrder-ct.documentOrder:Xe.tabIndex-ct.tabIndex).map(Xe=>Xe.node).concat(ye)}function y(me){return!(!b(me)||ee(me)||E(me)<0)}function b(me){return!(me.disabled||me.type==="hidden"&&me.tagName.toUpperCase()==="INPUT"||he(me))}function E(me){var ye;const we=Number.parseInt((ye=me.getAttribute("tabindex"))!=null?ye:"NaN",10);return Number.isNaN(we)?me.contentEditable==="true"||(me.nodeName==="AUDIO"||me.nodeName==="VIDEO")&&me.getAttribute("tabindex")===null?0:me.tabIndex:we}function ee(me){return me.tagName.toUpperCase()==="INPUT"&&me.type==="radio"&&!ae(me)}function re(me,ye){for(const we of me)if(we.checked&&we.form===ye)return we;return null}function ae(me){var ye;if(!me.name)return!0;const Re=((ye=me.form)!=null?ye:me.ownerDocument).querySelectorAll('input[type="radio"][name="'+me.name+'"]'),Xe=re(Re,me.form);return!Xe||Xe===me}function he(me){if(!lt()||me===document.activeElement||me.contains(document.activeElement))return!1;if(getComputedStyle(me).visibility==="hidden")return!0;const ye=me.getBoundingClientRect();if(ye.width===0||ye.height===0)return!0;for(;me;){if(getComputedStyle(me).display==="none")return!0;me=me.parentElement}return!1}return lt()?a(document.body):[]}function bs(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"?bs(a,[y.leftSibling,y]):bs(a,[y,y.leftSibling])}function ll(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 Kf(a,y,b=!0){var E,ee;const re=y==="forward"?1:-1;a.at(a.anchor).type==="placeholder"&&Cl(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 me=Lh(a,ae,y);if(!me||y==="forward"&&a.offsetOf(me)<ae||y==="backward"&&a.offsetOf(me)>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=$g();if(!document.activeElement||we.length<=1)return a.announce("plonk"),!1;let Re=we.indexOf(document.activeElement)+re;return Re<0&&(Re=we.length-1),Re>=we.length&&(Re=0),we[Re].focus(),a.mathfield.stopCoalescingUndo(),!0}return ll(a,me),!0}function Lh(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)}Ls({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):R0(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=>N0(a),moveToNextChar:a=>Cl(a,"forward"),moveToPreviousChar:a=>Cl(a,"backward"),moveUp:a=>Cl(a,"upward"),moveDown:a=>Cl(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 Kf(a,"forward");const re=a.at(a.position);if(re.mode==="text"){if(a.selectionIsCollapsed){let Xe=re;for(;Xe&&Xe.mode==="text";)Xe=Xe.leftSibling;let ct=re;for(;((y=ct.rightSibling)==null?void 0:y.mode)==="text";)ct=ct.rightSibling;if(Xe&&ct)return bs(a,[Xe,ct])}if(re.rightSibling.mode==="text"){let Xe=re;for(;Xe&&Xe.mode==="text";)Xe=Xe.rightSibling;return Xe?(ll(a,(b=Xe.leftSibling)!=null?b:Xe),a.mathfield.switchMode("math"),!0):ll(a,a.lastOffset)}}const he=a.at(a.anchor).parentPrompt,me=he?a.offsetOf(he)+1:Math.max(a.position+1,0),ye=Lh(a,me,"forward");if(ye)return ll(a,ye);const we=z0(a,re,Xe=>Xe.type==="leftright"||Xe.type==="text","forward");if(we){if(we.mode==="text"){let Xe=we;for(;Xe&&Xe.mode==="text";)Xe=Xe.rightSibling;return bs(a,[(E=we.leftSibling)!=null?E:we,(ee=Xe.leftSibling)!=null?ee:Xe])}return bs(a,we)}const Re=re.parent;if(Re){if(Re.type==="leftright"||Re.type==="surd")return bs(a,Re);if(re.parentBranch==="superscript"&&Re.subscript)return bs(a,Re.subscript);if(re.parentBranch==="above"&&Re.below)return bs(a,Re.below);if(re.parentBranch==="superscript"||re.parentBranch==="subscript")return ll(a,Re);if(re.parentBranch==="above"||re.parentBranch==="below")return bs(a,Re)}return ll(a,a.lastOffset)},moveToPreviousGroup:a=>{var y;if(a.position===0&&a.anchor===0)return Kf(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 me=b;for(;((y=me.rightSibling)==null?void 0:y.mode)==="text";)me=me.rightSibling;if(he&&me)return bs(a,[he,me])}for(;b&&b.mode==="text";)b=b.leftSibling;return b?ll(a,b):ll(a,0)}const ee=a.at(a.anchor).parentPrompt,re=ee?a.offsetOf(ee.leftSibling):Math.max(a.position-1,0),ae=Lh(a,re,"backward");if(ae)return ll(a,ae);if(E==="math"){const he=z0(a,b,ye=>ye.type==="leftright"||ye.type==="text","backward");if(he){if(he.mode==="text"){let ye=he;for(;ye&&ye.mode==="text";)ye=ye.leftSibling;return bs(a,[he,ye])}return bs(a,he)}const me=b.parent;if(me){if(me.type==="leftright"||me.type==="surd")return bs(a,me);if(b.parentBranch==="subscript"&&me.superscript)return bs(a,me.superscript);if(b.parentBranch==="below"&&me.above)return bs(a,me.above);if(b.parentBranch==="superscript"||b.parentBranch==="subscript")return ll(a,me);if(b.parentBranch==="above"||b.parentBranch==="below")return bs(a,me)}return ll(a,0)}return!1},moveToMathfieldStart:a=>a.selectionIsCollapsed&&a.position===0?(a.announce("plonk"),!1):(a.position=0,a.mathfield.stopCoalescingUndo(),!0),moveToMathfieldEnd:a=>a.selectionIsCollapsed&&a.position===a.lastOffset?(a.announce("plonk"),!1):(a.position=a.lastOffset,a.mathfield.stopCoalescingUndo(),!0),moveToSuperscript:R0,moveToSubscript:F0},{target:"model",changeSelection:!0}),Ls({moveToNextPlaceholder:a=>Kf(a,"forward"),moveToPreviousPlaceholder:a=>Kf(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 Wf(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 Vu(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(Bn.serialize([ae],{defaultMode:"math"})),ae.mode="math"),E-=1,y-=1}Dh(a),a.contentDidChange({data:ua(re),inputType:"insertText"})}function Dh(a){var y;let b=a.position-1;for(;b>=0&&((y=a.at(b))==null?void 0:y.mode)==="math";)b-=1;if(!(b<0)&&a.at(b).mode==="text"&&a.at(b).value===" "&&a.at(b-1).mode==="math"){a.at(b-1).parent.removeChild(a.at(b-1));const E=a.silenceNotifications;a.silenceNotifications=!0,a.position-=1,a.silenceNotifications=E,a.contentDidChange({inputType:"deleteContent"})}}function 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 Zg(a,y,b){const{model:E}=a;if(E.mode==="latex"||!E.at(E.position).isLastSibling||!b||!Sf(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)&&Vu(E,1),!0;const ae={")":"(","}":"{","]":"["}[ee],{parent:he}=E.at(E.position);if(ae&&he instanceof $a&&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 Vu(E,1),!1;if(/\D\.[^\d\s]$/.test(re)){Vu(E,1);const me=E.at(E.position);return me.value="\u22C5",me.style.variant="normal",me.command="\\cdot",me.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 Vu(E,1),!0;if(/\([a-z][,;]$/.test(re))return Vu(E,2),!0;if(/[\d+\-=><*|]$/.test(ee))return Dh(E),!0}else{if(y==="[Space]")return Wf(E,void 0,ae=>/[a-z][:,;.]$/.test(ae.value)),!0;if(/[a-zA-Z]{3,}$/.test(re)&&!/(dxd|abc|xyz|uvw)$/.test(re))return Wf(E,void 0,ae=>/[a-zA-Z]/.test(ae.value)),!0;if(/(^|\W)(if)$/i.test(re))return Wf(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 Wf(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 Ug(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("<span>"+(vh(y)||y)+"</span>"+b.innerHTML),b.style.visibility="visible",setTimeout(()=>{b.childNodes.length>0&&b.childNodes[b.childNodes.length-1].remove(),b.childNodes.length===0&&(b.style.visibility="hidden")},3e3)}function Gg(a){if(a.keystrokeCaptionVisible=!a.keystrokeCaptionVisible,a.keystrokeCaptionVisible){const y=H0();y.innerHTML=""}else{const y=Mf("mathlive-keystroke-caption-panel");y.style.visibility="hidden"}return!1}function H0(){const a=document.getElementById("mathlive-keystroke-caption-panel");return a||(As("keystroke-caption"),As("core"),Mf("mathlive-keystroke-caption-panel"))}function jg(){document.getElementById("mathlive-keystroke-caption-panel")&&(bh("mathlive-keystroke-caption-panel"),x("core"),x("keystroke-caption"))}function K0(a,y){var b,E,ee;const{model:re}=a,ae=p0(y);if(y.isTrusted){Rm(y);const ct=Ad();a.keyboardLayout!==ct.id&&(a.keyboardLayout=ct.id,a._keybindings=void 0)}if(clearTimeout(a.inlineShortcutBufferFlushTimer),a.inlineShortcutBufferFlushTimer=0,Ug(a,ae),y.isTrusted&&y.defaultPrevented)return a.flushInlineShortcutBuffer(),!1;let he,me="",ye;const we=a.inlineShortcutBuffer;if(a.isSelectionEditable){if(re.mode==="math")if(ae==="[Backspace]")we.pop();else if(!Sf(y))a.flushInlineShortcutBuffer();else{const ct=Lc(y),xt=[...(E=(b=we[we.length-1])==null?void 0:b.keystrokes)!=null?E:[],ct];we.push({state:re.getState(),keystrokes:xt,leftSiblings:Xg(a)});let mn=0,cr="";for(;!he&&mn<xt.length;)ye=we.length-(xt.length-mn),cr=xt.slice(mn).join(""),he=dd(we[ye].leftSiblings,cr,a.options.inlineShortcuts),!he&&/^[a-zA-Z][a-zA-Z0-9]+?([_\^][a-zA-Z0-9\*\+\-]+?)?$/.test(cr)&&(he=a.options.onInlineShortcut(a,cr)),mn+=1;a.flushInlineShortcutBuffer({defer:!0})}a.options.smartMode&&(he?a.switchMode("math"):Zg(a,ae,y)&&(a.switchMode({math:"text",text:"math"}[re.mode]),me=""))}if(!he){if(me||(me=Vm(a.keybindings,re.mode,y)),!me&&(ae==="[Enter]"||ae==="[Return]")){let ct=!1;return re.contentWillChange({inputType:"insertLineBreak"})&&(a.host&&(ct=!a.host.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),ct||y.preventDefault&&(y.preventDefault(),y.stopPropagation()),re.contentDidChange({inputType:"insertLineBreak"})),ct}if((!me||ae==="[Space]")&&re.mode==="math"){if(ae==="[Space]"){if(a.adoptStyle="none",a.flushInlineShortcutBuffer(),a.options.mathModeSpace)return Wi.insert(re,a.options.mathModeSpace,{format:"latex",mode:"math"}),a.snapshot("insert-space"),me="",a.dirty=!0,a.scrollIntoView(),y.preventDefault&&(y.preventDefault(),y.stopPropagation()),!1;const ct=re.at(re.position+1),xt=re.at(re.position-1);if((ct==null?void 0:ct.mode)==="text"||(xt==null?void 0:xt.mode)==="text")return Wi.insert(re," ",{mode:"text"}),a.snapshot("insert-space"),a.dirty=!0,a.scrollIntoView(),!1}(ee=re.at(re.position))!=null&&ee.isDigit()&&window.MathfieldElement.decimalSeparator===","&&Lc(y)===","&&(me="insertDecimalSeparator")}}if(!he&&!me){if(re.mathfield.smartFence){if(Ih(re,Lc(y),a.effectiveStyle))return a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}else{const{parent:ct}=re.at(re.position);if(ct instanceof $a&&ct.rightDelim==="?"&&re.at(re.position).isLastSibling&&/^[)}\]|]$/.test(ae))return a.snapshot(),ct.isDirty=!0,ct.rightDelim=ae,re.position+=1,re.selectionDidChange(),re.contentDidChange({data:Lc(y),inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1;if(!re.selectionIsCollapsed){const xt=Lc(y);if(xt==="("||xt==="{"||xt==="["){const mn={"(":"(","{":"\\lbrace","[":"\\lbrack"}[xt],cr={"(":")","{":"\\rbrace","[":"\\rbrack"}[xt],[un,Zn]=Go(re.selection);return a.snapshot(),re.position=Zn,Wi.insert(re,cr,{format:"latex"}),re.position=un,Wi.insert(re,mn,{format:"latex"}),re.setSelection(un+1,Zn+1),re.contentDidChange({data:xt,inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}}}return!0}const Re=re.at(Math.max(re.position,re.anchor)),{parent:Xe}=Re;if(me==="moveAfterParent"&&(Xe==null?void 0:Xe.type)==="leftright"&&Re.isLastSibling&&a.options.smartFence&&Ih(re,".",a.defaultStyle)&&(me="",Eo(a)),a.keyboardDelegate.cancelComposition(),me)a.executeCommand(me);else if(he){const ct=a.effectiveStyle;re.setState(we[ye].state);const xt=we[we.length-1].keystrokes;for(const mn of xt)Wi.insert(re,mn,{silenceNotifications:!0,style:ct});a.snapshot("insert-shortcut"),re.setState(we[ye].state),re.deferNotifications({content:!0,selection:!0,data:he,type:"insertText"},()=>(Wi.insert(re,he,{format:"latex",style:ct}),Dh(a.model),he.endsWith(" ")&&(a.switchMode("text"),Wi.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 Th(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=rf(y);const re=window.mathVirtualKeyboard;if(re!=null&&re.isShifted&&(ee=typeof ee=="string"?ee.toUpperCase():ee.map(me=>me.toUpperCase())),b.simulateKeystroke){let me=!0;for(const ye of ee)K0(a,new KeyboardEvent("keypress",{key:ye}))&&(me=!1);if(me)return}const ae=E.at(E.position),he=Se(Se({},ae.computedStyle),a.defaultStyle);if(E.selectionIsCollapsed||(E.deleteAtoms(Go(E.selection)),a.snapshot("delete")),E.mode==="latex")E.deferNotifications({content:!0,selection:!0,data:y,type:"insertText"},()=>{Ef(a);for(const me of ee)Wi.insert(E,me);a.snapshot("insert-latex"),Dd(a)});else if(E.mode==="text"){for(const me of ee)Wi.insert(E,me,{style:he});a.snapshot("insert-text")}else if(E.mode==="math")for(const me of ee)Yg(a,me,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),Wi.insert(ee,y,{style:b}),a.snapshot(),N0(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=Se({},b),ae.style.variant&&(b.variant=ae.style.variant),ae.style.variantStyle&&(b.variantStyle=ae.style.variantStyle))}Wi.insert(ee,y,{style:b}),a.snapshot(`insert-${ee.at(ee.position).type}`)}function qg(a){a.selectionIsCollapsed||(a.deleteAtoms(Go(a.selection)),a.mathfield.snapshot("delete"))}function Ih(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[me,ye]=Go(a.selection),we=a.extractAtoms([me,ye]),Re=ee.addChildrenAfter([new $a("left...right",we,{leftDelim:re,rightDelim:he})],a.at(me));return a.setSelection(a.offsetOf(Re.firstChild),a.offsetOf(Re.lastChild)),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:re,inputType:"insertText"}),!0}if(re==="|"){const me=ee instanceof $a?ee.leftDelim+ee.rightDelim:"";if(me==="\\lbrace\\rbrace"||me==="\\{\\}"||me==="\\lbrace?")return a.mathfield.snapshot(),Wi.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 $a&&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 $a)){let Re=E;for(;Re&&!(Re.type==="mclose"&&Re.value===he);)Re=Re.rightSibling;if(Re){a.mathfield.snapshot();const Xe=a.extractAtoms([a.offsetOf(E),a.offsetOf(Re)]);return Xe.pop(),ee.addChildrenAfter([new $a("left...right",Xe,{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 me=a.offsetOf(E.lastSibling);let ye;for(ye=a.position;ye<=me;ye++){const Re=a.at(ye);if(Re instanceof $a&&(Re.leftDelim==="?"||Re.leftDelim===".")&&W0(re,Re.rightDelim))break}const we=a.at(ye);if(ye<=me&&we instanceof $a){we.leftDelim=re,a.mathfield.snapshot();let Re=a.extractAtoms([a.position,ye-1]);return Re=Re.filter(Xe=>Xe.type!=="first"),we.addChildren(Re,we.parentBranch),a.position+=1,a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(ee instanceof $a&&(ee.leftDelim==="?"||ee.leftDelim===".")&&W0(re,ee.rightDelim)){ee.isDirty=!0,ee.leftDelim=re,a.mathfield.snapshot();const Re=a.extractAtoms([a.offsetOf(E.firstSibling),a.position]);for(const Xe of Re)ee.parent.addChildBefore(Xe,ee);return a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(!(ee instanceof $a&&ee.leftDelim==="|")){if(a.mathfield.snapshot(),Wi.insert(a,`\\left${re}\\right?`,{format:"latex",style:b}),E.lastSibling.type!=="first"){const Re=a.offsetOf(E.lastSibling),Xe=a.extractAtoms([a.position,Re]);a.at(a.position).body=Xe,a.position-=1}return a.mathfield.snapshot("insert-fence"),!0}}if(ae){let me=E;for(;me;){if(me.type==="mopen"&&me.value===ae){a.mathfield.snapshot();const ct=me.leftSibling,xt=a.extractAtoms([a.offsetOf(me.leftSibling),a.offsetOf(E)]);xt.shift();const mn=new $a("left...right",xt,{leftDelim:ae,rightDelim:re});return ee.addChildrenAfter([mn],ct),a.position=a.offsetOf(mn),a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}me=me.leftSibling}if(ee instanceof $a&&E.isLastSibling&&_h(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 ye=a.offsetOf(E.firstSibling);let we;for(we=a.position;we>=ye;we--){const ct=a.at(we);if(ct instanceof $a&&(ct.rightDelim==="?"||ct.rightDelim===".")&&_h(ct.leftDelim,re))break}const Re=a.at(we);if(we>=ye&&Re instanceof $a)return a.mathfield.snapshot(),Re.rightDelim=re,Re.addChildren(a.extractAtoms([we,a.position]),Re.parentBranch),a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(ee instanceof $a&&(ee.rightDelim==="?"||ee.rightDelim===".")&&_h(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 Xe=ee.parent;return Xe instanceof $a&&(Xe.rightDelim==="?"||Xe.rightDelim===".")&&a.at(a.position).isLastSibling?(a.position=a.offsetOf(Xe),Ih(a,re,b)):!1}return!1}function _h(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}Ls({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)=>(Th(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}}),Ls({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"}),Ls({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})&&(Dd(a),a.startRecording(),a.snapshot("paste"),a.model.contentDidChange({inputType:"insertFromPaste"}),Eo(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=Bh(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=Se(Se({},a.defaultStyle),b)):a.model.deferNotifications({content:!0,type:"insertText"},()=>{E.selection.ranges.forEach(ee=>Mh(E,ee,b,{operation:"toggle"})),a.snapshot("style-change")}),!0}Ls({applyStyle:Qg},{target:"mathfield",canUndo:!0,changeContent:!0});function Bh(a,y){var b,E,ee,re,ae,he,me,ye,we,Re;const Xe={};if(typeof y.color=="string"){const xt=(E=a.colorMap((b=y.color)!=null?b:y.verbatimColor))!=null?E:"none";xt!==y.color&&(Xe.verbatimColor=(ee=y.verbatimColor)!=null?ee:y.color),Xe.color=xt}if(typeof y.backgroundColor=="string"){const xt=(ae=a.backgroundColorMap((re=y.backgroundColor)!=null?re:y.verbatimBackgroundColor))!=null?ae:"none";xt!==y.backgroundColor&&(Xe.verbatimBackgroundColor=(he=y.verbatimBackgroundColor)!=null?he:y.backgroundColor),Xe.backgroundColor=xt}typeof y.fontFamily=="string"&&(Xe.fontFamily=y.fontFamily),typeof y.series=="string"&&(Xe.fontSeries=y.series),typeof y.fontSeries=="string"&&(Xe.fontSeries=y.fontSeries.toLowerCase()),Xe.fontSeries&&(Xe.fontSeries=(me={bold:"b",medium:"m",normal:"m"}[Xe.fontSeries])!=null?me:Xe.fontSeries),typeof y.shape=="string"&&(Xe.fontShape=y.shape),typeof y.fontShape=="string"&&(Xe.fontShape=y.fontShape.toLowerCase()),Xe.fontShape&&(Xe.fontShape=(ye={italic:"it",up:"n",upright:"n",normal:"n"}[Xe.fontShape])!=null?ye:Xe.fontShape),y.variant&&(Xe.variant=y.variant.toLowerCase()),y.variantStyle&&(Xe.variantStyle=y.variantStyle.toLowerCase());const ct=(we=y.size)!=null?we:y.fontSize;return typeof ct=="number"?Xe.fontSize=Math.max(1,Math.min(10,ct)):typeof ct=="string"&&(Xe.fontSize=(Re={size1:1,size2:2,size3:3,size4:4,size5:5,size6:6,size7:7,size8:8,size9:9,size10:10}[ct.toLowerCase()])!=null?Re:{tiny:1,scriptsize:2,footnotesize:3,small:4,normal:5,normalsize:5,large:6,Large:7,LARGE:8,huge:9,Huge:10}[ct]),Xe}function Ph(a){let[y,b]=Go(a.selection);if(y=$0(a,y,"backward"),b=$0(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 $0(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 me=(ee=a.at(y))==null?void 0:ee.style;for(;me&&me.variant===ae.style.variant&&me.variantStyle===ae.style.variantStyle;)me=(re=a.at(y+he))==null?void 0:re.style,y+=he;return b==="backward"?y-1:y}return y}return y}Ls({selectGroup:a=>{const y=Ph(a);return y||a.announce("plonk"),y},selectAll:a=>a.setSelection(0,a.lastOffset),extendSelectionForward:a=>Cl(a,"forward",{extend:!0}),extendSelectionBackward:a=>Cl(a,"backward",{extend:!0}),extendToNextWord:a=>Pc(a,"forward",{extend:!0}),extendToPreviousWord:a=>Pc(a,"backward",{extend:!0}),extendSelectionUpward:a=>Cl(a,"upward",{extend:!0}),extendSelectionDownward:a=>Cl(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 Zu=null,Od=0,$f=class Ys{static start(y,b,E,ee){var re;Ys.element=y,(re=Ys.controller)==null||re.abort(),Ys.controller=new AbortController;const ae={signal:Ys.controller.signal};"PointerEvent"in window?(y.addEventListener("pointermove",E,ae),y.addEventListener("pointerup",ee,ae),y.addEventListener("pointercancel",ee,ae),Oh(b)&&(Ys.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=Ys.controller)==null||y.abort(),Ys.controller=void 0,typeof Ys.pointerId=="number"&&(Ys.element.releasePointerCapture(Ys.pointerId),Ys.pointerId=void 0)}};function Oh(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",me=!1,ye=!1;const we=y.clientX,Re=y.clientY,Xe=Date.now(),ct=E.field,xt=setInterval(()=>{me?ct.scroll({top:0,left:ct.scrollLeft-16}):ye&&ct.scroll({top:0,left:ct.scrollLeft+16})},32);function mn(){$f.stop(),re=!1,clearInterval(xt),a.element.classList.remove("tracking"),y&&y.preventDefault()}function cr(Zn){if(!E.hasFocus()){mn();return}const pr=Zn.clientX,Yn=Zn.clientY,$r=Oh(Zn)&&Zn.pointerType==="touch"?20:5;if(Date.now()<Xe+500&&Math.abs(we-pr)<$r&&Math.abs(Re-Yn)<$r){Zn.preventDefault(),Zn.stopPropagation();return}const ui=ct.getBoundingClientRect();ye=pr>ui.right,me=pr<ui.left;let Xr=ee;Oh(Zn)&&(Zn.isPrimary||(Xr=Nd(E,Zn.clientX,Zn.clientY,{bias:0})));const _a=Nd(E,pr,Yn,{bias:pr<=we?pr===we?0:-1:1});Xr>=0&&_a>=0&&(E.model.extendSelectionTo(Xr,_a),Eo(a)),ae&&Ph(E.model)}Zu&&Math.abs(Zu.x-we)<5&&Math.abs(Zu.y-Re)<5&&Date.now()<Zu.time+500?(Od+=1,Zu.time=Xe):(Zu={x:we,y:Re,time:Xe},Od=1);const un=ct.getBoundingClientRect();if(we>=un.left&&we<=un.right&&Re>=un.top&&Re<=un.bottom){if(a.flushInlineShortcutBuffer(),a.adoptStyle="left",ee=Nd(a,we,Re,{bias:0}),ee>=0){if(a.element.classList.add("tracking"),y.shiftKey){const Zn=a.model.selectionIsCollapsed;a.model.extendSelectionTo(a.model.anchor,ee),v0(a.model)||Zn?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||Od>2?(mn(),(y.detail===3||Od===3)&&(a.model.selection={ranges:[[0,a.model.lastOffset]]},he="all")):re||(re=!0,$f.start(ct,y,cr,mn),(y.detail===2||Od===2)&&(ae=!0,Ph(a.model),he="all"))}a.hasFocus()||(he="none",a.focus({preventScroll:!0}))}else Zu=null;a.stopCoalescingUndo(),he!=="none"&&(a.model.selectionIsCollapsed&&(he="all"),Eo(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 Z0(a,y,b,E,ee){if(!b.id)return[1/0,null];if(y.has(b.id))return y.get(b.id);const re=lu(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 me=Z0(a,y,he,E,ee);me[0]<=ae[0]&&(ae=me)}return ae[1]||(ae=[Jg(E,ee,re),b]),y.set(b.id,ae),ae}function ev(a,y,b){const[,E]=Z0(a,new Map,a.model.root,y,b);return E}function Nd(a,y,b,E){var ee;const re=a.field.querySelector(".ML__latex").getBoundingClientRect();if(!re)return 0;if(y>re.right||b>re.bottom+8)return a.model.lastOffset;if(y<re.left||b<re.top-8)return 0;E=E!=null?E:{},E.bias=(ee=E.bias)!=null?ee:0;let ae=ev(a,y,b);const he=[];let me=ae;for(;me;)he.unshift(me),me=me.parent;for(const we of he)if(we.captureSelection){ae=we;break}let ye=a.model.offsetOf(ae);if(ye<0)return-1;if(ae.leftSibling)if(E.bias===0&&ae.type!=="placeholder"){const we=lu(a,ae);we&&y<(we.left+we.right)/2&&(ye=a.model.offsetOf(ae.leftSibling))}else E.bias<0&&(ye=a.model.offsetOf(ae.leftSibling));return ye}var tv=class extends Wi{constructor(){super("math")}onPaste(a,y){if(!y||!a.model.contentWillChange({data:typeof y=="string"?y:null,dataTransfer:typeof y=="string"?null:y,inputType:"insertFromPaste"}))return!1;let b="",E="auto",ee=typeof y!="string"?y.getData("application/json+mathlive"):"";if(ee)try{const re=JSON.parse(ee);if(re&&Array.isArray(re)){a.snapshot();const ae=du(re),{model:he}=a;he.selectionIsCollapsed||he.deleteAtoms(Go(he.selection));const me=he.at(he.position);if(me.parent instanceof Ui){console.assert(me.parentBranch!==void 0);const ye=[];let we=[];ae[0].type==="first"&&ae.shift(),ae[ae.length-1].type==="first"&&ae.pop();for(const xt of ae)xt.type==="first"&&we.length>0?(ye.push(we),we=[xt]):we.push(xt);we.length>0&&ye.push(we);let Re=Number(me.parentBranch[0]),Xe=Number(me.parentBranch[1]);const ct=me.parent.maxColumns;for(;me.parent.colCount-Xe<ye.length&&me.parent.colCount<ct;)me.parent.addColumn();me.parent.addChildrenAfter(ye[0],me);for(let xt=1;xt<ye.length;xt++)Xe++,Xe>=ct&&(Xe=0,me.parent.addRowAfter(Re),Re++),me.parent.setCell(Re,Xe,ye[xt])}else me.parent.addChildrenAfter(ae.filter(ye=>ye.type!=="first"),me);return he.position=he.offsetOf(ae[ae.length-1]),he.contentDidChange({inputType:"insertFromPaste"}),Eo(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]=yl(b),E==="auto"&&re&&(E="latex"),a.stopCoalescingUndo(),a.stopRecording(),this.insert(a.model,b,{format:E})&&(a.startRecording(),a.snapshot("paste"),Eo(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 me={"?":"\\placeholder{}","@":"\\placeholder{}"};me[0]=b.insertionMode==="replaceAll"?"":a.getValue(a.selection,"latex-unstyled"),b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(Go(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 ye=-1;me[0]?me["@"]=me[0]:typeof y=="string"&&/(^|[^\\])#@/.test(y)&&(ye=rv(a),ye>=0&&(me["@"]=a.getValue(ye,a.position,"latex"))),me[0]||(me[0]=me["?"]);let we=!1;const Re=pr=>(we=!0,me[pr]);let[Xe,ct]=U0(a,y,Re,b);if(!ct)return!1;const xt=ct.length===1&&ct[0].type==="genfrac";xt&&ye>=0&&typeof a.mathfield.options.isImplicitFunction=="function"&&a.mathfield.options.isImplicitFunction(a.at(a.position).command)?(me["@"]=me["?"],we=!1,[Xe,ct]=U0(a,y,Re,b)):ye>=0&&a.deleteAtoms([ye,a.position]);const{parent:mn}=a.at(a.position),cr=mn.hasEmptyBranch("body");if(xt&&Xe!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&mn instanceof $a&&mn.leftDelim==="("&&cr){const pr=mn.parent,Yn=mn.parentBranch;pr.removeChild(mn),pr.setChildren(ct,Yn)}const un=a.at(a.position);un.parent.addChildrenAfter(ct,un),Xe==="latex"&&typeof y=="string"&&(mn==null?void 0:mn.type)==="root"&&cr&&!we&&(mn.verbatimLatex=y),a.silenceNotifications=he;const Zn=ct[ct.length-1];if(b.selectionMode==="placeholder"){const pr=ct.flatMap(Yn=>[Yn,...Yn.children]).find(Yn=>Yn.type==="placeholder");if(pr){const Yn=a.offsetOf(pr);a.setSelection(Yn-1,Yn),a.announce("move")}else Zn&&(a.position=a.offsetOf(Zn))}else b.selectionMode==="before"||(b.selectionMode==="after"?Zn&&(a.position=a.offsetOf(Zn)):b.selectionMode==="item"&&a.setSelection(a.anchor,a.offsetOf(Zn)));return a.contentDidChange({data:re,inputType:"insertText"}),a.silenceNotifications=ae,!0}};function U0(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=Xo(y,{context:a.mathfield.context})}else typeof y=="string"&&E.format==="ascii-math"?([re,y]=Pu(y,{format:"ascii-math",inlineShortcuts:a.mathfield.options.inlineShortcuts}),ae=Xo(y,{context:a.mathfield.context}),re!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Vf(ae)):(E.format==="auto"||(ee=E.format)!=null&&ee.startsWith("latex"))&&(E.format==="auto"&&([re,y]=Pu(y,{format:"auto",inlineShortcuts:a.mathfield.options.inlineShortcuts})),E.format==="latex"&&([,y]=yl(y)),ae=Xo(y,{context:a.mathfield.context,args:b}),E.format!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Vf(ae));return hu(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 $a&&y.leftDelim==="("&&y.rightDelim===")"?y.removeBranch("body"):null}function Vf(a){if(a){for(let y=0;a[y];y++){const b=a[y];if(b instanceof $a&&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)){Vf(y.branch(b));const E=nv(y.branch(b));E&&y.setChildren(E,b)}if(y instanceof Ui)for(const b of y.cells)Vf(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 Wi{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"),Eo(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(Go(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(hu(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 "),Xo(a,{context:y,parseMode:"text"})}new iv;function El(a){return{value:a.model.getValue(),selectionIsCollapsed:a.model.selectionIsCollapsed,canUndo:a.canUndo(),canRedo:a.canRedo(),style:a.selectionStyle,mode:a.model.mode}}var fo=4,Cs=20,Fo=2*(Cs+fo),Zf=(a,y)=>`
<line x1="${a+Cs}" y1="${y+Cs}"
x2="${a>y?a+Cs:7*Cs+10*fo}"
y2="${a<y?y+Cs:7*Cs+10*fo}"/>
<svg id="plus" viewBox="0 0 40 40" x="${a}" y="${y}" width="40" height="40">
<circle class="cls-2" cx="20" cy="20" r="20"/>
<path class="font" d="m33.33,20c0,1.84-1.49,3.34-3.33,3.34h-6.67v6.66c0,1.84-1.49,3.34-3.33,3.34s-3.34-1.5-3.34-3.34v-6.66h-6.66c-1.84,0-3.34-1.5-3.34-3.34s1.5-3.33,3.34-3.33h6.66v-6.67c0-1.84,1.5-3.33,3.34-3.33s3.33,1.49,3.33,3.33v6.67h6.67c1.84,0,3.33,1.49,3.33,3.33Z"/>
</svg>`,j0=(a,y)=>`
<line x1="${a+Cs}" y1="${y+Cs}"
x2="${a>y?a+Cs:7*Cs+10*fo}"
y2="${a<y?y+Cs:7*Cs+10*fo}"/>
<svg id="minus" viewBox="0 0 40 40" x="${a}" y="${y}" width="40" height="40">
<circle class="cls-2" cx="20" cy="20" r="20"/>
<path class="font" d="m33.33,20c0,1.84-1.49,3.33-3.33,3.33H10c-1.84,0-3.34-1.49-3.34-3.33s1.5-3.34,3.34-3.34h20c1.84,0,3.33,1.5,3.33,3.34Z"/>
</svg>`,Uf=(a,y,b)=>`
<svg id="arrow" viewBox="0 0 40 40" x="${a}" y="${y}" width="40" height="40">
<circle class="cls-2" cx="20" cy="20" r="20"/>
<g transform="rotate(${b})" transform-origin="20 20">
<path class="font" d="m17.7,7.23h4.6c.52,0,.94.42.94.94v13.82c0,.52.42.94.94.94h3.39c.83,0,1.25,1.01.66,1.6l-7.56,7.56c-.37.37-.96.37-1.32,0l-7.56-7.56c-.59-.59-.17-1.6.66-1.6h3.39c.52,0,.94-.42.94-.94v-13.82c0-.52.42-.94.94-.94Z"/>
</g>
</svg>`,ov=`
<svg class="MLEP__array-buttons" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox=
"-2 -2 ${8*Cs+10*fo+5} ${8*Cs+10*fo+5}">
<rect
class="MLEP__array-insert-background rows"
x="0"
y="${Fo+fo}"
height="${3*Fo}"
width="${Fo}"
rx="${Fo/2}"/>
<rect
class="MLEP__array-insert-background columns"
x="${Fo+fo}"
y="0"
height="${Fo}"
width="${3*Fo}"
rx="${Fo/2}"/>
<g data-command='"moveDown"'>
${Uf(2*(fo+Fo),2*fo+3*Fo,0)}
</g>
<g data-command='"moveUp"'>
${Uf(2*(fo+Fo),2*fo+Fo,180)}
</g>
<g data-command='"moveToNextWord"'>
${Uf(2*fo+3*Fo,2*(fo+Fo),-90)}
</g>
<g data-command='"moveToPreviousWord"'>
${Uf(2*fo+Fo,2*(fo+Fo),90)}
</g>
<g>
<g data-command='"addColumnBefore"'>
${Zf(2*fo+Fo,fo)}
</g>
<g data-command='"removeColumn"'>
${j0(2*fo+2*Fo,fo)}
</g>
<g data-command='"addColumnAfter"'>
${Zf(2*fo+3*Fo,fo)}
</g>
<g data-command='"addRowBefore"'>
${Zf(fo,2*fo+Fo)}
</g>
<g data-command='"removeRow"'>
${j0(fo,2*fo+2*Fo)}
</g>
<g data-command='"addRowAfter"'>
${Zf(fo,2*fo+3*Fo)}
</g>
</svg>`,sv=a=>`
<svg id="matrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","matrix"]'>
<rect class="cls-1" width="28" height="24"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/></svg>`,lv=a=>`
<svg id="pmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","pmatrix"]'>
<rect class="cls-1" width="28" height="24"/>
<path class="cls-2" d="m6,4c-3.96,4.6-3.96,11.4,0,16"/>
<path class="cls-2" d="m22,4c3.96,4.6,3.96,11.4,0,16"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/></svg>`,X0=a=>`
<svg id="Bmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","Bmatrix"]'>
<rect class="cls-1" width="28" height="24"/>
<path class="cls-2" d="m6,4c-1.1,0-2,.9-2,2v3c0,1.66-.9,3-2,3,1.1,0,2,1.34,2,3v3c0,1.1.9,2,2,2"/>
<path class="cls-2" d="m22,4c1.1,0,2,.9,2,2v3c0,1.66.9,3,2,3-1.1,0-2,1.34-2,3v3c0,1.1-.9,2-2,2"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/>
</svg>`,uv=a=>`
<svg id="bmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","bmatrix"]'>
<rect class="cls-1" width="28" height="24"/>
<path class="cls-2" d="m6,4h-3v16h3"/>
<path class="cls-2" d="m22,4h3v16h-3"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/>
</svg>`,cv=a=>`
<svg id="vmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","vmatrix"]'>
<rect class="cls-1" width="28" height="24"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/>
<line class="cls-2" x1="4" y1="4" x2="4" y2="20"/>
<line class="cls-2" x1="24" y1="4" x2="24" y2="20"/>
</svg>`,dv=a=>`
<svg id="Vmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="-3.5 -3 35 30"
data-command='["setEnvironment","Vmatrix"]'>
<rect class="cls-1" width="28" height="24"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/>
<line class="cls-2" x1="6" y1="4" x2="6" y2="20"/>
<line class="cls-2" x1="22" y1="4" x2="22" y2="20"/>
<line class="cls-2" x1="2" y1="4" x2="2" y2="20"/>
<line class="cls-2" x1="26" y1="4" x2="26" y2="20"/>
</svg>`,fv=a=>`
<svg id="cases" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","cases"]'>
<rect class="cls-1" width="28" height="24"/>
<path class="cls-2" d="m10,4c-1.1,0-2,.9-2,2v3c0,1.66-.9,3-2,3,1.1,0,2,1.34,2,3v3c0,1.1.9,2,2,2"/>
<circle cx="13" cy="8" r="1"/>
<circle cx="13" cy="16" r="1"/>
<circle cx="21" cy="8" r="1"/>
<circle cx="21" cy="16" r="1"/>
</svg>`,hv=a=>`
<svg id="rcases" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","rcases"]'>
<rect class="cls-1" width="28" height="24"/>
<path class="cls-2" d="m18,20c1.1,0,2-.9,2-2v-3c0-1.66.9-3,2-3-1.1,0-2-1.34-2-3v-3c0-1.1-.9-2-2-2"/>
<circle cx="15" cy="8" r="1"/>
<circle cx="15" cy="16" r="1"/>
<circle cx="7" cy="8" r="1"/>
<circle cx="7" cy="16" r="1"/>
</svg>`,Nh={matrix:sv,pmatrix:lv,bmatrix:uv,Bmatrix:X0,vmatrix:cv,Vmatrix:dv},Rh={cases:fv,rcases:hv,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(xt=>{(!ee||xt.length>ee)&&(ee=xt.length)});let re=document.getElementById("mathlive-environment-popover");re||(re=Mf("mathlive-environment-popover"),As("environment-popover"),As("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 me=[],ye="";const we=a.model.parentEnvironment.environmentName;if(cs(we)){const xt=gv(we);ye=Nh[xt]("active");const mn=Nh,{[xt]:cr}=mn,un=ot(mn,[Ie(xt)]);me=Object.values(un).map(Zn=>Zn("inactive"))}else if(ds(we)){const xt=vv(we);ye=Rh[xt]("active");const mn=Rh,{[xt]:cr}=mn,un=ot(mn,[Ie(xt)]);me=Object.values(un).map(Zn=>Zn("inactive"))}else _o(we)&&(ye=Nh.matrix("active"),me=Object.values(Rh).map(xt=>xt("inactive")));const Re=document.createElement("div");Re.className="MLEP__environment-delimiter-controls",Re.style.display="flex",Re.style.flexDirection="column",Re.innerHTML=`
<div class='MLEP__array-delimiter-options'>
${ye}
${me.join("")}
</div>`,ye&&ae.appendChild(Re),ae.querySelectorAll("[data-command]").forEach(xt=>{const mn=xt.dataset.command;let cr=mn;try{cr=JSON.parse(mn)}catch(un){}xt.addEventListener("mousedown",un=>un.preventDefault()),cr&&xt.addEventListener("click",()=>a.executeCommand(cr))});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 Fh(){const a=document.getElementById("mathlive-environment-popover");a==null||a.classList.remove("is-visible")}function mv(){document.getElementById("mathlive-environment-popover")&&(bh("mathlive-environment-popover"),x("environment-popover"),x("core"))}function Gf(a){if(!a.hasFocus())return;let y=!1;if(a.model.mode==="math"){const b=a.model.parentEnvironment;if(b!=null&&b.array&&bo(b.environmentName)){const E=a.options.environmentPopoverPolicy;y=E==="auto"||E==="on"}}y?pv(a):Fh()}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 zh(a,y,b,E){return b==="middle"?a-y/2:b==="start"&&E==="rtl"||b==="end"&&E==="ltr"||b==="top"||b==="right"?Math.max(0,a-y):a}function yv(a,y,b,E){return b==="middle"?a-y/2:b==="start"&&E==="ltr"||b==="end"&&E==="rtl"||b==="top"||b==="right"?a:a-y}function bv(a,y){var b,E,ee;const 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 me=Math.min(he,(E=y.height)!=null?E:ae.height),ye=zh(y.location.y,me,y.verticalPos,re);ye+me>window.innerHeight-8&&(y.alternateLocation?(ye=zh(y.alternateLocation.y,me,y.verticalPos,re),ye+me>window.innerHeight-8&&(ye=void 0)):ye=void 0),Number.isFinite(ye)||(ye=Math.max(8,window.innerHeight-8-me),8+me>window.innerHeight-8&&(a.style.bottom="8px")),me=Math.min(ye+me,window.innerHeight-8)-ye;const we=Number.isFinite(y.maxWidth)?Math.min(y.maxWidth,window.innerWidth):window.innerWidth;let Re=Math.min(we,(ee=y.width)!=null?ee:ae.width),Xe=zh(y.location.x,Re,y.horizontalPos,re);Xe+Re>window.innerWidth-8&&(y.alternateLocation?(Xe=yv(y.alternateLocation.x,Re,y.verticalPos,re),Xe+Re>window.innerWidth-8&&(Xe=void 0)):Xe=void 0),Number.isFinite(Xe)||(Xe=Math.max(8,window.innerWidth-8-Re),8+Re>window.innerWidth-8&&(a.style.right="8px")),Re=Math.min(Xe+Re,window.innerWidth-8)-Xe,re==="rtl"?a.style.right=`${Math.ceil(window.innerWidth-Xe-Re).toString()}px`:a.style.left=`${Math.ceil(Xe).toString()}px`,a.style.top=`${Math.ceil(ye).toString()}px`,me!==ae.height&&(a.style.height=`${Math.ceil(me).toString()}px`),Re!==ae.width&&(a.style.width=`${Math.ceil(Re).toString()}px`)}function xv(a,y){return Math.hypot(y.x-a.x,y.y-a.y)}function Oc(a){return"submenu"in a}function Ml(a){return"type"in a&&a.type==="command"||"onMenuSelect"in a||"id"in a}function Hh(a){return"type"in a&&a.type==="divider"}function Kh(a){return"type"in a&&a.type==="heading"}var Q0={};function Wh(a){let y=Q0[a];if(!y){let b;switch(a){case"checkmark":b=`<span aria-hidden="true" class="ui-checkmark"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M435.848 83.466L172.804 346.51l-96.652-96.652c-4.686-4.686-12.284-4.686-16.971 0l-28.284 28.284c-4.686 4.686-4.686 12.284 0 16.971l133.421 133.421c4.686 4.686 12.284 4.686 16.971 0l299.813-299.813c4.686-4.686 4.686-12.284 0-16.971l-28.284-28.284c-4.686-4.686-12.284-4.686-16.97 0z"></path></svg>
</span>`;break;case"trailing-chevron":b='<span aria-hidden="true" class="ui-trailing-chevron"><svg focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="currentColor" d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"></path></svg></span>';break;case"mixedmark":b='<span aria-hidden="true" class="ui-mixedmark"><svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 512 512"><path fill="currentColor" d="M0 256c0-13.3 10.7-24 24-24H488c13.3 0 24 10.7 24 24s-10.7 24-24 24H24c-13.3 0-24-10.7-24-24z"/></svg></span>'}if(b){const E=document.createElement("template");E.innerHTML=b,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,Oc(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=Ml(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(Hh(ee)){this.enabled=!1,this.checked=!1;return}Kh(ee)&&(this.enabled=!1,this.checked=!1,this.visible=!0),Ml(ee)&&(this.checked=Ml(ee)&&((y=Nc(ee.checked,a))!=null?y:!1)),(Ml(ee)||Oc(ee))&&(this.enabled=(b=Nc(ee.enabled,a))!=null?b:!0,this.visible=(E=Nc(ee.visible,a))!=null?E:!0,this.visible&&this.enabled&&this.submenu&&(this.submenu.updateState(a),this.submenu.visible||(this.visible=!1))),(Ml(ee)||Kh(ee)||Oc(ee))&&(this.label=Nc(ee.label,a),this.tooltip=Nc(ee.tooltip,a),this.ariaLabel=Nc(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(Wh("checkmark"))):this.checked==="mixed"?(a.setAttribute("aria-checked","mixed"),a.append(Wh("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),Ml(this._declaration)&&this._declaration.keyboardShortcut){const b=document.createElement("kbd");b.innerHTML=vh(this._declaration.keyboardShortcut),a.append(b)}this.type==="submenu"&&a.append(Wh("trailing-chevron"))}get element(){if(this._element)return this._element;if(Hh(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,(Ml(this._declaration)||Kh(this._declaration)||Oc(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(!Ml(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.left<he.left+he.width/2&&(re="left")}return re==="right"?E>0:E<0}};function wv(a,y,b){return Math.hypot(a,y)/b}function Nc(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 Vc{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(ye=>ye.updateState(y));const re=this.hasCheck;this.hasCheck=this._menuItems.some(ye=>ye.visible&&ye.hasCheck),this.hasCheck!==re&&this._menuItems.forEach(ye=>ye.updateState(y));let ae,he=0;for(const ye of this._menuItems)ye.type==="heading"?(ae&&he===0&&(ae.visible=!1),ae=ye,he=0):ye.type==="divider"&&ae?(ae.visible=he>0,ae=void 0,he=0):ae&&ye.visible&&(he+=1);ae&&(ae.visible=he>0);let me=!0;for(const ye of this._menuItems)ye.type==="divider"?(ye.visible=!me,me=!0):ye.visible&&(me=!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 Vc._collator||(Vc._collator=new Intl.Collator(void 0,{usage:"search",sensitivity:"base"})),Vc._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(;ae<ee&&!re;)re=(b=E.find(he=>Vc.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),zt()&&(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),zt()&&((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=Ru(y)),y.stopImmediatePropagation()}handleKeydownEvent(y){var b,E,ee;if(y.key==="Tab"||y.key==="Escape"){this.hide();return}this.isDynamic&&(this.modifiers=Ru(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(Ru(y));break;case"ArrowRight":if((he==null?void 0:he.type)==="submenu")he.select(Ru(y)),this.activeSubmenu.activeMenuItem=this.activeSubmenu.firstMenuItem;else if(!he)ae.activeMenuItem=ae.firstMenuItem;else{const me=(b=ae.getMenuItemColumn(he))!=null?b:-1;if(me>=0&&me<((E=ae.columnCount)!=null?E:1)-1){const ye=ae.nextMenuItem(1);ye&&(ae.activeMenuItem=ye)}}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 ye=ae.parentMenu.activeMenuItem;if(ye){const{element:we}=ye;we==null||we.focus(),we==null||we.classList.remove("is-submenu-open")}}else{const ye=ae.nextMenuItem(-1);ye&&(ae.activeMenuItem=ye)}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 me=ae.findMenuItem(this.typingBuffer);me&&(ae.activeMenuItem=me),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}break;default:if(Sf(y)){isFinite(this.typingBufferResetTimer)&&clearTimeout(this.typingBufferResetTimer),this.typingBuffer+=y.key;const me=ae.findMenuItem(this.typingBuffer);me&&(ae.activeMenuItem=me),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 wl.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),wl.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),wl.state==="open"&&wl.scrim.close()}get rootMenu(){return this}show(y){return this._onDismiss=y==null?void 0:y.onDismiss,y!=null&&y.modifiers&&(this.modifiers=y.modifiers),this.updateState(),this.connectScrim(y==null?void 0:y.target),super.show(pe(Se({},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,wl.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 Hh(a)?!1:typeof a.label=="function"||typeof a.ariaLabel=="function"||typeof a.tooltip=="function"||(Ml(a)||Oc(a))&&(typeof a.enabled=="function"||typeof a.visible=="function")||Ml(a)&&typeof a.checked=="function"?!0:Oc(a)?a.submenu.some(rp):!1}var jf=class{};jf.DELAY=300,jf.MAX_DISTANCE=10;function Cv(a){return new Promise((y,b)=>{const E=wf(a);E||y(!1);let ee=E;const re=setTimeout(()=>{ae.abort(),y(xv(ee,E)<jf.MAX_DISTANCE)},jf.DELAY),ae=new AbortController,he=ae.signal;for(const me of["pointermove","pointerup","pointercancel"])window.addEventListener(me,ye=>{if(ye.type==="pointerup"||ye.type==="pointercancel")clearTimeout(re),ae.abort(),y(!1);else if(ye.type==="pointermove"){const we=wf(ye);we&&(ee=we)}},{passive:!0,signal:he})})}function ip(a,y,b){return gu(this,null,function*(){if(a.type==="contextmenu"){const E=a;if(b.show({target:y,location:wf(E),modifiers:Ru(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:Ru(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=wf(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};_t(Object.keys(ap),"{body:auto}",{createAtom:a=>new z(pe(Se({},a),{body:at(a.args[0]),accentChar:ap[a.command.slice(1)]}))}),_t(["widehat","widecheck","widetilde"],"{body:auto}",{createAtom:a=>{const y=Nt(at(a.args[0]));return new z(pe(Se({},a),{body:at(a.args[0]),svgAccent:a.command.slice(1)+(y.length>5?"4":["1","1","2","2","3","3"][y.length])}))}}),_t(["overarc","overparen","wideparen"],"{body:auto}",{createAtom:a=>new z(pe(Se({},a),{body:at(a.args[0]),svgAccent:"overarc"}))}),_t(["underarc","underparen"],"{body:auto}",{createAtom:a=>new Gs(pe(Se({},a),{body:at(a.args[0]),svgBelow:"underarc"}))}),_t("utilde","{body:auto}",{createAtom:a=>{const y=at(a.args[0]),b=Nt(y),E="widetilde"+(b.length>5?"4":["1","1","2","2","3","3"][b.length]);return new Gs(pe(Se({},a),{body:y,svgBelow:E,boxType:ru(y)}))}}),_t("^","{:string}",{createAtom:a=>{var y;return new Bn(pe(Se({},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:"^"}))}}),_t("`","{:string}",{createAtom:a=>{var y;return new Bn(pe(Se({},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:"`"}))}}),_t("'","{:string}",{createAtom:a=>{var y;return new Bn(pe(Se({},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:"'"}))}}),_t('"',"{:string}",{createAtom:a=>{var y,b;return new Bn(pe(Se({},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]:'"'}))}}),_t(".","{:string}",{createAtom:a=>{var y,b;return new Bn(pe(Se({},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]:"."}))}}),_t("=","{:string}",{createAtom:a=>{var y,b;return new Bn(pe(Se({},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]:"="}))}}),_t("~","{:string}",{createAtom:a=>{var y;return new Bn(pe(Se({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"}))}}),_t("c","{:string}",{createAtom:a=>{var y;return new Bn(pe(Se({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={c:"\xE7",C:"\xC7"}[a.args[0]])!=null?y:""}))}}),_t("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 me=he.match(/\s*(\S+)\s+(\S+)\s+(.*)/);if(me)ee.strokeWidth=me[1],ee.strokeStyle=me[2],ee.strokeColor=me[3];else{const ye=he.match(/\s*([a-z]*)\s*=\s*"(.*)"/);ye&&(ye[1]==="mathbackground"?ee.backgroundcolor=ye[2]:ye[1]==="mathcolor"?ee.strokeColor=ye[2]:ye[1]==="padding"?ee.padding=ye[2]:ye[1]==="shadow"&&(ee.shadow=ye[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 bd(a.command,at(E[2]),re,ee)}}),_t("cancel","{body:auto}",{createAtom:a=>{var y;return new bd(a.command,at(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:{}})}}),_t("bcancel","{body:auto}",{createAtom:a=>{var y;return new bd(a.command,at(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:{}})}}),_t("xcancel","{body:auto}",{createAtom:a=>{var y;return new bd(a.command,at(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:{}})}}),_t(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overlinesegment","overgroup"],"{:auto}",{createAtom:a=>{var y;return new Gs(pe(Se({},a),{body:at((y=a.args)==null?void 0:y[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgAbove:a.command.slice(1)}))}}),_t("overbrace","{:auto}",{createAtom:a=>new Gs(pe(Se({},a),{body:at(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgAbove:a.command.slice(1)}))}),_t(["underrightarrow","underleftarrow","underleftrightarrow","underlinesegment","undergroup"],"{:auto}",{createAtom:a=>new Gs(pe(Se({},a),{body:at(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgBelow:a.command.slice(1)}))}),_t(["underbrace"],"{:auto}",{createAtom:a=>new Gs(pe(Se({},a),{body:at(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgBelow:a.command.slice(1)}))}),_t(["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 Gs(pe(Se({},a),{svgBody:a.command.slice(1),above:((b=at((y=a.args)==null?void 0:y[1]))==null?void 0:b.length)===0?void 0:at((E=a.args)==null?void 0:E[1]),below:(re=at((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)}`}),_t(["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 Nu(a.command.slice(1),pe(Se({},a),{limits:"adjacent",isFunction:!0,variant:"main",variantStyle:"up"}))}),_t(["liminf","limsup"],"",{ifMode:"math",createAtom:a=>new Nu({"\\liminf":"lim inf","\\limsup":"lim sup"}[a.command],pe(Se({},a),{limits:"over-under",variant:"main"}))}),_t(["lim","mod"],"",{ifMode:"math",createAtom:a=>new Nu(a.command.slice(1),pe(Se({},a),{limits:"over-under",variant:"main"}))}),_t(["det","max","min"],"",{ifMode:"math",isFunction:!0,createAtom:a=>new Nu(a.command.slice(1),pe(Se({},a),{limits:"over-under",isFunction:!0,variant:"main"}))}),_t(["ang"],"{:math}",{ifMode:"math",createAtom:a=>new Bn(pe(Se({},a),{body:at(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 fr("\xB0",{style:pe(Se({},a.style),{variant:"normal",variantStyle:"up"})});return new fr([b,ee],{type:"inner",isSelected:a.isSelected,caret:E})}}),_t("sqrt","[index:auto]{radicand:expression}",{ifMode:"math",createAtom:a=>new o0(pe(Se({},a),{body:at(a.args[1]),index:a.args[0]?at(a.args[0]):void 0}))}),_t(["frac","dfrac","tfrac","cfrac","binom","dbinom","tbinom"],"{:expression}{:expression}",{ifMode:"math",createAtom:a=>{const y=Se({},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 kc(E[0]?at(E[0]):[new vi],E[1]?at(E[1]):[new vi],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}`:co(a.command,b,E)}}),_t(["brace","brack"],"",{infix:!0,createAtom:a=>new kc(at(a.args[0]),at(a.args[1]),pe(Se({},a),{hasBarLine:!1,leftDelim:a.command==="\\brace"?"\\lbrace":"\\lbrack",rightDelim:a.command==="\\brace"?"\\rbrace":"\\rbrack"})),serialize:(a,y)=>ua([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),_t(["over","atop","choose"],"",{infix:!0,createAtom:a=>{let y,b;const E=a.args;return a.command==="\\choose"&&(y="(",b=")"),new kc(at(E[0]),at(E[1]),pe(Se({},a),{hasBarLine:a.command==="\\over",leftDelim:y,rightDelim:b}))},serialize:(a,y)=>ua([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),_t(["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 kc(at(E[0]),at(E[1]),pe(Se({},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)}`}),_t("pdiff","{numerator}{denominator}",{ifMode:"math",createAtom:a=>new kc(at(a.args[0]),at(a.args[1]),pe(Se({},a),{hasBarLine:!0,numerPrefix:"\u2202",denomPrefix:"\u2202"}))}),_t(["sum","prod","bigcup","bigcap","coprod","bigvee","bigwedge","biguplus","bigotimes","bigoplus","bigodot","bigsqcup","intop"],"",{ifMode:"math",createAtom:a=>new fh({coprod:"\u2210",bigvee:"\u22C1",bigwedge:"\u22C0",biguplus:"\u2A04",bigcap:"\u22C2",bigcup:"\u22C3",intop:"\u222B",prod:"\u220F",sum:"\u2211",bigotimes:"\u2A02",bigoplus:"\u2A01",bigodot:"\u2A00",bigsqcup:"\u2A06",smallint:"\u222B"}[a.command.slice(1)],pe(Se({},a),{limits:"auto",variant:"main"}))}),_t("smallint","",{ifMode:"math",createAtom:a=>new Nu("\u222B",pe(Se({},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"};_t(Object.keys(op),"",{ifMode:"math",createAtom:a=>{const y=a.command,b=op[y.slice(1)];return new fh(b,pe(Se({},a),{limits:"adjacent",variant:{"\u22D2":"ams","\u22D3":"ams"}[b]}))}}),_t(["Re","Im"],"",{ifMode:"math",createAtom:a=>new Nu({"\\Re":"\u211C","\\Im":"\u2111"}[a.command],pe(Se({},a),{limits:"adjacent",isFunction:!0,variant:"fraktur"}))}),_t("middle","{:delim}",{ifMode:"math",createAtom:a=>{var y;return new r0(pe(Se({},a),{delim:(y=a.args[0])!=null?y:"|",size:1}))}}),_t("the","{:value}",{createAtom:a=>new Bn(pe(Se({},a),{captureSelection:!0,verbatimLatex:null})),render:(a,y)=>{var b;const E=new Ma({parent:y},a.style);let ee="";a.isSelected&&(ee+=" ML__selected");const re=E.evaluate(a.args[0]);return new fr(((b=Io(re))!=null?b:"").split("").map(ae=>new fr(ae,{type:"ord",classes:ee,mode:a.mode,isSelected:a.isSelected,style:Se({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=Io(a.args[0]))!=null?y:"\\relax"}`}}),_t("mathtip","{:auto}{:math}",{createAtom:a=>new hh(pe(Se({},a),{body:at(a.args[0]),tooltip:at(a.args[1]),content:"math"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${Bn.serialize([a.tooltip],pe(Se({},y),{defaultMode:"math"}))}}`}),_t("texttip","{:auto}{:text}",{createAtom:a=>new hh(pe(Se({},a),{body:at(a.args[0]),tooltip:at(a.args[1]),content:"text"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${Bn.serialize([a.tooltip],pe(Se({},y),{defaultMode:"text"}))}}`}),_t("error","{:math}",{createAtom:a=>new Bn(pe(Se({},a),{body:at(a.args[0])})),serialize:(a,y)=>`\\error{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__error"})}),_t("ensuremath","{:math}",{createAtom:a=>new Bn(pe(Se({},a),{body:at(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(pe(Se({},y),{defaultMode:"math"}))}}`}),_t("color","{:value}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimColor:(E=Io(y[0]))!=null?E:void 0,color:b.toColor((ee=y[0])!=null?ee:{string:"red"})}}}),_t("textcolor","{:value}{content:auto*}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimColor:(E=Io(y[0]))!=null?E:void 0,color:b.toColor((ee=y[0])!=null?ee:{string:"red"})}}}),_t("boxed","{content:math}",{createAtom:a=>new ko(pe(Se({},a),{body:at(a.args[0]),framecolor:{string:"black"}}))}),_t("colorbox","{:value}{:text*}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimBackgroundColor:(E=Io(y[0]))!=null?E:void 0,backgroundColor:b.toBackgroundColor((ee=y[0])!=null?ee:{string:"yellow"})}}}),_t("fcolorbox","{frame-color:value}{background-color:value}{content:text}",{applyMode:"text",createAtom:a=>{var y,b;return new ko(pe(Se({},a),{body:at(a.args[2]),framecolor:(y=a.args[0])!=null?y:{string:"blue"},backgroundcolor:(b=a.args[1])!=null?b:{string:"yellow"}}))},serialize:(a,y)=>{var b,E;return y.skipStyles?a.bodyToLatex(pe(Se({},y),{defaultMode:"text"})):co(a.command,(b=Io(a.framecolor))!=null?b:"",(E=Io(a.backgroundcolor))!=null?E:"",a.bodyToLatex(pe(Se({},y),{defaultMode:"text"})))}}),_t("bbox","[:bbox]{body:auto}",{createAtom:a=>{var y;const b=a.args[0],E=at(a.args[1]);return b?new ko(pe(Se({},a),{body:E,padding:b.padding,border:b.border,backgroundcolor:(y=b.backgroundcolor)!=null?y:void 0})):new ko(pe(Se({},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=Io(a.padding))!=null?b:""),a.border&&re.push(`border: ${a.border}`),a.backgroundcolor&&re.push((E=Io(a.backgroundcolor))!=null?E:""),ee+=`[${re.join(",")}]`}return co(ee,a.bodyToLatex(y))}}),_t(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"{:rest}",{createAtom:a=>new Bn(pe(Se({},a),{body:at(a.args[0])})),render:(a,y)=>{const b=new Ma({parent:y,mathstyle:a.command.slice(1)},a.style),E=Bn.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):`{${ua([a.command,a.bodyToLatex(y)])}}`}),_t(["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]})}),_t("fontseries","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontSeries:(b=y[0])!=null?b:"auto"}}}),_t("fontshape","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontShape:(b=y[0])!=null?b:"auto"}}}),_t("fontfamily","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontFamily:(b=y[0])!=null?b:"roman"}}}),_t("selectfont","",{ifMode:"text",applyStyle:()=>({})}),_t("bf","{:rest}",{applyStyle:()=>({fontSeries:"b",fontShape:"n",fontFamily:"roman"})}),_t(["boldsymbol","bm"],"{:math}",{applyMode:"math",createAtom:a=>new Bn(pe(Se({},a),{body:at(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__boldsymbol"})}),_t("bold","{:math*}",{applyMode:"math",applyStyle:()=>({variantStyle:"bold"})}),_t("bfseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),_t("mdseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),_t("upshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),_t("slshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),_t("scshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),_t("textbf","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),_t("textmd","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),_t("textup","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),_t("textnormal","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n",fontSeries:"m"})}),_t("textsl","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),_t("textit","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"it"})}),_t("textsc","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),_t("textrm","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"roman"})}),_t("textsf","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"sans-serif"})}),_t("texttt","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"monospace"})}),_t("mathbf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"bold"})}),_t("mathit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"italic"})}),_t("mathnormal","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"italic"})}),_t("mathbfit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"bolditalic"})}),_t("mathrm","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"up"})}),_t("mathsf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"sans-serif",variantStyle:"up"})}),_t("mathtt","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"monospace",variantStyle:"up"})}),_t("it","{:rest}",{applyStyle:()=>({fontSeries:"m",fontShape:"it",fontFamily:"roman",variantStyle:"italic"})}),_t("rmfamily","",{applyStyle:()=>({fontFamily:"roman"})}),_t("sffamily","",{applyStyle:()=>({fontFamily:"sans-serif"})}),_t("ttfamily","",{applyStyle:()=>({fontFamily:"monospace"})}),_t(["Bbb","mathbb"],"{:math*}",{applyStyle:()=>({variant:"double-struck",variantStyle:"up"})}),_t(["frak","mathfrak"],"{:math*}",{applyStyle:()=>({variant:"fraktur",variantStyle:"up"})}),_t("mathcal","{:math*}",{applyStyle:()=>({variant:"calligraphic",variantStyle:"up"})}),_t("mathscr","{:math*}",{applyStyle:()=>({variant:"script",variantStyle:"up"})}),_t("mbox","{:text}",{ifMode:"math",createAtom:a=>new Bn(pe(Se({},a),{type:"mord",body:at(a.args[0]),mode:"math"})),serialize:(a,y)=>co("\\mbox",a.bodyToLatex(pe(Se({},y),{defaultMode:"text"})))}),_t("text","{:text}",{ifMode:"math",applyMode:"text"}),_t(["class","htmlClass"],"{name:string}{content:auto}",{createAtom:a=>new Bn(pe(Se({},a),{body:at(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:""})}}),_t(["cssId","htmlId"],"{id:string}{content:auto}",{createAtom:a=>new Bn(pe(Se({},a),{body:at(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}}),_t("htmlData","{data:string}{content:auto}",{createAtom:a=>new Bn(pe(Se({},a),{body:at(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}}),_t(["style","htmlStyle"],"{data:string}{content:auto}",{createAtom:a=>new Bn(pe(Se({},a),{body:at(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}}),_t("em","{:rest}",{createAtom:a=>new Bn(pe(Se({},a),{body:at(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"})}),_t("emph","{:auto}",{createAtom:a=>new Bn(pe(Se({},a),{body:at(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}};_t(["bigl","Bigl","biggl","Biggl","bigr","Bigr","biggr","Biggr","bigm","Bigm","biggm","Biggm","big","Big","bigg","Bigg"],"{:delim}",{createAtom:a=>{var y;return new i0(pe(Se({},a),{delim:(y=a.args[0])!=null?y:".",size:sp[a.command].size,delimType:sp[a.command].mclass}))}}),_t(["hspace","hspace*"],"{width:value}",{createAtom:a=>{var y;return new Sd(pe(Se({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),_t(["mkern","kern","mskip","hskip","mspace"],"{width:value}",{createAtom:a=>{var y;return new Sd(pe(Se({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),_t("mathchoice","{:math}{:math}{:math}{:math}",{createAtom:a=>new Bn(a),render:(a,y)=>{let b=0;const E=y.mathstyle.id;(E===Iu||E===ml)&&(b=1),(E===Hl||E===ss)&&(b=2),(E===ks||E===Uo)&&(b=3);const ee=at(a.args[b]);return Bn.createBox(y,ee)},serialize:(a,y)=>`\\mathchoice{${Bn.serialize(a.args[0],y)}}{${Bn.serialize(a.args[1],y)}}{${Bn.serialize(a.args[2],y)}}{${Bn.serialize(a.args[3],y)}}`}),_t("mathop","{:auto}",{createAtom:a=>new Bn(pe(Se({},a),{type:"mop",body:at(a.args[0]),limits:"over-under",isFunction:!0,captureSelection:!0})),render:(a,y)=>{var b;let E=Bn.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 fr(a.bind(y,E),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[co(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)),ua(b)}}),_t(["mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",{createAtom:a=>new Bn(pe(Se({},a),{type:{"\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[a.command],body:at(a.args[0])}))}),_t(["operatorname","operatorname*"],"{operator:math}",{createAtom:a=>{const y=at(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 Bn(pe(Se({},a),{type:"mop",body:y,isFunction:!0,limits:a.command==="\\operatorname"?"adjacent":"over-under"}))},render:(a,y)=>{var b;let E=Bn.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 fr(a.bind(y,E),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[co(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)),ua(b)}}),_t(["char","unicode"],"{charcode:value}",{createAtom:a=>new Bn(pe(Se({},a),{type:a.mode==="text"?"text":"mord"})),serialize:a=>{var y;return`${a.command}${Io((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)}}),_t("rule","[raise:value]{width:value}{thickness:value}",{createAtom:a=>new Bn(a),render:(a,y)=>{var b,E,ee;const re=new Ma({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}),me=re.toEm((ee=a.args[2])!=null?ee:{dimension:10}),ye=new fr(null,{classes:"rule",type:"ord"});return ye.width=he,ye.height=me+ae,ye.depth=-ae,ye.setStyle("border-right-width",he,"em"),ye.setStyle("border-top-width",me,"em"),ye.setStyle("border-color",a.style.color),ye.setStyle("vertical-align",ae,"em"),a.isSelected&&ye.setStyle("opacity","50%"),a.bind(re,ye),a.caret&&(ye.caret=a.caret),ye.wrap(y)},serialize:a=>`\\rule${a.args[0]?`[${Io(a.args[0])}]`:""}{${Io(a.args[1])}}{${Io(a.args[2])}}`}),_t(["overline","underline"],"{:auto}",{createAtom:a=>new Bn(pe(Se({},a),{body:at(a.args[0])})),render:(a,y)=>{const b=a.command.substring(1),E=new Ma({parent:y,mathstyle:"cramp"},a.style),ee=Bn.createBox(E,a.body);if(!ee)return null;const re=E.metrics.defaultRuleThickness/E.scalingFactor,ae=new fr(null,{classes:b+"-line"});ae.height=re,ae.maxFontSize=re*1.125*E.scalingFactor;let he;return b==="overline"?he=new Ja({shift:0,children:[{box:ee},3*re,{box:ae},re]}):he=new Ja({top:ee.height,children:[re,{box:ae},3*re,{box:ee}]}),a.caret&&(he.caret=a.caret),new fr(he,{classes:b,type:"ignore"})}}),_t("overset","{:auto}{base:auto}",{createAtom:a=>{const y=at(a.args[1]);return new Gs(pe(Se({},a),{above:at(a.args[0]),body:y,skipBoundary:!1,boxType:ru(y)}))},serialize:(a,y)=>co(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),_t("underset","{:auto}{base:auto}",{createAtom:a=>{const y=at(a.args[1]);return new Gs(pe(Se({},a),{below:at(a.args[0]),body:y,skipBoundary:!1,boxType:ru(y)}))},serialize:(a,y)=>co(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),_t("overunderset","{above:auto}{below:auto}{base:auto}",{createAtom:a=>{const y=at(a.args[2]);return new Gs(pe(Se({},a),{above:at(a.args[0]),below:at(a.args[1]),body:y,skipBoundary:!1,boxType:ru(y)}))},serialize:(a,y)=>co(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),_t(["stackrel","stackbin"],"[below:auto]{above:auto}{base:auto}",{createAtom:a=>new Gs(pe(Se({},a),{body:at(a.args[2]),above:at(a.args[1]),below:at(a.args[0]),skipBoundary:!1,boxType:a.command==="\\stackrel"?"rel":"bin"})),serialize:(a,y)=>co(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),_t("smash","[:string]{:auto}",{createAtom:a=>{var y,b,E,ee;return new wd(pe(Se({},a),{body:at(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}))}}),_t(["vphantom"],"{:auto}",{createAtom:a=>new wd(pe(Se({},a),{body:at(a.args[0]),isInvisible:!0,smashWidth:!0}))}),_t(["hphantom"],"{:auto}",{createAtom:a=>new wd(pe(Se({},a),{body:at(a.args[0]),isInvisible:!0,smashHeight:!0,smashDepth:!0}))}),_t(["phantom"],"{:auto}",{createAtom:a=>new wd(pe(Se({},a),{body:at(a.args[0]),isInvisible:!0}))}),_t("not","{:math}",{createAtom:a=>{const y=at(a.args[0]);return y.length===0?new Bn(pe(Se({},a),{type:"mrel",value:"\uE020"})):new Bn(pe(Se({},a),{body:[new Ou(pe(Se({},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{${Bn.serialize(b.group,y)}}`:`\\not${Bn.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":ru(at(a.args[0])),ee=Bn.createBox(y,a.body,{type:E});return a.caret&&(ee.caret=a.caret),a.bind(y,ee)}}),_t(["ne","neq"],"",{createAtom:a=>new Bn(pe(Se({},a),{type:"mrel",body:[new Ou(pe(Se({},a),{body:"\uE020",align:"right",boxType:"rel"})),new Bn(pe(Se({},a),{value:"="}))],captureSelection:!0})),serialize:a=>a.command}),_t("rlap","{:auto}",{createAtom:a=>new Ou(pe(Se({},a),{body:at(a.args[0]),align:"right"}))}),_t("llap","{:auto}",{createAtom:a=>new Ou(pe(Se({},a),{body:at(a.args[0]),align:"left"}))}),_t("mathrlap","{:math}",{createAtom:a=>new Ou(pe(Se({},a),{body:at(a.args[0]),align:"left"}))}),_t("mathllap","{:math}",{createAtom:a=>new Ou(pe(Se({},a),{body:at(a.args[0]),align:"left"}))}),_t("raisebox","{:value}{:text}",{createAtom:a=>{var y;return new ko(pe(Se({},a),{body:at(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return co("\\raisebox",(b=Io(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),_t("raise","{:value}{:auto}",{createAtom:a=>{var y;return new ko(pe(Se({},a),{body:at(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return co("\\raise",(b=Io(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),_t("lower","{:value}{:auto}",{createAtom:a=>{var y;return new ko(pe(Se({},a),{body:at(a.args[1]),padding:{dimension:0},offset:(y=Zs(a.args[0],-1))!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b,E;return co("\\lower",(E=Io(Zs((b=a.offset)!=null?b:{dimension:0},-1)))!=null?E:"0pt",a.bodyToLatex(y))}}),Te("0123456789/@.?!"),je(65,90),je(97,122),Te([["\\forall",8704],["\\exists",8707],["\\nexists",8708,"mord","ams"],["\\mid",8739,"mrel"],["\\top",8868],["\\bot",8869]]),Te([["\\#",35],["\\&",38],["\\parallelogram",9649],["\\spadesuit",9824],["\\heartsuit",9825],["\\diamondsuit",9826],["\\clubsuit",9827],["\\flat",9837],["\\natural",9838],["\\sharp",9839]]),Te([["\\backslash",92],["\\nabla",8711],["\\partial",8706],["\\ell",8467],["\\hbar",8463],["\\Q",81,"mord","double-struck"],["\\C",67,"mord","double-struck"],["\\P",80,"mord","double-struck"],["\\pounds",163],["\\euro",8364]]),Te([["\\rightarrow",8594],["\\to",8594],["\\leftarrow",8592],["\\gets",8592],["\\Rightarrow",8658],["\\Leftarrow",8656],["\\longrightarrow",10230],["\\longleftarrow",10229],["\\Longrightarrow",10233],["\\implies",10233],["\\Longleftarrow",10232],["\\impliedby",10232],["\\longleftrightarrow",10231],["\\biconditional",10231],["\\Longleftrightarrow",10234],["\\mapsto",8614],["\\longmapsto",10236],["\\uparrow",8593],["\\downarrow",8595],["\\Uparrow",8657],["\\Downarrow",8659],["\\updownarrow",8597],["\\Updownarrow",8661],["\\hookrightarrow",8618],["\\hookleftarrow",8617],["\\rightharpoonup",8640],["\\leftharpoonup",8636],["\\rightharpoondown",8641],["\\leftharpoondown",8637],["\\searrow",8600],["\\nearrow",8599],["\\swarrow",8601],["\\nwarrow",8598],["\\originalof",8886],["\\laplace",8886],["\\imageof",8887],["\\Laplace",8887]],"mrel"),Te([["\\mapsfrom",8612,"mrel"],["\\Mapsfrom",10502,"mrel"],["\\MapsTo",10503,"mrel"],["\\Yup",8516,"mord"],["\\lightning",8623,"mrel"],["\\leftarrowtriangle",8701,"mrel"],["\\rightarrowtriangle",8702,"mrel"],["\\leftrightarrowtriangle",8703,"mrel"],["\\boxdot",8865,"mbin"],["\\bigtriangleup",9651,"mbin"],["\\bigtriangledown",9661,"mbin"],["\\boxbar",9707,"mbin"],["\\Lbag",10181,"mopen"],["\\Rbag",10182,"mclose"],["\\llbracket",10214,"mopen"],["\\rrbracket",10215,"mclose"],["\\longmapsfrom",10235,"mrel"],["\\Longmapsfrom",10237,"mrel"],["\\Longmapsto",10238,"mrel"],["\\boxslash",10692,"mbin"],["\\boxbslash",10693,"mbin"],["\\boxast",10694,"mbin"],["\\boxcircle",10695,"mbin"],["\\boxbox",10696,"mbin"],["\\fatsemi",10783,"mop"],["\\leftslice",10918,"mrel"],["\\rightslice",10919,"mrel"],["\\interleave",10996,"mbin"],["\\biginterleave",11004,"mop"],["\\sslash",11005,"mbin"],["\\talloblong",11006,"mbin"]]),Te([["\\lbrace",123,"mopen"],["\\rbrace",125,"mclose"],["\\lparen",40,"mopen"],["\\rparen",41,"mclose"],["\\langle",10216,"mopen"],["\\rangle",10217,"mclose"],["\\lfloor",8970,"mopen"],["\\rfloor",8971,"mclose"],["\\lceil",8968,"mopen"],["\\rceil",8969,"mclose"],["\\vert",8739],["\\lvert",8739,"mopen"],["\\rvert",8739,"mclose"],["\\|",8741],["\\Vert",8741],["\\mVert",8741],["\\lVert",8741,"mopen"],["\\rVert",8741,"mclose"],["\\lbrack",91,"mopen"],["\\rbrack",93,"mclose"],["\\{",123,"mopen"],["\\}",125,"mclose"],["(",40,"mopen"],[")",41,"mclose"],["[",91,"mopen"],["]",93,"mclose"],["\\ulcorner",9484,"mopen","ams"],["\\urcorner",9488,"mclose","ams"],["\\llcorner",9492,"mopen","ams"],["\\lrcorner",9496,"mclose","ams"],["\\lgroup",10222,"mopen"],["\\rgroup",10223,"mclose"],["\\lmoustache",9136,"mopen"],["\\rmoustache",9137,"mclose"]]),Te([["\\dashrightarrow",8674],["\\dashleftarrow",8672],["\\Rrightarrow",8667],["\\Lleftarrow",8666],["\\leftrightarrows",8646],["\\rightleftarrows",8644],["\\curvearrowright",8631],["\\curvearrowleft",8630],["\\rightrightarrows",8649],["\\leftleftarrows",8647],["\\upuparrows",8648],["\\downdownarrows",8650],["\\vartriangle",9651],["\\triangleq",8796],["\\vartriangleleft",8882],["\\trianglelefteq",8884],["\\ntriangleleft",8938],["\\ntrianglelefteq",8940],["\\vartriangleright",8883],["\\trianglerighteq",8885],["\\ntriangleright",8939],["\\ntrianglerighteq",8941],["\\blacktriangleleft",9664],["\\blacktriangleright",9654],["\\leftarrowtail",8610],["\\rightarrowtail",8611],["\\looparrowright",8620],["\\looparrowleft",8619],["\\twoheadleftarrow",8606],["\\twoheadrightarrow",8608],["\\twoheadrightarrowtail",10518],["\\rightleftharpoons",8652],["\\leftrightharpoons",8651],["\\Rsh",8625],["\\Lsh",8624],["\\circlearrowright",8635],["\\circlearrowleft",8634],["\\restriction",8638],["\\upharpoonright",8638],["\\upharpoonleft",8639],["\\downharpoonright",8642],["\\downharpoonleft",8643],["\\rightsquigarrow",8669],["\\leadsto",8669],["\\leftrightsquigarrow",8621],["\\multimap",8888],["\\nleftarrow",8602],["\\nrightarrow",8603],["\\nRightarrow",8655],["\\nLeftarrow",8653],["\\nleftrightarrow",8622],["\\nLeftrightarrow",8654],["\\nvrightarrow",8696],["\\nvtwoheadrightarrow",10496],["\\nvrightarrowtail",10516],["\\nvtwoheadrightarrowtail",10519],["\\shortparallel",8741],["\\nless",8814],["\\nleqslant",57360],["\\lneq",10887],["\\lneqq",8808],["\\nleqq",57361],["\\lvertneqq",57356],["\\lnsim",8934],["\\lnapprox",10889],["\\nprec",8832],["\\npreceq",8928],["\\precnsim",8936],["\\precnapprox",10937],["\\nsim",8769],["\\nshortmid",57350],["\\nmid",8740],["\\nvdash",8876],["\\nvDash",8877],["\\ngtr",8815],["\\ngeqslant",57359],["\\ngeqq",57358],["\\gneq",10888],["\\gneqq",8809],["\\gvertneqq",57357],["\\gnsim",8935],["\\gnapprox",10890],["\\nsucc",8833],["\\nsucceq",8929],["\\succnsim",8937],["\\succnapprox",10938],["\\ncong",8774],["\\nshortparallel",57351],["\\nparallel",8742],["\\nVDash",8879],["\\nsupseteqq",57368],["\\supsetneq",8843],["\\varsupsetneq",57371],["\\supsetneqq",10956],["\\varsupsetneqq",57369],["\\nVdash",8878],["\\precneqq",10933],["\\succneqq",10934],["\\nsubseteqq",57366],["\\leqslant",10877],["\\geqslant",10878],["\\gtrsim",8819],["\\approxeq",8778],["\\thickapprox",8776],["\\lessapprox",10885],["\\gtrapprox",10886],["\\precapprox",10935],["\\succapprox",10936],["\\thicksim",8764],["\\succsim",8831],["\\precsim",8830],["\\backsim",8765],["\\eqsim",8770],["\\backsimeq",8909],["\\lesssim",8818],["\\nleq",8816],["\\ngeq",8817],["\\smallsmile",8995],["\\smallfrown",8994],["\\leqq",8806],["\\eqslantless",10901],["\\lll",8920],["\\lessgtr",8822],["\\lesseqgtr",8922],["\\lesseqqgtr",10891],["\\risingdotseq",8787],["\\fallingdotseq",8786],["\\subseteqq",10949],["\\Subset",8912],["\\sqsubset",8847],["\\preccurlyeq",8828],["\\curlyeqprec",8926],["\\vDash",8872],["\\Vvdash",8874],["\\bumpeq",8783],["\\Bumpeq",8782],["\\geqq",8807],["\\eqslantgtr",10902],["\\ggg",8921],["\\gtrless",8823],["\\gtreqless",8923],["\\gtreqqless",10892],["\\supseteqq",10950],["\\Supset",8913],["\\sqsupset",8848],["\\succcurlyeq",8829],["\\curlyeqsucc",8927],["\\Vdash",8873],["\\shortmid",8739],["\\between",8812],["\\pitchfork",8916],["\\varpropto",8733],["\\backepsilon",8717],["\\llless",8920],["\\gggtr",8921],["\\doteqdot",8785],["\\Doteq",8785],["\\eqcirc",8790],["\\circeq",8791],["\\therefore",8756],["\\because",8757]],"mrel","ams"),Te([["+",43],["-",8722],["\u2212",8722],["\\pm",177],["\\mp",8723],["*",8727],["\\times",215],["\\div",247],["\\divides",8739],["\\cdot",8901],["\\cap",8745],["\\cup",8746],["\\setminus",8726],["\\land",8743],["\\wedge",8743],["\\lor",8744],["\\vee",8744],["\\circ",8728],["\\bigcirc",9711],["\\bullet",8729],["\\oplus",8853],["\\ominus",8854],["\\otimes",8855],["\\odot",8857],["\\oslash",8856],["\\bigtriangleup",9651],["\\bigtriangledown",9661],["\\triangleleft",9667],["\\triangleright",9657],["\\And",38],["\\dagger",8224],["\\dag",8224],["\\ddag",8225],["\\ddagger",8225],["\\ast",8727],["\\star",8902],["\\bigstar",9733],["\\diamond",8900]],"mbin"),Te([["\\lhd",8882],["\\rhd",8883],["\\lessdot",8918],["\\gtrdot",8919],["\\ltimes",8905],["\\rtimes",8906],["\\leftthreetimes",8907],["\\rightthreetimes",8908],["\\intercal",8890],["\\dotplus",8724],["\\doublebarwedge",10846],["\\divideontimes",8903],["\\centerdot",8901],["\\smallsetminus",8726],["\\barwedge",8892],["\\veebar",8891],["\\nor",8891],["\\curlywedge",8911],["\\curlyvee",8910],["\\boxminus",8863],["\\boxplus",8862],["\\boxtimes",8864],["\\boxdot",8865],["\\circleddash",8861],["\\circledast",8859],["\\circledcirc",8858],["\\unlhd",8884],["\\unrhd",8885]],"mbin","ams"),Te([["\\surd",8730],["\\infty",8734],["\\prime",8242],["\\doubleprime",8243],["\\angle",8736],["`",8216],["\\$",36],["\\%",37],["\\_",95],["\\alpha",945],["\\beta",946],["\\gamma",947],["\\delta",948],["\\epsilon",1013],["\\varepsilon",949],["\\zeta",950],["\\eta",951],["\\theta",952],["\\vartheta",977],["\\iota",953],["\\kappa",954],["\\varkappa",1008,"mord","ams"],["\\lambda",955],["\\mu",956],["\\nu",957],["\\xi",958],["\\omicron",111],["\\pi",960],["\\varpi",982],["\\rho",961],["\\varrho",1009],["\\sigma",963],["\\varsigma",962],["\\tau",964],["\\phi",981],["\\varphi",966],["\\upsilon",965],["\\chi",967],["\\psi",968],["\\omega",969],["\\Gamma",915],["\\Delta",916],["\\Theta",920],["\\Lambda",923],["\\Xi",926],["\\Pi",928],["\\Sigma",931],["\\Upsilon",933],["\\Phi",934],["\\Psi",936],["\\Omega",937],["\\digamma",989,"mord","ams"],["\\emptyset",8709]]),Te([["=",61],["<",60],["\\lt",60],[">",62],["\\gt",62],["\\le",8804],["\\leq",8804],["\\ge",8805],["\\geq",8805],["\\ll",8810],["\\gg",8811],["\\coloneq",8788],["\\coloneqq",8788],["\\colonequals",8788],["\\measeq",8797],["\\eqdef",8798],["\\questeq",8799],[":",58],["\\cong",8773],["\\equiv",8801],["\\prec",8826],["\\preceq",10927],["\\succ",8827],["\\succeq",10928],["\\perp",8869],["\\propto",8733],["\\Colon",8759],["\\smile",8995],["\\frown",8994],["\\sim",8764],["\\doteq",8784],["\\bowtie",8904],["\\Join",8904],["\\asymp",8781],["\\sqsubseteq",8849],["\\sqsupseteq",8850],["\\approx",8776],["\\~",126],["\\leftrightarrow",8596],["\\Leftrightarrow",8660],["\\models",8872],["\\vdash",8866],["\\dashv",8867],["\\roundimplies",10608],["\\in",8712],["\\notin",8713],["\\ni",8715],["\\owns",8715],["\\subset",8834],["\\supset",8835],["\\subseteq",8838],["\\supseteq",8839],["\\differencedelta",8710],["\\mvert",8739],["\\parallel",8741],["\\simeq",8771]],"mrel"),Te([["\\lnot",172],["\\neg",172],["\\triangle",9651],["\\subsetneq",8842],["\\varsubsetneq",57370],["\\subsetneqq",10955],["\\varsubsetneqq",57367],["\\nsubset",8836],["\\nsupset",8837],["\\nsubseteq",8840],["\\nsupseteq",8841]],"mrel","ams"),Te([["\\wp",8472],["\\aleph",8501]]),Te([["\\blacktriangle",9650],["\\hslash",8463],["\\Finv",8498],["\\Game",8513],["\\eth",240],["\\mho",8487],["\\Bbbk",107],["\\yen",165],["\\square",9633],["\\Box",9633],["\\blacksquare",9632],["\\circledS",9416],["\\circledR",174],["\\triangledown",9661],["\\blacktriangledown",9660],["\\checkmark",10003],["\\diagup",9585],["\\measuredangle",8737],["\\sphericalangle",8738],["\\backprime",8245],["\\backdoubleprime",8246],["\\Diamond",9674],["\\lozenge",9674],["\\blacklozenge",10731],["\\varnothing",8709],["\\complement",8705],["\\maltese",10016],["\\beth",8502],["\\daleth",8504],["\\gimel",8503]],"mord","ams"),Te([["\\ ",160],["~",160]],"space"),_t(["!",",",":",";",">","enskip","enspace","quad","qquad"],"",{createAtom:a=>new Sd(a)}),_t("space","",{createAtom:a=>new Sd(a)}),Te([["\\colon",58],["\\cdotp",8901],["\\vdots",8942,"mord"],["\\ldotp",46],[",",44],[";",59]],"mpunct"),Te([["\\cdots",8943],["\\ddots",8945],["\\ldots",8230],["\\mathellipsis",8230]],"minner"),Te([["\\/",47],["|",8739,"mord"],["\\imath",305],["\\jmath",567],["\\degree",176],["'",8242],['"',8221]]);var lp="<mo>&#x2061;</mo>",Xf="<mo>&#8290;</mo>";function Yf(a){return a.replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function no(a,y){return!a||!y.generateID?"":` extid="${a}"`}function Ev(a,y,b){var E,ee,re,ae,he,me,ye,we,Re,Xe,ct;let xt=!1;y=y!=null?y:a.atoms.length;let mn="",cr="",un=a.atoms[a.index];const Zn=(ee=(E=un.style)==null?void 0:E.variant)!=null?ee:"",pr=(ae=(re=un.style)==null?void 0:re.variantStyle)!=null?ae:"";let Yn="";if(Zn||pr){const ui=Sn(un.value,(he=un.style)==null?void 0:he.variant,(me=un.style)==null?void 0:me.variantStyle);if(ui!==un.value)return a.index+=1,mn=`<mi${no(un.id,b)}>${ui}</mi>`,Zl(mn,a,b)||(a.mathML+=mn,a.lastType="mi"),!0;Yn=(ye={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"}[pr+Zn])!=null?ye:"",Yn=` mathvariant="${Yn}"`}const $r={"\\exponentialE":"&#x02147;","\\imaginaryI":"&#x2148;","\\differentialD":"&#x2146;","\\capitalDifferentialD":"&#x2145;","\\alpha":"&#x03b1;","\\pi":"&#x03c0;","\\infty":"&#x221e;","\\forall":"&#x2200;","\\nexists":"&#x2204;","\\exists":"&#x2203;","\\hbar":"\u210F","\\cdotp":"\u22C5","\\ldots":"\u2026","\\cdots":"\u22EF","\\ddots":"\u22F1","\\vdots":"\u22EE","\\ldotp":"."};if(un.command==="!")return a.index+=1,mn="<mo>!</mo>",Zl(mn,a,b)||(a.mathML+=mn,a.lastType="mo"),!0;if($r[un.command]){a.index+=1;let ui=`<mi${no(un.id,b)}${Yn}>${$r[un.command]}</mi>`;return(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mtext"||a.lastType==="fence")&&(ui=Xf+ui),Zl(ui,a,b)||(a.mathML+=ui,a.lastType="mi"),!0}if(un.command==="\\operatorname")cr=Rc(un.body),a.index+=1;else if(Zn||pr)for(;a.index<y&&(un.type==="mord"||un.type==="macro")&&!un.isDigit()&&Zn===((Re=(we=un.style)==null?void 0:we.variant)!=null?Re:"")&&pr===((ct=(Xe=un.style)==null?void 0:Xe.variantStyle)!=null?ct:"");)cr+=Rc([un]),a.index+=1,un=a.atoms[a.index];else(un.type==="mord"||un.type==="macro")&&!un.isDigit()&&(cr+=Rc([un]),a.index+=1);if(cr.length>0){xt=!0,mn=`<mi${Yn}>${cr}</mi>`;const ui=a.lastType;mn.endsWith(">f</mi>")||mn.endsWith(">g</mi>")?(mn+=lp,a.lastType="applyfunction"):a.lastType=/^<mo>(.*)<\/mo>$/.test(mn)?"mo":"mi",Zl(mn,a,b)||((ui==="mi"||ui==="mn"||ui==="mtext"||ui==="fence")&&(mn=Xf+mn),a.mathML+=mn)}return xt}function Mv(a){return a.index<a.atoms.length&&a.atoms[a.index].superscript&&a.atoms[a.index].type==="subsup"}function kv(a){let y=-1,b=a.index,E=!1,ee=!1;for(;b<a.atoms.length&&!E&&!ee;){const re=a.atoms[b];E=!re.isDigit(),ee=!E&&re.superscript!==void 0,b++}return ee&&(y=b-1),y}function Zl(a,y,b){var E;let ee=y.atoms[y.index-1];if(!ee)return!1;if(!ee.superscript&&!ee.subscript)if(((E=y.atoms[y.index])==null?void 0:E.type)==="subsup")ee=y.atoms[y.index],y.index+=1;else return!1;const re=y.lastType;y.lastType="";const ae=Va(ee.superscript,b);y.lastType="";const he=Va(ee.subscript,b);if(y.lastType=re,!ae&&!he)return!1;let me="";return ae&&he?me=`<msubsup>${a}${he}${ae}</msubsup>`:ae?me=`<msup>${a}${ae}</msup>`:he&&(me=`<msub>${a}${he}</msub>`),y.mathML+=me,y.lastType="",!0}function Av(a,y,b){y=y!=null?y:a.atoms.length;const E=a.index;let ee="";for(;a.index<y&&a.atoms[a.index].mode==="text";)ee+=a.atoms[a.index].value?a.atoms[a.index].value:" ",a.index+=1;return ee.length>0?(a.mathML+=`<mtext ${no(a.atoms[E].id,b)}>${ee}</mtext>`,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<y&&(y=re);a.index<y&&a.atoms[a.index].isDigit();)ee+=a.atoms[a.index].asDigit(),a.index+=1;return ee.length<=0?!1:(ee="<mn"+no(a.atoms[E].id,b)+">"+ee+"</mn>",re<0&&Mv(a)&&(re=a.index,a.index+=1),Zl(ee,a,b)||(a.mathML+=ee,a.lastType="mn"),!0)}function Dv(a,y,b){let E=!1;y=y!=null?y:a.atoms.length;let ee="",re="";if(a.index<y&&a.atoms[a.index].type==="mopen"){let ae=!1,he=0;const me=a.index;let ye=-1,we=me+1;for(;we<y&&!ae;)a.atoms[we].type==="mopen"?he+=1:a.atoms[we].type==="mclose"&&(he-=1),he===-1&&(ae=!0,ye=we),we+=1;ae&&(ee="<mrow>",ee+=Uu(a.atoms[me],b),ee+=Va(a.atoms,b,me+1,ye),ee+=Uu(a.atoms[ye],b),ee+="</mrow>",a.index=ye+1,(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mfrac"||a.lastType==="fence")&&(a.mathML+=Xf),Zl(ee,a,b)&&(E=!0,a.lastType="",ee=""),re="fence")}return ee.length>0&&(E=!0,a.mathML+=ee,a.lastType=re),E}function Tv(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":"&ne;","\\neq":"&neq;","\\pm":"&#177;","\\times":"&#215;","\\colon":":","\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lbrack":"[","\\rbrack":"]","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"};if(he[ae.command]){a.index+=1;const me=`<mo${no(ae.id,b)}>${he[ae.command]}</mo>`;return Zl(me,a,b)||(a.mathML+=me,a.lastType="mo"),!0}if(a.index<y&&(ae.type==="mbin"||ae.type==="mrel"))ee+=$h(a.atoms[a.index],b),a.index+=1,re="mo";else if(a.index<y&&(ae.type==="mop"||ae.type==="operator"||ae.type==="extensible-symbol")){if(ae.subsupPlacement==="over-under"&&(ae.superscript||ae.subscript)){const me=Uu(ae,b);return ae.superscript&&ae.subscript?(ee+="<munderover>"+me,ee+=Va(ae.subscript,b),ee+=Va(ae.superscript,b),ee+="</munderover>"):ae.superscript?(ee+="<mover>"+me,ee+=Va(ae.superscript,b),ee+="</mover>"):ae.subscript&&(ee+="<munder>"+me,ee+=Va(ae.subscript,b),ee+="</munder>"),a.mathML+=ee,a.lastType="mo",a.index+=1,!0}{const me=a.atoms[a.index],ye=me.value==="\\operatorname",we=ye?'<mi class="MathML-Unit"'+no(me.id,b)+">"+Rc(me.value)+"</mi>":Uu(me,b);ee+=we,!ye&&!/^<mo>(.*)<\/mo>$/.test(we)?(ee+=lp,re="applyfunction"):re=ye?"mi":"mo"}(a.lastType==="mi"||a.lastType==="mn")&&!/^<mo>(.*)<\/mo>$/.test(ee)&&(ee=Xf+ee),a.index+=1}return ee.length>0&&(E=!0,Zl(ee,a,b)||(a.mathML+=ee,a.lastType=re)),E}function Va(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 Bn)ee.mathML=$h(a,y);else if(Array.isArray(a)){ee.atoms=a;let re=0;for(E=E||(a?a.length:0);ee.index<E;)if(Av(ee,E,y)||Lv(ee,E,y)||Ev(ee,E,y)||Tv(ee,E,y)||Dv(ee,E,y))re+=1;else if(ee.index<E){let ae=$h(ee.atoms[ee.index],y);ee.lastType==="mn"&&ae.length>0&&ee.atoms[ee.index].type==="genfrac"&&(ae="<mo>&#x2064;</mo>"+ae),ee.atoms[ee.index].type==="genfrac"?ee.lastType="mfrac":ee.lastType="",ee.index+=1,Zl(ae,ee,y)?re+=1:ae.length>0&&(ee.mathML+=ae,re+=1)}re>1&&(ee.mathML="<mrow>"+ee.mathML+"</mrow>")}return ee.mathML}function Uu(a,y){let b="";const E=Rc(a.value);return E&&(b="<mo"+no(a.id,y)+">"+E+"</mo>"),b}function Rc(a){if(!a)return"";if(typeof a=="string")return Yf(a);if(!Array.isArray(a)&&typeof a.body=="string")return Yf(a.body);let y="";for(const b of a)typeof b.value=="string"&&(y+=b.value);return Yf(y)}function $h(a,y){var b,E,ee,re,ae,he,me,ye,we,Re,Xe,ct,xt,mn,cr,un,Zn,pr,Yn,$r,ui,Xr;if(a.mode==="text")return`<mi${no(a.id,y)}>${a.value}</mi>`;const _a={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"},qa={"\\!":-3/18,"\\ ":6/18,"\\,":3/18,"\\:":4/18,"\\>":4/18,"\\;":5/18,"\\enspace":.5,"\\quad":1,"\\qquad":2,"\\enskip":.5};let Mr="",zs="",Al,Xs,qo,Hs,Es,ro;const{command:Lo}=a;if(a.command==="\\error")return`<merror${no(a.id,y)}>${Va(a.body,y)}</merror>`;const Qo={"\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\lbrack":"[","\\rbrack":"]","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"},Ll={"\\vec":"&#x20d7;","\\acute":"&#x00b4;","\\grave":"&#x0060;","\\dot":"&#x02d9;","\\ddot":"&#x00a8;","\\tilde":"&#x007e;","\\bar":"&#x00af;","\\breve":"&#x02d8;","\\check":"&#x02c7;","\\hat":"&#x005e;"};switch(a.type){case"first":break;case"group":case"root":Mr=Va(a.body,y);break;case"array":if((a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(Mr+="<mrow>",a.leftDelim&&a.leftDelim!=="."&&(Mr+="<mo>"+(Qo[a.leftDelim]||a.leftDelim)+"</mo>")),Mr+="<mtable",a.colFormat){for(Mr+=' columnalign="',qo=0;qo<a.colFormat.length;qo++)a.colFormat[qo].align&&(Mr+={l:"left",c:"center",r:"right"}[a.colFormat[qo].align]+" ");Mr+='"'}for(Mr+=">",Xs=0;Xs<a.array.length;Xs++){for(Mr+="<mtr>",Al=0;Al<a.array[Xs].length;Al++)Mr+="<mtd>"+Va(a.array[Xs][Al],y)+"</mtd>";Mr+="</mtr>"}Mr+="</mtable>",(a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(a.rightDelim&&a.rightDelim!=="."&&(Mr+="<mo>"+(Qo[a.leftDelim]||a.rightDelim)+"</mo>"),Mr+="</mrow>");break;case"genfrac":(a.leftDelim||a.rightDelim)&&(Mr+="<mrow>"),a.leftDelim&&a.leftDelim!=="."&&(Mr+="<mo"+no(a.id,y)+">"+(Qo[a.leftDelim]||a.leftDelim)+"</mo>"),a.hasBarLine?(Mr+="<mfrac>",Mr+=Va(a.above,y)||"<mi>&nbsp;</mi>",Mr+=Va(a.below,y)||"<mi>&nbsp;</mi>",Mr+="</mfrac>"):(Mr+="<mtable"+no(a.id,y)+">",Mr+="<mtr>"+Va(a.above,y)+"</mtr>",Mr+="<mtr>"+Va(a.below,y)+"</mtr>",Mr+="</mtable>"),a.rightDelim&&a.rightDelim!=="."&&(Mr+="<mo"+no(a.id,y)+">"+(Qo[a.rightDelim]||a.rightDelim)+"</mo>"),(a.leftDelim||a.rightDelim)&&(Mr+="</mrow>");break;case"surd":a.hasEmptyBranch("above")?(Mr+="<msqrt"+no(a.id,y)+">",Mr+=Va(a.body,y),Mr+="</msqrt>"):(Mr+="<mroot"+no(a.id,y)+">",Mr+=Va(a.body,y),Mr+=Va(a.above,y),Mr+="</mroot>");break;case"leftright":const Dl=a,Tl=Dl.leftDelim;Mr="<mrow>",Tl&&Tl!=="."&&(Mr+=`<mo${no(a.id,y)}>${(b=Qo[Tl])!=null?b:Tl}</mo>`),a.body&&(Mr+=Va(a.body,y));const Il=Dl.matchingRightDelim();Il&&Il!=="."&&(Mr+=`<mo${no(a.id,y)}>${(E=Qo[Il])!=null?E:Il}</mo>`),Mr+="</mrow>";break;case"sizeddelim":case"delim":Mr+=`<mo${no(a.id,y)}>${Qo[a.value]||a.value}</mo>`;break;case"accent":Mr+='<mover accent="true"'+no(a.id,y)+">",Mr+=Va(a.body,y),Mr+="<mo>"+(Ll[Lo]||a.accent)+"</mo>",Mr+="</mover>";break;case"line":case"overlap":break;case"overunder":Es=a.above,Hs=a.below,(a.svgAbove||Es)&&(a.svgBelow||Hs)?ro=a.body:Es&&Es.length>0?(ro=a.body,(re=(ee=a.body)==null?void 0:ee[0])!=null&&re.below?(Hs=a.body[0].below,ro=a.body[0].body):((he=(ae=a.body)==null?void 0:ae[0])==null?void 0:he.type)==="first"&&((ye=(me=a.body)==null?void 0:me[1])!=null&&ye.below)&&(Hs=a.body[1].below,ro=a.body[1].body)):Hs&&Hs.length>0&&(ro=a.body,(Re=(we=a.body)==null?void 0:we[0])!=null&&Re.above?(Es=a.body[0].above,ro=a.body[0].body):((ct=(Xe=a.body)==null?void 0:Xe[0])==null?void 0:ct.type)==="first"&&((mn=(xt=a.body)==null?void 0:xt[1])!=null&&mn.above)&&(Es=a.body[1].overscript,ro=a.body[1].body)),(a.svgAbove||Es)&&(a.svgBelow||Hs)?(Mr+=`<munderover ${no(a.id,y)}>`,Mr+=(cr=_a[a.svgBody])!=null?cr:Va(ro,y),Mr+=(un=_a[a.svgBelow])!=null?un:Va(Hs,y),Mr+=(Zn=_a[a.svgAbove])!=null?Zn:Va(Es,y),Mr+="</munderover>"):a.svgAbove||Es?(Mr+=`<mover ${no(a.id,y)}>`+((pr=_a[a.svgBody])!=null?pr:Va(ro,y)),Mr+=(Yn=_a[a.svgAbove])!=null?Yn:Va(Es,y),Mr+="</mover>"):(a.svgBelow||Hs)&&(Mr+=`<munder ${no(a.id,y)}>`+(($r=_a[a.svgBody])!=null?$r:Va(ro,y)),Mr+=(ui=_a[a.svgBelow])!=null?ui:Va(Hs,y),Mr+="</munder>");break;case"placeholder":Mr+="?";break;case"mord":{Mr=typeof a.value=="string"?a.value:Lo,Lo==="\\char"?Mr="&#x"+("000000"+a.args[0].number.toString(16)).slice(-4)+";":Mr.length>0&&Mr.startsWith("\\")&&(typeof a.value=="string"&&a.value.charCodeAt(0)>255?Mr="&#x"+("000000"+a.value.charCodeAt(0).toString(16)).slice(-4)+";":typeof a.value=="string"?Mr=a.value.charAt(0):(console.error("Did not expect this"),Mr=""));const ul=/\d/.test(Mr)?"mn":"mi";Mr=`<${ul}${no(a.id,y)}>${Yf(Mr)}</${ul}>`;break}case"mbin":case"mrel":case"minner":Mr=Uu(a,y);break;case"mpunct":Mr='<mo separator="true"'+no(a.id,y)+">"+Lo+"</mo>";break;case"mop":case"operator":case"extensible-symbol":a.body!=="\u200B"&&(Mr="<mo"+no(a.id,y)+">",Mr+=Lo==="\\operatorname"?a.body:Lo||a.body,Mr+="</mo>");break;case"box":Mr='<menclose notation="box"',a.backgroundcolor&&(Mr+=' mathbackground="'+a.backgroundcolor+'"'),Mr+=no(a.id,y)+">"+Va(a.body,y)+"</menclose>";break;case"spacing":Mr+='<mspace width="'+((Xr=qa[Lo])!=null?Xr:0)+'em"/>';break;case"enclose":Mr='<menclose notation="';for(const ul in a.notation)Object.prototype.hasOwnProperty.call(a.notation,ul)&&a.notation[ul]&&(Mr+=zs+ul,zs=" ");Mr+=no(a.id,y)+'">'+Va(a.body,y)+"</menclose>";break;case"prompt":Mr='<menclose notation="roundexbox""">'+Va(a.body,y)+"</menclose>";break;case"space":Mr+="&nbsp;";break;case"subsup":break;case"phantom":break;case"composition":break;case"rule":break;case"chem":break;case"mopen":Mr+=Uu(a,y);break;case"mclose":Mr+=Uu(a,y);break;case"macro":{const ul=a.command+Rc(a.macroArgs);ul&&(Mr+=`<mo ${no(a.id,y)}>${ul}</mo>`)}break;case"latexgroup":Mr+=Va(a.body,y);break;case"latex":Mr+="<mtext"+no(a.id,y)+">"+a.value+"</mtext>";break;case"tooltip":Mr+=Va(a.body,y);break;case"text":Mr+=`<mtext ${no(a.id,y)}x>${a.value}</mtext>`;break;default:if(a.command==="\\displaystyle")return`<mrow ${no(a.id,y)} displaystyle="true">${Va(a.body,y)}</mrow>`;if(a.command==="\\textstyle")return`<mrow ${no(a.id,y)} displaystyle="false">${Va(a.body,y)}</mrow>`;console.info("Unexpected element in conversion to MathML:",a)}return Mr}var Fc={"\\alpha":"alpha ","\\mu":"mew ","\\sigma":"sigma ","\\pi":"pie ","\\imaginaryI":"imaginary eye ","\\imaginaryJ":"imaginary jay ","\\sum":"Summation ","\\prod":"Product ","+":"plus ","-":"minus ",";":'<break time="150ms"/> semi-colon <break time="150ms"/>',",":'<break time="150ms"/> comma <break time="150ms"/>',"|":'<break time="150ms"/>Vertical bar<break time="150ms"/>',"(":'<break time="150ms"/>Open paren. <break time="150ms"/>',")":'<break time="150ms"/> Close paren. <break time="150ms"/>',"=":"equals ","<":"is less than ","\\lt":"is less than ","<=":"is less than or equal to ","\\le":"is less than or equal to ","\\gt":"is greater than ",">":"is greater than ","\\pm":"plus or minus","\\mp":"minus or plus","\\ge":"is greater than or equal to ","\\geq":"is greater than or equal to ","\\leq":"is less than or equal to ","\\ne":"is not equal to ","\\neq":"is not equal to ","!":"factorial ","\\sin":"sine ","\\cos":"cosine ","\u200B":"","\u2212":"minus ",":":'<break time="150ms"/> such that <break time="200ms"/> ',"\\colon":'<break time="150ms"/> such that <break time="200ms"/> ',"\\hbar":"etch bar ","\\iff":'<break time="200ms"/>if, and only if, <break time="200ms"/>',"\\Longleftrightarrow":'<break time="200ms"/>if, and only if, <break time="200ms"/>',"\\land":"and ","\\lor":"or ","\\neg":"not ","\\div":"divided by ","\\forall":"for all ","\\exists":"there exists ","\\nexists":"there does not exists ","\\in":"element of ","\\N":'the set <break time="150ms"/><say-as interpret-as="character">n</say-as>',"\\C":'the set <break time="150ms"/><say-as interpret-as="character">c</say-as>',"\\Z":'the set <break time="150ms"/><say-as interpret-as="character">z</say-as>',"\\Q":'the set <break time="150ms"/><say-as interpret-as="character">q</say-as>',"\\infty":"infinity ","\\nabla":"nabla ","\\partial":"partial derivative of ","\\cdot":"times ","\\cdots":"dot dot dot ","\\Rightarrow":"implies ","\\lparen":'<break time="150ms"/>open paren<break time="150ms"/>',"\\rparen":'<break time="150ms"/>close paren<break time="150ms"/>',"\\lbrace":'<break time="150ms"/>open brace<break time="150ms"/>',"\\{":'<break time="150ms"/>open brace<break time="150ms"/>',"\\rbrace":'<break time="150ms"/>close brace<break time="150ms"/>',"\\}":'<break time="150ms"/>close brace<break time="150ms"/>',"\\langle":'<break time="150ms"/>left angle bracket<break time="150ms"/>',"\\rangle":'<break time="150ms"/>right angle bracket<break time="150ms"/>',"\\lfloor":'<break time="150ms"/>open floor<break time="150ms"/>',"\\rfloor":'<break time="150ms"/>close floor<break time="150ms"/>',"\\lceil":'<break time="150ms"/>open ceiling<break time="150ms"/>',"\\rceil":'<break time="150ms"/>close ceiling<break time="150ms"/>',"\\vert":'<break time="150ms"/>vertical bar<break time="150ms"/>',"\\mvert":'<break time="150ms"/>divides<break time="150ms"/>',"\\lvert":'<break time="150ms"/>left vertical bar<break time="150ms"/>',"\\rvert":'<break time="150ms"/>right vertical bar<break time="150ms"/>',"\\lbrack":'<break time="150ms"/> open square bracket <break time="150ms"/>',"\\rbrack":'<break time="150ms"/> close square bracket <break time="150ms"/>',mm:"millimeters",cm:"centimeters",km:"kilometers",kg:"kilograms"},Vh={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 Iv(a){let y="";return a.startsWith("\\")&&(y=" "+a.replace("\\","")+" "),y}function Rd(a){let y=0;if(Oe(a))for(const b of a)b.type!=="first"&&(y+=1);return y===1}function _v(a){if(Oe(a)){for(const y of a)if(y.type!=="first"&&y.id)return y.id.toString()}return""}function up(a){let y="";if(Oe(a))for(const b of a)b.type!=="first"&&typeof b.value=="string"&&(y+=b.value);return y}function Bv(a){return a?a.map(y=>y.value).join(""):""}function xa(a,y){var b,E,ee,re,ae;function he(we){return window.MathfieldElement.textToSpeechMarkup?/[a-z]/.test(we)?` <say-as interpret-as="character">${we}</say-as>`:/[A-Z]/.test(we)?`capital <say-as interpret-as="character">${we.toLowerCase()}</say-as>`:we:/[a-z]/.test(we)?" '"+we.toUpperCase()+"'":/[A-Z]/.test(we)?" 'capital "+we.toUpperCase()+"'":we}function me(we){return"<emphasis>"+we+"</emphasis>"}if(!y)return"";let ye="";if(Oe(y)){let we=!1,Re=!1;for(let Xe=0;Xe<y.length;Xe++)y[Xe].type!=="first"&&(y[Xe].mode!=="text"&&(Re=!1),Xe<y.length-2&&y[Xe].type==="mopen"&&y[Xe+2].type==="mclose"&&y[Xe+1].type==="mord"?(ye+=" of ",ye+=me(xa(a,y[Xe+1])),Xe+=2):y[Xe].mode==="text"?Re?ye+=(b=y[Xe].value)!=null?b:" ":(Re=!0,ye+=xa("text",y[Xe])):y[Xe].isDigit()?we?ye+=y[Xe].asDigit():(we=!0,ye+=xa(a,y[Xe])):(we=!1,ye+=xa(a,y[Xe])))}else if(y.mode==="text")y.id&&a==="math"&&(ye+='<mark name="'+y.id.toString()+'"/>'),ye+=y.value;else{y.id&&a==="math"&&(ye+='<mark name="'+y.id.toString()+'"/>');let we="",Re="",Xe="",ct=!1;const{command:xt}=y;switch(xt){case"\\vec":return"vector "+xa(a,y.body);case"\\acute":return xa(a,y.body)+" acute";case"\\grave":return xa(a,y.body)+" grave";case"\\dot":return"dot over"+xa(a,y.body);case"\\ddot":return"double dot over"+xa(a,y.body);case"\\mathring":return"ring over"+xa(a,y.body);case"\\tilde":case"\\widetilde":return"tilde over"+xa(a,y.body);case"\\bar":return xa(a,y.body)+" bar";case"\\breve":return xa(a,y.body)+" breve";case"\\check":case"\\widecheck":return"check over "+xa(a,y.body);case"\\hat":case"\\widehat":return"hat over"+xa(a,y.body);case"\\overarc":case"\\overparen":case"\\wideparen":return"arc over "+xa(a,y.body);case"\\underarc":case"\\underparen":return"arc under "+xa(a,y.body)}switch(y.type){case"prompt":const mn=y.body.length>1?'start input . <break time="500ms"/> '+xa(a,y.body)+'. <break time="500ms"/> end input':"blank";ye+=' <break time="300ms"/> '+mn+'. <break time="700ms"/>'+((E=y.correctness)!=null?E:"")+' . <break time="700ms"/> ';break;case"array":const cr=y.array,un=y.environmentName;if(Object.keys(Vh).includes(un)){ye+=` begin ${Vh[un]} `;for(let Yn=0;Yn<cr.length;Yn++){Yn>0&&(ye+=","),ye+=` row ${Yn+1} `;for(let $r=0;$r<cr[Yn].length;$r++)$r>0&&(ye+=","),ye+=` column ${$r+1}: `,ye+=xa("math",cr[Yn][$r])}ye+=` end ${Vh[un]} `}break;case"group":xt==="\\ne"?ye+=" not equal ":(xt==="\\not"&&(ye+=" not "),ye+=xa("math",y.body));break;case"root":ye+=xa("math",y.body);break;case"genfrac":if(we=xa("math",y.above),Re=xa("math",y.below),Rd(y.above)&&Rd(y.below)){const $r={"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)];$r?ye=$r:ye+=we+" over "+Re}else ye+=' the fraction <break time="150ms"/>'+we+' over <break time="150ms"/>'+Re+'.<break time="150ms"/> End fraction.<break time="150ms"/>';break;case"surd":if(Xe=xa("math",y.body),y.hasEmptyBranch("above"))ye+=Rd(y.body)?" the square root of "+Xe+" , ":' the square root of <break time="200ms"/>'+Xe+'. <break time="200ms"/> End square root';else{let Yn=xa("math",y.above);Yn=Yn.trim();const $r=Yn.replace(/<mark([^/]*)\/>/g,"");$r==="3"?ye+=' the cube root of <break time="200ms"/>'+Xe+'. <break time="200ms"/> End cube root':$r==="n"?ye+=' the nth root of <break time="200ms"/>'+Xe+'. <break time="200ms"/> End root':ye+=' the root with index: <break time="200ms"/>'+Yn+', of <break time="200ms"/>'+Xe+'. <break time="200ms"/> End root'}break;case"leftright":{const Yn=y;ye+=(ee=Yn.leftDelim?Fc[Yn.leftDelim]:void 0)!=null?ee:Yn.leftDelim,ye+=xa("math",y.body),ye+=(re=Yn.rightDelim?Fc[Yn.rightDelim]:void 0)!=null?re:Yn.rightDelim}break;case"rule":break;case"overunder":break;case"overlap":break;case"macro":const Zn=xt.replace(/^\\/g,""),pr=Jn()[Zn];pr&&(pr!=null&&pr.expand?ye+=xa("math",y.body):ye+=`${Zn} `);break;case"placeholder":ye+="placeholder ";break;case"delim":case"sizeddelim":case"mord":case"minner":case"mbin":case"mrel":case"mpunct":case"mopen":case"mclose":{if(xt==="\\mathbin"||xt==="\\mathrel"||xt==="\\mathopen"||xt==="\\mathclose"||xt==="\\mathpunct"||xt==="\\mathord"||xt==="\\mathinner"){ye=xa(a,y.body);break}let Yn=y.isDigit()?y.asDigit():y.value,$r=y.command;if((y.type==="delim"||y.type==="sizeddelim")&&($r=y.value,Yn=$r),a==="text")ye+=Yn;else{if(y.type==="mbin"&&(ye+='<break time="150ms"/>'),Yn){const ui=Fc[Yn]||($r?Fc[$r.trim()]:"");if(ui)ye+=" "+ui;else{const Xr=$r?Iv($r.trim()):"";ye+=Xr||he(Yn)}}else ye+=xa("math",y.body);y.type==="mbin"&&(ye+='<break time="150ms"/>')}break}case"mop":case"operator":case"extensible-symbol":if(y.value!=="\u200B"){const Yn=y.command;if(Yn==="\\sum")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let $r=xa("math",y.superscript);$r=$r.trim();let ui=xa("math",y.subscript);ui=ui.trim(),ye+=' the summation from <break time="200ms"/>'+ui+'<break time="200ms"/> to <break time="200ms"/>'+$r+'<break time="200ms"/> of <break time="150ms"/>',ct=!0}else if(y.hasEmptyBranch("subscript"))ye+=" the summation of";else{let $r=xa("math",y.subscript);$r=$r.trim(),ye+=' the summation from <break time="200ms"/>'+$r+'<break time="200ms"/> of <break time="150ms"/>',ct=!0}else if(Yn==="\\prod")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let $r=xa("math",y.superscript);$r=$r.trim();let ui=xa("math",y.subscript);ui=ui.trim(),ye+=' the product from <break time="200ms"/>'+ui+'<break time="200ms"/> to <break time="200ms"/>'+$r+'<break time="200ms"/> of <break time="150ms"/>',ct=!0}else if(y.hasEmptyBranch("subscript"))ye+=" the product of ";else{let $r=xa("math",y.subscript);$r=$r.trim(),ye+=' the product from <break time="200ms"/>'+$r+'<break time="200ms"/> of <break time="150ms"/>',ct=!0}else if(Yn==="\\int")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let $r=xa("math",y.superscript);$r=$r.trim();let ui=xa("math",y.subscript);ui=ui.trim(),ye+=' the integral from <break time="200ms"/>'+me(ui)+'<break time="200ms"/> to <break time="200ms"/>'+me($r)+' <break time="200ms"/> of ',ct=!0}else ye+=' the integral of <break time="200ms"/> ';else if(typeof y.value=="string"){const $r=(ae=Fc[y.value])!=null?ae:y.command?Fc[y.command]:void 0;ye+=$r||" "+y.value}else y.command&&(y.command==="\\mathop"?ye+=xa("math",y.body):y.command==="\\operatorname"?ye+=Bv(y.body):ye+=y.command.startsWith("\\")?" "+y.command.slice(1):" "+y.command)}break;case"enclose":Xe=xa("math",y.body),ye+=" crossed out "+Xe+". End crossed out.";break;case"space":case"spacing":break}if(!ct&&!y.hasEmptyBranch("superscript")){let mn=xa(a,y.superscript);mn=mn.trim();const cr=mn.replace(/<[^>]*>/g,"");if(Rd(y.superscript)){if(a==="math"){const un=_v(y.superscript);un&&(ye+='<mark name="'+un+'"/>')}cr==="\u2032"?ye+=" prime ":cr==="2"?ye+=" squared ":cr==="3"?ye+=" cubed ":Number.isNaN(Number.parseInt(cr))?ye+=" to the "+mn+"; ":ye+=' to the <say-as interpret-as="ordinal">'+cr+"</say-as> power; "}else Number.isNaN(Number.parseInt(cr))?ye+=" raised to the "+mn+"; ":ye+=' raised to the <say-as interpret-as="ordinal">'+cr+"</say-as> power; "}if(!ct&&!y.hasEmptyBranch("subscript")){let mn=xa("math",y.subscript);mn=mn.trim(),ye+=Rd(y.subscript)?" sub "+mn:" subscript "+mn+". End subscript. "}}return ye}function zc(a){var y,b;if(window.MathfieldElement.textToSpeechRules==="sre"&&("sre"in window||"SRE"in window)){const ee=Va(a);if(ee){window.MathfieldElement.textToSpeechMarkup&&(window.MathfieldElement.textToSpeechRulesOptions=(y=window.MathfieldElement.textToSpeechRulesOptions)!=null?y:{},window.MathfieldElement.textToSpeechRulesOptions=pe(Se({},window.MathfieldElement.textToSpeechRulesOptions),{markup:window.MathfieldElement.textToSpeechMarkup}),window.MathfieldElement.textToSpeechRulesOptions.markup==="ssml"&&(window.MathfieldElement.textToSpeechRulesOptions=pe(Se({},window.MathfieldElement.textToSpeechRulesOptions),{markup:"ssml_step"})),window.MathfieldElement.textToSpeechRulesOptions=pe(Se({},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=xa("math",a);if(window.MathfieldElement.textToSpeechMarkup==="ssml"){let ee="";window.MathfieldElement.speechEngineRate&&(ee='<prosody rate="'+window.MathfieldElement.speechEngineRate+'">'),E='<?xml version="1.0"?><speak version="1.1" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US"><amazon:auto-breaths>'+ee+"<p><s>"+E+"</s></p>"+(ee?"</prosody>":"")+"</amazon:auto-breaths></speak>"}else window.MathfieldElement.textToSpeechMarkup==="mac"&&Me()==="macos"?E=E.replace(/<mark([^/]*)\/>/g,"").replace(/<emphasis>/g,"[[emph+]]").replace(/<\/emphasis>/g,"").replace(/<break time="(\d*)ms"\/>/g,"[[slc $1]]").replace(/<say-as[^>]*>/g,"").replace(/<\/say-as>/g,""):E=E.replace(/<[^>]*>/g,"").replace(/\s{2,}/g," ");return E}var Fd={"\\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"},zd={"\\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 Ao(a){var y,b,E,ee,re,ae,he,me,ye,we,Re,Xe,ct;if(!a)return"";if(Oe(a)){if(a.length===0)return"";if(a[0].mode==="latex")return a.map(Ao).join("");if(a[0].mode==="text"){let pr=0,Yn="";for(;((y=a[pr])==null?void 0:y.mode)==="text";)Yn+=a[pr].body?Ao(a[pr].body):a[pr].value,pr++;return`"${Yn}" ${Ao(a.slice(pr))}`}let un=0;const Zn=[];for(;a[un]&&a[un].mode==="math";){let pr="";for(;a[un]&&a[un].type==="mord"&&/\d/.test(a[un].value);)pr+=a[un++].value;pr?Zn.push(pr):Zn.push(Ao(a[un++]))}return Zn.push(Ao(a.slice(un))),Pv(Zn)}if(a.mode==="text")return`"${a.value}"`;let xt="";const{command:mn}=a;let cr;if(mn==="\\placeholder")return`(${Ao(a.body)})`;switch(a.type){case"accent":const un={"\\vec":"vec","\\dot":"dot","\\ddot":"ddot","\\bar":"bar","\\hat":"hat","\\acute":"acute;","\\grave":"grave","\\tilde":"tilde","\\breve":"breave","\\check":"check"}[mn];xt=`${un!=null?un:""} ${Ao(a.body)} `;break;case"first":return"";case"latexgroup":return a.body.map(Xr=>Xr.value).join("");case"group":case"root":xt=(b=Fd[mn])!=null?b:Ao(a.body);break;case"genfrac":{const Xr=a;(Xr.leftDelim||Xr.rightDelim)&&(xt=Xr.leftDelim==="."||!Xr.leftDelim?"{:":Xr.leftDelim),Xr.hasBarLine?(xt+="(",xt+=Ao(Xr.above),xt+=")/(",xt+=Ao(Xr.below),xt+=")"):(xt+="("+Ao(Xr.above)+"),",xt+="("+Ao(Xr.below)+")"),(Xr.leftDelim||Xr.rightDelim)&&(xt+=Xr.rightDelim==="."||!Xr.rightDelim?"{:":Xr.rightDelim)}break;case"surd":xt+=a.hasEmptyBranch("above")?"sqrt("+Ao(a.body)+")":"root("+Ao(a.above)+")("+Ao(a.body)+")";break;case"latex":xt=a.value;break;case"leftright":{const Xr=a,_a=Xr.leftDelim;xt+=_a==="."||!_a?"{:":_a,xt+=Ao(Xr.body);const qa=Xr.matchingRightDelim();xt+=qa==="."||!qa?":}":qa}break;case"sizeddelim":case"delim":xt=a.value;break;case"overlap":break;case"overunder":break;case"mord":xt=(ee=(E=Fd[mn])!=null?E:mn)!=null?ee:typeof a.value=="string"?a.value:"",xt.startsWith("\\")&&(xt+=" "),cr=mn?mn.match(/{?\\char"([\dabcdefABCDEF]+)}?/):null,cr?xt=String.fromCodePoint(Number.parseInt("0x"+cr[1])):xt.length>0&&xt.startsWith("\\")&&(xt=typeof a.value=="string"?a.value.charAt(0):a.command),xt=Ov(xt,a.style);break;case"mbin":case"mrel":case"minner":xt=(ae=(re=Fd[mn])!=null?re:zd[mn])!=null?ae:a.value;break;case"mopen":case"mclose":xt=a.value;break;case"mpunct":xt=(he=zd[mn])!=null?he:mn;break;case"mop":case"operator":case"extensible-symbol":a.value!=="\u200B"&&(zd[mn]?xt=zd[mn]:xt=mn==="\\operatorname"?Ao(a.body):(me=a.value)!=null?me:mn,xt+=" ");break;case"array":const Zn=a.array,pr=a.environmentName,Yn=(ye={bmatrix:["[","]"],"bmatrix*":["[","]"]}[pr])!=null?ye:["(",")"],$r=[];for(const Xr of Zn){const _a=[];for(const qa of Xr)_a.push(Yn[0]+Ao(qa)+Yn[1]);$r.push(_a.join(","))}const ui=(we={bmatrix:["[","]"],"bmatrix*":["[","]"],cases:["{",":}"]}[pr])!=null?we:["(",")"];xt=ui[0]+$r.join(",")+ui[1];break;case"box":break;case"spacing":xt=(Re=Fd[mn])!=null?Re:" ";break;case"enclose":xt="("+Ao(a.body)+")";break;case"space":xt=" ";break;case"subsup":xt="";break;case"macro":xt=(ct=(Xe=Fd[mn])!=null?Xe:zd[mn])!=null?ct:Ao(a.body);break}if(!a.hasEmptyBranch("subscript")){xt+="_";const un=Ao(a.subscript);xt+=un.length!==1?`(${un})`:un}if(!a.hasEmptyBranch("superscript")){xt+="^";const un=Ao(a.superscript);xt+=un.length!==1?`(${un})`:un}return xt}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 Yo(a,y){var b,E;y!=null||(y={}),y.mathstyle=(b=y.mathstyle)!=null?b:"displaystyle";const ee=new Ma({from:pe(Se({},bc()),{renderPlaceholder:()=>new fr(160,{maxFontSize:1}),letterShapeStyle:(E=y==null?void 0:y.letterShapeStyle)!=null?E:"tex"}),mathstyle:y.mathstyle}),ae=new Bn({mode:"math",type:"root",body:Xo(a,{context:ee,parseMode:"math",mathstyle:y.mathstyle})}).render(ee);return ae?(gc(Cd(ae,ee)),vc(ae,{classes:"ML__latex"}).toMarkup()):""}function A1(a){return t0(a,{context:bc()})}function Nv(a,y={}){return Va(Xo(a,{parseMode:"math",args:()=>"",mathstyle:"displaystyle"}),y)}function Rv(a){const y=Xo(a,{parseMode:"math",mathstyle:"displaystyle"});return zc(y)}var qf;function Fv(a){var y,b;if(!qf){const E=(y=globalThis[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:y.ComputeEngine;E?qf=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=qf==null?void 0:qf.box(a).latex)!=null?b:""}function L1(a,y="math"){return Ao(new Bn({type:"root",body:Xo(a,{parseMode:y})}))}function D1(a){return Pu(a,{format:"ascii-math"})[1]}function Zh(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 Hc(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 Uh(a){const[y,b,E]=[a.L,a.C,a.H],ee=E*Math.PI/180,re={L:y,a:b*Math.cos(ee),b:b*Math.sin(ee)};return a.alpha!==void 0&&(re.alpha=a.alpha),re}function 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 Gh(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,me=-1.2684380040921763*ee+2.6097574006633715*re-.3413193963102197*ae,ye=-.004196086541837188*ee-.7034186144594493*re+1.7076147009309444*ae,we=Re=>{const Xe=Math.abs(Re);return Xe<=.0031308?Re*12.92:(Math.sign(Re)||1)*(1.055*Math.pow(Xe,1/2.4)-.055)};return[we(he),we(me),we(ye)]}function jh(a){const[y,b,E]=a;return y>=0&&y<=1&&b>=0&&b<=1&&E>=0&&E<=1}function Xh(a,y){let[b,E,ee]=a;return b=Hc(b*255),E=Hc(E*255),ee=Hc(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]=Gh(a);if(jh([y,b,E]))return Xh([y,b,E],a.alpha);const ee=Hv(a);if(ee.C=0,[y,b,E]=Gh(Uh(ee)),!jh([y,b,E]))return Xh([y,b,E],a.alpha);let re=0,ae=a.L,he=(re+ae)/2;ee.C=he;const me=.36/Math.pow(2,12);for(;ae-re>me;)he=(re+ae)/2,ee.C=he,[y,b,E]=Gh(Uh(ee)),jh([y,b,E])?re=he:ae=he;return Xh([y,b,E],a.alpha)}function Kv(a){return cp(Uh(a))}function dp(a,y){const b=Zh(a),E=Zh(y),ee=.56,re=.57,ae=.62,he=.65,me=.022,ye=1.414,we=.1,Re=5e-4,Xe=1.14,ct=.027,xt=1.14,mn=.027;function cr(Xr){return Xr>=me?Xr:Xr+_l(me-Xr,ye)}function un(Xr){return(Xr<0?-1:1)*Math.pow(Math.abs(Xr),2.4)}const Zn=cr(un(E.r/255)*.2126729+un(E.g/255)*.7151522+un(E.b/255)*.072175),pr=cr(un(b.r/255)*.2126729+un(b.g/255)*.7151522+un(b.b/255)*.072175);let Yn,$r,ui;return Math.abs(pr-Zn)<Re?$r=0:pr>Zn?(Yn=_l(pr,ee)-_l(Zn,re),$r=Yn*Xe):(Yn=_l(pr,he)-_l(Zn,ae),$r=Yn*xt),Math.abs($r)<we?ui=0:$r>0?ui=$r-mn:ui=$r+ct,ui*100}function fp(a,y,b){b!=null||(b="#fff"),y!=null||(y="#000");const E=dp(a,b),ee=dp(a,y);return Math.abs(E)>Math.abs(ee)?b:y}function Wv(a){const y=Zh(a);let b=((1<<24)+(Hc(y.r)<<16)+(Hc(y.g)<<8)+Hc(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 mo(a){const y=hp(a);let b="";for(const E of y){if(typeof E.value!="string")return"";b+=E.value}return b}function hp(a){const b=a.model.selection.ranges;return b.length!==1?[]:a.model.getAtoms(b[0])}function $v(a,y){const b=hp(a);if(b.length!==1)return!1;const E=ph[y];return E?!!E.test(b[0].value):!1}function Vv(a,y){return mo(a).length>0}function Zv(a){return[Yh(a,"double-struck","mathbb","tooltip.blackboard"),Yh(a,"fraktur","mathfrak","tooltip.fraktur"),Yh(a,"calligraphic","mathcal","tooltip.caligraphic"),qh(a,"up","mathrm","tooltip.roman-upright"),qh(a,"bold","mathbf","tooltip.bold"),qh(a,"italic","mathit","tooltip.italic")]}function Uv(a){return[{label:()=>Yo(`\\vec{${mo(a)}}`),visible:()=>mo(a).length===1,onMenuSelect:()=>a.insert("\\vec{#@}",{selectionMode:"item"})},{label:()=>Yo(`\\overrightarrow{${mo(a)}}`),visible:()=>mo(a).length>0,onMenuSelect:()=>a.insert("\\overrightarrow{#@}",{selectionMode:"item"})},{label:()=>Yo(`\\overleftarrow{${mo(a)}}`),visible:()=>mo(a).length>0,onMenuSelect:()=>a.insert("\\overleftarrow{#@}",{selectionMode:"item"})},{label:()=>Yo(`\\dot{${mo(a)}}`),visible:()=>mo(a).length===1,onMenuSelect:()=>a.insert("\\dot{#@}",{selectionMode:"item"})},{label:()=>Yo(`\\ddot{${mo(a)}}`),visible:()=>mo(a).length===1,onMenuSelect:()=>a.insert("\\ddot{#@}",{selectionMode:"item"})},{label:()=>Yo(`\\bar{${mo(a)}}`),visible:()=>mo(a).length===1,onMenuSelect:()=>a.insert("\\bar{#@}",{selectionMode:"item"})},{label:()=>Yo(`\\overline{${mo(a)}}`),visible:()=>mo(a).length>0,onMenuSelect:()=>a.insert("\\overline{#@}",{selectionMode:"item"})},{label:()=>Yo(`\\overgroup{${mo(a)}}`),visible:()=>mo(a).length>0,onMenuSelect:()=>a.insert("\\overgroup{#@}",{selectionMode:"item"})},{label:()=>Yo(`\\overbrace{${mo(a)}}`),visible:()=>mo(a).length>0,onMenuSelect:()=>a.insert("\\overbrace{#@}",{selectionMode:"item"})},{label:()=>Yo(`\\underline{${mo(a)}}`),visible:()=>mo(a).length>0,onMenuSelect:()=>a.insert("\\underline{#@}",{selectionMode:"item"})},{label:()=>Yo(`\\undergroup{${mo(a)}}`),visible:()=>mo(a).length>0,onMenuSelect:()=>a.insert("\\undergroup{#@}",{selectionMode:"item"})},{label:()=>Yo(`\\underbrace{${mo(a)}}`),visible:()=>mo(a).length>0,onMenuSelect:()=>a.insert("\\underbrace{#@}",{selectionMode:"item"})}]}function Gv(a){return[{label:()=>Yo(`\\boxed{${a.getValue(a.model.selection)}}}`),onMenuSelect:()=>a.insert("\\boxed{#@}",{selectionMode:"item"})},{label:()=>Yo(`\\bbox[5px, border: 2px solid red]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px solid red]{#@}",{selectionMode:"item"})},{label:()=>Yo(`\\bbox[5px, border: 2px dashed black]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px dashed black]{#@}",{selectionMode:"item"})}]}function jv(a){const y=[];for(const b of Object.keys(Ke))y.push({class:(Wv(fp(Ke[b]))==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${Ke[b]} "></span>`,ariaLabel:()=>{var E;return(E=it(b))!=null?E:b},checked:()=>{var E;return{some:"mixed",all:!0}[(E=a.queryStyle({backgroundColor:b}))!=null?E:!1]},onMenuSelect:()=>{a.applyStyle({backgroundColor:b},{operation:"toggle"}),a.adoptStyle="none"}});return y}function Xv(a){const y=[];for(const b of Object.keys(Ue))y.push({class:(fp(Ue[b])==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${Ue[b]} "></span>`,ariaLabel:()=>{var E;return(E=it(b))!=null?E:b},checked:()=>{var E;return{some:"mixed",all:!0}[(E=a.queryStyle({color:b}))!=null?E:!1]},onMenuSelect:()=>{a.applyStyle({color:b},{operation:"toggle"}),a.adoptStyle="none"}});return y}var Yv=class extends ep{constructor(a,y,b,E){super(a,y),this.row=b,this.col=E}set active(a){const y=this.parentMenu.children;if(a)for(const b of y)b.element.classList.toggle("active",b.row<=this.row&&b.col<=this.col);else for(const b of y)b.element.classList.remove("active")}};function 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:()=>it("tooltip.row-by-col",b,E),data:{row:b,col:E},onMenuSelect:()=>{a.insert(`\\begin{pmatrix}${Array(b).fill(Array(E).fill("#?").join(" & ")).join("\\\\")}\\end{pmatrix}`,{selectionMode:"item"})}});return y}function Qv(a){return[{label:()=>it("menu.array.add row above"),id:"add-row-above",onMenuSelect:()=>a.executeCommand("addRowBefore"),visible:()=>Gu(a)},{label:()=>it("menu.array.add row below"),id:"add-row-below",onMenuSelect:()=>a.executeCommand("addRowAfter"),visible:()=>Gu(a)},{label:()=>it("menu.array.add column before"),id:"add-column-before",onMenuSelect:()=>a.executeCommand("addColumnBefore"),visible:()=>Gu(a),enabled:()=>{const y=a.model.parentEnvironment;if(!y)return!1;const[b,E]=e1(a);return b<y.maxColumns}},{label:()=>it("menu.array.add column after"),id:"add-column-after",onMenuSelect:()=>a.executeCommand("addColumnAfter"),visible:()=>Gu(a)},{type:"divider"},{label:()=>it("menu.array.delete row"),id:"delete-row",onMenuSelect:()=>a.executeCommand("removeRow"),visible:()=>Gu(a)},{label:()=>it("menu.array.delete column"),id:"delete-column",onMenuSelect:()=>a.executeCommand("removeColumn"),visible:()=>Gu(a)},{type:"divider"},{label:()=>it("menu.borders"),visible:()=>(Jv(a)||Gu(a))&&a.isSelectionEditable,submenu:[{label:" \u22F1 ",id:"environment-no-border",onMenuSelect:()=>Hd(a,"matrix")},{label:"(\u22F1)",id:"environment-parentheses",onMenuSelect:()=>Hd(a,"pmatrix")},{label:"[\u22F1]",id:"environment-brackets",onMenuSelect:()=>Hd(a,"bmatrix")},{label:"|\u22F1|",id:"environment-bar",onMenuSelect:()=>Hd(a,"vmatrix")},{label:"{\u22F1}",id:"environment-braces",onMenuSelect:()=>Hd(a,"Bmatrix")}],submenuClass:"border-submenu"},{type:"divider"},{label:()=>it("menu.insert matrix"),id:"insert-matrix",visible:()=>a.isSelectionEditable,submenu:qv(a),submenuClass:"insert-matrix-submenu",columnCount:5},{label:()=>it("menu.mode"),id:"mode",visible:()=>a.isSelectionEditable&&a.model.selectionIsCollapsed,submenu:[{label:()=>it("menu.mode-math"),id:"mode-math",onMenuSelect:()=>{Dc(a,"accept-all"),a.executeCommand(["switchMode","math"])},checked:()=>a.model.mode==="math"},{label:()=>it("menu.mode-text"),id:"mode-text",onMenuSelect:()=>{Dc(a,"accept-all"),a.executeCommand(["switchMode","text"])},checked:()=>a.model.mode==="text"},{label:()=>it("menu.mode-latex"),id:"mode-latex",onMenuSelect:()=>a.executeCommand(["switchMode","latex"]),checked:()=>a.model.mode==="latex"}]},{type:"divider"},{label:()=>it("menu.font-style"),id:"variant",visible:()=>a.isSelectionEditable,submenu:Zv(a),submenuClass:"variant-submenu"},{label:()=>it("menu.color"),id:"color",visible:()=>a.isSelectionEditable,submenu:Xv(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>it("menu.background-color"),id:"background-color",visible:()=>a.isSelectionEditable,submenu:jv(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>it("menu.accent"),id:"accent",visible:()=>a.isSelectionEditable,submenu:Uv(a),submenuClass:"variant-submenu"},{label:()=>it("menu.decoration"),id:"decoration",visible:()=>a.isSelectionEditable&&mo(a).length>0,submenu:Gv(a),submenuClass:"variant-submenu"},{type:"divider"},{label:()=>it("menu.evaluate"),id:"ce-evaluate",visible:()=>a.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{const y=t1(a);if(!y){a.model.announce("plonk");return}a.model.selectionIsCollapsed?(a.model.position=a.model.lastOffset,a.insert(`=${y}`,{insertionMode:"insertAfter",selectionMode:"item"})):a.insert(y,{insertionMode:"replaceSelection",selectionMode:"item"})}},{label:()=>it("menu.simplify"),id:"ce-simplify",visible:()=>a.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{var y,b;if(a.model.selectionIsCollapsed){const E=(y=a.expression)==null?void 0:y.simplify();if(a.model.position=a.model.lastOffset,!E){a.model.announce("plonk");return}a.insert(`=${E.latex}`,{insertionMode:"insertAfter",selectionMode:"item"})}else{const E=(b=window.MathfieldElement.computeEngine)==null?void 0:b.parse(a.getValue(a.model.selection)).simplify();if(!E){a.model.announce("plonk");return}a.insert(E.latex,{insertionMode:"replaceSelection",selectionMode:"item"})}}},{label:()=>{var y;if(window.MathfieldElement.computeEngine===null)return"";const b=(y=a.expression)==null?void 0:y.unknowns[0];return b?it("menu.solve-for",Yo(b)):it("menu.solve")},id:"ce-solve",visible:()=>{var y;return a.isSelectionEditable&&window.MathfieldElement.computeEngine!==null&&((y=a.expression)==null?void 0:y.unknowns.length)===1&&a.expression.unknowns[0]!=="Nothing"},onMenuSelect:()=>{var y;const b=a.expression,E=b==null?void 0:b.unknowns[0],ee=(y=b.solve(E))==null?void 0:y.map(re=>{var 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:()=>it("menu.cut"),onMenuSelect:()=>a.executeCommand("cutToClipboard"),visible:()=>!a.options.readOnly&&a.isSelectionEditable,keyboardShortcut:"meta+X"},{label:()=>it("menu.copy"),id:"copy",submenu:[{label:()=>it("menu.copy-as-latex"),id:"copy-latex",onMenuSelect:()=>Wi.copyToClipboard(a,"latex"),keyboardShortcut:"meta+C"},{label:()=>it("menu.copy-as-ascii-math"),id:"copy-ascii-math",onMenuSelect:()=>Wi.copyToClipboard(a,"ascii-math")},{label:()=>it("menu.copy-as-mathml"),id:"copy-math-ml",onMenuSelect:()=>Wi.copyToClipboard(a,"math-ml")}]},{label:()=>it("menu.paste"),id:"paste",onMenuSelect:()=>a.executeCommand("pasteFromClipboard"),visible:()=>a.hasEditableContent,keyboardShortcut:"meta+V"},{label:()=>it("menu.select-all"),id:"select-all",keyboardShortcut:"meta+A",onMenuSelect:()=>a.executeCommand("selectAll")}]}function Gu(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 Hd(a,y){Ef(a),a.flushInlineShortcutBuffer(),_0(a.model,y),Eo(a)}function t1(a){var y,b;let E;if(a.model.selectionIsCollapsed?E=(y=window.MathfieldElement.computeEngine)==null?void 0:y.parse(a.getValue(),{canonical:!1}):E=(b=window.MathfieldElement.computeEngine)==null?void 0:b.parse(a.getValue(a.model.selection),{canonical:!1}),!E)return"";let ee=E.evaluate();return ee.isSame(E)&&(ee=E.N()),ee.latex}function Yh(a,y,b,E){return{label:()=>Yo(`\\${b}{${mo(a)}}`),tooltip:()=>{var ee;return(ee=it(E))!=null?ee:E},visible:()=>$v(a,y),checked:()=>{var ee;return{some:"mixed",all:!0}[(ee=a.queryStyle({variant:y}))!=null?ee:!1]},onMenuSelect:()=>{a.applyStyle({variant:y},{operation:"toggle"}),a.adoptStyle="none"}}}function qh(a,y,b,E){return{label:()=>Yo(`\\${b}{${mo(a)}}`),tooltip:()=>{var ee;return(ee=it(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 Kc(a,y){return a+zc(y)}Ls({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 Re=null;switch(we){case"all":Re=re.root;break;case"selection":Re=re.getAtoms(re.selection);break;case"left":{Re=re.getAtoms(re.offsetOf(re.at(re.position).leftSibling),re.position);break}case"right":{Re=re.getAtoms(re.position,re.offsetOf(re.at(re.position).rightSibling));break}case"group":Re=re.getAtoms(re.getSiblingsRange(re.position));break;case"parent":{const{parent:Xe}=re.at(re.position);Xe!=null&&Xe.parent?Re=Xe:Re=re.root;break}default:Re=re.root}return Re}function he(we){let Re="";switch(we){case"all":console.log("Internal failure: speak all failed");break;case"selection":Re="no selection";break;case"left":Re="at start";break;case"right":Re="at end";break;case"group":console.log("Internal failure: speak group failed");break;case"parent":Re="no parent";break;default:console.log('unknown speak_ param value: "'+we+'"');break}return Re}const me=ae(y);if(me===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 ye=zc(me);return lt()&&b.withHighlighting?(mu().readAloudMathfield=a,Fu(a,{forHighlighting:!0}),window.MathfieldElement.readAloudHook&&window.MathfieldElement.readAloudHook(a.field,ye)):window.MathfieldElement.speakHook&&window.MathfieldElement.speakHook(ye),!1}function r1(a){var y,b;if(!lt()){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),me=new Blob([he.buffer],{type:"audio/mpeg"}),ye=URL.createObjectURL(me);new Audio(ye).play().catch(Re=>console.log(Re))}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=Kc("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=Kc("",a.model.at(a.model.position));else if(y==="line"){const re=Kc("",a.model.root);a.keyboardDelegate.setAriaLabel(re)}else ee=E?Kc(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 Kc("",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+=Kc("",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=du(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=Go(re);re.direction==="backward"?[this._position,this._anchor]=ae:[this._anchor,this._position]=ae;const he=this.at(ae[0]+1),me=this.at(ae[1]),ye=Bn.commonAncestor(he,me);(ye==null?void 0:ye.type)==="array"&&he.parent===ye&&me.parent===ye?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 ns&&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(wc(a)){if(E=y!=null?y:{},a.ranges.length>1)return a.ranges.reduce((ye,we)=>[...ye,...this.getAtoms(we,E)],[]);a=a.ranges[0]}let ee,re;if(gl(a)){if(ee=a,!gl(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 me=[];for(let ye=ae;ye<=he;ye++){const we=this.atoms[ye];mp(this,we,ae,he)&&me.push(we)}return E.includeChildren||(me=me.filter(ye=>{let we=!1,{parent:Re}=ye;for(;Re&&!we;)we=mp(this,Re,ae,he),Re=Re.parent;return!we})),me}getAllAtoms(a=0){const y=[],b=this.lastOffset;for(let E=a;E<=b;E++)y.push(this.atoms[E]);for(let E=0;E<a;E++)y.push(this.atoms[E]);return y}findAtom(a,y=0,b="forward"){let E;const ee=this.lastOffset;if(b==="forward"){for(let re=y;re<=ee;re++)if(E=this.atoms[re],a(E))return E;for(let re=0;re<y;re++)if(E=this.atoms[re],a(E))return E;return}for(let re=y;re>=0;re--)if(E=this.atoms[re],a(E))return E;for(let re=ee;re>y;re--)if(E=this.atoms[re],a(E))return E}extractAtoms(a){let y=this.getAtoms(a);if(y.length===1&&!y[0].parent)if(y[0].type==="root")y=[...y[0].body],y.shift();else return y=this.root.cells.flat(),this.root=new Bn({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 Bn.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 Va(a);if(b==="spoken")return zc(a);if(b==="spoken-text"){const E=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="";const ee=zc(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=zc(a);return window.MathfieldElement.textToSpeechMarkup=E,ee}return b==="ascii-math"?Ao(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(gl(a)&&gl(y)?(E=[this.normalizeRange([a,y])],ee=b):xc(a)?(E=[this.normalizeRange(a)],ee=y):wc(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 ua(E.map(ae=>Bn.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&&Qh(this,re,[E,ee]);)ee=this.offsetOf(re),re=re.parent;for(re=this.at(E).parent;re!==this.root&&Qh(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&&Qh(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,me=E!==this._anchor||ee!==this._position||Bu(this._selection,b)==="different";return this.silenceNotifications=re,a.content&&he&&this.contentDidChange({inputType:a.type}),a.selection&&me&&this.selectionDidChange(),he||me}normalizeOffset(a){return a>0?a=Math.min(a,this.lastOffset):a<0&&(a=this.lastOffset+a+1),a}normalizeRange(a){let[y,b]=a;return y=this.normalizeOffset(y),b=this.normalizeOffset(b),y<b?[y,b]:[b,y]}normalizeSelection(a,y){var b;let E;if(gl(a)){const ee=this.normalizeOffset(a);if(gl(y)){const re=this.normalizeOffset(y);E=ee<=re?{ranges:[[ee,re]],direction:"none"}:{ranges:[[re,ee]],direction:"backward"}}else E={ranges:[[ee,ee]],direction:"none"}}else if(xc(a)){const ee=this.normalizeOffset(a[0]),re=this.normalizeOffset(a[1]);E=ee<=re?{ranges:[[ee,re]],direction:"none"}:{ranges:[[re,ee]],direction:"backward"}}else wc(a)&&(E={ranges:a.ranges.map(ee=>this.normalizeRange(ee)),direction:(b=a.direction)!=null?b:"none"});return console.assert(E!==void 0),E}get parentEnvironment(){let a=this.at(this.position).parent;if(a){for(;a.parent&&a.type!=="array";)a=a.parent;if(a.type==="array")return a}}get cell(){var a;let y=this.at(this.position);if(y){for(;y&&((a=y.parent)==null?void 0:a.type)!=="array";)y=y.parent;if(!(!(y!=null&&y.parent)||y.parent.type!=="array"))return y.parentBranch}}contentWillChange(a={}){if(this.silenceNotifications||!this.mathfield)return!0;const y=this.silenceNotifications;this.silenceNotifications=!0;const b=this.mathfield.onContentWillChange(a);return this.silenceNotifications=y,b}contentDidChange(a){var y;if(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(El(this.mathfield)),this.silenceNotifications||!this.mathfield.host||!this.mathfield)return;const b=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.host.dispatchEvent(new InputEvent("input",pe(Se({},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(El(this.mathfield)),this.silenceNotifications))return;const a=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.onSelectionDidChange(),this.silenceNotifications=a}};function mp(a,y,b,E){const ee=a.offsetOf(y);if(ee<b||ee>E)return!1;if(!y.hasChildren)return!0;const re=a.offsetOf(y.firstChild);if(re>=b&&re<=E){const ae=a.offsetOf(y.lastChild);if(ae>=b&&ae<=E)return!0}return!1}function Qh(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 Kd(a,y,b,E){var ee,re,ae,he,me,ye;const we=b.parent;if(we&&b instanceof $a){const Re=!E&&y==="forward"||E==="body"&&y==="backward";let Xe=Re?a.offsetOf(b.firstChild):a.offsetOf(b.lastChild);return Re?b.rightDelim!=="?"&&b.rightDelim!=="."?(b.leftDelim=".",b.isDirty=!0):(we.addChildrenAfter(b.removeBranch("body"),b),we.removeChild(b),Xe--):b.leftDelim!=="?"&&b.leftDelim!=="."?(b.rightDelim=".",b.isDirty=!0):(we.addChildrenAfter(b.removeBranch("body"),b),we.removeChild(b),Xe--),a.position=Xe,!0}if(we&&b.type==="surd"){if(y==="forward"&&!E||y==="backward"&&E==="body"){const Re=b.leftSibling;b.hasChildren&&we.addChildrenAfter(b.removeBranch("body"),b),we.removeChild(b),a.position=a.offsetOf(Re)}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 Re=E&&y==="backward"||!E&&y==="forward"?b.leftSibling:b.lastChild;return we.addChildrenAfter(b.removeBranch("body"),b),we.removeChild(b),a.position=a.offsetOf(Re),!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 Re=Wd.fractionNavigationOrder==="numerator-denominator"?"above":"below",Xe=Re==="above"?"below":"above";if(we&&(y==="forward"&&E===Re||y==="backward"&&E===Xe)){const ct=b.removeBranch(Re),xt=b.removeBranch(Xe);return we.addChildrenAfter([...ct,...xt],b),we.removeChild(b),a.position=a.offsetOf(ct.length>0?ct[ct.length-1]:xt[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 Re=y==="forward"?(ae=(ee=b.superscript)==null?void 0:ee[0])!=null?ae:(re=b.subscript)==null?void 0:re[0]:(ye=(he=b.subscript)==null?void 0:he[0].lastSibling)!=null?ye:(me=b.superscript)==null?void 0:me[0].lastSibling;return Re&&(a.position=a.offsetOf(Re)),!0}return!1}if(!b.hasChildren&&b.type==="subsup"){const Re=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);return b.parent.removeChild(b),a.position=Re,!0}if(E==="superscript")if(y==="backward"){const Re=a.offsetOf(b.firstChild)-1;console.assert(Re>=0),a.position=Re}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 Re=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);b.parent.removeChild(b),a.position=Re}return!0}if((we==null?void 0:we.type)==="genfrac"&&!E&&b.type!=="first"){let Re=a.offsetOf(b.leftSibling);return we.removeChild(b),we.hasEmptyBranch("above")&&we.hasEmptyBranch("below")?(Re=a.offsetOf(we.leftSibling),we.parent.removeChild(we),a.announce("delete",void 0,[we]),a.position=Re,!0):(a.announce("delete",void 0,[b]),a.position=Re,!0)}if(y==="backward"&&((we==null?void 0:we.command)==="\\ln"||(we==null?void 0:we.command)==="\\log")&&b.parentBranch!=="body"){const Re=a.offsetOf(we.leftSibling);return we.parent.removeChild(we),a.announce("delete",void 0,[we]),a.position=Re,!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&&Kd(a,"backward",y))){if(y!=null&&y.isFirstSibling){if(Kd(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])}}):kl(a,Go(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&&Kd(a,"forward",E))return;if(E){if(a.at(a.position).isLastSibling&&Kd(a,"forward",E.parent,E.parentBranch))return}else{if(E=a.at(a.position),E.isLastSibling&&Kd(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])}):kl(a,Go(a.selection),"deleteContentForward")}function kl(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 me=E[0].parent;me.parent&&me.type!=="prompt"&&(y=[a.offsetOf(me.leftSibling),a.offsetOf(me)])}if(E.length===1&&E[0].type==="placeholder"&&E[0].parent.type==="genfrac"){const me=E[0].parent,ye=E[0].parentBranch==="below"?"above":"below",we=a.offsetOf(me.leftSibling);return a.deferNotifications({content:!0,selection:!0,type:b},()=>{var Re,Xe;const ct=me.removeBranch(ye);if(ct.length===1&&ct[0].type==="placeholder")(Xe=me.parent)==null||Xe.removeChild(me),a.position=Math.max(0,we);else{const xt=me.parent.addChildrenAfter(ct,me);(Re=me.parent)==null||Re.removeChild(me),a.position=a.offsetOf(xt)}})}}return a.deferNotifications({content:!0,selection:!0,type:b},()=>a.deleteAtoms(y))}Ls({deleteAll:a=>a.contentWillChange({inputType:"deleteContent"})&&kl(a,[0,-1],"deleteContent"),deleteForward:a=>u1(a),deleteBackward:a=>l1(a),deleteNextWord:a=>a.contentWillChange({inputType:"deleteWordForward"})&&kl(a,[a.anchor,Ah(a,a.position,"forward")],"deleteWordForward"),deletePreviousWord:a=>a.contentWillChange({inputType:"deleteWordBackward"})&&kl(a,[a.anchor,Ah(a,a.position,"backward")],"deleteWordBackward"),deleteToGroupStart:a=>a.contentWillChange({inputType:"deleteSoftLineBackward"})&&kl(a,[a.anchor,a.offsetOf(a.at(a.position).firstSibling)],"deleteSoftLineBackward"),deleteToGroupEnd:a=>a.contentWillChange({inputType:"deleteSoftLineForward"})&&kl(a,[a.anchor,a.offsetOf(a.at(a.position).lastSibling)],"deleteSoftLineForward"),deleteToMathFieldStart:a=>a.contentWillChange({inputType:"deleteHardLineBackward"})&&kl(a,[a.anchor,0],"deleteHardLineBackward"),deleteToMathFieldEnd:a=>a.contentWillChange({inputType:"deleteHardLineForward"})&&kl(a,[a.anchor,-1],"deleteHardLineForward")},{target:"model",audioFeedback:"delete",canUndo:!0,changeContent:!0,changeSelection:!0});var c1=`<svg xmlns="http://www.w3.org/2000/svg" style="width: 21px;" viewBox="0 0 576 512" role="img" aria-label="${it("tooltip.toggle virtual keyboard")}"><path d="M528 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h480c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm16 336c0 8.823-7.177 16-16 16H48c-8.823 0-16-7.177-16-16V112c0-8.823 7.177-16 16-16h480c8.823 0 16 7.177 16 16v288zM168 268v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm-336 80v-24c0-6.627-5.373-12-12-12H84c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm384 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zM120 188v-24c0-6.627-5.373-12-12-12H84c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm-96 152v-8c0-6.627-5.373-12-12-12H180c-6.627 0-12 5.373-12 12v8c0 6.627 5.373 12 12 12h216c6.627 0 12-5.373 12-12z"/></svg>`,d1=`<svg xmlns="http://www.w3.org/2000/svg" style="height: 18px;" viewBox="0 0 448 512" role="img" aria-label="${it("tooltip.menu")}"><path d="M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"/></svg>`,f1=class{constructor(a,y){this.focusBlurInProgress=!1;var b,E,ee;this.options=Se(pe(Se({},Of()),{macros:Jn(),registers:ou()}),Pf(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),me=new Bn({type:"root",mode:he,body:Xo(ae,{context:this.context})});this.model=new s1(this,he,me),this.undoManager=new Rg(this.model);const ye=[];if(ye.push("<span contenteditable=true aria-multiline=false part=keyboard-sink class=ML__keyboard-sink autocapitalize=off autocomplete=off autocorrect=off spellcheck=false inputmode=none tabindex=0></span>"),ye.push('<span part=container class=ML__container aria-hidden=true style="visibility:hidden">'),ye.push("<span part=content class=ML__content>"),ye.push(w0(this)),ye.push("</span>"),window.mathVirtualKeyboard&&(ye.push(`<div part=virtual-keyboard-toggle class=ML__virtual-keyboard-toggle role=button ${this.hasEditableContent?"":'style="display:none;"'} data-l10n-tooltip="tooltip.toggle virtual keyboard">`),ye.push(c1),ye.push("</div>")),ye.push('<div part=menu-toggle class=ML__menu-toggle role=button data-l10n-tooltip="tooltip.menu">'),ye.push(d1),ye.push("</div>"),ye.push("</span>"),ye.push("<span class=ML__sr-only>"),ye.push("<span role=status aria-live=assertive aria-atomic=true></span>"),ye.push("</span>"),this.element.innerHTML=window.MathfieldElement.createHTML(ye.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=Ye.subscribe(()=>Ye.update(this.element)),Ye.update(this.element),this.field=this.element.querySelector("[part=content]"),this.field.addEventListener("click",Re=>Re.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(El(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",Re=>{if(Re.currentTarget!==we||this._menu.state!=="closed")return;this.element.classList.add("tracking");const Xe=we.getBoundingClientRect();this._menu.modifiers=Ru(Re),this._menu.show({target:we,location:{x:Xe.left,y:Xe.bottom},onDismiss:()=>this.element.classList.remove("tracking")}),Re.preventDefault(),Re.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(()=>Eo(this)),this.resizeObserver.observe(this.field),window.mathVirtualKeyboard.addEventListener("virtual-keyboard-toggle",this,{signal:re}),kd&&!Ye.locale.startsWith(kd.locale)&&Fm(Ye.locale),Fs!=="ready"&&document.fonts.ready.then(()=>Df(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(El(this)),Gf(this))}disconnectFromVirtualKeyboard(){this.connectedToVirtualKeyboard&&(window.removeEventListener("message",this),window.mathVirtualKeyboard.disconnect(),this.connectedToVirtualKeyboard=!1,Fh())}showMenu(a){var y,b;const E=(b=(y=a==null?void 0:a.location)!=null?y:bl(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:Mt(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:Qe(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=Bn.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=Se({},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=Bh(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 me of Object.keys(y)){const ye=this.queryStyle({[me]:y[me]});if(ye==="none")return"none";if(ye==="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 me of re){if(me.type==="first"){ae-=1;continue}me.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=Ad())!=null?a:zm());return((y=Ad())==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=Se(Se({},this.options),Pf(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=Bn.serialize([this.model.root],{expandMacro:!1,defaultMode:this.options.defaultMode});("macros"in a||this.model.getValue()!==E)&&Wi.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)&&Eo(this)}getOptions(a){return Hu(this.options,a)}getOption(a){return Hu(this.options,a)}handleEvent(a){return gu(this,null,function*(){var y;if(Os(this)){if(Ch(a)){if(!yd(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(Ic(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))&&$f.stop());break;case"contextmenu":this.userSelect!=="none"&&a.shiftKey===!1&&(yield ip(a,this.element.querySelector("[part=container]"),this._menu))&&$f.stop();break;case"virtual-keyboard-toggle":this.hasFocus()&&Gf(this);break;case"resize":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>Os(this)&&this.onGeometryChange());break;case"scroll":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>Os(this)&&this.onGeometryChange());break;case"wheel":this.onWheel(a);break;default:console.warn("Unexpected event type",a.type)}}})}dispose(){if(!Os(this))return;Ye.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,jg(),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 Ic(a)==="virtual-keyboard"?(this.focus({preventScroll:!0}),window.mathVirtualKeyboard.executeCommand(a),requestAnimationFrame(()=>window.mathVirtualKeyboard.update(El(this))),!1):og(this,a)}get errors(){return t0(this.model.getValue(),{context:this.context})}getValue(a,y,b){return this.model.getValue(a,y,b)}setValue(a,y){var b;y=y!=null?y:{mode:"math"},y.insertionMode===void 0&&(y.insertionMode="replaceAll"),(y.format===void 0||y.format==="auto")&&(y.format="latex"),(y.mode===void 0||y.mode==="auto")&&(y.mode=(b=ah(this.model,this.model.position))!=null?b:"math");const E=this.undoManager.canUndo();Wi.insert(this.model,a,y)&&(Eo(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&&Fu(this,{interactive:!0});const y=this.field.getBoundingClientRect();let b=null;if(this.model.selectionIsCollapsed)b=bl(this.field);else{const E=vd(this);if(E.length>0){let ee=-1/0,re=-1/0;for(const ae of E)ae.right>ee&&(ee=ae.right),ae.top<re&&(re=ae.top);b={x:ee+y.left-this.field.scrollLeft,y:re+y.top-this.field.scrollTop,height:0}}}if(this.host&&b){const E=this.host.getBoundingClientRect(),ee=b.y;let re=this.host.scrollTop;ee<E.top?re=ee-E.top+this.host.scrollTop:ee>E.bottom&&(re=ee-E.bottom+this.host.scrollTop+b.height),this.host.scroll({top:re,left:0})}if(b){const E=b.x-window.scrollX;let ee=this.field.scrollLeft;E<y.left?ee=E-y.left+this.field.scrollLeft-20:E>y.right&&(ee=E-y.right+this.field.scrollLeft+20),this.field.scroll({top:this.field.scrollTop,left:ee})}}insert(a,y){return typeof a!="string"||a.length===0&&((y==null?void 0:y.insertionMode)==="insertBefore"||(y==null?void 0:y.insertionMode)==="insertAfter")||a.length===0&&this.model.selectionIsCollapsed?!1:(this.flushInlineShortcutBuffer(),y=y!=null?y:{mode:"math"},y.focus&&this.focus(),y.feedback&&(window.MathfieldElement.keypressVibration&&Ge()&&navigator.vibrate(S0),window.MathfieldElement.playSound("keypress")),a==="\\\\"?T0(this.model):a==="&"?I0(this.model):this.model.selectionIsCollapsed?Wi.insert(this.model,a,Se({style:this.model.at(this.model.position).computedStyle},y)):Wi.insert(this.model,a,y),this.snapshot(`insert-${this.model.at(this.model.position).type}`),Eo(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 me=Xo(y,{context:this.context,parseMode:a});ae.collapseSelection("forward");const ye=ae.at(ae.position);ae.position=ae.offsetOf(ye.parent.addChildrenAfter(me,ye)),he=!0}if(this.model.mode=a,a==="latex"){let me=ae.selectionIsCollapsed;Dc(this,"accept");let ye,we=ae.at(ae.position);if(me)ye="\\";else{const Xe=Go(ae.selection);ye=this.model.getValue(Xe,"latex");const ct=this.model.extractAtoms(Xe);ct.length===1&&ct[0].type==="placeholder"&&(ye=y,me=!0),we=ae.at(Xe[0])}const Re=new xd(ye);we.parent.addChildAfter(Re,we),me?ae.position=ae.offsetOf(Re.lastChild):ae.setSelection(ae.offsetOf(Re.firstChild),ae.offsetOf(Re.lastChild))}else Ld(ae).forEach(me=>{me.isError=!1});if(b){const me=Xo(b,{context:this.context,parseMode:re});ae.collapseSelection("forward");const ye=ae.at(ae.position);ae.position=ae.offsetOf(ye.parent.addChildrenAfter(me,ye)),he=!0}return Eo(this),this.undoManager.snapshot(a==="latex"?"insert-latex":"insert"),he}),this.model.mode=a,window.mathVirtualKeyboard.update(El(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};xc(y)?ee.range=y:(y.operation==="toggle"&&(ee.operation="toggle"),ee.range=y.range,ee.silenceNotifications=(b=y.silenceNotifications)!=null?b:!1);const re=Bh(this,a),ae=(E=ee.operation)!=null?E:"set";if(ee.range===void 0&&this.model.selectionIsCollapsed){if(ae==="set"){this.defaultStyle=Se(Se({},this.defaultStyle),re);return}const he=Se({},this.defaultStyle);for(const me of Object.keys(re))he[me]===re[me]?(me==="color"&&delete he.verbatimColor,me==="backgroundColor"&&delete he.verbatimBackgroundColor,delete he[me]):he[me]=re[me];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)Mh(this.model,he,re,{operation:ae});else Mh(this.model,ee.range,re,{operation:ae})}),Eo(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=bl(this.field);return a?{x:a.x,y:a.y}:null}setCaretPoint(a,y){const b=Nd(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),Eo(this),!0}getPrompt(a){const y=this.model.findAtom(b=>b.type==="prompt"&&b.placeholderId===a);return console.assert(y!==void 0,"MathLive 0.98.5: no prompts with matching ID found"),y}getPromptValue(a,y){const b=this.getPrompt(a);if(!b)return"";const E=this.model.offsetOf(b.firstChild),ee=this.model.offsetOf(b.lastChild);return this.model.getValue(E,ee,y)}getPrompts(a){return this.model.getAllAtoms().filter(y=>y.type!=="prompt"?!1:a?!(a.id&&y.placeholderId!==a.id||a.locked&&y.locked!==a.locked||a.correctness==="undefined"&&y.correctness||a.correctness&&y.correctness!==a.correctness):!0).map(y=>y.placeholderId)}setPromptValue(a,y,b){if(y!==void 0){const E=this.getPrompt(a);if(!E){console.error(`MathLive 0.98.5: unknown prompt ${a}`);return}const ee=this.model.getBranchRange(this.model.offsetOf(E),"body");this.model.setSelection(ee),this.insert(y,pe(Se({},b),{insertionMode:"replaceSelection"}))}b!=null&&b.silenceNotifications&&(this.valueOnFocus=this.getValue()),Eo(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),Eo(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(El(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(El(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(El(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"?(Dc(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(El(this)),Gf(this)}onContentWillChange(a){var y,b,E;return(E=(b=this.host)==null?void 0:b.dispatchEvent(new InputEvent("beforeinput",pe(Se({},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(),Fu(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="",Tc(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})),Eo(this),this.focusBlurInProgress=!1,Fh();const E=new AbortController,ee=E.signal;document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&document.addEventListener("visibilitychange",()=>{Os(this)&&document.visibilityState==="visible"&&this.focus({preventScroll:!0})},{once:!0,signal:ee})},{once:!0,signal:ee}),setTimeout(()=>E.abort(),100)}onInput(a){Th(this,a)}onKeystroke(a){return K0(this,a)}onCompositionStart(a){this.model.deleteAtoms(Go(this.model.selection));const y=bl(this.field);y&&requestAnimationFrame(()=>{Fu(this),this.keyboardDelegate.moveTo(y.x,y.y-y.height)})}onCompositionUpdate(a){Lg(this.model,a),Eo(this)}onCompositionEnd(a){Dg(this.model),Th(this,a,{simulateKeystroke:!0})}onCut(a){if(!this.isSelectionEditable){this.model.announce("plonk");return}this.model.contentWillChange({inputType:"deleteByCut"})&&(this.stopCoalescingUndo(),Wi.onCopy(this,a),kl(this.model,Go(this.model.selection),"deleteByCut"),this.snapshot("cut"),Eo(this))}onCopy(a){Wi.onCopy(this,a)}onPaste(a){let y=this.isSelectionEditable;return y&&(y=Wi.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(),kf(this),Gf(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=>xi(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 Jh(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&&Jh(E)})):(a.classList.remove("ML__highlight"),a.children&&a.children.length>0&&[...a.children].forEach(E=>{E instanceof HTMLElement&&Jh(E,y)})))}function h1(a,y){var b;if(!lt())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"]};mu().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));mu().readAloudMarks=he.split(`
`).map(me=>me?JSON.parse(me):{}),mu().readAloudTokens=[];for(const me of mu().readAloudMarks)me.value&&mu().readAloudTokens.push(me.value);mu().readAloudCurrentMark="",ee.OutputFormat="mp3",ee.SpeechMarkTypes=[],E.synthesizeSpeech(ee,(me,ye)=>{if(me){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech("${y}") error:${me}`);return}if(!(ye!=null&&ye.AudioStream))return;const we=new Uint8Array(ye.AudioStream),Re=new Blob([we.buffer],{type:"audio/mpeg"}),Xe=URL.createObjectURL(Re),ct=mu();ct.readAloudAudio?ct.readAloudAudio.pause():(ct.readAloudAudio=new Audio,ct.readAloudAudio.addEventListener("ended",()=>{const xt=ct.readAloudMathfield;ct.readAloudStatus="ended",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),xt?(Fu(xt),ct.readAloudElement=null,ct.readAloudMathfield=null,ct.readAloudTokens=[],ct.readAloudMarks=[],ct.readAloudCurrentMark=""):gp(ct.readAloudElement)}),ct.readAloudAudio.addEventListener("timeupdate",()=>{let xt="";const mn=ct.readAloudAudio.currentTime*1e3+100;for(const cr of ct.readAloudMarks)cr.time<mn&&(xt=cr.value);ct.readAloudCurrentMark!==xt&&(ct.readAloudCurrentToken=xt,xt&&xt===ct.readAloudFinalToken?ct.readAloudAudio.pause():(ct.readAloudCurrentMark=xt,Jh(ct.readAloudElement,ct.readAloudCurrentMark)))})),ct.readAloudAudio.src=Xe,ct.readAloudStatus="playing",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),ct.readAloudAudio.play()})})}lt()||console.error('MathLive 0.98.5: this version of the MathLive library is for use in the browser. A subset of the API is available on the server side in the "mathlive-ssr" library. If using server side rendering (with React for example) you may want to do a dynamic import of the MathLive library inside a `useEffect()` call.');var Na=new WeakMap,p1=.5,pu={letterShapeStyle:"mf.letterShapeStyle = ...",horizontalSpacingScale:'Removed. Use `"thinmuskip"`, `"medmuskip"`, and `"thickmuskip"` registers ',macros:"mf.macros = ...",registers:"mf.registers = ...",backgroundColorMap:"mf.backgroundColorMap = ...",colorMap:"mf.colorMap = ...",enablePopover:"mf.popoverPolicy = ...",mathModeSpace:"mf.mathModeSpace = ...",placeholderSymbol:"mf.placeholderSymbol = ...",readOnly:"mf.readOnly = ...",removeExtraneousParentheses:"mf.removeExtraneousParentheses = ...",scriptDepth:"mf.scriptDepth = ...",smartFence:"mf.smartFence = ...",smartMode:"mf.smartMode = ...",smartSuperscript:"mf.smartSuperscript = ...",inlineShortcutTimeout:"mf.inlineShortcutTimeout = ...",inlineShortcuts:"mf.inlineShortcuts = ...",keybindings:"mf.keybindings = ...",virtualKeyboardMode:"mf.mathVirtualKeyboardPolicy = ...",customVirtualKeyboardLayers:"mathVirtualKeyboard.layers = ...",customVirtualKeyboards:"mathVirtualKeyboard.layouts = ...",keypressSound:"mathVirtualKeyboard.keypressSound = ...",keypressVibration:"mathVirtualKeyboard.keypressVibration = ...",plonkSound:"mathVirtualKeyboard.plonkSound = ...",virtualKeyboardContainer:"mathVirtualKeyboard.container = ...",virtualKeyboardLayout:"mathVirtualKeyboard.alphabeticLayout = ...",virtualKeyboardTheme:"No longer supported",virtualKeyboardToggleGlyph:"No longer supported",virtualKeyboardToolbar:"mathVirtualKeyboard.editToolbar = ...",virtualKeyboards:"Use `mathVirtualKeyboard.layouts`",speechEngine:"`MathfieldElement.speechEngine`",speechEngineRate:"`MathfieldElement.speechEngineRate`",speechEngineVoice:"`MathfieldElement.speechEngineVoice`",textToSpeechMarkup:"`MathfieldElement.textToSpeechMarkup`",textToSpeechRules:"`MathfieldElement.textToSpeechRules`",textToSpeechRulesOptions:"`MathfieldElement.textToSpeechRulesOptions`",readAloudHook:"`MathfieldElement.readAloudHook`",speakHook:"`MathfieldElement.speakHook`",computeEngine:"`MathfieldElement.computeEngine`",fontsDirectory:"`MathfieldElement.fontsDirectory`",soundsDirectory:"`MathfieldElement.soundsDirectory`",createHTML:"`MathfieldElement.createHTML`",onExport:"`MathfieldElement.onExport`",onInlineShortcut:"`MathfieldElement.onInlineShortcut`",onScrollIntoView:"`MathfieldElement.onScrollIntoView`",locale:"MathfieldElement.locale = ...",strings:"MathfieldElement.strings = ...",decimalSeparator:"MathfieldElement.decimalSeparator = ...",fractionNavigationOrder:"MathfieldElement.fractionNavigationOrder = ..."},rs=class ju extends HTMLElement{static get formAssociated(){return Wc()}static get optionsAttributes(){return{"default-mode":"string","letter-shape-style":"string","min-font-scale":"number","popover-policy":"string","math-mode-space":"string","read-only":"boolean","remove-extraneous-parentheses":"on/off","smart-fence":"on/off","smart-mode":"on/off","smart-superscript":"on/off","inline-shortcut-timeout":"string","script-depth":"string",placeholder:"string","virtual-keyboard-target-origin":"string","math-virtual-keyboard-policy":"string"}}static get observedAttributes(){return[...Object.keys(this.optionsAttributes),"contenteditable","disabled","readonly","read-only"]}static get fontsDirectory(){return this._fontsDirectory}static set fontsDirectory(y){y!==this._fontsDirectory&&(this._fontsDirectory=y,ng())}get fontsDirectory(){throw new Error("Use MathfieldElement.fontsDirectory instead")}set fontsDirectory(y){throw new Error("Use MathfieldElement.fontsDirectory instead")}static get soundsDirectory(){return this._soundsDirectory}static set soundsDirectory(y){this._soundsDirectory=y,this.audioBuffers={}}get soundsDirectory(){throw new Error("Use MathfieldElement.soundsDirectory instead")}set soundsDirectory(y){throw new Error("Use MathfieldElement.soundsDirectory instead")}static get keypressSound(){return this._keypressSound}static set keypressSound(y){var b,E,ee;this.audioBuffers={},y===null?this._keypressSound={spacebar:null,return:null,delete:null,default:null}:typeof y=="string"?this._keypressSound={spacebar:y,return:y,delete:y,default:y}:typeof y=="object"&&"default"in y&&(this._keypressSound={spacebar:(b=y.spacebar)!=null?b:y.default,return:(E=y.return)!=null?E:y.default,delete:(ee=y.delete)!=null?ee:y.default,default:y.default})}static get plonkSound(){return this._plonkSound}static set plonkSound(y){this.audioBuffers={},this._plonkSound=y}static get audioContext(){return this._audioContext||(this._audioContext=new AudioContext),this._audioContext}static get speechEngine(){return this._speechEngine}static set speechEngine(y){this._speechEngine=y}static get speechEngineRate(){return this._speechEngineRate}static set speechEngineRate(y){this._speechEngineRate=y}static get speechEngineVoice(){return this._speechEngineVoice}static set speechEngineVoice(y){this._speechEngineVoice=y}static get textToSpeechMarkup(){return this._textToSpeechMarkup}static set textToSpeechMarkup(y){this._textToSpeechMarkup=y}static get textToSpeechRules(){return this._textToSpeechRules}static set textToSpeechRules(y){this._textToSpeechRules=y}static get textToSpeechRulesOptions(){return this._textToSpeechRulesOptions}static set textToSpeechRulesOptions(y){this._textToSpeechRulesOptions=y}static get locale(){return Ye.locale}static set locale(y){y==="auto"&&(y=navigator.language.slice(0,5)),Ye.locale=y}get locale(){throw new Error("Use MathfieldElement.locale instead")}set locale(y){throw new Error("Use MathfieldElement.locale instead")}static get strings(){return Ye.strings}static set strings(y){Ye.merge(y)}get strings(){throw new Error("Use MathfieldElement.strings instead")}set strings(y){throw new Error("Use MathfieldElement.strings instead")}static get decimalSeparator(){return this._decimalSeparator}static set decimalSeparator(y){this._decimalSeparator=y,this._computeEngine&&(this._computeEngine.latexOptions.decimalMarker=this.decimalSeparator===","?"{,}":".")}get decimalSeparator(){throw new Error("Use MathfieldElement.decimalSeparator instead")}set decimalSeparator(y){throw new Error("Use MathfieldElement.decimalSeparator instead")}static get computeEngine(){var y,b;if(this._computeEngine===void 0){const E=(y=window[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:y.ComputeEngine;if(!E)return null;this._computeEngine=new E,this._computeEngine&&this.decimalSeparator===","&&(this._computeEngine.latexOptions.decimalMarker="{,}")}return(b=this._computeEngine)!=null?b:null}static set computeEngine(y){this._computeEngine=y}get computeEngine(){throw new Error("Use MathfieldElement.computeEngine instead")}set computeEngine(y){throw new Error("Use MathfieldElement.computeEngine instead")}static get isFunction(){return typeof this._isFunction!="function"?()=>!1:this._isFunction}static set isFunction(y){this._isFunction=y}static loadSound(y){return gu(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 gu(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(pu[E])if(pu[E].startsWith("mf."))if(pu[E].startsWith(`mf.${E}`))b.push(`Option \`${E}\` cannot be used as a constructor option. Use ${pu[E]}`);else{const ee=pu[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 ${pu[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(Wc()&&(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=[cu("core"),cu("mathfield"),cu("mathfield-element"),cu("ui"),cu("menu")],this.shadowRoot.appendChild(document.createElement("span"));const b=document.createElement("slot");b.style.display="none",this.shadowRoot.appendChild(b)}else this.shadowRoot.innerHTML="<style>"+Wl("core")+Wl("mathfield")+Wl("mathfield-element")+Wl("ui")+Wl("menu")+'</style><span></span><slot style="display:none"></slot>';y&&this._setOptions(y),this.shadowRoot.addEventListener("slotchange",()=>{var b;const E=this.shadowRoot.querySelector("slot:not([name])");this.value=(b=E==null?void 0:E.assignedNodes().map(ee=>ee.nodeType===3?ee.textContent:"").join("").trim())!=null?b:""})}showMenu(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.showMenu(y))!=null?E:!1}get mathVirtualKeyboard(){throw new Error("The `mathVirtualKeyboard` property is not available on the MathfieldElement. Use `window.mathVirtualKeyboard` instead.")}onPointerDown(){window.addEventListener("pointerup",y=>{var b;y.target===this&&!((b=this._mathfield)!=null&&b.disabled)&&this.dispatchEvent(new MouseEvent("click",{altKey:y.altKey,button:y.button,buttons:y.buttons,clientX:y.clientX,clientY:y.clientY,ctrlKey:y.ctrlKey,metaKey:y.metaKey,movementX:y.movementX,movementY:y.movementY,relatedTarget:y.relatedTarget,screenX:y.screenX,screenY:y.screenY,shiftKey:y.shiftKey}))},{once:!0})}getPromptValue(y,b){var E,ee;return(ee=(E=this._mathfield)==null?void 0:E.getPromptValue(y,b))!=null?ee:""}setPromptValue(y,b,E){var ee;(ee=this._mathfield)==null||ee.setPromptValue(y,b,E)}getPromptRange(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.getPromptRange(y))!=null?E:null}getPrompts(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.getPrompts(y))!=null?E:[]}get form(){var y;return(y=this._internals)==null?void 0:y.form}get name(){var y;return(y=this.getAttribute("name"))!=null?y:""}get type(){return this.localName}get mode(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.model.mode)!=null?b:this.defaultMode==="text"?"text":"math"}set mode(y){var b;(b=this._mathfield)==null||b.switchMode(y)}get expression(){if(this._mathfield)return window[Symbol.for("io.cortexjs.compute-engine")]?this._mathfield.expression:(console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
Load the library, for example with:
import "https://unpkg.com/@cortex-js/compute-engine?module"`),null)}set expression(y){var b,E;if(!this._mathfield)return;const ee=(E=(b=ju.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?Hu(this._mathfield.options,y):Na.has(this)?Se({},Hu(Se(Se({},Of()),Pf(Na.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?Hu(this._mathfield.options,y):Na.has(this)?Hu(Se(Se({},Of()),Pf(Na.get(this).options)),y):null}reflectAttributes(){const y=Of(),b=this._getOptions();Object.keys(ju.optionsAttributes).forEach(E=>{const ee=Ul(E);ju.optionsAttributes[E]==="on/off"?y[ee]!==b[ee]?this.setAttribute(E,b[ee]?"on":"off"):this.removeAttribute(E):y[ee]!==b[ee]&&(ju.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(Na.has(this)){const b=Se(Se({},Na.get(this).options),y);Na.set(this,pe(Se({},Na.get(this)),{selection:{ranges:b.readOnly?[[0,0]]:[[0,-1]]},options:b}))}else Na.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))pu[b]&&console.warn(`\`mf.setOptions({${b}:...})\` -> ${pu[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(Na.has(this)){let ae,he,me;if(wc(y)?([ae,he]=y.ranges[0],me=b):xc(y)?([ae,he]=y,me=b):gl(y)&&gl(b)?(ae=y,he=b,me=E):(ae=0,he=-1,me=y),(me===void 0||me==="latex")&&ae===0&&he===-1)return(re=(ee=Na.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(Na.has(this)){const ee=Na.get(this).options;Na.set(this,{value:y,selection:{ranges:[[-1,-1]],direction:"forward"},options:ee,menuItems:void 0});return}const E=$d(this);Na.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?Nd(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=lu(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;wl.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),Wc()||(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 me=ae.querySelector("slot:not([name])");if(me)try{this._style=me.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 ye="";if(this.hasAttribute("value")?ye=this.getAttribute("value"):ye=(y=me==null?void 0:me.assignedNodes().map(we=>we.nodeType===3?we.textContent:"").join("").trim())!=null?y:"",this._mathfield=new f1(ae.querySelector(":host > span"),pe(Se({},(E=(b=Na.get(this))==null?void 0:b.options)!=null?E:$d(this)),{eventSink:this,value:ye})),!Na.has(this)){this.upgradeProperty("disabled"),this.upgradeProperty("readonly");for(const we of Object.keys(ju.optionsAttributes))this.upgradeProperty(Ul(we))}if(!((ee=this._mathfield)!=null&&ee.model)){this._mathfield=null;return}if(Na.has(this)){const we=this._mathfield,Re=Na.get(this),Xe=Re.menuItems;we.model.deferNotifications({content:!1,selection:!1},()=>{const ct=Re.value;ct!==void 0&&we.setValue(ct),we.model.selection=Re.selection,Na.delete(this)}),Xe&&(this.menuItems=Xe)}window.queueMicrotask(()=>{this.isConnected&&this.dispatchEvent(new Event("mount",{cancelable:!1,bubbles:!0,composed:!0}))}),Lf()}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=Hu(this._mathfield.options,Object.keys(ju.optionsAttributes).map(ee=>Ul(ee)));Na.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":Eo(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",""),Wc()?this._internals.ariaReadOnly="true":this.setAttribute("aria-readonly","true"),this.setAttribute("aria-readonly","true")):(Wc()?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"),Wc()?this._internals.ariaDisabled=E?"true":"false":this.setAttribute("aria-disabled",E?"true":"false"),E&&((b=this._mathfield)!=null&&b.hasFocus)&&window.mathVirtualKeyboard.visible&&this._mathfield.executeCommand("hideVirtualKeyboard")}get value(){return this.getValue()}set value(y){this.setValue(y)}get defaultMode(){return this._getOption("defaultMode")}set defaultMode(y){this._setOptions({defaultMode:y})}get macros(){return this._getOption("macros")}set macros(y){this._setOptions({macros:y})}get registers(){const y=this;return new Proxy({},{get:(b,E)=>{if(typeof E=="string")return y._getOption("registers")[E]},set(b,E,ee){return typeof E!="string"?!1:(y._setOptions({registers:pe(Se({},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=Na.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}Na.has(this)?Na.set(this,pe(Se({},Na.get(this)),{menuItems:y})):Na.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:$d(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:Na.has(this)?Na.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,Eo(this._mathfield);return}if(Na.has(this)){Na.set(this,pe(Se({},Na.get(this)),{selection:y}));return}Na.set(this,{value:void 0,selection:y,options:$d(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:Na.has(this)?Na.get(this).selection.ranges[0][0]:0}set position(y){if(this._mathfield&&(this._mathfield.model.position=y,Eo(this._mathfield)),Na.has(this)){Na.set(this,pe(Se({},Na.get(this)),{selection:{ranges:[[y,y]]}}));return}Na.set(this,{value:void 0,selection:{ranges:[[y,y]]},options:$d(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}};rs.version="0.98.5",rs._fontsDirectory="./fonts",rs._soundsDirectory="./sounds",rs.keypressVibration=!0,rs._keypressSound={spacebar:"keypress-spacebar.wav",return:"keypress-return.wav",delete:"keypress-delete.wav",default:"keypress-standard.wav"},rs._plonkSound="plonk.wav",rs.audioBuffers={},rs.createHTML=a=>a,rs._speechEngineRate="100%",rs._speechEngineVoice="Joanna",rs._textToSpeechMarkup="",rs._textToSpeechRules="mathlive",rs._textToSpeechRulesOptions={},rs.speakHook=r1,rs.readAloudHook=h1,rs._decimalSeparator=".",rs.fractionNavigationOrder="numerator-denominator",rs._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 Wd=rs;function Ul(a){return a.replace(/[^a-zA-Z\d]+(.)/g,(y,b)=>b.toUpperCase())}function $d(a){const y={readOnly:!1},b=Wd.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[Ul(E)]=!0:b[E]==="on/off"?ee==="on"?y[Ul(E)]=!0:ee==="off"?y[Ul(E)]=!1:y[Ul(E)]=void 0:b[E]==="number"?y[Ul(E)]=Number.parseFloat(ee!=null?ee:"0"):y[Ul(E)]=ee}}),y}function Wc(){return!(!("ElementInternals"in window)||!HTMLElement.prototype.attachInternals||!("role"in window.ElementInternals.prototype))}var vp=Wd,yp,bp,xp,wp;if(lt()&&!((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=Wd,(wp=window.customElements)==null||wp.define("math-field",Wd)}function m1(a,y,b){let E=b,ee=0;const re=a.length;for(;E<y.length;){const ae=y[E];if(ee<=0&&y.slice(E,E+re)===a)return E;ae==="\\"?E++:ae==="{"?ee++:ae==="}"&&ee--,E++}return-1}function Qf(a,y,b,E,ee="latex"){const re=[];for(const ae of a)if(ae.type==="text"){const he=ae.data;let me=!0,ye=0,we;we=he.indexOf(y),we!==-1&&(ye=we,ye>0&&re.push({type:"text",data:he.slice(0,ye)}),me=!1);let Re=!1;for(;!Re;){if(me){if(we=he.indexOf(y,ye),we===-1){Re=!0;break}ye!==we&&re.push({type:"text",data:he.slice(ye,we)}),ye=we}else{if(we=m1(b,he,ye+y.length),we===-1){Re=!0;break}let Xe=he.slice(ye+y.length,we);ee==="ascii-math"&&([,Xe]=Pu(Xe,{format:"ascii-math"})),re.push({type:"math",data:Xe,rawData:he.slice(ye,we+b.length),mathstyle:E}),ye=we+b.length}me=!me}ye<he.length&&re.push({type:"text",data:he.slice(ye)})}else re.push(ae);return re}function Sp(a,y,b){let E=[{type:"text",data:a}];return y!=null&&y.inline&&y.inline.forEach(([ee,re])=>{E=Qf(E,ee,re,"textstyle")}),y!=null&&y.display&&y.display.forEach(([ee,re])=>{E=Qf(E,ee,re,"displaystyle")}),b!=null&&b.inline&&b.inline.forEach(([ee,re])=>{E=Qf(E,ee,re,"textstyle","ascii-math")}),b!=null&&b.display&&b.display.forEach(([ee,re])=>{E=Qf(E,ee,re,"displaystyle","ascii-math")}),E}function g1(a,y){const b=document.createElement("span");b.setAttribute("translate","no");try{const E="<math xmlns='http://www.w3.org/1998/Math/MathML'>"+y.renderToMathML(a)+"</math>";b.innerHTML=window.MathfieldElement.createHTML(E)}catch(E){console.error(`MathLive 0.98.5: Could not convert "${a}"' to MathML with ${E}`),b.textContent=a}return b.className="ML__sr-only",b}function v1(a,y,b,E){try{const ee=y.renderToMarkup(a,{mathstyle:b,format:"html"}),re=document.createElement("span");return re.dataset.latex=a,re.style.display=b==="displaystyle"?"flex":"inline-flex",re.setAttribute("aria-hidden","true"),re.setAttribute("translate","no"),re.innerHTML=window.MathfieldElement.createHTML(ee),re}catch(ee){if(console.error("Could not parse'"+a+"' with ",ee),E)return document.createTextNode(a)}return null}function $c(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 me=document.createElement("span");me.setAttribute("translate","no");const ye=b.renderToSpeakableText(a);me.innerHTML=window.MathfieldElement.createHTML(ye),me.className="ML__sr-only",he.append(me)}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=$c(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 me=$c(he.data,he.mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);me&&re.appendChild(me)}}return re}function Cp(a,y){var b,E,ee,re,ae,he,me,ye,we,Re,Xe,ct,xt,mn,cr,un;if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const Zn=(b=a.childNodes[0].textContent)!=null?b:"";if((E=y.TeX)!=null&&E.processEnvironments&&/^\s*\\begin/.test(Zn)){a.textContent="";const Yn=$c(Zn,"",y,!0);Yn&&a.append(Yn);return}const pr=Sp(Zn,(ee=y.TeX)==null?void 0:ee.delimiters,(re=y.asciiMath)==null?void 0:re.delimiters);if(pr.length===1&&pr[0].type==="math"){a.textContent="";const Yn=$c(pr[0].data,pr[0].mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);Yn&&a.append(Yn);return}if(pr.length===1&&pr[0].type==="text")return}for(let Zn=a.childNodes.length-1;Zn>=0;Zn--){const pr=a.childNodes[Zn];if(pr.nodeType===3){const Yn=y1((ae=pr.textContent)!=null?ae:"",y);Yn&&(Zn+=Yn.childNodes.length-1,pr.replaceWith(Yn))}else if(pr.nodeType===1){const Yn=pr,$r=pr.nodeName.toLowerCase();if($r==="script"){const ui=pr;let Xr;if((he=y.processScriptTypePattern)!=null&&he.test(ui.type))Xr=(me=ui.textContent)!=null?me:"";else if((ye=y.processMathJSONScriptTypePattern)!=null&&ye.test(ui.type))try{Xr=(Re=y.serializeToLatex)==null?void 0:Re.call(y,JSON.parse((we=ui.textContent)!=null?we:""))}catch(_a){console.error(_a)}if(Xr){let _a="textstyle";for(const Mr of ui.type.split(";")){const[zs,Al]=Mr.toLowerCase().split("=");zs.trim()==="mode"&&(_a=Al.trim()==="display"?"displaystyle":"textstyle")}const qa=$c(Xr,_a,y,!0);qa&&ui.parentNode.replaceChild(qa,ui)}}else if(((ct=(Xe=y.processClassPattern)==null?void 0:Xe.test(Yn.className))!=null?ct:!1)||!((mn=(xt=y.skipTags)==null?void 0:xt.includes($r))!=null&&mn||(un=(cr=y.ignoreClassPattern)==null?void 0:cr.test(Yn.className))!=null&&un))if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const Xr=a.textContent;a.textContent="";const _a=$c(Xr!=null?Xr:"","displaystyle",y,!0);_a&&a.append(_a)}else Cp(Yn,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=Se(Se({},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:""),Lf(),As("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=fu.singleton;return b?(b.show(),Id(),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}Ls({switchKeyboardLayer:w1,toggleVirtualKeyboard:S1,hideVirtualKeyboard:()=>(window.mathVirtualKeyboard.hide({animate:!0}),!1),showVirtualKeyboard:()=>(window.mathVirtualKeyboard.show({animate:!0}),!1)},{target:"virtual-keyboard"});function mu(){var a,y;return(y=globalThis[a=Symbol.for("io.cortexjs.mathlive")])!=null||(globalThis[a]={}),globalThis[Symbol.for("io.cortexjs.mathlive")]}function T1(){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 I1(a){E1(document.body,a)}function C1(a){if(typeof a=="string"){const y=document.getElementById(a);if(y===null)throw new Error(`The element with ID "${a}" could not be found.`);return y}return typeof a=="string"?null:a}function E1(a,y){var b,E,ee,re;const ae=C1(a);if(!ae)return;const he=y!=null?y:{};(b=he.renderToMarkup)!=null||(he.renderToMarkup=Yo),(E=he.renderToMathML)!=null||(he.renderToMathML=Nv),(ee=he.renderToSpeakableText)!=null||(he.renderToSpeakableText=Rv),(re=he.serializeToLatex)!=null||(he.serializeToLatex=Fv),x1(ae,he)}var _1={mathlive:"0.98.5"}},17423:function(hn,Zt,le){"use strict";le.d(Zt,{Z:function(){return Se}});const ge=pe=>typeof pe=="object"&&pe!=null&&pe.nodeType===1,We=(pe,Ie)=>(!Ie||pe!=="hidden")&&pe!=="visible"&&pe!=="clip",Pe=(pe,Ie)=>{if(pe.clientHeight<pe.scrollHeight||pe.clientWidth<pe.scrollWidth){const ot=getComputedStyle(pe,null);return We(ot.overflowY,Ie)||We(ot.overflowX,Ie)||(Oe=>{const wt=(lt=>{if(!lt.ownerDocument||!lt.ownerDocument.defaultView)return null;try{return lt.ownerDocument.defaultView.frameElement}catch(tt){return null}})(Oe);return!!wt&&(wt.clientHeight<Oe.scrollHeight||wt.clientWidth<Oe.scrollWidth)})(pe)}return!1},et=(pe,Ie,ot,Oe,wt,lt,tt,Ge)=>lt<pe&&tt>Ie||lt>pe&&tt<Ie?0:lt<=pe&&Ge<=ot||tt>=Ie&&Ge>=ot?lt-pe-Oe:tt>Ie&&Ge<ot||lt<pe&&Ge>ot?tt-Ie+wt:0,be=pe=>{const Ie=pe.parentElement;return Ie==null?pe.getRootNode().host||null:Ie},Ae=(pe,Ie)=>{var ot,Oe,wt,lt;if(typeof document=="undefined")return[];const{scrollMode:tt,block:Ge,inline:Me,boundary:bt,skipOverflowHiddenElements:zt}=Ie,Ye=typeof bt=="function"?bt:an=>an!==bt;if(!ge(pe))throw new TypeError("Invalid target");const it=document.scrollingElement||document.documentElement,Be=[];let xe=pe;for(;ge(xe)&&Ye(xe);){if(xe=be(xe),xe===it){Be.push(xe);break}xe!=null&&xe===document.body&&Pe(xe)&&!Pe(document.documentElement)||xe!=null&&Pe(xe,zt)&&Be.push(xe)}const Ke=(Oe=(ot=window.visualViewport)==null?void 0:ot.width)!=null?Oe:innerWidth,Ue=(lt=(wt=window.visualViewport)==null?void 0:wt.height)!=null?lt:innerHeight,{scrollX:ft,scrollY:pt}=window,{height:Mt,width:Qe,top:Rt,right:Dt,bottom:on,left:Ut}=pe.getBoundingClientRect(),{top:wn,right:Xn,bottom:nr,left:Je}=(an=>{const nt=window.getComputedStyle(an);return{top:parseFloat(nt.scrollMarginTop)||0,right:parseFloat(nt.scrollMarginRight)||0,bottom:parseFloat(nt.scrollMarginBottom)||0,left:parseFloat(nt.scrollMarginLeft)||0}})(pe);let _e=Ge==="start"||Ge==="nearest"?Rt-wn:Ge==="end"?on+nr:Rt+Mt/2-wn+nr,Ft=Me==="center"?Ut+Qe/2-Je+Xn:Me==="end"?Dt+Xn:Ut-Je;const Sn=[];for(let an=0;an<Be.length;an++){const nt=Be[an],{height:at,width:$t,top:kn,right:Ht,bottom:It,left:Ct}=nt.getBoundingClientRect();if(tt==="if-needed"&&Rt>=0&&Ut>=0&&on<=Ue&&Dt<=Ke&&Rt>=kn&&on<=It&&Ut>=Ct&&Dt<=Ht)return Sn;const tn=getComputedStyle(nt),pn=parseInt(tn.borderLeftWidth,10),Ee=parseInt(tn.borderTopWidth,10),ce=parseInt(tn.borderRightWidth,10),se=parseInt(tn.borderBottomWidth,10);let fe=0,de=0;const oe="offsetWidth"in nt?nt.offsetWidth-nt.clientWidth-pn-ce:0,Te="offsetHeight"in nt?nt.offsetHeight-nt.clientHeight-Ee-se:0,je="offsetWidth"in nt?nt.offsetWidth===0?0:$t/nt.offsetWidth:0,Et="offsetHeight"in nt?nt.offsetHeight===0?0:at/nt.offsetHeight:0;if(it===nt)fe=Ge==="start"?_e:Ge==="end"?_e-Ue:Ge==="nearest"?et(pt,pt+Ue,Ue,Ee,se,pt+_e,pt+_e+Mt,Mt):_e-Ue/2,de=Me==="start"?Ft:Me==="center"?Ft-Ke/2:Me==="end"?Ft-Ke:et(ft,ft+Ke,Ke,pn,ce,ft+Ft,ft+Ft+Qe,Qe),fe=Math.max(0,fe+pt),de=Math.max(0,de+ft);else{fe=Ge==="start"?_e-kn-Ee:Ge==="end"?_e-It+se+Te:Ge==="nearest"?et(kn,It,at,Ee,se+Te,_e,_e+Mt,Mt):_e-(kn+at/2)+Te/2,de=Me==="start"?Ft-Ct-pn:Me==="center"?Ft-(Ct+$t/2)+oe/2:Me==="end"?Ft-Ht+ce+oe:et(Ct,Ht,$t,pn,ce+oe,Ft,Ft+Qe,Qe);const{scrollLeft:At,scrollTop:Ot}=nt;fe=Et===0?0:Math.max(0,Math.min(Ot+fe/Et,nt.scrollHeight-at/Et+Te)),de=je===0?0:Math.max(0,Math.min(At+de/je,nt.scrollWidth-$t/je+oe)),_e+=Ot-fe,Ft+=At-de}Sn.push({el:nt,top:fe,left:de})}return Sn},ke=pe=>pe===!1?{block:"end",inline:"nearest"}:(Ie=>Ie===Object(Ie)&&Object.keys(Ie).length!==0)(pe)?pe:{block:"start",inline:"nearest"};function Se(pe,Ie){if(!pe.isConnected||!(wt=>{let lt=wt;for(;lt&&lt.parentNode;){if(lt.parentNode===document)return!0;lt=lt.parentNode instanceof ShadowRoot?lt.parentNode.host:lt.parentNode}return!1})(pe))return;const ot=(wt=>{const lt=window.getComputedStyle(wt);return{top:parseFloat(lt.scrollMarginTop)||0,right:parseFloat(lt.scrollMarginRight)||0,bottom:parseFloat(lt.scrollMarginBottom)||0,left:parseFloat(lt.scrollMarginLeft)||0}})(pe);if((wt=>typeof wt=="object"&&typeof wt.behavior=="function")(Ie))return Ie.behavior(Ae(pe,Ie));const Oe=typeof Ie=="boolean"||Ie==null?void 0:Ie.behavior;for(const{el:wt,top:lt,left:tt}of Ae(pe,ke(Ie))){const Ge=lt-ot.top+ot.bottom,Me=tt-ot.left+ot.right;wt.scroll({top:Ge,left:Me,behavior:Oe})}}}}]);
}());